Articles of Agreement Auditor
Decide whether an Articles of Agreement contract actually binds an agent, or just documents good intentions.
Use This For
- Drafting a new Agent Node's Articles before it registers: naming a concrete mechanism per obligation, not an aspiration.
- Reviewing a claimed compliance level (C0 Registered through C6 Resumable) against the clauses that supposedly back it.
- Deciding whether a specific clause is genuinely enforced (daemon can observe and, for gates, deny it) or merely written down.
- Auditing whether a signing identity is trustworthy: daemon-issued at
agent.register, and signed, not self-asserted by the body.
- Catching a gate-style mechanism (pre-tool-gate, hook, capability-lease, mcp-gateway) with no defined denial shape before it ships.
Do Not Use This For
- Securing the path from an inbound webhook/email/SMS/GitHub comment to an agent spawn — that is
fleet-event-spawn-trust; this skill audits the signed contract an already-spawned agent operates under.
- Designing the relay's transport PKI, per-publisher signing keys, or Merkle event chains — that is
pd-relay-zero-trust; this skill is silent on wire-level trust between daemons.
- Tracking a signed identity's behavior, outcomes, or reputation over its whole lifetime — that is
agent-identity-continuity-reputation; this skill only checks the contract is sound and the identity was legitimately issued at signing time.
Enforcement Decision Model
flowchart TD
A[Draft identity: daemonIssued + signed] --> B[Enumerate every obligation as a clause]
B --> C[Assign an enforcementMechanism per clause]
C --> D{Gate mechanism?}
D -->|pre-tool-gate/hook/capability-lease/mcp-gateway| E[Define denialShape]
D -->|probe/transcript-event| F[Leave denialShape unset]
D -->|none| G[Honest but unenforced -- must fix before signing]
E --> H[Run scripts/articles_audit.mjs]
F --> H
G --> H
H --> I{pass:true and zero critical findings?}
I -->|No| J[Fix the exact clause/identity field the finding names]
J --> C
I -->|Yes| K[Sign the Articles and register the Agent Node]
- Verify identity before evaluating anything else. Confirm
identity.daemonIssued and identity.signed are both true. A body that can self-assert its own identity can also self-assert compliance — no clause matters until the signing identity itself is trustworthy.
- Enumerate every obligation as its own clause. Registration, transcript reporting, tool-use gating, file/symbol claims, parley conduct, budget/lease limits, and operator control each get a named clause — see
templates/output-template.md.
- Assign a real
enforcementMechanism per clause. Pick from pre-tool-gate, hook, capability-lease, mcp-gateway, probe, transcript-event, or the honest none — see references/enforcement-mechanism-taxonomy.md for which mechanism actually fits which obligation.
- Require
daemonObservable: true for every clause that claims a mechanism. A named mechanism the daemon cannot independently confirm is functionally the same as none.
- Define
denialShape for every gate-style clause. State the concrete artifact a violation produces (error code, refused call, revoked lease); never attach a denialShape to a passive probe/transcript-event clause, which has nothing to deny.
- Run
scripts/articles_audit.mjs against the spec and fix every critical finding at the exact clause or identity field it names, not by weakening the check.
- Sign and register only on
pass:true. A contract that fails closed is a blocker, the same as a red required CI check — not an FYI to route around.
Output Contract
The scorer reads a JSON object matching schemas/articles.schema.json:
identity: { daemonIssued: boolean, signed: boolean } — both must be true.
clauses[]: { name, obligation, enforcementMechanism, daemonObservable, denialShape? } — at least one clause; every clause's enforcementMechanism must not be "none" and daemonObservable must be true; every gate-style clause needs a non-empty denialShape.
Use scripts/articles_audit.mjs to audit an Articles spec JSON and return { pass, score, findings, recommendations }.
Anti-Patterns
The Hopeful Clause
Novice: Writes an obligation in plain English ("the agent will respect its budget") and calls it done, or picks a mechanism the daemon has no way to actually observe.
Expert: Every clause resolves to a concrete, daemon-observable mechanism — or is honestly marked enforcementMechanism: "none" so the gap is visible, never silently assumed safe.
Detection: articles_audit.mjs fires clause-not-enforced (critical) when a clause's enforcementMechanism is "none" or daemonObservable is false.
Self-Attested Identity
Novice: Lets the agent register with a self-chosen id, or treats an unsigned Articles document as close enough.
Expert: The daemon mints the Agent Node id at agent.register against a nonce it issued first, and signs the Articles before any clause is trusted — a body can request capabilities, it cannot declare itself compliant.
Detection: articles_audit.mjs fires identity-not-daemon-issued (critical) when identity.daemonIssued is not true, and identity-unsigned (critical) when identity.signed is not true.
The Gate With No Denial Receipt
Novice: Names a gate mechanism (pre-tool-gate, hook, capability-lease, mcp-gateway) and stops there, with nothing describing what actually happens on a violation.
Expert: Every gate defines a denialShape — the literal artifact a violation produces (error code, refused call, revoked lease) — so the gate is provably built, not just named.
Detection: articles_audit.mjs fires enforced-clause-no-denial-shape (critical) when a gate-style clause has no non-empty denialShape.
References
| File |
Load When |
references/enforcement-mechanism-taxonomy.md |
Need to pick a real enforcementMechanism for a clause, or decide whether it needs a denialShape. |
references/compliance-levels-and-identity.md |
Need to ground a clause in the C0-C6 compliance ladder, or decide whether an identity claim can be trusted. |
examples/expected-output.md |
Need to see a hopeful/self-attested contract audited, then the same contract fixed and passing. |
examples/sample-input.json |
Need a complete, passing Articles spec to copy and adapt. |
templates/output-template.md |
Need a reusable Articles draft template (identity + clauses) to fill in before signing. |
schemas/articles.schema.json |
Need to validate an Articles spec JSON payload's structure before auditing it. |
scripts/articles_audit.mjs |
Need deterministic scoring of an Articles contract's enforceability. |
agents/openai.yaml |
Need a subagent descriptor for delegated Articles drafting/audit. |
Skill Bundle Index
Every file in this skill, and when to open it. Auto-generated; run scripts/index_references.py --fix.
root
CHANGELOG.md — Articles of Agreement Auditor — Changelog — - Initial skill creation - Identity-then-clause enforcement decision model defined - Reference files and deterministic articles_audit script
README.md — Articles of Agreement Auditor — Audit an Articles of Agreement contract — the daemon-witnessed agreement every official Port Daddy agent signs — against the enforcement-bea
agents/
agents/openai.yaml — openai (data/schema)
examples/
examples/expected-output.md — Example Output: Articles of Agreement Auditor — Scenario: a new Voyager is drafted with a self-issued identity, an unsigned Articles document, a "be nice" clause with no mechanism at all,
examples/sample-input.json — sample input (data/schema)
references/
references/compliance-levels-and-identity.md — Compliance Levels And Identity — Use this when you need to ground a clause's mechanism in the daemon's actual compliance ladder, or decide whether an identity claim can be t
references/enforcement-mechanism-taxonomy.md — Enforcement Mechanism Taxonomy — Use this when you need to pick a real enforcementMechanism for a clause, or decide whether it needs a denialShape.
schemas/
schemas/articles.schema.json — articles.schema (data/schema)
scripts/
scripts/articles_audit.mjs
templates/
templates/output-template.md — Articles of Agreement Draft — Fill in every clause before signing.
1---2name: articles-of-agreement-auditor3description: >-4 Audits an Articles of Agreement contract — the daemon-witnessed agreement every official Port5 Daddy agent signs covering registration, transcript reporting, tool-use gating, file claims,6 parley conduct, budget limits, and operator control — against the enforcement-beats-hope bar: a7 clause counts as safe only when it resolves to a concrete, daemon-observable mechanism with a8 defined denial shape, never a promise the agent might honor. Use when drafting a new agent's9 Articles, reviewing a compliance-level (C0-C6) claim, deciding whether a clause is genuinely10 enforced or merely documented, or auditing whether an agent's claimed identity can be trusted.11 NOT for securing the inbound event-to-spawn path (fleet-event-spawn-trust), designing the12 relay's transport PKI and signing keys (pd-relay-zero-trust), or tracking an agent's identity13 and reputation across its whole lifetime after it signs (agent-identity-continuity-reputation).14license: Apache-2.015allowed-tools: Read,Write,Edit,Bash,Grep,Glob16metadata:17 source: https://skillmd.com/skills/curiositech/articles-of-agreement-auditor18 category: Agent & Orchestration19 tags:20 - articles-of-agreement21 - enforcement-beats-hope22 - daemon-observable23 - capability-lease24 - agent-contract25 provenance:26 kind: first-party27 owners:28 - port-daddy29 pairs-with:30 - skill: human-gate-designer31 reason: When a clause's mechanism is a human approval step, this skill designs the gate UX and approve/reject/modify routing; this auditor only checks a mechanism and denial shape exist.32 - skill: runtime-verification-for-agents33 reason: This auditor checks a contract is enforceable on paper; this skill compiles the same invariants into runtime monitors that catch drift in live sessions.34 - skill: agent-identity-continuity-reputation35 reason: This auditor checks identity is daemon-issued and signed at signing time; this skill tracks that same signed identity's behavior and reputation across its whole lifetime.36 io-contract:37 kind: deliverable38 consumes:39 - kind: agent-contract-draft40 format: markdown41 - kind: articles-of-agreement-spec42 format: json43 produces:44 - kind: enforcement-gap-report45 format: markdown46 - kind: articles-audit47 format: json48---4950# Articles of Agreement Auditor5152Decide whether an Articles of Agreement contract actually binds an agent, or just documents good intentions.5354## Use This For5556- Drafting a new Agent Node's Articles before it registers: naming a concrete mechanism per obligation, not an aspiration.57- Reviewing a claimed compliance level (C0 Registered through C6 Resumable) against the clauses that supposedly back it.58- Deciding whether a specific clause is genuinely enforced (daemon can observe and, for gates, deny it) or merely written down.59- Auditing whether a signing identity is trustworthy: daemon-issued at `agent.register`, and signed, not self-asserted by the body.60- Catching a gate-style mechanism (pre-tool-gate, hook, capability-lease, mcp-gateway) with no defined denial shape before it ships.6162## Do Not Use This For6364- Securing the path from an inbound webhook/email/SMS/GitHub comment to an agent spawn — that is `fleet-event-spawn-trust`; this skill audits the signed contract an already-spawned agent operates under.65- Designing the relay's transport PKI, per-publisher signing keys, or Merkle event chains — that is `pd-relay-zero-trust`; this skill is silent on wire-level trust between daemons.66- Tracking a signed identity's behavior, outcomes, or reputation over its whole lifetime — that is `agent-identity-continuity-reputation`; this skill only checks the contract is sound and the identity was legitimately issued at signing time.6768## Enforcement Decision Model6970```mermaid71flowchart TD72 A[Draft identity: daemonIssued + signed] --> B[Enumerate every obligation as a clause]73 B --> C[Assign an enforcementMechanism per clause]74 C --> D{Gate mechanism?}75 D -->|pre-tool-gate/hook/capability-lease/mcp-gateway| E[Define denialShape]76 D -->|probe/transcript-event| F[Leave denialShape unset]77 D -->|none| G[Honest but unenforced -- must fix before signing]78 E --> H[Run scripts/articles_audit.mjs]79 F --> H80 G --> H81 H --> I{pass:true and zero critical findings?}82 I -->|No| J[Fix the exact clause/identity field the finding names]83 J --> C84 I -->|Yes| K[Sign the Articles and register the Agent Node]85```86871. **Verify identity before evaluating anything else.** Confirm `identity.daemonIssued` and `identity.signed` are both true. A body that can self-assert its own identity can also self-assert compliance — no clause matters until the signing identity itself is trustworthy.882. **Enumerate every obligation as its own clause.** Registration, transcript reporting, tool-use gating, file/symbol claims, parley conduct, budget/lease limits, and operator control each get a named clause — see `templates/output-template.md`.893. **Assign a real `enforcementMechanism` per clause.** Pick from `pre-tool-gate`, `hook`, `capability-lease`, `mcp-gateway`, `probe`, `transcript-event`, or the honest `none` — see `references/enforcement-mechanism-taxonomy.md` for which mechanism actually fits which obligation.904. **Require `daemonObservable: true` for every clause that claims a mechanism.** A named mechanism the daemon cannot independently confirm is functionally the same as `none`.915. **Define `denialShape` for every gate-style clause.** State the concrete artifact a violation produces (error code, refused call, revoked lease); never attach a `denialShape` to a passive `probe`/`transcript-event` clause, which has nothing to deny.926. **Run `scripts/articles_audit.mjs` against the spec** and fix every critical finding at the exact clause or identity field it names, not by weakening the check.937. **Sign and register only on `pass:true`.** A contract that fails closed is a blocker, the same as a red required CI check — not an FYI to route around.9495## Output Contract9697The scorer reads a JSON object matching `schemas/articles.schema.json`:9899- `identity`: `{ daemonIssued: boolean, signed: boolean }` — both must be `true`.100- `clauses[]`: `{ name, obligation, enforcementMechanism, daemonObservable, denialShape? }` — at least one clause; every clause's `enforcementMechanism` must not be `"none"` and `daemonObservable` must be `true`; every gate-style clause needs a non-empty `denialShape`.101102Use `scripts/articles_audit.mjs` to audit an Articles spec JSON and return `{ pass, score, findings, recommendations }`.103104## Anti-Patterns105106### The Hopeful Clause107108**Novice**: Writes an obligation in plain English ("the agent will respect its budget") and calls it done, or picks a mechanism the daemon has no way to actually observe.109**Expert**: Every clause resolves to a concrete, daemon-observable mechanism — or is honestly marked `enforcementMechanism: "none"` so the gap is visible, never silently assumed safe.110**Detection**: `articles_audit.mjs` fires `clause-not-enforced` (critical) when a clause's `enforcementMechanism` is `"none"` or `daemonObservable` is `false`.111112### Self-Attested Identity113114**Novice**: Lets the agent register with a self-chosen id, or treats an unsigned Articles document as close enough.115**Expert**: The daemon mints the Agent Node id at `agent.register` against a nonce it issued first, and signs the Articles before any clause is trusted — a body can request capabilities, it cannot declare itself compliant.116**Detection**: `articles_audit.mjs` fires `identity-not-daemon-issued` (critical) when `identity.daemonIssued` is not `true`, and `identity-unsigned` (critical) when `identity.signed` is not `true`.117118### The Gate With No Denial Receipt119120**Novice**: Names a gate mechanism (`pre-tool-gate`, `hook`, `capability-lease`, `mcp-gateway`) and stops there, with nothing describing what actually happens on a violation.121**Expert**: Every gate defines a `denialShape` — the literal artifact a violation produces (error code, refused call, revoked lease) — so the gate is provably built, not just named.122**Detection**: `articles_audit.mjs` fires `enforced-clause-no-denial-shape` (critical) when a gate-style clause has no non-empty `denialShape`.123124## References125126| File | Load When |127| --- | --- |128| `references/enforcement-mechanism-taxonomy.md` | Need to pick a real `enforcementMechanism` for a clause, or decide whether it needs a `denialShape`. |129| `references/compliance-levels-and-identity.md` | Need to ground a clause in the C0-C6 compliance ladder, or decide whether an identity claim can be trusted. |130| `examples/expected-output.md` | Need to see a hopeful/self-attested contract audited, then the same contract fixed and passing. |131| `examples/sample-input.json` | Need a complete, passing Articles spec to copy and adapt. |132| `templates/output-template.md` | Need a reusable Articles draft template (identity + clauses) to fill in before signing. |133| `schemas/articles.schema.json` | Need to validate an Articles spec JSON payload's structure before auditing it. |134| `scripts/articles_audit.mjs` | Need deterministic scoring of an Articles contract's enforceability. |135| `agents/openai.yaml` | Need a subagent descriptor for delegated Articles drafting/audit. |136137<!-- BEGIN BUNDLE INDEX (auto: index_references.py) -->138139## Skill Bundle Index140141*Every file in this skill, and when to open it. Auto-generated; run `scripts/index_references.py --fix`.*142143**root**144- [`CHANGELOG.md`](CHANGELOG.md) — Articles of Agreement Auditor — Changelog — - Initial skill creation - Identity-then-clause enforcement decision model defined - Reference files and deterministic articles_audit script145- [`README.md`](README.md) — Articles of Agreement Auditor — Audit an Articles of Agreement contract — the daemon-witnessed agreement every official Port Daddy agent signs — against the enforcement-bea146147**`agents/`**148- [`agents/openai.yaml`](agents/openai.yaml) — openai (data/schema)149150**`examples/`**151- [`examples/expected-output.md`](examples/expected-output.md) — Example Output: Articles of Agreement Auditor — Scenario: a new Voyager is drafted with a self-issued identity, an unsigned Articles document, a "be nice" clause with no mechanism at all, 152- [`examples/sample-input.json`](examples/sample-input.json) — sample input (data/schema)153154**`references/`**155- [`references/compliance-levels-and-identity.md`](references/compliance-levels-and-identity.md) — Compliance Levels And Identity — Use this when you need to ground a clause's mechanism in the daemon's actual compliance ladder, or decide whether an identity claim can be t156- [`references/enforcement-mechanism-taxonomy.md`](references/enforcement-mechanism-taxonomy.md) — Enforcement Mechanism Taxonomy — Use this when you need to pick a real `enforcementMechanism` for a clause, or decide whether it needs a `denialShape`.157158**`schemas/`**159- [`schemas/articles.schema.json`](schemas/articles.schema.json) — articles.schema (data/schema)160161**`scripts/`**162- [`scripts/articles_audit.mjs`](scripts/articles_audit.mjs)163164**`templates/`**165- [`templates/output-template.md`](templates/output-template.md) — Articles of Agreement Draft — Fill in every clause before signing.166167<!-- END BUNDLE INDEX -->