Skip to content

Cover adjust-flavored bootstrap seed in software-factory tests#5233

Open
jurgenwerk wants to merge 1 commit into
mainfrom
cs-11406-e2e-fixture-playwright-for-the-improve-flow
Open

Cover adjust-flavored bootstrap seed in software-factory tests#5233
jurgenwerk wants to merge 1 commit into
mainfrom
cs-11406-e2e-fixture-playwright-for-the-improve-flow

Conversation

@jurgenwerk

@jurgenwerk jurgenwerk commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

(Written by Claude on Matic's behalf.)

CS-11406: prove the improve (adjust-existing-card) flow with a committed fixture + a test, building on the flow shipped in CS-11424 (which was only verified manually).

What this adds

  • Fixture — a brief card (realm/Wiki/adjust-mortgage-test.json) carrying a sourceCardUrl, the signal that flips the factory into the adjust flow.
  • Test — a case in factory-seed.spec.ts (mirroring the existing greenfield seed test) asserting that, when the brief carries a sourceCardUrl, createSeedIssue emits the adjust-flavored bootstrap seed: the Mode: ADJUST EXISTING CARD header, the Source card to adjust: reference, and the boxel realm ingest-card "<url>" instruction — i.e. the mechanical adjust branch in factory-seed.ts that runs before the agent.

Runs under the existing hermetic Playwright harness (isolated realm, bootstrap-target fixture) — no agent, no subprocess.

Testing

Local global-setup (cache:prepare) is slow/flaky to spin up the hermetic stack; leaving CI to validate in a clean environment.

🤖 Generated with Claude Code

Add a seed test mirroring the existing greenfield case but with a brief
that carries a `sourceCardUrl`, asserting `createSeedIssue` produces the
adjust-flavored bootstrap seed: the ADJUST mode header, the source-card
reference, and the `boxel realm ingest-card` instruction. Commit the
`adjust-mortgage-test.json` brief fixture the test mirrors.

This covers the mechanical seed branch of the improve flow; the
agent-driven seed-from-source, green-baseline, and improved-card
assertions remain out of scope (CS-11406).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds automated coverage for the “adjust existing card” branch of software-factory bootstrap seed generation by introducing a committed brief fixture with sourceCardUrl and a Playwright test that asserts the adjust-specific seed instructions are emitted.

Changes:

  • Added an “adjust” brief fixture card (adjust-mortgage-test.json) that includes sourceCardUrl to trigger adjust-flow seed behavior.
  • Added a Playwright test case asserting createSeedIssue() produces adjust-flavored seed content (mode header, source-card reference, and ingest-card command) when sourceCardUrl is present.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/software-factory/tests/factory-seed.spec.ts Adds a new test validating adjust-flow bootstrap seed instructions when a brief includes sourceCardUrl.
packages/software-factory/realm/Wiki/adjust-mortgage-test.json Introduces a new Wiki brief fixture that carries sourceCardUrl to flip the factory into adjust mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jurgenwerk jurgenwerk requested a review from a team June 15, 2026 10:23
@jurgenwerk jurgenwerk marked this pull request as ready for review June 16, 2026 08:25
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.

3 participants