Skip to content
Blog
November 22, 2026Compliance9 min read

How do you trace a model call back to the people who approved its configuration?

Pleach records an approved configuration change as one chained row that binds a manifest hash to its commit and to HMAC references for its approvers, so the link from a call to its sign-off is a lookup, not a reconstruction. Here is each link, the commands that write and read it, and what the record does not prove.

byPleach maintainers

Drafted by an AI agent, from the Pleach docs and package source; reviewed by a maintainer before publishing.

No @pleach/* package is on npm yet. Each name holds a 0.0.1 placeholder until its first release, so the code here describes the source, not an install that works today. Package status

To trace a model call back to the people who approved its configuration, follow four recorded links: the call's event-log row carries a manifest hash, a config.change_approved row binds that hash to a commit, the same row lists the approvers as erasable references, and the forge holds the review those approvers left. Pleach writes the second and third links as one row on the tenant's audit chain. pleach audit record-change writes it, and pleach audit changes reads it back from any manifest hash.

Before this, the gap sat between the runtime and version control. The event log could say which configuration a call ran under, and the forge could say who approved a pull request. Nothing on the record joined the two, so an examiner reconstructed the link from deploy logs and memory.

This post walks the chain link by link, shows the commands that write and read each one, and ends with what the record does not prove. For the wider review question, see reconstructing an agent decision for audit trail review. For how erasure and a hash chain coexist, see erasing a user from a hash-chained agent log.

The config manifest page draws the path an examiner takes:

model-call row → configManifestHash → change record → commit → approvals
LinkWhat it answersWhere it livesWhat checks it
Call row → manifest hashWhich configuration did this call run under?The manifest hash on every event-log rowThe row is on the event log's hash chain
Manifest hash → change recordWas this configuration approved as a change?One config.change_approved row on the tenant's audit chainaudit changes reports whether the chain verified
Change record → commitWhich commit was the configuration built from?The commit field in the chained payloadEditing it breaks the chain walk
Change record → approversWho approved it, and when?hmac-sha256: references with approval times, in the payloadChained; the reference-to-person mapping is not
Commit → forge reviewWhat did the review say?The forge, through a pull or merge request referenceThe reference's digest is chained; the reference itself can be re-linked

Each link is a record a reviewer can read without asking an engineer what happened. The sections below take them in order.

Which configuration produced this call?

Every event-log row carries a manifest hash. It names the config manifest that was active when the event fired: a content-addressed snapshot of the plugins, prompts, graph nodes, channels and filters the runtime ran with. The manifest is written once per session, at construction, and a manifest lookup is a primary-key hit.

To find the hash a configuration produces before it ships, run:

npx @pleach/core manifest hash --module ./pleach.runtime.config.mjs

The command builds the runtime from the module's default export and prints the hash every event row will carry. It writes nothing. It does execute the module, so the module must have no side effects and need no secrets.

The value is version-prefixed, in the form pleach.manifest.v4: followed by 64 hex characters. Parse it with parseConfigManifestHash from @pleach/core/manifest rather than comparing strings, because the schema version is an input to the digest. The docs explain why in the value is version-prefixed.

One boundary matters here. The manifest has five surfaces, but in the shipped cut only the plugin surface carries real content. The prompt, channel and filter builders return empty, and node body hashes are placeholders. The runtime warns once per process when it writes a partial manifest. Until the other surfaces land, two equal manifest hashes mean the same plugin set, not the same substrate.

The model and provider that served a call are not in the manifest. They sit on the call's own row, after routing, as described in the auditable call row.

Recording the approval as one chained row

A team already approves configuration changes in a pull or merge request. The new step records that approval on the audit chain, against the hash the change produced:

npx @pleach/core audit record-change \
  --manifest-hash <hash> --commit <sha> \
  --approver <login>[=<iso time>] [--approver ...] \
  --source forge:github|forge:gitlab|native \
  [--approvals-digest sha256:<hex>] [--external system:id] \
  [--test-report-hash <sha256>] [--tenant <id>] [--db <pleach.db>]

That writes one config.change_approved row on the tenant's audit chain. The row binds the manifest hash to the commit and to each approver with the time they approved. A test-report hash goes in the same payload when your pipeline keeps a report.

Three rules govern the evidence a record carries:

  • A forge record needs --approvals-digest. The digest commits to the forge's approvals response as CI read it at merge. npx @pleach/core audit digest <file> computes it. Keep the file as long as the record.
  • A native record is refused with a digest. A change made outside a forge uses --source native with the approvers given by hand, and it carries no forge evidence to commit to.
  • The forge reference sits outside the chain hash. Its digest is chained, so the reference can move after a forge migration without breaking anything. npx @pleach/core audit relink-change --change-id <id> --external system:id chains a config.change_relinked row for each move.

The CLI writes to SQLite. A Postgres host calls recordChangeApproval() from @pleach/core/audit with its own event-log writer, so the row lands on the same chain the host already verifies.

The usual place to run either is the CI step that merges the change. That step has the commit, the approvals response and the configuration module in hand at once.

Finding the change behind any row

The read side starts from the hash an examiner already holds:

npx @pleach/core audit changes <manifest-hash> --tenant <id>

Each result is a change record for that hash. It reports two checks alongside the record: whether its chain verified, and whether the stored forge reference still matches the chained digest. A mismatch means the stored reference is not the one the chain committed to, which is worth an explanation before the record is relied on.

If no one recorded a change for a hash, there is nothing to find. That absence is information too. A configuration that reached production with no change record is exactly what a change-control review exists to surface, and the event log keeps naming the hash it ran under either way.

Approvers are references, not names

The record never stores a login. Each approver is an hmac-sha256: reference made under the install's approver key, the same scheme permission approvals use (approver references). With no usable key, the CLI refuses to record rather than write a name in clear.

The mapping from reference to person lives in an approver-identity table that is not chained. Erasing that mapping forgets who approved, and every chained row still verifies. Readers show an erased reference as erased and an unreadable identity table as unavailable. The erasure path is documented under erasing a permission approver.

That split answers two needs at once. An examiner can still see that an approval happened, at a stated time, against a stated commit. A former employee's erasure request removes the name without forcing anyone to rewrite or re-hash the audit chain.

When a guard refused: which policy, which version

The same examiner often holds a call that didn't happen. A safety policy blocked a tool call, or vetoed a synthesized answer, and the question is which policy did it and in which version.

A block_tool_call refusal or a block_synthesis veto writes a guard.decision row whose payload carries policy: { id, version } (which policy refused, on the row). The row is on the hash chain, so pleach audit verify fails if either value is edited later. The reason string is unchanged, in the form safety_policy_block_tool_call: or safety_policy_block_synthesis: followed by the policy id.

An id or version that isn't a durable label is written as "<invalid>", and an invalid id marks both fields. The policy key stays either way, so the row still shows that a policy fired. Rows from other guard producers carry no policy key.

The policy version answers the same question for a refusal that the change record answers for a call. A policy's text lives in version control like any other configuration, so a version on the row is what lets an examiner find the review that approved that policy text.

Worked example: one call, walked to its approvers

Say an examiner is reviewing one answer an agent gave a user last quarter. They start from the root turn and pull every call row behind it, ordered by record id.

Step one: the configuration. Each row names the manifest hash it ran under. Within one session the rows share a hash, because the manifest is captured once, at session construction. The examiner parses it and notes the schema version.

Step two: the change. They run audit changes with that hash and the tenant. One record comes back. Its chain verified, and its forge reference matches the chained digest. It names a commit, a forge:github source, an approvals digest and two approver references with approval times.

Step three: the evidence. The team kept the approvals response file. The examiner recomputes its digest with audit digest and gets the value in the chained payload, so the file is the one CI read at merge. The forge reference leads to the pull request and its review comments.

Step four: the people. The examiner resolves the two references through the approver-identity mapping. One resolves to a name. The other comes back erased, because that approver left and asked to be forgotten. The record still shows that two approvals happened before the merge.

Step five: a refusal in the same turn. One tool call in the turn was blocked. Its guard.decision row names the policy id and version, and the examiner repeats the walk for the policy's own change.

None of those steps needed a deploy log, a chat thread or an engineer's recollection.

What the record does not prove

The chain is tamper-evident. It detects an edit after the fact; it does not stop one, and it is not access control. The hash chain page lists what it doesn't replace. Several other limits apply to this record specifically:

  • It records the approvals the caller supplies. Pleach does not query the forge. The approvals digest commits to what CI read at merge, so the evidence is only as complete as that CI step.
  • It does not prove the review was adequate. A record shows who approved and when. Whether two approvals were the right two, or whether the reviewers read the diff, is a question for your change-control procedure.
  • The manifest is partial today. As above, equal hashes mean the same plugin set until the remaining surfaces carry content.
  • Older rows may carry no manifest hash. The reference on the event log is nullable during rollout, so rows written before the manifest substrate have none.
  • The forge reference can move. By design it sits outside the chain hash. The digest check in audit changes and the config.change_relinked rows are how a move shows up.
  • A component doesn't validate a system. Pleach writes records that a validation and review process can use. Whether they meet a regulator's bar is decided by your validation, procedures and risk assessment.

Retention: keep the evidence as long as the record

Manifests are reference-counted against the event log, and the default floor is forever. A manifest survives as long as any event references it, and runRetentionGC fails closed when it can't tell whether a manifest is still referenced. See retention.

The approvals response file is the one piece Pleach doesn't keep for you. The chained digest proves a file is the one CI read, but only if the file still exists. Store it beside the record, on the same retention schedule as the event log it explains.

The runtime's packages aren't installable yet. Each @pleach/* name holds a placeholder until its first release, so the commands here describe the source rather than a release you can add today. See packages for status. The packages are FSL-1.1-Apache-2.0 and source-available.

Key takeaways

  • The link is now on the record. One config.change_approved row binds a manifest hash to its commit and approvers on the tenant's audit chain.
  • Start from the hash. pleach manifest hash prints what a configuration produces; pleach audit changes finds the change behind any row.
  • Names stay erasable. Approvers are HMAC references, and erasing the mapping leaves every chained row verifiable.
  • Refusals name their policy. A block or veto writes policy: { id, version } on its guard.decision row.
  • The evidence is what you supply. The record commits to the approvals CI read; it does not fetch them or judge them.
  • Read equal hashes narrowly. Until the manifest's other surfaces land, they mean the same plugin set.

Frequently asked

How do I find who approved the configuration behind a model call?

Read the manifest hash on the call's event-log row, then run npx @pleach/core audit changes with that hash and your tenant. Each result is a change record naming the commit the configuration was built from and the approvers, with whether its chain verified and whether the stored forge reference still matches its chained digest. The approvers come back as references; resolving one to a person goes through the approver-identity mapping.

Does the change record store approver names?

No. Approvers are stored as hmac-sha256 references under the install's approver key, never as logins. The mapping from reference to person sits outside the chain, so erasing it forgets who approved while the chained row still verifies. A record shows that an approval happened at a given time even after the person can no longer be named.

Does Pleach check the approvals with GitHub or GitLab itself?

No. The record holds the approvals the caller supplies. For a forge source, the approvals digest commits to the forge's approvals response as CI read it at merge, so keep that response file as long as the record. A change made outside a forge uses source native, with the approvers named by hand and no forge digest.

Does the manifest hash cover the whole configuration?

Not yet. The manifest has five surfaces, but in the shipped cut only the plugin surface carries real content, and the runtime warns once per process when it writes a partial manifest. Until the other surfaces land, read two equal manifest hashes as the same plugin set, not the same substrate.

How do I know which safety policy blocked a call, and which version of it?

A block_tool_call refusal or a block_synthesis veto writes a guard.decision row whose payload carries policy id and version. The row is on the hash chain, so editing either value later fails verification. A value that isn't a durable label is written as the string invalid in angle brackets, and the policy key stays so the row still shows a policy fired.

change controlaudit trailconfig manifestapprovalshash chainai agent governance

Related posts