Skip to content

docs(plans): fix verified-claim drift in agent-factory spec + add plain-language overview - #1954

Merged
kovtcharov-amd merged 2 commits into
mainfrom
docs/agent-factory-verified-claims
Jul 7, 2026
Merged

kovtcharov-amd merged 2 commits into
mainfrom
docs/agent-factory-verified-claims

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Why this matters

The merged factory spec (#1914) still claims the −k·stdev eval band is future M2 work when it already ships in scorecard_gate.py (#1894), calls #1913 unmerged (it merged July 1 — M1's dependency story changed), and carries a recipe example whose own fields wouldn't validate (min_ctx: 8192 vs the real 65536, a calendar scope that doesn't exist in the connector catalog). Anyone scoping M1–M3 from the spec as-is would plan against wrong facts. This PR corrects every claim a code-verification pass refuted, and adds a two-page plain-language overview so stakeholders can understand what the factory is and why we need it without reading 600 lines of stage tables.

Two threads:

  • Corrections — eval-gate status (band ships; M2 = per-agent adoption + oracle), docs(plans): redesign Agent UI as a thin host over sidecar agents (v2) #1913 merged, coder dependency re-scoped (gaia-agent-code ships on main; the unmerged piece is src/gaia/coder/, ~420 commits behind), recipe field fixes, and honesty patches (gitignored ground_truth.json, dispatch-only scorecard refresh, no CLI hub-install, tarball excludes examples/tests, darwin-x64 best-effort, CI wires neither skills nor memory).
  • Overview doc — docs/plans/agent-factory-overview.md, the 'what/why' companion for first-time readers.

Test plan

  • grep sweep for the stale forms (unmerged #1913, 8192, committed/curated, on a cadence, re-run 1–17, already in CI) — zero hits remain
  • Every corrected claim cites its evidence: scorecard_gate.py band logic (Email-triage eval strategy: multi-run variance, confidence intervals & determinism #1894), lemonade_client.py min_ctx_size=65536, connectors/catalog/google.py scope names, tests/fixtures/email/.gitignore (ground truth derived), email_scorecard_refresh.yml triggers, npm files whitelist
  • Overview links resolve (agent-factory.md, agent-ui-agent-capabilities-plan.md, hub-publishing.mdx, eval-scorecard.mdx)

A code-verification pass (release workflow, scorecard_gate.py, eval fixtures,
connector catalog, PR #1913 state) found claims the merged spec still gets
wrong. All corrections are against checked evidence:

- The −k·stdev non-inferiority band SHIPS for email (#1894, _within_one_stdev
  in scorecard_gate.py); §5 and stage 13 said it was the M2 upgrade. M2's real
  scope is per-agent adoption (17 adapters + oracles) + the human oracle.
- #1913 merged 2026-07-01: header, stage 10, M1, §10 merge-prereqs, §11.5
  updated — M0 AND M1 now carry no external merge-dependency.
- Coder dependency re-scoped: the orchestration/validators CodeAgent ships on
  main as gaia-agent-code; the unmerged piece is src/gaia/coder/ CoderAgent
  (~420 commits behind) — a port, not a branch merge (§2, stage 6, §9, M3,
  §12.1).
- Recipe example: min_ctx 8192→65536 (MODELS min_ctx_size), calendar→
  calendar.events (real catalog scope), skill names marked illustrative.
- ground_truth.json is derived + gitignored, not committed (§5.5, stage 5b);
  the seed is a scrubbed public benchmark; scorecard refresh is
  workflow_dispatch-only; npm tarball excludes examples/tests; darwin-x64 is
  best-effort in the matrix; no CLI hub-install exists today (§6.5); CI wires
  neither skills nor memory (§9, §12.1); stage-18 rerun scope disambiguated.
The full spec is 600 lines of stage tables and eval methodology — right for
implementers, wrong for a first read. This overview answers 'what is it and
why do we need it' in two pages: agents rot against a weekly-moving SDK,
maintenance across ~18 agents is the dominant cost, our ship rigor exists for
exactly one agent, and quality needs a human-curated gate the pipeline can't
game. Links into the spec, the runtime plan, and the existing publishing/
scorecard guides for depth.
@github-actions github-actions Bot added the documentation Documentation changes label Jul 7, 2026
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions.

This is a docs-only PR that corrects factual drift in the Agent Factory spec (eval-gate status, #1913 now merged, coder re-scoped to gaia-agent-code, recipe field fixes) and adds a plain-language overview. I spot-checked the corrected claims against the actual code and they hold up: the recipe's min_ctx: 65536 matches the real model config, calendar.events is a real catalog scope, the −k·stdev band and floors do ship in the gate script, ground_truth.json really is gitignored, src/gaia/coder/ is genuinely absent on main, #1913 merged July 1, and all four overview links resolve. Good, careful correction work.

One thing worth fixing before merge: the spec now says the scorecard-refresh workflow is "workflow_dispatch-only today," but it also has an active push trigger. So the claim that replaced "refreshed on a cadence" is itself slightly inaccurate — for a PR whose whole job is killing claim drift, worth tightening. Non-blocking.

🔍 Technical details

🟡 "workflow_dispatch-only" understates the refresh triggers (docs/plans/agent-factory.md, §4 scorecard paragraph)

The corrected text reads: "email_scorecard_refresh.yml is workflow_dispatch-only today — a scheduled cadence is a one-line upgrade." But the workflow triggers on both workflow_dispatch and a path-filtered push to non-main branches (.github/workflows/email_scorecard_refresh.yml:40-47, watching hub/agents/python/email/**, tests/fixtures/email/**, and the two scorer scripts). So it already auto-refreshes on relevant branch pushes — that's an event-driven cadence, just not a time schedule. The point you're making (no schedule: cron) is right; the wording overstates it. Suggested tightening of the phrase:

is workflow_dispatch + a path-filtered push on non-main branches today (no time schedule — a scheduled cadence is a one-line upgrade)

This keeps the paragraph's thesis (result is gate + carried provenance) intact while staying accurate to the trigger block. Given the PR's own test plan greps for stale forms, this is the same class of check applied to the replacement text.

Verified accurate (no action)

  • min_ctx: 65536 — lemonade_client.py:212-214 (Gemma-4-E4B-it-GGUF, min_ctx_size=65536); old 8192 was wrong. ✅
  • calendar.events scope — connectors/catalog/google.py:47; bare calendar was not a catalog scope. ✅
  • Band + floors ship — scorecard_gate.py:67 _within_one_stdev, :206 --regression-k, :390 band logic. ✅
  • ground_truth.json derived + gitignored — tests/fixtures/email/.gitignore. ✅
  • gaia-agent-code on main / src/gaia/coder/ absent — confirmed both. ✅
  • npm files whitelist excludes examples/tests — hub/agents/npm/agent-email/package.json:44-53. ✅
  • docs(plans): redesign Agent UI as a thin host over sidecar agents (v2) #1913 MERGED 2026-07-01; overview's four links all resolve. ✅

Strengths

  • Every correction is evidence-cited and, on audit, actually matches the code — this is the rare "fix the docs" PR that got the facts right rather than trading one plausible-sounding claim for another.
  • The overview doc is genuinely readable and stays consistent with the spec it summarizes (18 agents / 1 scorecard / 17 remaining lines up across both files; M0–M4 framing matches).

@kovtcharov-amd
kovtcharov-amd merged commit 5a3f4cd into main Jul 7, 2026
28 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the docs/agent-factory-verified-claims branch July 7, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants