Skip to content

feat(auth): display candidate and running access checks separately - #51

Open
reoring wants to merge 1 commit into
mainfrom
work/20261123/ai-build-acceptance-console
Open

reoring wants to merge 1 commit into
mainfrom
work/20261123/ai-build-acceptance-console

Conversation

@reoring

@reoring reoring commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

S4: distinguish candidate checks from running-version evidence

Not activation-ready. Platform cutover remains unverified and is refused until both approved prerequisites land:

  1. Complete hub projection of observed serving revisions, digests and traffic shares (auth spec 03 §4.1; next operator slice).
  2. Receipt verification and checked-artifact trailer suppression in the generated image-publish workflow (approved separate PR).

Changes

  • Read the additive Publish.runningAccessCheck response with open-enum handling. Old API omissions, unknown states/reasons, incomplete identities and obsolete policy revisions remain unverified.
  • Show running-version evidence in overview and releases, never from a coder/task report or a desired image tag.
  • Remove passed display for digest mismatch, failed refreshes, in-flight rollback or incomplete serving sets. Invalidate publish evidence after rollback.
  • Show independent candidate evidence separately in the implementation task panel, explicitly not as a statement about the running version.
  • Add regression coverage for digest mismatch, missing/unknown evidence, mixed/incomplete versions and public-only not being a protected-access pass.

Only additive runningAccessCheck edits were made to the shared app contract and overview/releases files. Share/binding ownership remains with S3.

Verification

Through serialize-vm-tests, Bun 1.3.14: bun test src/features/app/running-access-check.test.tsx src/api/contracts/platform/app.test.ts src/api/build.test.ts src/model/app.test.ts — 92 passed, zero failed; bun run typecheck — passed. No browser/live release or real-worker acceptance execution is claimed.

Companion Platform worktree: /workspace/wip/wt/ai-build-acceptance.
Console worktree: /workspace/wip/wt/builder-console-ai-build, branch work/20261123/ai-build-acceptance-console.

Fail closed on missing evidence, digest mismatch, unknown states and refresh errors.
Keep activation blocked on Platform hub projection and receipt-aware workflow prerequisites.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant