Repository navigation
Conversation
…nt_control) Byte-identical to opencharly/opencharly: .opencode/plugins/agent-progress.ts (agent_progress monitor + agent_control control), scripts/check-agent-progress.mjs (A static / B unit incl. the RCA regression / C live), and the instructions.md section documenting both tools. Pure TypeScript — no .sh, no marketplace pin.
Review — BLOCKHead SHA: Change class: opencode harness config ( Security screen: PASS — no secrets/exfil, Blocks
Comment intakeNo comments on the thread — nothing to re-derive or disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ew round 1) Byte-identical to opencharly/opencharly: delete CONFIRM_WINDOW_S (zero refs), wire KNOWN_TOOLS via unknownTools(), move the delete children query into CONTROL_SQL.
Review — BLOCKHead SHA: Change class: opencode harness config ( Security screen: PASS — no secrets/exfil, the one Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: opencode harness config ( Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ete dead code (review round 2) Byte-identical to opencharly/opencharly#313: R3 (ONE collectAnalyses + ONE SQL.counts, no CONTROL_SQL.turns), R1 (`all` honoured via resolveTarget), and the dead-code removal (SQL.lastEvent, the unused `stale` local). Gate coverage added.
Review — BLOCKHead SHA: Change class: opencode harness config ( Security screen: PASS — no secrets/exfil, the one Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…verging comments, gate `wait`+`confirm_stopped` (review round 4) Byte-identical to opencharly/opencharly#313: R1 (display/verdict artifact reconciliation + two corrected doc comments) and B12 (Layer B drives the `wait` and `confirm_stopped` control paths). Gate: 113 unit / 121 live, 0 FAIL.
Review — BLOCKHead SHA: Change class: opencode harness config ( Security screen: PASS (no secrets/exfil; the one Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 unanswered BLOCK/INCONCLUSIVE verdictsThis PR has received 5 non-PASS validator verdicts — Why: re-running the validator against the same unfixed head only adds another verdict and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch. Fix every finding from any This is a policy action, not a code finding — the validator verdict on this run stands. |
|
RESOLVED — superseded by #153 This PR auto-closed at the 5-verdict block threshold ( Every finding from every BLOCK verdict on this thread is fixed in ONE commit on the successor:
This closed thread is no longer acted on. Follow the successor. Agent: |
…e-identical to opencharly/opencharly#320) (#153) * feat(opencode)!: agent monitor + control plugin (agent_progress + agent_control) Byte-identical to opencharly/opencharly: .opencode/plugins/agent-progress.ts (agent_progress monitor + agent_control control), scripts/check-agent-progress.mjs (A static / B unit incl. the RCA regression / C live), and the instructions.md section documenting both tools. Pure TypeScript — no .sh, no marketplace pin. * fix(opencode): remove dead control constants + wire KNOWN_TOOLS (review round 1) Byte-identical to opencharly/opencharly: delete CONFIRM_WINDOW_S (zero refs), wire KNOWN_TOOLS via unknownTools(), move the delete children query into CONTROL_SQL. * fix(opencode): one shared collector + counts query, honour `all`, delete dead code (review round 2) Byte-identical to opencharly/opencharly#313: R3 (ONE collectAnalyses + ONE SQL.counts, no CONTROL_SQL.turns), R1 (`all` honoured via resolveTarget), and the dead-code removal (SQL.lastEvent, the unused `stale` local). Gate coverage added. * fix(opencode): reconcile the artifact display/verdict, correct two diverging comments, gate `wait`+`confirm_stopped` (review round 4) Byte-identical to opencharly/opencharly#313: R1 (display/verdict artifact reconciliation + two corrected doc comments) and B12 (Layer B drives the `wait` and `confirm_stopped` control paths). Gate: 113 unit / 121 live, 0 FAIL. * fix(opencode): pin the artifact-completion DONE arm + document it; prove the verify step runs (review round 5) Byte-identical to opencharly/opencharly (successor to #313): B12 (the artifact-completion DONE arm is now pinned by a discriminating fixture), R1 (the DONE definition documents the artifact-completion case), and the charly task verify path proof. Gate: 116 unit / 124 live. --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
The dotgithub copy of the OpenCode subagent monitor + control plugin — byte-identical
to
opencharly/opencharly#313. It lands here because.githubis the org-wide home forthe opencode harness config every session in this clone loads.
.opencode/plugins/agent-progress.tsregisters TWO native V2 tools:agent_progress(MONITOR, read-only) — turns, span, last-activity age, tool mix, theLAST action, artifact hints, and a verdict WORKING / IDLE / LOOP / DONE (with
DONEfor a landed-artifact-then-quiet session). A "message" is an ASSISTANT TURN,never a stall signal.
agent_control(CONTROL):list/interrupt/delete/wait/confirm_stopped.interrupt/delete/wait/confirm_stoppedrequire an EXPLICITses_…id (requireExplicitSessionrefusesall/blank/non-ses_) and report what theystopped — a session another slug owns is never silently killed;
waitis bounded(
DEFAULT_WAIT_TIMEOUT_S).Pure TypeScript — the ONE
execFiledrives the opencode CLI (a tool, likeghincoord.ts), never a.sh; nomarketplacepin.scripts/check-agent-progress.mjsis the 3-layer gate (static / unit against a realread-only SQLite fixture / live against the real opencode binary).
Byte-identity: this head's
.opencode/plugins/agent-progress.ts,scripts/check-agent-progress.mjs, and.opencode/instructions.mdarediff-identical toopencharly/opencharly#313's head.Review rounds — every block fixed in ONE commit on this head
Round 1's code findings (
CONFIRM_WINDOW_Sdeleted;KNOWN_TOOLSwired) were in1a21ebf; rounds 2–3 fixed the R3/R1/dead-code blocks. This head (1edf6a0, plus theupdate-branchmerge) fixes every round-4 block in ONE commit:wait(andconfirm_stopped) shipped with no test. Layer B now drivesrunControl({action:"wait"})through a stubbedctx.session.waitfor BOTH the idleresult and the bounded-timeout result (plus the missing-primitive refusal), and the
confirm_stoppedACTION (STOPPED and STILL RUNNING vs the baseline) — a path with notest now fails to exist.
reportStatusdoc-comment diverged from the code. It claimed BOTH theclassifier and the report call it; only
classifydoes. Comment corrected to match thecode (the ONE source of the terminal state, called by
classify).self-contradicted. The comment claimed a short-session rationale; the fallback is
unconditional (it is LONG/truncated tails that hit it) — corrected. The consequence was
real: the report printed
artifact merged · gh pr merge …beside ano artifactverdict (display used
a.artifacts, verdict useda.recentArtifacts). Fixed: aRECENT artifact in a stale session is now COMPLETION evidence →
DONE, and when onlyOLDER artifacts exist the display labels them
(none recent — transcript history).Display and verdict can no longer contradict; the gate asserts both.
Assisted-by:line is the body's FINAL line.Plus the carried blocks: R3 (ONE
collectAnalyses+sortByVerdict+SQL.countsquery shared by both branches;
CONTROL_SQL.turnsdeleted), R1 (resolveTargethonours
all), B14(a)/R5 (SQL.lastEvent, the unusedstalelocal deleted).How tested
All commands executed on the new head
1edf6a0(this branch, post-update-branch).The gate — Layer A + B, on this head:
Layer C — the REAL opencode binary (v2.0.19), live-or-skip, on this head:
121 PASS / 0 FAIL / 0 SKIP with the live layer on this head.
The round-4 coverage (new assertions):
A REAL
agent_progressrun against the live store — the COMPLETE output of ONEinvocation:
A REAL
agent_controllistrun — the COMPLETE output of ONE invocation:Byte-identity with #313 (the shared files), verified at the final heads:
R5 dead-code self-test:
grep -c 'SQL.lastEvent\|const stale '→0; the onlyCOUNT(*) AS turns … MAX(time_created)occurrence isSQL.countsitself.Rulebook compliance
git-workflow,plugin,agents,skills.artifact display/verdict contradiction is FIXED (not documented); all gates green.
collectAnalysesloop + ONEsortByVerdict+ ONESQL.countsquery, shared by both branches;CONTROL_SQL.turnsdeleted.CONTROL_ACTIONS,DEFAULT_WAIT_TIMEOUT_S,DEFAULT_LIMIT,DEFAULT_SINCE_MIN,VERDICT_RANK,SQL,CONTROL_SQL; no staleconstant cited.
CONFIRM_WINDOW_S,SQL.lastEvent, the unusedstalelocal are gone in this same tree.a REAL
/bin/falsefor the failing-CLI case; the live layer drives the REAL binary.1edf6a0.Change classification
.opencode/*,scripts/check-*.mjs) — notdocs-only.
scripts/check-agent-progress.mjs(A/B/C — 113 unit, 121 with thelive layer, on this head).
(
agent_progress+agent_control list) ran live against the real opencode binary andthe real store, with the output retained above; there is no
charlyproject in this repo,so no
charly task verifygate exists to run.Byte-identical to opencharly/opencharly#313; the skill source is
opencharly/layer-charly-internals#66.
Agent:
agent-monitor-control· sessionses_f13e97f62ffebD0x2sHlT4KW19Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)