Repository navigation
Closed
Description
Problem
The complete coding workflow — persona receives task, writes code, runs tests, fixes failures, commits — has never been proven end-to-end with local personas. Each piece exists in isolation but the full loop hasn't been wired and validated.
The Loop
1. Receive task ("add fibonacci to math.ts")
2. Read existing code (code/read)
3. Write solution (code/write or code/edit)
4. Run tests (code/shell/execute → pytest/vitest)
5. Parse test output (pass/fail + error messages)
6. If fail: read error, edit code, goto 4 (max N retries)
7. If pass: commit (workspace/git/commit)
8. Report result with confidence score
What Exists
- Sentinel pipeline engine supports this (Shell, Command, Condition, Loop steps)
- All individual commands exist (code/read, code/write, code/edit, code/shell/execute)
- CodingAgent step wraps Claude Code (but unreliable — CodingAgent step: dispatch to Claude Code unreliable, needs error handling and retry #367)
- PersonaToolExecutor can call tools (but selection is broken — PersonaToolExecutor: tool selection, routing, and execution failures #368)
What's Missing
1. A Coding Sentinel Pipeline Template
A recipe/pipeline YAML/JSON that encodes the write→test→fix→commit loop as a reusable sentinel pipeline. Should be a recipe like coding.json but with the actual pipeline steps defined.
2. Test Output Parsing
The sentinel needs to parse pytest/vitest output and extract:
- Pass/fail status
- Error messages and stack traces
- Which tests failed and why
- Feed this back into the LLM step for targeted fixes
3. Retry with Context
When code fails tests, the retry needs to include:
- The original task
- The code that was written
- The test output showing what failed
- Previous attempts (to avoid repeating the same mistake)
4. Validation Before Commit
Don't commit code that doesn't pass tests. The pipeline must gate on test success.
Acceptance Criteria
# This sentinel pipeline should work:
./jtag sentinel/run --pipeline=coding-loop --params='{
"task": "Add fibonacci(n) to src/utils/math.ts with tests",
"testCommand": "npx vitest run src/utils/math.test.ts",
"maxRetries": 3
}'
# Expected: code written, tests pass, committedRelated
- Personas cannot reliably write code — CodingAgent, tools, quality, full loop all broken #366 (meta-issue: personas can't code)
- CodingAgent step: dispatch to Claude Code unreliable, needs error handling and retry #367 (CodingAgent step reliability)
- PersonaToolExecutor: tool selection, routing, and execution failures #368 (tool selection/routing)
- Academy RealClassEval produces trash code with local models — quality baseline needed #369 (code quality with local models)
- Sentinel engine (pipeline execution)
- coding.json recipe (exists but pipeline not defined)
Metadata
Metadata
Assignees
Labels
No labels
Activity
Add sentinel/coding-agent README — enables proper tool schema discove…
Add sentinel/coding-agent README — enables proper tool schema discove…
joelteply commentedon Mar 25, 2026
Progress: README added (PR #407) — tool schema discovery now works. sentinel/coding-agent tested e2e (file creation, error handling). Groq 400 errors from missing param types should resolve. Remaining: full write→test→fix→commit loop proof via chat (blocked by queue latency #399).
joelteply commentedon Mar 25, 2026
sentinel/coding-agent proven working e2e (PR #407 — README for schema discovery). File creation, error handling, training capture all functional. Chat→code autonomous trigger is now #411 scope.
feat(bench): offline difficulty manifest for all 300 Lite instances —…
docs(benchmarks): frontier benchmark coverage list + tiers (Kimi-K3-b…
docs(benchmarks): DOCTRINE — adapt benchmarks INTO our loop, never ru…
docs(benchmarks): frontier benchmark coverage list + tiers (Kimi-K3-b…
docs(benchmarks): DOCTRINE — adapt benchmarks INTO our loop, never ru…
docs(benchmarks): frontier benchmark coverage list + tiers (Kimi-K3-b…
docs(benchmarks): DOCTRINE — adapt benchmarks INTO our loop, never ru…
feat(benchmark): every catalogued suite becomes fetchable — one shape…
feat(benchmark): fetch coordinates are catalog DATA, and each refusal…
feat(benchmark): ONE task shape, per-suite adapters that carry only t…
feat(benchmark): the parse stops at the foreign edge — typed classes …
fix(benchmark): staging held two copies of a dataset to learn one num…
feat(benchmark): staging ADAPTS instead of refusing — one pager, stre…