Repository navigation
test(portal): prove the deployed patch lifecycle - #272
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The row-lock change addresses the reassignment race without introducing another abstraction, and its callers retain their transaction boundaries. SpecNo merge-blocking intent findings. The packed flow exercises an actual shared-table consumer, discovery, retirement refusal and force, the seeded-session notice, restore, rollback, description pull-down, and the portal index/card. The real-Postgres cases cover the requested races, including both sweep/restore outcomes. The documentation and skill changes match the built lifecycle. VerificationPassed locally on the reviewed commit:
Summary: Standards 0 findings; Spec 0 findings. No merge blocker on either axis. |
Opus reviewFirst reviewer, standing in for grok build. Two-axis review per Verdict: merge. No hard violations on either axis. Everything below is a nit or a judgement call. StandardsClean. No documented standard is broken.
SpecClean against #259, with one partial. Verified item by item:
One finding:
Intent vs. what landed#259 asked for three things and got all three. The part I'd single out is that the e2e's dependant is now a real second patch — Method, and the lifecycle fixThe races are written the right way round: gate on a real backend PID and assert Worth being precise about what the bug was, because it is a wire-contract violation, not a cosmetic one. The fix is the right size: lock the row alone, then read it, at Two residual notes, both judgement calls:
YAGNINothing built for a future #259 didn't ask for. Smaller: Summary
Nothing here blocks the merge, and nothing blocks closing #230. 🤖 Generated with Claude Code |
|
Reviewed the Astra and Opus comments, the Reviews tab and inline comments. Both reviewers recommend merging; there were no separate review bodies or inline findings. Follow-up fixes are committed and pushed in Fixed
Kept as is
Verification on the latest commitLocal checks passed: all 7 real-Postgres concurrency tests, all 30 Patches tests, the complete packed CLI e2e, targeted typechecking, lint and formatting. CI run 35014334904 completed successfully for The stacked base |
f1fe3d1 to
719d695
Compare
2d9fd06 to
33f737e
Compare
719d695 to
c0163e1
Compare
Complete #259 with packed source/consumer lifecycle and seeded-session portal coverage, real-Postgres races, and the built-feature documentation pass. Fix the reassignment race exposed by the new test: lock the patch before joining its owner so a waiting publish reports NotOwner instead of PatchUnavailable. Verified 935 offline tests with two workers, seven real-Postgres concurrency tests, the complete packed CLI e2e, typecheck, lint and formatting. The default-worker run hit one unrelated five-second Postgres runtime timeout; that test passed alone and in the full bounded-worker run. Leave portal map #230 open until this change merges.
Assert both source and dependant appear in discovery, clarify missing inventory failures and reader-frame targeting, preserve signal checks around browser navigation, and consolidate the flow summary. Document the transaction invariant and name the owner-lock span.
33f737e to
84167a9
Compare
…281) Patch lists loaded inventory they never display, and user lifecycle commits locked every patch in the company. Lifecycle API refusals repeated the same response construction. Fetch inventory only for detail routes. Keep the dependency advisory lock and transaction owned by Patches, and change selected patches in ID order before changing the user. Share the refusal mapping without changing wire bodies or unavailable-inventory semantics. The rollback regression still proves patch and user changes commit together. Stacked on #272, with base branch `portal/259-e2e-docs`. This PR contains only the cleanup commit above that stack. ## Verification - `pnpm lint` - `pnpm typecheck` - `pnpm test:postgres-concurrency` — 7 passed - `pnpm exec vitest run packages/portal/src/PortalPages.test.ts` — 47 passed Implemented with `openai-codex/gpt-6-astra` using Oh My Pi.
The portal build needed end-to-end proof of its deployed lifecycle, real-Postgres race coverage, and docs that describe what is now built.
The packed CLI flow now publishes a shared-table source and a real consumer, exercises discovery, retirement refusal and force, restore, rollback and description sync, and checks the portal and address notice with the seeded browser session. The new races exposed a stale owner join after reassignment; locking the patch before reading its owner fixes the incorrect not-found refusal. The docs pass includes ADR-0002's missing
connectionsgroup and the skill hash.Stacked on
portal/258-address-notice; that branch is this PR's base, notmain.Closes #259. Portal map #230 is ready to close when this PR merges; it remains open.
Verification
--maxWorkers=2. The default-worker run hit one unrelated five-second Postgres-runtime timeout; that test passed alone and in the full two-worker run. No timeout changes.Surface check
ui-consistency.Implemented with OpenAI GPT-6 Astra in Oh My Pi.