Derived-Index Consent Boundary
The most honest directory is an index over signatures: the platform derives "what
this principal demonstrably did" from chain heads, verdicts, and heartbeats it
already witnesses, so listings cannot lie. It is also the most dangerous feature a
witnessing platform can build, because derivation is surveillance unless consent
gates the computation itself. The classic failure sentence — "the directory shows
nothing about unlisted operators, even though the platform sees their chains" —
means a shadow index exists as a breach, insider, and subpoena target no API gate
can protect.
This skill exists because "consent-gated" almost always gets implemented as a
read-side filter over an always-on pipeline. That is the trap.
Use This For
- Designing/reviewing a capability directory, whois, or "demonstrated skills" index
derived from witnessed activity (publishes, chain heads, run verdicts).
- Reputation or outcome ledgers fed by platform-observed settlements.
- Cross-tenant aggregation of client-reported vitals/telemetry ("every daemon is a
probe") where reporters are tenants.
- Availability/presence surfaces (tide tables, "who's online") derived from
heartbeats.
- Any promise of the form "phone book, not a log" that must survive an audit,
a breach, or a subpoena — not just a product-page reading.
Do Not Use This For
- The consent-screen UX and scope ladder itself —
local-first-tenancy-boundary.
- Reputation math, bond pricing, Sybil economics —
agent-identity-continuity-reputation.
- Discovery-layer topology (mDNS/registry/self-hosted) —
agent-discovery-directories-guilds.
The Core Invariant
A derived row about a principal may exist only if that principal's consent for
that derivation is currently in force, and may embed only evidence witnessed while
it was in force.
Four properties, each independently checkable, all four required:
- No pre-consent derivation. The pipeline that writes derived rows starts at
consent, not at deployment. Not "computed but hidden" — not computed. The test
is a table scan, not an API probe:
SELECT count(*) FROM capability_index WHERE principal NOT IN (SELECT principal FROM listings WHERE state='consented') must
be zero, in CI, forever.
- Post-consent evidence window. Consent is not retroactive by default. Evidence
timestamps in derived rows must be ≥ the consent timestamp. Retroactive inclusion
("index my last 90 days too") is a separate, explicit grant with its own record.
- Revocation propagates into derivation. Delist ⇒ derived rows drop (or
tombstone to non-queryable) within a stated bound, verified by the same sweep that
enforces retention. Account erasure ⇒ derived rows are in the erasure path's
table inventory (derived tables are the rows erasure audits always miss).
- Retention bound on evidence. Derived rows decay (recency windows, TTLs) so
the index is a phone book with a memory span, not an unbounded activity log.
The Audit Method
Step 1 — Inventory the derivations. List every table/materialized view whose
rows are computed from witnessed traffic rather than submitted by the principal.
Greps to locate candidates (locators, not verdicts): writes into *_index,
*_reputation, *_sightings, *_presence tables from publish/webhook/heartbeat
handlers; scheduled jobs that scan event or chain tables and write summaries.
Self-reports (a signed card the principal PUTs) are out of scope; the moment a
pipeline joins a self-report against witnessed activity, the joined product is a
derivation and in scope.
Step 2 — For each derivation, find the gate's position. Three positions; only
one is acceptable:
| Position |
Shape |
Verdict |
| Read-side filter |
pipeline always runs; API checks consent before serving |
FAIL — shadow index. Breach/insider/subpoena surface exists regardless of the API. |
| Write-side filter |
pipeline runs per event; consent checked before each derived write |
PASS if revocation also purges (property 3) |
| Pipeline subscription |
consent event starts derivation for that principal; revocation stops and purges |
PASS — the canonical shape |
Step 3 — Run the activity-oracle threat model. Even a fully consent-gated index
is an oracle about its members. Enumerate what a read-only adversary learns:
who is online and when (work-pattern inference), project/harbor names (hash them),
collaboration graphs (who publishes on whose channels), volume trends (business
intelligence). For each: minimize (hash names, bucket timestamps to coarse windows,
k-anonymize any cross-tenant aggregate with a stated k — refuse to serve aggregates
below k), or justify in writing on the trust page. A directory entry is a lens the
member chose to publish; make sure it is not also a telescope pointed at them.
Step 4 — Audit the discretion. Derived ranking implies editorial power. If
operators can down-weight "gamed" entries via server config, every weight change
must land in the audit log (who, when, old→new) — accountable discretion, not silent
editorial. Refuse-to-route confidence floors and cold-start {results: [], reason} responses are part of honesty here: an empty index must say why, never 404.
Step 5 — Check the evidence base's own integrity. A derived index is only as
honest as its lowest-integrity input. Rank inputs: signed+chained events > signed
events > authenticated-transport claims > bearer-token/unattested streams. An
unattested input tier poisons the index (anyone holding the shared secret
manufactures "demonstrated" activity); either attest the source first (give the
publisher a real identity) or exclude that stream from derivation entirely — do not
launder it in as a labeled-but-rankable tier, because labels wash out in ranking.
Step 6 — Emit the audit: per derivation — gate position, evidence window,
revocation bound, retention bound, oracle exposures + mitigations, discretion audit
trail, input integrity floor. PASS/FAIL per property 1–4.
Design Prescription (canonical pipeline)
consent event (scope-ladder crossing, explicit screen)
│ writes listings row {principal, granted_at, scope, retro_grant?}
▼
derivation subscription starts ──► derived rows {evidence_ts >= granted_at, ttl}
│ ▲
revocation event │ sweep: TTL decay + delist purge +
└── stops subscription ── purge ───────┘ CI invariant scan (property 1)
- Consent, revocation, and every ranking-weight change are themselves signed,
chained events — the boundary's own history is tamper-evident.
- The erasure job's table inventory names every derived table explicitly; adding a
derived table without touching the erasure inventory fails CI.
- Publish the derivation spec (what is computed, from which inputs, with what
windows) on the trust page. "Phone book, not a log" becomes checkable: bounded
memory span, no rows without consent, deletion that provably propagates.
Failure Modes Table
| Failure |
Symptom |
Countermeasure |
| Shadow index |
consent checked at read; table full of non-consenting principals |
pipeline-subscription gate; CI table-scan invariant |
| Retroactive creep |
consent at T, rows cite evidence < T |
evidence-window check; explicit retro grant |
| Erasure miss |
account deleted, derived rows survive |
derived tables in erasure inventory, CI-enforced |
| Activity oracle |
index reveals schedules/graphs of members |
hashing, bucketing, k-anonymous aggregates, trust-page justification |
| Silent editorial |
rank weights tuned without trace |
weight changes audit-logged; floors + reasoned empties |
| Poisoned evidence |
unattested/bearer stream feeds "demonstrated" tier |
attest the source first or exclude; never rank laundered tiers |
| Unbounded log |
"phone book" accretes history forever |
TTL/recency decay swept and reported |
1---2name: derived-index-consent-boundary3description: >-4 Audit or design server-side indexes, directories, reputations, or aggregates that are5 DERIVED from traffic a platform witnesses (chain heads, run verdicts, heartbeats,6 publish activity) so that consent gates the derivation, not merely the read: no shadow7 index over non-consenting principals, post-consent-only evidence windows, retention8 bounds and delete-propagation into derived rows, activity-oracle threat modeling, and9 audit-logged ranking discretion. Use when building a capability directory / whois from10 witnessed activity, a reputation ledger from settled outcomes, vitals aggregation11 across tenants, or any "the yellow pages can't lie because they index signatures"12 feature. Keywords: shadow index, derived index, consent gates derivation, activity13 oracle, phone book not a log, delist propagation, ranking weight audit, k-anonymous14 aggregate, subpoena surface. NOT for the consent-screen UX and scope-ladder mechanics15 themselves (use local-first-tenancy-boundary), reputation scoring math and Sybil16 economics (use agent-identity-continuity-reputation), or discovery-layer architecture17 L1/L2/L3 (use agent-discovery-directories-guilds).18license: Apache-2.019allowed-tools: Read,Grep,Glob,Write,Edit20metadata:21 source: https://skillmd.com/skills/curiositech/derived-index-consent-boundary22 category: Agent & Orchestration23 tags: [derived-data, consent, directory, privacy, tenancy, activity-oracle, retention]24 provenance:25 kind: first-party26 owners:27 - port-daddy28 pairs-with:29 - skill: local-first-tenancy-boundary30 reason: That skill decides where scope crossings need a consent moment; this skill governs what the server may COMPUTE from what it witnesses on the far side of that crossing.31 - skill: agent-discovery-directories-guilds32 reason: Supplies the L1/L2/L3 discovery architecture; this skill constrains the evidence pipeline any demonstrated-capability tier is allowed to drink from.33 - skill: agent-identity-continuity-reputation34 reason: Reputation ledgers are derived indexes; that skill prices Sybil/whitewash economics while this skill bounds what raw evidence may enter the ledger at all.35 io-contract:36 kind: deliverable37 consumes:38 - { kind: derived-index-design, format: markdown }39 produces:40 - { kind: derivation-boundary-audit, format: markdown }41---4243# Derived-Index Consent Boundary4445The most honest directory is an index over signatures: the platform derives "what46this principal demonstrably did" from chain heads, verdicts, and heartbeats it47already witnesses, so listings cannot lie. It is also the most dangerous feature a48witnessing platform can build, because **derivation is surveillance unless consent49gates the computation itself**. The classic failure sentence — "the directory shows50nothing about unlisted operators, *even though the platform sees their chains*" —51means a shadow index exists as a breach, insider, and subpoena target no API gate52can protect.5354This skill exists because "consent-gated" almost always gets implemented as a55read-side filter over an always-on pipeline. That is the trap.5657## Use This For5859- Designing/reviewing a capability directory, whois, or "demonstrated skills" index60 derived from witnessed activity (publishes, chain heads, run verdicts).61- Reputation or outcome ledgers fed by platform-observed settlements.62- Cross-tenant aggregation of client-reported vitals/telemetry ("every daemon is a63 probe") where reporters are tenants.64- Availability/presence surfaces (tide tables, "who's online") derived from65 heartbeats.66- Any promise of the form "phone book, not a log" that must survive an audit,67 a breach, or a subpoena — not just a product-page reading.6869## Do Not Use This For7071- The consent-screen UX and scope ladder itself — `local-first-tenancy-boundary`.72- Reputation math, bond pricing, Sybil economics — `agent-identity-continuity-reputation`.73- Discovery-layer topology (mDNS/registry/self-hosted) — `agent-discovery-directories-guilds`.7475---7677## The Core Invariant7879> **A derived row about a principal may exist only if that principal's consent for80> that derivation is currently in force, and may embed only evidence witnessed while81> it was in force.**8283Four properties, each independently checkable, all four required:84851. **No pre-consent derivation.** The pipeline that writes derived rows starts at86 consent, not at deployment. Not "computed but hidden" — *not computed*. The test87 is a table scan, not an API probe: `SELECT count(*) FROM capability_index WHERE88 principal NOT IN (SELECT principal FROM listings WHERE state='consented')` must89 be zero, in CI, forever.902. **Post-consent evidence window.** Consent is not retroactive by default. Evidence91 timestamps in derived rows must be ≥ the consent timestamp. Retroactive inclusion92 ("index my last 90 days too") is a separate, explicit grant with its own record.933. **Revocation propagates into derivation.** Delist ⇒ derived rows drop (or94 tombstone to non-queryable) within a stated bound, verified by the same sweep that95 enforces retention. Account erasure ⇒ derived rows are in the erasure path's96 table inventory (derived tables are the rows erasure audits always miss).974. **Retention bound on evidence.** Derived rows decay (recency windows, TTLs) so98 the index is a phone book with a memory span, not an unbounded activity log.99100## The Audit Method101102**Step 1 — Inventory the derivations.** List every table/materialized view whose103rows are *computed from* witnessed traffic rather than *submitted by* the principal.104Greps to locate candidates (locators, not verdicts): writes into `*_index`,105`*_reputation`, `*_sightings`, `*_presence` tables from publish/webhook/heartbeat106handlers; scheduled jobs that scan event or chain tables and write summaries.107Self-reports (a signed card the principal PUTs) are out of scope; the moment a108pipeline *joins* a self-report against witnessed activity, the joined product is a109derivation and in scope.110111**Step 2 — For each derivation, find the gate's position.** Three positions; only112one is acceptable:113114| Position | Shape | Verdict |115|---|---|---|116| Read-side filter | pipeline always runs; API checks consent before serving | **FAIL — shadow index.** Breach/insider/subpoena surface exists regardless of the API. |117| Write-side filter | pipeline runs per event; consent checked before each derived write | PASS if revocation also purges (property 3) |118| Pipeline subscription | consent event *starts* derivation for that principal; revocation *stops and purges* | **PASS — the canonical shape** |119120**Step 3 — Run the activity-oracle threat model.** Even a fully consent-gated index121is an oracle about its members. Enumerate what a read-only adversary learns:122who is online and when (work-pattern inference), project/harbor names (hash them),123collaboration graphs (who publishes on whose channels), volume trends (business124intelligence). For each: minimize (hash names, bucket timestamps to coarse windows,125k-anonymize any cross-tenant aggregate with a stated k — refuse to serve aggregates126below k), or justify in writing on the trust page. A directory entry is a lens the127member chose to publish; make sure it is not also a telescope pointed at them.128129**Step 4 — Audit the discretion.** Derived ranking implies editorial power. If130operators can down-weight "gamed" entries via server config, every weight change131must land in the audit log (who, when, old→new) — accountable discretion, not silent132editorial. Refuse-to-route confidence floors and cold-start `{results: [],133reason}` responses are part of honesty here: an empty index must say why, never 404.134135**Step 5 — Check the evidence base's own integrity.** A derived index is only as136honest as its lowest-integrity input. Rank inputs: signed+chained events > signed137events > authenticated-transport claims > bearer-token/unattested streams. **An138unattested input tier poisons the index** (anyone holding the shared secret139manufactures "demonstrated" activity); either attest the source first (give the140publisher a real identity) or exclude that stream from derivation entirely — do not141launder it in as a labeled-but-rankable tier, because labels wash out in ranking.142143**Step 6 — Emit the audit**: per derivation — gate position, evidence window,144revocation bound, retention bound, oracle exposures + mitigations, discretion audit145trail, input integrity floor. PASS/FAIL per property 1–4.146147## Design Prescription (canonical pipeline)148149```150consent event (scope-ladder crossing, explicit screen)151 │ writes listings row {principal, granted_at, scope, retro_grant?}152 ▼153derivation subscription starts ──► derived rows {evidence_ts >= granted_at, ttl}154 │ ▲155revocation event │ sweep: TTL decay + delist purge +156 └── stops subscription ── purge ───────┘ CI invariant scan (property 1)157```158159- Consent, revocation, and every ranking-weight change are themselves signed,160 chained events — the boundary's own history is tamper-evident.161- The erasure job's table inventory names every derived table explicitly; adding a162 derived table without touching the erasure inventory fails CI.163- Publish the derivation spec (what is computed, from which inputs, with what164 windows) on the trust page. "Phone book, not a log" becomes checkable: bounded165 memory span, no rows without consent, deletion that provably propagates.166167## Failure Modes Table168169| Failure | Symptom | Countermeasure |170|---|---|---|171| Shadow index | consent checked at read; table full of non-consenting principals | pipeline-subscription gate; CI table-scan invariant |172| Retroactive creep | consent at T, rows cite evidence < T | evidence-window check; explicit retro grant |173| Erasure miss | account deleted, derived rows survive | derived tables in erasure inventory, CI-enforced |174| Activity oracle | index reveals schedules/graphs of members | hashing, bucketing, k-anonymous aggregates, trust-page justification |175| Silent editorial | rank weights tuned without trace | weight changes audit-logged; floors + reasoned empties |176| Poisoned evidence | unattested/bearer stream feeds "demonstrated" tier | attest the source first or exclude; never rank laundered tiers |177| Unbounded log | "phone book" accretes history forever | TTL/recency decay swept and reported |