@wildo-ai/framework-knowledge 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/claude-marketplace/.claude-plugin/marketplace.json +1 -1
- package/dist/claude-marketplace/plugins/wildo/.claude-plugin/plugin.json +1 -1
- package/dist/claude-marketplace/plugins/wildo/references/creation-state.md +4 -1
- package/dist/esm/framework-knowledge.definitions.d.ts +1 -1
- package/dist/esm/framework-knowledge.definitions.d.ts.map +1 -1
- package/dist/esm/framework-knowledge.definitions.js +13 -0
- package/dist/esm/framework-knowledge.definitions.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts +1 -1
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js +1 -1
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.js +6 -4
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.integration-plan/playbook.definition.d.ts +1 -1
- package/dist/esm/playbooks/bottom_up.integration-plan/playbook.definition.js +1 -1
- package/dist/esm/playbooks/bottom_up.integration-plan/playbook.definition.js.map +1 -1
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/authority-basis.json +1 -1
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/external-framework-mapping.json +1 -1
- package/dist/knowledge/manifest.json +7 -7
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/method.md +7 -0
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/playbook.json +2 -2
- package/dist/knowledge/playbooks/bottom_up.build/method.md +10 -8
- package/dist/knowledge/playbooks/bottom_up.build/playbook.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.build-decompose/method.md +27 -10
- package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +13 -9
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/playbook.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.integration-plan/method.md +20 -5
- package/dist/knowledge/playbooks/bottom_up.integration-plan/playbook.json +2 -2
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +4 -0
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/playbook.json +1 -1
- package/dist/knowledge/references/backend.inbound-handlers.definition.md +2 -1
- package/dist/knowledge/references/build-plan.task-graph.config.md +12 -8
- package/dist/knowledge/references/example.electronic-signature.engagement-letter-tool.md +54 -0
- package/dist/knowledge/references/example.flows-actors.autonomous-agent.reviewed-write.md +6 -2
- package/dist/knowledge/references/example.flows-actors.chat-assistant.md +13 -2
- package/dist/knowledge/references/example.inbound.email-to-todo.md +33 -2
- package/dist/knowledge/references/example.module.relationships.discriminator.md +14 -1
- package/dist/knowledge/references/external-connectors.frontend-provider-consent-classification.md +2 -0
- package/dist/knowledge/references/integration-plan.config.md +78 -8
- package/dist/knowledge/references/platform.config.environment.deployment.md +27 -4
- package/dist/knowledge/references/saas.backend.domain-module.md +15 -0
- package/dist/knowledge/references/saas.backend.flows-actors.a2a-agent-card.md +43 -11
- package/dist/knowledge/references/saas.backend.flows-actors.a2a-task-surface.md +17 -11
- package/dist/knowledge/references/saas.backend.flows-actors.decision-notice-handler.md +7 -0
- package/dist/knowledge/references/saas.backend.flows-actors.function-tool.md +16 -0
- package/dist/knowledge/references/saas.backend.flows-actors.present-records-tool.md +5 -2
- package/dist/knowledge/references/saas.frontend.composite-view.authoring.md +19 -0
- package/dist/knowledge/references/saas.frontend.electronic-signatures.embedded-signing-frame.md +46 -0
- package/dist/knowledge/references/saas.frontend.settings-hub.engine-destinations.md +21 -0
- package/dist/knowledge/references/saas.models.flows-actors.agent-definition.md +24 -33
- package/dist/knowledge/references/saas.models.flows-actors.decision-card-wording.md +9 -0
- package/dist/knowledge/references/saas.models.flows-actors.mcp-server-declaration.md +63 -0
- package/dist/knowledge/references/saas.models.flows-actors.outbound-credential.md +61 -0
- package/dist/knowledge/references/saas.models.flows-actors.remote-agent-declaration.md +56 -0
- package/dist/knowledge/references/saas.models.flows.run-state.md +9 -0
- package/dist/knowledge/references/saas.models.http-api-binding.md +51 -0
- package/dist/knowledge/references/saas.models.privacy.provider-capability-disclosure.md +7 -0
- package/dist/knowledge/references/saas.models.provider-capabilities.md +11 -0
- package/dist/knowledge/references/saas.models.system-of-record-error-codes.md +30 -0
- package/dist/knowledge/references/saas.rag.retrieval-scores.md +4 -2
- package/dist/knowledge/registries/assurance-authority-bases.json +1 -1
- package/dist/knowledge/registries/framework-topics.json +55 -1
- package/dist/knowledge/registries/playbooks.json +2 -2
- package/dist/knowledge/registries/source-tags.json +1127 -1042
- package/dist/knowledge/skills/INDEX.md +2 -2
- package/dist/knowledge/skills/application-roles-authoring/SKILL.md +20 -4
- package/dist/knowledge/skills/backend-addon-wiring/SKILL.md +4 -1
- package/dist/knowledge/skills/backend-addon-wiring/references/framework-backend-bootstrap-api.md +15 -0
- package/dist/knowledge/skills/backend-custom-operation/SKILL.md +3 -1
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-privacy-notice.md +4 -0
- package/dist/knowledge/skills/compliance-document-authoring/references/framework-recipient-disclosures.md +7 -0
- package/dist/knowledge/skills/config-app-shell/SKILL.md +4 -0
- package/dist/knowledge/skills/config-saas/references/framework-auditable-event-catalog.md +3 -0
- package/dist/knowledge/skills/config-saas/references/framework-provider-capabilities-api.md +11 -0
- package/dist/knowledge/skills/electronic-signature-deliverables/SKILL.md +69 -19
- package/dist/knowledge/skills/electronic-signature-deliverables/references/signing-inside-the-application.md +113 -0
- package/dist/knowledge/skills/electronic-signature-deliverables/references/what-makes-a-request-signed.md +32 -5
- package/dist/knowledge/skills/email-add-template/SKILL.md +3 -2
- package/dist/knowledge/skills/email-add-template/references/email-artifact-paths.md +8 -4
- package/dist/knowledge/skills/email-definition-wiring/SKILL.md +1 -1
- package/dist/knowledge/skills/flows-actors-a2a-exposure/SKILL.md +29 -7
- package/dist/knowledge/skills/flows-actors-a2a-exposure/references/framework-flows-actors-a2a-contract.md +66 -26
- package/dist/knowledge/skills/flows-actors-autonomous-agents/SKILL.md +6 -2
- package/dist/knowledge/skills/flows-actors-chat-assistant/SKILL.md +35 -3
- package/dist/knowledge/skills/flows-actors-chat-assistant/examples/todo-assistant.example.md +13 -2
- package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-flows-actors-tool-api.md +16 -0
- package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-flows-actors-view-api.md +30 -0
- package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-mcp-server-declaration-api.md +139 -0
- package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-present-records-tool-api.md +5 -2
- package/dist/knowledge/skills/flows-actors-chat-assistant/references/framework-remote-a2a-agent-declaration-api.md +207 -0
- package/dist/knowledge/skills/flows-actors-declared-flow/references/framework-start-flow-api.md +9 -0
- package/dist/knowledge/skills/flows-actors-llm-agent-invocation/references/framework-llm-agent-definition-api.md +24 -33
- package/dist/knowledge/skills/human-decision-notices/SKILL.md +5 -1
- package/dist/knowledge/skills/human-decision-notices/references/framework-decision-card-wording-api.md +9 -0
- package/dist/knowledge/skills/human-decision-notices/references/framework-decision-notice-handler-api.md +7 -0
- package/dist/knowledge/skills/inbound-channels/references/framework-inbound-handler-api.md +2 -1
- package/dist/knowledge/skills/inbound-channels/references/receiving-email.md +33 -2
- package/dist/knowledge/skills/infra-environment-config/SKILL.md +31 -9
- package/dist/knowledge/skills/infra-environment-config/references/framework-environment-deployment-api.md +27 -4
- package/dist/knowledge/skills/local-environment-bootstrap/references/wildo-cli-bootstrap-commands.md +26 -0
- package/dist/knowledge/skills/module-registration/references/framework-domain-modules-api.md +15 -0
- package/dist/knowledge/skills/module-relationships/SKILL.md +27 -1
- package/dist/knowledge/skills/provider-backend-package/SKILL.md +32 -4
- package/dist/knowledge/skills/provider-frontend-file-picker/references/framework-frontend-provider-consent-api.md +2 -0
- package/dist/knowledge/skills/provider-frontend-module/SKILL.md +3 -0
- package/dist/knowledge/skills/resource-add-module/SKILL.md +8 -2
- package/dist/knowledge/skills/resource-add-module/references/module-scaffold-layout.md +17 -0
- package/dist/knowledge/skills/resource-chat-commands/SKILL.md +1 -1
- package/dist/knowledge/skills/resource-external-data/references/framework-http-api-binding-api.md +51 -0
- package/dist/knowledge/skills/resource-external-data/references/incremental-extraction.md +14 -5
- package/dist/knowledge/skills/resource-external-data/references/read-through-writes.md +30 -0
- package/dist/knowledge/skills/resource-mcp-tool-exposure/references/mcp-client-registration-postures.md +5 -0
- package/dist/knowledge/skills/resource-rag-source-fields/references/framework-rag-retrieval-api.md +4 -2
- package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-destinations-catalog.md +21 -0
- package/dist/knowledge/skills/views-composite-authoring/SKILL.md +5 -0
- package/dist/knowledge/skills/views-composite-authoring/references/framework-composite-view-contracts-api.md +19 -0
- package/dist/knowledge/topic-index.json +295 -114
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
{
|
|
34
34
|
"family": "integration-plan",
|
|
35
35
|
"schemaRef": "saas-specifications:IntegrationPlan",
|
|
36
|
-
"description": "What this application runs beside its backend and what it reaches out to: its workers (each with its runtime, what the backend delegates to it, the routes it registers and what it is accountable to), its cron minions (each with what happens because time passed, its named behaviours, and exactly which resources its tick reads and writes),
|
|
36
|
+
"description": "What this application runs beside its backend and what it reaches out to: its workers (each with its runtime, what the backend delegates to it, the routes it registers and what it is accountable to), its cron minions (each with what happens because time passed, its named behaviours, and exactly which resources its tick reads and writes), the providers it binds into each runtime owner's scope, and any need no engine provider or registry module fills, with why (the only door to authoring a new provider). Every collection may be empty, and saying so is an answer."
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"stepOutputs": [],
|
|
40
40
|
"method": {
|
|
41
|
-
"guidance": "# Integration Plan — What Runs Beside the Backend\n\n### Target Application Framing\n\nThis knowledge is for configuring behavior in the target application.\nWildo is the framework surface being used, not the product being built.\n\nRead and apply these patterns from the application-developer point of view:\n\n- how the application should configure the relevant app-level file\n- how the application should use framework-provided factories, enums, and helpers\n- how the application should avoid mixing frontend, backend, and infrastructure concerns\n\n\n## Where you are in the journey\n\nThe domain plan is approved and the requirements are written. You decide **what this application\nruns that is not a request** — its workers and its cron minions — and **what it reaches out to** —\nthe providers it binds, and where.\n\nYou do not write any of it. The foundation composes each package, and\n`bottom_up.build-decompose` turns each entry here into a build task bound to the skill that authors\nit.\n\n## Most applications declare nothing here, and that is an answer\n\nThere is no minimum. An application with no worker, no minion and no extra provider binding is the\nordinary case, and a plan that says so — with a rationale saying why — is complete. Inventing a\nworker to fill a collection composes a package nobody maintains.\n\n## Step 1 — Worker or minion? One question settles it\n\nThis is the distinction the whole plan turns on, and planning one as the other produces either a\npackage that never runs or one that runs with nothing to contain it.\n\n| | **worker** | **minion** |\n|---|---|---|\n| what starts it | the backend calls it | the clock |\n| how it is reached | HTTP routes it registers | nothing reaches it |\n| its authority | the caller's | a containment whitelist of its own |\n| plan it when | work cannot finish inside a request | something must happen because time passed |\n\nA nightly sweep is a minion. A slow import the user triggers is a worker. A nightly sweep that the\nbackend also triggers on demand is **both**, and they are two entries.\n\n## The refs carry a prefix, and the schema refuses one that does not\n\nA worker is `worker-<slug>` and a minion is `minion-<slug>`. You supply the SLUG; the runtime stamps\nthe prefix. Keep the slug kebab-case and starting with a LETTER: a ref beginning with a digit parses\nhere and is then refused when the foundation derives the package's identifiers from it.\n\n## Step 2 — Plan each worker\n\n- **`runtime`** — `NODE` unless the work is CPU-bound enough that the choice is the reason the\n worker exists. Rust is a cargo crate: no shared-lib, no pnpm workspace member, a different\n bootstrap. Choose it deliberately or choose Node.\n- **`purpose`** — what the backend delegates, and **why that cannot happen inside a request**. The\n second half is what a reader checks the decision against.\n- **`jobRefs`** — the routes the entry registers, which is what the backend calls. At least one, and\n **not the worker's own name**: `worker-imports` exposing only `imports` says nothing about what is\n delegated, and the plan reports it.\n\n## Step 3 — Plan each minion, and name its containment\n\n- **`purpose`** — what happens because time passed.\n- **`behaviorRefs`** — the named behaviours the tick performs.\n- **`readsResourceRefs` / `writesResourceRefs`** — **the containment decision, and this is why a\n minion is planned rather than left to the coding agent.** A minion's `resourceAccess` whitelist\n starts DENY-ALL, each named resource must separately opt in, and an empty whitelist logs a soft\n warning and **keeps running** — so a minion whose access nobody decided looks healthy and touches\n nothing. Name the decided resources its tick reads and the ones it writes.\n\n**No schedule here.** The plan says what happens because time passed, never how often: a cadence is\nan operational decision, and the minion's own build task sets it beside the whitelist it must widen\nanyway.\n\n## Step 4 — Bind the providers\n\nOne entry per provider per **scope** — the runtime owner whose declaration it lands in:\n\n| scope | the owner | what the binding is |\n|---|---|---|\n| `BACKEND` | the backend service | a package installed in the backend and scoped to it |\n| `COMPANION` | the dev companion | the same act, in the companion's scope |\n| `FRONTEND_APP` | the application frontend | a browser-bound provider module |\n| `WEBSITE` | the marketing site | the same, on the website's frontend service |\n\nThe same provider on two scopes is legitimate and common; the same provider twice on ONE scope is\none declaration written twice, and the plan refuses it.\n\n**A minion's or a worker's own providers are not here.** Those are declared on that surface's own\n`providers` block and belong to the task that builds it.\n\n**A third-party provider comes from the registry.** the declared `provider_registry` context section of your brief lists every\nprovider module on offer, whether this application has installed it, and the ref it is bound as. When a\nrequirement needs a vendor (reading documents, posting to a team chat, filing a task), pick the module that\nfills it, bind it by that ref, and put its install command, `wildo registry add wildo/providers/<name>`, in\nthe binding's rationale when it is not installed yet. The binding's build task installs it first. An\naugmentation (a module that adds operations to another provider, such as Teams on `microsoft`) is bound by\nits OWN ref with `augments` naming that provider; its task lands when the application opts it in under\n`providers.augmentations.<augments>`, which also needs a binding (or an existing scope) for the provider it\naugments.\nNever bind a third-party vendor that neither that list nor the workspace carries: no module would provide\nit. A need the registry does not cover is written in the plan's rationale as open, not bound.\n\n## Step 4b — Say whether work arrives by email or by text\n\nDeclare an `inboundChannels` entry only when the product ACTS on messages people send it:\n\n- `channel: email` — a firm whose clients email documents to their matter, a support desk that turns a\n message into a ticket.\n- `channel: sms` — people text an organization's number and something happens: a patient moves an\n appointment, a driver confirms a delivery, a member asks for the status of a request.\n\nIts `purpose` says what arrives and what the application does with it; `servesRefs` names what asked\nfor it. One entry per channel.\n\nThis declaration is what switches the receiving capability on: the foundation derives `EMAIL_INBOUND`\n(email) or `SMS` (text) from it and records the provider it is owed, so nobody is asked. Do not declare\na channel because the product SENDS on it (notifications, sign-in codes): sending is not work arriving.\nNever declare a webhook: a signed delivery from another system is derived for that delivery, not\nplanned. A text carries no attachment and its sender is identified, never authenticated, so a text\nchannel suits short requests a person could equally make by phone, not documents or approvals.\n\n## Step 5 — Make every surface accountable\n\nEach worker and minion carries `servesRefs`: the requirement, feature draft, roadmap phase or\nsuccess criterion that asked for it. A background process accountable to nothing is one nobody\nasked for, and the plan reports it.\n\n## Refine, don't re-author\n\nYour own prior plan is an input. Keep every worker and minion ref that still has a reason to exist —\nbuild tasks name them, and a moved ref orphans the task that produced its package.\n\n## What you emit\n\n- The **integration plan** at `specifications/src/integration-plan/index.ts` — the workers, the\n minions, the provider bindings and the inbound channels this application carries, with the\n rationale for the shape as a whole.\n\n## Verification\n\n- Every `readsResourceRefs` / `writesResourceRefs` entry names a resource the domain plan declares.\n- No worker's only `jobRefs` entry repeats its own name.\n- `rg -n \"workerRef|minionRef\" specifications/src/integration-plan/index.ts | wc -l` — the number of\n packages the foundation will compose.\n\n## References — named by REF, because this step cannot open a file\n\nA structured generation has no filesystem, so a path here would be an instruction answered from\nrecollection (#1435). Each skill is named by its REF, and two reach this step as BODIES\n(`method.skillBodyRefs`): **`worker-authoring`** and **`minion-authoring`**. That is not a\nconvenience — step 1's question is a runtime contract, and step 3's containment chain has three\nparts of which two live outside the minion's own package, so neither is answerable from memory.\n\nThe rest are the contracts the CODING AGENT opens when it builds each task:\n\n- `provider-backend-package` — installing and scoping a provider on a backend-side owner, bound to\n the emitted task by `INTEGRATION_PROVIDER_BINDING_SKILL_REF` for the `BACKEND` and `COMPANION`\n scopes.\n- `provider-frontend-file-picker` — the frontend provider-module mechanism, bound for the\n `FRONTEND_APP` and `WEBSITE` scopes.\n- `provider-operation-calls` — how a bound provider's operations are actually called, which is what\n makes a binding worth having.\n- `resource-external-data` — the other way to reach another system: read-through or pipeline, when\n what you want is DATA rather than a provider call.\n- `configure-billing` — the worked five-surface chain for the provider binding most applications\n need first.\n- `inbound-channels` — what a declared inbound channel becomes: the handler that decides what a\n message causes, the sender assurance it requires, and whether it answers.\n",
|
|
41
|
+
"guidance": "# Integration Plan — What Runs Beside the Backend\n\n### Target Application Framing\n\nThis knowledge is for configuring behavior in the target application.\nWildo is the framework surface being used, not the product being built.\n\nRead and apply these patterns from the application-developer point of view:\n\n- how the application should configure the relevant app-level file\n- how the application should use framework-provided factories, enums, and helpers\n- how the application should avoid mixing frontend, backend, and infrastructure concerns\n\n\n## Where you are in the journey\n\nThe domain plan is approved and the requirements are written. You decide **what this application\nruns that is not a request** — its workers and its cron minions — and **what it reaches out to** —\nthe providers it binds, and where.\n\nYou do not write any of it. The foundation composes each package, and\n`bottom_up.build-decompose` turns each entry here into a build task bound to the skill that authors\nit.\n\n## Most applications declare nothing here, and that is an answer\n\nThere is no minimum. An application with no worker, no minion and no extra provider binding is the\nordinary case, and a plan that says so — with a rationale saying why — is complete. Inventing a\nworker to fill a collection composes a package nobody maintains.\n\n## Step 1 — Worker or minion? One question settles it\n\nThis is the distinction the whole plan turns on, and planning one as the other produces either a\npackage that never runs or one that runs with nothing to contain it.\n\n| | **worker** | **minion** |\n|---|---|---|\n| what starts it | the backend calls it | the clock |\n| how it is reached | HTTP routes it registers | nothing reaches it |\n| its authority | the caller's | a containment whitelist of its own |\n| plan it when | work cannot finish inside a request | something must happen because time passed |\n\nA nightly sweep is a minion. A slow import the user triggers is a worker. A nightly sweep that the\nbackend also triggers on demand is **both**, and they are two entries.\n\n## The refs carry a prefix, and the schema refuses one that does not\n\nA worker is `worker-<slug>` and a minion is `minion-<slug>`. You supply the SLUG; the runtime stamps\nthe prefix. Keep the slug kebab-case and starting with a LETTER: a ref beginning with a digit parses\nhere and is then refused when the foundation derives the package's identifiers from it.\n\n## Step 2 — Plan each worker\n\n- **`runtime`** — `NODE` unless the work is CPU-bound enough that the choice is the reason the\n worker exists. Rust is a cargo crate: no shared-lib, no pnpm workspace member, a different\n bootstrap. Choose it deliberately or choose Node.\n- **`purpose`** — what the backend delegates, and **why that cannot happen inside a request**. The\n second half is what a reader checks the decision against.\n- **`jobRefs`** — the routes the entry registers, which is what the backend calls. At least one, and\n **not the worker's own name**: `worker-imports` exposing only `imports` says nothing about what is\n delegated, and the plan reports it.\n\n## Step 3 — Plan each minion, and name its containment\n\n- **`purpose`** — what happens because time passed.\n- **`behaviorRefs`** — the named behaviours the tick performs.\n- **`readsResourceRefs` / `writesResourceRefs`** — **the containment decision, and this is why a\n minion is planned rather than left to the coding agent.** A minion's `resourceAccess` whitelist\n starts DENY-ALL, each named resource must separately opt in, and an empty whitelist logs a soft\n warning and **keeps running** — so a minion whose access nobody decided looks healthy and touches\n nothing. Name the decided resources its tick reads and the ones it writes.\n\n**No schedule here.** The plan says what happens because time passed, never how often: a cadence is\nan operational decision, and the minion's own build task sets it beside the whitelist it must widen\nanyway.\n\n## Step 4 — Bind the providers\n\nOne entry per provider per **scope** — the runtime owner whose declaration it lands in:\n\n| scope | the owner | what the binding is |\n|---|---|---|\n| `BACKEND` | the backend service | a package installed in the backend and scoped to it |\n| `COMPANION` | the dev companion | the same act, in the companion's scope |\n| `FRONTEND_APP` | the application frontend | a browser-bound provider module |\n| `WEBSITE` | the marketing site | the same, on the website's frontend service |\n\nThe same provider on two scopes is legitimate and common; the same provider twice on ONE scope is\none declaration written twice, and the plan refuses it.\n\n**A minion's or a worker's own providers are not here.** Those are declared on that surface's own\n`providers` block and belong to the task that builds it. The one exception is a provider that must be\nAUTHORED for a worker or minion alone (below): it gets no binding, and its `unprovidedNeeds` entry names\nthat surface in `wiredByRef` instead.\n\n**Use the providers the framework already has.** the declared `provider_registry` context section of your brief lists the engine's own\nproviders (declared, never installed) and every registry module on offer, whether this application has\ninstalled it, and the ref it is bound as. Look there first, every time. When a\nrequirement needs a vendor (reading documents, posting to a team chat, filing a task), pick the module that\nfills it, bind it by that ref, and put its install command, `wildo registry add wildo/providers/<name>`, in\nthe binding's rationale when it is not installed yet. The binding's build task installs it first. An\naugmentation (a module that adds operations to another provider, such as Teams on `microsoft`) is bound by\nits OWN ref with `augments` naming that provider; its task lands when the application opts it in under\n`providers.augmentations.<augments>`, which also needs a binding (or an existing scope) for the provider it\naugments.\nNever bind a third-party vendor that neither that list nor the workspace carries on the strength of the binding\nalone: no module would provide it. And bind an engine provider only on a scope its facets serve (the list shows\nthem): a browser-only provider such as the Dropbox Chooser is never a `BACKEND` binding, and the plan refuses one.\n\n**A provider is AUTHORED only for a need nothing above fills, and the reason is recorded.** When no engine\nprovider and no registry module fills a requirement (a vendor none of them offers, a behaviour they lack, or a\nbusiness obligation that names a vendor), record it in `unprovidedNeeds`: the `providerRef` the new provider\nwill have, the `need`, `whyNoExistingProvider` (checked against the lists you were shown; \"simpler\" or \"more\nfamiliar\" is not a reason), and its `servesRefs`. Then bind that ref on the scope that needs it, or, when only\none of the plan's workers or minions uses it, set the entry's `wiredByRef` to that surface's full ref\n(`worker-<slug>`, `minion-<slug>`) and bind nothing. Only such a binding, or the surface `wiredByRef` names,\nbecomes a task that authors a provider package; every other binding wires a provider that exists. A\nneed you are unsure about is not unprovided: re-read the lists. When the registry could not be read, write the\nneed in the plan's rationale as open instead, since a module may well fill it.\n\n## Step 4b — Say whether work arrives by email or by text\n\nDeclare an `inboundChannels` entry only when the product ACTS on messages people send it:\n\n- `channel: email` — a firm whose clients email documents to their matter, a support desk that turns a\n message into a ticket.\n- `channel: sms` — people text an organization's number and something happens: a patient moves an\n appointment, a driver confirms a delivery, a member asks for the status of a request.\n\nIts `purpose` says what arrives and what the application does with it; `servesRefs` names what asked\nfor it. One entry per channel.\n\nThis declaration is what switches the receiving capability on: the foundation derives `EMAIL_INBOUND`\n(email) or `SMS` (text) from it and records the provider it is owed, so nobody is asked. Do not declare\na channel because the product SENDS on it (notifications, sign-in codes): sending is not work arriving.\nNever declare a webhook: a signed delivery from another system is derived for that delivery, not\nplanned. A text carries no attachment and its sender is identified, never authenticated, so a text\nchannel suits short requests a person could equally make by phone, not documents or approvals.\n\n## Step 5 — Make every surface accountable\n\nEach worker and minion carries `servesRefs`: the requirement, feature draft, roadmap phase or\nsuccess criterion that asked for it. A background process accountable to nothing is one nobody\nasked for, and the plan reports it.\n\n## Refine, don't re-author\n\nYour own prior plan is an input. Keep every worker and minion ref that still has a reason to exist —\nbuild tasks name them, and a moved ref orphans the task that produced its package.\n\n## What you emit\n\n- The **integration plan** at `specifications/src/integration-plan/index.ts` — the workers, the\n minions, the provider bindings and the inbound channels this application carries, with the\n rationale for the shape as a whole.\n\n## Verification\n\n- Every `readsResourceRefs` / `writesResourceRefs` entry names a resource the domain plan declares.\n- No worker's only `jobRefs` entry repeats its own name.\n- `rg -n \"workerRef|minionRef\" specifications/src/integration-plan/index.ts | wc -l` — the number of\n packages the foundation will compose.\n\n## References — named by REF, because this step cannot open a file\n\nA structured generation has no filesystem, so a path here would be an instruction answered from\nrecollection (#1435). Each skill is named by its REF, and two reach this step as BODIES\n(`method.skillBodyRefs`): **`worker-authoring`** and **`minion-authoring`**. That is not a\nconvenience — step 1's question is a runtime contract, and step 3's containment chain has three\nparts of which two live outside the minion's own package, so neither is answerable from memory.\n\nThe rest are the contracts the CODING AGENT opens when it builds each task:\n\n- `provider-backend-package` — installing and scoping a provider on a backend-side owner, bound to\n the emitted task by `INTEGRATION_PROVIDER_BINDING_SKILL_REF` for the `BACKEND` and `COMPANION`\n scopes.\n- `provider-frontend-file-picker` — the frontend provider-module mechanism, bound for the\n `FRONTEND_APP` and `WEBSITE` scopes.\n- `provider-operation-calls` — how a bound provider's operations are actually called, which is what\n makes a binding worth having.\n- `resource-external-data` — the other way to reach another system: read-through or pipeline, when\n what you want is DATA rather than a provider call.\n- `configure-billing` — the worked five-surface chain for the provider binding most applications\n need first.\n- `inbound-channels` — what a declared inbound channel becomes: the handler that decides what a\n message causes, the sender assurance it requires, and whether it answers.\n",
|
|
42
42
|
"skillRefs": [
|
|
43
43
|
"worker-authoring",
|
|
44
44
|
"minion-authoring",
|
|
@@ -476,6 +476,10 @@ actually controls.
|
|
|
476
476
|
one — and `privacy.consentDecidedAt`, stamped by the server when they decide. An empty set WITH an
|
|
477
477
|
instant is "declined everything"; no instant is "never asked". A notice must not state the second
|
|
478
478
|
as the first.
|
|
479
|
+
- per-person `privacy.offeredPurposes` — the purposes a consent surface actually showed the person
|
|
480
|
+
when they decided, accumulated over their decisions. A decision covers only what was shown: when
|
|
481
|
+
the application starts asking for a purpose after someone decided, the consent prompt asks them
|
|
482
|
+
for that purpose alone, and a notice must not describe them as having declined it.
|
|
479
483
|
- `analytics.requiresConsent` (default `true`) — whether the application's analytics rest on
|
|
480
484
|
`ANALYTICS`. It governs analytics alone, never use of the service.
|
|
481
485
|
- the visitor tier: a marketing website keeps a visitor's decision in their browser and starts a
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"stepOutputs": [],
|
|
27
27
|
"method": {
|
|
28
|
-
"guidance": "# Compliance document candidate method\n\nYou are drafting ONE governed document for this application, from what the application has already\ndeclared. Follow the `compliance-document-authoring` skill for the rules — its full text is in your\nbrief, under \"The skills this method tells you to FOLLOW\", because this step has no tools and cannot\nopen a file. This method says which document, what shape, and what the two closed vocabularies are.\n\n## Choose the document, from the two this lane may draft\n\n`documentRef` must be one of six and the contract refuses anything else, but only two of the six are\nYOURS. The four internal `governance.*` documents belong to `refinement.governance-document-candidate`,\nwhich ships their blueprints; drafting one here would mean writing a document whose obligations you were\nnever given.\n\n| `documentRef` | what it is | drafted by |\n|---|---|---|\n| `document:public.privacy-notice` | what personal data the application holds and what happens to it | **this lane** |\n| `document:public.service-terms` | the commercial and service relationship | **this lane** |\n| `document:governance.scope-system-description` | what the system IS, for an assurance reader | `refinement.governance-document-candidate` |\n| `document:governance.roles-responsibilities` | who is accountable for what | `refinement.governance-document-candidate` |\n| `document:governance.program-handbook` | how the governance program runs | `refinement.governance-document-candidate` |\n| `document:governance.document-record-control` | how governed documents are themselves controlled | `refinement.governance-document-candidate` |\n\n**Draft a document this application does not already hold.** The run tells you which those are: the\nbrief opens with what the application has already drafted, listing each document it may produce here\nas ALREADY DRAFTED or not yet drafted. Drafts are keyed by `documentRef`, so drafting one that is\nalready there REPLACES it — right when that draft is wrong, and a wasted run when it is not.\n\n**A held draft marked ALREADY DRAFTED, and WRONG comes before everything below.** The brief marks a held\ndraft that cites facts this application no longer declares, and names them. Nothing else corrects it: the\nlanding checks only the document a run writes, so a draft written before the facts were regenerated keeps\nits dead citations until a run redrafts that document. Redraft it against the facts that exist, and cite\nnone of the named ones.\n\nWhere several remain, the **privacy notice** comes first: it is the one every application holding\npersonal data needs. Where none remains, the honest reason to draft again is that a held draft is\nwrong — say which one and why in your own reasoning, rather than redrafting the first on the list.\n\nThis paragraph used to read \"draft the privacy notice unless the run tells you otherwise\", at a time\nwhen no run told it anything. Measured against a real application on 2026-09-16: with its privacy\nnotice already drafted, two consecutive runs meant to produce the service terms drafted the notice\nagain and replaced it, and the application finished each run holding exactly what it started with.\nThe second sentence was stale as well — it said the privacy notice was \"the only one whose facts the\ncurrent derivation supplies\", which stopped being true once the fact-declaring playbook began\ndeclaring the account, billing and AI facts the service terms rest on.\n\nNaming a document outside this set is not a smaller decision than it looks. Each of the six has a\nconcern composition the framework measures a draft against, so a seventh name is a document nobody can\nstate the gaps in — and stating the gaps is the whole point.\n\n## One section per concern, and SAY which concern\n\nEvery section carries `concernRef`, from the closed compliance-concern vocabulary. **The composition\nfor each document is inlined at the end of this method** — one entry per concern, saying what it\nasserts, what in the application it derives from, what state it usually reaches, and what closes it\nwhen it cannot. Draft one section per concern, in the order given, and produce **every** one:\na concern nothing can answer becomes a section with a marked clause, never a missing heading.\n\nThose entries are the difference between a draft that states its gaps and one that guesses at them.\nWhere a concern's entry names an issue number as the remedy, say so in `incompleteness.closedBy` —\n`#89`, `#91` — because a numbered issue is a remedy a reader can open, and \"application configuration\nowner\" is not.\n\nUse `concernRef: null` only for a section that genuinely answers no concern: a preamble, a contact\nblock. It is not a way past a concern you found hard. A concern you cannot establish gets a SECTION,\nwith a clause marked incomplete — which is the mechanism this whole document exists around.\n\nThe value must be the concern's exact name. A near miss (`retention` for `retention-and-deletion`) is\nworse than a null: it reports the concern as unaddressed while the document addresses it.\n\n\n## And SAY which required parts the section supplies\n\nEvery section also carries `satisfiesSectionRefs`: the refs, from the document definition rendered in\nyour brief, that this section actually addresses. This is a different question from `concernRef` and\nboth are answered — the concern says what compliance TOPIC the section is about, the satisfied refs\nsay what part of THIS document it supplies.\n\nYou are asked for the join because you are the only reader that holds both. The concern set is one\nflat vocabulary spanning every document type; the required parts are defined per document, and the\nsame concern does not sit under the same heading in a privacy notice and a governance handbook. A\nmapping written once in the framework would have to pick one answer and be wrong somewhere.\n\n- A section may claim several refs, and several sections may claim one between them.\n- A section that answers no required part — a preamble, a contact block — answers `null`. Not an\n empty list: `null` and `[]` would be two spellings of one state, and the contract refuses the second.\n- **Claim honestly.** A required ref nobody claims is reported as a part the document may not address,\n which is a true and useful finding. Claiming one you did not address hides that, and nothing\n downstream reads your prose to catch it.\n\nDo NOT adopt the definition's refs as your own `sectionRef` values. Your section set is the concern\nrule above; these are a claim you attach to it, not names you take.\n\n**Clauses carry the same claim**, as `satisfiesClauseRefs`, and answer `null` the same way. Your brief\nlists the blueprint's clauses under each section, each marked REQUIRED or CONDITIONAL; name the ones\nyour clause supplies.\n\nBoth keys were ASKED FOR HERE and absent from the strict contract you answer until 2026-09-02, so a\ndraft that followed this section could not parse and every landed document claimed nothing. If you\nare reading a document produced before then, its empty coverage is that defect and not a finding\nabout the document.\n\n- Several of your clauses may supply one blueprint clause between them, and one clause may supply\n several.\n- A clause supplying none — a transition, a heading gloss — claims none.\n- **Only the clauses marked REQUIRED are owed.** A CONDITIONAL clause is supplied when its condition\n holds and correctly omitted otherwise, so leaving one unclaimed is not a gap.\n\nThis is the anchor a clause did not previously have. A fact is named by the catalog and a section\ncarries its concern, so both survive a redraft; a clause was named freely and joined to nothing, which\nis why a reviewer who approved one could not find it in the next revision.\n## What a clause may say\n\nThe rule is ASSERT versus MARK, and the skill states it in full. In short: a clause may say \"this is\nnot yet established\"; it may not say something untrue.\n\n- `DERIVED` — established by a fact this application has declared. Cite it in `factRefs`. A `DERIVED`\n clause citing a fact the facts file does not declare is REFUSED before the write.\n\n **This is decided against the facts file as it stands NOW, not against any earlier draft.** You are\n producing the whole document from what the application currently declares, so a concern the facts\n answer today is `DERIVED` today — even if a previous version of this document marked it incomplete\n and is still in the tree. Re-running this playbook is how a document that went stale is repaired,\n and it only repairs anything if the re-draft is willing to close a mark.\n\n **Never fold a declared fact into a marked clause.** When one concern has a declared half and a\n missing half — retention periods declared while retention enforcement is not evidenced, a\n processor register that names most recipients while some providers have no recorded identity —\n write TWO clauses: a `DERIVED` clause stating what is declared, and a separate marked clause naming\n what is missing. A clause is marked as a whole, so one clause carrying both states nothing: every\n clause citing the declared fact is then incomplete, and the standing coherence report correctly\n records that the document mentions the fact without stating it. A redraft that marked its retention\n and recipients clauses because each also carried a gap stopped stating two facts the previous draft\n had stated.\n\n **A fact the application declared NOT APPLICABLE is a fact, and a clause may rest on it.** *\"No\n external analytics provider is configured\"* is `DERIVED`, not incomplete: the application settled the\n question and recorded the answer. Marking such a concern incomplete says the application does not\n know something it does know, which is as wrong as overstating. What is refused is citing a fact the\n facts file does not declare AT ALL.\n- `NEEDS_FRAMEWORK` / `NEEDS_DECISION` / `NEEDS_CONFIGURATION` — mark it, and say in `incompleteness`\n what is missing and who closes it. Four distinct suppliers, four distinct remedies; do not merge them.\n\n **When what is missing is a FACT, name it in `incompleteness.awaitingFactRefs`.** The skill argues\n this in full; the short version is that a marked clause asserts an ABSENCE in the application's own\n configuration, and that assertion goes false the moment someone declares the thing — silently, since\n nothing about the document changes. The awaited ref is what lets generation, landing and the\n standing coherence report all say the clause has gone stale. A clause that awaits nothing rots\n unobserved, and one already has.\n\n **`NEEDS_DECISION` and `NEEDS_FRAMEWORK` are the pair most easily confused, and the difference is\n the REMEDY.** `NEEDS_DECISION` means a surface exists and nobody filled it in — the reader goes and\n answers. `NEEDS_FRAMEWORK` means there is NOWHERE to record the answer; telling a reader to decide\n is telling them to write into a void.\n\n Measured on 2026-08-30, a produced notice marked operator identity `NEEDS_DECISION` when no surface\n for it existed at all, beside retention periods marked identically and genuinely just unfilled. Two\n remedies, rendered the same, and a reader could act on neither.\n\n **So every incomplete clause must NAME THE SURFACE its answer goes to**, or say plainly that none\n exists. A gap with a named surface is a task; a gap without one is a request for work nobody has\n scoped. The fragment you are working from names the surface where there is one — carry it into\n `incompleteness` rather than leaving the reader to find it.\n\n **`closedBy` must name WHO can reach that surface, and an ENGINE resource is not the application\n author's to edit.** `retentionPolicy`, `systemAccessPolicy.exportSubject` and `.dataCategories()`\n on an engine resource live in engine source. Writing \"application authors must declare\n `retentionPolicy` for each affected engine resource\" hands the reader a task they cannot perform —\n and a produced notice said exactly that, for 83 resources, in the same confident register as the\n remedies that ARE actionable. An unreachable remedy is worse than an unnamed one: it looks like\n work, gets scheduled, and fails when someone tries it.\n\n Where the closer is the FRAMEWORK, say so plainly — \"the framework must declare these on its own\n resources\" — and keep it separate from what this application owes.\n\nNever fill an unresolved fact, infer a legal decision, or describe the draft as approved, compliant,\nlegally valid, released or published. Locale and jurisdiction are review inputs; leaving them\nunresolved is a legitimate answer and never a reason not to draft.\n\n**And the mirror of that, which matters just as much: a missing approval never stops you.** Approval\nhappens at the END and is a human commit; a downstream release can be composed and MARKED\n`UNAPPROVED`. So the absence of one is a STATE to record, never a reason to produce nothing and never\nan outcome to report as blocked. The two failures are symmetric — claiming an approval that did not\nhappen, and refusing to act because it has not happened yet — and a compliance workflow standing in\nfront of the application-creation mechanism is the second one.\n\n## The refs you write, and their exact shape\n\nEvery `…Ref` field is a **namespaced ref**: `namespace:slug`, both halves lowercase, words joined by\nhyphens. `clause:retention-duration-not-declared` is one; `clause:Retention Duration` is not, and a\nwhole draft is rejected for a single malformed one. Ref ARRAYS are arrays of those strings — never\nobjects, never `{ ref: … }`.\n\nPer clause, all three ref arrays are required. Two of them may be empty, but **not both of the\nfirst two at once** — a clause that names no fact and no policy is sourced by nothing and is\nrejected:\n\n- `factRefs` — the facts this clause rests on, exactly as the facts file declares them. It may be\n EMPTY for a clause that establishes nothing (a marked clause often does).\n- `sourcePolicyRefs` — the application POLICY AREA the statement is sourced from, and nothing else.\n Every entry must be in the `policy:` namespace (`policy:retention`, `policy:recipients`,\n `policy:security-controls`); any other namespace is rejected outright. **Do NOT put a fact\n authority here.** A clause resting on declared facts already cites its authorities through\n `factRefs`, which resolves them — repeating them here duplicates the citation beside it and\n resolves to nothing. So this array is EMPTY for a fact-backed clause, and carries a policy area\n for a clause that is sourced from a policy rather than from a fact.\n- `claimGuardRefs` — at least one: what this clause must NOT be read as claiming. These are the\n boundaries you are already holding — `claim-guard:no-legal-applicability-claim`,\n `claim-guard:no-invented-retention-period`, `claim-guard:known-fact-only`. Name the ones that apply\n to this clause; do not repeat the same guard on every clause out of habit. You do not name the\n CATALOG's guard for the material: it is added for you from the blueprint clauses this clause\n `satisfiesClauseRefs`, so a clause that says what it satisfies is checked against it automatically.\n\n`evidenceRefs` is **`null` on every clause of a public document**, and that is not a gap to work around.\nIt cites a judged run from this application's own assurance repository — self-attested internal\nevidence — and a public notice may carry none, whatever the run says: a reader of one cannot weigh an\noperator's judgement of its own product, and any citation here is refused before the draft becomes a\nfile. That evidence belongs to the internal governance documents, which\n`refinement.governance-document-candidate` draws. Where you would have leaned on a measurement, say\nwhat is CONFIGURED or DECLARED, or MARK the statement.\n\n**One exception, and it is a fact, never a citation (decided 2026-11-06, #3343).** Two facts are computed by\nthe runtime from the application's own RECORDS rather than declared: `retention-enforcement` (whether each declared\nperiod was applied) and `ai-content-guardrails` (what each agent's guardrail was active on). A public clause MAY\nstate what such a fact shows, scoped to its observation: *\"as of 2026-11-05, the 30-day period was applied\"*, *\"in\nthe window 1–30 October, the screening ran on 45 calls\"*. That reports a record, not the operator's judgement, and it\nis more truthful than printing a declared period beside no word on whether it is kept. It stays a statement of\nthe fact, never an `evidenceRefs` citation; always carries the date or window; never generalizes beyond it (*\"runs\non every call\"*, *\"is always enforced\"*); and never reads a quiet window as having run or as not having run. Where\nthe fact is absent, say what is declared and that its operation is not evidenced.\n\n**The same holds when a FACT is phrased as behaviour, and that is where drafts go wrong.** The facts\nyou cite describe the product in the present tense — *\"the running application reaches\"*, *\"the\nframework sets\"*, *\"acceptance joins the member\"*, *\"kept 30 days, then erased\"* — which is accurate\nfor a fact and is an operating claim in a public notice (outside the records exception above). Do not carry the verb across: restate each as\na declaration (*\"the configuration enables\"*, *\"the framework declares\"*, *\"the configured membership\nmodel admits\"*, *\"the declared period is 30 days, after which the data is due for erasure\"*). The\njudge reads every clause of a public document for exactly this, and a sentence copied from a fact is\nthe one it finds.\n\n`reviewChecklistRefs` needs at least one (`review-checklist:<slug>`) — what a human must confirm before\nthis draft is worth anything. `limitationRefs` may be empty, but rarely should be: it is where you say\nwhat the document does NOT cover, in your own words as the drafter, rather than leaving the reader to\ndiscover it.\n\n## You do not compose the release — and a release nobody approved is marked UNAPPROVED\n\nYou draft the candidate. You do NOT author its release, and that is a boundary rather than an\nomission: almost everything a release carries is DERIVED from the accepted document definition — the\ndocument's class, who it addresses, which channels may carry it, which interactions it permits — and\na model restating those would create five ways to disagree with the catalog, invisibly. The rest\n(which declared variant, when it takes effect) is a composition over families you are not holding.\n\nA human declares a release DECISION in the application's\n`specifications/src/document-releases/compositions.ts`, and `wildo config document-releases` composes\neach decision not yet recorded — your candidate plus the declared variant and release policy — and\nrecords the finished release, text included. Nothing records a release because you landed a draft: an\napplication with no decision holds no release yet, which is a valid state and not yours to fix from\nthis playbook. Until a public document (privacy notice, service terms) has a release, its public page\nshows your latest draft, marked as a draft — so what you mark as not established is what a reader sees.\nWhat matters for your work is what composition produces when it runs: a release carrying\n`approvalState`, and one nobody has approved is `UNAPPROVED` and exists anyway.\n\n**Which is why a missing approval never changes what you do here.** Draft the document completely,\nmark every statement you cannot establish, and let the release be composed and marked. Waiting for an\napproval before drafting — or describing a draft as approved to get past the gate — are the two\nsymmetric failures, and the first is a compliance workflow standing in front of the mechanism that\nbuilds the application.\n\n## Where the draft goes\n\nIt lands as a FILE in the application's specifications package, as an ordinary working edit. It is\naccepted by a commit and by nothing else; who makes that commit is the host's autonomy posture, and\nonly a PERSON's commit is an approval. Landing is not approval, release or publication — and neither is\na commit the development companion authors under the YOLO posture.\n\n\n---\n\n# The compositions\n\nEach of the following is one document's full concern list. Use the one matching your `documentRef`\nand ignore the rest.\n\n## `document:public.privacy-notice` — thirteen concerns\n\n**Write for the audience the brief names.** The definition line in your brief says `audiences:`, and the\nvalue is derived from the application's line, never chosen by you. `PUBLIC_GENERAL` is the notice every\ncustomer-facing application publishes. `WORKFORCE` means one organization owns the application and its\nusers are that organization's staff (an internal tool): the brief then carries a section saying how that\nreader changes the scope, the purposes and bases, the recipients and the delivery of the notice. Follow\nit, and still take every basis and every recipient from the facts: the audience changes how you word\nwhat was declared, never what was declared.\n\n### Concern: operator identity\n\n**Asserts** — who legally operates the service: entity name, registered address, contact route for\ndata-protection questions, and a representative where one is required.\n\n**Derives from** — `operatorComplianceIdentity` in `wildo.saas.config.ts`: the legal entity, its\nregistered address, the privacy contact route, and an Art. 27 representative where one is required.\n\nThe VALUE is never derivable — a legal entity is a fact about the world, not a property of a codebase.\nWhat the framework provides is the PLACE to record it, and until 2026-08-30 it did not: this fragment\nsaid \"no engine change would close it\", which was right about derivation and wrong about the home.\nThe consequence was concrete. A landing REPLACES the produced document on every run, so an operator\nwho answered by editing the document lost the answer at the next regeneration — the answer has to live\nin the application or it does not survive.\n\n**Completeness** — `DERIVED` when the identity is declared; `NEEDS_DECISION` when it is not.\n\n⚠️ `NEEDS_DECISION`, not `NEEDS_FRAMEWORK`, and the distinction is load-bearing now that the surface\nexists. `NEEDS_FRAMEWORK` means there is nowhere to record the answer; `NEEDS_DECISION` means there is\nand nobody has. They have different remedies — build something, versus fill something in — and a\nreader who cannot tell them apart cannot act on either. Say which surface the answer goes to.\n\n**What closes it** — the operator declaring `operatorComplianceIdentity`. It is cheap and it can be\nfilled in later without redrafting anything around it, which is the reason it is not a blocker.\n\n**Never infer it.** Not from the application name, not from a domain, not from another application,\nnot from model memory. A published legal document naming the wrong entity is worse than one that says\nthe entity is not yet recorded — the first misdirects a person exercising a right, the second tells\nthem the document is incomplete.\n\n**Every document needs this fragment**, which makes it the clearest demonstration of why producing\nwith gaps beats blocking: the whole document set would be unproducible until one form is filled in.\n\n\n### Concern: legal basis and controller/processor role\n\n**Asserts** — the lawful basis for each processing purpose, and whether the operator acts as\ncontroller or processor for it.\n\n**Derives from** — `operatorComplianceIdentity.lawfulBases` and `.roleAllocations` in\n`wildo.saas.config.ts`.\n\nThe DETERMINATIONS are never derivable — both are legal conclusions about the operator's own\narrangements, and the framework can show WHAT is processed and BY WHICH MECHANISM without establishing\nunder which basis or in which role. What it now provides is where to record the conclusion, so that a\nregeneration reproduces it instead of destroying it.\n\n**The role is a LIST, not a field, and the produced notice said so before the surface existed:**\n*\"This notice therefore does not assign a single legal role to all data processed in a workspace.\"* A\nB2B SaaS is typically a processor for the records its customers put in and a controller for its\naccount holders' own data, simultaneously. `roleAllocations` carries one role per population, and a\ndocument that collapses them into one is wrong about both.\n\n**The `lawful-bases` fact is COMPUTED from `lawfulBases`** — every purpose, its basis and, for\nlegitimate interests, the assessment. You never declare it: a restatement would be a second copy of the\noperator's decision that nothing compares with the first. Absent bases leave the fact absent.\n\n**Give each purpose a stable `purposeRef`** (`account-security`) when a recipient serves it. A vendor\nnames the purposes it serves in `providerComplianceChoices.<ref>.purposeRefs`, and the recipients fact\njoins the two. The prose `purpose` can then be reworded without breaking the link; a ref naming no\ndeclared purpose is reported, never refused.\n\n**`LEGITIMATE_INTERESTS` cannot be declared without its assessment** — the schema refuses it. It is\nthe only Art. 6(1) basis whose lawfulness depends on a balancing test, so the bare claim asserts a\nconclusion nobody reached.\n\n**Completeness** — `DERIVED` when declared; `NEEDS_DECISION` when not. Never `NEEDS_FRAMEWORK`: there\nis a surface, so the remedy is to fill it in, not to build something. Name the surface when reporting\nthe gap.\n\n**What closes it** — the operator determining, per purpose, the basis and the role, ideally with\ncounsel, and declaring them in `operatorComplianceIdentity`. The tenancy fragment describes the SHAPE this usually takes in a B2B SaaS — processor for\nthe data a customer stores about its own people, controller for the data the operator holds about\naccount holders — but describing the common shape is not the same as determining this operator's, and\nthe produced document must not present the first as the second.\n\n**This is the fragment most likely to be filled in by a confident guess**, because the shape is\nfamiliar and the sentence is easy to write. Resist it. A basis stated in a published notice is a\nposition the operator has taken; a basis that was never determined is a position nobody can defend.\n\n\n### Concern: personal data held\n\n**Asserts** — which of the application's own records are about identifiable people, and which hold no\npersonal data of their own.\n\n**Derives from** — each resource's `retentionPolicy.mode` (`ErasureRetentionMode`, in\n`@wildo-ai/saas-models`), read for every resource the application declares:\n\n| declaration | what the document may state |\n|---|---|\n| `RETAIN_AND_IMPERSONALIZE` | this record holds personal data; the fields marked `.impersonalizeWith()` are what is scrubbed on erasure |\n| `RETAIN_ONLY` | this record holds **no personal data of its own** — a positive, factory-enforced statement, because declaring a scrub treatment under this mode fails at config build |\n| absent | the application has not said |\n\nRead `dataSubjectPolicy.kind` for the SESSION question only. `NO_PRINCIPAL` is equally true of an\ninvoice and of a CRM contact, so it never tells you whether a record is about a person — the\nretention mode does.\n\n**Completeness** — `DERIVED` for every resource that declares a retention policy.\n\n**An erasure-coverage gap does NOT license a claim about whether personal data is held.** The two are\ndifferent axes and the facts report them separately: `retentionPolicy` answers *what happens to this\nrow on erasure*, while a field's `.dataCategories()` answers *what kind of data is in it*. A resource\ncan declare the second and not the first, and 48 of the engine's 85 do.\n\nSo writing \"N resources have no declared erasure treatment, so this notice cannot establish whether\nthey hold personal data\" is an over-reach, and it contradicts the data-categories section of the same\ndocument — which enumerates categories drawn from those very resources. It was produced twice on\n2026-08-30 before this paragraph existed.\n\nState the gap as what it is: those resources have not declared an erasure TREATMENT, so a notice\ncannot say what an erasure does to them. Where the facts also report a category coverage for the same\norigin, say what IS established alongside it.\n`NEEDS_CONFIGURATION` for every resource that does not.\n\n**What closes it** — the application's own authors declaring `retentionPolicy`, with the `dataSubjectPolicy` the\nfactory requires beside it, on the resource. Name\nthe resources individually: the remedy is per-resource, and a count is not actionable.\n\n\n### Concern: data categories\n\n**Asserts** — which CATEGORIES of personal data are held: identity, contact details, credentials,\nfinancial, usage, location, user content, professional, and any GDPR Art. 9 special-category or\nArt. 10 criminal-offence data.\n\n**Derives from** — each field's `.dataCategories()` declaration, reported per resource and unioned\nacross the application in the compliance-primary-facts section. One category is DERIVED rather than\ndeclared: `credentials`, from `.isPassword()` / `.isOtp()` / `.isWriteOnlySecret()`, which are\nmarkers the author already wrote.\n\n**Nothing is derived from a field NAME.** `email`, `phone` and `dateOfBirth` are suggestive while\n`notes` is not, so a category list assembled by pattern-matching identifiers is a guess presented as\nan inventory — and its failure mode is silent, because whatever the guess misses is simply not\ndisclosed. The declaration exists so that never happens.\n\n**Completeness** — `DERIVED` when the application declares categories; `NEEDS_CONFIGURATION` when it\ndeclares none, or when the facts section lists OUTSTANDING fields.\n\n**The two gaps are different and must not be written the same way.**\n\n- A resource that declares no category at all may genuinely hold no personal data. Nothing\n distinguishes \"considered and not applicable\" from \"never asked\", so state that the question is\n unanswered — never that the application holds no personal data.\n- A field the facts section lists as OUTSTANDING is a provable omission. The application already\n declared that field personal by another door — an erasure scrub treatment, a portability\n provenance, or a credential marker — so the missing category is an omission, not a judgement.\n Name the field and its basis. Do not guess what it contains.\n\n**A CONDITIONAL category is stated with its condition, never flattened.** A field may declare that\nit is personal data only under a condition — `described-party-is-a-natural-person` marks the name,\nnumber or address of the PARTY a row describes (a customer organization, an account, a supplier).\nThat party may be an individual, such as a sole trader, whose details are personal data, or a\ncompany, whose details are not, because GDPR Recital 14 excludes only legal persons. The facts\nsection lists these apart from the categories held on every row. State them as held \"where the\ncustomer is an individual (for example a sole trader)\". Never state them as held about every\ncustomer, and never leave them out: either sentence is false about some customers.\n\n**Say WHICH special category, not that there is one.** A `special-category:*` value is Art. 9 data\nand carries a lawful-basis condition of its own beyond Art. 6; `criminal-offence` is Art. 10, a\nseparate article with a different condition. \"We process special category data\" is not a disclosure —\nthe enum names the kind precisely so a notice can.\n\n**Do NOT point at `Compliance_DataClassification`.** It exists, it is a four-level SENSITIVITY ladder\n(public / internal / confidential / restricted) applied only to flows-actors configuration, and it\nanswers \"how protected must this be\" rather than \"what kind of personal data is this\". Using it here\nwould produce a notice describing protection levels where a reader expects data types. It is named\nexplicitly because it is a near-miss a reader will otherwise find and assume answers this concern.\n\n\n### Concern: consent and preferences\n\n**Asserts** — what the application asks consent for, at what granularity, and what a person's choice\nactually controls.\n\n**Derives from**\n\n- `ConsentPurpose` (`@wildo-ai/saas-models`): `ANALYTICS` · `MARKETING` — a SET of purposes, each\n granted or not on its own. There is no ordering: agreeing to marketing says nothing about analytics.\n- per-person `privacy.consentedPurposes` — the purposes each person granted, empty until they grant\n one — and `privacy.consentDecidedAt`, stamped by the server when they decide. An empty set WITH an\n instant is \"declined everything\"; no instant is \"never asked\". A notice must not state the second\n as the first.\n- `analytics.requiresConsent` (default `true`) — whether the application's analytics rest on\n `ANALYTICS`. It governs analytics alone, never use of the service.\n- the visitor tier: a marketing website keeps a visitor's decision in their browser and starts a\n consent-based provider (product analytics) only once its purpose is granted.\n\n- `operatorComplianceIdentity.serviceConsentRequirement` (`wildo.saas.config.ts`) — what a person\n must agree to in order to use the service AT ALL, and what that gate covers.\n\n**An empty `requiredPurposes` is a POSITIVE answer and the usual one.** The operator declaring that nothing is gated on\nconsent has answered the question; a document must state it as settled rather than treating it as an\nabsence. ABSENT is the different case — nobody was asked — and the brief distinguishes the two.\n\n**A consent GATE is not a lawful BASIS.** For most B2B SaaS the basis for core processing is CONTRACT:\na person uses the product because their employer signed for it. A notice that reads a gate as a basis\nstates that their data is processed on consent they could withdraw, which is wrong about the single\nmost consequential thing in the document. The basis is declared per purpose in `lawfulBases`.\n\n**Completeness** — `DERIVED` for the analytics gate, each person's granted purposes, and the\nservice-wide requirement once declared — which the application ENFORCES: until the required purposes are\ngranted, the backend refuses every operation the person initiates — API and MCP operations, queued work,\nWebSocket reads and subscriptions, agent tools, retrieval, charts and analytics, A2A task reads, and A2A or\nWebSocket conversations, including resuming one after an approval — except their own profile and preferences,\nwhere they record the consent, and cancelling an A2A task they already started (signing in and out stay open;\nupdates the server pushes on its own are not held back), and the web\napplication withholds its pages; `NEEDS_DECISION` naming `serviceConsentRequirement` when it is not.\n\nThis was `NEEDS_FRAMEWORK` until 2026-08-30, correctly: there was nowhere to record the answer. Issue\n#139 built the surface, so the remedy changed from \"someone must build this\" to \"fill this in\" — a\ndifferent party and a different task, which is why the two states are never interchangeable.\n\n**Say the thing readers get wrong.** Consent is one lawful basis among several, and it is not the one\nmost B2B processing rests on. **Never write that all processing rests on consent, and never write\nthat accepting terms supplies a lawful basis** — accepting a contract is a different basis with\ndifferent consequences, and conflating them is the single most common defect in a generated privacy\nnotice. Which basis applies is a `NEEDS_DECISION`; see the legal-basis fragment.\n\n\n### Concern: retention and deletion\n\n**Asserts** — what happens to a record when its subject is erased, and how long records are kept.\n\nTwo questions, and the framework answers both — the second only for the resources bound to a class.\n\n**Derives from (the HOW — answerable)** — each resource's `retentionPolicy.mode`:\n`RETAIN_AND_IMPERSONALIZE` keeps the row, freezes it, hides it from normal reads and scrubs the fields\nmarked `.impersonalizeWith()`; `RETAIN_ONLY` keeps and freezes a row that holds no personal data of\nits own. Reading the per-field treatments tells the document exactly WHICH values are destroyed and\nwhich survive, which is a genuinely strong statement most notices cannot make.\n\n**Records a statute keeps survive an erasure RESTRICTED, and the request still completes.** A resource\nbound to `BUSINESS_RECORDS` declares `retentionPolicy.statutoryRetention`: the GDPR Art. 17(3)(b) ground\n(`LEGAL_OBLIGATION`) and the statute in the operator's words. An erasure erases everything else, keeps\nthose rows retained and hidden from any other processing until their statutory period ends, and lists\neach one with its ground and end date — which is what the notice must say: that some records are kept\nbecause the law requires it, which law, and that they are deleted when the period ends. The\n`retention-rules` fact names these resources and their statute under each erasure treatment. Never write\nthat an erasure is refused or delayed because of them.\n\n**A statutory record whose `statutoryRetention` carries `staysInUseBecause` is NOT hidden.** Billing records are the\nworked case: a provider keeps reporting on them, so they stay in use and an erasure leaves them as they are. For such a\nresource, state the law and the period, and say the records stay in use for the reason the fact gives. Never write that\nthey are restricted or hidden from other processing.\n\n**Derives from (the HOW LONG)** — the application's `dataRetention` schedule, declared in its config\nover five data classes: `RESOURCE_DATA` (its records), `FILES` (uploaded bytes), `AUDIT_LOGS` (the\ntamper-evident trail, kept longest and for a different reason — it is the evidence an operator may\nlawfully retain under GDPR Art. 17(3)), `OPERATIONAL_LOGS`, and `BUSINESS_RECORDS` (records a statute\nrequires to be kept for a minimum period). Each declared class carries a period in days AND the\noperator's stated reason for it.\n\n**Enforced where a resource is BOUND** — a resource declares `retentionBinding: { retentionClass,\nstartPoint }`, and the retention sweep deletes its rows once the period has passed since the start point\n(the account closing, the record closing, its creation, the end of its calendar year). The period is\ncounted from when the record stops being needed, so a live record is never deleted for its age. The\n`retention-rules` fact names, per class, the resources bound to it and the MECHANISMS that act on it:\n`RETENTION_CLASS_SWEEP`, `FILES_CLEANUP` (file bytes after their row is gone), `AUDIT_ARCHIVAL`. An EMPTY\nmechanism list means nothing is even wired to enforce the class — say exactly that. `AUDIT_ARCHIVAL` means the audit\ntrail is archived after the period and is NEVER deleted: do not write that audit records are deleted.\n`rowLifetimes` says what ends every resource's rows, so a clause can state the CRITERIA where there is no period. Law\nallows either the period or the criteria that determine it, so \"kept while the account exists, then deleted\" is a true\nand sufficient answer. Word each one as what it is:\n\n| `lifetime` | what to write |\n|---|---|\n| `class_period` | the declared period of its class |\n| `row_expiry` | deleted automatically after a set time; the fact does not carry the time, so mark the time as owed |\n| `ends_with_tenant` / `ends_with_account` / `ends_with_parent` | kept while the organisation, the account or the parent record exists. Where `erasureTreatments` names the resource, say what that treatment does at the end instead of saying deleted |\n| `dedicated_mechanism` | removed once it has served its purpose; do not state a period |\n| `follows_system_of_record` | a copy kept in step with its source: the source's rules decide how long, so point there |\n| `audit_trail` | archived at the audit period, never deleted |\n| `file_cleanup` | the `FILES` period, counted from the file's release |\n| `not_stored_locally` / `rows_owned_by_another_resource` | say nothing of its own: it holds no separate copy |\n| `operator_configuration` / `no_personal_data` | it declares no personal data of its own, so there is no period to state for it |\n| `undecided` | listed again in `resourcesWithUndecidedLifetime`: nothing ends these rows, so mark how long they are kept as owed, never a period and never \"until erased\" as if someone had decided that |\n\nThe remedy for `undecided` is a `retentionBinding`, or an owner whose deletion deletes the row. A bare \"as long as\nnecessary\" is never an answer.\n\n**Whether a period IS enforced is a different fact** — `retention-enforcement`, computed from the records the\nretention sweep writes on every run (runtime evidence, not a declaration). Per declared class it reads\n`ENFORCED` (every bound resource shows a recent completed or deferred run), `DECLARED` (a period nothing has\nyet been shown to apply) or `FAILING` (the latest run of a bound resource failed). Say a period is enforced\nONLY where it reads `ENFORCED`, and as of its `observedAt` — and only for the resources bound to the class:\n`mechanismsNotEvidencedByTheseRecords` names what the records cannot see (the audit trail's archival, the files\ncleanup), so never write that the audit trail's or the files' retention is evidenced by this fact. A mechanism in `retention-rules` says the sweep\nWILL act; only this fact says it did. When the fact is absent the records were not collected: say enforcement\nis not yet evidenced, never that it is not happening.\n\nThe classes are the STORES on purpose: the same declaration answers what a notice must state and what\na backup-and-restore inventory must protect (issue #8).\n\n**The `retention-rules` fact is COMPUTED from both** — the declared periods with their reasons and\nmechanisms, the classes with no period, each resource's declared erasure treatment, the resources\ndeclaring none, and the resources bound to no retention class.\nYou never declare it.\n\n**State what an account holder's erasure DOES, not what a resource declares.** A declared treatment is\nwhat an impersonalization of the rows WOULD do; whether a person's erasure runs one depends on the edges\nit walks and on the framework's own erasure steps. So each treatment carries `accountHolderErasure`:\n`erasedAsTheSubject` (the person's own account rows, scrubbed by their declared mode), the `dispositions`\nthe erasure applies to rows below them (`delete`, `impersonalize_and_retain`,\n`restricted_under_statutory_retention`), the `severerTreatments` its steps apply to rows off those edges\n(an id removed, a membership impersonalized, an invoice's document links removed), and\n`rowsKeptAsTheyAre` when it runs nothing. Two lists name the gaps a notice drafted from declarations\nwould get wrong: `keptAsTheyAreByAnAccountHoldersErasure` (never describe them as scrubbed by a person's\nerasure: billing records are the usual case, kept whole as business records) and\n`changedByAnAccountHoldersErasureWithoutDeclaredTreatment` (changed or deleted although they declare\nnothing). The scope is an ACCOUNT HOLDER's erasure: a record of a person without an account (a CRM\ncontact, a lead) is erased as its own subject, and that erasure applies its declared mode, so say both\nwhen such a record is in the first list. A tenant's deletion is a separate mechanism, not described\nhere. When `accountHolderErasure` is absent the execution could not be derived; say only what is\ndeclared, worded as a declaration. It is absent when no schedule is declared, because a treatment alone would read as\nthe whole answer.\n\n**Completeness** — `DERIVED` for the treatment, and for each retention class the application HAS\ndeclared. `NEEDS_DECISION` for each class it has not: the mechanism exists, so what is missing is an\noperator's decision rather than an engine change. Do not let the derivable half hide the missing one —\na statement about erasure mechanics reads to a reader as an answer about retention, so both go in the\nsame breath.\n\n**What closes it** — the operator deciding a period, and saying why. Not a framework change: issue #89\ndelivered the declaration surface, so an undeclared class is now an unanswered question rather than an\nunaskable one.\n\n**An UNDECLARED class is not \"kept indefinitely\" and not \"deleted immediately\".** It is a decision\nnobody has taken, and the document must say exactly that.\n\n**A legal hold suspends every deletion of its scope** — the retention sweep, an erasure, the tenant purge,\nfile bytes — until the tier that placed it releases it (`legalHolds`). The notice may say that data is kept\nbeyond its period while a legal claim, an investigation or a legal obligation requires it, and that it is\ndeleted once that ends. Never write that a hold expires, and never name a matter.\n\n**Never write a placeholder period.** \"Typically 12 months\" in a published notice is a commitment\nnobody made and nothing enforces.\n\n\n### Concern: recipients and processors\n\n**Asserts** — who else receives personal data, in what role, and where they process it.\n\n**Derives from (who receives)** — the RECIPIENT POPULATION, which your brief renders under *\"Who\nRECEIVES data, by whose account reaches them\"*. It is computed by `computeRecipientPopulation`\n(`@wildo-ai/saas-specifications/application-creation`) from the configuration and a scan of the\napplication's source, and the privacy notice's recipients fact and the assurance evidence read the SAME\npopulation, so none of them can disagree with the others. Every provider declared under a runtime scope\n(`backend`, `frontendServices.<service>`, `minions.<minion>`, `workers.<worker>`) and every\n`systemsOfRecord` instance lands in exactly ONE of four classes:\n\n| Class | What it means | What the document does with it |\n| --- | --- | --- |\n| **OPERATOR-RUN** | an explicit `SELF_HOSTED` compliance choice | processing under the operator's own control — never a recipient |\n| **OPERATOR SUB-PROCESSOR** | some data path spends the APPLICATION's own account (an engine capability, a wired capability role, a typed client, a browser operation, a system of record) | the operator's recipient; it belongs in the processor register |\n| **TENANT RECIPIENT** | reachable ONLY through a customer's or a person's own connected account | the customer's own vendor, reached at the customer's instruction. Never the operator's sub-processor; you may say a customer can connect its own account |\n| **DECLARED, NO DATA PATH** | configured, and nothing in the application reaches it | receives nothing. Never name it as a recipient; the gap is the declaration itself |\n\nAn engine capability is ONE data path, not the definition of a recipient: a catalogue vendor called\nthrough its typed client receives data with no capability at all, and a vendor declared \"to exercise the\nloading chain\" with nothing calling it receives nothing. The tenant class matters most when the operator\nis a PROCESSOR for the data: listing a customer's own vendor as its sub-processor states an engagement the\noperator never made. The function and its limits are in the `compliance-document-authoring` skill's\n`references/framework-recipient-population.md`.\n\n**Derives from (the identities)** — the application's PROCESSOR REGISTER, which your brief renders\nunder *\"Who else processes personal data\"*. Per entry: the processor's **legal entity**, the\n**regions** it processes in, and its own **subprocessors** with their regions.\n\n**The register holds two kinds of entry and the brief labels them differently — say which.** A\nCONFIGURED PROVIDER entry joins to the application's composition, so it can be checked against it: a\nclaim about a provider the application does not configure is detectable, and a configured provider\nwith no entry is reported as UNDECLARED. An AUTHORED entry — a hosting company, a CDN, a support desk\n— joins to nothing, because no configuration mentions it. The framework can neither confirm it nor\nnotice its absence.\n\nBoth kinds of declared relationship can belong in the notice when their role is established. What\nmust not happen is presenting the second with the authority of the first: an authored entry is the operator's word, and a document that reads\nas though the framework verified it overstates what anyone checked.\n\n**A SELF-HOSTED provider is not a recipient either, and this is the second way to get the section\nwrong.** The brief's *\"Who RUNS each bound provider\"* block splits the members the OPERATOR answers\nfor (operator sub-processors and operator-run) three ways:\nTHIRD-PARTY RECIPIENTS (vendor-hosted, so data reaches a third party — enumerate these with their\nregion), OPERATOR-RUN (self-hosted, so no third party receives anything — state them as processing\nunder the operator's own control, never as recipients), and UNANSWERED.\n\nAn UNANSWERED provider is bound to a runtime with no declared deployment model. **Do not assume\nvendor-hosted.** It looks like the cautious reading and it is not: it publishes that a person's data\ngoes to a third party when nobody said so. Report it as not established, and name the surface —\n`providerComplianceChoices` in `wildo.saas.config.ts`.\n\n**A provider PROFILE is not a recipient.** The brief separates providers BOUND TO A RUNTIME — backend,\ncompanion, workers, minions, a frontend service, which can process the application's data — from\nprovider profiles with no runtime binding. A profile says how to reach a provider; build-time tooling\nlives there, and a coding agent operating on the workspace receives no customer records. Never name a\nprofile-only provider as a recipient. Naming one reads as caution and is a false statement about\nsomebody's data, exactly like omitting a real one.\n\nThe section joins the register to the OPERATOR SUB-PROCESSORS of the recipient population, so it tells\nyou these different things and they are not interchangeable:\n\n- a candidate WITH an entry — its declared identity and regions are available. Establish its\n deployment role before presenting it as a recipient.\n- a candidate listed **UNDECLARED** — a runtime binding has no matching processor entry. Name its\n configured function and unresolved declarations; an unanswered deployment choice remains unknown,\n not automatically vendor-hosted. `NEEDS_DECISION`, resolved by the operator.\n- a provider entry listed **STALE** — no data path reaches it from this operator any more.\n Reconcile the declaration and deployment choice; this check alone does not establish its actual\n historical processing or that all external data has been removed.\n- a provider entry listed **REGISTERED TENANT RECIPIENT** — the register names, as the operator's\n sub-processor, a vendor reached only through customers' own accounts. That entry is a false\n statement about who engaged the vendor; do not publish it as one of the operator's processors.\n\n**Completeness** — `DERIVED` per provider that is declared, `NEEDS_DECISION` per provider that is not.\nNot `NEEDS_FRAMEWORK` any more: issue #88 delivered the declaration surface, so an undeclared processor\nis an unanswered question rather than an unaskable one.\n\n**Never infer a region from a vendor's brand.** \"It is a US company\" is not a processing location, and\na transfer statement built on it is a claim about somebody's data made from a guess.\n\n**Distinguish the register declaration from its reconciliation.**\n\n| Observed state | What it establishes | What the document may say |\n| --- | --- | --- |\n| Register absent | No processor declaration was supplied | The operator has not established the register; do not infer recipients or their absence |\n| Register present with `processors: []` | The operator declares no processors | Report that declaration, then check it against runtime-bound recipient candidates; it is not independent proof that nobody receives data |\n| Recipient candidates have no matching entries, including with an empty register | The composition and declarations leave named questions unresolved | Identify the configured functions and outstanding deployment, identity or location decisions without inventing third parties |\n\nReconcile only operator sub-processors. Exclude operator-run, tenant-recipient, unreached and\nprofile-only providers; keep unanswered deployment choices visible as unanswered. `registerEstablishesNoProcessorRecipients`\nanswers the declaration question; `undeclaredProcessorRefs` answers candidate coverage. A true answer to\nthe first does not erase gaps returned by the second.\n\nName third-party recipients only when their role is established. An empty register does not justify\nan unconditional statement that third parties provide email, storage or payments. Equally, do not\nomit unresolved candidate questions and thereby imply that absence was verified. Authored recipients\nremain operator declarations whose completeness cannot be inferred from runtime bindings.\n\n\n### Concern: international transfers\n\n**Asserts** — whether personal data leaves its origin jurisdiction, to where, and under which transfer\nmechanism.\n\n**Derives from** — the processor register's regions, at BOTH levels: each declared processor and\neach processor's own subprocessors. Your brief renders them under *\"Personal data reaches processors\nin: …\"*.\n\nBoth levels, because the chain is what makes a transfer statement hard. An operator in France using a\nFrench vendor that runs on a US cloud HAS a transfer, and reading only the vendor's region misses it.\n\n**The question has three inputs, and the framework derives only one of them.** Where declared\nprocessors process is declared. Which jurisdiction is the ORIGIN is `operatingJurisdictions`. Which\nMECHANISM makes a given transfer lawful is a legal determination with a shelf life — adequacy decisions\nmove by court ruling — so the framework never computes it: the operator RECORDS it, per register entry,\nas a `transferDetermination`:\n\n- `NO_TRANSFER`, with the reason none of the entry's regions lies outside the origin jurisdictions —\n regions are free text, so this comparison is the operator's and never the framework's;\n- `TRANSFER`, with one safeguard per origin jurisdiction: the GDPR Chapter V mechanism\n (`ADEQUACY_DECISION`, `STANDARD_CONTRACTUAL_CLAUSES`, `BINDING_CORPORATE_RULES`,\n `APPROVED_CODE_OF_CONDUCT`, `APPROVED_CERTIFICATION`, or a `DEROGATION` naming its Art. 49 ground) and\n the instrument a reader could look up.\n\nThe determination sits on the ENTRY because the processor's own contract binds its onward transfers to\nits subprocessors; reaching the processor is the transfer the operator answers for.\n\n**The `international-transfers` fact is COMPUTED from those determinations** — you never declare it.\nIt carries each determined entry, the origin jurisdictions, `undeterminedRecipients` — a register entry\nwith no determination, or a configured provider the register does not establish — `safeguardGaps`:\na declared origin a TRANSFER names no safeguard for — and `operatorHostingRegions`: where the operator's\nOWN infrastructure holds the data (`operatorComplianceIdentity.hostingRegions`), or `null` when the\noperator has not declared it. State a `null` as the operator's hosting location not yet being declared;\nit never means the data is held nowhere, and it never supports \"no international transfer\".\n\nIt also carries `dataResidency`: the places the operator commits the data to\n(`operatorComplianceIdentity.dataResidency.territories`), and for each vendor-hosted provider its chosen\nregion, the places that region processes in, and a `status` (`inside`, `outside`, `territory-unknown`,\n`no-established-profile`). State the territories from this value, never from prose. `null` means no\nresidency is declared: say the service makes no residency commitment rather than naming a region.\n`providers: null` means the providers' profiles were not read, so state the commitment without claiming\nevery vendor keeps it. A configuration with any status other than `inside` or `inside-at-rest` is\nrefused by `wildo config sync`, so a landed application normally shows only those two.\n\n`storedAtRestTerritories` is a second, weaker promise the operator may opt into: a vendor whose region\nkeeps the data in those places and processes it elsewhere. Such a vendor has status `inside-at-rest` and\ncarries `storageTerritories`. Name it and say exactly that: the data is stored in those places, and it is\nprocessed elsewhere. Never write that it processes inside the residency, and never fold it into a sentence\nabout the vendors that do. `storedAtRestTerritories: null` means the operator made no such promise.\nWhen the entry carries a `storageCondition`, the storage holds only on that account arrangement (an add-on, a\nplan, a subuser, data created after residency was set up): state it beside the places, in the vendor's terms,\nso the reader sees what the promise rests on.\n\n**Completeness** — do not round any state up.\n\n| the register | what you may state | completeness |\n|---|---|---|\n| ABSENT | nothing — where data lands is unknown, and the fact is absent | `NEEDS_CONFIGURATION` |\n| a recipient in `undeterminedRecipients` | that its transfer position is not determined; never fold it into \"no transfer\" | `NEEDS_DECISION` for that recipient |\n| declares NO processor | no personal data reaches a third party, so none is transferred THROUGH one | `DERIVED`, with the residual stated |\n| a determined entry | its transfer with the safeguard per jurisdiction, or NO_TRANSFER as such | `DERIVED`; a `safeguardGaps` entry is stated as a transfer with no safeguard recorded for that jurisdiction |\n\n**The residual is not optional wording.** \"No processor receives personal data\" establishes nothing\nabout the operator's OWN processing — its infrastructure, its staff, its own establishment. A document\nthat says \"we do not transfer data internationally\" on the strength of an empty register has answered\na larger question than it was asked.\n\n**What closes an undetermined entry** — the operator researching the vendor's data processing\nagreement and recording what it relies on, per origin jurisdiction. A vendor's DPA usually names it:\nstandard contractual clauses for EU data, the UK Addendum to them for UK data, and sometimes a\ncertification under an adequacy framework beside them. Record what the contract says, not what is\ntypical.\n\n**\"We do not transfer data internationally\" is a claim, not a default.** It may be true, and it is\ncitable when an application has declared it as a fact — but it must never be produced because nothing\nsaid otherwise. Absence of a region declaration means the region is unknown, which is the opposite of\nknowing it stays put.\n\n\n### Concern: automated decisions and AI\n\n**Asserts** — where the application uses AI, on what data, and whether any of it decides something\nabout a person.\n\n**Derives from — the computed fact `ai-use-inventory`.** Nobody declares it: the runtime computes it\nfrom the application's AI-use declarations whenever facts are read, so it never goes stale the day an\nagent is added. Per AI use of the CONTRACTED SERVICE, at the capability (`aiUsePosture`) or on the agent\nthat runs it (`aiUse`), it states:\n\n- the purpose, the use `domain`, and the `consequence` — `NO_DECISION` / `ASSISTS_HUMAN_DECISION` /\n `DECIDES_AUTONOMOUSLY`;\n- the human review: the declared arrangement, or `derivedFromApprovalGates` where every tool the agent\n can change something with waits for a person's approval (`ungatedWriteToolRefs` lists any that do not).\n When `unresolvedToolRefs` is non-empty the derived review covers only the tools the reading could see:\n say so, and do not present the gates as covering the agent's every action;\n- the providers that serve it, with the legal entity and processing regions the processor register\n establishes (`onProcessorRegister: false` means the register does not name it — say so).\n\nIts gaps are part of the answer, never a reason to stay silent: `undeclaredCapabilities` and\n`undeclaredAgentRefs` (AI the service runs with no declared use), `domainOwedRefs`, and\n`invalidDeclarations`. State each as not yet established.\n\n**The regulatory reading follows jurisdiction.** `regulatoryScope` says which: `EU_AI_ACT` — each use\ncarries an `aiActReading` with its CANDIDATE class; `NO_AI_REGULATION_REACHES` — no AI regulation the\nframework reads applies where the application operates, so describe no use in the AI Act's terms;\n`JURISDICTION_NOT_DECLARED` — the application declares no operating jurisdiction, so the class is owed. Under `EU_AI_ACT`, a `HIGH_RISK_CANDIDATE` or `PROHIBITED_PRACTICE_CANDIDATE` carries\n`notSupportedYet: true` and is listed in `highRiskCandidateRefs` / `prohibitedPracticeCandidateRefs`:\nstate it as a candidate and as not supported yet, never as compliant, and never leave it out.\n\n**Not applicable is an answer.** When no AI capability reaches the contracted service the fact is\nNOT_APPLICABLE, and its reason says so — the service performs no AI processing, a positive, checkable\nstatement. Capabilities that serve only the build (`AI_CODING_AGENT`, or one offered only by the\ncompanion scope) are named there and in `authoringOnlyCapabilities`, outside this document: do not deny\nthey exist, and do not describe them as a feature of the service.\n\n**When the fact is absent** the declarations could not be read. Mark the clause owed; do not describe\nthe application's AI from the brief or from memory.\n\n**Whether the guardrails RAN is a second fact** — `ai-content-guardrails`, computed from the records the\nevidence plane collected (runtime evidence, not a declaration). Per agent of the contracted service it\nstates what the agent DECLARES (its personal-data treatment, prompt-injection screening, output\nmoderation) and, per guardrail, an `observation`: `RAN` (at least one recorded verdict in the window),\n`NO_RUN_RECORDED` (the agent has records and none carries a verdict — screening has nothing to judge on a\ncall that read no tool result) or `NO_OPERATION_RECORDED` (the window holds no record of the agent; not\n\"never called\", since a call whose record failed to write is counted in `callsWithoutOperationRecord` for\nno agent). `RAN` is not \"runs on every call\". State two things, as of the fact's window: the calls the\nguardrail was ACTIVE on (`treatedOperations`, `screenedOperations` or `moderatedOperations` of the agent's\n`operations`), and what it JUDGED (`fieldsWithheld`, `screenedResults`, `judgedOutputs`). Active is not\njudged: screening switched on for a call that read no tool result judged nothing, and the observation then\nreads `NO_RUN_RECORDED`. Say it ran only where the observation reads `RAN`. The guardrail audit-event counts beside it\ncount outcomes (content quarantined, output withheld, a failed check), application-wide, not per agent; a\nquiet audit trail is never evidence that a guardrail ran. A count is stated only when its `standing` is\n`COUNTED`: `UNCONTROLLED` (the collector's control found no row of any kind in the window) and\n`NOT_COLLECTED` carry `null`, which is never zero. When the fact is absent the records were not collected: say\nthe guardrails' operation is not yet evidenced, never that they are not enforced. An organization's agent\npolicy can tighten a guardrail at run time; a run it switched on shows here as `RAN` on an agent that\ndeclares none.\n\n**Completeness** — `DERIVED` for what the facts state; `NEEDS_DECISION` per use listed undeclared or with\nits domain owed. Never `NEEDS_FRAMEWORK`: the framework provides the declaration, so an undeclared posture\nis an unanswered question rather than an unaskable one.\n\n**An undeclared AI use is not a harmless one.** This is the one concern where silence is more\ndangerous than elsewhere: a notice describing AI use and saying nothing about consequence does not read\nas \"unknown\", it reads as \"nothing significant happens here\" — which is the exemption, claimed for\nfree. State the gap explicitly.\n\n**Why the distinction carries weight.** Automated decision-making with significant effects attracts\nspecific obligations — information about the logic, and a right to human intervention. A generated\nnotice must not silently claim the exemption by describing AI use without addressing consequence. The\nhonest statement says AI is used for these functions, and that whether any of it decides something\nabout a person is not yet established.\n\n\n### Concern: analytics and tracking\n\n**Asserts** — what is observed about how people use the service, and what a person's consent controls.\n\n**Derives from (partial)** — the observability and analytics capabilities the application has\nconfigured (`FRONTEND_PRODUCT_ANALYTICS`, `LLM_OBSERVABILITY`, `OBSERVABILITY_TELEMETRY`), together\nwith the consent posture: `analytics.requiresConsent` and each person's `privacy.consentedPurposes` make\n`ConsentPurpose.ANALYTICS` a real, enforced boundary rather than a stated intention — in the application,\nwhere a product-analytics provider starts only on the signed-in person's grant and is stopped on\nwithdrawal or sign-out, and on the marketing website, where one does not start until a visitor grants it.\nA consent-based provider must be stoppable in the page, so none is loaded as a `<script>` tag.\n\n**Derives from (the inventory)** — the CLIENT STORAGE section of your brief: each cookie and storage\nkey, its mechanism, purpose, necessity and lifetime, split by who sets it.\n\nThe FRAMEWORK's own entries are listed first and belong in every application's table — the cookies\n`__wildo_refresh` and `__wildo_anon_session`, strictly necessary, with lifetimes taken from the\napplication's session configuration, and the website's `__wildo_website_consent` storage key, strictly\nnecessary because it is what makes a visitor's refusal hold. **No application authored these and every application sets them**, so a table\nbuilt only from what the application declared would omit the session cookie, which is the entry a\nvisitor is most certain to have.\n\nThen, per frontend surface: its declared entries, an explicit \"sets nothing of its own\", or\nUNINVENTORIED.\n\n**UNINVENTORIED is not \"sets nothing\".** The first says nobody catalogued that surface; the second is a\npositive statement. Writing the second from the first tells a visitor they are tracked by less than they\nare, which is the under-reporting direction a notice must never fail in.\n\n**Completeness** — `DERIVED` for the capability and consent posture, and for each surface that IS\ninventoried; `NEEDS_DECISION` per uninventoried surface. Not `NEEDS_FRAMEWORK` any more: issue #91\ndelivered the declaration surface, so an uninventoried surface is an unanswered question rather than an\nunaskable one.\n\nSay both halves: which analytics are in use and what consent gates them (strong, derived, enforced), and\nwhat the table still lacks — naming the surfaces, not the concern.\n\n\n### Concern: subject rights\n\n**Asserts** — which request mechanisms the application configures, what they select and what their\nresults establish. A configured mechanism does not establish that a particular request was fulfilled.\n\n**Derives from**\n\n- `SubjectExportPurpose.ACCESS_ART_15` and `PORTABILITY_ART_20` — two selections over the declared\n subject relationships. Access includes eligible owned rows and non-owned rows referring to the\n subject. Portability applies narrower relationship and field-provenance selection. Neither is an\n unrestricted recursive export of everything reachable from an account.\n- Each participating resource's `systemAccessPolicy.exportSubject` — an explicit disclosure choice,\n checked before collection. Missing and forbidden are different decisions:\n\n| Declaration | Runtime result | Meaning for the request |\n| --- | --- | --- |\n| Absent on a participating resource | Refuses collection | A required disclosure decision is unanswered; no silently incomplete bundle is returned |\n| `ALLOWED` | Passes this disclosure gate | Relationship selection, system-read admission, field security and purpose-specific checks still apply |\n| `FORBIDDEN` on a dependent resource | Excludes that resource and records the reason | A deliberate exclusion; do not change it to ALLOWED merely to remove a reported omission |\n| `FORBIDDEN` on the subject's own resource | Refuses the bundle | The subject cannot be omitted from its own export |\n\n- `portabilityPolicy.defaultProvenance` and per-field `.portabilityProvenance(...)` — the field\n declaration overrides the resource default. `SUBJECT_PROVIDED` and `OBSERVED` values are eligible\n for portability; `DERIVED` values are excluded and reported. Unresolved provenance refuses\n portability collection rather than silently dropping fields. Explicitly forbidden resources do\n not need portability provenance for this export because their rows are not collected. Access uses\n its separate field selection; backend-only and write-only fields remain withheld.\n- Erasure: `eraseSubjectAsSystem(resourceType, rowIds)`. For a person with an account, the engine's\n `dataSubjectRequests` resource is the request workflow every application already has: the person files\n an erasure request from their settings (or an operator records one received elsewhere, with a\n justification), it waits out a 14-day grace window during which it can be withdrawn, carries a\n `respondBy` deadline one calendar month after receipt, and an hourly sweep calls the erasure and records\n the outcome and receipt on the request, which is kept as evidence. Do not build a second lane beside it:\n the evidence collector refuses an application in which two resources declare a `subjectErasureLane`. A\n contact or lead without a login can still be a data subject; that request is the operator's to record\n and carry out. Retention, relationship\n treatments and account linkage are separate declarations; inspect the receipt before claiming\n completion, including dependent execution, sessions (`isSubjectErasureSessionRevocationComplete`: resolving a\n principal is not ending their session), incomplete external effects and `unconfirmedSeveredReferences`, the rows a\n severance write did not answer for.\n\n**The rights a notice states are COMPUTED, in the `rights-and-complaint-route` fact.** Which rights\napply, and where a person may complain, are the law of the regime each `operatingJurisdictions` entry\nfalls under, conditioned on the declared lawful bases: portability only for purposes resting on consent\nor contract, objection only for public task or legitimate interests, withdrawal of consent only where\nconsent is the basis. The channel is `privacyContact`; the verification step is the operator's\n`subjectRequestIdentityVerification`; who answers comes from `roleAllocations` — the operator for data it\ncontrols, the customer (with the operator forwarding and assisting) for data it processes on a\ncustomer's behalf. Two regimes are known: the EU GDPR and the UK's. Their rights match article for article but their\ncomplaint routes do not — since 19 June 2026 a UK notice names a complaint to the operator itself\n(Data Protection Act 2018 s.164A, acknowledged within 30 days) and to the Information Commissioner\n(s.165(2)), and never GDPR Art. 77. State each regime's route from the fact, not from memory. A\njurisdiction no known regime reaches is named in `jurisdictionsWithoutKnownRegime`: state that its\nrights are not established here, never borrow another regime's words for it.\n\n**Completeness** — derive the configured posture from actual resource declarations and the selected\nrelationships. Describe an unresolved declaration as a configuration refusal, an explicit exclusion\nas an exclusion, and an observed request outcome from its report. Declarations alone are not runtime\nproof that a right has been fulfilled.\n\n**What resolves a missing declaration** — the owning resource explicitly declares ALLOWED or FORBIDDEN\naccording to its intended disclosure policy. Portability additionally needs a valid resource default\nor field-level provenance for the fields it would collect. Do not ask a notice author to replace a\nmissing product declaration with a free-text promise.\n\n**Never state** that an undeclared participating resource is merely omitted while the remainder is\nexported. The runtime refuses collection. Preserve deliberate exclusions and explain their recorded\nreasons; the application's request workflow owns verification, protected delivery and any necessary\nfollow-up.\n\n\n### Concern: data exit\n\n**Asserts** — what a customer gets back when they leave, in what form, and what happens to what\nremains.\n\n**Derives from** — `SubjectExportPurpose.PORTABILITY_ART_20` and the resources declaring\n`exportSubject`; the account-closure path; and each resource's `retentionPolicy.mode`, which decides\nwhether a record is removed or **retained and impersonalized** on erasure.\n\n**Completeness** — `DERIVED` for the mechanism.\n\n**Retained-and-impersonalized is the part a reader must not be surprised by**, and the part a\ngenerated document most often gets wrong by omission. A retained row is kept, frozen, hidden from\nnormal reads and reachable only through an audited privileged path — it is not deleted. Say so. A\nnotice that implies everything is erased, when financial and audit records are lawfully retained with\ntheir personal fields scrubbed, is inaccurate in the direction that damages trust when discovered.\n\n**How LONG anything is retained is not derivable** — see the retention-and-deletion fragment.\n\n\n### Concern: tenancy model\n\n**Asserts** — that customer data is separated per organization, and where the boundary between the\noperator's responsibilities and the customer's lies.\n\n**Derives from** — the `ORGANIZATIONS` engine capability, the organization scoping applied to every\ntenant-scoped resource, and the cross-tenant admission rules. Ordinary tenant crossings must be\ndeclared and carry a usable access grant. The application audit viewer is a separate policy surface:\nit follows `auditTrail.applicationReadAccess`, which defaults by the application's shape:\n`AuditApplicationReadAccess.INDEPENDENT_APPROVAL` where the parties of one of its relationship kinds are independent of its operator, role-based\naccess (the super-administrator or the read-only audit-evidence reader) otherwise. Under independent approval a\nmachine reader needs a second-signed grant bound to its own credential. Both modes retain cross-tenant read observations;\nrole-based access neither implies anonymized records nor supplies an approval that never occurred.\n\n**Completeness** — `DERIVED`.\n\n**This fragment is where shared responsibility is described, and it must never be flattened.** In a\nB2B SaaS the operator is a PROCESSOR for the data a customer stores about its own people, and a\nCONTROLLER for the data it holds about the customer's users as account holders. Those are different\nroles with different duties over the same database. Say which is which; do not pick one and apply it\nto everything.\n\n**The attribution has a home now.** `operatorComplianceIdentity.roleAllocations` in\n`wildo.saas.config.ts` carries one role per population of data — PROCESSOR for the records a customer\nstores about its own people, CONTROLLER for the account data of the people who administer them. It is\na LIST for exactly the reason this fragment gives: those are different roles over the same database,\nand a single field would force one of them to be wrong.\n\nWhere the attribution is not established, that is a `NEEDS_DECISION` — never a guess — and the\nsurface to name is `roleAllocations`. Not `NEEDS_FRAMEWORK`: there is somewhere to write the answer,\nso the remedy is to fill it in rather than to build something. See the legal-basis fragment.\n\n\n## `document:public.service-terms` — six concerns\n\n### Concern: service scope\n\n**Asserts** — what the service actually is: the modules it runs, the resources it manages, and the\nsurfaces it exposes.\n\n**Derives from** — the application's declared modules and their resources, and the surfaces it builds\n(application, API, public website, technical documentation).\n\n**Completeness** — `DERIVED`.\n\n**Derive it; do not describe the product from its marketing.** Scope in a governed document is the\nboundary of what the statements around it apply to, so an aspirational description silently widens\nevery other clause. The declared modules are the honest boundary, and a capability the application\ndoes not run does not belong here even if it is on the roadmap.\n\n\n### Concern: commercial terms\n\n**Asserts** — what is sold, how it is charged, and what happens on renewal, change and cancellation.\n\n**Derives from** — the application's billing declarations\n(`saas-models` → `billing/billing-enums.shared.schemas.ts`): `ProductType`, `BillingTiming`,\n`ProrationBehavior`, `TaxCalculationMode`, plus the declared products and any usage metering.\n\n**Completeness** — `DERIVED` where billing is configured; `NEEDS_CONFIGURATION` where the application\ndeclares no products, in which case say that the commercial terms are not yet established rather than\ndescribing a plan nobody has authored.\n\n**Keep consumer and business audiences apart.** Consumer pre-contract obligations (withdrawal\nperiods, pre-contractual information) apply only when a declared audience includes consumers. A terms\ndocument that blends both into one ambiguous set is worse than one that states which audience it is\nfor — so read the declared audience before writing a single clause about cancellation rights.\n\n\n### Concern: governing law and liability\n\n**Asserts** — which law governs the agreement, where disputes are heard, and how liability is limited.\n\n**Derives from** — nothing. These are negotiated commercial and legal positions.\n\n**Completeness** — `NEEDS_DECISION`.\n\n**What closes it** — the operator deciding, with counsel. Note that liability limits interact with\nthe declared audience: consumer-facing terms cannot limit liability as freely as business-to-business\nones, so this fragment cannot be settled before the commercial-terms fragment establishes who the\nterms are for.\n\n**Never produce a liability clause from a template.** A limitation of liability that was copied\nrather than decided is either unenforceable or committing the operator to something nobody agreed —\nand unlike most gaps in a produced document, this one is not discovered until it matters.\n",
|
|
28
|
+
"guidance": "# Compliance document candidate method\n\nYou are drafting ONE governed document for this application, from what the application has already\ndeclared. Follow the `compliance-document-authoring` skill for the rules — its full text is in your\nbrief, under \"The skills this method tells you to FOLLOW\", because this step has no tools and cannot\nopen a file. This method says which document, what shape, and what the two closed vocabularies are.\n\n## Choose the document, from the two this lane may draft\n\n`documentRef` must be one of six and the contract refuses anything else, but only two of the six are\nYOURS. The four internal `governance.*` documents belong to `refinement.governance-document-candidate`,\nwhich ships their blueprints; drafting one here would mean writing a document whose obligations you were\nnever given.\n\n| `documentRef` | what it is | drafted by |\n|---|---|---|\n| `document:public.privacy-notice` | what personal data the application holds and what happens to it | **this lane** |\n| `document:public.service-terms` | the commercial and service relationship | **this lane** |\n| `document:governance.scope-system-description` | what the system IS, for an assurance reader | `refinement.governance-document-candidate` |\n| `document:governance.roles-responsibilities` | who is accountable for what | `refinement.governance-document-candidate` |\n| `document:governance.program-handbook` | how the governance program runs | `refinement.governance-document-candidate` |\n| `document:governance.document-record-control` | how governed documents are themselves controlled | `refinement.governance-document-candidate` |\n\n**Draft a document this application does not already hold.** The run tells you which those are: the\nbrief opens with what the application has already drafted, listing each document it may produce here\nas ALREADY DRAFTED or not yet drafted. Drafts are keyed by `documentRef`, so drafting one that is\nalready there REPLACES it — right when that draft is wrong, and a wasted run when it is not.\n\n**A held draft marked ALREADY DRAFTED, and WRONG comes before everything below.** The brief marks a held\ndraft that cites facts this application no longer declares, and names them. Nothing else corrects it: the\nlanding checks only the document a run writes, so a draft written before the facts were regenerated keeps\nits dead citations until a run redrafts that document. Redraft it against the facts that exist, and cite\nnone of the named ones.\n\nWhere several remain, the **privacy notice** comes first: it is the one every application holding\npersonal data needs. Where none remains, the honest reason to draft again is that a held draft is\nwrong — say which one and why in your own reasoning, rather than redrafting the first on the list.\n\nThis paragraph used to read \"draft the privacy notice unless the run tells you otherwise\", at a time\nwhen no run told it anything. Measured against a real application on 2026-09-16: with its privacy\nnotice already drafted, two consecutive runs meant to produce the service terms drafted the notice\nagain and replaced it, and the application finished each run holding exactly what it started with.\nThe second sentence was stale as well — it said the privacy notice was \"the only one whose facts the\ncurrent derivation supplies\", which stopped being true once the fact-declaring playbook began\ndeclaring the account, billing and AI facts the service terms rest on.\n\nNaming a document outside this set is not a smaller decision than it looks. Each of the six has a\nconcern composition the framework measures a draft against, so a seventh name is a document nobody can\nstate the gaps in — and stating the gaps is the whole point.\n\n## One section per concern, and SAY which concern\n\nEvery section carries `concernRef`, from the closed compliance-concern vocabulary. **The composition\nfor each document is inlined at the end of this method** — one entry per concern, saying what it\nasserts, what in the application it derives from, what state it usually reaches, and what closes it\nwhen it cannot. Draft one section per concern, in the order given, and produce **every** one:\na concern nothing can answer becomes a section with a marked clause, never a missing heading.\n\nThose entries are the difference between a draft that states its gaps and one that guesses at them.\nWhere a concern's entry names an issue number as the remedy, say so in `incompleteness.closedBy` —\n`#89`, `#91` — because a numbered issue is a remedy a reader can open, and \"application configuration\nowner\" is not.\n\nUse `concernRef: null` only for a section that genuinely answers no concern: a preamble, a contact\nblock. It is not a way past a concern you found hard. A concern you cannot establish gets a SECTION,\nwith a clause marked incomplete — which is the mechanism this whole document exists around.\n\nThe value must be the concern's exact name. A near miss (`retention` for `retention-and-deletion`) is\nworse than a null: it reports the concern as unaddressed while the document addresses it.\n\n\n## And SAY which required parts the section supplies\n\nEvery section also carries `satisfiesSectionRefs`: the refs, from the document definition rendered in\nyour brief, that this section actually addresses. This is a different question from `concernRef` and\nboth are answered — the concern says what compliance TOPIC the section is about, the satisfied refs\nsay what part of THIS document it supplies.\n\nYou are asked for the join because you are the only reader that holds both. The concern set is one\nflat vocabulary spanning every document type; the required parts are defined per document, and the\nsame concern does not sit under the same heading in a privacy notice and a governance handbook. A\nmapping written once in the framework would have to pick one answer and be wrong somewhere.\n\n- A section may claim several refs, and several sections may claim one between them.\n- A section that answers no required part — a preamble, a contact block — answers `null`. Not an\n empty list: `null` and `[]` would be two spellings of one state, and the contract refuses the second.\n- **Claim honestly.** A required ref nobody claims is reported as a part the document may not address,\n which is a true and useful finding. Claiming one you did not address hides that, and nothing\n downstream reads your prose to catch it.\n\nDo NOT adopt the definition's refs as your own `sectionRef` values. Your section set is the concern\nrule above; these are a claim you attach to it, not names you take.\n\n**Clauses carry the same claim**, as `satisfiesClauseRefs`, and answer `null` the same way. Your brief\nlists the blueprint's clauses under each section, each marked REQUIRED or CONDITIONAL; name the ones\nyour clause supplies.\n\nBoth keys were ASKED FOR HERE and absent from the strict contract you answer until 2026-09-02, so a\ndraft that followed this section could not parse and every landed document claimed nothing. If you\nare reading a document produced before then, its empty coverage is that defect and not a finding\nabout the document.\n\n- Several of your clauses may supply one blueprint clause between them, and one clause may supply\n several.\n- A clause supplying none — a transition, a heading gloss — claims none.\n- **Only the clauses marked REQUIRED are owed.** A CONDITIONAL clause is supplied when its condition\n holds and correctly omitted otherwise, so leaving one unclaimed is not a gap.\n\nThis is the anchor a clause did not previously have. A fact is named by the catalog and a section\ncarries its concern, so both survive a redraft; a clause was named freely and joined to nothing, which\nis why a reviewer who approved one could not find it in the next revision.\n## What a clause may say\n\nThe rule is ASSERT versus MARK, and the skill states it in full. In short: a clause may say \"this is\nnot yet established\"; it may not say something untrue.\n\n- `DERIVED` — established by a fact this application has declared. Cite it in `factRefs`. A `DERIVED`\n clause citing a fact the facts file does not declare is REFUSED before the write.\n\n **This is decided against the facts file as it stands NOW, not against any earlier draft.** You are\n producing the whole document from what the application currently declares, so a concern the facts\n answer today is `DERIVED` today — even if a previous version of this document marked it incomplete\n and is still in the tree. Re-running this playbook is how a document that went stale is repaired,\n and it only repairs anything if the re-draft is willing to close a mark.\n\n **Never fold a declared fact into a marked clause.** When one concern has a declared half and a\n missing half — retention periods declared while retention enforcement is not evidenced, a\n processor register that names most recipients while some providers have no recorded identity —\n write TWO clauses: a `DERIVED` clause stating what is declared, and a separate marked clause naming\n what is missing. A clause is marked as a whole, so one clause carrying both states nothing: every\n clause citing the declared fact is then incomplete, and the standing coherence report correctly\n records that the document mentions the fact without stating it. A redraft that marked its retention\n and recipients clauses because each also carried a gap stopped stating two facts the previous draft\n had stated.\n\n **A fact the application declared NOT APPLICABLE is a fact, and a clause may rest on it.** *\"No\n external analytics provider is configured\"* is `DERIVED`, not incomplete: the application settled the\n question and recorded the answer. Marking such a concern incomplete says the application does not\n know something it does know, which is as wrong as overstating. What is refused is citing a fact the\n facts file does not declare AT ALL.\n- `NEEDS_FRAMEWORK` / `NEEDS_DECISION` / `NEEDS_CONFIGURATION` — mark it, and say in `incompleteness`\n what is missing and who closes it. Four distinct suppliers, four distinct remedies; do not merge them.\n\n **When what is missing is a FACT, name it in `incompleteness.awaitingFactRefs`.** The skill argues\n this in full; the short version is that a marked clause asserts an ABSENCE in the application's own\n configuration, and that assertion goes false the moment someone declares the thing — silently, since\n nothing about the document changes. The awaited ref is what lets generation, landing and the\n standing coherence report all say the clause has gone stale. A clause that awaits nothing rots\n unobserved, and one already has.\n\n **`NEEDS_DECISION` and `NEEDS_FRAMEWORK` are the pair most easily confused, and the difference is\n the REMEDY.** `NEEDS_DECISION` means a surface exists and nobody filled it in — the reader goes and\n answers. `NEEDS_FRAMEWORK` means there is NOWHERE to record the answer; telling a reader to decide\n is telling them to write into a void.\n\n Measured on 2026-08-30, a produced notice marked operator identity `NEEDS_DECISION` when no surface\n for it existed at all, beside retention periods marked identically and genuinely just unfilled. Two\n remedies, rendered the same, and a reader could act on neither.\n\n **So every incomplete clause must NAME THE SURFACE its answer goes to**, or say plainly that none\n exists. A gap with a named surface is a task; a gap without one is a request for work nobody has\n scoped. The fragment you are working from names the surface where there is one — carry it into\n `incompleteness` rather than leaving the reader to find it.\n\n **`closedBy` must name WHO can reach that surface, and an ENGINE resource is not the application\n author's to edit.** `retentionPolicy`, `systemAccessPolicy.exportSubject` and `.dataCategories()`\n on an engine resource live in engine source. Writing \"application authors must declare\n `retentionPolicy` for each affected engine resource\" hands the reader a task they cannot perform —\n and a produced notice said exactly that, for 83 resources, in the same confident register as the\n remedies that ARE actionable. An unreachable remedy is worse than an unnamed one: it looks like\n work, gets scheduled, and fails when someone tries it.\n\n Where the closer is the FRAMEWORK, say so plainly — \"the framework must declare these on its own\n resources\" — and keep it separate from what this application owes.\n\nNever fill an unresolved fact, infer a legal decision, or describe the draft as approved, compliant,\nlegally valid, released or published. Locale and jurisdiction are review inputs; leaving them\nunresolved is a legitimate answer and never a reason not to draft.\n\n**And the mirror of that, which matters just as much: a missing approval never stops you.** Approval\nhappens at the END and is a human commit; a downstream release can be composed and MARKED\n`UNAPPROVED`. So the absence of one is a STATE to record, never a reason to produce nothing and never\nan outcome to report as blocked. The two failures are symmetric — claiming an approval that did not\nhappen, and refusing to act because it has not happened yet — and a compliance workflow standing in\nfront of the application-creation mechanism is the second one.\n\n## The refs you write, and their exact shape\n\nEvery `…Ref` field is a **namespaced ref**: `namespace:slug`, both halves lowercase, words joined by\nhyphens. `clause:retention-duration-not-declared` is one; `clause:Retention Duration` is not, and a\nwhole draft is rejected for a single malformed one. Ref ARRAYS are arrays of those strings — never\nobjects, never `{ ref: … }`.\n\nPer clause, all three ref arrays are required. Two of them may be empty, but **not both of the\nfirst two at once** — a clause that names no fact and no policy is sourced by nothing and is\nrejected:\n\n- `factRefs` — the facts this clause rests on, exactly as the facts file declares them. It may be\n EMPTY for a clause that establishes nothing (a marked clause often does).\n- `sourcePolicyRefs` — the application POLICY AREA the statement is sourced from, and nothing else.\n Every entry must be in the `policy:` namespace (`policy:retention`, `policy:recipients`,\n `policy:security-controls`); any other namespace is rejected outright. **Do NOT put a fact\n authority here.** A clause resting on declared facts already cites its authorities through\n `factRefs`, which resolves them — repeating them here duplicates the citation beside it and\n resolves to nothing. So this array is EMPTY for a fact-backed clause, and carries a policy area\n for a clause that is sourced from a policy rather than from a fact.\n- `claimGuardRefs` — at least one: what this clause must NOT be read as claiming. These are the\n boundaries you are already holding — `claim-guard:no-legal-applicability-claim`,\n `claim-guard:no-invented-retention-period`, `claim-guard:known-fact-only`. Name the ones that apply\n to this clause; do not repeat the same guard on every clause out of habit. You do not name the\n CATALOG's guard for the material: it is added for you from the blueprint clauses this clause\n `satisfiesClauseRefs`, so a clause that says what it satisfies is checked against it automatically.\n\n`evidenceRefs` is **`null` on every clause of a public document**, and that is not a gap to work around.\nIt cites a judged run from this application's own assurance repository — self-attested internal\nevidence — and a public notice may carry none, whatever the run says: a reader of one cannot weigh an\noperator's judgement of its own product, and any citation here is refused before the draft becomes a\nfile. That evidence belongs to the internal governance documents, which\n`refinement.governance-document-candidate` draws. Where you would have leaned on a measurement, say\nwhat is CONFIGURED or DECLARED, or MARK the statement.\n\n**One exception, and it is a fact, never a citation (decided 2026-11-06, #3343).** Two facts are computed by\nthe runtime from the application's own RECORDS rather than declared: `retention-enforcement` (whether each declared\nperiod was applied) and `ai-content-guardrails` (what each agent's guardrail was active on). A public clause MAY\nstate what such a fact shows, scoped to its observation: *\"as of 2026-11-05, the 30-day period was applied\"*, *\"in\nthe window 1–30 October, the screening ran on 45 calls\"*. That reports a record, not the operator's judgement, and it\nis more truthful than printing a declared period beside no word on whether it is kept. It stays a statement of\nthe fact, never an `evidenceRefs` citation; always carries the date or window; never generalizes beyond it (*\"runs\non every call\"*, *\"is always enforced\"*); and never reads a quiet window as having run or as not having run. Where\nthe fact is absent, say what is declared and that its operation is not evidenced.\n\n**The same holds when a FACT is phrased as behaviour, and that is where drafts go wrong.** The facts\nyou cite describe the product in the present tense — *\"the running application reaches\"*, *\"the\nframework sets\"*, *\"acceptance joins the member\"*, *\"kept 30 days, then erased\"* — which is accurate\nfor a fact and is an operating claim in a public notice (outside the records exception above). Do not carry the verb across: restate each as\na declaration (*\"the configuration enables\"*, *\"the framework declares\"*, *\"the configured membership\nmodel admits\"*, *\"the declared period is 30 days, after which the data is due for erasure\"*). The\njudge reads every clause of a public document for exactly this, and a sentence copied from a fact is\nthe one it finds.\n\n`reviewChecklistRefs` needs at least one (`review-checklist:<slug>`) — what a human must confirm before\nthis draft is worth anything. `limitationRefs` may be empty, but rarely should be: it is where you say\nwhat the document does NOT cover, in your own words as the drafter, rather than leaving the reader to\ndiscover it.\n\n## You do not compose the release — and a release nobody approved is marked UNAPPROVED\n\nYou draft the candidate. You do NOT author its release, and that is a boundary rather than an\nomission: almost everything a release carries is DERIVED from the accepted document definition — the\ndocument's class, who it addresses, which channels may carry it, which interactions it permits — and\na model restating those would create five ways to disagree with the catalog, invisibly. The rest\n(which declared variant, when it takes effect) is a composition over families you are not holding.\n\nA human declares a release DECISION in the application's\n`specifications/src/document-releases/compositions.ts`, and `wildo config document-releases` composes\neach decision not yet recorded — your candidate plus the declared variant and release policy — and\nrecords the finished release, text included. Nothing records a release because you landed a draft: an\napplication with no decision holds no release yet, which is a valid state and not yours to fix from\nthis playbook. Until a public document (privacy notice, service terms) has a release, its public page\nshows your latest draft, marked as a draft — so what you mark as not established is what a reader sees.\nWhat matters for your work is what composition produces when it runs: a release carrying\n`approvalState`, and one nobody has approved is `UNAPPROVED` and exists anyway.\n\n**Which is why a missing approval never changes what you do here.** Draft the document completely,\nmark every statement you cannot establish, and let the release be composed and marked. Waiting for an\napproval before drafting — or describing a draft as approved to get past the gate — are the two\nsymmetric failures, and the first is a compliance workflow standing in front of the mechanism that\nbuilds the application.\n\n## Where the draft goes\n\nIt lands as a FILE in the application's specifications package, as an ordinary working edit. It is\naccepted by a commit and by nothing else; who makes that commit is the host's autonomy posture, and\nonly a PERSON's commit is an approval. Landing is not approval, release or publication — and neither is\na commit the development companion authors under the YOLO posture.\n\n\n---\n\n# The compositions\n\nEach of the following is one document's full concern list. Use the one matching your `documentRef`\nand ignore the rest.\n\n## `document:public.privacy-notice` — thirteen concerns\n\n**Write for the audience the brief names.** The definition line in your brief says `audiences:`, and the\nvalue is derived from the application's line, never chosen by you. `PUBLIC_GENERAL` is the notice every\ncustomer-facing application publishes. `WORKFORCE` means one organization owns the application and its\nusers are that organization's staff (an internal tool): the brief then carries a section saying how that\nreader changes the scope, the purposes and bases, the recipients and the delivery of the notice. Follow\nit, and still take every basis and every recipient from the facts: the audience changes how you word\nwhat was declared, never what was declared.\n\n### Concern: operator identity\n\n**Asserts** — who legally operates the service: entity name, registered address, contact route for\ndata-protection questions, and a representative where one is required.\n\n**Derives from** — `operatorComplianceIdentity` in `wildo.saas.config.ts`: the legal entity, its\nregistered address, the privacy contact route, and an Art. 27 representative where one is required.\n\nThe VALUE is never derivable — a legal entity is a fact about the world, not a property of a codebase.\nWhat the framework provides is the PLACE to record it, and until 2026-08-30 it did not: this fragment\nsaid \"no engine change would close it\", which was right about derivation and wrong about the home.\nThe consequence was concrete. A landing REPLACES the produced document on every run, so an operator\nwho answered by editing the document lost the answer at the next regeneration — the answer has to live\nin the application or it does not survive.\n\n**Completeness** — `DERIVED` when the identity is declared; `NEEDS_DECISION` when it is not.\n\n⚠️ `NEEDS_DECISION`, not `NEEDS_FRAMEWORK`, and the distinction is load-bearing now that the surface\nexists. `NEEDS_FRAMEWORK` means there is nowhere to record the answer; `NEEDS_DECISION` means there is\nand nobody has. They have different remedies — build something, versus fill something in — and a\nreader who cannot tell them apart cannot act on either. Say which surface the answer goes to.\n\n**What closes it** — the operator declaring `operatorComplianceIdentity`. It is cheap and it can be\nfilled in later without redrafting anything around it, which is the reason it is not a blocker.\n\n**Never infer it.** Not from the application name, not from a domain, not from another application,\nnot from model memory. A published legal document naming the wrong entity is worse than one that says\nthe entity is not yet recorded — the first misdirects a person exercising a right, the second tells\nthem the document is incomplete.\n\n**Every document needs this fragment**, which makes it the clearest demonstration of why producing\nwith gaps beats blocking: the whole document set would be unproducible until one form is filled in.\n\n\n### Concern: legal basis and controller/processor role\n\n**Asserts** — the lawful basis for each processing purpose, and whether the operator acts as\ncontroller or processor for it.\n\n**Derives from** — `operatorComplianceIdentity.lawfulBases` and `.roleAllocations` in\n`wildo.saas.config.ts`.\n\nThe DETERMINATIONS are never derivable — both are legal conclusions about the operator's own\narrangements, and the framework can show WHAT is processed and BY WHICH MECHANISM without establishing\nunder which basis or in which role. What it now provides is where to record the conclusion, so that a\nregeneration reproduces it instead of destroying it.\n\n**The role is a LIST, not a field, and the produced notice said so before the surface existed:**\n*\"This notice therefore does not assign a single legal role to all data processed in a workspace.\"* A\nB2B SaaS is typically a processor for the records its customers put in and a controller for its\naccount holders' own data, simultaneously. `roleAllocations` carries one role per population, and a\ndocument that collapses them into one is wrong about both.\n\n**The `lawful-bases` fact is COMPUTED from `lawfulBases`** — every purpose, its basis and, for\nlegitimate interests, the assessment. You never declare it: a restatement would be a second copy of the\noperator's decision that nothing compares with the first. Absent bases leave the fact absent.\n\n**Give each purpose a stable `purposeRef`** (`account-security`) when a recipient serves it. A vendor\nnames the purposes it serves in `providerComplianceChoices.<ref>.purposeRefs`, and the recipients fact\njoins the two. The prose `purpose` can then be reworded without breaking the link; a ref naming no\ndeclared purpose is reported, never refused.\n\n**`LEGITIMATE_INTERESTS` cannot be declared without its assessment** — the schema refuses it. It is\nthe only Art. 6(1) basis whose lawfulness depends on a balancing test, so the bare claim asserts a\nconclusion nobody reached.\n\n**Completeness** — `DERIVED` when declared; `NEEDS_DECISION` when not. Never `NEEDS_FRAMEWORK`: there\nis a surface, so the remedy is to fill it in, not to build something. Name the surface when reporting\nthe gap.\n\n**What closes it** — the operator determining, per purpose, the basis and the role, ideally with\ncounsel, and declaring them in `operatorComplianceIdentity`. The tenancy fragment describes the SHAPE this usually takes in a B2B SaaS — processor for\nthe data a customer stores about its own people, controller for the data the operator holds about\naccount holders — but describing the common shape is not the same as determining this operator's, and\nthe produced document must not present the first as the second.\n\n**This is the fragment most likely to be filled in by a confident guess**, because the shape is\nfamiliar and the sentence is easy to write. Resist it. A basis stated in a published notice is a\nposition the operator has taken; a basis that was never determined is a position nobody can defend.\n\n\n### Concern: personal data held\n\n**Asserts** — which of the application's own records are about identifiable people, and which hold no\npersonal data of their own.\n\n**Derives from** — each resource's `retentionPolicy.mode` (`ErasureRetentionMode`, in\n`@wildo-ai/saas-models`), read for every resource the application declares:\n\n| declaration | what the document may state |\n|---|---|\n| `RETAIN_AND_IMPERSONALIZE` | this record holds personal data; the fields marked `.impersonalizeWith()` are what is scrubbed on erasure |\n| `RETAIN_ONLY` | this record holds **no personal data of its own** — a positive, factory-enforced statement, because declaring a scrub treatment under this mode fails at config build |\n| absent | the application has not said |\n\nRead `dataSubjectPolicy.kind` for the SESSION question only. `NO_PRINCIPAL` is equally true of an\ninvoice and of a CRM contact, so it never tells you whether a record is about a person — the\nretention mode does.\n\n**Completeness** — `DERIVED` for every resource that declares a retention policy.\n\n**An erasure-coverage gap does NOT license a claim about whether personal data is held.** The two are\ndifferent axes and the facts report them separately: `retentionPolicy` answers *what happens to this\nrow on erasure*, while a field's `.dataCategories()` answers *what kind of data is in it*. A resource\ncan declare the second and not the first, and 48 of the engine's 85 do.\n\nSo writing \"N resources have no declared erasure treatment, so this notice cannot establish whether\nthey hold personal data\" is an over-reach, and it contradicts the data-categories section of the same\ndocument — which enumerates categories drawn from those very resources. It was produced twice on\n2026-08-30 before this paragraph existed.\n\nState the gap as what it is: those resources have not declared an erasure TREATMENT, so a notice\ncannot say what an erasure does to them. Where the facts also report a category coverage for the same\norigin, say what IS established alongside it.\n`NEEDS_CONFIGURATION` for every resource that does not.\n\n**What closes it** — the application's own authors declaring `retentionPolicy`, with the `dataSubjectPolicy` the\nfactory requires beside it, on the resource. Name\nthe resources individually: the remedy is per-resource, and a count is not actionable.\n\n\n### Concern: data categories\n\n**Asserts** — which CATEGORIES of personal data are held: identity, contact details, credentials,\nfinancial, usage, location, user content, professional, and any GDPR Art. 9 special-category or\nArt. 10 criminal-offence data.\n\n**Derives from** — each field's `.dataCategories()` declaration, reported per resource and unioned\nacross the application in the compliance-primary-facts section. One category is DERIVED rather than\ndeclared: `credentials`, from `.isPassword()` / `.isOtp()` / `.isWriteOnlySecret()`, which are\nmarkers the author already wrote.\n\n**Nothing is derived from a field NAME.** `email`, `phone` and `dateOfBirth` are suggestive while\n`notes` is not, so a category list assembled by pattern-matching identifiers is a guess presented as\nan inventory — and its failure mode is silent, because whatever the guess misses is simply not\ndisclosed. The declaration exists so that never happens.\n\n**Completeness** — `DERIVED` when the application declares categories; `NEEDS_CONFIGURATION` when it\ndeclares none, or when the facts section lists OUTSTANDING fields.\n\n**The two gaps are different and must not be written the same way.**\n\n- A resource that declares no category at all may genuinely hold no personal data. Nothing\n distinguishes \"considered and not applicable\" from \"never asked\", so state that the question is\n unanswered — never that the application holds no personal data.\n- A field the facts section lists as OUTSTANDING is a provable omission. The application already\n declared that field personal by another door — an erasure scrub treatment, a portability\n provenance, or a credential marker — so the missing category is an omission, not a judgement.\n Name the field and its basis. Do not guess what it contains.\n\n**A CONDITIONAL category is stated with its condition, never flattened.** A field may declare that\nit is personal data only under a condition — `described-party-is-a-natural-person` marks the name,\nnumber or address of the PARTY a row describes (a customer organization, an account, a supplier).\nThat party may be an individual, such as a sole trader, whose details are personal data, or a\ncompany, whose details are not, because GDPR Recital 14 excludes only legal persons. The facts\nsection lists these apart from the categories held on every row. State them as held \"where the\ncustomer is an individual (for example a sole trader)\". Never state them as held about every\ncustomer, and never leave them out: either sentence is false about some customers.\n\n**Say WHICH special category, not that there is one.** A `special-category:*` value is Art. 9 data\nand carries a lawful-basis condition of its own beyond Art. 6; `criminal-offence` is Art. 10, a\nseparate article with a different condition. \"We process special category data\" is not a disclosure —\nthe enum names the kind precisely so a notice can.\n\n**Do NOT point at `Compliance_DataClassification`.** It exists, it is a four-level SENSITIVITY ladder\n(public / internal / confidential / restricted) applied only to flows-actors configuration, and it\nanswers \"how protected must this be\" rather than \"what kind of personal data is this\". Using it here\nwould produce a notice describing protection levels where a reader expects data types. It is named\nexplicitly because it is a near-miss a reader will otherwise find and assume answers this concern.\n\n\n### Concern: consent and preferences\n\n**Asserts** — what the application asks consent for, at what granularity, and what a person's choice\nactually controls.\n\n**Derives from**\n\n- `ConsentPurpose` (`@wildo-ai/saas-models`): `ANALYTICS` · `MARKETING` — a SET of purposes, each\n granted or not on its own. There is no ordering: agreeing to marketing says nothing about analytics.\n- per-person `privacy.consentedPurposes` — the purposes each person granted, empty until they grant\n one — and `privacy.consentDecidedAt`, stamped by the server when they decide. An empty set WITH an\n instant is \"declined everything\"; no instant is \"never asked\". A notice must not state the second\n as the first.\n- per-person `privacy.offeredPurposes` — the purposes a consent surface actually showed the person\n when they decided, accumulated over their decisions. A decision covers only what was shown: when\n the application starts asking for a purpose after someone decided, the consent prompt asks them\n for that purpose alone, and a notice must not describe them as having declined it.\n- `analytics.requiresConsent` (default `true`) — whether the application's analytics rest on\n `ANALYTICS`. It governs analytics alone, never use of the service.\n- the visitor tier: a marketing website keeps a visitor's decision in their browser and starts a\n consent-based provider (product analytics) only once its purpose is granted.\n\n- `operatorComplianceIdentity.serviceConsentRequirement` (`wildo.saas.config.ts`) — what a person\n must agree to in order to use the service AT ALL, and what that gate covers.\n\n**An empty `requiredPurposes` is a POSITIVE answer and the usual one.** The operator declaring that nothing is gated on\nconsent has answered the question; a document must state it as settled rather than treating it as an\nabsence. ABSENT is the different case — nobody was asked — and the brief distinguishes the two.\n\n**A consent GATE is not a lawful BASIS.** For most B2B SaaS the basis for core processing is CONTRACT:\na person uses the product because their employer signed for it. A notice that reads a gate as a basis\nstates that their data is processed on consent they could withdraw, which is wrong about the single\nmost consequential thing in the document. The basis is declared per purpose in `lawfulBases`.\n\n**Completeness** — `DERIVED` for the analytics gate, each person's granted purposes, and the\nservice-wide requirement once declared — which the application ENFORCES: until the required purposes are\ngranted, the backend refuses every operation the person initiates — API and MCP operations, queued work,\nWebSocket reads and subscriptions, agent tools, retrieval, charts and analytics, A2A task reads, and A2A or\nWebSocket conversations, including resuming one after an approval — except their own profile and preferences,\nwhere they record the consent, and cancelling an A2A task they already started (signing in and out stay open;\nupdates the server pushes on its own are not held back), and the web\napplication withholds its pages; `NEEDS_DECISION` naming `serviceConsentRequirement` when it is not.\n\nThis was `NEEDS_FRAMEWORK` until 2026-08-30, correctly: there was nowhere to record the answer. Issue\n#139 built the surface, so the remedy changed from \"someone must build this\" to \"fill this in\" — a\ndifferent party and a different task, which is why the two states are never interchangeable.\n\n**Say the thing readers get wrong.** Consent is one lawful basis among several, and it is not the one\nmost B2B processing rests on. **Never write that all processing rests on consent, and never write\nthat accepting terms supplies a lawful basis** — accepting a contract is a different basis with\ndifferent consequences, and conflating them is the single most common defect in a generated privacy\nnotice. Which basis applies is a `NEEDS_DECISION`; see the legal-basis fragment.\n\n\n### Concern: retention and deletion\n\n**Asserts** — what happens to a record when its subject is erased, and how long records are kept.\n\nTwo questions, and the framework answers both — the second only for the resources bound to a class.\n\n**Derives from (the HOW — answerable)** — each resource's `retentionPolicy.mode`:\n`RETAIN_AND_IMPERSONALIZE` keeps the row, freezes it, hides it from normal reads and scrubs the fields\nmarked `.impersonalizeWith()`; `RETAIN_ONLY` keeps and freezes a row that holds no personal data of\nits own. Reading the per-field treatments tells the document exactly WHICH values are destroyed and\nwhich survive, which is a genuinely strong statement most notices cannot make.\n\n**Records a statute keeps survive an erasure RESTRICTED, and the request still completes.** A resource\nbound to `BUSINESS_RECORDS` declares `retentionPolicy.statutoryRetention`: the GDPR Art. 17(3)(b) ground\n(`LEGAL_OBLIGATION`) and the statute in the operator's words. An erasure erases everything else, keeps\nthose rows retained and hidden from any other processing until their statutory period ends, and lists\neach one with its ground and end date — which is what the notice must say: that some records are kept\nbecause the law requires it, which law, and that they are deleted when the period ends. The\n`retention-rules` fact names these resources and their statute under each erasure treatment. Never write\nthat an erasure is refused or delayed because of them.\n\n**A statutory record whose `statutoryRetention` carries `staysInUseBecause` is NOT hidden.** Billing records are the\nworked case: a provider keeps reporting on them, so they stay in use and an erasure leaves them as they are. For such a\nresource, state the law and the period, and say the records stay in use for the reason the fact gives. Never write that\nthey are restricted or hidden from other processing.\n\n**Derives from (the HOW LONG)** — the application's `dataRetention` schedule, declared in its config\nover five data classes: `RESOURCE_DATA` (its records), `FILES` (uploaded bytes), `AUDIT_LOGS` (the\ntamper-evident trail, kept longest and for a different reason — it is the evidence an operator may\nlawfully retain under GDPR Art. 17(3)), `OPERATIONAL_LOGS`, and `BUSINESS_RECORDS` (records a statute\nrequires to be kept for a minimum period). Each declared class carries a period in days AND the\noperator's stated reason for it.\n\n**Enforced where a resource is BOUND** — a resource declares `retentionBinding: { retentionClass,\nstartPoint }`, and the retention sweep deletes its rows once the period has passed since the start point\n(the account closing, the record closing, its creation, the end of its calendar year). The period is\ncounted from when the record stops being needed, so a live record is never deleted for its age. The\n`retention-rules` fact names, per class, the resources bound to it and the MECHANISMS that act on it:\n`RETENTION_CLASS_SWEEP`, `FILES_CLEANUP` (file bytes after their row is gone), `AUDIT_ARCHIVAL`. An EMPTY\nmechanism list means nothing is even wired to enforce the class — say exactly that. `AUDIT_ARCHIVAL` means the audit\ntrail is archived after the period and is NEVER deleted: do not write that audit records are deleted.\n`rowLifetimes` says what ends every resource's rows, so a clause can state the CRITERIA where there is no period. Law\nallows either the period or the criteria that determine it, so \"kept while the account exists, then deleted\" is a true\nand sufficient answer. Word each one as what it is:\n\n| `lifetime` | what to write |\n|---|---|\n| `class_period` | the declared period of its class |\n| `row_expiry` | deleted automatically after a set time; the fact does not carry the time, so mark the time as owed |\n| `ends_with_tenant` / `ends_with_account` / `ends_with_parent` | kept while the organisation, the account or the parent record exists. Where `erasureTreatments` names the resource, say what that treatment does at the end instead of saying deleted |\n| `dedicated_mechanism` | removed once it has served its purpose; do not state a period |\n| `follows_system_of_record` | a copy kept in step with its source: the source's rules decide how long, so point there |\n| `audit_trail` | archived at the audit period, never deleted |\n| `file_cleanup` | the `FILES` period, counted from the file's release |\n| `not_stored_locally` / `rows_owned_by_another_resource` | say nothing of its own: it holds no separate copy |\n| `operator_configuration` / `no_personal_data` | it declares no personal data of its own, so there is no period to state for it |\n| `undecided` | listed again in `resourcesWithUndecidedLifetime`: nothing ends these rows, so mark how long they are kept as owed, never a period and never \"until erased\" as if someone had decided that |\n\nThe remedy for `undecided` is a `retentionBinding`, or an owner whose deletion deletes the row. A bare \"as long as\nnecessary\" is never an answer.\n\n**Whether a period IS enforced is a different fact** — `retention-enforcement`, computed from the records the\nretention sweep writes on every run (runtime evidence, not a declaration). Per declared class it reads\n`ENFORCED` (every bound resource shows a recent completed or deferred run), `DECLARED` (a period nothing has\nyet been shown to apply) or `FAILING` (the latest run of a bound resource failed). Say a period is enforced\nONLY where it reads `ENFORCED`, and as of its `observedAt` — and only for the resources bound to the class:\n`mechanismsNotEvidencedByTheseRecords` names what the records cannot see (the audit trail's archival, the files\ncleanup), so never write that the audit trail's or the files' retention is evidenced by this fact. A mechanism in `retention-rules` says the sweep\nWILL act; only this fact says it did. When the fact is absent the records were not collected: say enforcement\nis not yet evidenced, never that it is not happening.\n\nThe classes are the STORES on purpose: the same declaration answers what a notice must state and what\na backup-and-restore inventory must protect (issue #8).\n\n**The `retention-rules` fact is COMPUTED from both** — the declared periods with their reasons and\nmechanisms, the classes with no period, each resource's declared erasure treatment, the resources\ndeclaring none, and the resources bound to no retention class.\nYou never declare it.\n\n**State what an account holder's erasure DOES, not what a resource declares.** A declared treatment is\nwhat an impersonalization of the rows WOULD do; whether a person's erasure runs one depends on the edges\nit walks and on the framework's own erasure steps. So each treatment carries `accountHolderErasure`:\n`erasedAsTheSubject` (the person's own account rows, scrubbed by their declared mode), the `dispositions`\nthe erasure applies to rows below them (`delete`, `impersonalize_and_retain`,\n`restricted_under_statutory_retention`), the `severerTreatments` its steps apply to rows off those edges\n(an id removed, a membership impersonalized, an invoice's document links removed), and\n`rowsKeptAsTheyAre` when it runs nothing. Two lists name the gaps a notice drafted from declarations\nwould get wrong: `keptAsTheyAreByAnAccountHoldersErasure` (never describe them as scrubbed by a person's\nerasure: billing records are the usual case, kept whole as business records) and\n`changedByAnAccountHoldersErasureWithoutDeclaredTreatment` (changed or deleted although they declare\nnothing). The scope is an ACCOUNT HOLDER's erasure: a record of a person without an account (a CRM\ncontact, a lead) is erased as its own subject, and that erasure applies its declared mode, so say both\nwhen such a record is in the first list. A tenant's deletion is a separate mechanism, not described\nhere. When `accountHolderErasure` is absent the execution could not be derived; say only what is\ndeclared, worded as a declaration. It is absent when no schedule is declared, because a treatment alone would read as\nthe whole answer.\n\n**Completeness** — `DERIVED` for the treatment, and for each retention class the application HAS\ndeclared. `NEEDS_DECISION` for each class it has not: the mechanism exists, so what is missing is an\noperator's decision rather than an engine change. Do not let the derivable half hide the missing one —\na statement about erasure mechanics reads to a reader as an answer about retention, so both go in the\nsame breath.\n\n**What closes it** — the operator deciding a period, and saying why. Not a framework change: issue #89\ndelivered the declaration surface, so an undeclared class is now an unanswered question rather than an\nunaskable one.\n\n**An UNDECLARED class is not \"kept indefinitely\" and not \"deleted immediately\".** It is a decision\nnobody has taken, and the document must say exactly that.\n\n**A legal hold suspends every deletion of its scope** — the retention sweep, an erasure, the tenant purge,\nfile bytes — until the tier that placed it releases it (`legalHolds`). The notice may say that data is kept\nbeyond its period while a legal claim, an investigation or a legal obligation requires it, and that it is\ndeleted once that ends. Never write that a hold expires, and never name a matter.\n\n**Never write a placeholder period.** \"Typically 12 months\" in a published notice is a commitment\nnobody made and nothing enforces.\n\n\n### Concern: recipients and processors\n\n**Asserts** — who else receives personal data, in what role, and where they process it.\n\n**Derives from (who receives)** — the RECIPIENT POPULATION, which your brief renders under *\"Who\nRECEIVES data, by whose account reaches them\"*. It is computed by `computeRecipientPopulation`\n(`@wildo-ai/saas-specifications/application-creation`) from the configuration and a scan of the\napplication's source, and the privacy notice's recipients fact and the assurance evidence read the SAME\npopulation, so none of them can disagree with the others. Every provider declared under a runtime scope\n(`backend`, `frontendServices.<service>`, `minions.<minion>`, `workers.<worker>`) and every\n`systemsOfRecord` instance lands in exactly ONE of four classes:\n\n| Class | What it means | What the document does with it |\n| --- | --- | --- |\n| **OPERATOR-RUN** | an explicit `SELF_HOSTED` compliance choice | processing under the operator's own control — never a recipient |\n| **OPERATOR SUB-PROCESSOR** | some data path spends the APPLICATION's own account (an engine capability, a wired capability role, a typed client, a browser operation, a system of record) | the operator's recipient; it belongs in the processor register |\n| **TENANT RECIPIENT** | reachable ONLY through a customer's or a person's own connected account | the customer's own vendor, reached at the customer's instruction. Never the operator's sub-processor; you may say a customer can connect its own account |\n| **DECLARED, NO DATA PATH** | configured, and nothing in the application reaches it | receives nothing. Never name it as a recipient; the gap is the declaration itself |\n\nAn engine capability is ONE data path, not the definition of a recipient: a catalogue vendor called\nthrough its typed client receives data with no capability at all, and a vendor declared \"to exercise the\nloading chain\" with nothing calling it receives nothing. The tenant class matters most when the operator\nis a PROCESSOR for the data: listing a customer's own vendor as its sub-processor states an engagement the\noperator never made. The function and its limits are in the `compliance-document-authoring` skill's\n`references/framework-recipient-population.md`.\n\n**Derives from (the identities)** — the application's PROCESSOR REGISTER, which your brief renders\nunder *\"Who else processes personal data\"*. Per entry: the processor's **legal entity**, the\n**regions** it processes in, and its own **subprocessors** with their regions.\n\n**The register holds two kinds of entry and the brief labels them differently — say which.** A\nCONFIGURED PROVIDER entry joins to the application's composition, so it can be checked against it: a\nclaim about a provider the application does not configure is detectable, and a configured provider\nwith no entry is reported as UNDECLARED. An AUTHORED entry — a hosting company, a CDN, a support desk\n— joins to nothing, because no configuration mentions it. The framework can neither confirm it nor\nnotice its absence.\n\nBoth kinds of declared relationship can belong in the notice when their role is established. What\nmust not happen is presenting the second with the authority of the first: an authored entry is the operator's word, and a document that reads\nas though the framework verified it overstates what anyone checked.\n\n**A SELF-HOSTED provider is not a recipient either, and this is the second way to get the section\nwrong.** The brief's *\"Who RUNS each bound provider\"* block splits the members the OPERATOR answers\nfor (operator sub-processors and operator-run) three ways:\nTHIRD-PARTY RECIPIENTS (vendor-hosted, so data reaches a third party — enumerate these with their\nregion), OPERATOR-RUN (self-hosted, so no third party receives anything — state them as processing\nunder the operator's own control, never as recipients), and UNANSWERED.\n\nAn UNANSWERED provider is bound to a runtime with no declared deployment model. **Do not assume\nvendor-hosted.** It looks like the cautious reading and it is not: it publishes that a person's data\ngoes to a third party when nobody said so. Report it as not established, and name the surface —\n`providerComplianceChoices` in `wildo.saas.config.ts`.\n\n**A provider PROFILE is not a recipient.** The brief separates providers BOUND TO A RUNTIME — backend,\ncompanion, workers, minions, a frontend service, which can process the application's data — from\nprovider profiles with no runtime binding. A profile says how to reach a provider; build-time tooling\nlives there, and a coding agent operating on the workspace receives no customer records. Never name a\nprofile-only provider as a recipient. Naming one reads as caution and is a false statement about\nsomebody's data, exactly like omitting a real one.\n\nThe section joins the register to the OPERATOR SUB-PROCESSORS of the recipient population, so it tells\nyou these different things and they are not interchangeable:\n\n- a candidate WITH an entry — its declared identity and regions are available. Establish its\n deployment role before presenting it as a recipient.\n- a candidate listed **UNDECLARED** — a runtime binding has no matching processor entry. Name its\n configured function and unresolved declarations; an unanswered deployment choice remains unknown,\n not automatically vendor-hosted. `NEEDS_DECISION`, resolved by the operator.\n- a provider entry listed **STALE** — no data path reaches it from this operator any more.\n Reconcile the declaration and deployment choice; this check alone does not establish its actual\n historical processing or that all external data has been removed.\n- a provider entry listed **REGISTERED TENANT RECIPIENT** — the register names, as the operator's\n sub-processor, a vendor reached only through customers' own accounts. That entry is a false\n statement about who engaged the vendor; do not publish it as one of the operator's processors.\n\n**Completeness** — `DERIVED` per provider that is declared, `NEEDS_DECISION` per provider that is not.\nNot `NEEDS_FRAMEWORK` any more: issue #88 delivered the declaration surface, so an undeclared processor\nis an unanswered question rather than an unaskable one.\n\n**Never infer a region from a vendor's brand.** \"It is a US company\" is not a processing location, and\na transfer statement built on it is a claim about somebody's data made from a guess.\n\n**Distinguish the register declaration from its reconciliation.**\n\n| Observed state | What it establishes | What the document may say |\n| --- | --- | --- |\n| Register absent | No processor declaration was supplied | The operator has not established the register; do not infer recipients or their absence |\n| Register present with `processors: []` | The operator declares no processors | Report that declaration, then check it against runtime-bound recipient candidates; it is not independent proof that nobody receives data |\n| Recipient candidates have no matching entries, including with an empty register | The composition and declarations leave named questions unresolved | Identify the configured functions and outstanding deployment, identity or location decisions without inventing third parties |\n\nReconcile only operator sub-processors. Exclude operator-run, tenant-recipient, unreached and\nprofile-only providers; keep unanswered deployment choices visible as unanswered. `registerEstablishesNoProcessorRecipients`\nanswers the declaration question; `undeclaredProcessorRefs` answers candidate coverage. A true answer to\nthe first does not erase gaps returned by the second.\n\nName third-party recipients only when their role is established. An empty register does not justify\nan unconditional statement that third parties provide email, storage or payments. Equally, do not\nomit unresolved candidate questions and thereby imply that absence was verified. Authored recipients\nremain operator declarations whose completeness cannot be inferred from runtime bindings.\n\n\n### Concern: international transfers\n\n**Asserts** — whether personal data leaves its origin jurisdiction, to where, and under which transfer\nmechanism.\n\n**Derives from** — the processor register's regions, at BOTH levels: each declared processor and\neach processor's own subprocessors. Your brief renders them under *\"Personal data reaches processors\nin: …\"*.\n\nBoth levels, because the chain is what makes a transfer statement hard. An operator in France using a\nFrench vendor that runs on a US cloud HAS a transfer, and reading only the vendor's region misses it.\n\n**The question has three inputs, and the framework derives only one of them.** Where declared\nprocessors process is declared. Which jurisdiction is the ORIGIN is `operatingJurisdictions`. Which\nMECHANISM makes a given transfer lawful is a legal determination with a shelf life — adequacy decisions\nmove by court ruling — so the framework never computes it: the operator RECORDS it, per register entry,\nas a `transferDetermination`:\n\n- `NO_TRANSFER`, with the reason none of the entry's regions lies outside the origin jurisdictions —\n regions are free text, so this comparison is the operator's and never the framework's;\n- `TRANSFER`, with one safeguard per origin jurisdiction: the GDPR Chapter V mechanism\n (`ADEQUACY_DECISION`, `STANDARD_CONTRACTUAL_CLAUSES`, `BINDING_CORPORATE_RULES`,\n `APPROVED_CODE_OF_CONDUCT`, `APPROVED_CERTIFICATION`, or a `DEROGATION` naming its Art. 49 ground) and\n the instrument a reader could look up.\n\nThe determination sits on the ENTRY because the processor's own contract binds its onward transfers to\nits subprocessors; reaching the processor is the transfer the operator answers for.\n\n**The `international-transfers` fact is COMPUTED from those determinations** — you never declare it.\nIt carries each determined entry, the origin jurisdictions, `undeterminedRecipients` — a register entry\nwith no determination, or a configured provider the register does not establish — `safeguardGaps`:\na declared origin a TRANSFER names no safeguard for — and `operatorHostingRegions`: where the operator's\nOWN infrastructure holds the data (`operatorComplianceIdentity.hostingRegions`), or `null` when the\noperator has not declared it. State a `null` as the operator's hosting location not yet being declared;\nit never means the data is held nowhere, and it never supports \"no international transfer\".\n\nIt also carries `dataResidency`: the places the operator commits the data to\n(`operatorComplianceIdentity.dataResidency.territories`), and for each vendor-hosted provider its chosen\nregion, the places that region processes in, and a `status` (`inside`, `outside`, `territory-unknown`,\n`no-established-profile`). State the territories from this value, never from prose. `null` means no\nresidency is declared: say the service makes no residency commitment rather than naming a region.\n`providers: null` means the providers' profiles were not read, so state the commitment without claiming\nevery vendor keeps it. A configuration with any status other than `inside` or `inside-at-rest` is\nrefused by `wildo config sync`, so a landed application normally shows only those two.\n\n`storedAtRestTerritories` is a second, weaker promise the operator may opt into: a vendor whose region\nkeeps the data in those places and processes it elsewhere. Such a vendor has status `inside-at-rest` and\ncarries `storageTerritories`. Name it and say exactly that: the data is stored in those places, and it is\nprocessed elsewhere. Never write that it processes inside the residency, and never fold it into a sentence\nabout the vendors that do. `storedAtRestTerritories: null` means the operator made no such promise.\nWhen the entry carries a `storageCondition`, the storage holds only on that account arrangement (an add-on, a\nplan, a subuser, data created after residency was set up): state it beside the places, in the vendor's terms,\nso the reader sees what the promise rests on.\n\n**Completeness** — do not round any state up.\n\n| the register | what you may state | completeness |\n|---|---|---|\n| ABSENT | nothing — where data lands is unknown, and the fact is absent | `NEEDS_CONFIGURATION` |\n| a recipient in `undeterminedRecipients` | that its transfer position is not determined; never fold it into \"no transfer\" | `NEEDS_DECISION` for that recipient |\n| declares NO processor | no personal data reaches a third party, so none is transferred THROUGH one | `DERIVED`, with the residual stated |\n| a determined entry | its transfer with the safeguard per jurisdiction, or NO_TRANSFER as such | `DERIVED`; a `safeguardGaps` entry is stated as a transfer with no safeguard recorded for that jurisdiction |\n\n**The residual is not optional wording.** \"No processor receives personal data\" establishes nothing\nabout the operator's OWN processing — its infrastructure, its staff, its own establishment. A document\nthat says \"we do not transfer data internationally\" on the strength of an empty register has answered\na larger question than it was asked.\n\n**What closes an undetermined entry** — the operator researching the vendor's data processing\nagreement and recording what it relies on, per origin jurisdiction. A vendor's DPA usually names it:\nstandard contractual clauses for EU data, the UK Addendum to them for UK data, and sometimes a\ncertification under an adequacy framework beside them. Record what the contract says, not what is\ntypical.\n\n**\"We do not transfer data internationally\" is a claim, not a default.** It may be true, and it is\ncitable when an application has declared it as a fact — but it must never be produced because nothing\nsaid otherwise. Absence of a region declaration means the region is unknown, which is the opposite of\nknowing it stays put.\n\n\n### Concern: automated decisions and AI\n\n**Asserts** — where the application uses AI, on what data, and whether any of it decides something\nabout a person.\n\n**Derives from — the computed fact `ai-use-inventory`.** Nobody declares it: the runtime computes it\nfrom the application's AI-use declarations whenever facts are read, so it never goes stale the day an\nagent is added. Per AI use of the CONTRACTED SERVICE, at the capability (`aiUsePosture`) or on the agent\nthat runs it (`aiUse`), it states:\n\n- the purpose, the use `domain`, and the `consequence` — `NO_DECISION` / `ASSISTS_HUMAN_DECISION` /\n `DECIDES_AUTONOMOUSLY`;\n- the human review: the declared arrangement, or `derivedFromApprovalGates` where every tool the agent\n can change something with waits for a person's approval (`ungatedWriteToolRefs` lists any that do not).\n When `unresolvedToolRefs` is non-empty the derived review covers only the tools the reading could see:\n say so, and do not present the gates as covering the agent's every action;\n- the providers that serve it, with the legal entity and processing regions the processor register\n establishes (`onProcessorRegister: false` means the register does not name it — say so).\n\nIts gaps are part of the answer, never a reason to stay silent: `undeclaredCapabilities` and\n`undeclaredAgentRefs` (AI the service runs with no declared use), `domainOwedRefs`, and\n`invalidDeclarations`. State each as not yet established.\n\n**The regulatory reading follows jurisdiction.** `regulatoryScope` says which: `EU_AI_ACT` — each use\ncarries an `aiActReading` with its CANDIDATE class; `NO_AI_REGULATION_REACHES` — no AI regulation the\nframework reads applies where the application operates, so describe no use in the AI Act's terms;\n`JURISDICTION_NOT_DECLARED` — the application declares no operating jurisdiction, so the class is owed. Under `EU_AI_ACT`, a `HIGH_RISK_CANDIDATE` or `PROHIBITED_PRACTICE_CANDIDATE` carries\n`notSupportedYet: true` and is listed in `highRiskCandidateRefs` / `prohibitedPracticeCandidateRefs`:\nstate it as a candidate and as not supported yet, never as compliant, and never leave it out.\n\n**Not applicable is an answer.** When no AI capability reaches the contracted service the fact is\nNOT_APPLICABLE, and its reason says so — the service performs no AI processing, a positive, checkable\nstatement. Capabilities that serve only the build (`AI_CODING_AGENT`, or one offered only by the\ncompanion scope) are named there and in `authoringOnlyCapabilities`, outside this document: do not deny\nthey exist, and do not describe them as a feature of the service.\n\n**When the fact is absent** the declarations could not be read. Mark the clause owed; do not describe\nthe application's AI from the brief or from memory.\n\n**Whether the guardrails RAN is a second fact** — `ai-content-guardrails`, computed from the records the\nevidence plane collected (runtime evidence, not a declaration). Per agent of the contracted service it\nstates what the agent DECLARES (its personal-data treatment, prompt-injection screening, output\nmoderation) and, per guardrail, an `observation`: `RAN` (at least one recorded verdict in the window),\n`NO_RUN_RECORDED` (the agent has records and none carries a verdict — screening has nothing to judge on a\ncall that read no tool result) or `NO_OPERATION_RECORDED` (the window holds no record of the agent; not\n\"never called\", since a call whose record failed to write is counted in `callsWithoutOperationRecord` for\nno agent). `RAN` is not \"runs on every call\". State two things, as of the fact's window: the calls the\nguardrail was ACTIVE on (`treatedOperations`, `screenedOperations` or `moderatedOperations` of the agent's\n`operations`), and what it JUDGED (`fieldsWithheld`, `screenedResults`, `judgedOutputs`). Active is not\njudged: screening switched on for a call that read no tool result judged nothing, and the observation then\nreads `NO_RUN_RECORDED`. Say it ran only where the observation reads `RAN`. The guardrail audit-event counts beside it\ncount outcomes (content quarantined, output withheld, a failed check), application-wide, not per agent; a\nquiet audit trail is never evidence that a guardrail ran. A count is stated only when its `standing` is\n`COUNTED`: `UNCONTROLLED` (the collector's control found no row of any kind in the window) and\n`NOT_COLLECTED` carry `null`, which is never zero. When the fact is absent the records were not collected: say\nthe guardrails' operation is not yet evidenced, never that they are not enforced. An organization's agent\npolicy can tighten a guardrail at run time; a run it switched on shows here as `RAN` on an agent that\ndeclares none.\n\n**Completeness** — `DERIVED` for what the facts state; `NEEDS_DECISION` per use listed undeclared or with\nits domain owed. Never `NEEDS_FRAMEWORK`: the framework provides the declaration, so an undeclared posture\nis an unanswered question rather than an unaskable one.\n\n**An undeclared AI use is not a harmless one.** This is the one concern where silence is more\ndangerous than elsewhere: a notice describing AI use and saying nothing about consequence does not read\nas \"unknown\", it reads as \"nothing significant happens here\" — which is the exemption, claimed for\nfree. State the gap explicitly.\n\n**Why the distinction carries weight.** Automated decision-making with significant effects attracts\nspecific obligations — information about the logic, and a right to human intervention. A generated\nnotice must not silently claim the exemption by describing AI use without addressing consequence. The\nhonest statement says AI is used for these functions, and that whether any of it decides something\nabout a person is not yet established.\n\n\n### Concern: analytics and tracking\n\n**Asserts** — what is observed about how people use the service, and what a person's consent controls.\n\n**Derives from (partial)** — the observability and analytics capabilities the application has\nconfigured (`FRONTEND_PRODUCT_ANALYTICS`, `LLM_OBSERVABILITY`, `OBSERVABILITY_TELEMETRY`), together\nwith the consent posture: `analytics.requiresConsent` and each person's `privacy.consentedPurposes` make\n`ConsentPurpose.ANALYTICS` a real, enforced boundary rather than a stated intention — in the application,\nwhere a product-analytics provider starts only on the signed-in person's grant and is stopped on\nwithdrawal or sign-out, and on the marketing website, where one does not start until a visitor grants it.\nA consent-based provider must be stoppable in the page, so none is loaded as a `<script>` tag.\n\n**Derives from (the inventory)** — the CLIENT STORAGE section of your brief: each cookie and storage\nkey, its mechanism, purpose, necessity and lifetime, split by who sets it.\n\nThe FRAMEWORK's own entries are listed first and belong in every application's table — the cookies\n`__wildo_refresh` and `__wildo_anon_session`, strictly necessary, with lifetimes taken from the\napplication's session configuration, and the website's `__wildo_website_consent` storage key, strictly\nnecessary because it is what makes a visitor's refusal hold. **No application authored these and every application sets them**, so a table\nbuilt only from what the application declared would omit the session cookie, which is the entry a\nvisitor is most certain to have.\n\nThen, per frontend surface: its declared entries, an explicit \"sets nothing of its own\", or\nUNINVENTORIED.\n\n**UNINVENTORIED is not \"sets nothing\".** The first says nobody catalogued that surface; the second is a\npositive statement. Writing the second from the first tells a visitor they are tracked by less than they\nare, which is the under-reporting direction a notice must never fail in.\n\n**Completeness** — `DERIVED` for the capability and consent posture, and for each surface that IS\ninventoried; `NEEDS_DECISION` per uninventoried surface. Not `NEEDS_FRAMEWORK` any more: issue #91\ndelivered the declaration surface, so an uninventoried surface is an unanswered question rather than an\nunaskable one.\n\nSay both halves: which analytics are in use and what consent gates them (strong, derived, enforced), and\nwhat the table still lacks — naming the surfaces, not the concern.\n\n\n### Concern: subject rights\n\n**Asserts** — which request mechanisms the application configures, what they select and what their\nresults establish. A configured mechanism does not establish that a particular request was fulfilled.\n\n**Derives from**\n\n- `SubjectExportPurpose.ACCESS_ART_15` and `PORTABILITY_ART_20` — two selections over the declared\n subject relationships. Access includes eligible owned rows and non-owned rows referring to the\n subject. Portability applies narrower relationship and field-provenance selection. Neither is an\n unrestricted recursive export of everything reachable from an account.\n- Each participating resource's `systemAccessPolicy.exportSubject` — an explicit disclosure choice,\n checked before collection. Missing and forbidden are different decisions:\n\n| Declaration | Runtime result | Meaning for the request |\n| --- | --- | --- |\n| Absent on a participating resource | Refuses collection | A required disclosure decision is unanswered; no silently incomplete bundle is returned |\n| `ALLOWED` | Passes this disclosure gate | Relationship selection, system-read admission, field security and purpose-specific checks still apply |\n| `FORBIDDEN` on a dependent resource | Excludes that resource and records the reason | A deliberate exclusion; do not change it to ALLOWED merely to remove a reported omission |\n| `FORBIDDEN` on the subject's own resource | Refuses the bundle | The subject cannot be omitted from its own export |\n\n- `portabilityPolicy.defaultProvenance` and per-field `.portabilityProvenance(...)` — the field\n declaration overrides the resource default. `SUBJECT_PROVIDED` and `OBSERVED` values are eligible\n for portability; `DERIVED` values are excluded and reported. Unresolved provenance refuses\n portability collection rather than silently dropping fields. Explicitly forbidden resources do\n not need portability provenance for this export because their rows are not collected. Access uses\n its separate field selection; backend-only and write-only fields remain withheld.\n- Erasure: `eraseSubjectAsSystem(resourceType, rowIds)`. For a person with an account, the engine's\n `dataSubjectRequests` resource is the request workflow every application already has: the person files\n an erasure request from their settings (or an operator records one received elsewhere, with a\n justification), it waits out a 14-day grace window during which it can be withdrawn, carries a\n `respondBy` deadline one calendar month after receipt, and an hourly sweep calls the erasure and records\n the outcome and receipt on the request, which is kept as evidence. Do not build a second lane beside it:\n the evidence collector refuses an application in which two resources declare a `subjectErasureLane`. A\n contact or lead without a login can still be a data subject; that request is the operator's to record\n and carry out. Retention, relationship\n treatments and account linkage are separate declarations; inspect the receipt before claiming\n completion, including dependent execution, sessions (`isSubjectErasureSessionRevocationComplete`: resolving a\n principal is not ending their session), incomplete external effects and `unconfirmedSeveredReferences`, the rows a\n severance write did not answer for.\n\n**The rights a notice states are COMPUTED, in the `rights-and-complaint-route` fact.** Which rights\napply, and where a person may complain, are the law of the regime each `operatingJurisdictions` entry\nfalls under, conditioned on the declared lawful bases: portability only for purposes resting on consent\nor contract, objection only for public task or legitimate interests, withdrawal of consent only where\nconsent is the basis. The channel is `privacyContact`; the verification step is the operator's\n`subjectRequestIdentityVerification`; who answers comes from `roleAllocations` — the operator for data it\ncontrols, the customer (with the operator forwarding and assisting) for data it processes on a\ncustomer's behalf. Two regimes are known: the EU GDPR and the UK's. Their rights match article for article but their\ncomplaint routes do not — since 19 June 2026 a UK notice names a complaint to the operator itself\n(Data Protection Act 2018 s.164A, acknowledged within 30 days) and to the Information Commissioner\n(s.165(2)), and never GDPR Art. 77. State each regime's route from the fact, not from memory. A\njurisdiction no known regime reaches is named in `jurisdictionsWithoutKnownRegime`: state that its\nrights are not established here, never borrow another regime's words for it.\n\n**Completeness** — derive the configured posture from actual resource declarations and the selected\nrelationships. Describe an unresolved declaration as a configuration refusal, an explicit exclusion\nas an exclusion, and an observed request outcome from its report. Declarations alone are not runtime\nproof that a right has been fulfilled.\n\n**What resolves a missing declaration** — the owning resource explicitly declares ALLOWED or FORBIDDEN\naccording to its intended disclosure policy. Portability additionally needs a valid resource default\nor field-level provenance for the fields it would collect. Do not ask a notice author to replace a\nmissing product declaration with a free-text promise.\n\n**Never state** that an undeclared participating resource is merely omitted while the remainder is\nexported. The runtime refuses collection. Preserve deliberate exclusions and explain their recorded\nreasons; the application's request workflow owns verification, protected delivery and any necessary\nfollow-up.\n\n\n### Concern: data exit\n\n**Asserts** — what a customer gets back when they leave, in what form, and what happens to what\nremains.\n\n**Derives from** — `SubjectExportPurpose.PORTABILITY_ART_20` and the resources declaring\n`exportSubject`; the account-closure path; and each resource's `retentionPolicy.mode`, which decides\nwhether a record is removed or **retained and impersonalized** on erasure.\n\n**Completeness** — `DERIVED` for the mechanism.\n\n**Retained-and-impersonalized is the part a reader must not be surprised by**, and the part a\ngenerated document most often gets wrong by omission. A retained row is kept, frozen, hidden from\nnormal reads and reachable only through an audited privileged path — it is not deleted. Say so. A\nnotice that implies everything is erased, when financial and audit records are lawfully retained with\ntheir personal fields scrubbed, is inaccurate in the direction that damages trust when discovered.\n\n**How LONG anything is retained is not derivable** — see the retention-and-deletion fragment.\n\n\n### Concern: tenancy model\n\n**Asserts** — that customer data is separated per organization, and where the boundary between the\noperator's responsibilities and the customer's lies.\n\n**Derives from** — the `ORGANIZATIONS` engine capability, the organization scoping applied to every\ntenant-scoped resource, and the cross-tenant admission rules. Ordinary tenant crossings must be\ndeclared and carry a usable access grant. The application audit viewer is a separate policy surface:\nit follows `auditTrail.applicationReadAccess`, which defaults by the application's shape:\n`AuditApplicationReadAccess.INDEPENDENT_APPROVAL` where the parties of one of its relationship kinds are independent of its operator, role-based\naccess (the super-administrator or the read-only audit-evidence reader) otherwise. Under independent approval a\nmachine reader needs a second-signed grant bound to its own credential. Both modes retain cross-tenant read observations;\nrole-based access neither implies anonymized records nor supplies an approval that never occurred.\n\n**Completeness** — `DERIVED`.\n\n**This fragment is where shared responsibility is described, and it must never be flattened.** In a\nB2B SaaS the operator is a PROCESSOR for the data a customer stores about its own people, and a\nCONTROLLER for the data it holds about the customer's users as account holders. Those are different\nroles with different duties over the same database. Say which is which; do not pick one and apply it\nto everything.\n\n**The attribution has a home now.** `operatorComplianceIdentity.roleAllocations` in\n`wildo.saas.config.ts` carries one role per population of data — PROCESSOR for the records a customer\nstores about its own people, CONTROLLER for the account data of the people who administer them. It is\na LIST for exactly the reason this fragment gives: those are different roles over the same database,\nand a single field would force one of them to be wrong.\n\nWhere the attribution is not established, that is a `NEEDS_DECISION` — never a guess — and the\nsurface to name is `roleAllocations`. Not `NEEDS_FRAMEWORK`: there is somewhere to write the answer,\nso the remedy is to fill it in rather than to build something. See the legal-basis fragment.\n\n\n## `document:public.service-terms` — six concerns\n\n### Concern: service scope\n\n**Asserts** — what the service actually is: the modules it runs, the resources it manages, and the\nsurfaces it exposes.\n\n**Derives from** — the application's declared modules and their resources, and the surfaces it builds\n(application, API, public website, technical documentation).\n\n**Completeness** — `DERIVED`.\n\n**Derive it; do not describe the product from its marketing.** Scope in a governed document is the\nboundary of what the statements around it apply to, so an aspirational description silently widens\nevery other clause. The declared modules are the honest boundary, and a capability the application\ndoes not run does not belong here even if it is on the roadmap.\n\n\n### Concern: commercial terms\n\n**Asserts** — what is sold, how it is charged, and what happens on renewal, change and cancellation.\n\n**Derives from** — the application's billing declarations\n(`saas-models` → `billing/billing-enums.shared.schemas.ts`): `ProductType`, `BillingTiming`,\n`ProrationBehavior`, `TaxCalculationMode`, plus the declared products and any usage metering.\n\n**Completeness** — `DERIVED` where billing is configured; `NEEDS_CONFIGURATION` where the application\ndeclares no products, in which case say that the commercial terms are not yet established rather than\ndescribing a plan nobody has authored.\n\n**Keep consumer and business audiences apart.** Consumer pre-contract obligations (withdrawal\nperiods, pre-contractual information) apply only when a declared audience includes consumers. A terms\ndocument that blends both into one ambiguous set is worse than one that states which audience it is\nfor — so read the declared audience before writing a single clause about cancellation rights.\n\n\n### Concern: governing law and liability\n\n**Asserts** — which law governs the agreement, where disputes are heard, and how liability is limited.\n\n**Derives from** — nothing. These are negotiated commercial and legal positions.\n\n**Completeness** — `NEEDS_DECISION`.\n\n**What closes it** — the operator deciding, with counsel. Note that liability limits interact with\nthe declared audience: consumer-facing terms cannot limit liability as freely as business-to-business\nones, so this fragment cannot be settled before the commercial-terms fragment establishes who the\nterms are for.\n\n**Never produce a liability clause from a template.** A limitation of liability that was copied\nrather than decided is either unenforceable or committing the operator to something nobody agreed —\nand unlike most gaps in a produced document, this one is not discovered until it matters.\n",
|
|
29
29
|
"skillRefs": [
|
|
30
30
|
"compliance-document-authoring"
|
|
31
31
|
],
|
|
@@ -264,7 +264,8 @@ export type InboundChatDecisionAnswer =
|
|
|
264
264
|
readonly outcome: HumanDecision_ActOutcome;
|
|
265
265
|
/**
|
|
266
266
|
* #2923: where the person answers this decision instead, when a chat answer cannot settle it (it requires a step-up,
|
|
267
|
-
* which a chat answer cannot carry,
|
|
267
|
+
* which a chat answer cannot carry, its kind does not admit a chat answer, or, #2797, the person is a representative
|
|
268
|
+
* whose granting organization asks a second factor a chat cannot prove): the decision's address in the
|
|
268
269
|
* application's inbox. Present exactly then, and when the application has a public address. A handler posts it as
|
|
269
270
|
* the message's link (`openInApplication`), never a refusal with nowhere to go.
|
|
270
271
|
*/
|
|
@@ -95,9 +95,9 @@ export enum BuildPlanTaskTargetKind {
|
|
|
95
95
|
* task: the companion publishes into it, and the coding policy prohibits it by prefix.
|
|
96
96
|
*/
|
|
97
97
|
TECHNICAL_DOCUMENTATION = 'TECHNICAL_DOCUMENTATION',
|
|
98
|
-
/** One worker package (`workers/<
|
|
98
|
+
/** One worker package (`workers/<slug>/`, named by the integration plan's `worker-<slug>`), Node or Rust, plus its declaration in the SaaS config. */
|
|
99
99
|
WORKER = 'WORKER',
|
|
100
|
-
/** One cron minion package (`minions/<
|
|
100
|
+
/** One cron minion package (`minions/<slug>/`, named by the integration plan's `minion-<slug>`) plus its declaration in the SaaS config. */
|
|
101
101
|
MINION = 'MINION',
|
|
102
102
|
/**
|
|
103
103
|
* Declaring one provider in the application — the SaaS config's provider scopes, the backend
|
|
@@ -685,8 +685,8 @@ export const BuildPlanTaskProductSchema = z.discriminatedUnion('kind', [
|
|
|
685
685
|
*/
|
|
686
686
|
serviceMethodDeliverableRef: z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN).optional(),
|
|
687
687
|
}),
|
|
688
|
-
z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_WORKER).systemEnum('BuildPlanTaskProductKind'), workerRef:
|
|
689
|
-
z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MINION).systemEnum('BuildPlanTaskProductKind'), minionRef:
|
|
688
|
+
z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_WORKER).systemEnum('BuildPlanTaskProductKind'), workerRef: IntegrationWorkerRefSchema, jobRefs: z.array(NonEmptyStringSchema).min(1) }),
|
|
689
|
+
z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MINION).systemEnum('BuildPlanTaskProductKind'), minionRef: IntegrationMinionRefSchema, behaviorRefs: z.array(NonEmptyStringSchema).min(1) }),
|
|
690
690
|
z.strictObject({
|
|
691
691
|
kind: z.literal(BuildPlanTaskProductKind.PROVIDER_BINDING).systemEnum('BuildPlanTaskProductKind'),
|
|
692
692
|
providerRef: SlugSchema,
|
|
@@ -1129,14 +1129,18 @@ export const BuildPlanTaskTargetSchema = z.discriminatedUnion('kind', [
|
|
|
1129
1129
|
z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.TECHNICAL_DOCUMENTATION) }),
|
|
1130
1130
|
z.strictObject({
|
|
1131
1131
|
kind: z.literal(BuildPlanTaskTargetKind.WORKER),
|
|
1132
|
-
/**
|
|
1133
|
-
|
|
1132
|
+
/**
|
|
1133
|
+
* The integration plan's `workerRef` (`worker-<slug>`), verbatim. The package directory is derived from it by
|
|
1134
|
+
* `integrationWorkerDirectoryName`, the same rule the foundation step composes the package with, so the plan never
|
|
1135
|
+
* has to guess where the package went.
|
|
1136
|
+
*/
|
|
1137
|
+
workerRef: IntegrationWorkerRefSchema,
|
|
1134
1138
|
runtime: z.enum(BuildPlanWorkerRuntime).systemEnum('BuildPlanWorkerRuntime'),
|
|
1135
1139
|
}),
|
|
1136
1140
|
z.strictObject({
|
|
1137
1141
|
kind: z.literal(BuildPlanTaskTargetKind.MINION),
|
|
1138
|
-
/** The
|
|
1139
|
-
minionRef:
|
|
1142
|
+
/** The integration plan's `minionRef` (`minion-<slug>`), verbatim; the directory is `integrationMinionDirectoryName`'s. */
|
|
1143
|
+
minionRef: IntegrationMinionRefSchema,
|
|
1140
1144
|
}),
|
|
1141
1145
|
z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.PROVIDER_BINDING), providerRef: SlugSchema }),
|
|
1142
1146
|
z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.BILLING_CATALOG) }),
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# example.electronic-signature.engagement-letter-tool
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Usage Example
|
|
5
|
+
|
|
6
|
+
```typescript
|
|
7
|
+
const RequestEngagementLetterSignature_InputSchema = z.object({
|
|
8
|
+
engagementId: z.string().min(1).describe('The engagement. Resolve it with resource.engagements.read.'),
|
|
9
|
+
letterFileId: z.string().min(1).max(200)
|
|
10
|
+
.describe('The id of the engagement\'s letter PDF: `engagementLetter.fileId` as resource.engagements.read returned it. The client signs this file, byte for byte.'),
|
|
11
|
+
});
|
|
12
|
+
type RequestEngagementLetterSignature_Input = z.infer<typeof RequestEngagementLetterSignature_InputSchema>;
|
|
13
|
+
|
|
14
|
+
/** The engagement's fields the client approves beside the letter: shown on the card and committed to by the seal. */
|
|
15
|
+
export const ENGAGEMENT_LETTER_SEALED_FIELDS = ['engagementReference', 'services', 'closeCadence', 'startsOn', 'endsOn'] as const;
|
|
16
|
+
|
|
17
|
+
export const requestEngagementLetterSignatureTool: FunctionTool = {
|
|
18
|
+
functionRef: REQUEST_ENGAGEMENT_LETTER_SIGNATURE_TOOL_REF,
|
|
19
|
+
authority: {
|
|
20
|
+
kind: FunctionToolAuthorityKind.NO_APPLICATION_DATA,
|
|
21
|
+
reason: 'It reads and writes nothing: once the client approves, the engine itself sends the approved letter for signature.',
|
|
22
|
+
},
|
|
23
|
+
effect: FunctionToolEffect.WRITE,
|
|
24
|
+
description:
|
|
25
|
+
'Ask the client to sign the engagement letter electronically. Pass the engagement id and the id of its letter PDF '
|
|
26
|
+
+ '(engagementLetter.fileId from resource.engagements.read); the firm uploads the letter on the engagement first. '
|
|
27
|
+
+ 'The client\'s administrator approves the letter, then signs it inside the application, on the engagement\'s page. '
|
|
28
|
+
+ 'Call it only when the user asks, then say it is waiting for the client\'s administrator.',
|
|
29
|
+
inputSchema: RequestEngagementLetterSignature_InputSchema,
|
|
30
|
+
personalDataOutput: {
|
|
31
|
+
kind: FunctionToolPersonalDataOutputKind.NOT_FROM_RECORDS,
|
|
32
|
+
reason: 'It returns the two ids it was called with and a fixed sentence; it reads no record.',
|
|
33
|
+
},
|
|
34
|
+
humanApproval: {
|
|
35
|
+
route: HumanDecision_RouteKind.ROLE,
|
|
36
|
+
eligibleRole: CORE_ORG_ROLES.ORG_ADMIN,
|
|
37
|
+
// Signing commits the client to the mandate.
|
|
38
|
+
riskLevel: ResourceOperationRiskLevel.HIGH,
|
|
39
|
+
},
|
|
40
|
+
argumentsResource: { resourceType: ClientEngagements_ResourceType.ENGAGEMENTS, rowIdArgument: 'engagementId' },
|
|
41
|
+
deliverableFileArgument: 'letterFileId',
|
|
42
|
+
sealedRecordFields: ENGAGEMENT_LETTER_SEALED_FIELDS,
|
|
43
|
+
// A letter re-issued and approved again replaces the earlier approval of the same engagement.
|
|
44
|
+
approvalReplacesEarlierApprovalOfRow: true,
|
|
45
|
+
electronicSignature: { requiredLevel: ElectronicSignature_Level.SIMPLE, signers: [FunctionTool_SignerSource.APPROVER] },
|
|
46
|
+
execute: async (args: RequestEngagementLetterSignature_Input) => ({
|
|
47
|
+
engagementId: args.engagementId,
|
|
48
|
+
letterFileId: args.letterFileId,
|
|
49
|
+
// What happens next is the engine's, within minutes and not here: the approved letter is sent for the approver's
|
|
50
|
+
// signature. Said as what WILL happen, never as done.
|
|
51
|
+
next: 'The client\'s administrator approved the letter. The application sends it for their signature within a few minutes; they sign it on the engagement\'s page.',
|
|
52
|
+
}),
|
|
53
|
+
};
|
|
54
|
+
```
|
|
@@ -18,10 +18,14 @@ export const rescheduleTodoTool: FunctionTool = {
|
|
|
18
18
|
argumentsResource: { resourceType: TasksManager_ResourceType.TODOS },
|
|
19
19
|
description:
|
|
20
20
|
'Propose a new due date for one overdue todo. An organization administrator must approve the change before '
|
|
21
|
-
+ 'it is applied. Resolve the todo id with resource.todos.read first.',
|
|
21
|
+
+ 'it is applied. Resolve the todo id with resource.todos.read first, and give the administrator a one-sentence reason.',
|
|
22
22
|
inputSchema: z.object({
|
|
23
23
|
todoId: z.string().min(1).describe('Id of the todo to reschedule. Resolve it with resource.todos.read.'),
|
|
24
24
|
dueDate: z.string().min(1).describe('The proposed due date, as an ISO 8601 date, e.g. "2026-10-04".'),
|
|
25
|
+
// Shown to the administrator who decides, and nowhere else: it is not written to the todo. Defaulted, so a call that
|
|
26
|
+
// leaves it out still runs, and the approval card then shows the default rather than an empty argument (#3295: an
|
|
27
|
+
// approver's edit is parsed, and a parse that fills a default differs from the raw input).
|
|
28
|
+
reason: z.string().max(280).default('No reason given.').describe('One sentence for the approving administrator: why this date.'),
|
|
25
29
|
}),
|
|
26
30
|
humanApproval: {
|
|
27
31
|
route: HumanDecision_RouteKind.ROLE,
|
|
@@ -29,7 +33,7 @@ export const rescheduleTodoTool: FunctionTool = {
|
|
|
29
33
|
// What the todos UPDATE it runs declares (#2526).
|
|
30
34
|
riskLevel: ResourceOperationRiskLevel.LOW,
|
|
31
35
|
},
|
|
32
|
-
execute: async (args: { todoId: string; dueDate: string }, ctx: FunctionToolExecutionContext): Promise<RescheduleTodoToolResult> => {
|
|
36
|
+
execute: async (args: { todoId: string; dueDate: string; reason: string }, ctx: FunctionToolExecutionContext): Promise<RescheduleTodoToolResult> => {
|
|
33
37
|
const dueDate = new Date(args.dueDate);
|
|
34
38
|
if (Number.isNaN(dueDate.getTime())) throw new Error(`"${args.dueDate}" is not a date.`);
|
|
35
39
|
await dispatchResourceOperationAsTool({
|