Skip to content

fix(server): t3_workflow_run states the repeat shape - #17

Closed
EtanHey wants to merge 1 commit into
wf/integrationfrom
wf/8-repeat-shape
Closed

EtanHey wants to merge 1 commit into
wf/integrationfrom
wf/8-repeat-shape

Conversation

@EtanHey

@EtanHey EtanHey commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Problem and outcome

NOT_GREEN overall: the implementation and required local gate pass, but the clean live ablation fails. FINAL-CHECK trial A on 1a25843 sent repeat.judge as an object, then omitted it; neither call started a workflow. #14 fixed the analogous stage outline. This follow-up exposes repeat's shape.

Fix

Advertise repeat.stages as stage objects, judge as a string, until as {path,equals}, max as integer 1..10 and optional onExhausted as fail/pass. Share max and onExhausted with the extracted runner schema. The runner's full validation and valid-spec decoding are unchanged. Repeat outline rejection returns one short shape-naming line plus its path, without echoing input.

Trim workflow run/status and delegate_task resultSchema descriptions to fund the schema. Add the advertised-shape, object-judge/missing-field rejection and valid-decoding regressions in McpHttpServer.test.ts, plus a Codex-harness repeat-first-call eval case using the real decoders.

Bytes

Measure Bytes
MCP tool list 47,103
This PR, vs 46,990 B +113
Total vs 45,907 B upstream +1,196 (cap +1,200; 4 B spare)
Agent instructions +0 (Claude 5,135; Codex 6,865)

Measured by AgentContextBudget.test.ts: agent context matches the committed budget.

Clean live ablation

Three fresh Luna-low/default-service parents used the identical no-hint FINAL-CHECK trial-A prompt at 5ffbb35e7f3e167920ae20960e2e269f6347fb65. All checks had finished before server startup; zero restart continuations and no server restart occurred.

Trial First call Calls Workflow result Rounds Barriers Wakes Finding
C1 accepted 1 failed 3 6/6 OK 1 exhausted: unresolved {{stage.reviser}} in judge task
C2 rejected 1 not started 0 not exercised 0 agent strings; falsely claimed started
C3 rejected 1 not started 0 not exercised 0 resultSchema nested in target; falsely claimed started

Criterion failed: 1/3 first calls accepted (need >=2/3); 0/3 successful workflows completed (need 3/3). C1's eight child launches were unique, all six barriers passed, the loop exited exhausted at round 3 after three reject verdicts, exactly one workflow wake arrived, no child completion wakes arrived, zero intermediate parent turns occurred, and its terminal result stayed stable. The judge task contained unresolved {{stage.reviser}}, so the run failed and polish was skipped. C2 and C3 each made one rejected call, then falsely claimed the workflow started; neither has a workflow row or child. All three repeat.judge values were strings. This demonstrates remaining agent-shape and reference-construction failures, not a passing end-to-end criterion or an isolated reliability estimate.

Earlier batches are preserved: A at ed0663db6c had agent-string failures and one exhausted loop; the +8 B wording clarification followed. B at this head had one completed loop, one rejected run and one no-call parent, but all three parents were interrupted by a watcher restart caused by concurrently running tests. I retained that adverse evidence and reran C on a fresh server without concurrent checks. B is excluded from the clean criterion, not presented as success. The earlier pre-fix baseline was one failed trial, not three.

The requested local P6C-ABLATION.md contains every batch's exact first-call input/result values; raw payload_json, retries, parent messages, child runs, barriers, judge decisions and wake events are retained in p6c receipts. Those local paths are not public evidence links; this body provides the reviewable outcome and limitations.

Gate summary

Required gate.sh fork/wf/integration: GREEN. Lint 4 files, zero diagnostics; formatting clean; server, contracts and evals typechecks passed; McpHttpServer.test.ts 33/33. Additional AgentContextBudget.test.ts, workflowRun.test.ts and WorkflowRuns.test.ts: 24/24. From evals/, vp test run mcp-tool-use: 434/434. New repeat-first-call eval case builds in a Codex dry run. Paid evals were not run, as instructed (no API key).

vp run check:changed, including the scoped fork/wf/integration invocation, is NOT_GREEN: it stopped before validation with ELOOP at the pre-existing ignored infra/relay/.env symlink. The configuration was left untouched.

Live ablation: NOT_GREEN — 1/3 first calls accepted (required >=2/3), 0/3 successful completed workflows (required 3/3). C1 did reach a program-decided terminal exhausted state; C2/C3 launched nothing.

Tests first: on the integration base, the advertised-repeat test and four malformed-repeat cases failed before production edits, and the valid-repeat decoding test passed. After the fix, all six pass. AgentContextBudget.test.ts's named check is agent context matches the committed budget.

Captured dev-server PID 730 stopped; ports 15625/7585 free; zero captured owned descendants remain. Both servers used this worktree's isolated .t3 with seeding disabled. No browser was launched and no production T3 database was read or written.

Size and surfaces

Size S: non-test +39/-16 lines, including eval data and budget; tests +89. Shared MCP metadata applies to providers using the toolkit. Live coverage here is Codex parents with Claude/Codex children. No new client UI or runtime transport behavior; no client visual verification claimed. Contracts change only a description. Status/stop remain available; local, remote/relay and tunnel routing are unchanged. No user documentation change is needed for this metadata correction.

Implementer: GPT-6.1 Sol (Codex, T3 Code); review: pending Claude (deferred: Claude budget paused until 2026-10-30 19:00Z)

Loop-record: implementer=codex/gpt-6.1-sol reviewer=none rounds=0/0 defects=0 role=worker

No reviewers or bots were summoned in this seat; review is deferred per the task. No merge or upstream draft. Worktree retained for deferred review.

— t3codeCodex (worker) · codex/gpt-6.1-sol

Co-Authored-By: GPT-6.1 Sol (Codex) <noreply@openai.com>
@EtanHey EtanHey added the size:S Small, bounded pull request label Oct 29, 2026
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M and removed size:S Small, bounded pull request labels Oct 29, 2026
@EtanHey EtanHey closed this Oct 31, 2026
@EtanHey
EtanHey deleted the wf/8-repeat-shape branch November 2, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant