Skip to content

Fail tests if the bundled data has no frameworks or objections - #31

Merged
benbalter merged 1 commit into
mainfrom
data-guard
Oct 19, 2026
Merged

benbalter merged 1 commit into
mainfrom
data-guard

Conversation

@benbalter

Copy link
Copy Markdown
Member

Why

data/book.json.br is built in the book repo from a paraphrase file that's gitignored there. Built without that file, the data ships with empty frameworks and objections. handle_objection and the framework answers then quietly lose their content, and every existing test still passes.

The book repo now refuses that build. This test is the backstop here, so a hand-copied data refresh can't ship without them.

What

A test in test/data.test.js asserts that book.frameworks and book.objections are non-empty, and that frameworks exist for each role (any, manager, ic).

Verified

  • npm test: all 45 tests pass on the current data.
  • I swapped in a copy of book.json.br with frameworks and objections emptied. The new test failed with book.frameworks is empty. I restored the real file before committing.

Tests only. No release needed.

🤖 Generated with Claude Code

The book repo builds data/book.json.br from a gitignored paraphrase
file. Built without it, the data ships with empty frameworks and
objections, and handle_objection plus the framework answers quietly
lose their content while every existing test still passes. The book
repo now refuses that build (open-and-async-book#2116); this is the
backstop in this repo, so a hand-copied refresh can't ship without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@benbalter
benbalter merged commit 1e07024 into main Oct 19, 2026
8 checks passed
@benbalter
benbalter deleted the data-guard branch October 19, 2026 19:11
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.

1 participant