Skip to content

fix(test-agent): name journeys/ as a write location (#359) - #367

Closed
MendixMau wants to merge 2 commits into
masterfrom
fix/test-agent-journey-dir
Closed

MendixMau wants to merge 2 commits into
masterfrom
fix/test-agent-journey-dir

Conversation

@MendixMau

@MendixMau MendixMau commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Direct lane

What changed and why (one paragraph):
The test-agent brief (agents/test-agent.md) confined writes to {{TEST_DIR}} (filled as tests/e2e/). Journeys, though, are read from journeys/ at the project root by verify-module.sh, fixture-manifest.sh, journey-proof.md and the Stage-6 artifact gate. A test-agent that obeyed its brief wrote tests/e2e/journeys/*.journey.json, and the gate never found them. The brief's boundary and its workflow step now send journeys to journeys/<Module>.journey.json and say not to relocate them. fixture-manifest.sh hard-sets journeys/ whatever JOURNEY_DIR says, so an override would leave verify green and fixtures blind. skills/agent-roles.md now says nothing fills {{TEST_DIR}} and how to fill it. No auto-fill was added, for two reasons. First, init-agents.sh and sync-project.sh's check for untouched stubs would both have to apply it in lockstep. Second, the test directory is a project fact. A project whose test-agent.md is already completed keeps its old text; bin/sync-project.sh <project> --diff-completed shows the change. Closes #359. Reported by @joshuamoesa.

Field evidence: taken from the issue: an existing-app project (macOS) whose Stage-6 journey row cleared only after ln -s tests/e2e/journeys journeys. No field run of this PR itself yet; it changes only text in a brief and a skill.

  • No client data anywhere in the diff
  • Size cap: 3 files, small diff
  • Test tier reached: T0 (doc change; render-routing --check in sync, test-routing-tier.sh 12/12, test-render-routing.sh 5/5)
  • For a new/changed instrument: n/a
  • For a new skill: n/a
  • CHANGELOG.md line appended, crediting joshuamoesa
  • New bug entries: n/a

Baseline words: 75,028 → 75,094 (budget 80,000).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw

The test-agent brief confined writes to {{TEST_DIR}} (tests/e2e/ when
filled), while verify-module.sh, fixture-manifest.sh, journey-proof.md
and the Stage-6 artifact gate read journeys from ${JOURNEY_DIR}
(default journeys/). The brief and its workflow step now send journeys
there; agent-roles.md says how to fill {{TEST_DIR}}, which nothing
fills automatically.

Reported by joshuamoesa.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
#367)

Only verify-module.sh and the artifact gate honour JOURNEY_DIR;
fixture-manifest.sh hard-sets journeys/. Drop the override claim, say
journeys stay at the root, and note in the CHANGELOG that completed
stubs keep their old text (sync-project.sh --diff-completed shows it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
@MendixMau MendixMau changed the title fix(test-agent): name ${JOURNEY_DIR} as a write location (#359) fix(test-agent): name journeys/ as a write location (#359) Oct 14, 2026
MendixMau pushed a commit that referenced this pull request Oct 14, 2026
Review: independent review MERGE-AFTER-FIX — override claim inaccurate (fixture-manifest.sh hard-sets journeys/) → docs now say journeys stay in journeys/ at the project root; completed stubs keep old text (--diff-completed shows it), in 6887f84; confirmation MERGE (reviewer's own artifact-gate claim corrected: artifact-manifest/artifact-check do honour JOURNEY_DIR; fixture-manifest is the only outlier). Baseline +66. Closes #359 (joshuamoesa).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
MendixMau added a commit that referenced this pull request Oct 15, 2026
…journey controls, fixes) (#385)

Lands #340 #363 #362 #355 #370 #368 #364 #365 #366 #372 #367 #371 #376 #369 #373 #377 #378 #380.

Review: each constituent PR independently reviewed by a fresh agent that did not write it; merged into integration/2026-10-15 only on a MERGE verdict with green CI (per-PR Review lines in the integration merge commits). After-fix rounds: #373 (env-var cap, rename/skip-loops freshness), #377 (inline URI fallback), #378 (full-pack double count, slice content). Stub diet (#369/#378/#380) behaviour A/B, 5 reps x 2 drafting tasks + 5 retrieval probes x 3 reps: trimmed context no worse than master on every scored metric (planted STOP refused 20/20, parse failures page 2/5 vs 3/5, probes 15/15); mdl Stage 5 56,236 -> 30,647 words, baseline 75,028 -> 73,233. Full suites on c9bc073: run-tests 33/0, wave2 111 fixtures 0 failing. Field evidence: none yet for the instruments (#355 warn-only, #373/#377 read-only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
@MendixMau

Copy link
Copy Markdown
Owner Author

Landed on master in #385 (squash 868b3cb), after its own independent review on the night integration branch. Closing this PR.


Generated by Claude Code

@MendixMau MendixMau closed this Oct 15, 2026
@MendixMau
MendixMau deleted the fix/test-agent-journey-dir branch October 15, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] test-agent brief confines writes to tests/e2e/, but the artifact gate resolves journeys from JOURNEY_DIR=journeys/ at the project root

2 participants