You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
research_workflow: profile, state block and trigger fixtures are shape-trusted — non-object JSON and wrong-shape transcript/concepts/dependencies fields surface as bare Attribute/Key/Type errors naming no file or field, not the tool's fail() diagnostics #6854
scripts/research_workflow.py validates some parsed-JSON fields with its own fail() (a ValueError carrying a specific message — e.g. "Profile requires string workflow_docs", "Unsupported workflow state version"), but the top-level shapes and several required state fields are used raw. A valid-JSON-but-wrong-shape profile, state block, or trigger fixture therefore surfaces as a bare Python error that names neither the file nor the field, instead of the tool's own diagnostic. The CLI (main(), research_workflow.py:1079-1088) catches these types, so the run exits 1 with e.g.:
$ research_workflow.py check --repo-root <root with .agents/research-workflow.json = []>
error: 'list' object has no attribute 'get'
— an operator cannot tell which file is malformed or what shape was expected.
Evidence (verified this run, laptop @ 65beb42, real file verbatim, probe ~/git/fleet/probe-rw-shape/)
Controls all behave as designed: a valid profile loads; a valid state block loads; a valid triggers array passes check_profile; a transcript hash mismatch fails cleanly via fail().
Wrong shapes (all raw, none via fail()):
profile() (research_workflow.py:79-80): profile JSON [], "x", null, 42 → AttributeError: '<type>' object has no attribute 'get' (the .get("version") check runs before any isinstance guard).
read_state() (research_workflow.py:694-695): state block JSON [] / "x" / null → same raw AttributeError.
check_package() transcript (research_workflow.py:753): transcript as a string → TypeError: string indices must be integers; transcript missing → KeyError: 'transcript'; transcript without path → KeyError: 'path'. (Unlike events/stage/status/created_at, which are validated with fail() just above at :741-751.)
check_package() concepts: concepts as an object → TypeError: string indices must be integers; missing → KeyError: 'concepts'; a list of strings → TypeError.
dependencies() (research_workflow.py:183-187): missing dependencies → KeyError: 'dependencies'; a string edge → AttributeError: 'str' object has no attribute 'get'; concepts as an object → TypeError.
check_profile() trigger fixtures (research_workflow.py:950): the array itself is isinstance-checked (:948-949), but an entry that is a string → AttributeError: 'str' object has no attribute 'get' at entry.get("skill").
Why it matters
This tool is the checker for evidence-preserving research packages; its whole contract is precise, named diagnostics (fail() messages name the field and the expectation everywhere else). A hand-edited or partially-written profile/state block — exactly the corruption a checker exists to catch — instead produces a message that points at no file and no field, sending the operator to read the source to find which of the four JSON inputs is malformed. This is one more instance of the #3068 parsed-is-not-validated pattern, in a file that already has the right idiom (fail()) and applies it inconsistently.
Acceptance criteria
profile() rejects a non-object top level with fail() naming the profile file and the expected object shape, before the version check.
read_state() rejects a non-object state block the same way, naming the package.
check_package() validates transcript (object with string path/sha256), concepts (list of objects), and dependencies presence/type with fail() messages naming the field, before indexing them.
dependencies() / frontier() and the check_profile() trigger-fixture loop validate edge/entry shapes with fail() instead of raw .get on unchecked values.
Regression tests in scripts/tests/test_research_workflow.py cover each wrong shape above and assert the clean fail() diagnostic (and the CLI's error: … line names the field/file).
Valid profile/state/triggers fixtures behave byte-identically to today (existing test suite green).
Agent: new-issue-creator-code-b (new-issue-creator job, lane B)
Session / ID: cron new-issue-creator-code-b run 2026-11-07 02:20 CST
Found via: filed this run
Task: research_workflow profile/state/trigger-fixture shape validation — verified on the laptop @65beb42c1a with the real file verbatim (probe ~/git/fleet/probe-rw-shape); controls pass, 17 wrong shapes raise raw Attribute/Key/Type errors instead of fail() diagnostics
Expectation: effort/s — done when the boundary shapes are validated with fail() messages naming file/field and regression tests cover them
Links: queue packet enqueued to repo-health-code-pilot this run
Expectation: s — done looks like a PR with the validation + regression tests in scripts/tests/test_research_workflow.py, verified, merged under standing criteria if green
Picked up by repo-worker-code-h — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-h posts progress markers; after 30 minutes of silence any other worker may pick this up.)
Released by repo-worker-code-h (outcome: done). task 11080 fixed_merged: PR #7014 merged 9e443e2, issue #6854 closed; broker complete returned not-claimed verdict mid-shift so outcome recorded via fallback per runbook 0b; tests: unittest scripts.tests.test_research_workflow 63 OK on laptop; Codex clean; PR #7014
agent-note:v1
task 11080 — lane code-g done (already_done)
Fresh verification 2026-11-09T11:12Z: PR #7014 MERGED 2026-11-08T02:10:30Z (merge sha 9e443e2); issue #6854 CLOSED 2026-11-08T02:10:32Z with status:done. Checkpoint on task 11080 recorded tests from prior lane: laptop unittest scripts.tests.test_research_workflow 63 OK at c44987c, Codex clean. Completing task 11080 as already_done — no new work needed.
Activity
developing-today commentedon Nov 7, 2026
CODE-2122
dezren39 commentedon Nov 7, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 8, 2026
🤖 Agent note · picked up
7 remaining items
Merge pull request #7014 from developing-today/queue/11080-6854-resea…
dezren39 commentedon Nov 8, 2026
🤖 Agent note · done
dezren39 commentedon Nov 8, 2026
Picked up by
repo-worker-code-h— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-code-hposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 8, 2026
Released by
repo-worker-code-h(outcome: done). task 11080 fixed_merged: PR #7014 merged 9e443e2, issue #6854 closed; broker complete returned not-claimed verdict mid-shift so outcome recorded via fallback per runbook 0b; tests: unittest scripts.tests.test_research_workflow 63 OK on laptop; Codex clean; PR #7014dezren39 commentedon Nov 9, 2026
agent-note:v1
task 11080 — lane code-g done (already_done)
Fresh verification 2026-11-09T11:12Z: PR #7014 MERGED 2026-11-08T02:10:30Z (merge sha 9e443e2); issue #6854 CLOSED 2026-11-08T02:10:32Z with status:done. Checkpoint on task 11080 recorded tests from prior lane: laptop unittest scripts.tests.test_research_workflow 63 OK at c44987c, Codex clean. Completing task 11080 as already_done — no new work needed.