Repository navigation
Description
Summary
isAaSection (pm-stack/aggregator/src/aa.ts:1092) — the structural gate the live source applies to the feed's AA section before /aa renders it (src/sources/live.ts:1110) — still checks several fields shallower than their consumers dereference them. #2415 deepened the gate for thresholds, sources, and testRuns[].snapshotDate; the same class remains for:
configs— checked only asArray.isArray(s.configs)(aa.ts:1109).renderAapasses it toaaConfigsTable(render.ts:5513), which dereferencesc.modelNameon every entry (render.ts:5340): a[null]entry throws.testRuns[].modelVariantKey— entries are checked only forsnapshotDate(aa.ts:1113-1120).aaTimingsTablecallsvariantLabel(r.modelVariantKey), which doesmodelVariantKey.split("|")(render.ts:5321-5330): an entry without it throws. (The aggregator(aa): isAaSection never checks thresholds or sources — a section missing them passes the gate and crashes the /aa render instead of degrading #2415 test's own "complete section" fixture —testRuns: [{ testRunKey, snapshotDate }]— crashesrenderAafor exactly this reason.)coverage(optional) — never checked.renderAareadscov.catalogNotPooledMeasured.lengthand passes the four arrays toaaNameList(render.ts:5396-5402):coverage: {}or a non-array field throws.catalog(optional) — never checked.renderAacallscatalog.map((e) => e.provider),catalog.filter(...)(render.ts:5406-5410):catalog: {}or a[null]entry throws.cai(optional) — never checked.renderAacallsaaCaiPoints(s.cai)(render.ts:5415) andaaCaiTable(s.cai)(render.ts:5514), both of which.mapover rows and dereference row fields: a non-arraycaior a[null]row throws.
Verified this run
Laptop probe (verbatim aggregator src/ from f2006aa, md5-matched aa.ts 826aad6c / render.ts 2d99393c; probe dir probe-2026-11-01-laneB-aagate/ on the laptop) — a complete minimal section renders fine (control), and every variant below passes isAaSection (gate=true) while renderAa throws TypeError:
configs=[null]→c.modelNameon nulltestRuns=[{testRunKey, snapshotDate}](nomodelVariantKey) →modelVariantKey.spliton undefinedcoverage={}→cov.catalogNotPooledMeasured.lengthon undefinedcoverage.catalogNotPooledMeasured="x"→names.map is not a functionin aaNameListcai="x"→rows.map is not a functionin aaCaiPointscai=[null]→r.versionon nullcatalog=[null]→e.provideron nullcatalog={}→catalog.map is not a function
Why it matters
The gate's contract (per #2415) is that a section it accepts renders, and a malformed section degrades to the not-collected banner instead of throwing in the request path. The feed is a shared document with more than one producer (#3852), so a drifted optional field currently turns /aa into a 500 rather than a degraded page — the exact failure #2415 fixed for the fields it covered.
Acceptance criteria
isAaSectionchecksconfigsentries (object with stringmodelName),testRuns[].modelVariantKey(string), and — when present —coverage(object whose four name lists are string arrays),catalog(array of objects with a stringprovider— gate at the depth renderAa dereferences:provider,disabled,routes,aaScore), andcai(array of row objects) at the depth their consumers dereference them.- A section failing any of these reads as absent/degraded, never throws in
renderAa. - New gate tests in the style of test/aa-gate-2415.test.ts covering each variant above, plus a render-fine control with all optional fields present and well-formed.
- Collector-built sections (aaSectionFromRaw output) still pass the gate unchanged.
Related: #2415 (same gate, thresholds/sources), #3441 (generatedAt depth), #2576 (umbrella validation contract — this is a concrete instance).
Activity
dezren39 commentedon Nov 2, 2026
agent-note:v1
state: filed
Found via: filed this run (new-issue-creator-code-b, lane B) — isAaSection gate-depth follow-on to #2415, verified with a laptop probe over verbatim aggregator sources at f2006aa: gate-passing sections with malformed configs/testRuns/coverage/catalog/cai throw TypeError in renderAa.
Next: triage via the enqueued repo-task packet.
165 remaining items
dezren39 commentedon Nov 10, 2026
Lane code-l picked up task 14336 (issue #4169) — handed off to opencode claimant, with an escalation flag.
user/escalated. The escalation was recorded by task 13404 (pr_shepherd, blocked escalated-to-user on 2026-11-08): disposition of PR fix(aggregator): gate aa configs/testRuns/coverage/catalog/cai at render depth (#4169) #4565 (the scoped fix for aggregator(aa): isAaSection still gates configs/testRuns/coverage/catalog/cai shallower than renderAa dereferences — gate-passing sections throw on /aa #4169: aa.ts gate-depth) awaits Drew. The claimant session should disposition that escalation as part of its review before implementing; this lane does not touch PR fix(aggregator): gate aa configs/testRuns/coverage/catalog/cai at render depth (#4169) #4565.dezren39 commentedon Nov 10, 2026
agent-note: task 14336 handed off to opencode claimant (lane row 5566) by lane code-w. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Fresh state (lane code-w, 2026-11-10): issue #4169 OPEN carrying user/escalated; PR #4565 OPEN carrying user/escalated + queue/blocked + status/blocked - the Drew disposition requested 2026-11-08 via task 13404 is still outstanding, so nothing on PR #4565 was touched this shift. Attempts 5/6. Parked 1200s for the claimant.
dezren39 commentedon Nov 11, 2026
Picked up and revalidated: issue #4169 remains open; PR #4565 remains open and owns the fix. This runbook prohibits touching Drew-owned PRs or creating a competing PR. Parked task 14336 for 30 minutes; resume after the ownership restriction is resolved. Existing escalation and parked labels were preserved.
fix(aggregator): gate aa configs/testRuns/coverage/catalog/cai at ren…
test(aggregator): aa-gate-5289 fixtures carry modelVariantKey (#4169)
Merge pull request #4565 from developing-today/queue/6322-4169-aa-gat…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done (fixed_merged) — task 14336 (issue #4169)
isAaSectionat render depth forconfigs,testRuns[].modelVariantKey,coverage,catalog, andcai(full review + verification record on PR fix(aggregator): gate aa configs/testRuns/coverage/catalog/cai at render depth (#4169) #4565, comment 6785201800: aa test files 46 pass on the laptop, collector-built sections still pass, Codex clean).user/escalatedlabels from the PR and this issue.