Repository navigation
feat(serving): explain retired and deleted patch links - #271
Conversation
Astra reviewReviewed commit StandardsNo merge-blocking method or YAGNI findings against the repository, Effect-service and UI-consistency standards. SpecNo merge-blocking intent findings. The notice, Restore choice based on the current version's sources, reader admission, cache policy and routing requirements are covered. The server already owns the root and catch-all on the supplied base; this change adds coverage rather than another registration. VerificationAll 125 tests passed across six files: Summary: Standards 0 findings; Spec 0 findings. No merge blocker identified on either axis. |
Opus reviewFirst reviewer standing in for grok build. Two-axis review per Overall this is a good change. It adds a real feature while removing 29 lines from Standards1. 2. The PR never names which Hit every surface entries applied. 3. Duplicated Code —
§11 forbids the import ("Serving never imports the portal"); it does not forbid a shared home. 4. Divergent date rendering — 5. Readability — 6. 7. Clean otherwise: service file order, namespace imports, SpecEvery obligation in #258 is met. Verified individually: the notice on the address, Two notes, no missing requirements. 8. The signed-out reader can now enumerate addresses. This is the one item I want your call on. I read this as spec-forced, not scope creep: a reclaimed patch is gone from the table and so is indistinguishable from a name that never existed, therefore §11's "a reclaimed patch is 404 for everyone" cannot hold while unknown names keep the door. The implementation is honest and the new behaviour is pinned by tests. But it is a product trade — company scope promises "Not the public", and address existence is now public — and nothing records it. Either (a) keep it and say so in 9. Intent vs. what was built#258 asked for two things and got both, with one caveat about credit. The notice half is faithful and complete, down to details the ticket only gestured at — the form-vs-link choice is computed from the current version's sources even when the reader is at a historical URL ( The routing half is half-inherited. " The 414 half is genuine and better than the ticket asked. The real defect it fixes is not visible in the ticket text: Effect's router defaults to MethodWhat I like: the change reached for structure that already existed in three places rather than adding a parallel mechanism. Tests are the right kind: real layers, 10. The one seam this PR creates is untested. 11. 12. YAGNI and beautyNothing here is built for a future #258 did not ask for. No new migration, no new wire route, no new package, no new component or CSS rule, no configuration, no abstraction with one caller. Two places where it is less beautiful than it should be, both already above: the four-way copy of the portal's off-card copy and arithmetic (finding 3), and the 950-character single-expression render (finding 5). Neither is over-building — they are under-factoring, and they are the parts most likely to drift out of sync with the card they were copied from. One smaller cost: Summary
Reviewed with Claude Opus 5 (1M context) in Claude Code. |
|
Reviewed both conversation reviews, the Reviews tab and inline review comments. The Reviews tab and inline comments were empty. Fixes are in f1fe3d1. Fixed
Kept, with reasons
The existing lifecycle admission matrix stays together because it exercises one patch's retained-to-reclaimed transition across readers and URL forms. The new cross-package form scenario is isolated. The repeated Patches lookup/authorization check stays because addressNotice must enforce its own company, disabled-state and Openability checks rather than trust an earlier caller read. The PR description now explicitly credits the base branch for root/catch-all ownership; this PR adds routing coverage, not that wiring. Verification
|
5967258 to
fdc8c65
Compare
f1fe3d1 to
719d695
Compare
fdc8c65 to
06ba077
Compare
719d695 to
c0163e1
Compare
Retired and deleted patch links gave colleagues a 404, with no explanation or way to restore the tool. They now show an app-shell notice with who took it off, when, and the recovery time left. Owners and admins can restore directly or review unavailable sources first; every colleague gets a link to the patch card.
The address, version and content URLs share the notice and private cache policy. Signed-out readers keep the login door for retained patches; foreign, disabled and reclaimed patches stay 404. Overlong portal names use the guard’s route table, and tests verify the server’s sole ownership of
/and the catch-all, inherited from the base branch.Stacked on
portal/257-deactivation-pick, which provides the portal routes and shared components. This PR targets that branch, notmain.Closes #258.
Verification
f1fe3d1f0f6f55e615dd31b7402465ffe6386c1b. All eight reported checks passed./tmp/foreman/258/shots/:retired-notice-owner-reviewed.png,deleted-notice-owner-reviewed.png,retired-card-owner-reviewed.png.Hit every surface
Implemented with GPT-6 Astra in Oh My Pi.