Repository navigation
basou: compare a board with its previous record in basou board measure and record - #328
Merged
Merged
Conversation
…e and record For a declaration named board.yaml, the last record in the records/ beside it (by name, of the files named as a ULID with .json) is the previous one. basou board measure now says what moved since it under diff: each value that moved, a number with its change, marked when its section's method changed; the methods that changed; and the values there only now or only then. The clock, the freshness, the axis, measured_with and the effort's daily rows are not compared, and the diff is left out of the digest. The text summary puts it first. The components section holds the kinds that changed since the previous record and counts as gone a component only it found (methods.components is 2). The axis section judges trigger (e), a built-in section's method that changed, and takes the last review from the last record with an axis review, its day in the effort's time zone, before the declaration's seed (methods.axis is 2). A record that cannot be read is never taken as no record: the diff, what only it found and the triggers it bears on are null or not judged, with a reason under not_found. basou board record reports the same, with the cells and the observations that moved, in its text and under diff with --json; the record itself does not hold the diff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cell's state and a method's section are read from the previous record, and were shown as they were written: a record holding a control character could act on the terminal. They now go through displayPath like the rest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is known The diff no longer compares the axis's not_found entries, which the digest leaves out, and compares values with their keys sorted. When the previous record cannot be read, a component the declaration registers and that was not found still fires trigger (a), and the text summary shows the components measured, the gone ones as not known. basou board record shows what moved right after where the record is, says when the previous record could not be read, and lists what the measurement recorded could not measure, also as not_found with --json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks done
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.
Summary
basou board measureandbasou board record(experimental) now compare a board with its previous record.board.yaml, the last by name of the files in therecords/beside it named as a ULID with.json. Other files are passed over, and a declaration of another name reads no records.diffin the measurement:repos["../basou"].commits), a number with its change, markedmethod_changedwhen its section's method changed.not_foundby where). Unacknowledged and gone components are compared as sets. Values are compared with their keys sorted.not_foundentries,measured_with, and the effort's daily rows.methods.componentsis 2).methods.axisis 2).not_found. A component the declaration registers that was not found still fires (a).basou board record:diffwith--json.not_foundwith--json.Verification
pnpm -r build,pnpm typecheck,pnpm -r test:coverage,pnpm test:scripts,pnpm lint(the existing warnings only),pnpm lint:lang,pnpm lint:paths, andpnpm audit --prod: all 0. Board tests pass underTZ=UTC,Asia/TokyoandAmerica/New_York..basou/.not_foundentries reaching the diff; (a) not firing on a registered component gone when the previous record cannot be read; the wording on whencompleteturns false; the summary calling measured components unmeasured; where record shows its diff and why there is none; key order in compared values; and two missing tests.🤖 Generated with Claude Code