AGENTS.md instructions for /Users/staggart/orca/workspaces/.agents/bowhead…
- User
AGENTS.md instructions for /Users/staggart/orca/workspaces/.agents/bowhead
Global instructions for coding agents. Project-level
AGENTS.mdorCLAUDE.mdfiles add local context and override only overlapping instructions.Context Gate
- For project, code, docs, planning, review, and debugging work, gather context before answering, planning, or editing. No cold answers from memory.
- Start each session or task with the closest applicable context pass:
- Read the local
AGENTS.mdorCLAUDE.md, task docs, and relevant project files. - Prefer
qmd-knowledge-basefor non-trivial framing and planning, and use it when prior context may change broad explanations, work, debugging, or review. Exact, already-grounded tasks may skip it. - Use RepoPromptCE for non-trivial codebase context. Prefer MCP tools:
file_search,get_file_tree,read_file,get_code_structure,context_builder, andmanage_selection. If MCP is unavailable, userpce-cli. Fall back torgand shell reads only when RepoPromptCE is unavailable or the scope is exact and small.
- Read the local
- Inspect source files to verify drift-prone or implementation-level details surfaced by QMD or RepoPromptCE.
- For non-trivial work, briefly state which context and proof surfaces were checked. Mention skipped context tools only when that limits confidence.
Working Style
- Work with a senior Design Engineer specializing in TypeScript and React.
- Aim for the smallest resulting system, not the smallest diff. Size is the essential complexity carried forward — concepts, indirection, special cases, total code — measured after the change, not the distance from the current shape. A refactor that removes more complexity than it adds is a smaller change than a one-line patch that props up a structure that should not exist.
- Treat the current shape as a candidate, not a constraint. Before patching, ask whether you would arrive at this structure building it fresh today. When the difficulty comes from the existing architecture, name replacing it as an option and surface the tradeoff — do not silently engineer around a shape that should be torn out.
- Wake up smarter than yesterday. Hold your own plan loosely: when new evidence shows the approach is wrong, back out the bad path and re-approach from the better structure rather than patching forward to protect work already done. Sunk effort is not a reason to ship a worse design.
- Understand the business reason before optimizing the code shape.
- User
<environment_context> /Users/staggart/orca/workspaces/.agents/bowhead zsh <current_date>2026-07-25</current_date> America/Los_Angeles <workspace_roots>/Users/staggart/orca/workspaces/.agents/bowhead</workspace_roots><permission_profile type="disabled"><file_system type="unrestricted" /></permission_profile> </environment_context>
- User
026-07-26/. Hard rules from the runbook: never commit; never edit anything under skills/ except the documented run-history notes updates; scratch work under /tmp/ce-evals/; on a suite failure, record it with the capture path and stop that suite — do not patch skills. Narrate progress as you go (which suite, which eval, which run) so a human watching this terminal can follow along.
- Assistant
I’ll first recover the exact task from the workspace and the
2026-07-26/run materials. I’m usingprompt-checkbecause the request arrived as an operational fragment; I’ll only inspect context until the intended suite is clear. - Assistant
The workspace confirms this is an evaluation run, with substantial pre-existing changes that I will leave untouched. I found the canonical runbook under
.ai/evals/; next I’m reading it and the dated run definition before starting any suite. - Assistant
The normalized contract is: run the remaining regression campaign from
.ai/evals/RUNBOOK.md, store results under.ai/evals/results/2026-07-26/, never commit, and stop an individual suite at its first failure after recording the capture path.I’m using
qmd-knowledge-basenow because this campaign depends on prior cleanup decisions and run history. Then I’ll verify each suite definition directly before launching fresh runs. - Assistant
Context check is complete: QMD had no campaign-specific history, so the live runbook and current suite definitions are authoritative. RepoPromptCE confirmed the three Tier 1 suites and their exact stop conditions.
Before Suite 1, I’m checking the runner’s skill-discovery path so each fresh session tests this working tree, not an installed stale copy.
- Assistant
Suite 1 is
ce-brainstorm. I will run eval 2, runs 1–3, then eval 3, runs 1–3. Each run gets its own fresh git fixture and ephemeral Codex session; the working-tree skill is referenced by absolute path and is read-only to the runner. - Assistant
Suite
ce-brainstorm, eval 2, run 1 is active. The runner loaded the working-tree skill and confirmed the fixture is a lightweight CLI change with no conflicting implementation. - Assistant
Suite
ce-brainstorm, eval 2, run 1 passed the shape check: no questions, a two-sentence Path A announcement, and an explicit same-turn artifact skip.Starting eval 2, run 2.
- Assistant
Suite
ce-brainstorm, eval 2, run 2 also passed: no question and a one-sentence Path A artifact skip.Starting eval 2, run 3.
- Assistant
Suite
ce-brainstorm, eval 2 is 3/3 on Stage 1.Starting eval 3, run 1. The scripted user answer grants read-only sharing to selected teammates or teams, allows copying, forbids editing the original, and allows revocation; any remaining detail gets the simplest explicit default.
- Assistant
Suite
ce-brainstorm, eval 3, run 1 has reached the question/synthesis phase. RepoPromptCE was unavailable inside the isolated scratch session, so the runner used the permitted live-file fallback and continued; this does not affect the routing contract being graded. - Assistant
Suite
ce-brainstorm, eval 3, run 1 passed both stages: one blocking product question, the scripted answer was incorporated, and the final turn was a substantive Path B synthesis with no document written.Starting eval 3, run 2.
- Assistant
Suite
ce-brainstorm, eval 3, run 2 is still active. It fired the expected sharing-scope question and is composing the Path B checkpoint from the scripted answer; no document has been written. - Assistant
Suite
ce-brainstorm, eval 3, run 2 passed. It asked one bounded sharing-model question, incorporated the answer into concrete access semantics, and stopped at confirmation.Starting eval 3, run 3.
- Assistant
Suite
ce-brainstorm, eval 3, run 3 is still active. This isolated runner successfully bound RepoPromptCE on retry and is finishing its context pass before the scripted dialogue. - Assistant
Suite
ce-brainstorm, eval 3 is 3/3 on the observed routing and substance checks. Run 3 asked more product questions than the other runs, but still satisfied the eval contract: questions fired, scripted answers were incorporated, and the full confirmation gate appeared.Starting the fresh suite grader now.
- Assistant
The fresh grader confirmed
ce-brainstormpasses: eval 2 is 3/3 Path A; eval 3 is 3/3 Path B with all substance checks passing.I’m recording the suite result and the two permitted run-history note updates now. No skill behavior files will be changed.
- Assistant
ce-brainstormis fully recorded and its JSON remains valid.Suite 2 is
ce-plan: six evals, two runs each. I’m preparing a small webhook/API fixture so the format tests exercise real planning output without unrelated product ambiguity; eval 5 will be staged explicitly as a parent-skill sub-step. - Assistant
Suite
ce-plan, eval 1, run 1: commentedplan_output: htmlmust be ignored, so the expected artifact is Markdown. - Assistant
Suite
ce-plan, eval 1, run 1 is active. The runner correctly recognized the config line as commented and resolved Markdown before planning. - Assistant
Suite
ce-plan, eval 1, run 1 has completed its fallback research and is writing the plan. The output-mode check remains Markdown; no blocking question fired. - Assistant
Suite
ce-plan, eval 1, run 1 passed: the commented config produced a.mdplan.That run was expensive because the toy repo had no retry precedent. I’m tightening only the scratch fixture—not the skill—by adding an existing local backoff helper. This keeps later runs faithful while removing irrelevant external-research work from a format-only suite.
- Assistant
Suite
ce-plan, eval 1, run 2: same commented config, expected Markdown. The fixture now supplies the local retry pattern the planner should reuse. - Assistant
Suite
ce-plan, eval 1 is 2/2 Markdown.Eval 2, run 1: active HTML config plus explicit
output:md; the argument must win. - Assistant
Suite
ce-plan, eval 2, run 1 produced Markdown as required;output:mdoverrode the active HTML config.Starting eval 2, run 2.
- Assistant
Suite
ce-plan, eval 2 is 2/2 Markdown.Eval 3, run 1: active HTML config with no argument; expected artifact is
.html. - Assistant
Suite
ce-plan, eval 3, run 1 correctly resolved HTML and is composing the first.htmlplan. No blocking question fired. - Assistant
Suite
ce-plan, eval 3, run 1 produced the required.htmlartifact.Starting eval 3, run 2.
- Assistant
Suite
ce-plan, eval 3 is 2/2 HTML.Eval 4, run 1: unknown
output:pdfmust fall through to Markdown and emit a one-line note naming Markdown as the resolved format. - Assistant
Suite
ce-plan, eval 4, run 1 passed:.mdplus the required “ignoredpdf; resolvedmd” note.Starting eval 4, run 2.
- Assistant
Suite
ce-plan, eval 4 is 2/2 Markdown with the required ignored-value note.Eval 5, run 1: I’m staging an actual headless parent-skill sub-step with HTML config active. Pipeline mode must force Markdown.
- Assistant
Suite
ce-plan, eval 5, run 1 is a valid staged pipeline run and produced Markdown despite active HTML config.Starting eval 5, run 2.
- Assistant
Suite
ce-plan, eval 5 is 2/2 Markdown from real staged pipeline runs.Eval 6 tests token parsing. I’m adding a local rate-limit helper to the scratch fixture so the two runs stay focused on preserving the literal
feat:description instead of doing unrelated standards research. - Assistant
Suite
ce-plan, eval 6, run 1: expected Markdown, withfeat:preserved as part of the plan subject and no ignored-token note. - Assistant
Suite
ce-plan, eval 6, run 1 preserved the fullfeat: add rate limiting to the public APIsubject in both title and plan body, with no ignored-token note.Starting eval 6, run 2.
- Assistant
All 12
ce-planruns are complete:- Eval 1: 2/2 Markdown
- Eval 2: 2/2 Markdown
- Eval 3: 2/2 HTML
- Eval 4: 2/2 Markdown with ignored-value notes
- Eval 5: 2/2 staged pipeline Markdown
- Eval 6: 2/2 Markdown with
feat:semantics preserved
Starting the fresh suite grader.
- Assistant
ce-planis at the grading gate. I’m polling the fresh grader now; if it passes, I’ll record the suite and update only its permitted run-history notes. - Assistant
ce-planpassed: 6/6 evals, 12/12 fresh runs. I’m recording that proof now, then I’ll startce-ideateat eval 1, run 1. - Assistant
ce-ideateeval 1, run 1 is starting. This checks the ambiguous-subject scope gate: one scope question, scriptedCancel, and no agent dispatch. - Assistant
ce-ideateeval 1, run 1 passed its route check: one scope gate,Surprise mepresent,Cancelexited, zero dispatches. Starting run 2 with a fresh repo and agent. - Assistant
ce-ideateeval 1, run 2 also passed the route check. Starting run 3; this is the final stability run for the vague-prompt gate. - Assistant
ce-ideateeval 1 is stable at 3/3.Starting eval 2, run 1. The scripted user selects
Surprise me; from there the run must proceed without more questions and produce repo-grounded ideas. This is the first full dispatch run. - Assistant
ce-ideateeval 2, run 1 reached dispatch. One collaboration spawn reported a runtime “no thread” error; I’m letting the fresh runner finish so the capture can show whether the required grounding and ideation actually completed. If the route fails, I’ll record that capture and stop this suite as required. - Assistant
ce-ideateeval 2, run 1 recovered past the initial runtime warning. Grounding completed against the Chatter CLI’s command, notification, and snooze flows; six ideation passes are still running. - User
continue, we lost internet for a second there
- Assistant
Resuming
ce-ideateeval 2, run 1 from the existing runner. The raw candidate checkpoint was written before the interruption; I’m checking whether the runner is still live and letting it finish the artifact and capture. - Assistant
The interrupted runner process is gone. I’m checking its scratch state now; if the final capture is missing, I’ll preserve the partial checkpoint and restart eval 2, run 1 cleanly rather than treating an interrupted transport as a skill failure.
- Assistant
The workspace results survived, but
/tmp/ce-evals/was cleared with the interruption. Becausece-ideatehad not been graded or recorded, I’m rebuilding only its scratch fixture and rerunning its completed intake checks. I will not rewrite the already-recordedce-brainstormorce-planoutcomes. - Assistant
ce-ideateeval 1, replacement run 1 is starting after the scratch reset. The check remains: one scope question, scripted cancel, zero dispatches. - Assistant
ce-ideateeval 1, replacement run 1 passed. Starting replacement run 2. - Assistant
ce-ideateeval 1, replacement run 2 passed. Starting replacement run 3. - Assistant
ce-ideateeval 1 is restored at 3/3.Restarting eval 2, run 1 from a clean repo. The runner will select
Surprise me, dispatch the full repo-grounded workflow, and write a capture only after the surviving ideas are available. - Assistant
ce-ideateeval 2, run 1 is in grounding. The runner again recovered from the known initial thread-attachment warning and has anchored on the actual README, CLI entrypoint, fan-out function, and snooze model. - Assistant
ce-ideateeval 2, run 1 has completed grounding and is generating candidates in two three-agent batches. No second user question has appeared. - User
sorry, restart again
- Assistant
Understood. I’m terminating the interrupted eval 2 runner and restarting run 1 from a fresh scratch repo. The completed eval 1 captures remain intact.
- Assistant
The terminated runner had actually reached its final artifact and capture, but I’m honoring “restart again” literally. I’m preserving that interrupted attempt under an
interruptedscratch name and starting a new eval 2, run 1. - Assistant
ce-ideateeval 2, restarted run 1 is healthy through intake and grounding dispatch. The known first-spawn warning recovered again; no network error has appeared in this attempt. - Assistant
ce-ideateeval 2, restarted run 1 has finished the first candidate batch and is dispatching the second. The scripted path still has zero follow-up questions. - Assistant
ce-ideateeval 2, restarted run 1 has 54 grounded candidates filtered to six survivors. It is now writing the ranked ideation artifact and capture; no follow-up subject question occurred. - Assistant
ce-ideateeval 2, run 1 completed successfully: full grounding, six ideation frames, 54 candidates, six repo-grounded survivors, and no subject follow-up afterSurprise me.Starting eval 2, run 2 with a fresh repo and agent.
- Assistant
ce-ideateeval 2, run 2 reached the same initial thread-attachment issue. It is retrying through the repository-agent interface; I’ll only accept the run if the capture proves grounding and ideation dispatches completed. - Assistant
ce-ideateeval 2, run 2 recovered cleanly: three grounding agents completed, and the first three ideation frames have returned through RepoPromptCE. No follow-up question has been asked. - Assistant
ce-ideateeval 2, run 2 has 48 agent candidates plus seven cross-cutting combinations checkpointed. It is now applying the post-ideation filter and ranking survivors. - Assistant
ce-ideateeval 2, run 2 completed: three grounding agents, six ideation frames, five concrete repo-grounded survivors, and no later subject or characterization question. The final handoff had no scripted answer, so this run used the skill’s valid no-save exit.Starting eval 2, run 3.
- Assistant
ce-ideateeval 2, run 3 is grounding against the same five-file Chatter repo. The runner recovered from the initial fork warning; no follow-up subject question or network error has appeared. - Assistant
ce-ideateeval 2, run 3 finished the first ideation batch and has dispatched the remaining three frames. The intake contract remains clean. - Assistant
ce-ideateeval 2, run 3 has filtered 54 candidates to six repo-grounded survivors. It is recording the no-save completion and capture now. - Assistant
ce-ideateeval 2 is stable at 3/3 full runs.Starting eval 3, run 1 outside any Git repo. The scripted user gives
idk just goto the single substance request; the expected route is a clean exit with zero dispatches. - Assistant
ce-ideateeval 3, run 1 passed: one substance ask, scripted refusal, zero agents, clear re-invocation path. Starting run 2 outside Git. - Assistant
ce-ideateeval 3, run 2 passed. Starting run 3, the final outside-repo stability check. - Assistant
ce-ideateeval 3 is stable at 3/3.Starting eval 4, run 1 in the UI fixture. The command is
/ce-ideate dark mode; the runner will stop at the dispatch notice so we can prove the short, identifiable subject was not gated. - Assistant
ce-ideateeval 4, run 1 passed the intake route: repo footprint found the fixed light theme, zero questions, dispatch notice reached. Starting run 2. - Assistant
ce-ideateeval 4, run 2 passed. Starting run 3, the final suite runner. - Assistant
ce-ideateeval 4 is stable at 3/3. All 12 suite runs are complete.I’m starting the fresh grader now against the owner rubric, all captures, and the saved/scratch idea artifacts. If any run fails, I’ll record the failing capture and stop this suite without touching skill behavior.
- Assistant
The fresh grader is inspecting all 12 captures and the eval 2 checkpoints. It has identified the final “what next?” menu separately from intake questions, as required by the rubric; grading is still in progress.
- Assistant
ce-ideatefailed fresh grading: evals 1–3 passed 9/9 runs, but eval 4 failed 0/3 because the harness stopped at the cost notice instead of allowing actual dispatch.Per the runbook, I’m recording the failure with all three capture paths and stopping
ce-ideate. I will not edit the skill or its run-history notes. - Assistant
ce-ideateis now recorded and closed. I’m moving to Tier 2 smoke coverage, which is a separate suite. I’m reading the exact smoke stop conditions before startingce-work. - Assistant
Tier 2 smoke,
ce-work: starting one fresh run on a tiny Node CLI. Pass requires a real--versionimplementation,ce-quality-gate, explicit contract/proof, and no shipping option if proof is missing. - Assistant
Tier 2 smoke,
ce-workpassed: implementation, real CLI proof, quality gate, and a non-shipping completion menu.Starting
ce-quality-gatewith a deliberate lint violation in a touched file. Pass requires a scoped failure report and no repo-wide or shipping claim. - Assistant
Tier 2 smoke,
ce-quality-gatepassed its expected shape: it failed the touched file precisely, limited its claims, and offered no shipping route.Starting
ce-reviewon a small staged-intent diff with one planted pagination off-by-one. The reviewer must cite the file and line, explain the consequence, and edit nothing. - Assistant
Tier 2 smoke,
ce-reviewpassed: it found the planted off-by-one atsrc/page.js:2, named the concrete short-page consequence, ran the failing test, and left source untouched.Starting
ce-debugon the same one-line failure. It must take the fast path and stop at a cause-and-fix choice gate without creating a debug document. - Assistant
Tier 2 smoke,
ce-debugpassed its fast-path shape: reproduced failure, complete causal chain, one-line fix, user-choice gate, zero debug docs.For
ce-decompose, I will use an existing two-commit range read-only. The runbook asks for two commits, and the campaign forbids creating commits, so I’m checking the current repository’s last two commits rather than manufacturing history. - Assistant
Tier 2 smoke,
ce-decomposemeasured the existing range using commit-local stats and rename-aware range semantics. It has identified the 12-linebroaddition separately from the 4,476-line mixed workflow/remotion change and is building the carve proposal without rewriting history. - Assistant
Tier 2 smoke,
ce-decomposepassed: correct two-dot/rename-aware measurements, explicit 16-unit carve, confirmation gate, zero history changes.Starting
ce-compoundon a fixed pagination bug. Pass requires at most one mode question, one.ai/solutions/document, and frontmatter validation exit 0. - Assistant
Tier 2 smoke,
ce-compoundwrote one solution document and its focused test plus frontmatter validator both passed. It is recording the schema and validation evidence now. - Assistant
Tier 2 smoke,
ce-compoundpassed: one mode question, one valid solution document,validate-frontmatter.pyexit 0, test pass.Starting
ce-compound-refreshwith two intentionally overlapping pagination learnings. It must recommend consolidation and stop before deleting anything. - Assistant
Tier 2 smoke,
ce-compound-refreshpassed: clear Consolidate recommendation, exact interaction, zero edits/deletes.Starting
ce-handoffwith a minimal completed-work status. Pass requires the handoff template’s core sections and actionable continuation context. - Assistant
Tier 2 smoke,
ce-handoffpassed: durable handoff, required sections, verification state, unresolved decision, and a usable starter prompt.Starting
ce-grillon a short pagination plan. The run will stop at the first substantive interview question and capture the question shape. - Assistant
Tier 2 smoke,
ce-grillpassed: one decision-relevant question, recommendation plus alternatives, zero edits.Starting
ce-councilon the same plan. Pass requires five distinct advisors and an anonymized synthesis/review. - Assistant
Tier 2 smoke,
ce-council: all five independent advisor positions are complete. The runner randomized them to anonymous Responses A–E and is now running identity-blind peer review. - Assistant
Tier 2 smoke,
ce-councilpassed: five advisors, five anonymous peer reviews, chairman synthesis, and verified HTML report.Starting
ce-simplify-codeon a tiny redundant wrapper. It must produce behavior-preserving suggestions only and leave code untouched. - Assistant
Tier 2 smoke,
ce-simplify-codepassed: one defensible wrapper-removal suggestion, explicit behavior-preservation reasoning, zero source edits.Starting
ce-slack-researchwith explicit opt-in to search for pagination-contract decisions. Pass requires the Slack dispatch path; no messages will be sent. - Assistant
Tier 2 smoke,
ce-slack-researchsuccessfully exercised read-only Slack search after explicit opt-in. It found 14 broad pagination hits but no decision about negative sizes or-1; Slack write count remains zero. - Assistant
Tier 2 smoke,
ce-slack-researchpassed: explicit opt-in, authenticated read-only search, source-backed synthesis, zero Slack writes.Next is
ce-sessions. I’m checking its minimal safe command so the smoke run exercises the guardrails without mutating session state. - Assistant
ce-sessionsminimal safe input is a scoped prior-work question. I’m running it read-only against this repository for earlierce-planoutput-mode work. The check is that it uses metadata/skeleton extraction, excludes the current session and raw tool/thinking content, and caps deep dives at five. - Assistant
Tier 2 smoke,
ce-sessionsfound one matching prior Claude session, extracted only a bounded skeleton with zero parse errors, excluded the current session, and dispatched the isolated historian. It is recording the synthesis and guardrail proof now. - Assistant
Tier 2 smoke,
ce-sessionspassed: one prior session selected, bounded skeleton extraction, current-session exclusion, historian synthesis, and explicit coverage gaps. A non-blocking stop hook failed after the capture was complete; the runner itself exited 0.Final smoke runner:
ce-optimizePhase 0 only. I’m locating its example spec and CP-0 contract before starting. - Assistant
All 14 Tier 2 smoke runners are complete. I’m starting a fresh aggregate smoke grader against the runbook’s exact pass conditions and every capture. If any row fails, I’ll record that capture and stop the smoke suite.
- Assistant
Picking up at the final smoke-suite grade. I’ll poll the existing fresh grader, then record
smoke.md, write the campaign summary, and verify only the allowed files changed. - Assistant
The fresh grader is still inspecting all 14 captures and their referenced artifacts. It has completed the runbook pass; I’m waiting for its final grade rather than pre-judging the smoke suite.
- Assistant
Artifact checks are complete. The grader is now reconciling each run against the smoke-specific pass condition, including the expected failing lint fixture and the two orchestration fallbacks.
- Assistant
Smoke suite result: FAIL, 13/14.
ce-slack-researchfailed because the required researcher dispatch never executed (no thread with id); direct Slack fallback does not satisfy that contract. Per the runbook, I’m recording the failure with its capture path and stopping the smoke suite—no skill patch or notes update. - Assistant
I’ve confirmed the workspace is still on the original commit and branch. I’m writing only the two campaign artifacts now: the smoke failure report and the aggregate summary.
- Assistant
Result files are written. Final verification now checks: 14 smoke captures exist, both permitted JSON note edits still parse, failed-skill files were untouched, the reports read back correctly, and
HEADdid not move. - Assistant
Verification found the main worktree already has unrelated dirty
ce-ideatefiles and untracked eval directories. I’m tightening the summary so it distinguishes campaign edits from pre-existing workspace state; I will not touch or revert those user changes. - Assistant
Campaign complete: overall FAIL.
ce-brainstorm: PASS, 6/6ce-plan: PASS, 12/12ce-ideate: FAIL, 9/12- Tier 2 smoke: FAIL, 13/14 (
ce-slack-researchdispatch failure)
See summary.md and smoke.md.
No commits were created. Failed skills were not patched. The internet interruption erased the earlier
/tmpcaptures for the passing brainstorm and plan suites; this is documented in the summary.