Run credential carries org, workspace, identity and capabilities #302

Open
opened 2026-10-27 13:35:46 +00:00 by sam · 0 comments
Owner

Goal

The run credential row records org, workspace, identity and granted capabilities, and services refuse calls outside them.

Evidence

internal/infrastructure/postgres/run_credentials.go:16 PutRunCredential(digest, taskID, expires) stores only the task. orgs-and-access PRD 'Agents' step 2.

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run task check once at the end; if it fails twice on the same problem, comment on this bead and stop.

Stop when

  • Migration adds the columns; issuance fills them.
  • A call outside the credential's org or capabilities is refused (test in the grants seam).
    Then commit (Conventional Commits, scoped by package), bd close this bead and stop.

Notes

Org epic session skipped: needs a definition of a run-credential capability and who narrows it. Run credentials already touch only their own task, so org columns alone add nothing.


Imported from beads archie-core-kgxw.15 · GitHub #1315 · type feature · priority P2 · created 2026-10-05

## Goal The run credential row records org, workspace, identity and granted capabilities, and services refuse calls outside them. ## Evidence internal/infrastructure/postgres/run_credentials.go:16 PutRunCredential(digest, taskID, expires) stores only the task. orgs-and-access PRD 'Agents' step 2. ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run `task check` once at the end; if it fails twice on the same problem, comment on this bead and stop. ## Stop when - [ ] Migration adds the columns; issuance fills them. - [ ] A call outside the credential's org or capabilities is refused (test in the grants seam). Then commit (Conventional Commits, scoped by package), `bd close` this bead and stop. ### Notes Org epic session skipped: needs a definition of a run-credential capability and who narrows it. Run credentials already touch only their own task, so org columns alone add nothing. --- _Imported from beads `archie-core-kgxw.15` · GitHub #1315 · type feature · priority P2 · created 2026-10-05_
sam added the mediumfeature labels 2026-10-27 13:35:46 +00:00
sam self-assigned this 2026-10-27 13:35:46 +00:00
sam added the deferred label 2026-11-15 17:26:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#302