fix(governance): preserve delegated capability path authority - #503
Merged
seonghobae merged 139 commits intoAug 30, 2026
Conversation
…-registry-capability-path-authority Co-Authored-By: Claude <noreply@anthropic.com>
seonghobae
pushed a commit
that referenced
this pull request
Aug 30, 2026
…gistry-stream-bounds Co-Authored-By: Claude <noreply@anthropic.com> # Conflicts: # scripts/lib/delegated-github-token.mjs # scripts/workflow-registry-live-audit.mjs # scripts/workflow-registry-live-disable.mjs # test/maintainer-app-token-capability.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Test-first hardening of Noema's delegated GitHub capability path, workflow-registry evidence authority, private acquisition-output authority, and reviewer sandbox/supply-chain boundary. GitHub Ready state is not merge authority while the exact-head image/SBOM/provenance gate is non-passing.
Current causal repair — transactional acquisition writer-lock authority
A reviewed BUG finding identified a real recovery defect in
scripts/lib/acquisition-private-output.mjs: failed lock creation/inspection/close could leave the target reserved in-process and poison later same-process retries.The repaired implementation makes acquisition transactional: on failure it best-effort closes any opened descriptor, proves cleanup authority by descriptor/path inode identity before unlinking, preserves uncertain lock paths fail-closed, releases the in-process reservation before rethrowing, and preserves the original acquisition error. Realistic tests cover one-shot open/fstat/close failures, replacement-lock identity, and a vanished-lock race without excluding production policy from coverage.
All visible defect findings for this repair are resolved. Current remaining visible review threads are resolved or informational; no valid unresolved defect finding is currently known.
Exact current authority
Fresh identity:
main@d53897f28abb0aca6d3dd2c0295f0c4f4e81f076(the protected fix(egress): bound anonymous GitHub API authority #500 integration);e49d37e515ef07ee20f9a2bb162006025f56ccc1;33305991817: terminal-success;33305991793: terminal-success;33305991790: terminal-success;patch-validator-image33305991803: in progress / non-passing.No predecessor image result transfers to this head. Runtime identity, no-network/read-only/non-root smoke, CycloneDX SBOM, vulnerability-receipt, exact-source/image, and provenance evidence remain non-authoritative until the dedicated exact-head job terminates successfully.
Dependency and governance boundary
#500 is now protected-main truth; this lane has already converged onto that protected revision rather than remaining on the historical #500 predecessor base. Post-#500 successor #508 is a separate bounded egress/test-contract promotion and is not permission to infer this PR's image evidence.
The repository-effective organization ruleset
18794436remains active on~DEFAULT_BRANCH, requiresContextualWisdomLab/.github:.github/workflows/security-scan.yml@refs/heads/main, hasbypass_actors=[], and reportscurrent_user_can_bypass=never.Protected central
.github/mainis currently2c725dd928c884db2ea0d5d1e3442d54e6f3d7d4. Its current Security Scan blob SHA is148e944310593958d7c6dd96590c5327a0c4b355, unchanged from the previously observed protected scanner generation, so the central-main movement did not silently replace the scanner contract. Central.github, naruon, contextual-orchestrator, and other dedicated-writer repositories remain read-only dependencies for this Noema writer.Merge boundary
Do not merge #503 while any applicable exact-head gate is pending/queued/skipped/failed/cancelled/stale or otherwise non-passing, while a valid unresolved finding exists, or after base/head movement without fresh revalidation. Exact 100% owned-production line/branch/function/statement coverage remains mandatory. Source/check evidence does not synthesize production deployment, publication, buyer, or legal-transfer evidence.