Repository navigation
Share .differences rules between journeys, excuse text line by line, document the rules - #78
Merged
Merged
Conversation
…, and document the rules Fixes #77. - A rule in an include? file counts as stale only where its section heading appears in the run, so several journeys can share one file, and --record can fill it from all of them, without the others' rules failing each journey. The file's own rules stay strict; include and folder files never go stale. - A read's text, or a text body, that gained or lost lines is compared by lines: added text "line" and removed text "line" name them, every changed line must be named, and the suggestion --record writes names the lines instead of a truncated changed text. - {name} in --record and --prune is the file's name, one file of differences per journey. - The rules are documented in the README, the Cli and Browser skills and the docs page. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #77. Several journeys can now share a file of expected differences, a changed text is excused line by line, and the rules are documented where agents and users look.
Why
Comparing two deployments of a docs site with several journeys in one folder showed three problems (#77): a shared rules file made every journey that did not reach one of its rules fail as stale (and
--recordinto one file did the same); the rule--recordsuggested for an added line was a truncatedchanged textnaming neither the line nor its URL; and no README or skill mentioned.differences.What
Shared files
A rule in an
include?file counts as stale only where its## headingmatches a section of the run. A rule under a heading that matches and explained nothing is stale as before. The file's own rules stay strict (a heading that matches nothing is a renamed or misspelt step),includeand folder files are never stale, and--pruneremoves only what is stale for the run, so pruning one journey no longer deletes another's rules from a shared file.--record 'known/{name}.differences'gives each journey its own file ({name}is the file's name).Text, line by line
A read's
textor a response's text body that gained or lost lines is compared by lines.added text "GET {origin}/fonts/*.woff2 (Font) 404"andremoved text "…"(quoted glob or regex;ignore text "…"for either) name them; every changed line must be named, and the rules are marked used only then.--recordnow writes those lines. A line rule never excuses a whole text that came or went, andtext "name"in a journey is still an accessibility node.Docs
The rule syntax, include kinds, stale semantics,
--record/--pruneand{name}are in the docs page, the README, and the Cli, Browser skills.Verified
curb checkclean. 13 new tests: line rules for.httpand journeys (named, partially named, removed and changed lines, whole text that came or went,ignore text), reachable-only staleness (including the file's own rules staying strict and pruning a shared file leaving another journey's rules),{name}in--record, andtext "name"still an aria node.🤖 Generated with Claude Code