Agent Identity Profile Lifecycle Audit
Description
Audit agent identity profiles through creation, grant, use, and revocation to surface orphaned grants and missing revocation records. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- An operator needs this capability to proceed safely and verifiably.
- 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.
- Trace each agent identity profile through creation, grant, use, and revocation, and flag profiles with orphaned grants or missing revocation records.
- 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 audit_lifecycle(profiles, grants, revocations):
issues = []
for p in profiles:
active = [g for g in grants if g["profile"] == p["id"] and g["id"] not in revocations]
if p["status"] == "revoked" and active:
issues.append({"profile": p["id"], "issue": "orphaned-grants", "count": len(active)})
if p["status"] == "active" and p["id"] not in revocations and not active:
issues.append({"profile": p["id"], "issue": "grant-without-lifecycle-record"})
return issues
profiles = [{"id":"a1","status":"revoked"}, {"id":"a2","status":"active"}]
grants = [{"id":"g1","profile":"a1"}, {"id":"g2","profile":"a2"}]
revocations = set()
out = audit_lifecycle(profiles, grants, revocations)
assert out == [{"profile":"a1","issue":"orphaned-grants","count":1}]
Failure Modes
- Revoked profiles keep live grants because revocation events never reach the grant store.
- Grants created outside the profile workflow have no creation record and cannot be traced.
- The audit compares current state only and lifecycle gaps that already healed are invisible.
- Profile ids are rotated on redeploy and old ids with live grants fall out of the audit scope.
- Missing revocation records are reported as warnings instead of fail-closed exceptions.
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
- Walmart Agent Profiles let shoppers authorise each agent and set spending limits, a lifecycle that must be audited from authorisation to revocation (agenticexpo.ai, dated October 23, 2026) (public signal)
- The roundup describes customer-controlled permissions with per-agent caps, where lifecycle audit gaps become enforceable control gaps (agenticexpo.ai, dated October 23, 2026) (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-identity-profile-lifecycle-audit3description: Audit agent identity profiles through creation, grant, use, and revocation to surface orphaned grants and missing revocation records.4metadata:5 source: https://skillmd.com/skills/samotech/agent-identity-profile-lifecycle-audit6 upstream: skills/14-security/agent-identity-profile-lifecycle-audit.md7 category: 14-security8 version: "v1"9---1011# Agent Identity Profile Lifecycle Audit1213## Description14Audit agent identity profiles through creation, grant, use, and revocation to surface orphaned grants and missing revocation records. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1516## When to Use17- An operator needs this capability to proceed safely and verifiably.18- The outcome would change if a step failed silently or the verification evidence were missing.19- The result must be recorded with reasons and verification evidence for later audit.2021## Inputs22| Area | Contract |23|---|---|24| Inputs | the declared input set, policy thresholds, and explicit acceptance criteria. |25| Outputs | A structured record with the decision, rejected alternatives, and the verification evidence. |26| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |2728## Procedure291. Define the goal, the constraints, and the boundary of what this procedure may change.302. Inventory the available inputs and flag gaps or ambiguities that block progress.313. Trace each agent identity profile through creation, grant, use, and revocation, and flag profiles with orphaned grants or missing revocation records.324. Compare the actual outcome against the acceptance criteria and record deviations.335. On failure, apply the declared fallback path, and never widen permissions to recover.346. Emit a structured result with evidence and provenance for downstream consumers.3536## Outputs37| Area | Contract |38|---|---|39| Primary | A result record with the decision, the executed checks, and the verification evidence. |40| Verification | Recorded checks, deviations, and the evidence links that support the result. |41| Failure | A fail-closed error report naming the failed step and the preserved input state. |4243## Runnable Example44```python45def audit_lifecycle(profiles, grants, revocations):46 issues = []47 for p in profiles:48 active = [g for g in grants if g["profile"] == p["id"] and g["id"] not in revocations]49 if p["status"] == "revoked" and active:50 issues.append({"profile": p["id"], "issue": "orphaned-grants", "count": len(active)})51 if p["status"] == "active" and p["id"] not in revocations and not active:52 issues.append({"profile": p["id"], "issue": "grant-without-lifecycle-record"})53 return issues5455profiles = [{"id":"a1","status":"revoked"}, {"id":"a2","status":"active"}]56grants = [{"id":"g1","profile":"a1"}, {"id":"g2","profile":"a2"}]57revocations = set()58out = audit_lifecycle(profiles, grants, revocations)59assert out == [{"profile":"a1","issue":"orphaned-grants","count":1}]60```6162## Failure Modes63- Revoked profiles keep live grants because revocation events never reach the grant store.64- Grants created outside the profile workflow have no creation record and cannot be traced.65- The audit compares current state only and lifecycle gaps that already healed are invisible.66- Profile ids are rotated on redeploy and old ids with live grants fall out of the audit scope.67- Missing revocation records are reported as warnings instead of fail-closed exceptions.6869## Security and Authority Boundary70This 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.7172## Evidence73- Walmart Agent Profiles let shoppers authorise each agent and set spending limits, a lifecycle that must be audited from authorisation to revocation (agenticexpo.ai, dated October 23, 2026) ([public signal](https://www.agenticexpo.ai/news/weekly-roundup-23-october-2026))74- The roundup describes customer-controlled permissions with per-agent caps, where lifecycle audit gaps become enforceable control gaps (agenticexpo.ai, dated October 23, 2026) ([public signal](https://www.agenticexpo.ai/news/weekly-roundup-23-october-2026))75- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.7677## Related Skills78- [Agent Identity Graph Analysis](../08-multimodal/agent-identity-graph-analysis.md)79- [Permission Grant Ledger Analytics](../12-data/permission-grant-ledger-analytics.md)8081## Changelog82| Version | Date | Notes |83|---|---|---|84| `v1` | `2026-10` | Initial evidence-backed contract. |