Skip to content

Decision ledger: persist the authority, refusal, and approval behind each tool call #6099

Description

@ainaomotayo

Is your feature request related to a specific problem?

Yes. ADK's observability answers what happened: OpenTelemetry spans for agent invocation, model calls, and tool execution; persisted session Events for function calls, responses, and confirmation actions; the BigQuery Agent
Analytics plugin streaming structured events at the runner level.

Incident response and compliance for production agents need a different artifact, what was decided:

  • why this tool was selected for this step
  • under which authority the call ran (agent-auth vs user-auth, and which principal)
  • what a guardrail or plugin refused, and on what rule
  • what confirmation was required, and what approval made the action permissible

Each of those decisions passes through an ADK surface (plugin callbacks, tool confirmation, per-tool auth config), but no component writes a unified record of them. A team with all five security layers configured still cannot reconstruct, from framework output alone, the moment an agent crossed from suggestion into action.
Credit to Alex Shev for naming this in a community discussion of indirect prompt injection defenses: the layer most often missing is the decision ledger between policy and action.

Describe the Solution You'd Like

An opt-in, runner-level decision ledger plugin (so every agent on a runner inherits it) that emits one structured, persistable entry per decision point: tool call, refusal, confirmation request, confirmation resolution. Deterministic fields (authority, policy outcome, confirmation payload) are attested by the framework; the model's stated rationale is recorded but typed as untrusted, since a hijacked agent will narrate a plausible justification. Schema and pseudo-code below.

To my knowledge, no framework persists this unified record today. In ADK all four decision surfaces already exist, so this is integration work, not new machinery.

Impact on your work

I am a Google Developer Expert for AI producing developer education on ADK agent security. The recurring question from production teams in those discussions is not "how do I block the attack" but "how do I reconstruct what my agent decided when something gets through." Today my honest answer is that every team must build its own ledger from plugin callbacks, and none of those one-off schemas interoperate. A first-class answer would close the most common gap I see between teams configuring ADK's security layers and teams being able to audit them. No hard timeline; this is an ecosystem maturity request, not a personal blocker.

Willingness to contribute

Yes. I am willing to contribute the plugin implementation and a schema RFC if maintainers are open to the direction.


Describe Alternatives You've Considered

  • Persisted session Events: capture function calls, responses, and confirmation actions with timestamps, but not the authority a tool ran under, the rule behind a refusal, or selection rationale. The ledger is the decision-semantics layer above the event log.
  • BigQuery Agent Analytics plugin: the closest existing component, registered once at the app level and structured, with dedicated HITL confirmation event types. It does not capture tool-selection rationale, logs tool_origin rather than the agent-auth/user-auth principal, and records generic TOOL_ERROR rather than policy refusals with rules.
  • Model Armor logging to Cloud Logging / SCC: records which policy a blocked request triggered, but only for Model Armor's own screenings, in a sink disconnected from the agent trace.
  • Cloud Audit Logs: capture the principal for GCP API calls only; nothing for arbitrary tools, and no framework semantics.
  • Third-party attestation tools (signed receipts, hash-chained audit trails, policy evaluators): a real ecosystem exists, with several incompatible schemas, and all of them attest records the framework never emits. They can sign what happened; only the framework sees why. This request is for the emission point; the existing ecosystem can consume it.
  • Per-team custom plugins: possible today via before/after tool callbacks, confirmation payloads, and declared per-tool auth, which is the argument for making it first-class: every production team re-derives the same schema and none of them interoperate.
  • Prior art in other frameworks, none complete: AWS Bedrock Agents record per-step rationale and guardrail assessments in an ephemeral trace with identity held elsewhere; the Claude Agent SDK computes structured allow/deny/ask permission decisions without persisting them; LangGraph persists human-interrupt approvals in checkpoint history.

Proposed API / Implementation

Registration, following the existing runner-level plugin pattern:

from google.adk.plugins import DecisionLedgerPlugin  # proposed

runner = InMemoryRunner(
    agent=root_agent,
    app_name="my_app",
    plugins=[
        DecisionLedgerPlugin(
            sink=...,                      # BigQuery, Cloud Logging, file
            record_model_rationale=True,   # always typed untrusted
        ),
    ],
)

One ledger entry per decision point:

{
  "invocation_id": "...",
  "step": 3,
  "decision": "tool_call | tool_refused | confirmation_required | confirmation_resolved",
  "tool": "...",
  "authority": {"mode": "agent-auth | user-auth", "principal": "..."},
  "policy": {"source": "plugin | tool_context | confirmation", "rule": "...", "outcome": "allow | deny | escalate"},
  "confirmation": {"required": true, "response_payload": "..."},
  "model_rationale": {"text": "...", "trust": "untrusted_generated"},
  "timestamp": "..."
}

Implementation sketch: the plugin populates entries from surfaces that already exist: before/after tool callbacks (tool, args, step), the declared per-tool auth config (authority), plugin/callback block decisions (policy source, rule, outcome), tool confirmation responses (confirmation payload), and the model's stated reasoning from the model response that produced the tool call (rationale, typed untrusted).

Additional Context

Related prior items, scoped against deliberately: #5202, #5201, #5164 (audit trails and signed receipts of what was called, all closed) and open Discussion #5090 (execution provenance exporter, which covers principal and approval references but not selection rationale, refusal rules, or a unified schema). This request is for the decision-semantics layer those items stop short of.

Activity

  1. added
    tracing
    on Jun 13, 2026
  2. added theissue type on Jun 13, 2026
  3. rpelevin commented on Jun 15, 2026

    @rpelevin

    This is a strong distinction. I would keep the ledger boundary very explicit: traces and session events describe execution, while the decision ledger should describe authority.

    One useful split is:

    • framework-attested fields: tool name, invocation or step id, principal, auth mode, policy source, policy version, confirmation id, decision state, timestamp;
    • derived commitments: canonical args digest, result digest when available, and the policy or guardrail version that was evaluated;
    • untrusted context: model-stated rationale, useful for review but never treated as the authority record.

    That separation matters because the most important question after an incident is not only "what tool ran?", but "what made this exact action permissible at that moment?"

    I would also make the decision state shape terminal and machine-readable:

    • allowed;
    • refused;
    • confirmation_required;
    • confirmation_resolved;
    • stale_or_mismatched;
    • policy_error.

    Then the runner can fail closed when a confirmation is missing, expired, or bound to a different tool, principal, policy version, or args digest. The ledger becomes more than audit text: it becomes the object downstream verifiers can use to prove that the action that executed was the same action that was authorized.

  4. llalitkumarrr commented on Jun 16, 2026

    @llalitkumarrr
    Collaborator

    Hello @ainaomotayo ,

    Thank you for your request. It is currently being reviewed and we appreciate your patience in the meantime.

  5. added
    needs review
    on Jun 16, 2026
  6. Whatsonyourmind commented on Jun 17, 2026

    @Whatsonyourmind

    This is the right gap to close, and @rpelevin's split — traces/events describe execution, the ledger describes authority — is the load-bearing distinction. One thing worth nailing down early, because it decides whether the ledger is auditable or just more telemetry: bind each decision to the call it authorized, so a verifier can prove executed == authorized without trusting the agent's narration.

    Grounding it in ADK's current surfaces:

    • The four decision points already exist, but the deny path is lossy. A BasePlugin.before_tool_callback that returns a dict short-circuits execution and that dict becomes the function response (flows/llm_flows/functions.py, the before-tool step). So a policy refusal is indistinguishable in the event log from a tool that simply returned that dict. The ledger's first job is to make refusal a first-class, attributable record ({source, rule, outcome=deny}), not a substituted result.
    • EventActions persists only requested_auth_configs and requested_tool_confirmations — there's no authority / principal / policy / outcome slot. And the agent-auth vs user-auth principal physically exists (auth/auth_tool.py::AuthConfig, tools/base_authenticated_tool.py) but is never joined onto the event, so "which principal did this call run under" is unrecoverable after the fact. That's exactly the attribution the ledger needs, and it's reachable at the before_tool/after_tool hook via tool_context._invocation_context.
    • ToolConfirmation is {hint, confirmed, payload} — no binding. That's the piece I'd add first: when a confirmation is issued, compute and store a tag over (fully-qualified tool name ‖ canonical-args digest ‖ principal ‖ policy version ‖ expiry). On resume, recompute and compare; if the resolved confirmation doesn't match the call about to execute — different tool, mutated args, wrong principal, stale policy, expired — the runner fails closed (stale_or_mismatched) instead of re-executing. Today resolution is reconstructed by event-scanning in request_confirmation.py, which can match an approval to a call whose args changed after it was approved.

    @rpelevin's trust-typing matters here too: the digest/principal/policy fields are framework-attested; the model's stated rationale goes in an explicitly untrusted slot that the enforcement path never reads. A hijacked agent can write a convincing rationale but cannot forge the tag.

    I've been working through this same bind-the-capability-to-the-exact-call problem on a couple of other MCP/agent projects, and the invariant that's carried across all of them is: the approval must commit to the canonical args digest, and the executor must re-verify it at dispatch — otherwise "approved" quietly degrades to "approved something, once." Happy to write up the confirmation-binding piece as a concrete schema proposal (the tag construction + the fail-closed states) against ADK's ToolConfirmation / EventActions if that's useful for the RFC.

  7. Necmttn commented on Jun 21, 2026

    @Necmttn

    The ledger should join authority to execution. A minimal event can carry session id, step id, tool call id, principal, auth mode, policy source/version, decision state, confirmation id, args digest, and result digest when available. Then a verifier can ask whether a tool call was authorized without trusting the agent's narration after the fact.


    Generated with ax.

  8. arian-gogani commented on Jun 23, 2026

    @arian-gogani

    the execution vs authority distinction @rpelevin drew is the right split — and it maps to a concrete join key problem.

    the ledger entry needs to be joinable back to the trace span without trusting the runtime's local IDs. if the only join key is the span's tool_call_id (runtime-local), an auditor checking the ledger against an external trace cannot verify the join without trusting the operator's infrastructure.

    a content-derived join key closes this: action_ref = SHA-256(JCS({agent_id, action_type, scope, timestamp_ms})) is recomputable from the intent tuple alone — any verifier can derive it from the four fields and check it against both the ledger entry and the trace span attribute. two independent systems can verify they're talking about the same action without a shared runtime state.

    for the ADK decision ledger specifically: the event shape @Necmttn described (principal, auth mode, policy source, decision state, args digest) is exactly right — the action_ref sits alongside those as the portable correlation handle. the args digest proves the action wasn't substituted; the action_ref proves the event is joinable across audit consumers.

    the spec counterpart for external execution evidence (what happens after the gate passes) just landed in agentrust-io/trace-spec §3.3.1 this week. worth aligning the ADK ledger schema with that so audit consumers get a consistent join key across frameworks.

  9. creatornader commented on Jun 23, 2026

    @creatornader

    I tried a small implementation of the case this issue describes for verifiers and exporters. Mainly, after a tool call finishes, can code outside ADK tell which ADK decision allowed it, refused it, or required confirmation first?

    I tested that in this ADK Python proof.

    https://github.com/creatornader/atrib/tree/main/packages/integration/examples/google-adk-python

    To reproduce it locally, run pnpm --filter @atrib/integration google-adk-python-decision-ledger-proof.

    The proof uses google-adk==2.3.0 with InMemoryRunner, BasePlugin, and FunctionTool. It records allow, refuse, and policy-error decisions from before_tool_callback, keeps the model's stated rationale from after_model_callback as review context, and records the allowed tool outcome with a pointer back to the decision. The rationale helps a human read the run, but it is not the authority check.

    It also exercises FunctionTool(require_confirmation=True). ADK can request confirmation today. The proof uses local fixtures for the later approved and stale/mismatched cases because ADK does not currently expose a stable tag tying an approval to the exact tool, args, principal, policy version, and expiry.

    The proof worked locally, but it exposed the schema question. A verifier should not have to reverse-engineer authority from callback behavior. The fields I ended up needing were tool call id, portable join handle, canonical args digest, auth mode, principal reference, policy source/version, refusal rule, confirmation id/expiry, result digest when available, and trace/span/session/invocation ids.

    The hosted visual is here.

    https://atrib-google.vercel.app

    That demo is a local proof with hosted replay. It shows AP2 evidence feeding an A2A handoff, then an ADK allow decision that cites the handoff before the callback runs. I included it to show the decision-to-outcome join, not to propose atrib as an upstream ADK dependency or claim a BigQuery or Agent Platform Runtime deployment.

    My concrete suggestion from the proof is to include enough stable IDs and digests for someone outside the runner to join the decision to the later tool outcome. If that stays adapter-specific, every plugin can emit a ledger, but the resulting records will not be interoperable.

  10. arian-gogani commented on Jun 24, 2026

    @arian-gogani

    the 'decision ledger between policy and action' framing is the right architectural cut, and the five decision categories you've identified (tool selection / authority / refusal / confirmation request / confirmation resolution) cover the full surface for compliance-grade reconstruction.

    one property worth pinning at the design stage, because it's load-bearing for the use case the issue is solving (incident response and compliance): the decision ledger should be independently verifiable — meaning a third party with no access to ADK's runtime infrastructure can recompute the ledger entries from their canonical bytes and verify the signature against a published key.

    if the ledger is just structured logging (operator-controlled, mutable post-write), it solves the operator question ('what did our agent do?') but not the adversarial audit question ('can we prove our agent did what we said?'). these are different artifacts. for EU AI Act Article 12 enforcement (August 2, 2026), the operator-only version doesn't satisfy the post-hoc verifiability requirement.

    the shape that works for both is a bilateral signed record per decision: a pre-execution admission record (decision_id, authority, refusal_reason, confirmation_required) and a post-execution outcome record (resolution, executed_action, result_digest), joined by a content-derived identifier over the canonical preimage:

    decision_ref = SHA-256(JCS({decision_id, agent_id, action_type, scope, policy_version, timestamp_ms}))
    

    this gives you (a) the operator-side searchable ledger you described, plus (b) cryptographic verifiability when a compliance team or regulator asks 'show your work.' canonical-bytes equality is what makes the two halves recomputable independently — RFC 8785 JCS specifically, not stdlib json.dumps(sort_keys=True) (those coincide for ASCII text + integers + booleans but diverge on Unicode or non-integer fields).

    the spec landscape on this is converging. four independent receipt formats (vaara, x402 settlement-receipt extension, agent-guard, nobulex) recently demonstrated byte-identical cross-implementation hashes against the same canonical-preimage discipline — see x402 PR #2666 §5 for the conformance evidence. ADK doesn't need to invent a new format; it needs to choose a canonical preimage shape and emit signed bytes at the five decision points. the rest composes.

    happy to sketch an ADK-specific integration of the existing pattern against the plugin callback + tool confirmation surface if useful — the wire format would slot into the BigQuery Agent Analytics plugin's existing event stream without disturbing the schema.

  11. rpelevin commented on Jun 24, 2026

    @rpelevin

    The ADK-specific integration I would start with is a small signed decision-ledger event emitted at the same boundary where the runtime already decides whether a proposed tool call may proceed.

    I would keep the first contract narrow:

    1. Pre-execution decision event: emitted from the policy/confirmation path before the tool handler runs. It carries decision_id, action_ref, agent/session/turn identity, tool identity, normalized args digest, policy/version refs, authority result, confirmation state, reason code, and validity window.
    2. Post-execution outcome event: emitted after the tool returns or fails. It carries the same action_ref plus outcome state, result digest or refusal/error class, side-effect boundary, and evidence refs.
    3. Confirmation events: request and resolution stay separate ledger rows, not just UI state, so the verifier can see which human decision authorized which action.

    The verifier should be able to recompute action_ref from the decision-side intent fields and compare it with the outcome-side action_ref without trusting local span IDs. Runtime-local tool_call_id can still be useful for tracing, but it should not be the only authority/execution join key.

    Two negative cases are worth pinning early:

    1. an outcome row with no matching pre-execution decision row is not authorized, even if the trace span exists;
    2. a confirmation resolution that changes tool, args digest, target scope, actor, policy version, or continuation identity must create a new decision rather than mutate the prior one.

    That keeps the ledger useful for operator search while making it strong enough for external audit: searchable events for operations, signed canonical bytes for verification.

    Boundary: architecture and test feedback only; no claim about using this project or running its code.

  12. Whatsonyourmind commented on Jun 25, 2026

    @Whatsonyourmind

    @rpelevin's two-event split (pre-execution decision + post-execution outcome) is the right shape — but the moment there are two events you inherit a second obligation beyond the join. The content-derived action_ref @arian-gogani described proves the two events are about the same action; it doesn't prove the pair is intact. Two failure modes a verifier still can't catch with the join alone:

    1. Orphaned authority. A decision emits state=allowed, the tool handler then raises / times out, and no outcome event is written. In the log that's indistinguishable from "allowed and silently succeeded" — the lossy-deny problem from earlier, generalized: any allowed decision with no terminal outcome is a hole.
    2. Swapped outcome. If nothing binds the outcome to the specific decision that authorized it, an outcome can be reattributed to a different decision.

    Both close with one move: make the outcome event commit to the decision event — carry decision_digest = SHA-256(JCS(decision_event)) on the outcome — so the chain is intent → decision → outcome, each hash-linking the prior. Then the ledger stops being a bag of events you join after the fact and becomes an append-only chain with a checkable invariant:

    every allowed decision has exactly one terminal outcome; every refused / confirmation_required(denied) has zero.

    That invariant is the compliance property the issue is after — it's what lets a verifier assert nothing executed unauthorized, and nothing authorized vanished without trusting the runtime's narration.

    Grounding it in ADK: this has to be enforced at the tool-execution step in flows/llm_flows/functions.py. The allowed path must emit its terminal outcome in a finally, so a raising/cancelled handler still produces {errored | timed_out} instead of a gap. @creatornader's proof already records the allow/refuse/policy-error decisions from before_tool_callback; the missing half is guaranteeing the outcome side can't be dropped when the handler itself fails — that's the difference between "we logged decisions" and "a verifier can prove the decision/outcome set is complete."

  13. 102 remaining items

  14. arkadeo-netizen commented on Dec 1, 2026

    @arkadeo-netizen

    Supporting the ledger, and the split at its center.

    The framework can attest to a decision: which authority a call ran under, which rule refused it, which approval permitted it. Those are facts the framework itself observed. The model's stated rationale is a different kind of entry. It is a claim by the component being governed, and if it is stored in the same ledger with the same standing as the attested fields, the ledger will be read as proof of reasons it cannot prove. Typing the rationale as untrusted is not a detail; it is what keeps the ledger evidence rather than narrative.

    On the three open questions, briefly:

    "Cannot tell" as an explicit value is the right call. An absent row and a recorded inability to determine are different facts, and only one of them is honest. A ledger with silent gaps will be trusted exactly where it should not be.

    Per-call digests should be mandatory. A decision that does not bind the exact call it authorized, arguments included, can be replayed in a later review against a call it never evaluated.

    And no run-level aggregation. A verdict over a run destroys the per-call facts the ledger exists to keep. Aggregation is a view someone can build later; it should never be the record.

    Stephen D. Smith, AeP Labs

  15. luckyman168 commented on Dec 1, 2026

    @luckyman168

    Following up on this thread with something more useful than more questions.

    I took the "persist the authority, refusal and approval behind each tool call" idea and built two worked examples on my own products — a real readiness-audit format, not a template: an applicability table (what actually applies to you, and what explicitly does not), a four-state finding (PASS / GAP / UNVERIFIED / N/A) with the evidence location each rests on, and a "what self-assessment cannot prove" section.

    The line that landed hardest, in both: the gap is rarely "we didn't know the rule" — it's "we assumed we'd already done it". A privacy page saying "AI is used" is not disclosure at the point the user meets the AI. A policy that promises "every AI section is labelled" is unverifiable until the renderer exists — and at launch, an unkept promise becomes a false written statement.

    If it is useful for your own product: I'm running a small founding batch of these as a paid service — frameworks and logs in, a written four-state report out. Not a SaaS, not a subscription. If you want to see a sample first, reply or DM and I'll send one; nothing for sale here beyond that sentence.

    (Posting the angle here because this thread is where the production experience actually lives. If a paid mention doesn't belong in this issue, say so and I'll move it to DM.)

  16. DSHCorrectover commented on Dec 1, 2026

    @DSHCorrectover

    The worked-examples and the "what self-assessment cannot prove" section are genuinely useful — and that last section points at a dimension worth naming before this thread's format hardens: the four states describe the finding, but nothing yet grades the evidence the finding rests on.

    Two findings that both say GAP can have very different evidentiary status:

    • one rests on a hash-pinned artifact a third party can replay without trusting the auditor;
    • the other rests on the auditee's own screenshot or a policy document that can change after the report is signed.

    The first is evidence; the second is narrative with a date on it. If the audit format gains one more axis — evidence grade (A: third-party replayable against pinned artifacts / B: auditor-observed / C: self-attested) — then the "what self-assessment cannot prove" section becomes computable instead of a prose disclaimer: every C-graded finding is automatically in it.

    This composes with the four-state proposal rather than competing with it. For grounding, the pinning pattern is public and replayable: 272 receipt vectors for tool-call authorization (Zenodo DOI 10.5281/zenodo.24618874, repo DSHCorrectover/verifier-divergence-corpus @ 5a6731390a48, vectors lock 0c517462…a04) — any auditor, including @luckyman168's, can adopt the same artifact-pinning discipline and make their UNVERIFIED column machine-checkable.

  17. arkadeo-netizen commented on Dec 1, 2026

    @arkadeo-netizen

    Agreed, and the composition is the right way to add it: state says what the finding is, grade says what the finding rests on. Two consequences are worth pinning down while the format is still fluid.

    First, the mapping you draw is the valuable part. If every C-graded finding is automatically inside "what self-assessment cannot prove," that section stops being a disclaimer the reader has to trust and becomes a filter the reader can run. That is the difference between an audit format and an audit narrative.

    Second, the two axes have to stay independent in both directions. A C grade must not soften a GAP into something weaker, and an A grade must not harden a finding into more than its state says. Grade carries the weight a reader may put on the finding; it does not change the finding. The failure mode to design against is a reader who treats A-graded as verified outright, which is the same rounding error as treating not-checked as verified, one axis over.

    Your corpus is the right grounding for the A grade: pinned artifacts a third party can replay without trusting the auditor. If the grade definitions are written against a replay test like that, rather than against who produced the evidence, any auditor can apply them, and the UNVERIFIED column becomes checkable in the way you describe.

    Stephen D Smith, AeP Labs

  18. DSHCorrectover commented on Dec 1, 2026

    @DSHCorrectover

    @arkadeo-netizen Agreed on both consequences - they are the two failure modes we designed ASSERTION-GRADES against.

    On axis independence: in our v1.0 grades (A-structural / A-dynamic / A-poc), the grade states what the finding rests on and never mutates the state. Concretely: an A-structural grade on a GAP finding means "the absence is anchored to pinned artifacts" - it does not soften GAP; an A-poc grade does not promote a finding beyond what its state sentence claims. The rounding error you name (A-graded read as verified outright) is exactly why the grade definition is written as a replay test, not as a producer reputation: A-structural = third party can re-derive each cited anchor; A-dynamic = an observable artifact exists on the target (marker/receipt/log) proving the path executed; A-poc = a third party replays the whole run without trusting the auditor.

    The mapping you draw (C-graded findings auto-populate "what self-assessment cannot prove") we accept: it turns the disclaimer into a mechanically checkable column, which is the property our own post-triage corrections exposed the need for (an anchor-level assertion that read as path-level until an execution trace said otherwise).

    Grounding anchors for the grade definitions, pinned so any auditor can replay: DSHCorrectover/verifier-divergence-corpus @ HEAD 5a6731390a48, vector lock sha256 0c517462...a04, DOI 10.5281/zenodo.24618874. Next revision of ASSERTION-GRADES.md will add the state x grade mapping table with this filter semantics.

    Individual submission, not an RFC or IETF endorsement.

    Guigui Wang | Correctover

  19. PHM-Audit commented on Dec 1, 2026

    @PHM-Audit

    @DSHCorrectover @arkadeo-netizen — supporting the evidence-grade axis, and offering four concrete instances we self-assess as A-poc candidates, pending independent third-party replay.

    We build deterministic physics-boundary validators for AI and sensor outputs (github.com/PHM-Audit). Four of our public validators ship with hash-pinned, third-party-replayable evidence:

    • dji-flightqc (drone flight data): replay reproducibility 29/29 runs reproduced identical verdicts on clean clone replay; SHA-256 audit chain pinned per run.
    • fincheck (financial regulatory boundary): 22/22 replayable, SOURCES.md back-referencing regulatory text.
    • commerce-check (UCP catalog conformance): clean-clone replay exit 0; 8/8 injected violations detected in this test set; no false positives observed on the clean feed we tested (feed documented in repo; FP rate not quantified).
    • MedCheck (medical advice boundary): T1 9/9 + T2 6/8, with the 2 T2 boundary-class misses documented in-repo; v0.2.1 digest pinned.

    Self-assessed against ASSERTION-GRADES v1.0: all four are A-poc candidates (designed so that a third party can replay the whole run without trusting the auditor; independent replay pending). We believe the rule tables are also structured to meet A-structural — self-assessment only; anchor-level verification is not yet published, so this does not constitute an A-structural determination. B/C we do not claim — our benign-corpus FP rate is not yet independently quantified, so we mark that UNVERIFIED rather than grade it.

    One preliminary observation (n=4 self-built validators), offered for the mapping table: evidence is stamped per-run rather than per-release — the digest is pinned when the verdict is issued, so in our view a screenshot of a report cannot substitute for a replay of the run that produced it.

    Individual submission, not on behalf of any standard body.

  20. DSHCorrectover commented on Dec 1, 2026

    @DSHCorrectover

    @PHM-Audit Thank you - this is exactly the right way to use the grades: self-assessment submitted as candidates with the limit stated ("anchor-level verification is not yet published, so this does not constitute an A-structural determination"), and the unquantified FP rate marked UNVERIFIED rather than graded. That is the discipline that makes the column checkable rather than narrative.

    Status: all four instances are logged as A-poc candidates. A-poc becomes a determination only when an independent party completes a clean-clone replay of the whole run; until then the candidate label (with your per-run SHA-256 chains as the pin) is the correct resting state. Any third party may run the replays and register results on this thread - the registration format follows the Agents Kit #3 evidence-row pattern (repo, commit, verdicts, environment).

    Your preliminary observation is adopted for the mapping table: evidence stamped per-run, pinned when the verdict is issued - a screenshot of a report cannot substitute for a replay of the run that produced it. That sentence will appear (credited) in the next ASSERTION-GRADES revision alongside the state x grade mapping table.

    Individual submission, not an RFC or IETF endorsement.

    Guigui Wang | Correctover

  21. PHM-Audit commented on Dec 1, 2026

    @PHM-Audit

    @DSHCorrectover — logged and confirmed, thank you for the credit.

    One boundary worth keeping explicit from our side: as the submitting party, we won't run or register the replays ourselves — this reply does not constitute any A-poc determination; independence has to come from an independent party's clean-clone replay. Where a registered result is itself verifiable, we'll accept it over our self-assessment.

    For any third party attempting the replays: to our verification today, each of the four repos carries the clean-clone replay commands and per-run SHA-256 chains — PHM-Audit/dji-flightqc, PHM-Audit/fincheck, PHM-Audit/commerce-check, PHM-Audit/qmed (the MedCheck v0.2.1 carrier). If a verified replay diverges from a pinned verdict (beyond environment noise), that divergence is a finding we'd want to know regardless of the grade outcome.

    Individual submission, not on behalf of any standard body.

  22. arian-gogani commented on Dec 3, 2026

    @arian-gogani

    Strong +1 from the consumer side of exactly the ecosystem the issue names: we build signed action limits, tamper-evident receipt chains, and settlement reconciliation for agent actions, and the issue's framing is correct about the boundary. We can sign and chain what happened; only the framework sees why and under what authority. Today we reconstruct the authority half ourselves (customer-signed mandates evaluated in middleware before the tool call), which works, but a framework-emitted decision record would let any attestation layer bind to ground truth instead of reimplementing it.

    From implementation experience, four properties the emission point needs for the entries to be usable as dispute and underwriting evidence downstream, not just debugging:

    1. The authority reference should be a stable identifier of the specific grant (which mandate, which per-tool auth config, which principal), not just an enum of agent-auth vs user-auth. Liability turns on which signed authority was in force, and a dispute needs to join the ledger entry to it.

    2. Refusals need to be first-class entries carrying the rule and the attempted action, equal citizens with executions. In our dispute testing, "the agent was asked and refused" is frequently the decisive fact, and it only exists if the refusal was recorded at decision time.

    3. Confirmation resolutions should carry a consumable identifier. The hardest real case we cover is not an out-of-bounds action but a duplicate in-bounds one: a single approval executed twice is two individually valid actions and one violated rule. If the ledger entry for an approval includes an id that is consumed on execution, downstream layers can prevent replay rather than detect it later.

    4. Typing the model's stated rationale as untrusted while the deterministic fields are framework-attested is exactly right, and worth keeping under pressure to simplify. A hijacked agent narrates a plausible justification; the attested fields are what survive.

    If useful as a consuming reference: our middleware already wraps tool calls (MCP) with pre-execution mandate checks and emits hash-chained Ed25519 receipts per decision, including blocks, with conformance vectors independently verified across three implementations this week (giskard09/action-ref-conformance#1). Happy to prototype the consumer side against whatever schema the RFC lands on, so "emission point in the framework, attestation in the ecosystem" is demonstrated end to end rather than asserted.

  23. arkadeo-netizen commented on Dec 3, 2026

    @arkadeo-netizen

    Arian, the consumable confirmation identifier is the point I would underline. A confirmation that can be resolved twice defeats after-the-fact review: the second execution has already happened, and each entry looks valid on its own. Recording the resolution as consumed by one invocation turns detection into prevention. Agreed on the authority reference as well: it should name the grant as issued, not the type of authorization used. And agreed on the rationale typing: the deterministic fields are what the framework attests; the model's stated reason is untrusted text and should be marked as such. I would welcome the consumer-side prototype against the schema; a reader built by someone other than the author is the test that matters.

    Stephen D Smith, AeP Labs

  24. PHM-Audit commented on Dec 3, 2026

    @PHM-Audit

    @arkadeo-netizen — accepting your own invitation from a direction you may not have expected: a reader prototype is now available, built by one of the fixture authors, disclosed as such up front. We are not independent of the schema: we co-designed parts of it in this thread and authored the pilot fixtures, so everything below is author-self-testing with the conflict of interest stated plainly. What the prototype adds is a different role than the author — a consumer that reads ledger bytes adversarially and re-derives everything (to our knowledge, no one in this thread had yet built that component).

    PHM-Audit/ledger-reader — zero-dependency Python reader prototype (single file, 188 lines) implementing five checks, each mapped to a position taken in this thread:

    • C1 SHA-256 chain re-derivation (append-only, per zambodotdev's issuance-commitment semantics we adopted 11-30)
    • C2 rationale must be typed untrusted_text (your "evidence rather than narrative" point, 12-01)
    • C3 confirmation id consumed at most once (your "turns detection into prevention" point, 12-03)
    • C4 explicit exit_state — PASS/DEGRADE/VETO; silent gaps rejected ("only one of them is honest")
    • C5 per-call digest binding; aggregation rows rejected ("a verdict over a run destroys the per-call facts")

    Smoke matrix (2 repeated runs, one container, byte-identical reader reports each time — reader self-digest 2c4b9370…, SHA-256): the valid ledger (3 entries) reads PASS; on the five single-tamper attack fixtures (digest tamper, reused human approval, narrative typed as attested, silent gap, aggregation row) each tamper produced exactly one finding attributed to its check. This is a 5-attack sample with no statistical power beyond attributability; the FP statement is scoped to the 3-entry valid fixture only and is not a benign-corpus quantification.

    So the "someone other than the author" test can still be run properly: if @arian-gogani or the assignees want a fully independent reader built from the spec text alone, we believe the fixture format is documented sufficiently in the repo to attempt that, and we would treat any mismatch between an independent reader and ours as schema feedback, not as a defense of our implementation.

    Known boundaries, stated plainly: the digest canonicalization (sorted-keys JSON minus self_digest) is this prototype's convention, not yet the thread's standardized rule; the FP statement is scoped to the 3-entry valid fixture only, not a benign-corpus quantification; and ADK runtime integration (converting real session events into ledger entries) is the next step, not in this prototype.

  25. DSHCorrectover commented on Dec 3, 2026

    @DSHCorrectover

    @arkadeo-netizen — the "someone other than the author" slot, taken from a direction you may not have expected: an independent reader built from the spec text alone, completed before reading your implementation.

    Reader: DSHCorrectover/ledger-reader-independent (independent_reader.py, zero-dependency Python 3.10+, deterministic reports with reader self-digest).

    Independence discipline (stated up front): our reader implements C1–C5 from the PHM-Audit/ledger-reader README only (checks table + the documented canonicalization rule). The reference implementation ledger_reader.py was not read until our results were fixed and committed.

    COI: we (Guigui Wang, Correctover) are the authors of the verifier-divergence corpus (DSHCorrectover/verifier-divergence-corpus) and a #6099 thread participant (docs crosswalk PR #8198, closed unmerged) — not co-designers of this ledger schema and not involved in the PHM-Audit prototype.

    Results on the six fixtures (each run twice, byte-identical reports):

    fixture reference expected independent reader findings
    ledger_valid PASS PASS (exit 0) 0
    ledger_attack_chain REJECT (C1) REJECT (exit 1) exactly 1, C1
    ledger_attack_reused_confirmation REJECT (C3) REJECT (exit 1) exactly 1, C3
    ledger_attack_rationale_typed FLAG (C2) FLAG (exit 2) exactly 1, C2
    ledger_attack_silent_gap REJECT (C4) REJECT (exit 1) exactly 1, C4
    ledger_attack_aggregation REJECT (C5) REJECT (exit 1) exactly 1, C5

    One observation relevant to standardization: the documented canonicalization ("sorted-keys JSON minus self_digest", UTF-8, no insignificant whitespace) reproduced every stored self_digest on the first calibration pass — no parameter search needed. If two independent implementations converge on a fully-determined rule from the same sentence of spec text, that is decent evidence the convention is standardizable as-is.

    Mutation self-test (a reader that cannot go red is decoration): corrupting a call_digest without updating self_digest → C1 fires; reusing a confirmation id across entries → C3 fires.

    Minor schema feedback, offered as feedback not defense:

    1. C5 as we implemented it has two prongs: explicit row_type: "aggregation" rejected, and any per-call entry missing call_digest rejected. The fixture set exercises only the first prong — worth deciding whether the second is normative.
    2. C2 severity (FLAG vs REJECT) is currently an implementation choice matching your expected-verdict table; if severity gets standardized, pin the mapping in the spec.
    3. field_typing semantics beyond rationale are unspecified; our reader enforces only the documented rule.

    Per your own framing: any mismatch between our reader and the reference on future fixtures is schema feedback, not a defense of ours.

    Guigui Wang | Correctover
    draft-correctover-ccs (individual submission, not an RFC or IETF endorsement)

  26. arkadeo-netizen commented on Dec 3, 2026

    @arkadeo-netizen

    @PHM-Audit @DSHCorrectover Thank you both. The independent reader is the result that matters: built from the spec text alone, results committed before the reference was read, converging on all six fixtures, with the documented canonicalization rule reproducing every stored digest on the first pass. That is the property a standard needs, and authors testing their own fixtures cannot show it.

    Agreed on the two open items as spec decisions: whether C5's second prong is normative, and the C2 severity mapping pinned in the spec.

    Stephen D Smith, AeP Labs

  27. PHM-Audit commented on Dec 4, 2026

    @PHM-Audit

    @DSHCorrectover @arkadeo-netizen — a blind implementation converging on all six fixtures (per their stated protocol: results committed before the reference was read; we cannot independently verify their isolation, only that the timeline holds), plus a mutation self-test demonstrating at least one tripping mutation per check ("a reader that cannot go red is decoration" — well put), is a strong form of this test given the six-fixture set. On convergence itself: nothing to add. On exit codes: a small divergence, addressed below.

    On the two open items @arkadeo-netizen flagged as spec decisions, our position (design call left to the assignees):

    1. C5's second prong (verdict row without call_digest → FLAG). We recommend keeping it FLAG rather than promoting it to normative REJECT, and instead resolving the ambiguity in the schema rather than the reader: enumerate which row_type values MUST carry call_digest (verdict rows) and which are exempt (system/attestation rows). That keeps intent inference out of the reader — it reports binding absence and does not interpret row semantics beyond the declared type — while the aggregation-REJECT behavior stays declarative (a declared row_type: aggregation is a structural violation regardless of fields). If the assignees prefer the stronger rule (any row lacking call_digest → REJECT), that works too; we would then split C5 into two normative checks so reports stay attributable.

    2. C2 severity mapping. Our assessment: pin C2 → FLAG always. Rationale text does not drive execution — the attested fields do — so a mistyped rationale is, in our view, an evidence-quality downgrade rather than a safety violation. We have not constructed a counterexample where mistyping alone causes a safety consequence, and we acknowledge such cases could be argued; the downstream-policy route exists precisely so that a deployment which weighs that risk differently can block on C2 without the reader changing behavior.

    One small divergence we will align on request: exit codes. Our reference used 1 for both REJECT and FLAG; the independent reader distinguishes 1/2. We adopt whatever the spec pins (we would suggest 0 PASS / 1 REJECT / 2 FLAG, mirroring our own usage, but this is exactly the kind of detail a spec should own rather than either implementation).

  28. arkadeo-netizen commented on Dec 4, 2026

    @arkadeo-netizen

    Agreed on both resolutions: C5 settled in the schema (enumerate which row_types must carry call_digest, verdict rows required, system and attestation rows exempt), and C2 pinned to FLAG, with deployments free to block on it through downstream policy. The exit codes should be the spec's to pin as well (0 PASS, 1 REJECT, 2 FLAG).

    Stephen D Smith, AeP Labs

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

Metadata

Metadata

Labels

needs reviewtracing

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions