Repository navigation
[Bugfix #619] Fix ASPIR prompt reference, porch init in spawnTask, and fragile phases check - #635
Closed
timeleft-- wants to merge 2 commits into
Closed
timeleft-- wants to merge 2 commits into
timeleft-- wants to merge 2 commits into
Conversation
…d fragile phases check
- codev-skeleton/protocols/aspir/builder-prompt.md: Fix 'Follow the SPIR
protocol' to say 'Follow the ASPIR protocol' with correct path
- codev/protocols/aspir/builder-prompt.md: Same fix for our own copy
- codev-skeleton/protocols/{aspir,spir}/protocol.json: Change has_phases_json
check from literal 'grep -q' to 'grep -qE' regex to handle whitespace
variants like '"phases" :'
- codev/protocols/{aspir,spir}/protocol.json: Same fix for our own copies
- packages/codev/src/agent-farm/commands/spawn.ts: Call initPorchInWorktree
in spawnTask when hasExplicitProtocol is true (was silently skipped)
- Add regression test for all three bugs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Cast Tooltip formatter to `any` to satisfy recharts' Formatter type — the runtime behavior is unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
CMAP Review Results3-way CMAP review ran (Gemini, Codex, Claude). The consult tool fetched the PR metadata but couldn't produce actionable verdicts (returned template placeholders — likely needs code diff context). No REQUEST_CHANGES were raised. All 8 regression tests pass. Build passes. Unit tests pass (2037 passed, 13 skipped, pre-existing flaky tests excluded). |
Contributor
|
Cherry-picked the fix commit (349b089) directly onto main. All 2315 tests passing. Thanks for the contribution! |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #619 — three one-liner bugs found during dogfooding:
ASPIR builder-prompt referenced SPIR —
codev-skeleton/protocols/aspir/builder-prompt.md(and ourcodev/protocols/aspir/builder-prompt.md) saidFollow the SPIR protocol: codev/protocols/spir/protocol.md. Fixed to say ASPIR.af spawn --task --protocolskipped porch init —spawnTask()inspawn.tsnever calledinitPorchInWorktree()whenhasExplicitProtocolwas true. Added the call inside thehasExplicitProtocol && !options.resumepath (matching whatspawnSpecandspawnBugfixalready do).has_phases_jsoncheck used fragile literal match —grep -q '"phases":'breaks when JSON is formatted with whitespace (e.g."phases" :). Changed togrep -qE '"phases"\s*:'in all four protocol.json files (bothcodev-skeletonandcodevcopies of aspir/spir).Bonus fix: The dashboard
AnalyticsView.tsxhad a pre-existing TypeScript error (TS2322) introduced by #541 that blocked the build. Fixed with a minimalas anycast — no runtime behavior change.Root Cause
spawnTask'shasExplicitProtocolbranch had all the protocol/mode/template logic but missed the porch init call that both other spawn variants include.Fix
codev-skeleton/protocols/aspir/builder-prompt.md:SPIR→ASPIR(and path)codev/protocols/aspir/builder-prompt.md: Samecodev-skeleton/protocols/{aspir,spir}/protocol.json:grep -q→grep -qEwith\s*codev/protocols/{aspir,spir}/protocol.json: Samepackages/codev/src/agent-farm/commands/spawn.ts: AddinitPorchInWorktree()call inspawnTaskwhenhasExplicitProtocol && !options.resumepackages/codev/dashboard/src/components/AnalyticsView.tsx: Fix pre-existing TS2322 (unrelated to bug: ASPIR builder-prompt references SPIR, spawn --task skips porch init, fragile phases check #619, needed for build to pass)Test Plan
bugfix-619-aspir-prompt.test.tscovering all three bugs (8 tests, all passing)CMAP Review
(In progress — results will be added after review completes)
🤖 Generated with Claude Code