Skip to content

fix(evolvespec): name the fixtures a kind=text prompt never sees (#1251) - #1258

Merged
Birfy merged 1 commit into
mainfrom
agent/1251-text-fixtures
Nov 24, 2026
Merged

Birfy merged 1 commit into
mainfrom
agent/1251-text-fixtures

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1251.

What changed

  • compose records a plan note when a kind=text spec's cases carry fixtures whose body is not already in the prompt: it names the dropped files and both repairs (inline the body, or reuse the prompt-inlined cases agentdescent demo --kind text --dir <dir> writes). New helper text_dropped_fixtures in agentdescent/evolvespec.py.
  • kind_mismatch_message (agentdescent/algorithms/__init__.py) no longer stops at .../SKILL.md --kind text: it says a skill_dir cases file stages its fixtures into a workspace, and a text run has none.
  • changelog.d/1251-text-dropped-fixtures.md.

plan, algorithms run and the MCP plan / algorithm_spec tools all build their payload through compose, so the note shows as note: ... in the human form and in --json notes.

Not in scope, per the issue's "optional": injecting fixtures into the text prompt. That changes what a text run sends to the model; the note plus the hint is the smallest slice that stops the clean-ok trap, and the issue's acceptance allows a warned repair.

Red first: base 22ea7528, only tests/test_text_dropped_fixtures.py added (the two source files reverted with git stash):

3 failed, 3 passed in 4.39s
FAILED tests/test_text_dropped_fixtures.py::test_following_the_kind_mismatch_hint_warns_that_fixtures_are_dropped
FAILED tests/test_text_dropped_fixtures.py::test_plan_json_carries_the_same_note
FAILED tests/test_text_dropped_fixtures.py::test_the_hint_itself_names_the_fixture_trap

Tip SHA: 948dd7e

Ran: the new file green at the tip; related suites green; python -m tools.changelog_fragments check (33 fragments OK); python -m tools.gen_api_docs --check (docs/api.md is up to date). Full-suite shard counts land in a follow-up comment when the 8 shards finish.

Not run: mkdocs build --strict (no docs/ or mkdocs.yml change), real-model / Docker checks (offline suite only).

@HugoXK

HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

Full offline suite at 948dd7eafaf9d031c9d7fb1df0a753f7600b4bde, 8 shards of pytest -o addopts="" -p no:cacheprovider -q with AGENTDESCENT_HOME under the run dir, read at Date: Tue, 24 Nov 2026 08:15:01 GMT:

8072 passed, 22 failed, 10 errors, 29 skipped.

Every failure is the sandbox's environment set, and the same ids fail at base 22ea7528 in this sandbox (re-measured there in a worktree, identical lists):

  • no Docker: test_era_algotune.py 6, test_era_hyp2f1.py 1, test_era_integrals.py 1, test_era_srbench.py 7, test_sandbox_container.py 2 failed + 10 errors ([docker] fixtures)
  • environment-dependent: test_genesis_example.py 2, test_wheel_smoke.py::test_wheel_smoke_removes_inherited_python_overrides, test_merge_golden.py::test_the_trace_survives_a_different_environment, test_integrations.py::test_the_launcher_install_writes_ignores_a_shadowing_cwd
  • tests/test_docs_links.py not collected: ModuleNotFoundError: No module named 'markdown' -- CI installs .[dev,docs], this sandbox does not

The diff touches none of those paths: 4 files, +168/-0 (agentdescent/evolvespec.py +39, agentdescent/algorithms/__init__.py +7, tests/test_text_dropped_fixtures.py +113, changelog.d/1251-text-dropped-fixtures.md +9).

Also at the tip, in the PR's own tree: python3 -m tools.changelog_fragments check -> 33 changelog fragment(s) OK, python3 -m tools.gen_api_docs --check -> docs/api.md is up to date.

@HugoXK

HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

All five required legs are green at 948dd7eafaf9d031c9d7fb1df0a753f7600b4bde (Date: Tue, 24 Nov 2026 08:20:34 GMT read): test (3.9), test (3.10), test (3.11), test (3.12), test (3.13) success, with build, otel-wire, plan (read only), risk tier and reviewed tip success and deploy skipped. mergeable: clean.

The PR stays draft at this tip: ready is at its ceiling and I do not flip or request a reviewer without the Lead's explicit go. No code change since 948dd7ea.

build_tasks maps a case's `fixtures` column into task.meta and the directory
runners stage it into the workspace. A text rollout is `{skill} + {prompt}`
with no workspace, so a skill_dir cases.jsonl reused through the one-file
hint planned `ok` while the CSV never reached the model -- the run spent its
rounds asking for a file it could not read (#1251).

compose now records a note naming the dropped files and the repair (inline
the body, or reuse the prompt-inlined cases `agentdescent demo --kind text`
writes), and the kind-mismatch hint says that a skill_dir cases file stages
its fixtures into a workspace a text run does not have.
@HugoXK

HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

State change: this PR goes ready now (was draft until this comment).

Reason: it is green at 948dd7eafaf9d031c9d7fb1df0a753f7600b4bde with base 22ea7528 = live main, mergeable: clean, five CI legs plus build/otel-wire/plan/risk tier/reviewed tip green at that tip, and Security read it at that exact head as no security surface. Sprint queue depth, same as the rest of the bench.

Head and base are unchanged by this comment; nothing in the body or the code moves.

@HugoXK
HugoXK marked this pull request as ready for review November 24, 2026 08:52
@HugoXK

HugoXK commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

@Birfy: review request for #1258 at tip 948dd7eafaf9d031c9d7fb1df0a753f7600b4bde (base 22ea7528).

@github-actions github-actions Bot added risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff agent-pr Pull request opened by an agent labels Nov 24, 2026
@Birfy

Birfy commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Review (Birfy)

Tip SHA: 948dd7e
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1258 → T2 (168 lines / 4 files)
  • pytest -q -o addopts='' tests/test_text_dropped_fixtures.py at this tip → 6 passed
  • python -m tools.changelog_fragments check → 33 changelog fragment(s) OK
  • python -m tools.gen_api_docs --check → docs/api.md is up to date
  • Required CI at this tip (build, test 3.9–3.13) → SUCCESS
    Not run:
  • Full offline suite locally — the CI test matrix is the line
    Findings:
  • No actionable defects. compose now records a plan note when a kind=text spec's cases carry fixtures whose body is not already in the prompt, naming the dropped files and the two repairs. The kind-mismatch hint no longer stops at --kind text without saying that fixtures stay behind. Injecting fixtures into the text prompt is correctly left out of scope.
    Verdict: PASS

@Birfy
Birfy merged commit 2a5c5d8 into main Nov 24, 2026
12 checks passed
@Birfy
Birfy deleted the agent/1251-text-fixtures branch November 24, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-pr Pull request opened by an agent risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kind=text drops case fixtures, and the text-only algorithm hint leads users into that path

2 participants