Repository navigation
feat(patchy): manage patch lifecycles from the CLI - #266
Conversation
Astra reviewReviewed StandardsNo merge-blocking method findings. The lifecycle commands reuse the existing target resolution, API client and output contract. The shared description validator keeps CLI and server normalization consistent. No merge-blocking YAGNI findings; refusal details and warning retention support the requested lifecycle and sync behavior. SpecNo merge-blocking intent findings. The diff covers the lifecycle verbs and confirmation/force rules, actionable refusals, description initialization and pull-down, repo/file description handling, definition-change reminders, and the required docs and skills. VerificationFocused offline checks passed: 58 tests across 4 files, with 194 unrelated tests skipped. Coverage included CLI lifecycle/refusal behavior, publish recovery, description sync, reminders, dev-start notices, and owner lifecycle API behavior. I did not rerun the packed end-to-end suite. Summary: Standards 0 blockers, worst issue none; Spec 0 blockers, worst issue none. |
Code review (PR 266 / #253)Two-axis review of StandardsNo Effect service findings. New CLI errors are Documented standards (hard)Hit every surface — The CLI (
Hit every surface — Vocabulary (
Fix: delete the leftover “not implemented” line; mirror ADR-0004’s failure envelope and command list in the global skill, README flags/env, and Smells (judgement only)Duplicated Code — Repeated Switches — Shotgun surgery across README/ADR/skills/api is required by Hit every surface — suppressed. SpecQuoted against #253 and parent #247 §6 / §8. (a) Missing or partial
(b) Not asked for
(c) Looks done, looks wrong
Intent of #253 vs what landed#253 is the owner lifecycle on the CLI agents already use: take a live tool off, delete it with a 30-day window, bring it back, roll a live address to a retained version, and keep The PR solves that problem. The spirit miss is agent copy, not missing verbs. The global skill still says the new verbs are not implemented, while a new section teaches the opposite. Admin CLI was not invented; serving 404s were left for ticket 11. MethodLifecycle policy stays in
Pull-down by stamp, not remembered text, is the correct last-write-wins: local edits leave CLI tests are mostly contract tests (kind, code, fields, no HTTP on local refusals). Caveats: agent copy is duplicated ( A simpler method: canonicalize definitions (drop default flags) then deep-equal; one Verdict: the method is sound with caveats. YAGNIThe verbs, description sync, and reminder are the spec. Four handlers on existing Trim, don’t rewrite:
The six new tagged refusals look like Speculative Generality if you only look at the JSON envelope (
keep lifecycle handlers and Other surfaces (not the two axes)
Standards: 5 documented-standard findings (plus 2 judgement smells); worst is the global skill still teaching that lifecycle verbs are not implemented. Spec: 2 missing/partial, 2 scope-creep, 2 looks-wrong; worst is the same leftover skill copy (an agent following “Take that page down” omits |
Resolve PR #266 review findings about stale lifecycle status, deletion confirmation, failure envelopes, flags and credentials. Clarify local description refusals and explicit-target behavior, and refresh the distributed skill hash.
Review dispositionsFixed in f78ef9a after checking both conversation reviews against the implementation. The Reviews tab and inline review list were empty when checked. Fixed
Kept as is, with reasons
Verification
CI on GitHub reports |
245511c to
bca7cd9
Compare
Resolve PR #266 review findings about stale lifecycle status, deletion confirmation, failure envelopes, flags and credentials. Clarify local description refusals and explicit-target behavior, and refresh the distributed skill hash.
f78ef9a to
e06d472
Compare
bca7cd9 to
24e628b
Compare
Implement #253 with typed lifecycle refusals, repo description pull-down, and definition-change reminders. Preserve notices on failures and publish recovery, and update the CLI documentation and distributed skills.
Give startup checks a 15-second outer deadline around their existing 10-second subprocess timeout. The full suite exposed the shorter 5-second test deadline under load; configuration and credential-safety assertions are unchanged.
Resolve PR #266 review findings about stale lifecycle status, deletion confirmation, failure envelopes, flags and credentials. Clarify local description refusals and explicit-target behavior, and refresh the distributed skill hash.
e06d472 to
8829cb8
Compare
Company, Connections and Your machines used separate page treatments, so navigation and controls changed between signed-in pages. They now share one app shell and one component set. Auth doors keep their card, `/` stays unchanged, and existing forms and permissions keep their behavior. The UI review spec and product glossary now document the shared controls. Stacked on #266 (`portal/253-cli-verbs`), which is this PR's base. The diff contains only issue #254's shell and component work. Closes #254. ## Verification - Typecheck and lint passed. - Full offline suite: 877 tests across 79 files passed. - Final focused page suites: 57 tests passed after review corrections. - Exercised all four signed-in pages and form success/refusal paths through this worktree's dev instance; captured PNGs and checked 390px layouts. - Standards findings fixed and rechecked; no Spec findings remain. Implemented with GPT-6 Astra in Oh My Pi.
Patch owners need to manage their patches from the CLI and keep repo descriptions in sync with portal edits.
Adds lifecycle commands and description sync, with actionable refusals and definition-change reminders. Notices remain visible when commands fail or recover a saved publish attempt. CLI documentation and distributed skills describe the new behavior.
Stacked on #265 (
portal/252-patchy-list). This PR intentionally targets that branch, notmain.Fixes #253.
Verification
pnpm lintpnpm typecheckpnpm test: 875 tests across 79 files passedpnpm test:packed-cli-e2e: complete real-server workflow passedThe full suite exposed a startup test's outer deadline being shorter than its subprocess timeout. A separate commit aligns those deadlines without changing the assertions.
Implemented with GPT-6 Astra in Oh My Pi.