Repository navigation
refactor(projects): move registration to shared state worker - #149386
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 11:05 AM ET / 15:05 UTC (Revision 10). ClawSweeper reviewWhat this changesMoves project registration and ID allocation into the shared database worker while preserving cloned checkouts after acknowledged or uncertain writes. Merge readiness✅ Ready for maintainer review The registration change remains useful: current main still performs insertion on the host. No actionable introduced defect was found, and the previously blocking listing dependency has landed. Priority: P2 Review scores
Verification
How this fits togetherProjects connects registered local repositories and managed clones to Gateway session creation. Registration validates the checkout, stores its identity, and returns the project record to callers. flowchart TD
A[Local repository or managed clone] --> B[Validate checkout]
B --> C[Hold checkout lease]
C --> D[Shared database worker]
D --> E[Verify live lease and insert or deduplicate]
E --> F[Return project record]
D --> G[Classify write outcome]
G --> H[Preserve checkout or authorize cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +108, Tests +207. Total +315 across 17 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Use the existing shared-state worker for registration while preserving project identities, live checkout ownership, and conservative handling of uncertain writes. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an internal execution-owner refactor, and source review found no concrete introduced failure requiring reproduction. Is this the best way to solve the issue? Yes. It extends the existing worker and lease-admission owners while retaining the same insertion, deduplication, and stored-record contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a58755e9ac9f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
7e73b8e to
476d5e7
Compare
65985f7 to
d4388c2
Compare
Preserve the reviewed removal change while inheriting the canonical wrapper fixture correction and current main ownership. This is a private source composition; prior timeout causes remain unattributed and qualification is still pending.
|
Merged via squash.
|
…w#149386) * refactor(projects): move registry removal to the state worker * refactor(projects): move project listing to shared state worker * refactor(projects): register checkouts through shared state worker
Project registration moves insertion and ID allocation to the existing shared-state worker's synchronous transaction. The host retains the original checkout lease and records acknowledgement before worker finalization, preserving cloned checkouts after acknowledged or uncertain write results.
This restores the 17-file registration change on main after #148637 landed. The previously reviewed registration delta is unchanged; current Catalog and approval worker handlers and Gateway test routes are preserved. Names, deduplication, stored records, schemas, and external SDK contracts stay unchanged.
Source
5d58f496a4ee8a3a6859362629d5596912bc7766on the actual listing parent passed independent P0–P2 review, all 32 selected checks, additional typechecks, 149 routing tests, and six ordinary Projects cases with fresh canonical workers. Refresh and Windows remain separate successors.Historical artifact
1b295847passed its normal build and published-driver inventory/Projects Doctor update cell. Its compiled registration averaged 135.08 ms over 20 warm dedupes; clone proof preserved checkout files. Those samples used the older 32-statement cache, while current main uses 64. Native lease/bootstrap work remained; these are not current-head performance or whole-flow zero-SQL results.Current-head CI is pending. Current artifact qualification is tracked separately. The earlier mock-server exit remains unexplained; this carry does not claim to fix it.