Skip to content

Implement Context Builder authorization and source-access policy #77

Description

@andrewperis

Parent epic: #5

Summary

Implement Context Builder authorization and source-access policy for Context Builder v1.

Ownership and dependencies

Scope and deliverables

  • Require an explicit caller/owner, purpose, source scope, target prompt/version, classification ceiling and time-bounded preparation decision before loading source bytes.
  • Implement a policy-verifier interface and deterministic test verifier; trusted policy evidence must be verified rather than inferred from a caller-supplied allow string.
  • Keep preparation approval distinct from the later exact package-instance use authorization required by Prompt SDK.
  • Prevent confused-deputy access, source-scope expansion, expired/revoked decisions, path traversal and authorization-cache reuse across callers/purposes.

Acceptance criteria

  • Denied, missing, malformed, expired or mismatched authorization fails before source read, with tests proving no read occurred.
  • Authorization is bound to exact scope and target; classifications cannot be downgraded.
  • Mock decisions cannot be mistaken for production authority; trust configuration is explicit.
  • Diagnostics and audit projections omit credentials, private paths and protected policy evidence.

Implementation guardrails

Follow Constitution v1.0.0 at a9cc8a503aa30e17820edc62ac95f7cbe10e0564 and repository boundaries. Add focused tests with implementation; the later suite task consolidates rather than postpones testing. Public issues, fixtures and docs use synthetic/already-public material only. Approved private inputs stay behind explicit secure artifact boundaries. No direct Lore checkout, silent declassification, self-approval or canon promotion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions