Production Write Gate v1

Selected agents can use production writes with scoped keys.

Production Write Gate issues scoped access records, validates idempotency, checks allowed rails, requires HTTPS callbacks, and records write audit events before selected agents move paid PacketOps or DiligenceOps work through production rails.

GrantScoped keyIdempotencyRail allowlistHTTPS callbackAudit event
Gate contract

The production rule is simple: scoped, repeat-safe, auditable.

Agents can read public surfaces and run sandbox calls freely. Production writes use a scoped agent key, an idempotency key, an allowed rail, and an audit event.

01

Request access

mode=request_production_access records agent, organization, requested rails, requested scopes, and callback route.

02

Issue scoped key

mode=issue_scoped_agent_key creates a credential envelope with key ID, masked hint, fingerprint, scopes, rails, and rotation state.

03

Validate write

mode=validate_production_write checks idempotency, surface, rail, HTTPS callback, and requested scope before a production write proceeds.

04

Record audit

mode=record_production_write_audit records the write decision, run ID, work order, payment reference, and return package target.

05

Rotate key

mode=rotate_scoped_agent_key creates a rotation record while preserving grant, scopes, and allowed rail state.

What the gate protects

Production writes now have a doorframe.

The gate does not slow the rail. It gives selected agents enough structure to write safely: no floating payment references, no duplicate run records, no unclear callback target, and no mystery scope.

{
  "write_decision": "accepted",
  "production_write_state": "write_validated",
  "required_headers": ["X-Wever-Agent-Key", "Idempotency-Key"],
  "required_scope": "agent-use:write",
  "allowed_rails": ["packetops", "diligenceops"],
  "audit_event_id": "production_write_audit_..."
}
Use the gate

Selected agents can now move from sandbox to production write.

The next rail step is the paid production run: customer account, work order, payment reference, return package, receipt, and audit trail.