Skip to content

test(modules): finish Odysseus fixture migration - #4070

Merged
schlessera merged 2 commits into
mainfrom
test/2787-odysseus-fixtures
Nov 16, 2026
Merged

schlessera merged 2 commits into
mainfrom
test/2787-odysseus-fixtures

Conversation

@schlessera

@schlessera schlessera commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #2787

What changed

Finance client fixtures and their assertions now use Ithaca Fleet, Phaeacian Fleet and Ithaca Shipwrights. The ledger starter's legal-name comment and the remaining UI entity/backend-vendor test literals use the Odysseus world. Jobs, scrape and core were already migrated on main by earlier work recorded on the issue.

Why this shape

Follows the example-corpus decision. All three finance ledgers were compared against the base after substituting only names/slugs: amounts, currencies, dates, terms and invoice/payment structure are byte-identical. Runtime behavior and contracts are unchanged. A patch changeset covers the shipped template comment.

Deliberately keep @acme/brain-backend-acme, its module variable and environment variable in docs/extending/agent-backends.md: these represent the reader's third-party package, rather than an example persona, as permitted by the issue. The ACME_API_TOKEN in docs/hosting/README.md is likewise a generic environment-variable forwarding placeholder. No stock-name matches remain under packages, template or website.

Proof

  • Failing first: after updating finance test consumers but before migrating fixtures, bun run test packages/module-finance/tests/finance.test.ts failed ledger computation > loads all fixture ledgers on the slug-array assertion (expected the three Odysseus slugs; received the three old slugs). 4 passed, 7 failed. An earlier dependency-missing invocation is excluded as behavioral evidence.

  • After migration: the focused finance suite passed all 11 tests, including generated-region escaping and idempotence.

  • Mutation: reduced the Ithaca Fleet partial-payment receipt/allocation from 1000 to 900. partial payment leaves the invoice partial with the right open balance failed at the existing paid assertion, expected 1000, received 900 (10 passed, 1 failed). Restored original fixture bytes.

  • Restored full issue command: bun run test packages/module-finance packages/module-jobs packages/core/tests/reranker-helpers.test.ts packages/core/tests/taxonomy.test.ts packages/scrape packages/ui-react/tests/file-link-detection.test.ts packages/ui-server/tests/backend-registry.test.ts: 681 passed, 0 failed, 20 skipped across 38 files. The skips are existing real-Chrome jobs/scrape policy tests; no browser proof is claimed by this local run. No jobs/scrape/browser implementation changed.

  • git grep -inE "acme|globex|initech" -- packages template website: no matches.

  • bun scripts/check-changeset-packages.ts and bunx --no-install changeset status: passed; the full pending lockstep plan remains minor, with no major bump.

  • check:pr: lint/leakage, environment documentation and changeset gates passed; the fast-invariant batch failed (261 passed, 9 failed). The exact selected batch subsequently passed on both base cc326cc64348a765325adc1cbe74248d60844845 and unchanged head 89375e9acec90cd717c6f716ae15bf35eaa5a51a: 280 passed, 0 failed each. These are diagnostic recovery runs, not a correction. Follow-up ci: retain diagnostics for transient local fast-invariant batch failures #4069 preserves the unexplained transient failure. No hosted job was rerun.

{"version":1,"kind":"brain-check-pr-receipt","head":"89375e9acec90cd717c6f716ae15bf35eaa5a51a","base":"origin/main","mode":"focused","startedAt":"2026-11-15T22:01:27.729Z","finishedAt":"2026-11-15T22:02:31.246Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":38707.04138499999},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":157.20703000000503},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":114.01258399999642},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":17.21484899999632},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"failed","reason":"exit 1","elapsedMs":24409.34377600001}]}

Checklist

  • Focused behavioral and restored-mutation receipts recorded; candidate hosted proof belongs to the orchestrator's confirmation step.
  • Acceptance criteria met.
  • PR and issue assigned release milestone 0.45.0.
  • Patch changeset covers the shipped template comment.
  • Leakage gate clean.
  • No machine surface or documented behavior changed.
  • No guard or provider-history path changed.

Anything left open

Nothing in implementation scope. Follow-up #4069 tracks the transient local preflight failure without a milestone. The orchestrator owns candidate confirmation and landing; this PR stays draft for that handoff.

Final bun scripts/collisions.ts --json --pr 4070 at head 89375e9acec90cd717c6f716ae15bf35eaa5a51a: graph built; 0 textual, 0 path, 30 closure, 0 unknown collisions. Overlapping dependency closures with #3054, #3056, #3059, #3069, #3581, #3622, #4002, #4018, #4034, #4035, #4036, #4037, #4038, #4040, #4041, #4042, #4046, #4050, #4052, #4053, #4055, #4056, #4057, #4058, #4060, #4062, #4064, #4065, #4067, #4068. These overlap selected proof/consumer closures; there are no textual or changed-path conflicts in this report.

@schlessera
schlessera marked this pull request as ready for review November 16, 2026 20:30
@schlessera
schlessera merged commit 16724d7 into main Nov 16, 2026
41 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core packages/core: the brain CLI, indexer, hybrid search, config, taxonomy, skills. area: modules First-party content modules and the module seam. type: test Coverage, harness or proof work with no behaviour change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

modules: finance and jobs test fixtures still use stock company names instead of the Odysseus world

1 participant