From 4cc5c14560f26e6a76c5c76ca25821eb45868255 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Wed, 7 Oct 2026 21:25:40 +0300 Subject: [PATCH 1/9] docs(adr): define actor-attributed data security boundary Authorize filtered, actor-attributed content from events and proactive data paths to guide task execution within the configured harness scope, while preserving platform authority boundaries. Document provenance checks, Unicode and prompt-injection filtering, and fail-closed handling. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- ...actor-attributed-data-security-boundary.md | 93 +++++++++++++++++++ docs/architecture.md | 10 ++ docs/problems/security-threat-model.md | 12 ++- 3 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 docs/ADRs/0133-actor-attributed-data-security-boundary.md diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md new file mode 100644 index 0000000000..e350f19ba9 --- /dev/null +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -0,0 +1,93 @@ +--- +title: "133. Apply a data security boundary to authorized actor-attributed content" +status: Accepted +relates_to: + - agent-architecture + - security-threat-model +topics: + - authorization + - data-security + - prompt-injection + - events +--- + +# 133. Apply a data security boundary to authorized actor-attributed content + +Date: 2026-10-07 + +## Status + +Accepted + +## Context + +[ADR 0054](0054-require-authorization-on-all-agent-dispatch-paths.md) decides +which actors are eligible to cause agent processing. [ADR +0107](0107-bot-identity-resolution-for-dispatch-authorization.md) extends that +decision to provider-resolved bot identities. Those decisions establish +authorization and provenance for deciding whether processing may begin; they do +not make the text produced by an authorized actor truthful, safe, or +authoritative. + +Agents nevertheless need to use actor-attributed data such as issue bodies, +comments, reviews, commit messages, and linked records. That data may arrive +in the triggering event, a poll or snapshot, or a proactive read through +another authorized API. Comments from an authorized actor can contain genuine +task instructions that the agent must be able to heed. The boundary must still +prevent content from changing platform authority or capabilities, and must +protect against hidden Unicode, prompt injection, and indirect disclosure. + +## Decision + +Fullsend separates three decisions: whether a source actor is authorized for +the relevant processing path, whether source content may be admitted as data or +task guidance, and which fixed platform instructions and capabilities the model +receives. +Authorization under ADR 0054, ADR 0107, or the trusted Fullsend-originated path +in ADR 0098 permits actor-attributed content to be considered for data +admission, regardless of whether the content was delivered by an event, +polling, a snapshot, or a proactive API read. This is bounded trust: content +with authorized provenance may inform analysis and, where the harness permits, +provide task instructions. It cannot grant platform authority or become a +source of credentials, identity, permissions, routing, harness configuration, +or capabilities. Admission is per source record; an authorized editor does not +launder earlier content authored by another actor, and an unattributed or +ambiguous producer is withheld from instruction use unless explicit platform +provenance covers it. + +Before any selected actor-attributed content reaches a model, the host-side +input boundary MUST verify its source, actor attribution, and bounds and apply +the versioned content-filtering pipeline. The pipeline MUST perform Unicode and +control-character safety handling (including hidden and bidirectional +characters), sensitive-data and secret redaction, prompt-injection scanning, +and size limits. The model may receive only the resulting filtered +representation, with explicit data delimitation and any bounded omission or +finding metadata. Raw source content and rejected content MUST NOT be exposed +to the model or retained in ordinary run artifacts. + +Filtering is fail-closed for missing or unverifiable provenance, detector +failure or timeout, and content that the active policy cannot safely represent. +A blocking finding produces an omission or quarantine record rather than raw +model input; the filter manifest records the disposition, digest, and bounded +diagnostics without retaining the rejected body. The exact character policy, +detector versions, dispositions, and compatibility rules belong in the +versioned content-filter contract shared by all model-bound data paths. + +The model-facing prompt MUST preserve the provenance and boundary of filtered +source records relative to system/developer instructions and harness-provided +task instructions. Content from an authorized actor MAY guide task execution +within the configured harness scope, including by requesting an otherwise +permitted change. Content from an unauthorized, unattributed, or rejected +source MUST NOT be treated as an instruction. No source content may re-dispatch +the agent or elevate its identity, permissions, tools, capabilities, or +platform-owned instructions. The platform's pre-dispatch command parser and +deterministic, schema-validated host/post-script paths remain the only paths +that select a stage or perform a forge mutation. + +## Consequences + +- Authorized contributors and recognized bots can provide useful context and task guidance, regardless of how the data is retrieved, without gaining platform authority. +- Every forge adapter, poller, snapshot builder, and proactive data source needs provenance binding, bounded retrieval, and the common filtering pipeline before its content is model-visible. +- Hidden-character and prompt-injection findings may omit legitimate-looking content, so the model and operators need bounded diagnostics rather than an assumption that all source text will be preserved. +- Filtering reduces, but cannot prove the absence of prompt injection; immutable instructions, least privilege, output validation, and deterministic host-side mutations remain required defenses. +- The data-filter contract becomes a versioned security boundary whose changes require compatibility review and regression testing across all model-bound data consumers. diff --git a/docs/architecture.md b/docs/architecture.md index 55eb564340..4430215eaa 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -390,6 +390,16 @@ The existing design principle is that [the repo is the coordinator](problems/age non-label paths ([ADR 0107](ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md); [Authorization Contract v1](normative/authorization/v1/); [ADR 0054](ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md)). +- Data security boundary: authorization establishes which actor-attributed + content for a run, and authorized content may guide task execution within + the configured harness scope; this applies equally to events, polling, + snapshots, and proactive API reads. Before model exposure, host-side + filtering handles Unicode and hidden characters, redacts sensitive data, + scans for prompt injection, and applies size limits; only filtered, + provenance-labelled content reaches the model. Provenance or filtering + failures omit the content fail-closed, and source text cannot re-dispatch an + agent or elevate its identity, permissions, tools, capabilities, or + platform-owned instructions ([ADR 0133](ADRs/0133-actor-attributed-data-security-boundary.md)). - Poll entity-discovery authorization: `fullsend poll` has no prompting event actor; verified, non-user-assertable Fullsend invocation provenance authorizes entity enumeration and evaluation, and callers without it are denied. Before diff --git a/docs/problems/security-threat-model.md b/docs/problems/security-threat-model.md index 4e8e7602b6..68938e4566 100644 --- a/docs/problems/security-threat-model.md +++ b/docs/problems/security-threat-model.md @@ -96,10 +96,18 @@ In fullsend's architecture, this is mitigated by several design decisions: agent ### Open questions - Can prompt injection be reliably detected? Current research suggests it's fundamentally hard. -- Should we treat all PR content as untrusted, even from org members? (Relates to insider threat.) +- ~~Should we treat all PR content as untrusted, even from org members?~~ + Content from actors admitted by the dispatch/data policy may provide task + instructions within the configured harness scope; attribution does not grant + platform authority, and other content remains data rather than instruction, + regardless of whether the source arrived through an event or an API + ([ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md)). - How do we handle the case where legitimate code contains text that looks like prompt injection? (e.g., a test for prompt injection defenses) - What's the blast radius if an injection succeeds? How do we limit it? (Credential exposure mitigated by keeping credentials out of sandboxes entirely — see [ADR 0017](../ADRs/0017-credential-isolation-for-sandboxed-agents.md); model-provider credentials for runtimes that need one follow the same rule through a run-scoped provider and a placeholder the agent never resolves — see [ADR 0092](../ADRs/0092-openai-wif-credential-delivery.md) and, for codex, [ADR 0099](../ADRs/0099-codex-agent-runtime.md); the Actions workflow token used for GitHub Packages has its *placeholder* bound the same way, resolving only at the two registry hosts; but a value recovered through the registry's error echo is the job's own `GITHUB_TOKEN` and is replayable against whatever hosts the running role's forge profile already allows — read-write for `coder` — see [ADR 0114](../ADRs/0114-github-packages-via-host-bound-workflow-token-provider.md). Tool access limited by `permissions.deny` hard-blocks — see [ADR 0027](../ADRs/0027-allowed-and-disallowed-tools-for-agents.md). Other blast radius dimensions remain open.) -- Should agents operate on Unicode-normalized text with non-rendering characters stripped, or on raw text with a separate detection pass? Stripping at ingestion is simpler but risks breaking legitimate internationalized content. A detection pass preserves the original but requires every agent to handle invisible content correctly. +- ~~Should agents operate on Unicode-normalized text with non-rendering characters stripped, or on raw text with a separate detection pass?~~ Model-bound + source content uses the filtered representation after Unicode/control-character + handling and prompt-injection scanning; raw source content is not exposed + ([ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md)). - How do we handle invisible Unicode in code itself (source files, not just metadata)? Some non-rendering characters are legitimate in string literals for internationalization. What heuristics distinguish malicious use from legitimate use? ## Threat 2: Insider threat / compromised credentials From 4408297d6399b254928ee299bb56335d668ad43c Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Wed, 7 Oct 2026 22:41:58 +0300 Subject: [PATCH 2/9] docs(adr): clarify per-record actor authorization Require each source-system record to carry independently resolved actor authorization, with co-fetched, event-bound, or lifetime-cached permission evidence. Redact unrecognized and unauthorized records before model admission, and clarify the target boundary for controlled retrieval capabilities. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- docs/ADRs/0024-harness-definitions.md | 2 + .../0098-entity-first-harness-evaluation.md | 3 +- ...actor-attributed-data-security-boundary.md | 106 ++++++++++++------ docs/architecture.md | 25 +++-- docs/problems/agent-architecture.md | 2 +- docs/problems/security-threat-model.md | 22 ++-- 6 files changed, 102 insertions(+), 58 deletions(-) diff --git a/docs/ADRs/0024-harness-definitions.md b/docs/ADRs/0024-harness-definitions.md index f6035721f3..ff48fd2717 100644 --- a/docs/ADRs/0024-harness-definitions.md +++ b/docs/ADRs/0024-harness-definitions.md @@ -96,6 +96,8 @@ parts: redaction post-tool). Omitting the `security` block enables all scanners with fail-closed semantics. Individual scanners can be toggled off per-harness, but there is no global kill switch. + The actor-attributed source-record admission and per-record authorization + boundary is defined by [ADR 0133](0133-actor-attributed-data-security-boundary.md). 14. **Validation loop** — an optional deterministic script that checks agent output and re-runs the same agent with feedback on failure. The current implementation supports re-running the previous agent with validation diff --git a/docs/ADRs/0098-entity-first-harness-evaluation.md b/docs/ADRs/0098-entity-first-harness-evaluation.md index cdbfab61cc..fc13d79c6d 100644 --- a/docs/ADRs/0098-entity-first-harness-evaluation.md +++ b/docs/ADRs/0098-entity-first-harness-evaluation.md @@ -131,7 +131,8 @@ state become platform responsibilities. enumeration may produce an empty set for state-only predicates. CEL can additionally restrict action using the retained elements and their current actor permissions, but does not select an element for a later authorization - gate. Further trust and injection filtering MAY run after CEL routing and + gate. Further trust and injection filtering MUST follow [ADR + 0133](0133-actor-attributed-data-security-boundary.md) after CEL routing and before the harness pre-script. Neither entity content nor a historical actor can alter the run's configured identity or permissions. - **Attribution:** A scheduled run without a prompting human is attributable to diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index e350f19ba9..c8e3ed026f 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -24,10 +24,13 @@ Accepted [ADR 0054](0054-require-authorization-on-all-agent-dispatch-paths.md) decides which actors are eligible to cause agent processing. [ADR 0107](0107-bot-identity-resolution-for-dispatch-authorization.md) extends that -decision to provider-resolved bot identities. Those decisions establish -authorization and provenance for deciding whether processing may begin; they do -not make the text produced by an authorized actor truthful, safe, or -authoritative. +decision to provider-resolved bot identities. [ADR +0098](0098-entity-first-harness-evaluation.md) gives trusted Fullsend +invocation provenance authority to discover entities, while requiring each +action-indicating entity record to meet its actor's current permission +threshold. These decisions establish authorization and provenance for deciding +whether processing may begin; they do not make the text produced by an +authorized actor truthful, safe, or authoritative. Agents nevertheless need to use actor-attributed data such as issue bodies, comments, reviews, commit messages, and linked records. That data may arrive @@ -43,30 +46,49 @@ Fullsend separates three decisions: whether a source actor is authorized for the relevant processing path, whether source content may be admitted as data or task guidance, and which fixed platform instructions and capabilities the model receives. -Authorization under ADR 0054, ADR 0107, or the trusted Fullsend-originated path -in ADR 0098 permits actor-attributed content to be considered for data -admission, regardless of whether the content was delivered by an event, -polling, a snapshot, or a proactive API read. This is bounded trust: content -with authorized provenance may inform analysis and, where the harness permits, -provide task instructions. It cannot grant platform authority or become a -source of credentials, identity, permissions, routing, harness configuration, -or capabilities. Admission is per source record; an authorized editor does not -launder earlier content authored by another actor, and an unattributed or -ambiguous producer is withheld from instruction use unless explicit platform -provenance covers it. + +Authorization under [ADR 0054](0054-require-authorization-on-all-agent-dispatch-paths.md) +and [ADR 0107](0107-bot-identity-resolution-for-dispatch-authorization.md), or +the trusted discovery provenance in [ADR +0098](0098-entity-first-harness-evaluation.md), permits actor-attributed +content to be considered for data admission, regardless of whether the +content was delivered by an event, polling, a snapshot, a proactive API read, +or a model-facing retrieval capability. Discovery provenance authorizes finding +the entity; it does not authorize the entity's content. + +Authorization is per source-system record and uses that record's actor. The +actor who updates a change proposal may differ from the actor who wrote a +comment on it, so the latter's authorization is evaluated independently. The +actor's applicable permission or recognized role MUST be co-fetched in the +same authoritative API response, delivered in the same verified event payload, +or lazily resolved from the authoritative source when first needed. A lazy +result MAY be cached for the lifetime of the event or entity structure that +requested it, but MUST NOT be reused for an unrelated record or structure. +The actor MUST meet the applicable observation or mutation threshold for the +selected harness. A label grant authorizes only its verified label transition; +it does not authorize unrelated content from that actor or other actors. + +This is bounded trust: content with authorized provenance may inform analysis +and, where the harness permits, provide task instructions. It cannot grant +platform authority or become a source of credentials, identity, permissions, +routing, harness configuration, or capabilities. Unrecognized, unauthorized, +unattributed, ambiguous, or unverifiable source-system records are redacted +before model admission; there is no data-only fallback for them. Before any selected actor-attributed content reaches a model, the host-side -input boundary MUST verify its source, actor attribution, and bounds and apply -the versioned content-filtering pipeline. The pipeline MUST perform Unicode and -control-character safety handling (including hidden and bidirectional -characters), sensitive-data and secret redaction, prompt-injection scanning, -and size limits. The model may receive only the resulting filtered -representation, with explicit data delimitation and any bounded omission or -finding metadata. Raw source content and rejected content MUST NOT be exposed -to the model or retained in ordinary run artifacts. - -Filtering is fail-closed for missing or unverifiable provenance, detector -failure or timeout, and content that the active policy cannot safely represent. +input boundary MUST verify its source-system record, actor attribution, actor +authorization, and bounds and apply the versioned content-filtering pipeline. +The pipeline MUST perform Unicode and control-character safety handling +(including hidden and bidirectional characters), sensitive-data and secret +redaction, prompt-injection scanning, and size limits. The model may receive +only the resulting filtered representation, with explicit data delimitation and +any bounded omission or finding metadata. Raw source content and rejected or +unauthorized content MUST NOT be exposed to the model or retained in ordinary +run artifacts. + +Filtering is fail-closed for missing or unverifiable provenance, missing or +failed actor authorization, detector failure or timeout, and content that the +active policy cannot safely represent. A blocking finding produces an omission or quarantine record rather than raw model input; the filter manifest records the disposition, digest, and bounded diagnostics without retaining the rejected body. The exact character policy, @@ -74,20 +96,32 @@ detector versions, dispositions, and compatibility rules belong in the versioned content-filter contract shared by all model-bound data paths. The model-facing prompt MUST preserve the provenance and boundary of filtered -source records relative to system/developer instructions and harness-provided -task instructions. Content from an authorized actor MAY guide task execution -within the configured harness scope, including by requesting an otherwise -permitted change. Content from an unauthorized, unattributed, or rejected -source MUST NOT be treated as an instruction. No source content may re-dispatch -the agent or elevate its identity, permissions, tools, capabilities, or -platform-owned instructions. The platform's pre-dispatch command parser and -deterministic, schema-validated host/post-script paths remain the only paths -that select a stage or perform a forge mutation. +source-system records relative to system/developer instructions and +harness-provided task instructions. Content from an authorized actor MAY guide +task execution within the configured harness scope, including by requesting an +otherwise permitted change. Content from a redacted source is absent from the +model context. No source content may re-dispatch the agent or elevate its +identity, permissions, tools, capabilities, or platform-owned instructions. +The platform's pre-dispatch command parser and deterministic, schema-validated +host/post-script paths remain the only paths that select a stage or perform a +forge mutation. + +This is a target contract. At the time of this ADR, the complete boundary is +not enforced on every model-bound path; existing adapters and runtimes retain +their compatibility behavior until they adopt the common attribution, +authorization, filtering, and redaction contract. + +Fullsend-controlled retrieval capabilities are part of this target boundary +and MUST return source-system records with the same attribution, +authorization, filtering, and redaction guarantees. Agent-authored arbitrary +API tools are outside the platform guarantee; a harness that requires this +boundary MUST use controlled capabilities rather than expose raw +source-system reads to the model. ## Consequences - Authorized contributors and recognized bots can provide useful context and task guidance, regardless of how the data is retrieved, without gaining platform authority. -- Every forge adapter, poller, snapshot builder, and proactive data source needs provenance binding, bounded retrieval, and the common filtering pipeline before its content is model-visible. +- Every forge adapter, poller, snapshot builder, proactive data source, and Fullsend-controlled model retrieval capability needs provenance binding, per-record authorization, bounded retrieval, and the common filtering pipeline before its content is model-visible. - Hidden-character and prompt-injection findings may omit legitimate-looking content, so the model and operators need bounded diagnostics rather than an assumption that all source text will be preserved. - Filtering reduces, but cannot prove the absence of prompt injection; immutable instructions, least privilege, output validation, and deterministic host-side mutations remain required defenses. - The data-filter contract becomes a versioned security boundary whose changes require compatibility review and regression testing across all model-bound data consumers. diff --git a/docs/architecture.md b/docs/architecture.md index 4430215eaa..b48f3bd44c 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -390,16 +390,21 @@ The existing design principle is that [the repo is the coordinator](problems/age non-label paths ([ADR 0107](ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md); [Authorization Contract v1](normative/authorization/v1/); [ADR 0054](ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md)). -- Data security boundary: authorization establishes which actor-attributed - content for a run, and authorized content may guide task execution within - the configured harness scope; this applies equally to events, polling, - snapshots, and proactive API reads. Before model exposure, host-side - filtering handles Unicode and hidden characters, redacts sensitive data, - scans for prompt injection, and applies size limits; only filtered, - provenance-labelled content reaches the model. Provenance or filtering - failures omit the content fail-closed, and source text cannot re-dispatch an - agent or elevate its identity, permissions, tools, capabilities, or - platform-owned instructions ([ADR 0133](ADRs/0133-actor-attributed-data-security-boundary.md)). +- **Target state — data security boundary:** authorization establishes which + actor-attributed content may be considered for admission to a run, and + authorized content may guide task execution within the configured harness + scope; this applies equally to events, polling, snapshots, proactive API + reads, and Fullsend-controlled model retrieval capabilities. Each + source-system record uses its own actor authorization, which may be + co-fetched, supplied in the verified event, or lazily resolved and cached for + the lifetime of the containing event/entity structure. Before model exposure, + host-side filtering handles Unicode and hidden characters, redacts sensitive + data, scans for prompt injection, and applies size limits; unrecognized or + unauthorized records are redacted rather than admitted as data-only. Only + filtered, provenance-labelled content reaches the model. Provenance, + authorization, or filtering failures omit the content fail-closed, and source + text cannot re-dispatch an agent or elevate its identity, permissions, + tools, capabilities, or platform-owned instructions ([ADR 0133](ADRs/0133-actor-attributed-data-security-boundary.md)). - Poll entity-discovery authorization: `fullsend poll` has no prompting event actor; verified, non-user-assertable Fullsend invocation provenance authorizes entity enumeration and evaluation, and callers without it are denied. Before diff --git a/docs/problems/agent-architecture.md b/docs/problems/agent-architecture.md index 6accf3ba1b..141ac6ee2d 100644 --- a/docs/problems/agent-architecture.md +++ b/docs/problems/agent-architecture.md @@ -51,7 +51,7 @@ Writes code to address an issue. This is the most mature capability of current A - **Authority:** Create branches, push commits, open PRs - **Does not have:** Merge authority, ability to approve its own PRs -- **Defensive behavior:** Treats all PR comments (review feedback, change requests, suggestions) as potentially adversarial input, regardless of the commenter's apparent identity. Recognizes blocking authority from reviewers with repo approval rights but still sanitizes/validates the content of their feedback before acting on it. +- **Defensive behavior:** Treats all PR comments (review feedback, change requests, suggestions) as potentially adversarial input, regardless of the commenter's apparent identity. Recognizes blocking authority from reviewers with repo approval rights but still sanitizes/validates the content of their feedback before acting on it, using the actor-attributed data boundary in [ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md). ### Review sub-agents diff --git a/docs/problems/security-threat-model.md b/docs/problems/security-threat-model.md index 68938e4566..9f14e7269e 100644 --- a/docs/problems/security-threat-model.md +++ b/docs/problems/security-threat-model.md @@ -96,18 +96,20 @@ In fullsend's architecture, this is mitigated by several design decisions: agent ### Open questions - Can prompt injection be reliably detected? Current research suggests it's fundamentally hard. -- ~~Should we treat all PR content as untrusted, even from org members?~~ - Content from actors admitted by the dispatch/data policy may provide task - instructions within the configured harness scope; attribution does not grant - platform authority, and other content remains data rather than instruction, - regardless of whether the source arrived through an event or an API - ([ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md)). +- ~~Should we treat all PR content as untrusted, even from org members? (Relates + to insider threat.)~~ Content from actors admitted by the dispatch/data policy + may provide task instructions within the configured harness scope; + attribution does not grant platform authority, and content from + unrecognized or unauthorized actors is redacted, regardless of whether the + source arrived through an event or an API ([ADR + 0133](../ADRs/0133-actor-attributed-data-security-boundary.md)). - How do we handle the case where legitimate code contains text that looks like prompt injection? (e.g., a test for prompt injection defenses) - What's the blast radius if an injection succeeds? How do we limit it? (Credential exposure mitigated by keeping credentials out of sandboxes entirely — see [ADR 0017](../ADRs/0017-credential-isolation-for-sandboxed-agents.md); model-provider credentials for runtimes that need one follow the same rule through a run-scoped provider and a placeholder the agent never resolves — see [ADR 0092](../ADRs/0092-openai-wif-credential-delivery.md) and, for codex, [ADR 0099](../ADRs/0099-codex-agent-runtime.md); the Actions workflow token used for GitHub Packages has its *placeholder* bound the same way, resolving only at the two registry hosts; but a value recovered through the registry's error echo is the job's own `GITHUB_TOKEN` and is replayable against whatever hosts the running role's forge profile already allows — read-write for `coder` — see [ADR 0114](../ADRs/0114-github-packages-via-host-bound-workflow-token-provider.md). Tool access limited by `permissions.deny` hard-blocks — see [ADR 0027](../ADRs/0027-allowed-and-disallowed-tools-for-agents.md). Other blast radius dimensions remain open.) -- ~~Should agents operate on Unicode-normalized text with non-rendering characters stripped, or on raw text with a separate detection pass?~~ Model-bound - source content uses the filtered representation after Unicode/control-character - handling and prompt-injection scanning; raw source content is not exposed - ([ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md)). +- Should agents operate on Unicode-normalized text with non-rendering characters + stripped, or on raw text with a separate detection pass? (ADR 0133 decides + that model-bound source content is the filtered representation and that raw + text is never exposed; strip versus detect-and-preserve remains deferred to + the versioned content-filter contract.) - How do we handle invisible Unicode in code itself (source files, not just metadata)? Some non-rendering characters are legitimate in string literals for internationalization. What heuristics distinguish malicious use from legitimate use? ## Threat 2: Insider threat / compromised credentials From 1ad49e2862f720a72cc1885e18d23edfe8560e01 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Wed, 7 Oct 2026 23:47:25 +0300 Subject: [PATCH 3/9] docs(adr): clarify authorization cache lifetime Define cache lifetime as a logical read and agent-invocation boundary. Re-fetches, retries, requeues, and termination followed by re-invocation require fresh authorization resolution even when an implementation reuses the same in-memory structure. Restore ADR 0098 wording and normalize the architecture entry. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- .../0098-entity-first-harness-evaluation.md | 3 +-- ...actor-attributed-data-security-boundary.md | 7 ++++++ docs/architecture.md | 22 +++++++++++-------- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/ADRs/0098-entity-first-harness-evaluation.md b/docs/ADRs/0098-entity-first-harness-evaluation.md index fc13d79c6d..cdbfab61cc 100644 --- a/docs/ADRs/0098-entity-first-harness-evaluation.md +++ b/docs/ADRs/0098-entity-first-harness-evaluation.md @@ -131,8 +131,7 @@ state become platform responsibilities. enumeration may produce an empty set for state-only predicates. CEL can additionally restrict action using the retained elements and their current actor permissions, but does not select an element for a later authorization - gate. Further trust and injection filtering MUST follow [ADR - 0133](0133-actor-attributed-data-security-boundary.md) after CEL routing and + gate. Further trust and injection filtering MAY run after CEL routing and before the harness pre-script. Neither entity content nor a historical actor can alter the run's configured identity or permissions. - **Attribution:** A scheduled run without a prompting human is attributable to diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index c8e3ed026f..f9896404ee 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -64,6 +64,13 @@ same authoritative API response, delivered in the same verified event payload, or lazily resolved from the authoritative source when first needed. A lazy result MAY be cached for the lifetime of the event or entity structure that requested it, but MUST NOT be reused for an unrelated record or structure. +This is a logical lifetime, not an object-identity lifetime: re-reading or +re-fetching the data, constructing a new structure for a retry or requeue, or +terminating and re-invoking the agent ends the current lifetime and requires a +new authorization result. The new result MUST be resolved again even if the +implementation mutates or reuses the same in-memory structure. Within one +such lifetime, this ADR does not require a separate wall-clock expiry or +revalidation. The actor MUST meet the applicable observation or mutation threshold for the selected harness. A label grant authorizes only its verified label transition; it does not authorize unrelated content from that actor or other actors. diff --git a/docs/architecture.md b/docs/architecture.md index b48f3bd44c..506752e50b 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -390,21 +390,25 @@ The existing design principle is that [the repo is the coordinator](problems/age non-label paths ([ADR 0107](ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md); [Authorization Contract v1](normative/authorization/v1/); [ADR 0054](ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md)). -- **Target state — data security boundary:** authorization establishes which +- Data security boundary (target state): authorization establishes which actor-attributed content may be considered for admission to a run, and authorized content may guide task execution within the configured harness scope; this applies equally to events, polling, snapshots, proactive API reads, and Fullsend-controlled model retrieval capabilities. Each source-system record uses its own actor authorization, which may be co-fetched, supplied in the verified event, or lazily resolved and cached for - the lifetime of the containing event/entity structure. Before model exposure, - host-side filtering handles Unicode and hidden characters, redacts sensitive - data, scans for prompt injection, and applies size limits; unrecognized or - unauthorized records are redacted rather than admitted as data-only. Only - filtered, provenance-labelled content reaches the model. Provenance, - authorization, or filtering failures omit the content fail-closed, and source - text cannot re-dispatch an agent or elevate its identity, permissions, - tools, capabilities, or platform-owned instructions ([ADR 0133](ADRs/0133-actor-attributed-data-security-boundary.md)). + the logical lifetime of the containing event/entity structure. Re-reading or + re-fetching the data, creating a new structure for retry/requeue, or + terminating and re-invoking the agent ends that lifetime and requires fresh + authorization resolution, even if the same in-memory structure is reused. + Before model exposure, host-side filtering handles Unicode and hidden + characters, redacts sensitive data, scans for prompt injection, and applies + size limits; unrecognized or unauthorized records are redacted rather than + admitted as data-only. Only filtered, provenance-labelled content reaches the + model. Provenance, authorization, or filtering failures omit the content + fail-closed, and source text cannot re-dispatch an agent or elevate its + identity, permissions, tools, capabilities, or platform-owned instructions + ([ADR 0133](ADRs/0133-actor-attributed-data-security-boundary.md)). - Poll entity-discovery authorization: `fullsend poll` has no prompting event actor; verified, non-user-assertable Fullsend invocation provenance authorizes entity enumeration and evaluation, and callers without it are denied. Before From 1cf736ffbf12595fad31bdaaeb21c99f9980fbd0 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Wed, 7 Oct 2026 23:54:03 +0300 Subject: [PATCH 4/9] docs(adr): define source-system actor admission Limit actor-attributed admission to records whose source system can reliably resolve actor identity and current authorization. Treat an authorized comment as one trusted text unit without nested trust distinctions for quoted or copied content. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- ...actor-attributed-data-security-boundary.md | 36 ++++++++++++++----- docs/architecture.md | 4 +++ 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index f9896404ee..6524a59d3c 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -33,12 +33,17 @@ whether processing may begin; they do not make the text produced by an authorized actor truthful, safe, or authoritative. Agents nevertheless need to use actor-attributed data such as issue bodies, -comments, reviews, commit messages, and linked records. That data may arrive -in the triggering event, a poll or snapshot, or a proactive read through -another authorized API. Comments from an authorized actor can contain genuine -task instructions that the agent must be able to heed. The boundary must still -prevent content from changing platform authority or capabilities, and must -protect against hidden Unicode, prompt injection, and indirect disclosure. +comments, reviews, and linked records. The boundary applies only to records +whose source system can reliably resolve the actor identity and current +authorization through its own authorization subsystem, such as GitHub pull +request or issue comments and Jira issue comments. Self-asserted author or +committer metadata is not sufficient; records whose actor cannot be reliably +established are redacted. That data may arrive in the triggering event, a poll +or snapshot, or a proactive read through another authorized API. Comments from +an authorized actor can contain genuine task instructions that the agent must +be able to heed. The boundary must still prevent content from changing +platform authority or capabilities, and must protect against hidden Unicode, +prompt injection, and indirect disclosure. ## Decision @@ -75,6 +80,14 @@ The actor MUST meet the applicable observation or mutation threshold for the selected harness. A label grant authorizes only its verified label transition; it does not authorize unrelated content from that actor or other actors. +Only a source-system record whose actor identity and current authorization can +be reliably fetched from the source system's authorization subsystem is +eligible for this boundary. GitHub pull request and issue comments and Jira +issue comments are representative examples. A self-asserted Git author, +committer, or account association does not establish actor identity for +admission; if the source system cannot establish the actor and authorization, +the record is redacted. + This is bounded trust: content with authorized provenance may inform analysis and, where the harness permits, provide task instructions. It cannot grant platform authority or become a source of credentials, identity, permissions, @@ -106,9 +119,14 @@ The model-facing prompt MUST preserve the provenance and boundary of filtered source-system records relative to system/developer instructions and harness-provided task instructions. Content from an authorized actor MAY guide task execution within the configured harness scope, including by requesting an -otherwise permitted change. Content from a redacted source is absent from the -model context. No source content may re-dispatch the agent or elevate its -identity, permissions, tools, capabilities, or platform-owned instructions. +otherwise permitted change. An authorized record is one trusted text unit for +this boundary: quoted, forwarded, or copied text inside that record is not +assigned a separate trust level, and the entire filtered record text is +admitted under the record actor's authorization. Separate linked records still +require their own attribution and authorization. Content from a redacted +source is absent from the model context. No source content may re-dispatch the +agent or elevate its identity, permissions, tools, capabilities, or +platform-owned instructions. The platform's pre-dispatch command parser and deterministic, schema-validated host/post-script paths remain the only paths that select a stage or perform a forge mutation. diff --git a/docs/architecture.md b/docs/architecture.md index 506752e50b..37a93d6dce 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -401,6 +401,10 @@ The existing design principle is that [the repo is the coordinator](problems/age re-fetching the data, creating a new structure for retry/requeue, or terminating and re-invoking the agent ends that lifetime and requires fresh authorization resolution, even if the same in-memory structure is reused. + Only records whose source system can reliably resolve actor identity and + current authorization through its own authorization subsystem are eligible; + quoted or copied text inside an authorized record remains part of that one + trusted record. Before model exposure, host-side filtering handles Unicode and hidden characters, redacts sensitive data, scans for prompt injection, and applies size limits; unrecognized or unauthorized records are redacted rather than From 927ec13b86edd58b2adc6b9093847a9c023ad04a Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Thu, 8 Oct 2026 01:34:02 +0300 Subject: [PATCH 5/9] docs(adr): add authorization freshness gates Require fresh actor authorization after event or retrieval admission and again immediately before sandbox initialization. Distinguish source-system record attribution from trusted authorization providers, and document the accepted residual risk of treating authorized comment text as one trusted unit. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- ...actor-attributed-data-security-boundary.md | 52 +++++++++++++------ docs/architecture.md | 11 ++-- 2 files changed, 42 insertions(+), 21 deletions(-) diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index 6524a59d3c..b80915681d 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -34,16 +34,21 @@ authorized actor truthful, safe, or authoritative. Agents nevertheless need to use actor-attributed data such as issue bodies, comments, reviews, and linked records. The boundary applies only to records -whose source system can reliably resolve the actor identity and current -authorization through its own authorization subsystem, such as GitHub pull -request or issue comments and Jira issue comments. Self-asserted author or -committer metadata is not sufficient; records whose actor cannot be reliably -established are redacted. That data may arrive in the triggering event, a poll -or snapshot, or a proactive read through another authorized API. Comments from -an authorized actor can contain genuine task instructions that the agent must -be able to heed. The boundary must still prevent content from changing -platform authority or capabilities, and must protect against hidden Unicode, -prompt injection, and indirect disclosure. +whose source system can reliably establish the record and actor attribution, +and for which Fullsend can obtain current authorization from the applicable +trusted authorization provider. That provider may be the source system's +permission subsystem or a configured provider recognized by [ADR +0054](0054-require-authorization-on-all-agent-dispatch-paths.md) and [ADR +0107](0107-bot-identity-resolution-for-dispatch-authorization.md), including +OWNERS-derived permissions and registered-bot roles. GitHub pull request or +issue comments and Jira issue comments are representative records. Self- +asserted author or committer metadata is not sufficient; records whose actor +cannot be reliably established are redacted. That data may arrive in the +triggering event, a poll or snapshot, or a proactive read through another +authorized API. Comments from an authorized actor can contain genuine task +instructions that the agent must be able to heed. The boundary must still +prevent content from changing platform authority or capabilities, and must +protect against hidden Unicode, prompt injection, and indirect disclosure. ## Decision @@ -80,13 +85,25 @@ The actor MUST meet the applicable observation or mutation threshold for the selected harness. A label grant authorizes only its verified label transition; it does not authorize unrelated content from that actor or other actors. -Only a source-system record whose actor identity and current authorization can -be reliably fetched from the source system's authorization subsystem is -eligible for this boundary. GitHub pull request and issue comments and Jira -issue comments are representative examples. A self-asserted Git author, -committer, or account association does not establish actor identity for -admission; if the source system cannot establish the actor and authorization, -the record is redacted. +Event-carried permission or role evidence may support initial event admission +and routing, but it MUST NOT satisfy later model-bound authorization checks. +For event-triggered runs, Fullsend MUST freshly resolve each record actor's +current authorization after event admission and before model admission. It +MUST freshly resolve that authorization again immediately before sandbox +initialization when the record will be exposed to a model in that sandbox. +Non-event retrieval paths perform the equivalent fresh resolution after +retrieval admission and before model admission, followed by the +sandbox-initialization check. A cache entry MUST NOT cross either checkpoint; +the actor MUST still meet the applicable threshold at both checks. Failure, +unavailability, or loss of authorization at either check redacts the record +and, if no authorized records remain, denies the run. + +Only a source-system record whose actor attribution can be reliably +established, and for which the applicable source-system or trusted-provider +authorization can be resolved, is eligible for this boundary. A self-asserted +Git author, committer, or account association does not establish actor identity +for admission; if the required attribution or authorization cannot be +established, the record is redacted. This is bounded trust: content with authorized provenance may inform analysis and, where the harness permits, provide task instructions. It cannot grant @@ -149,4 +166,5 @@ source-system reads to the model. - Every forge adapter, poller, snapshot builder, proactive data source, and Fullsend-controlled model retrieval capability needs provenance binding, per-record authorization, bounded retrieval, and the common filtering pipeline before its content is model-visible. - Hidden-character and prompt-injection findings may omit legitimate-looking content, so the model and operators need bounded diagnostics rather than an assumption that all source text will be preserved. - Filtering reduces, but cannot prove the absence of prompt injection; immutable instructions, least privilege, output validation, and deterministic host-side mutations remain required defenses. +- Quoted, forwarded, or copied text is intentionally not detected or assigned a separate trust level inside an authorized record. A trusted actor or bot can therefore relay hostile text as part of a trusted record; this residual risk is accepted in exchange for a whole-record admission model, and is mitigated by trusted-actor caution, filtering, explicit delimitation, least privilege, output validation, deterministic host-side mutations, and the fresh authorization checkpoints. - The data-filter contract becomes a versioned security boundary whose changes require compatibility review and regression testing across all model-bound data consumers. diff --git a/docs/architecture.md b/docs/architecture.md index 37a93d6dce..a23b5640fd 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -401,10 +401,13 @@ The existing design principle is that [the repo is the coordinator](problems/age re-fetching the data, creating a new structure for retry/requeue, or terminating and re-invoking the agent ends that lifetime and requires fresh authorization resolution, even if the same in-memory structure is reused. - Only records whose source system can reliably resolve actor identity and - current authorization through its own authorization subsystem are eligible; - quoted or copied text inside an authorized record remains part of that one - trusted record. + Only records whose source system can reliably establish record/actor + attribution and whose current authorization can be resolved through the + applicable source-system or trusted provider are eligible; this includes + configured OWNERS-derived permissions and registered-bot roles. Event-carried + authorization is re-resolved after event admission and again immediately + before sandbox initialization. Quoted or copied text inside an authorized + record remains part of that one trusted record. Before model exposure, host-side filtering handles Unicode and hidden characters, redacts sensitive data, scans for prompt injection, and applies size limits; unrecognized or unauthorized records are redacted rather than From ee17f39bbd210021b7b1c508d8b5beaa7db451e0 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Thu, 8 Oct 2026 12:20:17 +0300 Subject: [PATCH 6/9] docs(adr): close model-bound authorization gaps Define fresh authorization for preloaded and mid-run retrieved records, bind admission to the exact current source-system revision, and document whole-record trust controls and residual risk. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- ...actor-attributed-data-security-boundary.md | 26 +++++++++++++++---- docs/architecture.md | 6 +++-- docs/problems/security-threat-model.md | 2 +- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index b80915681d..5b255a3c40 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -69,6 +69,12 @@ the entity; it does not authorize the entity's content. Authorization is per source-system record and uses that record's actor. The actor who updates a change proposal may differ from the actor who wrote a comment on it, so the latter's authorization is evaluated independently. The +checked actor is the principal authenticated by the source system as having +produced the exact current content revision: the creator for a never-edited +record, or the latest authenticated editor when the source system records an +edit. An event sender, poller, or retrieval credential never substitutes for +that revision actor. If the source system cannot establish attribution for the +current revision, the record is redacted. actor's applicable permission or recognized role MUST be co-fetched in the same authoritative API response, delivered in the same verified event payload, or lazily resolved from the authoritative source when first needed. A lazy @@ -90,13 +96,22 @@ and routing, but it MUST NOT satisfy later model-bound authorization checks. For event-triggered runs, Fullsend MUST freshly resolve each record actor's current authorization after event admission and before model admission. It MUST freshly resolve that authorization again immediately before sandbox -initialization when the record will be exposed to a model in that sandbox. +initialization and immediately before the first model exposure when the record +will be exposed to a model in that sandbox; if those operations are contiguous, +the same fresh check may serve both gates. Revocation after first exposure +cannot retract content already in the model context, but every later retrieval +result has its own release check. Non-event retrieval paths perform the equivalent fresh resolution after retrieval admission and before model admission, followed by the -sandbox-initialization check. A cache entry MUST NOT cross either checkpoint; -the actor MUST still meet the applicable threshold at both checks. Failure, -unavailability, or loss of authorization at either check redacts the record -and, if no authorized records remain, denies the run. +sandbox-initialization and first-exposure checks. Preloaded records use the +sandbox gates; a Fullsend-controlled capability invoked after sandbox +initialization MUST freshly resolve authorization immediately before releasing +each retrieved result to the model. That release check is the equivalent +checkpoint for mid-run retrieval and MUST apply the same filtering, cache, and +failure semantics. A cache entry MUST NOT cross any checkpoint; the actor MUST +still meet the applicable threshold at each check. Failure, unavailability, or +loss of authorization at a check redacts the record and, if no authorized +records remain, denies the run. Only a source-system record whose actor attribution can be reliably established, and for which the applicable source-system or trusted-provider @@ -167,4 +182,5 @@ source-system reads to the model. - Hidden-character and prompt-injection findings may omit legitimate-looking content, so the model and operators need bounded diagnostics rather than an assumption that all source text will be preserved. - Filtering reduces, but cannot prove the absence of prompt injection; immutable instructions, least privilege, output validation, and deterministic host-side mutations remain required defenses. - Quoted, forwarded, or copied text is intentionally not detected or assigned a separate trust level inside an authorized record. A trusted actor or bot can therefore relay hostile text as part of a trusted record; this residual risk is accepted in exchange for a whole-record admission model, and is mitigated by trusted-actor caution, filtering, explicit delimitation, least privilege, output validation, deterministic host-side mutations, and the fresh authorization checkpoints. +- Any harness that admits an authorized record as task guidance MUST keep that guidance within its configured scope and enforce least privilege, output validation, and deterministic host-side mutation rules; the whole-record rule does not authorize a new stage, capability, provider, or separate source-system record. - The data-filter contract becomes a versioned security boundary whose changes require compatibility review and regression testing across all model-bound data consumers. diff --git a/docs/architecture.md b/docs/architecture.md index a23b5640fd..9d57bd6211 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -406,8 +406,10 @@ The existing design principle is that [the repo is the coordinator](problems/age applicable source-system or trusted provider are eligible; this includes configured OWNERS-derived permissions and registered-bot roles. Event-carried authorization is re-resolved after event admission and again immediately - before sandbox initialization. Quoted or copied text inside an authorized - record remains part of that one trusted record. + before sandbox initialization and immediately before first model exposure; + mid-run controlled retrievals perform the equivalent fresh check immediately + before releasing each result to the model. Quoted or copied text inside an + authorized record remains part of that one trusted record. Before model exposure, host-side filtering handles Unicode and hidden characters, redacts sensitive data, scans for prompt injection, and applies size limits; unrecognized or unauthorized records are redacted rather than diff --git a/docs/problems/security-threat-model.md b/docs/problems/security-threat-model.md index 9f14e7269e..80fbf26cee 100644 --- a/docs/problems/security-threat-model.md +++ b/docs/problems/security-threat-model.md @@ -110,7 +110,7 @@ In fullsend's architecture, this is mitigated by several design decisions: agent that model-bound source content is the filtered representation and that raw text is never exposed; strip versus detect-and-preserve remains deferred to the versioned content-filter contract.) -- How do we handle invisible Unicode in code itself (source files, not just metadata)? Some non-rendering characters are legitimate in string literals for internationalization. What heuristics distinguish malicious use from legitimate use? +- How do we handle invisible Unicode in code itself (source files, not just metadata)? Some non-rendering characters are legitimate in string literals for internationalization. What heuristics distinguish malicious use from legitimate use? [ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md) defines the source-content boundary; code-content handling remains open. ## Threat 2: Insider threat / compromised credentials From 5d6e3982fa28c6d6be671c17b0f904a482206a65 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Thu, 8 Oct 2026 13:16:31 +0300 Subject: [PATCH 7/9] docs(adr): fix review wording and cross-references Fix the revision-authorization sentence boundary, repair the threat-model link, and distinguish dispatch authorization from model-bound admission in related normative documentation. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- docs/ADRs/0098-entity-first-harness-evaluation.md | 5 ++++- docs/ADRs/0133-actor-attributed-data-security-boundary.md | 4 ++-- docs/normative/authorization/v1/README.md | 6 +++++- docs/problems/security-threat-model.md | 5 +++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/ADRs/0098-entity-first-harness-evaluation.md b/docs/ADRs/0098-entity-first-harness-evaluation.md index cdbfab61cc..d49e137350 100644 --- a/docs/ADRs/0098-entity-first-harness-evaluation.md +++ b/docs/ADRs/0098-entity-first-harness-evaluation.md @@ -122,7 +122,10 @@ state become platform responsibilities. continues to authorize event-backed dispatch from its event actor. A `fullsend poll` entity-discovery run is instead authorized by its trusted Fullsend-controlled origin; callers that cannot establish that provenance are - denied. Entity history remains untrusted input. For each candidate harness, + denied. Entity history remains untrusted input for this evaluation. [ADR + 0133](0133-actor-attributed-data-security-boundary.md) defines the separate + model-bound admission contract for filtered, actor-attributed content. For + each candidate harness, before evaluating its CEL predicate, the platform MUST enumerate a platform-defined closed superset of action-indicating elements for the entity kind and remove those whose actor's current permission does not meet that diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index 5b255a3c40..e86a13b6ba 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -74,8 +74,8 @@ produced the exact current content revision: the creator for a never-edited record, or the latest authenticated editor when the source system records an edit. An event sender, poller, or retrieval credential never substitutes for that revision actor. If the source system cannot establish attribution for the -current revision, the record is redacted. -actor's applicable permission or recognized role MUST be co-fetched in the +current revision, the record is redacted. The actor's applicable permission or +recognized role MUST be co-fetched in the same authoritative API response, delivered in the same verified event payload, or lazily resolved from the authoritative source when first needed. A lazy result MAY be cached for the lifetime of the event or entity structure that diff --git a/docs/normative/authorization/v1/README.md b/docs/normative/authorization/v1/README.md index 5c459ba5b7..4603f722dd 100644 --- a/docs/normative/authorization/v1/README.md +++ b/docs/normative/authorization/v1/README.md @@ -308,7 +308,11 @@ Fullsend MUST omit or minimize other unneeded untrusted fields where the normalized entity contract permits, while retaining the state, content, and actor provenance required by the harness. Further trust or injection filtering MAY run after CEL routing and before the harness pre-script. Retained content -remains untrusted throughout. Any resulting agent run uses the harness's +remains untrusted for dispatch and CEL evaluation throughout. [ADR 0133] +(../../../ADRs/0133-actor-attributed-data-security-boundary.md) defines the +separate model-bound admission gate: only filtered content whose source record +and current actor authorization satisfy that ADR may be exposed to the model +under bounded harness scope. Any resulting agent run uses the harness's configured identity and permissions. ## Excluded fields diff --git a/docs/problems/security-threat-model.md b/docs/problems/security-threat-model.md index 80fbf26cee..1de160911c 100644 --- a/docs/problems/security-threat-model.md +++ b/docs/problems/security-threat-model.md @@ -106,8 +106,9 @@ In fullsend's architecture, this is mitigated by several design decisions: agent - How do we handle the case where legitimate code contains text that looks like prompt injection? (e.g., a test for prompt injection defenses) - What's the blast radius if an injection succeeds? How do we limit it? (Credential exposure mitigated by keeping credentials out of sandboxes entirely — see [ADR 0017](../ADRs/0017-credential-isolation-for-sandboxed-agents.md); model-provider credentials for runtimes that need one follow the same rule through a run-scoped provider and a placeholder the agent never resolves — see [ADR 0092](../ADRs/0092-openai-wif-credential-delivery.md) and, for codex, [ADR 0099](../ADRs/0099-codex-agent-runtime.md); the Actions workflow token used for GitHub Packages has its *placeholder* bound the same way, resolving only at the two registry hosts; but a value recovered through the registry's error echo is the job's own `GITHUB_TOKEN` and is replayable against whatever hosts the running role's forge profile already allows — read-write for `coder` — see [ADR 0114](../ADRs/0114-github-packages-via-host-bound-workflow-token-provider.md). Tool access limited by `permissions.deny` hard-blocks — see [ADR 0027](../ADRs/0027-allowed-and-disallowed-tools-for-agents.md). Other blast radius dimensions remain open.) - Should agents operate on Unicode-normalized text with non-rendering characters - stripped, or on raw text with a separate detection pass? (ADR 0133 decides - that model-bound source content is the filtered representation and that raw + stripped, or on raw text with a separate detection pass? ([ADR + 0133](../ADRs/0133-actor-attributed-data-security-boundary.md) decides that + model-bound source content is the filtered representation and that raw text is never exposed; strip versus detect-and-preserve remains deferred to the versioned content-filter contract.) - How do we handle invisible Unicode in code itself (source files, not just metadata)? Some non-rendering characters are legitimate in string literals for internationalization. What heuristics distinguish malicious use from legitimate use? [ADR 0133](../ADRs/0133-actor-attributed-data-security-boundary.md) defines the source-content boundary; code-content handling remains open. From 0c9efb36198bf6a1469966c2bb6f6fc7babe3845 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Thu, 8 Oct 2026 14:28:34 +0300 Subject: [PATCH 8/9] docs(adr): fix normative ADR link Keep the ADR 0133 cross-reference intact so the normative authorization boundary renders as a Markdown link. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- docs/normative/authorization/v1/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/normative/authorization/v1/README.md b/docs/normative/authorization/v1/README.md index 4603f722dd..1efa562cf8 100644 --- a/docs/normative/authorization/v1/README.md +++ b/docs/normative/authorization/v1/README.md @@ -308,12 +308,11 @@ Fullsend MUST omit or minimize other unneeded untrusted fields where the normalized entity contract permits, while retaining the state, content, and actor provenance required by the harness. Further trust or injection filtering MAY run after CEL routing and before the harness pre-script. Retained content -remains untrusted for dispatch and CEL evaluation throughout. [ADR 0133] -(../../../ADRs/0133-actor-attributed-data-security-boundary.md) defines the -separate model-bound admission gate: only filtered content whose source record -and current actor authorization satisfy that ADR may be exposed to the model -under bounded harness scope. Any resulting agent run uses the harness's -configured identity and permissions. +remains untrusted for dispatch and CEL evaluation throughout. [ADR 0133](../../../ADRs/0133-actor-attributed-data-security-boundary.md) +defines the separate model-bound admission gate: only filtered content whose +source record and current actor authorization satisfy that ADR may be exposed +to the model under bounded harness scope. Any resulting agent run uses the +harness's configured identity and permissions. ## Excluded fields From ca4abb996f9d4f8d94465c9236e20b21178b90ad Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Thu, 8 Oct 2026 14:46:45 +0300 Subject: [PATCH 9/9] docs(adr): clarify bot data admission Define the model-bound admission rule for registered bot actors and restore ADR 0098's exact accepted decision wording. Signed-off-by: Barak Korren Assisted-by: Codex (gpt-5.6-sol) --- docs/ADRs/0098-entity-first-harness-evaluation.md | 6 +++--- .../0133-actor-attributed-data-security-boundary.md | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/ADRs/0098-entity-first-harness-evaluation.md b/docs/ADRs/0098-entity-first-harness-evaluation.md index d49e137350..d0b1f22d0b 100644 --- a/docs/ADRs/0098-entity-first-harness-evaluation.md +++ b/docs/ADRs/0098-entity-first-harness-evaluation.md @@ -122,9 +122,9 @@ state become platform responsibilities. continues to authorize event-backed dispatch from its event actor. A `fullsend poll` entity-discovery run is instead authorized by its trusted Fullsend-controlled origin; callers that cannot establish that provenance are - denied. Entity history remains untrusted input for this evaluation. [ADR - 0133](0133-actor-attributed-data-security-boundary.md) defines the separate - model-bound admission contract for filtered, actor-attributed content. For + denied. Entity history remains untrusted input. The separate model-bound + admission contract for filtered, actor-attributed content is defined by [ADR + 0133](0133-actor-attributed-data-security-boundary.md). For each candidate harness, before evaluating its CEL predicate, the platform MUST enumerate a platform-defined closed superset of action-indicating elements for the entity diff --git a/docs/ADRs/0133-actor-attributed-data-security-boundary.md b/docs/ADRs/0133-actor-attributed-data-security-boundary.md index e86a13b6ba..1969236988 100644 --- a/docs/ADRs/0133-actor-attributed-data-security-boundary.md +++ b/docs/ADRs/0133-actor-attributed-data-security-boundary.md @@ -88,8 +88,15 @@ implementation mutates or reuses the same in-memory structure. Within one such lifetime, this ADR does not require a separate wall-clock expiry or revalidation. The actor MUST meet the applicable observation or mutation threshold for the -selected harness. A label grant authorizes only its verified label transition; -it does not authorize unrelated content from that actor or other actors. +selected harness. For a human actor, this means the applicable current forge +permission threshold. For a bot actor, whose `actor.role` remains `none`, a +fresh provider-backed exact `actor.bot_role` recognition under ADR 0107 +satisfies this gate only when the selected harness policy admits that bot role +for the record's operation; the ordinary `actor.role` threshold does not apply. +An unrecognized, unresolved, or disallowed bot role fails closed and the +record is redacted. A label grant authorizes only its verified label +transition; it does not authorize unrelated content from that actor or other +actors. Event-carried permission or role evidence may support initial event admission and routing, but it MUST NOT satisfy later model-bound authorization checks.