Local-First Tenancy Boundary
Decide whether a local-first product's account/tenancy model actually keeps its local-first promise, or just
says it does.
Use This For
- Verifying every identity-gated feature (passkey sign-in, device pairing, team invites) ships a real
local-only equivalent, not a policy statement.
- Verifying every place data crosses a scope tier — private to repo, repo to team, team to public — shows an
explicit data-boundary consent screen before the crossing, not a buried default.
- Proving the "local-only mode uploads nothing" claim is runtime-testable, not a doc comment.
- Checking export/delete controls exist and are verified for every scope tier a user's data can land in.
- Confirming the private/repo/team/public scope ladder is declared once, in order, before role or consent
logic is built on top of it.
Do Not Use This For
- Designing the crypto/PKI/relay mechanism underneath the zero-trust boundary itself (
pd-relay-zero-trust).
- Modeling agent (not human-operator) identity continuity and reputation across respawns
(
agent-identity-continuity-reputation).
- General cryptographic security patterns for agent networking — signed envelopes, ocaps, mTLS, sandboxing
(
agentic-zero-trust-security).
Tenancy Boundary Decision Model
flowchart TD
A[Enumerate every feature] --> B{requiresIdentity?}
B -->|No| C[No identity-gate risk]
B -->|Yes| D{hasLocalOnlyPath?}
D -->|No| E[CRITICAL: identity-gated-no-local-path]
D -->|Yes| F[OK: local escape hatch exists]
A --> G{scopeTier beyond private?}
G -->|No| H[Stays on-device, no crossing]
G -->|Yes| I{crossesTierWithConsentScreen?}
I -->|No| J[CRITICAL: tier-crossing-no-consent]
I -->|Yes| K[OK: consent screen shown before crossing]
L[localOnlyMode.uploadsNothingTestable?] -->|No| M[CRITICAL: local-mode-uploads-not-testable]
L -->|Yes| N[OK: claim is runtime-verifiable]
O[exportDelete.perTierSupported?] -->|No| P[CRITICAL: no-export-delete-per-tier]
O -->|Yes| Q[OK]
R[scopeLadderOrdered?] -->|No| S[CRITICAL: scope-ladder-unordered]
R -->|Yes| T[OK]
- Enumerate every user-facing feature with its
requiresIdentity, hasLocalOnlyPath, scopeTier, and
crossesTierWithConsentScreen fields — an incomplete inventory is not evidence of safety.
- For every identity-gated feature, verify a working local-only equivalent — the "local-only no-account
path" has to survive contact with the actual feature list, not just live on the onboarding screen.
- For every feature whose scope tier leaves
private, verify an explicit data-boundary consent screen
fires at the moment of the crossing, not a settings default the user set once and forgot.
- Prove the local-only "uploads nothing" claim is runtime-testable — a network-egress assertion or
blocked-socket test in CI, not a marketing sentence.
- Verify export and delete controls exist for every scope tier data can reach, re-auditing the full tier
list whenever a new tier ships, not just the newest one.
- Confirm the private -> repo -> team -> public scope ladder is declared once, in order, as the single
source every role and consent check derives from.
- Run
scripts/tenancy_boundary_audit.mjs against the assembled spec; treat any critical finding as a
regression on the local-first promise, not a nice-to-have.
Output Contract
A safe tenancy boundary carries:
features[]: every feature with name, requiresIdentity, hasLocalOnlyPath, scopeTier
(private/repo/team/public), and crossesTierWithConsentScreen — non-empty; an empty inventory is
never treated as safe.
localOnlyMode.uploadsNothingTestable: true only when backed by a runtime-verifiable check.
exportDelete.perTierSupported: true only when export/delete is implemented and verified per tier.
scopeLadderOrdered: true only when the private/repo/team/public ordering is declared once and derived
from everywhere else.
Use scripts/tenancy_boundary_audit.mjs to audit a spec JSON and return { pass, score, findings, recommendations }.
Anti-Patterns
The Account Wall With No Escape Hatch
Novice: Ships a feature that requires identity and assumes "we'll add the local-only mode later" — later
never comes, and sign-in quietly becomes core for core functionality.
Expert: Every identity-gated feature ships alongside a working local-only equivalent on day one, or
doesn't ship gated at all until one exists.
Detection: tenancy_boundary_audit.mjs fires identity-gated-no-local-path (critical) when a feature has
requiresIdentity: true and hasLocalOnlyPath: false.
Silent Tier Crossing
Novice: Data quietly syncs from private scope into repo/team/public scope behind a settings default,
with no user-facing moment where the user learns their data just left the device.
Expert: Every tier crossing pauses on an explicit data-boundary screen — named destination, affirmative
action required — the first time that feature's data would leave the private tier.
Detection: tenancy_boundary_audit.mjs fires tier-crossing-no-consent (critical) when a feature's
scopeTier is not private and crossesTierWithConsentScreen is false.
The Unfalsifiable Local-Only Claim
Novice: Markets "local-only mode uploads nothing" as a claim no one can independently verify at runtime —
true until a background sync call gets added later and nobody notices.
Expert: The claim ships with a runtime-testable guarantee (a network-egress assertion, a blocked-socket
test) so "uploads nothing" is provable in CI, not just promised in a doc.
Detection: tenancy_boundary_audit.mjs fires local-mode-uploads-not-testable (critical) when
localOnlyMode.uploadsNothingTestable is false.
References
| File |
Load When |
references/local-only-and-consent-boundary.md |
Need the mechanics of a real local-only path, an explicit data-boundary consent screen, or how to make an "uploads nothing" claim runtime-testable. |
references/scope-ladder-and-tenancy-roles.md |
Need the private/repo/team/public scope ladder itself, team harbor roles, or the export/delete matrix per tier. |
examples/expected-output.md |
Need to see a bad spec audited, then the same spec fixed and passing, plus the empty-inventory edge case. |
templates/output-template.md |
Need a reusable data-boundary design doc template (feature inventory, consent screens, export/delete matrix, scope ladder). |
schemas/tenancy-boundary.schema.json |
Need to validate a tenancy-boundary spec JSON's structure before auditing it. |
scripts/tenancy_boundary_audit.mjs |
Need deterministic scoring of a tenancy boundary's safety. |
agents/openai.yaml |
Need a subagent descriptor for delegated tenancy-boundary auditing. |
Skill Bundle Index
Every file in this skill, and when to open it. Auto-generated; run scripts/index_references.py --fix.
root
CHANGELOG.md — Local-First Tenancy Boundary — Changelog — - Initial skill creation - Core decision model defined (identity-gated local paths, tier-crossing consent, local-only testability, export/de
README.md — Local-First Tenancy Boundary — Audit a product's local-first account/tenancy model: every identity-gated feature keeps a real local-only path, every scope-tier crossing (p
agents/
agents/openai.yaml — openai (data/schema)
examples/
examples/expected-output.md — Example Output: Local-First Tenancy Boundary — Scenario: a team ships a "team harbor" collaboration feature straight to the cloud with no local-only fallback, a "sync to public gallery" f
examples/sample-input.json — sample input (data/schema)
references/
references/local-only-and-consent-boundary.md — Local-Only Mode and the Data-Boundary Consent Screen — Use this when you need the mechanics of "local-only no-account path," the data-boundary consent screen, or proving a "local-only mode upload
references/scope-ladder-and-tenancy-roles.md — The Scope Ladder, Tenancy Roles, and Export/Delete Controls — Use this when you need the private/repo/team/public scope tiers themselves, how roles attach to them, or what "export/delete controls per ti
schemas/
schemas/tenancy-boundary.schema.json — tenancy boundary.schema (data/schema)
scripts/
scripts/tenancy_boundary_audit.mjs
templates/
templates/output-template.md — Tenancy Boundary Design Doc Template — Fill in every section before shipping an account/tenancy feature.
1---2name: local-first-tenancy-boundary3description: >-4 Audits a product's local-first account/tenancy model: whether every identity-gated feature keeps a real5 local-only path, whether every scope-tier crossing (private -> repo -> team -> public) shows an explicit6 data-boundary consent screen, whether the "local-only mode uploads nothing" claim is runtime-testable7 rather than asserted, whether export/delete controls exist per tier, and whether the scope ladder is8 declared as one ordered source of truth. Use when designing or reviewing account creation, passkey sign-in,9 device pairing, team harbor roles, or the data-boundary screen for a local-first product. NOT for the10 crypto/PKI/relay mechanism underneath the zero-trust boundary itself (use pd-relay-zero-trust), agent (not11 human-operator) identity continuity and reputation across respawns (use agent-identity-continuity-12 reputation), or general cryptographic security patterns for agent networking — signed envelopes, ocaps,13 mTLS, sandboxing (use agentic-zero-trust-security).14license: Apache-2.015allowed-tools: Read,Write,Edit,Bash,Grep,Glob16metadata:17 source: https://skillmd.com/skills/curiositech/local-first-tenancy-boundary18 category: Agent & Orchestration19 tags: [tenancy, local-first, data-boundary, consent, account-model]20 provenance:21 kind: first-party22 owners:23 - port-daddy24 pairs-with:25 - skill: pd-relay-zero-trust26 reason: Once a tier crossing needs to leave the device for real, this is the crypto/relay mechanism that carries it — this skill only decides that a crossing needs consent, not how the wire protocol works.27 - skill: agent-identity-continuity-reputation28 reason: Covers durable identity/reputation for the agents themselves; this skill covers the human operator's account/tenancy model those agents act inside of.29 - skill: agentic-zero-trust-security30 reason: Supplies the general cryptographic security patterns (signed envelopes, capability tokens, sandboxing) a data-boundary consent screen's backing mechanism may draw on.31 io-contract:32 kind: deliverable33 consumes:34 - { kind: feature-inventory, format: json }35 - { kind: tenancy-boundary-spec, format: json }36 produces:37 - { kind: data-boundary-design-doc, format: markdown }38 - { kind: tenancy-boundary-audit, format: json }39---4041# Local-First Tenancy Boundary4243Decide whether a local-first product's account/tenancy model actually keeps its local-first promise, or just44says it does.4546## Use This For4748- Verifying every identity-gated feature (passkey sign-in, device pairing, team invites) ships a real49 local-only equivalent, not a policy statement.50- Verifying every place data crosses a scope tier — private to repo, repo to team, team to public — shows an51 explicit data-boundary consent screen before the crossing, not a buried default.52- Proving the "local-only mode uploads nothing" claim is runtime-testable, not a doc comment.53- Checking export/delete controls exist and are verified for every scope tier a user's data can land in.54- Confirming the private/repo/team/public scope ladder is declared once, in order, before role or consent55 logic is built on top of it.5657## Do Not Use This For5859- Designing the crypto/PKI/relay mechanism underneath the zero-trust boundary itself (`pd-relay-zero-trust`).60- Modeling agent (not human-operator) identity continuity and reputation across respawns61 (`agent-identity-continuity-reputation`).62- General cryptographic security patterns for agent networking — signed envelopes, ocaps, mTLS, sandboxing63 (`agentic-zero-trust-security`).6465## Tenancy Boundary Decision Model6667```mermaid68flowchart TD69 A[Enumerate every feature] --> B{requiresIdentity?}70 B -->|No| C[No identity-gate risk]71 B -->|Yes| D{hasLocalOnlyPath?}72 D -->|No| E[CRITICAL: identity-gated-no-local-path]73 D -->|Yes| F[OK: local escape hatch exists]74 A --> G{scopeTier beyond private?}75 G -->|No| H[Stays on-device, no crossing]76 G -->|Yes| I{crossesTierWithConsentScreen?}77 I -->|No| J[CRITICAL: tier-crossing-no-consent]78 I -->|Yes| K[OK: consent screen shown before crossing]79 L[localOnlyMode.uploadsNothingTestable?] -->|No| M[CRITICAL: local-mode-uploads-not-testable]80 L -->|Yes| N[OK: claim is runtime-verifiable]81 O[exportDelete.perTierSupported?] -->|No| P[CRITICAL: no-export-delete-per-tier]82 O -->|Yes| Q[OK]83 R[scopeLadderOrdered?] -->|No| S[CRITICAL: scope-ladder-unordered]84 R -->|Yes| T[OK]85```86871. **Enumerate every user-facing feature** with its `requiresIdentity`, `hasLocalOnlyPath`, `scopeTier`, and88 `crossesTierWithConsentScreen` fields — an incomplete inventory is not evidence of safety.892. **For every identity-gated feature, verify a working local-only equivalent** — the "local-only no-account90 path" has to survive contact with the actual feature list, not just live on the onboarding screen.913. **For every feature whose scope tier leaves `private`**, verify an explicit data-boundary consent screen92 fires at the moment of the crossing, not a settings default the user set once and forgot.934. **Prove the local-only "uploads nothing" claim is runtime-testable** — a network-egress assertion or94 blocked-socket test in CI, not a marketing sentence.955. **Verify export and delete controls exist for every scope tier** data can reach, re-auditing the full tier96 list whenever a new tier ships, not just the newest one.976. **Confirm the private -> repo -> team -> public scope ladder** is declared once, in order, as the single98 source every role and consent check derives from.997. **Run `scripts/tenancy_boundary_audit.mjs`** against the assembled spec; treat any critical finding as a100 regression on the local-first promise, not a nice-to-have.101102## Output Contract103104A safe tenancy boundary carries:105106- `features[]`: every feature with `name`, `requiresIdentity`, `hasLocalOnlyPath`, `scopeTier`107 (`private`/`repo`/`team`/`public`), and `crossesTierWithConsentScreen` — non-empty; an empty inventory is108 never treated as safe.109- `localOnlyMode.uploadsNothingTestable`: `true` only when backed by a runtime-verifiable check.110- `exportDelete.perTierSupported`: `true` only when export/delete is implemented and verified per tier.111- `scopeLadderOrdered`: `true` only when the private/repo/team/public ordering is declared once and derived112 from everywhere else.113114Use `scripts/tenancy_boundary_audit.mjs` to audit a spec JSON and return `{ pass, score, findings,115recommendations }`.116117## Anti-Patterns118119### The Account Wall With No Escape Hatch120121**Novice**: Ships a feature that requires identity and assumes "we'll add the local-only mode later" — later122never comes, and sign-in quietly becomes core for core functionality.123**Expert**: Every identity-gated feature ships alongside a working local-only equivalent on day one, or124doesn't ship gated at all until one exists.125**Detection**: `tenancy_boundary_audit.mjs` fires `identity-gated-no-local-path` (critical) when a feature has126`requiresIdentity: true` and `hasLocalOnlyPath: false`.127128### Silent Tier Crossing129130**Novice**: Data quietly syncs from private scope into repo/team/public scope behind a settings default,131with no user-facing moment where the user learns their data just left the device.132**Expert**: Every tier crossing pauses on an explicit data-boundary screen — named destination, affirmative133action required — the first time that feature's data would leave the private tier.134**Detection**: `tenancy_boundary_audit.mjs` fires `tier-crossing-no-consent` (critical) when a feature's135`scopeTier` is not `private` and `crossesTierWithConsentScreen` is `false`.136137### The Unfalsifiable Local-Only Claim138139**Novice**: Markets "local-only mode uploads nothing" as a claim no one can independently verify at runtime —140true until a background sync call gets added later and nobody notices.141**Expert**: The claim ships with a runtime-testable guarantee (a network-egress assertion, a blocked-socket142test) so "uploads nothing" is provable in CI, not just promised in a doc.143**Detection**: `tenancy_boundary_audit.mjs` fires `local-mode-uploads-not-testable` (critical) when144`localOnlyMode.uploadsNothingTestable` is `false`.145146## References147148| File | Load When |149| --- | --- |150| `references/local-only-and-consent-boundary.md` | Need the mechanics of a real local-only path, an explicit data-boundary consent screen, or how to make an "uploads nothing" claim runtime-testable. |151| `references/scope-ladder-and-tenancy-roles.md` | Need the private/repo/team/public scope ladder itself, team harbor roles, or the export/delete matrix per tier. |152| `examples/expected-output.md` | Need to see a bad spec audited, then the same spec fixed and passing, plus the empty-inventory edge case. |153| `templates/output-template.md` | Need a reusable data-boundary design doc template (feature inventory, consent screens, export/delete matrix, scope ladder). |154| `schemas/tenancy-boundary.schema.json` | Need to validate a tenancy-boundary spec JSON's structure before auditing it. |155| `scripts/tenancy_boundary_audit.mjs` | Need deterministic scoring of a tenancy boundary's safety. |156| `agents/openai.yaml` | Need a subagent descriptor for delegated tenancy-boundary auditing. |157158<!-- BEGIN BUNDLE INDEX (auto: index_references.py) -->159160## Skill Bundle Index161162*Every file in this skill, and when to open it. Auto-generated; run `scripts/index_references.py --fix`.*163164**root**165- [`CHANGELOG.md`](CHANGELOG.md) — Local-First Tenancy Boundary — Changelog — - Initial skill creation - Core decision model defined (identity-gated local paths, tier-crossing consent, local-only testability, export/de166- [`README.md`](README.md) — Local-First Tenancy Boundary — Audit a product's local-first account/tenancy model: every identity-gated feature keeps a real local-only path, every scope-tier crossing (p167168**`agents/`**169- [`agents/openai.yaml`](agents/openai.yaml) — openai (data/schema)170171**`examples/`**172- [`examples/expected-output.md`](examples/expected-output.md) — Example Output: Local-First Tenancy Boundary — Scenario: a team ships a "team harbor" collaboration feature straight to the cloud with no local-only fallback, a "sync to public gallery" f173- [`examples/sample-input.json`](examples/sample-input.json) — sample input (data/schema)174175**`references/`**176- [`references/local-only-and-consent-boundary.md`](references/local-only-and-consent-boundary.md) — Local-Only Mode and the Data-Boundary Consent Screen — Use this when you need the mechanics of "local-only no-account path," the data-boundary consent screen, or proving a "local-only mode upload177- [`references/scope-ladder-and-tenancy-roles.md`](references/scope-ladder-and-tenancy-roles.md) — The Scope Ladder, Tenancy Roles, and Export/Delete Controls — Use this when you need the private/repo/team/public scope tiers themselves, how roles attach to them, or what "export/delete controls per ti178179**`schemas/`**180- [`schemas/tenancy-boundary.schema.json`](schemas/tenancy-boundary.schema.json) — tenancy boundary.schema (data/schema)181182**`scripts/`**183- [`scripts/tenancy_boundary_audit.mjs`](scripts/tenancy_boundary_audit.mjs)184185**`templates/`**186- [`templates/output-template.md`](templates/output-template.md) — Tenancy Boundary Design Doc Template — Fill in every section before shipping an account/tenancy feature.187188<!-- END BUNDLE INDEX -->