Repository navigation
feat(patchy): let agents discover patches with list - #265
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. SpecNo merge-blocking intent findings. The command forms, lifecycle filters and refusals, JSON documents, Verification: Summary: Standards 0 findings; Spec 0 findings. No merge blocker identified on either axis. |
Code review of PR 265Compared StandardsDocumented standards
Effect.catch((error) =>
fail(
error.message,
error.kind,
error.code,
error._tag === "WrongPatchState" ? error.state : undefined
)
),
Judgement (baseline / vocabulary) Mysterious Name. CONTEXT.md Discovery Avoid: inspect. New agent copy uses that verb for the drill-down: Shotgun edits across skills/ADR/README are required by the CLI contract surfaces. Not a smell here. SpecNo material spec gaps. (a) Missing or partial. None of the Done-when items are missing.
(b) Scope creep. None that is not §7/§8 follow-through (URL last-segment, no slashes, (c) Implemented but wrong vs required copy. None. Required phrases are present:
Intent vs #252The problem was that agents could list company connections, but finding an existing tool or a usable shared table still meant calling What shipped does that job. Where the letter is met and the spirit is thinner: after the three-step chain, the global skill and Text for
MethodOne This is the smallest method that matches the spec. Patch names are an open set, so Costs of that seam, none of them a reason to change the method:
I would not use subcommands. I would not fold Discovery into YAGNIDiscovery.ts is not a framework. One Nothing here is machinery the spec did not already buy. What would be more beautiful if deleted:
Do not introduce a Level union. The Option unwrap at the CLI boundary ( SurfacesAll required surfaces are hit.
CLI testsThe implementation matches ADR-0004 Discovery. Holes that #252's Done when did not require, but the ADR lists:
Wrong-state JSON uses SummaryStandards: 3 findings (worst: |
|
Addressed the review in commit 245511c. I read both conversation reviews and checked submitted reviews and inline comments; those contained no additional findings. Fixed
Kept as is
Verification
The PR remains stacked on |
7e9fb39 to
aebcfa1
Compare
245511c to
bca7cd9
Compare
aebcfa1 to
986ea11
Compare
Implement issue #252 across the CLI, discovery skills, contracts, and packed e2e.
bca7cd9 to
24e628b
Compare
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, not `main`. Fixes #253. ## Verification - `pnpm lint` - `pnpm typecheck` - `pnpm test`: 875 tests across 79 files passed - `pnpm test:packed-cli-e2e`: complete real-server workflow passed The 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.
Agents could list company connections, but finding an existing tool or a usable shared table still required direct API calls.
patchy listnow follows the discovery chain from company patches to a patch's tables, stores and reads, then to individual schemas. It replacescatalog, preserves wire JSON and lifecycle refusals, and teaches the same chain in all six skills and the CLI docs.Stacked on
portal/251-connections-group(#264), which provides the connections API. This PR targets that branch and contains only the CLI discovery work.Closes #252.
Verification
pnpm typecheckandpnpm lintpassed.pnpm test --maxWorkers=4: 821 tests passed across 78 files.pnpm test:packed-cli-e2epassed, including discovery against two seeded patches through the installed CLI.One default-concurrency rerun timed out in an unchanged server startup test. That file passed in isolation, and the full suite passed with four workers without changing any timeout.
Implemented with
openai-codex/gpt-6-astrausing Oh My Pi.