GeezerVison is showing github.com — feat(id): wire signup/login to the shared boundary evaluator (#7787 part 2) by dezren39 · Pull Request #13204 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Part 2 of #7787 — wire the signup/login surface to the shared boundary evaluator (design #5683 §8; inputs decided by #8851, whose §7 names exactly these call sites as the remaining work).
What lands
id-directory — a BoundaryGate seam on Directory:
sign_up / sign_up_keyed run the gate at EnforcementPoint::AccountCreation before the entry is applied; a refused creation leaves no account behind.
account_for (credential login) runs it at EnforcementPoint::Login; a refusal reads exactly like an invalid credential.
Allow/Warn proceed; StepUp/Quarantine/Deny refuse with Refusal::Forbidden naming the outcome class only — never an evidence value.
- No gate installed = unchecked, exactly as before (boundaries are opt-in; off is the only implicit default). The gate is runtime wiring, not directory state: never journaled, absent after replay until the app installs it again.
id-cli — ServerBoundaryGate (new boundary_gate module), the app-side implementation:
- Composes the server config's declarations per check via
Boundaries::inputs (server / world / account scopes in play), offers claims from a caller-supplied factory (hop-evidence signing stays the caller's — design §8 open point), and calls check_surface. It adds no evaluation of its own.
- Every non-allow outcome's decision-log entry (scope, boundary version, evidence classes, outcome) is emitted on the
boundary_decision log target before the outcome returns.
- Declarations that do not compose fail closed, with the conflict logged.
Verification
cargo test -p id-directory: 285 passed / 0 failed — includes 4 new gate tests. Oracle: the surface calls the shared path and coverage is per enforcement point; one test backs the gate with the real check_surface (creation-only declaration refuses signup, leaves login alone; login-only does the reverse), one proves a denied keyed signup creates nothing (the same key signs up once the gate allows).
cargo test -p id-cli --lib: 752 passed / 1 failed — the 1 failure is cli::tests::test_command_lists_cover_all_clap_subcommands (README command-table guard), whose inputs (cli/mod.rs docs, README table, clap tree) this diff does not touch; it is the pre-existing id-cli test failing on main: README CLI Commands table omits walk #12772 failure. The 3 new boundary_gate tests pass (no declarations allow; enabled creation boundary denies creation not login; mirrored for login).
cargo test -p id-worlds --lib: 951 passed / 2 failed — both failures (admin_audit_replay_matches_live_state_for_generated_sequences, test_joined_form_result_frame_uses_session_auth_and_reaches_program) pass standalone on this branch and on pristine main 8f2947dd10af; they failed only inside the full parallel suite on the loaded laptop. Recorded as test(id-worlds): two lib tests fail only inside the full parallel suite under load (audit replay count; joined form-result frame) #13200.
cargo clippy -p id-directory -p id-cli --all-targets: no warnings in the new/changed code (remaining warnings are pre-existing in untouched files). rustfmt --check clean on all touched files.
Remainders (named on #7787; this PR does not do them)
- Install
ServerBoundaryGate on served worlds' directories at serve startup — needs an install path through WorldHandle / open_world in id-worlds (cores are actor-owned after spawn).
- Part 3: world membership / blob surface (
WorldMembership, BlobStorage points).
- Part 4: bridge / federation / relay surface (ingress/egress points in id-sync).
- The signed per-scope decision log (id: design: boundary audit & appeals UX (from #5683) #5883) behind the
boundary_decision log record, and any UI rendering of outcomes.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T10:43:22Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…art 2)
Part 2 of #7787 (design #5683 section 8, inputs decided by #8851): the
signup/login surface now consults the one shared adapter,
id_core::boundary_surfaces::check_surface, instead of nothing outside
id-core calling it.
- id-directory: a BoundaryGate seam on Directory. sign_up and
sign_up_keyed check EnforcementPoint::AccountCreation before the
entry is applied; account_for (credential login) checks
EnforcementPoint::Login, and a refusal reads exactly like an invalid
credential. Allow/Warn proceed; StepUp/Quarantine/Deny refuse with
Refusal::Forbidden naming the outcome class only. No gate installed
means unchecked, as before: boundaries are opt-in capabilities.
- id-cli: ServerBoundaryGate, the app-side gate. It composes the
server config's declarations per check (Boundaries::inputs), offers
claims from a caller-supplied factory (hop-evidence signing stays
the caller's, design section 8 open point), calls check_surface, and
emits the decision-log entry (scope, boundary version, evidence
classes, outcome) on the boundary_decision log target.
Declarations that do not compose fail closed.
Tests (oracle: the surface calls the shared path; coverage is per
enforcement point): id-directory gains gate tests including one backed
by the real check_surface (a creation-only declaration refuses signup
and leaves login alone; a login-only one does the reverse); id-cli
gains config-level gate tests (no declarations allow; an enabled
creation boundary denies creation, not login; mirrored for login).
Remaining for #7787, named on the issue: installing the gate on served
worlds' directories (needs an install path through WorldHandle /
open_world), the world membership/blob surface (part 3), the
federation ingress/egress surface (part 4), and the signed per-scope
decision log (#5883) behind the log record.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 32 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
005a5436-6dd6-4a84-9413-74dc6f2ef21d
Commits
-
Reviewing files that changed from the base of the PR and between c7ef51f and 9368fb5.
Files selected for processing: 3
-
pkgs/id/crates/id-cli/src/boundary_gate.rs
pkgs/id/crates/id-cli/src/lib.rs
pkgs/id/crates/id-directory/src/directory.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T10:45:06.795436Z |
9368fb5 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|