You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release shape record: snapshot coverage, release step, stale class and decision field differ from the record #4294
Found while checking the decision record "Each release records its built-in shape" against the code (2026-11-17). Decide per item: build it, or amend the record to the built behaviour.
Snapshot coverage. Decided: the snapshot has no exclusions, the full DDL (tables, columns, indexes, triggers). The code records table names and columns only (packages/core/src/shape_record/snapshot.rs, "Known gaps" in its header); indexes, views, triggers and column types are not listed, and neither are the seeded links, skills, tool descriptions and agent guidance.
Release step. Decided: bun run release regenerates the record, compares it, prints the changes by class and refuses on an undecided migrate, refuse or stale change. The code: scripts/release.ts has no shape-record step; the record is driven by shape:gen, shape:check and shape:release (package.json:50-52, packages/core/examples/shape_record.rs).
Classes and decision field. Decided: a stale class, and a decision field on a change (an ADR reference or "accepted, reset required"). The code: Class has Additive, Reconcile, Rebuild, Migrate, Refuse (packages/core/src/shape_record/change_log.rs:48-58); there is no stale and no decision field.
Log skeleton. Decided: the generator writes a log skeleton. The code: the generator writes the snapshot only.
Done when
For each item, the code does what the record decides, or the record states the built behaviour.
Record amended to the built behaviour (ruling 2026-11-18): "Each release records its built-in shape" and the "The built-in shape record" design document now state five classes (no stale), no decision field on an entry, a snapshot that lists table names and columns only (snapshot.rs "Known gaps"), no log skeleton, and the database fingerprint as a tested prototype that nothing calls when a database is opened. The rule that the release step checks the shape record before the version bump stays as the decision, enforced by scripts/release.ts; bun run shape:release <version> is the copy step and can be run by hand. The release-time check itself is being built (#4301), so this issue stays open for it.
Record and design document now state the built behaviour: five classes, no decision field, entries cover one or more snapshot keys per area, the gate measures from the latest release copy and requires the working snapshot to equal what the build generates, snapshot lists table names and columns only, release copies are checked for canonical form and hash, fingerprint is a tested prototype. The release rule is now stated as built in #4301: bun run release runs shape:check first, and for a three-number name records the copy with shape:release and commits it with the version bump; a suffixed name is checked and gets no copy (scripts/release.ts). The record says the check does not compare releases, group entries by class or ask for a decision. Closing.
Activity
mstomar125 commentedon Nov 18, 2026
Picking up the release-time shape check and snapshot step (user ruled: build it; the record amendment is a separate task).
refactor(release): extract the release sequence so its order is tested
mstomar125 commentedon Nov 18, 2026
Record amended to the built behaviour (ruling 2026-11-18): "Each release records its built-in shape" and the "The built-in shape record" design document now state five classes (no
stale), no decision field on an entry, a snapshot that lists table names and columns only (snapshot.rs"Known gaps"), no log skeleton, and the database fingerprint as a tested prototype that nothing calls when a database is opened. The rule that the release step checks the shape record before the version bump stays as the decision, enforced byscripts/release.ts;bun run shape:release <version>is the copy step and can be run by hand. The release-time check itself is being built (#4301), so this issue stays open for it.feat(release): run the shape check and record the release snapshot in…
refactor(release): extract the release sequence so its order is tested
feat(release): run the shape check and record the release snapshot in…
mstomar125 commentedon Nov 18, 2026
Record and design document now state the built behaviour: five classes, no decision field, entries cover one or more snapshot keys per area, the gate measures from the latest release copy and requires the working snapshot to equal what the build generates, snapshot lists table names and columns only, release copies are checked for canonical form and hash, fingerprint is a tested prototype. The release rule is now stated as built in #4301:
bun run releaserunsshape:checkfirst, and for a three-number name records the copy withshape:releaseand commits it with the version bump; a suffixed name is checked and gets no copy (scripts/release.ts). The record says the check does not compare releases, group entries by class or ask for a decision. Closing.