name: agent-attributed-audit-trail-web-implementation
description: Implement web audit-trail views where every displayed action row carries an explicit agent or human actor id, so web users can always see whether an agent or a person performed an action.
metadata:
source: skills/11-web/agent-attributed-audit-trail-web-implementation.md
category: 11-web
version: "v1"
Agent Attributed Audit Trail Web Implementation
Description
Implement web audit-trail views where every displayed action row carries an explicit agent or human actor id, so web users can always see whether an agent or a person performed an action. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- A web product must render an audit trail that distinguishes agent actors from human actors.
- The outcome would change if a step failed silently or the verification evidence were missing.
- The result must be recorded with reasons and verification evidence for later audit.
Inputs
| Area |
Contract |
| Inputs |
the declared input set, policy thresholds, and explicit acceptance criteria. |
| Outputs |
A structured record with the decision, rejected alternatives, and the verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Define the goal, the constraints, and the boundary of what this procedure may change.
- Inventory the available inputs and flag gaps or ambiguities that block progress.
- Render each audit row from the recorded actor id, render an explicit agent-actor badge for agent ids, and fail the view closed when any entry lacks an actor id.
- Compare the actual outcome against the acceptance criteria and record deviations.
- On failure, apply the declared fallback path, and never widen permissions to recover.
- Emit a structured result with evidence and provenance for downstream consumers.
Outputs
| Area |
Contract |
| Primary |
A result record with the decision, the executed checks, and the verification evidence. |
| Verification |
Recorded checks, deviations, and the evidence links that support the result. |
| Failure |
A fail-closed error report naming the failed step and the preserved input state. |
Runnable Example
def render_audit_row(entry):
if not entry["actor_id"]:
raise ValueError("audit rows require actor id")
return f"{entry['actor_id']} performed {entry['action']} at {entry['ts']}"
row = render_audit_row({"actor_id": "agent:ops-01", "action": "ticket update", "ts": "2026-10-27T09:00Z"})
assert row.startswith("agent:ops-01")
Failure Modes
- Rows without actor ids render as a blank user and agent actions look anonymous.
- Agent ids are displayed as raw technical strings and users cannot tell they are agents.
- The badge is derived from a display-name guess instead of the id namespace and mislabels humans as agents.
- The view silently skips unattributed entries and the visible trail undercounts agent work.
- Filtering by actor type is implemented against a copy of the data and diverges from the source trail.
Security and Authority Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.
Evidence
- Google's audit trail attributed to the agent account instead of a person in its workspace agent is the dated public signal for this implementation contract. (public signal)
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.
Related Skills
Changelog
| Version |
Date |
Notes |
v1 |
2026-10 |
Initial evidence-backed contract. |
1---2name: agent-attributed-audit-trail-web-implementation3description: Implement web audit-trail views where every displayed action row carries an explicit agent or human actor id, so web users can always see whether an agent or a4---5---6name: agent-attributed-audit-trail-web-implementation7description: Implement web audit-trail views where every displayed action row carries an explicit agent or human actor id, so web users can always see whether an agent or a person performed an action.8metadata:9 source: skills/11-web/agent-attributed-audit-trail-web-implementation.md10 category: 11-web11 version: "v1"12---1314# Agent Attributed Audit Trail Web Implementation1516## Description17Implement web audit-trail views where every displayed action row carries an explicit agent or human actor id, so web users can always see whether an agent or a person performed an action. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1819## When to Use20- A web product must render an audit trail that distinguishes agent actors from human actors.21- The outcome would change if a step failed silently or the verification evidence were missing.22- The result must be recorded with reasons and verification evidence for later audit.2324## Inputs25| Area | Contract |26|---|---|27| Inputs | the declared input set, policy thresholds, and explicit acceptance criteria. |28| Outputs | A structured record with the decision, rejected alternatives, and the verification evidence. |29| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |3031## Procedure321. Define the goal, the constraints, and the boundary of what this procedure may change.332. Inventory the available inputs and flag gaps or ambiguities that block progress.343. Render each audit row from the recorded actor id, render an explicit agent-actor badge for agent ids, and fail the view closed when any entry lacks an actor id.354. Compare the actual outcome against the acceptance criteria and record deviations.365. On failure, apply the declared fallback path, and never widen permissions to recover.376. Emit a structured result with evidence and provenance for downstream consumers.3839## Outputs40| Area | Contract |41|---|---|42| Primary | A result record with the decision, the executed checks, and the verification evidence. |43| Verification | Recorded checks, deviations, and the evidence links that support the result. |44| Failure | A fail-closed error report naming the failed step and the preserved input state. |4546## Runnable Example47```python48def render_audit_row(entry):49 if not entry["actor_id"]:50 raise ValueError("audit rows require actor id")51 return f"{entry['actor_id']} performed {entry['action']} at {entry['ts']}"52row = render_audit_row({"actor_id": "agent:ops-01", "action": "ticket update", "ts": "2026-10-27T09:00Z"})53assert row.startswith("agent:ops-01")54```5556## Failure Modes57- Rows without actor ids render as a blank user and agent actions look anonymous.58- Agent ids are displayed as raw technical strings and users cannot tell they are agents.59- The badge is derived from a display-name guess instead of the id namespace and mislabels humans as agents.60- The view silently skips unattributed entries and the visible trail undercounts agent work.61- Filtering by actor type is implemented against a copy of the data and diverges from the source trail.6263## Security and Authority Boundary64This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.6566## Evidence67- Google's audit trail attributed to the agent account instead of a person in its workspace agent is the dated public signal for this implementation contract. ([public signal](https://techcrunch.com/2026/10/08/google-brings-agentic-ai-to-gemini-starting-with-businesses/))68- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.6970## Related Skills71- [Web Agent Authenticated Session Automation](../11-web/web-agent-authenticated-session-automation.md)72- [Page Diff Monitoring](../11-web/page-diff-monitoring.md)7374## Changelog75| Version | Date | Notes |76|---|---|---|77| `v1` | `2026-10` | Initial evidence-backed contract. |