Skip to content

Write admission and releaseDigest on the release records yodel appends (chant 0.124.29) #277

Closed

Description

@lex00

From INTENTIUS/chant#4034 (behold#678 epic).

yodel appends a deploy record to <env>/releases.jsonl in src/release/index.ts recordRelease, calling appendReleaseRecord with component, env, digest, gitSha, runId, runOrigin, timestamp, actor and approver. chant has since added optional fields to deploy, gate and run records (INTENTIUS/chant#4020, #4043, #4045). The records yodel already wrote still read: status shows the new fields as null and no reader errors. This issue is about what to write from now on. Floors: chant 0.124.28 for admission, 0.124.29 for releaseDigest.

What to write:

  1. admission (chant#4020, 0.124.28). When a gate approved the apply, record which resolution admitted it: { op, gate, resolvedAt }. chant exports admissionOf(resolutions, { op, gate, planDigest }) from @intentius/chant/lifecycle/release-ledger, which returns { approver, admission } for the resolutions of that gate bound to the plan digest; yodel's approver can come from the same call. Leave admission out for an ungated apply.
  2. releaseDigest (chant#4043, 0.124.29). Only when the apply was made from a chant release (_releases/<releaseDigest>.json), such as chant components promote --release. A yodel apply not made from a release writes none.
  3. Gate facts yodel writes with appendPendingGate: pass gitSha and runId (chant#4020); chant approve copies them onto the resolution. resolveCiRun() from release-ledger gives the CI run id and origin.
  4. Readers (report/audit.ts and anything else that parses _gates/<op>.jsonl or releases.jsonl): treat every field above as optional, ignore unknown keys, and show absent as absent.

Don't rewrite old ledger lines. Bump the @intentius/chant floor to ^0.124.29 once it is released. See chant's reference/workspace-read-contract "Reading older records".

Done when

  • The @intentius/chant floor is ^0.124.29 or later.
  • A gated apply's release record carries admission ({ op, gate, resolvedAt }) and approver, both from admissionOf. An ungated apply writes no admission.
  • An apply made from a chant release writes releaseDigest. Any other apply writes none.
  • appendPendingGate passes gitSha and runId from resolveCiRun().
  • report/audit.ts and every other reader of _gates/<op>.jsonl and releases.jsonl treat these fields as optional, ignore unknown keys, and show an absent field as absent. A test reads a ledger with old and new lines mixed.
  • Old ledger lines are not rewritten.

Activity

  1. added
    enhancement
    on Oct 23, 2026
  2. lex00 commented on Oct 24, 2026

    @lex00
    ContributorAuthor

    Landed in #280 (squash 7067895) and released in 0.10.0, on chant 0.124.48.

    All boxes met:

    • A gated apply writes admission and approver from chant's admissionOf; an ungated apply writes no admission.
    • yodel apply <env> --release <digest or label> (or YODEL_RELEASE) checks the checkout is at the release's commit and writes releaseDigest; any other apply writes none.
    • gitSha and runId on pending gates are written by chant's gate step itself; yodel does not call appendPendingGate.
    • The ledger readers ignore unknown keys and show absent fields as absent; a test reads old and new lines mixed. Old lines are not rewritten.

    Not covered: a waves apply records approver from the wave decision but no admission, since that decision does not go through verifyApproval.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions