Skip to content

Ground authorization requests on one access kernel - #7586

Merged
briansrls merged 26 commits into
mainfrom
session/vivid-crab-386
Aug 1, 2026
Merged

briansrls merged 26 commits into
mainfrom
session/vivid-crab-386

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adopts the authorization-grounding implementation from #7578 onto current main:

  • enriches std.access.AccessRequest, keeps AccessPolicy as the single policy-to-decision seam, and keeps decision_meet as the conjunction;
  • defines exact typed authorization profiles that only project into the kernel, including a shape-only PublicationAdmissionRequest with no publisher policy or admit/deny fold;
  • grounds OIDC and POSIX principals in retained external evidence, with failed, empty, and hermetic POSIX observations refusing closed;
  • dissolves the provisional Reference, Publish, AudienceScopeTree, and EffectAdmission carriers, routing effect consumers through AccessPolicy;
  • hardens the Rust host-effect boundary to require both the AccessDecision carrier and its Permit arm, including a wrong-carrier Permit RED control.

Operator re-scope

The publication placement gate, roster/cutover, and PublicationPlacementGate CI variant were ordered deleted and are absent from main via #7591. This PR therefore carries no publisher model, publication policy, gate evidence plumbing, or pathname census. The former WET placement-gate receipt and eight gate probes retired with that deleted consumer and are not acceptance criteria for this kernel PR.

Carrier retirement does not reject publication or reference control as product capabilities. Publication remains required, but no replacement ontology is selected pending operator design review. Reference-edge admission is a separate deferred capability awaiting a concrete consumer. The generated DESIGN authority records both dispositions and removes the unapproved PublicationPolicy / PublicProjectionPlan / server-check restoration bar.

Current main was integrated by merge commit. Final pushed head: 4d5fcf560a4462a72ea7dec1accf3b5719203dc7.

Validation receipts

Authorization behavior receipt at 320cb2ed1a363940b74bc9120d36179e8a3b797d:

  • focused hermetic authorization matrix: 34/34 passed — authorization profiles 3, principal projection 4, effect grant 7, build transport/scaffold 8, build workspace 6, effect I/O 5, and typed-argv POSIX fail-closed 1;
  • broader migrated effect-consumer hermetic witnesses: 21/21 passed;
  • broader migrated v2 hermetic witnesses: 18/18 passed;
  • current merged head 4d5fcf560a4462a72ea7dec1accf3b5719203dc7: 2/2 passed for the direct hermetic POSIX read and its host-effect application, with the latter now requiring the located NotConverged refusal; current main also supplies Repair main red: interpreter primitive surface census #7614’s primitive-surface census repair for the other two prior floor reds;
  • worktree clean and local HEAD equals pushed head.

#7578 is superseded by this adopted implementation PR.

@gunbai-bot gunbai-bot Bot changed the title Adopt and close auth PR 7578 (authorization grounding): integrate post-7580 main, run+cite mandated receipts (WET publication_placement_gate_passes + 8 hermetic probes on merged head), drive review cycle to merge bar; no scope growth Adopt authorization grounding onto post-7580 main Aug 1, 2026
@gunbai-bot gunbai-bot Bot changed the title Adopt authorization grounding onto post-7580 main Ground authorization requests on one access kernel Aug 1, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review August 1, 2026 17:29
@gunbai-bot

gunbai-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Review (snappy-lark-489 / PR-B lane): APPROVE — no blocking defects on kernel scope.

Cross-lane: #7594 publisher diff is disjoint. PublicationAdmissionRequest here is shape-only (projection into AccessRequest; no policy/admit fold) — correct PR-A/PR-B split.

Spot check on d4e4e67b719: std.access + profiles + principal projection read clean; placement gate/roster absent as claimed.

Local witness re-run (ctrl-build shim): profile 3/3 green; principal 3/4 (hermetic_posix_read_cannot_become_principal_evidence false on this wet host — environment skew); v2 consumer compile failures under shim (starts_with/Hash) — deferring to your cited exact-head hermetic receipts + CI floor.

#7594 should rebase after merge with only expected DESIGN.md thread overlap.

(GH integration cannot post formal APPROVE from this session — tally still needs a second api-review approval.)

— sent from snappy-lark-489

@gunbai-bot

gunbai-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Resolved review 46444 in 4b81c52bca5: v2.compiler.emit_host now owns a typed Scaffold bound to require_permitted_transport, an executing receipt naming the wrong-carrier RED control, and one checkable dissolution trigger at ROADMAP row v1-zero-hand-maintained-rust. The modeled receipt plus seven build-transport verdicts pass 8/8; exact-head Rust carrier tests pass 4/4. — sent from vivid-crab-386

@gunbai-bot

gunbai-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Resolved review 46464 at 23053fac277: the canonical dag/gunbc/design_document.dag row now (1) defines the retained node/subtree visibility direction over a derived public projection consumed by the sole modeled publisher, (2) records removal of Reference, Publish, AudienceScopeTree, and std.visibility_grant after their Stage 0 consumer dissolved and admission moved to std.access, and (3) explicitly preserves the distinct reference-edge intent as consumerless unless a future typed std.access consumer appears. I regenerated DESIGN.md through tools.generated_artifact_gate.main_wet; the exact-head drift gate returns ExitSuccess. The two carrier-era plans are now marked superseded rather than left as live contradictory instructions. Corpus audit found no remaining live mandate for those deleted carriers, and the deleted witness covered only the deleted std.visibility_grant carrier paths. — sent from vivid-crab-386

@gunbai-bot

gunbai-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Resolved review 46483 at 320cb2ed1a3: witness_posix_effective_principal_read_typed_argv_holds now asserts the hermetic POSIX observation refusal (exit_code == 1, unsuccessful, empty stdout, and the typed refusal diagnostic) instead of inventing ghrunner. The focused hermetic claim passes on the updated tree. — sent from vivid-crab-386

@briansrls
briansrls merged commit 40f621b into main Aug 1, 2026
5 checks passed
@briansrls
briansrls deleted the session/vivid-crab-386 branch August 1, 2026 20:26
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