feat(auth): register project setup service foundation - #227
Conversation
📝 WalkthroughWalkthroughAdds the ChangesProject setup service registration
Estimated code review effort: 3 (Moderate) | ~30 minutes Sequence Diagram(s)sequenceDiagram
participant ProvisioningTest
participant ServiceActorProvisioning
participant Database
ProvisioningTest->>ServiceActorProvisioning: Provision PROJECT_SETUP actor
ServiceActorProvisioning->>Database: Persist service identity state
Database-->>ProvisioningTest: Return identity and grant counts
ProvisioningTest->>ProvisioningTest: Assert redaction and zero project grants
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
@.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/chunks/WS-AUTH-001-12B-project-setup-service.md:
- Around line 124-134: Update the project setup service coverage commands to
explicitly measure backend migration 0042, `0042_project_setup_service.py`, with
the existing 90% threshold, or document the hosted coverage check that verifies
it. Ensure the acceptance workflow actually validates coverage for this changed
migration module.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 61c00667-4a9e-4777-b8be-103fa17485a6
📒 Files selected for processing (16)
.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/ACTIVATION_CUSTODY.md.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/CHUNK_MAP.md.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/chunks/WS-AUTH-001-12B-project-setup-service.md.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/chunks/WS-AUTH-001-12B2-project-setup-service-cutover.mdbackend/alembic/versions/0042_project_setup_service.pybackend/app/modules/actors/service_identities.pybackend/app/modules/actors/service_identity_migration.pybackend/app/modules/authorization/catalogue.pybackend/tests/conftest.pybackend/tests/test_actor_migration_tools.pybackend/tests/test_alembic.pybackend/tests/test_auth.pybackend/tests/test_authorization.pydocs/operations_authorization_service.mddocs/spec_authorization_service.md
…-project-setup-service # Conflicts: # backend/tests/conftest.py # backend/tests/test_alembic.py
Chunk
WS-AUTH-001-12B — Fixed Project Setup Service Foundation
Goal and approved intent
Register
workstream.project.setupas the eighth closed fixed-service identity with exactly four planned project-setup actions. Activate nothing, seed no actor or identity link, and leave runtime/PREP/project/Celery behavior unchanged.What changed
0043_project_setup_serviceafter merged ART migration0042_guide_extraction; it widens only the database identity constraint and refuses downgrade while the new identity is in use.Design and scope control
The existing fixed-service matrix and controlled provisioning route are reused. No new authorization protocol, runtime path, human/project grant, service actor seed, generic setup authority, route activation, Celery cutover, or prepared-handle serialization was added. Later chunks 12E/12F/12G own product-action activation; 12B2 owns final service cutover.
Acceptance proof
py_compile: pass.0042_guide_extraction → 0043_project_setup_service.Internal review
Architecture PASS; security PASS; QA PASS; product/ops PASS; CI integrity PASS; docs PASS; reuse/dedup PASS WITH LOW RISKS; test delta PASS; senior engineering PASS WITH LOW RISKS. Post-main merge architecture, QA, and CI integrity re-reviews pass. All valid findings were repaired and no reviewer sessions remain open.
External review
CodeRabbit completed its substantive review; its migration-coverage finding was fixed and resolved. A previous full Backend run passed, then the documentation repair exact-head run exposed an unrelated existing lifecycle-concurrency flake; its unchanged retry passed. The current merged-main head
b220b15fis running fresh Backend, Agent Gates, and incremental CodeRabbit checks.Remaining risks and follow-up
Migration 0043 briefly takes
ACCESS EXCLUSIVEonactor_profiles; this is documented and the migration is constraint-only. The four actions remain deliberately unavailable until their owning activation chunks.Human review focus
Confirm exact identity/matrix cardinality, zero activation/zero seed, frozen 0023 isolation, linear ART-0042/AUTH-0043 migration custody, and downgrade safety. Human merge ownership remains with the user; this PR must not be merged without explicit approval.
Summary by CodeRabbit
New Features
workstream.project.setupservice identity.Documentation
Tests