NawGate

NawGate standards alignment

NawGate is a hackathon proof of concept informed by established access-control patterns. This document is a design traceability note, not a claim of NIST, IETF, OWASP, or Google certification or production equivalence.

Team-file authorization model

For a protected team-file read, NawGate evaluates the intersection of:

trusted Run identity
AND human-to-team relationship and role
AND active persistent Agent-to-team grant, role, and action scope
AND protected resource team and classification
AND the registered file.read action
AND the current policy environment

The Runtime request carries only an action and opaque resource identifier. The backend resolves the human, Agent, Run, protected-resource metadata, team membership, and Agent grant. A client or model cannot assert its own team, role, grant, owner, Agent, or Run identity.

PolicyEngine returns a decision. RuntimeGateway is the enforcement point and is the only component allowed to invoke ProtectedResourceService after an allow decision. Protected file contents are not mounted into the Agent workspace and are never written to audit evidence.

Standards and industry lineage

Source Pattern adopted in NawGate Deliberate MVP limit
NIST SP 800-162: Attribute Based Access Control Policy input separates subject attributes, object attributes, the requested operation, and environment context. Team role and file classification participate in the decision. Demo attributes and policy are local TypeScript fixtures rather than an enterprise attribute authority.
NIST SP 800-207: Zero Trust Architecture No trust is granted merely because code runs in the Agent workspace or local network. A trusted policy decision and gateway enforcement occur before protected-resource access. The POC is one process and does not implement a production zero-trust control plane or service mesh.
Google Zanzibar Human-to-team and Agent-to-team records are relationship-style tuples that support team-owned resources without copying every permission to every file. There is no Zanzibar configuration language, distributed graph evaluation, external consistency token, global scale, or availability claim.
IETF RFC 8693: OAuth 2.0 Token Exchange The Agent/Run actor remains distinct from the human on whose behalf it operates, and delegated authority is short lived and revocable. NawGate uses an opaque local credential rather than implementing an OAuth security-token service.
IETF RFC 9396: OAuth 2.0 Rich Authorization Requests Authorization is exact-bound to a registered action and resource identifier; malformed or unknown details fail closed. NawGate does not expose an OAuth authorization_details endpoint or issue interoperable OAuth tokens.
OWASP LLM06: Excessive Agency The Runtime receives narrow agentctl operations, downstream access executes in the human context with minimum permissions, high-impact operations require approval, and authorization is enforced outside the model. NawGate mediates registered actions only; it does not intercept every internal Codex shell or file operation.

Demo relationships

The deterministic fixtures model two teams and three useful relationship cases:

This proves that team access is not the same as resource ownership or temporary Run authority: all layers must agree. Existing user-owned resources keep their hard cross-user deny.

Fail-closed rules

The JIT capability is bound to the human, Agent, Run, request ID, team, file, file.read, persistent grant ID, grant bundle version, effective scope, resource classification, and temporary resource scope. The gateway resolves all mutable authority again immediately before consuming it and immediately before the protected side effect. Approval cannot repair a missing membership, revoked/expired grant, invalid Run, unknown team/resource/action, or malformed request.

Production work still required

A production service would need enterprise identity and group lifecycle, SCIM/OIDC integration, durable and highly available relationship storage, separate Agent-owner request and team-admin approval when those are different people, policy administration and review, externally consistent permission changes, recursive folder inheritance, explicit deny and exception handling, file write/delete/share/export flows, DLP, retention, incident response, load/fault testing, and security review. Those are intentionally outside this single TechJam phase.