[codex] Harden Staff identity provisioning anchors - #12
Draft
SadPossum wants to merge 8 commits into
Draft
Conversation
# Conflicts: # src/Modules/Workspaces/BunkFy.Modules.Workspaces.Api/WorkspaceStaffOnboardingEndpoints.cs
…rovisioning-anchors
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.
Summary
Hardens Staff identity provisioning for Workspace onboarding as an exact, durable, fail-closed cross-module protocol.
The implementation gives Staff ownership of the provisioning anchor and its one-time resolution coordinate, gives Workspaces ownership of the continuation coordinate and local convergence ledger, and serializes lifecycle/access mutations so retries, crashes, stale events, subject changes, and concurrent suspend/resume/depart paths cannot silently grant or resurrect access.
What changed
NotApplicable,RestoreSnapshot,Suppressed) and prevent automatic access resurrection after negative subject-bound resolution.Dependencies and stacking
e2d0755e6b3b6f765f120029e40bdbd69e9120acfrom [codex] Expose exact membership lifecycle snapshot GMA-Module-Organizations#14. That draft PR supplies the exact membership lifecycle snapshot API consumed here.devafter [codex] Pin patched SSH.NET across backend test harness #14 and [codex] Add bounded manual Inventory block groups #15 land.All four dependency PRs (#11, Organizations #14/#15, Framework #22) are currently draft/open with green checks. This PR does not merge them.
Current draft CI state
e2d0755, while that module'sorigin/devis still50f736d.devcommit, then rerun the full PR checks.Database and deployment contract
New protocol migrations:
20260811110753_AddStaffIdentityProvisioningAnchors20260811205004_AddWorkspaceStaffIdentityProvisioningAnchorsThis is intentionally not rolling-compatible with predecessor writers. Production rollout must follow the stop/drain contract in
docs/architecture/workspaces-and-onboarding.md:The repository documents this procedure, but this PR contains no evidence that it has been executed in a hosted environment. No deployment or migration was performed by this work.
Verification on final commit
b4e3865bCategory!=Docker: 5,482/5,482 passed, 0 failed, 0 skipped.dev; the only intentional nonzero is Organizations [codex] Pin patched SSH.NET across backend test harness #14 described above.The final Workspaces migration body is pinned by SHA-256
54517bfd15b9a2ba4f54eca8c6afcbfe25ae514e412643b595f52af8991a671fin the local verification record.Readiness boundary
This is a code-and-local-provider proof, not a production-readiness or launch claim. Before marking ready, resolve the stacked/dependency PRs, refresh the Organizations/Framework pointers, execute and record the stop/drain migration rehearsal, backup/restore proof, deployed smoke tests, worker/sweep health, and operational approval.
Draft only. Do not merge or deploy from this PR yet.