Conserved Capacity, Admission, and Settlement
Use this skill to keep four authorities separate:
- a scheduler proposes an eligible attempt;
- a capacity broker reserves a native resource vector;
- an admission writer consumes both exactly once and creates a lease;
- an effect boundary closes authority and hands evidence to an independent settlement authority.
The skill designs or audits records. It cannot reserve real capacity, admit a body, issue a capability, schedule a node, settle compensation, or prove containment.
Activate when
- a node attempt, retry, repair, renewal, consuming gather, or resurrection needs scarce capacity;
- a crash or lost acknowledgement could duplicate a lease, effect, refund, slash, or payout;
- an external effect may be ambiguous and capacity reuse must fail closed;
- Stop must retain capacity for reconciliation and teardown;
- effect closure must not wait for compensation or dispute settlement;
- a no-settlement profile still needs explicit conservation and terminal records.
Do not activate for
- deciding which roadmap node runs next;
- estimating demand, price, or model quality;
- turning tokens, subscription allowance, cash, time, concurrency, and attention into one invented currency;
- deciding whether an effect is authorized;
- grading whether work is correct;
- making legal, tax, employment, custody, or moral-status decisions.
Authority and resource rules
- Native vectors only. Every dimension keeps its native unit and source: calls, tokens, seconds, dollars, slots, attempts, network bytes, or attention events.
- Reservation is not admission.
ReservationCommit is exact, expiring, one-use capacity evidence. It cannot create a lease.
- Admission has no scheduling discretion. The admission writer may consume an exact
EligibilityCommit and ReservationCommit; it may not select a different node, route, provider, or resource vector.
- Every consuming attempt pays capacity rent. Retry, renewal, rework, successor, elastic slot, provider call, and model-consuming gather each bind to a current reservation.
- Stop reserve is protected. Reconciliation, fence, teardown, and receipt publication have explicit reserved capacity that ordinary work cannot consume.
- Ambiguity holds resources.
AMBIGUOUS and QUARANTINED_UNRESOLVED expose no retry authority and do not release affected capacity.
- Containment does not wait for settlement. Effect closure and an idempotent settlement-outbox record share one local transaction. Settlement consumes asynchronously.
- Settlement is control-disjoint. Capacity broker, scheduler, admission writer, effect boundary, and settlement authority are distinct principals and key domains.
- Compensation is a new effect. Payment, refund, slash, reputation, and salvage funding require their own authorization and receipt.
- No-settlement is explicit. It means no bond, bounty, payout, slash, or refund; model/API usage remains accounted in its own dimensions.
State spine
stateDiagram-v2
[*] --> Eligible: exact EligibilityCommit
Eligible --> Reserved: one-use ReservationCommit
Reserved --> Admitted: atomic consume + lease + durable dispatch intent
Admitted --> Running: observed start
Running --> EffectClosed: effect authority closed
Running --> Ambiguous: lost or conflicting acknowledgement
Ambiguous --> Reconciled: independent evidence
Ambiguous --> Quarantined: bounded workflow terminal
Reconciled --> EffectClosed
Quarantined --> Quarantined: capacity held; no retry
EffectClosed --> HandoffReady: settlement outbox committed
HandoffReady --> Settled: independent terminal
HandoffReady --> Unsettled: disagreement or unavailable authority
Settled --> [*]
Unsettled --> [*]
Quarantined is a workflow terminal, not proof that the external effect did not occur. A separately reserved no-effect observer may investigate, but is neither retry nor successor.
Required attempt identity
Bind every record to:
- plan digest and revision;
- node ID, attempt ID, and body generation;
- principal and authority epoch;
- repository, immutable target, route, and provider profile;
- policy, eligibility, reservation, review, and evaluation digests;
- idempotency key and expiry.
A mismatch rejects the join. “Same task” or “same agent” is never enough.
Crash and conservation method
- Declare resource dimensions and their ledger owners.
- Define the reservation linearization point.
- Atomically write reservation consumption, lease, and durable dispatch intent.
- Crash immediately before and after every durable write.
- Duplicate, reorder, delay, and lose every acknowledgement.
- Reconstruct balances from receipts only.
- Prove no lease without consumed capacity, no double release, and no reuse under ambiguity.
- Close effect authority before asynchronous settlement.
Anti-patterns
Free subscription capacity
Wrong: record a subscription-backed model call as zero because no invoice line exists.
Right: track remaining allowance, reset window, model tier, call/token estimates, and confidence in native units.
Broker as scheduler
Wrong: the capacity broker picks the next node because it sees availability.
Right: it returns an exact reservation or denial for a scheduler-supplied attempt.
Ambiguous retry
Wrong: timeout releases capacity and retries automatically.
Right: retain the hold and require independent reconciliation.
Settlement in Stop
Wrong: teardown waits for a payout or slash decision.
Right: close effect authority, commit the handoff, then settle asynchronously.
Output and validation
schemas/conserved-attempt-v1.schema.json — closed record shape.
examples/valid-no-settlement-attempt.json — no-effect, no-settlement fixture.
scripts/validate-conserved-attempt.mjs — semantic auditor.
scripts/test-bundle.mjs — adversarial mutations.
references/authority-and-conservation.md — joins, ambiguity, and settlement semantics.
tests/activation.md — positive and negative activation corpus.
node skills/conserved-capacity-admission-and-settlement/scripts/validate-conserved-attempt.mjs \
skills/conserved-capacity-admission-and-settlement/examples/valid-no-settlement-attempt.json
node skills/conserved-capacity-admission-and-settlement/scripts/test-bundle.mjs
Static success proves only the supplied record. It never authorizes scheduling, execution, payment, retry, or release.
1---2name: conserved-capacity-admission-and-settlement3description: >-4 Designs and audits native-unit capacity reservation, serial admission, ambiguity holds, stop reserves, effect closure, and control-disjoint settlement handoff for consequential agent attempts. Use when scarce capacity must be conserved across retry, rework, resurrection, or compensation. NOT for scheduling work, choosing models, pricing unlike resources into one scalar, authorizing effects, grading work, paying workers, or asserting runtime containment.5license: Apache-2.06allowed-tools: Read,Grep,Glob7metadata:8 source: https://skillmd.com/skills/curiositech/conserved-capacity-admission-and-settlement9 version: "1.0.0"10 category: Agent & Orchestration11 tags: [capacity, admission, conservation, ambiguity, settlement, fail-closed]12 io-contract:13 kind: structured14 produces:15 - kind: conserved-attempt-record-v116 format: json17 schema: schemas/conserved-attempt-v1.schema.json18---1920# Conserved Capacity, Admission, and Settlement2122Use this skill to keep four authorities separate:23241. a scheduler proposes an eligible attempt;252. a capacity broker reserves a native resource vector;263. an admission writer consumes both exactly once and creates a lease;274. an effect boundary closes authority and hands evidence to an independent settlement authority.2829The skill designs or audits records. It cannot reserve real capacity, admit a body, issue a capability, schedule a node, settle compensation, or prove containment.3031## Activate when3233- a node attempt, retry, repair, renewal, consuming gather, or resurrection needs scarce capacity;34- a crash or lost acknowledgement could duplicate a lease, effect, refund, slash, or payout;35- an external effect may be ambiguous and capacity reuse must fail closed;36- Stop must retain capacity for reconciliation and teardown;37- effect closure must not wait for compensation or dispute settlement;38- a no-settlement profile still needs explicit conservation and terminal records.3940## Do not activate for4142- deciding which roadmap node runs next;43- estimating demand, price, or model quality;44- turning tokens, subscription allowance, cash, time, concurrency, and attention into one invented currency;45- deciding whether an effect is authorized;46- grading whether work is correct;47- making legal, tax, employment, custody, or moral-status decisions.4849## Authority and resource rules5051- **Native vectors only.** Every dimension keeps its native unit and source: calls, tokens, seconds, dollars, slots, attempts, network bytes, or attention events.52- **Reservation is not admission.** `ReservationCommit` is exact, expiring, one-use capacity evidence. It cannot create a lease.53- **Admission has no scheduling discretion.** The admission writer may consume an exact `EligibilityCommit` and `ReservationCommit`; it may not select a different node, route, provider, or resource vector.54- **Every consuming attempt pays capacity rent.** Retry, renewal, rework, successor, elastic slot, provider call, and model-consuming gather each bind to a current reservation.55- **Stop reserve is protected.** Reconciliation, fence, teardown, and receipt publication have explicit reserved capacity that ordinary work cannot consume.56- **Ambiguity holds resources.** `AMBIGUOUS` and `QUARANTINED_UNRESOLVED` expose no retry authority and do not release affected capacity.57- **Containment does not wait for settlement.** Effect closure and an idempotent settlement-outbox record share one local transaction. Settlement consumes asynchronously.58- **Settlement is control-disjoint.** Capacity broker, scheduler, admission writer, effect boundary, and settlement authority are distinct principals and key domains.59- **Compensation is a new effect.** Payment, refund, slash, reputation, and salvage funding require their own authorization and receipt.60- **No-settlement is explicit.** It means no bond, bounty, payout, slash, or refund; model/API usage remains accounted in its own dimensions.6162## State spine6364```mermaid65stateDiagram-v266 [*] --> Eligible: exact EligibilityCommit67 Eligible --> Reserved: one-use ReservationCommit68 Reserved --> Admitted: atomic consume + lease + durable dispatch intent69 Admitted --> Running: observed start70 Running --> EffectClosed: effect authority closed71 Running --> Ambiguous: lost or conflicting acknowledgement72 Ambiguous --> Reconciled: independent evidence73 Ambiguous --> Quarantined: bounded workflow terminal74 Reconciled --> EffectClosed75 Quarantined --> Quarantined: capacity held; no retry76 EffectClosed --> HandoffReady: settlement outbox committed77 HandoffReady --> Settled: independent terminal78 HandoffReady --> Unsettled: disagreement or unavailable authority79 Settled --> [*]80 Unsettled --> [*]81```8283`Quarantined` is a workflow terminal, not proof that the external effect did not occur. A separately reserved no-effect observer may investigate, but is neither retry nor successor.8485## Required attempt identity8687Bind every record to:8889- plan digest and revision;90- node ID, attempt ID, and body generation;91- principal and authority epoch;92- repository, immutable target, route, and provider profile;93- policy, eligibility, reservation, review, and evaluation digests;94- idempotency key and expiry.9596A mismatch rejects the join. “Same task” or “same agent” is never enough.9798## Crash and conservation method991001. Declare resource dimensions and their ledger owners.1012. Define the reservation linearization point.1023. Atomically write reservation consumption, lease, and durable dispatch intent.1034. Crash immediately before and after every durable write.1045. Duplicate, reorder, delay, and lose every acknowledgement.1056. Reconstruct balances from receipts only.1067. Prove no lease without consumed capacity, no double release, and no reuse under ambiguity.1078. Close effect authority before asynchronous settlement.108109## Anti-patterns110111### Free subscription capacity112113**Wrong:** record a subscription-backed model call as zero because no invoice line exists.114**Right:** track remaining allowance, reset window, model tier, call/token estimates, and confidence in native units.115116### Broker as scheduler117118**Wrong:** the capacity broker picks the next node because it sees availability.119**Right:** it returns an exact reservation or denial for a scheduler-supplied attempt.120121### Ambiguous retry122123**Wrong:** timeout releases capacity and retries automatically.124**Right:** retain the hold and require independent reconciliation.125126### Settlement in Stop127128**Wrong:** teardown waits for a payout or slash decision.129**Right:** close effect authority, commit the handoff, then settle asynchronously.130131## Output and validation132133- [`schemas/conserved-attempt-v1.schema.json`](schemas/conserved-attempt-v1.schema.json) — closed record shape.134- [`examples/valid-no-settlement-attempt.json`](examples/valid-no-settlement-attempt.json) — no-effect, no-settlement fixture.135- [`scripts/validate-conserved-attempt.mjs`](scripts/validate-conserved-attempt.mjs) — semantic auditor.136- [`scripts/test-bundle.mjs`](scripts/test-bundle.mjs) — adversarial mutations.137- [`references/authority-and-conservation.md`](references/authority-and-conservation.md) — joins, ambiguity, and settlement semantics.138- [`tests/activation.md`](tests/activation.md) — positive and negative activation corpus.139140```bash141node skills/conserved-capacity-admission-and-settlement/scripts/validate-conserved-attempt.mjs \142 skills/conserved-capacity-admission-and-settlement/examples/valid-no-settlement-attempt.json143node skills/conserved-capacity-admission-and-settlement/scripts/test-bundle.mjs144```145146Static success proves only the supplied record. It never authorizes scheduling, execution, payment, retry, or release.