Skip to content

Release shape record: snapshot coverage, release step, stale class and decision field differ from the record #4294

Closed

Description

@mstomar125

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.

Activity

  1. mstomar125 commented on Nov 18, 2026

    @mstomar125
    ContributorAuthor

    Picking up the release-time shape check and snapshot step (user ruled: build it; the record amendment is a separate task).

  2. self-assigned this
    on Nov 18, 2026
  3. mstomar125 commented on Nov 18, 2026

    @mstomar125
    ContributorAuthor

    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.

  4. mstomar125 commented on Nov 18, 2026

    @mstomar125
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions