From a38de4b6bfe70f77757f44d291aa45a45bd2c88d Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Fri, 6 Nov 2026 20:30:16 -0500 Subject: [PATCH 1/7] docs(adr): add ADR 0161, repo config limits what a run artifact publishes Add an artifacts setting in config.yaml with levels all, metadata and none, resolved per run as the strictest of the default, the trigger source and each attached provider. metadata is an allowlist of run-level files and filtering fails closed. Amends ADR 0021, whose per-agent opt-out was never built. Refs #9122 Assisted-by: Claude (draft), Gemini (decision review, prose review) Signed-off-by: Wayne Sun --- .../0021-jsonl-reasoning-trace-exposure.md | 4 + ...repo-config-limits-run-artifact-content.md | 125 ++++++++++++++++++ docs/architecture.md | 2 +- docs/problems/operational-observability.md | 2 +- 4 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 docs/ADRs/0161-repo-config-limits-run-artifact-content.md diff --git a/docs/ADRs/0021-jsonl-reasoning-trace-exposure.md b/docs/ADRs/0021-jsonl-reasoning-trace-exposure.md index 062e030d59..330c194bd6 100644 --- a/docs/ADRs/0021-jsonl-reasoning-trace-exposure.md +++ b/docs/ADRs/0021-jsonl-reasoning-trace-exposure.md @@ -19,6 +19,10 @@ Date: 2026-04-15 Accepted +*Amended by [ADR 0161](0161-repo-config-limits-run-artifact-content.md), which +replaces the per-agent suppression opt-out with a repo-level `artifacts` +setting in `config.yaml`.* + ## Context The retro agent needs access to the raw JSONL conversation transcripts that diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md new file mode 100644 index 0000000000..e1e7ebc4d9 --- /dev/null +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -0,0 +1,125 @@ +--- +title: "161. Repo config limits what a run artifact publishes" +status: Accepted +relates_to: + - security-threat-model + - operational-observability +topics: + - security + - observability + - configuration +--- + +# 161. Repo config limits what a run artifact publishes + +Date: 2026-11-06 + +Amends: [ADR 0021](0021-jsonl-reasoning-trace-exposure.md) + +## Status + +Accepted + +## Context + +Every agent run uploads its whole `output/` directory as the run artifact: +`fullsend-` on GitHub Actions, and job artifacts on GitLab CI. Each run +directory holds one `iteration-/` directory per iteration, with the raw +conversation stream (`output.jsonl`), `transcripts/` and the agent's output +files. Next to them sit run-level files: `metrics.json`, +`run-telemetry.jsonl`, `eval-measurements.jsonl` and +`security/findings.jsonl`. The telemetry file carries conversation content +when content capture is on +([ADR 0050](0050-distributed-tracing-instrumentation.md)). Nothing skips the +upload or narrows what it holds. + +[ADR 0021](0021-jsonl-reasoning-trace-exposure.md) keeps transcripts by +default and relies on owner-scoped access. It lets an agent's own YAML opt out +when the agent reads protected sources beyond the target repo. That opt-out +was never built. Two facts change where the switch should live: + +- On a public repo, any signed-in user can download the artifact until it + expires, so access is not owner-scoped. +- Whether a run reads private data depends on the repo's sources and + providers, not on the agent. A GitHub-triggered run with a read-only Jira + provider attached can read private tracker text. A Jira-triggered run always + does. + +The output scan masks secret literals. It does not remove personal data, +customer names or private business text +([#9122](https://github.com/fullsend-ai/fullsend/issues/9122)). + +This ADR aims to let a repo owner stop publishing conversation content in the +run artifact for runs that read private data. + +## Decision + +We add an `artifacts` setting to `config.yaml` that limits what a run artifact +publishes, so a public repo can use private sources without publishing what +its agents read. + +```yaml +artifacts: + content: all # all (default) | metadata | none + by_source: + jira: metadata # key: the run's event.source.system + by_provider: + jira-ro: metadata # key: an attached provider's name (example name) +``` + +| Level | Artifact holds | +|---|---| +| `all` | Everything in `output/`, as today. This is the default. | +| `metadata` | Only the run-level files: `metrics.json`, `eval-measurements.jsonl`, `security/findings.jsonl`, and `run-telemetry.jsonl` with conversation content removed. Every `iteration-/` directory and any other file is left out. | +| `none` | No artifact is uploaded. | + +- **It lives in `config.yaml`, not in agent YAML.** The setting applies the + same way to every agent, so + [ADR 0080](0080-config-yaml-vs-agent-env-var-scope.md) puts it in + `config.yaml`. This replaces ADR 0021's per-agent opt-out. +- **The strictest level wins.** The runner picks one level per run: the + strictest of `content`, the `by_source` entry for the run's + `event.source.system`, and the `by_provider` entry for each attached + provider. `by_provider` keys match a provider's configured name. When the + source is missing or not listed, only `content` and the provider entries + count. `none` is stricter than `metadata`, which is stricter than `all`. +- **Keys are open strings.** A new source or provider name works as a key + without a schema change. +- **Layers merge per key.** Across `config.base.yaml` and `config.yaml`, a set + `content` overrides, and `by_source` and `by_provider` merge per key. + Lowering an effective level toward `all` is a relaxation under the + [ADR 0122](0122-declarative-repo-configuration.md) safety gate, so it needs + an explicit declaration. +- **Metadata is an allowlist.** `metadata` copies only the files named above. + A file added to `output/` later stays out until this list names it. +- **Filtering happens after local use, and fails closed.** The runner leaves + `output/` untouched, so `fullsend eval-measure` and post-scripts read the + full run. A step after them builds a staged copy, and only that copy is + uploaded. If the level cannot be resolved, the staged copy is empty and the + raw `output/` is never uploaded. +- **Content capture is unchanged.** Exporting over OTLP to a backend the repo + owner controls still works under every level, as in ADR 0050. + +The rest of ADR 0021 stands: full transcripts by default, and credential +scanning as an invariant check. Artifact retention is out of scope. + +## Forge scope + +- **GitHub:** the existing upload step uploads the staged copy, and is skipped + for `none`. +- **GitLab:** the job artifact path points at the staged copy. +- **Forgejo:** no run workflow yet; it uses the same staged copy when one + lands. + +All forges read the same `config.yaml` setting. + +## Consequences + +- A repo can withhold conversation content for Jira-triggered runs or runs + with a private-data provider attached, and keep `all` elsewhere. +- The retro agent, session resumption and follow-up workflows that download + the artifact get no transcripts under `metadata` and no artifact under + `none`, which the user guide must document. +- When the setting is unset, the artifact matches today's. +- Changing the level is a `config.yaml` change, so it goes through the repo's + normal review and CODEOWNERS. diff --git a/docs/architecture.md b/docs/architecture.md index c52b43a73e..791ab60315 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -679,7 +679,7 @@ Observability is a cross-cutting concern that touches every other component. Eac **Decided:** -- JSONL reasoning trace exposure: raw JSONL conversation transcripts are extracted from sandboxes and stored with owner-scoped access. Credential scanning acts as an invariant check on [ADR 0017](ADRs/0017-credential-isolation-for-sandboxed-agents.md)'s isolation model. Agents handling data from protected sources beyond the target repo can opt in to JSONL suppression via configuration ([ADR 0021](ADRs/0021-jsonl-reasoning-trace-exposure.md)). +- JSONL reasoning trace exposure: raw JSONL conversation transcripts are extracted from sandboxes and stored with owner-scoped access. Credential scanning acts as an invariant check on [ADR 0017](ADRs/0017-credential-isolation-for-sandboxed-agents.md)'s isolation model. Agents handling data from protected sources beyond the target repo can opt in to JSONL suppression via configuration ([ADR 0021](ADRs/0021-jsonl-reasoning-trace-exposure.md)). A repo-level `artifacts` setting in `config.yaml` replaces that per-agent opt-out and can leave out transcripts or the whole artifact per source and provider ([ADR 0161](ADRs/0161-repo-config-limits-run-artifact-content.md)). - Event-driven stage dispatch remains traceable end-to-end in the GitHub Actions UI by using synchronous `workflow_call` dispatch (see [ADR 0041](ADRs/0041-synchronous-workflow-call-event-dispatch.md)). - Scheduled entity-discovery runs are attributable to the verified fullsend invocation identity, target repository, effective policy, harness revision, diff --git a/docs/problems/operational-observability.md b/docs/problems/operational-observability.md index 20f61bd7df..7ec6773d37 100644 --- a/docs/problems/operational-observability.md +++ b/docs/problems/operational-observability.md @@ -209,7 +209,7 @@ This works for early experimentation when the volume is low and the operators ar - What is the right level of trace granularity? Input context is largely already stored in git and GitHub, so traces can reference it by pointer. But full prompt/completion pairs — the novel data — are expensive to store and may contain sensitive content. Is there a middle ground — e.g., capturing token counts and decision summaries by default, with full prompt/completion pairs available on demand? (Span granularity decided in [ADR 0108](../ADRs/0108-tool-call-span-topology.md): one `execute_tool` span per id-bearing tool call (Claude Code and pi), up to 1,024 per iteration, metadata only, with content opt-in at Level 3 per [ADR 0050](../ADRs/0050-distributed-tracing-instrumentation.md). Retention and access remain open.) - ~~How do we keep the triggering event and the agent run linked in the GitHub Actions UI for debugging?~~ Decided in [ADR 0041](../ADRs/0041-synchronous-workflow-call-event-dispatch.md) (synchronous `workflow_call` dispatch for the event path). -- How should trace access be controlled? (JSONL trace exposure decided in [ADR 0021](../ADRs/0021-jsonl-reasoning-trace-exposure.md): owner-scoped storage with credential scanning as defense-in-depth. Broader question of balancing security and transparency for non-JSONL observability data remains open.) +- How should trace access be controlled? (JSONL trace exposure decided in [ADR 0021](../ADRs/0021-jsonl-reasoning-trace-exposure.md): owner-scoped storage with credential scanning as defense-in-depth. Repo-level limits on what a run artifact publishes, per source and provider, decided in [ADR 0161](../ADRs/0161-repo-config-limits-run-artifact-content.md). Broader question of balancing security and transparency for non-JSONL observability data remains open.) - What retention policy applies to traces? Indefinite retention supports audit requirements but increases storage cost and data sensitivity exposure. Time-bounded retention (e.g., 90 days) limits exposure but may lose traces needed for incident investigation. - How do we measure "is the system getting better"? What metrics constitute a meaningful quality signal for an autonomous software factory? Merge revert rate? Human override rate? Time-to-review? Cost per decision? Some composite score? The choice of metric shapes what gets optimized. First-ship trend scores (trace fitness on wild runs, local `eval-measurements.jsonl`) are [ADR 0087](../ADRs/0087-eval-measurements-online-trace-scoring.md); richer quality signals remain open. - Should trace scoring cover run *health*, not just trace *health*? Trace *fitness* ([ADR 0087](../ADRs/0087-eval-measurements-online-trace-scoring.md)'s `trace_fitness`) checks that a run's telemetry is well-formed — span tree, identity, model, usage, cost, and exit present and coherent — but not whether the run *behaved* correctly. A separate class of failure is structurally decidable straight from the trace, with no model in the loop: a tool that returned an error the run then ignored, an errored result reused by a later side-effecting call, no-progress loops, or a job that reports success despite an in-trace failure (e.g. [#6621](https://github.com/fullsend-ai/fullsend/issues/6621)). Two questions follow. First, does the eval-measure layer grow a second scorer for these run-*health* defects — the deterministic complement to the statistical evals in [testing-agents.md](testing-agents.md), catching what is provable from a single trace rather than what needs repeated runs — or does behavioral correctness belong with the review and retro agents instead? Second, there is a prerequisite either way: the structured-trace ideal described above records each tool call's result, but tool *results* are only partly on the trace: `execute_tool` spans carry per-call error status (`error.type=tool_error` when a result is flagged `is_error`, [ADR 0108](../ADRs/0108-tool-call-span-topology.md)) only for id-bearing calls — Claude Code and pi; codex emits no call ids ([#7414](https://github.com/fullsend-ai/fullsend/issues/7414)) — and result content is recorded only at opt-in Level 3 ([ADR 0050](../ADRs/0050-distributed-tracing-instrumentation.md)), again on Claude and pi runs only. The highest-value rules therefore still depend on extending capture across runtimes and levels — itself a telemetry-contract decision. Prior discussion in [#7246](https://github.com/fullsend-ai/fullsend/issues/7246). From 58eb27c4325f0aec91a4bb2d63a6ac732f078d47 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Fri, 6 Nov 2026 20:56:47 -0500 Subject: [PATCH 2/7] docs(adr): key ADR 0161 on run source only, for any tracker Drop by_provider: for the shipped agents it selected the same runs as the jira source under a second, internal name. by_source keys are the run source names users see, so any issue tracker that is not public gets the same switch when its adapter lands. Jira is the first example. Refs #9122 Assisted-by: Claude (edit), Gemini (decision review, prose review) Signed-off-by: Wayne Sun --- ...repo-config-limits-run-artifact-content.md | 83 ++++++++++++------- docs/architecture.md | 2 +- docs/problems/operational-observability.md | 2 +- 3 files changed, 54 insertions(+), 33 deletions(-) diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md index e1e7ebc4d9..a88354da65 100644 --- a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -40,33 +40,53 @@ was never built. Two facts change where the switch should live: - On a public repo, any signed-in user can download the artifact until it expires, so access is not owner-scoped. -- Whether a run reads private data depends on the repo's sources and - providers, not on the agent. A GitHub-triggered run with a read-only Jira - provider attached can read private tracker text. A Jira-triggered run always - does. +- Whether a run reads private data depends on where the run started, not on + which agent runs. A repo can take work from an issue tracker that is not + public, and a run started there reads that tracker's issue. A harness gives + the sandbox access to such a tracker through an overlay on the run's source + ([ADR 0088](0088-cel-guarded-overlays.md)). Jira is the first such tracker: + the shipped code and triage harnesses attach read-only Jira access only when + `event.source.system == "jira"`. Others may follow. The output scan masks secret literals. It does not remove personal data, customer names or private business text ([#9122](https://github.com/fullsend-ai/fullsend/issues/9122)). This ADR aims to let a repo owner stop publishing conversation content in the -run artifact for runs that read private data. +run artifact for runs started from a source that is not public. + + +## Options + +- **Key by provider as well as source**, for example `jira-ro`, the + read-only Jira provider. For the shipped agents, that provider key selects + the same runs as the `jira` source, under a second, internal name. A custom agent that reads + a private system on runs from every source can set `content` for the whole + repo instead. Rejected. +- **A tracker-specific switch**, such as `jira.artifacts`. Every new tracker + would need its own key and code. Rejected. ## Decision We add an `artifacts` setting to `config.yaml` that limits what a run artifact -publishes, so a public repo can use private sources without publishing what -its agents read. +publishes for each run source, so a public repo can take work from issue +trackers that are not public without publishing what its agents read. ```yaml artifacts: - content: all # all (default) | metadata | none + content: all # every run: all (default) | metadata | none by_source: - jira: metadata # key: the run's event.source.system - by_provider: - jira-ro: metadata # key: an attached provider's name (example name) + jira: metadata # runs started from a Jira issue ``` +- `content` applies to every run. +- `by_source` applies to runs started from one source. Each key names where + the work came from: `github` (a GitHub issue or PR), `gitlab` (a GitLab + issue or MR), `jira` (a Jira issue), `manual` (a run you start by hand) or + `schedule` (a scheduled run). It is the same value CEL triggers see as + `event.source.system`. An adapter for another tracker adds its own source + name, and that name works as a key with no change to this setting. + | Level | Artifact holds | |---|---| | `all` | Everything in `output/`, as today. This is the default. | @@ -77,26 +97,24 @@ artifacts: same way to every agent, so [ADR 0080](0080-config-yaml-vs-agent-env-var-scope.md) puts it in `config.yaml`. This replaces ADR 0021's per-agent opt-out. -- **The strictest level wins.** The runner picks one level per run: the - strictest of `content`, the `by_source` entry for the run's - `event.source.system`, and the `by_provider` entry for each attached - provider. `by_provider` keys match a provider's configured name. When the - source is missing or not listed, only `content` and the provider entries - count. `none` is stricter than `metadata`, which is stricter than `all`. -- **Keys are open strings.** A new source or provider name works as a key - without a schema change. -- **Layers merge per key.** Across `config.base.yaml` and `config.yaml`, a set - `content` overrides, and `by_source` and `by_provider` merge per key. - Lowering an effective level toward `all` is a relaxation under the +- **The stricter level wins.** The runner picks one level per run: the + stricter of `content` and the `by_source` entry for where the run started. + A source with no entry gets the `content` level. `none` is stricter than + `metadata`, which is stricter than `all`. +- **Keys are open strings.** Config validation does not limit keys to + today's sources, so a new source needs no schema change. +- **Layers merge per key.** Across `config.base.yaml` and `config.yaml`, an + explicit `content` overrides, and `by_source` merges per key. Lowering an + effective level toward `all` is a relaxation under the [ADR 0122](0122-declarative-repo-configuration.md) safety gate, so it needs an explicit declaration. - **Metadata is an allowlist.** `metadata` copies only the files named above. - A file added to `output/` later stays out until this list names it. + A file added to `output/` later stays excluded until this list names it. - **Filtering happens after local use, and fails closed.** The runner leaves `output/` untouched, so `fullsend eval-measure` and post-scripts read the - full run. A step after them builds a staged copy, and only that copy is - uploaded. If the level cannot be resolved, the staged copy is empty and the - raw `output/` is never uploaded. + full run. A step after them builds a staged copy, and the runner uploads + only that copy. If level resolution fails, the staged copy is empty and the + runner never uploads the raw `output/`. - **Content capture is unchanged.** Exporting over OTLP to a backend the repo owner controls still works under every level, as in ADR 0050. @@ -105,8 +123,8 @@ scanning as an invariant check. Artifact retention is out of scope. ## Forge scope -- **GitHub:** the existing upload step uploads the staged copy, and is skipped - for `none`. +- **GitHub:** the existing upload step uploads the staged copy and skips the + upload for `none`. - **GitLab:** the job artifact path points at the staged copy. - **Forgejo:** no run workflow yet; it uses the same staged copy when one lands. @@ -115,11 +133,14 @@ All forges read the same `config.yaml` setting. ## Consequences -- A repo can withhold conversation content for Jira-triggered runs or runs - with a private-data provider attached, and keep `all` elsewhere. +- A repo can withhold conversation content for runs from any source that is + not public (Jira today, other trackers as adapters land) and keep `all` for + the rest. +- A custom agent that reads private data on runs from every source is covered + only by `content`, which applies to the whole repo. - The retro agent, session resumption and follow-up workflows that download the artifact get no transcripts under `metadata` and no artifact under `none`, which the user guide must document. -- When the setting is unset, the artifact matches today's. +- When the setting is unset, the artifact is the same as today. - Changing the level is a `config.yaml` change, so it goes through the repo's normal review and CODEOWNERS. diff --git a/docs/architecture.md b/docs/architecture.md index 791ab60315..289bf0deeb 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -679,7 +679,7 @@ Observability is a cross-cutting concern that touches every other component. Eac **Decided:** -- JSONL reasoning trace exposure: raw JSONL conversation transcripts are extracted from sandboxes and stored with owner-scoped access. Credential scanning acts as an invariant check on [ADR 0017](ADRs/0017-credential-isolation-for-sandboxed-agents.md)'s isolation model. Agents handling data from protected sources beyond the target repo can opt in to JSONL suppression via configuration ([ADR 0021](ADRs/0021-jsonl-reasoning-trace-exposure.md)). A repo-level `artifacts` setting in `config.yaml` replaces that per-agent opt-out and can leave out transcripts or the whole artifact per source and provider ([ADR 0161](ADRs/0161-repo-config-limits-run-artifact-content.md)). +- JSONL reasoning trace exposure: raw JSONL conversation transcripts are extracted from sandboxes and stored with owner-scoped access. Credential scanning acts as an invariant check on [ADR 0017](ADRs/0017-credential-isolation-for-sandboxed-agents.md)'s isolation model. Agents handling data from protected sources beyond the target repo can opt in to JSONL suppression via configuration ([ADR 0021](ADRs/0021-jsonl-reasoning-trace-exposure.md)). A repo-level `artifacts` setting in `config.yaml` replaces that per-agent opt-out and can leave out transcripts or the whole artifact, for every run or per run source ([ADR 0161](ADRs/0161-repo-config-limits-run-artifact-content.md)). - Event-driven stage dispatch remains traceable end-to-end in the GitHub Actions UI by using synchronous `workflow_call` dispatch (see [ADR 0041](ADRs/0041-synchronous-workflow-call-event-dispatch.md)). - Scheduled entity-discovery runs are attributable to the verified fullsend invocation identity, target repository, effective policy, harness revision, diff --git a/docs/problems/operational-observability.md b/docs/problems/operational-observability.md index 7ec6773d37..a6add2fb08 100644 --- a/docs/problems/operational-observability.md +++ b/docs/problems/operational-observability.md @@ -209,7 +209,7 @@ This works for early experimentation when the volume is low and the operators ar - What is the right level of trace granularity? Input context is largely already stored in git and GitHub, so traces can reference it by pointer. But full prompt/completion pairs — the novel data — are expensive to store and may contain sensitive content. Is there a middle ground — e.g., capturing token counts and decision summaries by default, with full prompt/completion pairs available on demand? (Span granularity decided in [ADR 0108](../ADRs/0108-tool-call-span-topology.md): one `execute_tool` span per id-bearing tool call (Claude Code and pi), up to 1,024 per iteration, metadata only, with content opt-in at Level 3 per [ADR 0050](../ADRs/0050-distributed-tracing-instrumentation.md). Retention and access remain open.) - ~~How do we keep the triggering event and the agent run linked in the GitHub Actions UI for debugging?~~ Decided in [ADR 0041](../ADRs/0041-synchronous-workflow-call-event-dispatch.md) (synchronous `workflow_call` dispatch for the event path). -- How should trace access be controlled? (JSONL trace exposure decided in [ADR 0021](../ADRs/0021-jsonl-reasoning-trace-exposure.md): owner-scoped storage with credential scanning as defense-in-depth. Repo-level limits on what a run artifact publishes, per source and provider, decided in [ADR 0161](../ADRs/0161-repo-config-limits-run-artifact-content.md). Broader question of balancing security and transparency for non-JSONL observability data remains open.) +- How should trace access be controlled? (JSONL trace exposure decided in [ADR 0021](../ADRs/0021-jsonl-reasoning-trace-exposure.md): owner-scoped storage with credential scanning as defense-in-depth. Repo-level limits on what a run artifact publishes, per run source, decided in [ADR 0161](../ADRs/0161-repo-config-limits-run-artifact-content.md). Broader question of balancing security and transparency for non-JSONL observability data remains open.) - What retention policy applies to traces? Indefinite retention supports audit requirements but increases storage cost and data sensitivity exposure. Time-bounded retention (e.g., 90 days) limits exposure but may lose traces needed for incident investigation. - How do we measure "is the system getting better"? What metrics constitute a meaningful quality signal for an autonomous software factory? Merge revert rate? Human override rate? Time-to-review? Cost per decision? Some composite score? The choice of metric shapes what gets optimized. First-ship trend scores (trace fitness on wild runs, local `eval-measurements.jsonl`) are [ADR 0087](../ADRs/0087-eval-measurements-online-trace-scoring.md); richer quality signals remain open. - Should trace scoring cover run *health*, not just trace *health*? Trace *fitness* ([ADR 0087](../ADRs/0087-eval-measurements-online-trace-scoring.md)'s `trace_fitness`) checks that a run's telemetry is well-formed — span tree, identity, model, usage, cost, and exit present and coherent — but not whether the run *behaved* correctly. A separate class of failure is structurally decidable straight from the trace, with no model in the loop: a tool that returned an error the run then ignored, an errored result reused by a later side-effecting call, no-progress loops, or a job that reports success despite an in-trace failure (e.g. [#6621](https://github.com/fullsend-ai/fullsend/issues/6621)). Two questions follow. First, does the eval-measure layer grow a second scorer for these run-*health* defects — the deterministic complement to the statistical evals in [testing-agents.md](testing-agents.md), catching what is provable from a single trace rather than what needs repeated runs — or does behavioral correctness belong with the review and retro agents instead? Second, there is a prerequisite either way: the structured-trace ideal described above records each tool call's result, but tool *results* are only partly on the trace: `execute_tool` spans carry per-call error status (`error.type=tool_error` when a result is flagged `is_error`, [ADR 0108](../ADRs/0108-tool-call-span-topology.md)) only for id-bearing calls — Claude Code and pi; codex emits no call ids ([#7414](https://github.com/fullsend-ai/fullsend/issues/7414)) — and result content is recorded only at opt-in Level 3 ([ADR 0050](../ADRs/0050-distributed-tracing-instrumentation.md)), again on Claude and pi runs only. The highest-value rules therefore still depend on extending capture across runtimes and levels — itself a telemetry-contract decision. Prior discussion in [#7246](https://github.com/fullsend-ai/fullsend/issues/7246). From 17df6a240bdb75522871b153fc236b7440e2b138 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Mon, 9 Nov 2026 08:59:29 -0500 Subject: [PATCH 3/7] docs(adr): keep security findings out of ADR 0161 metadata level A finding's detail can quote tool output, such as decoded hidden text, so security/findings.jsonl could publish private source text under metadata. Stripping the field would break the file's hash chain, so leave the file out of the allowlist; it stays on the runner. Also link ADR 0161 from the observability open question in architecture.md. Refs #9122 Assisted-by: Claude Signed-off-by: Wayne Sun --- docs/ADRs/0161-repo-config-limits-run-artifact-content.md | 5 ++++- docs/architecture.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md index a88354da65..607c09e4c7 100644 --- a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -90,7 +90,7 @@ artifacts: | Level | Artifact holds | |---|---| | `all` | Everything in `output/`, as today. This is the default. | -| `metadata` | Only the run-level files: `metrics.json`, `eval-measurements.jsonl`, `security/findings.jsonl`, and `run-telemetry.jsonl` with conversation content removed. Every `iteration-/` directory and any other file is left out. | +| `metadata` | Only the run-level files: `metrics.json`, `eval-measurements.jsonl`, and `run-telemetry.jsonl` with conversation content removed. Every `iteration-/` directory, `security/findings.jsonl` and any other file is left out. | | `none` | No artifact is uploaded. | - **It lives in `config.yaml`, not in agent YAML.** The setting applies the @@ -110,6 +110,9 @@ artifacts: an explicit declaration. - **Metadata is an allowlist.** `metadata` copies only the files named above. A file added to `output/` later stays excluded until this list names it. + `security/findings.jsonl` stays out: a finding's `detail` can quote tool + output, and a copy with that field stripped would break the file's hash + chain. It stays on the runner for local checks. - **Filtering happens after local use, and fails closed.** The runner leaves `output/` untouched, so `fullsend eval-measure` and post-scripts read the full run. A step after them builds a staged copy, and the runner uploads diff --git a/docs/architecture.md b/docs/architecture.md index 289bf0deeb..34c2624c43 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -715,7 +715,7 @@ Observability is a cross-cutting concern that touches every other component. Eac - What signals matter most — cost, latency, token usage, action logs, decision traces, or something else? - ~~How do we balance detailed tracing (useful for debugging) with the volume of data agents will produce?~~ Decided in [ADR 0050](ADRs/0050-distributed-tracing-instrumentation.md): instrument all lifecycle steps comprehensively; volume is managed by backends not by suppressing data at the source. - ~~How do we score wild agent traces for trends without a second export stack?~~ Decided in [ADR 0087](ADRs/0087-eval-measurements-online-trace-scoring.md): eval measurements write local JSONL beside telemetry when at least one new score row is produced (including `label: skip`); portable remote export uses the same OTLP config as traces (`gen_ai.evaluation.result` events). The JSONL is absent (not empty) when telemetry/manifest is missing, no traces match, or every candidate is already in the ledger. -- What is the retention and access model for agent logs? Who can see what? (JSONL trace access model decided in [ADR 0021](ADRs/0021-jsonl-reasoning-trace-exposure.md); retention policy and broader log access remain open.) +- What is the retention and access model for agent logs? Who can see what? (JSONL trace access model decided in [ADR 0021](ADRs/0021-jsonl-reasoning-trace-exposure.md); repo-level limits on what a run artifact publishes, per run source, decided in [ADR 0161](ADRs/0161-repo-config-limits-run-artifact-content.md); retention policy and broader log access remain open.) - How does observability interact with the security requirement that "every action is logged, attributable, and reviewable"? Scheduled entity-discovery attribution is decided in From a65db1b8a02da0fec7a9ca77c94287f2ee2da8bc Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Mon, 9 Nov 2026 09:37:06 -0500 Subject: [PATCH 4/7] docs(adr): state that ADR 0161 sets no per-agent level The setting is repo-level only; per-agent levels are out of scope. Refs #9122 Assisted-by: Claude Signed-off-by: Wayne Sun --- docs/ADRs/0161-repo-config-limits-run-artifact-content.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md index 607c09e4c7..464a2d6c8d 100644 --- a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -122,7 +122,8 @@ artifacts: owner controls still works under every level, as in ADR 0050. The rest of ADR 0021 stands: full transcripts by default, and credential -scanning as an invariant check. Artifact retention is out of scope. +scanning as an invariant check. Per-agent levels and artifact retention are +out of scope. ## Forge scope From 1404889c814fe90a5efdd3a3ce6d74b12ac4116b Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Tue, 10 Nov 2026 14:53:43 -0500 Subject: [PATCH 5/7] docs(adr): define the telemetry scrub in ADR 0161's metadata level Say what "conversation content removed" means for run-telemetry.jsonl: every attribute and event content capture adds is dropped, and a record that can't be parsed or stripped leaves the file out, so the scrub fails closed like level resolution. Refs #9122 Assisted-by: Claude Signed-off-by: Wayne Sun --- docs/ADRs/0161-repo-config-limits-run-artifact-content.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md index 464a2d6c8d..cc1aacd945 100644 --- a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -112,7 +112,10 @@ artifacts: A file added to `output/` later stays excluded until this list names it. `security/findings.jsonl` stays out: a finding's `detail` can quote tool output, and a copy with that field stripped would break the file's hash - chain. It stays on the runner for local checks. + chain. It stays on the runner for local checks. In the staged + `run-telemetry.jsonl`, "conversation content removed" means every + attribute and event that content capture adds (ADR 0050) is dropped. If a + record can't be parsed or stripped, the file is left out. - **Filtering happens after local use, and fails closed.** The runner leaves `output/` untouched, so `fullsend eval-measure` and post-scripts read the full run. A step after them builds a staged copy, and the runner uploads From eea3de89059f6f783eb771448d25a57f4479ad91 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Tue, 10 Nov 2026 15:03:08 -0500 Subject: [PATCH 6/7] docs(adr): tidy ADR 0161's metadata rules Give the telemetry scrub its own bullet, and say that artifact consumers also lose security findings under metadata. Refs #9122 Assisted-by: Claude Signed-off-by: Wayne Sun --- ...0161-repo-config-limits-run-artifact-content.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md index cc1aacd945..5e43dbacdf 100644 --- a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -55,7 +55,6 @@ customer names or private business text This ADR aims to let a repo owner stop publishing conversation content in the run artifact for runs started from a source that is not public. - ## Options - **Key by provider as well as source**, for example `jira-ro`, the @@ -112,10 +111,11 @@ artifacts: A file added to `output/` later stays excluded until this list names it. `security/findings.jsonl` stays out: a finding's `detail` can quote tool output, and a copy with that field stripped would break the file's hash - chain. It stays on the runner for local checks. In the staged - `run-telemetry.jsonl`, "conversation content removed" means every - attribute and event that content capture adds (ADR 0050) is dropped. If a - record can't be parsed or stripped, the file is left out. + chain. It stays on the runner for local checks. +- **The telemetry copy drops captured content.** In the staged + `run-telemetry.jsonl`, every attribute and event that content capture adds + (ADR 0050) is dropped. If a record can't be parsed or stripped, the file is + left out. - **Filtering happens after local use, and fails closed.** The runner leaves `output/` untouched, so `fullsend eval-measure` and post-scripts read the full run. A step after them builds a staged copy, and the runner uploads @@ -146,8 +146,8 @@ All forges read the same `config.yaml` setting. - A custom agent that reads private data on runs from every source is covered only by `content`, which applies to the whole repo. - The retro agent, session resumption and follow-up workflows that download - the artifact get no transcripts under `metadata` and no artifact under - `none`, which the user guide must document. + the artifact get no transcripts or security findings under `metadata` and + no artifact under `none`, which the user guide must document. - When the setting is unset, the artifact is the same as today. - Changing the level is a `config.yaml` change, so it goes through the repo's normal review and CODEOWNERS. From d48ffcb89d143a3dd8fde31723dee4b5b3abc522 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Wed, 11 Nov 2026 11:18:41 -0500 Subject: [PATCH 7/7] docs(adr): 0161 states the by_source limit and that withheld files have no private store Assisted-by: Claude Signed-off-by: Wayne Sun --- .../0161-repo-config-limits-run-artifact-content.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md index 5e43dbacdf..485749a5fa 100644 --- a/docs/ADRs/0161-repo-config-limits-run-artifact-content.md +++ b/docs/ADRs/0161-repo-config-limits-run-artifact-content.md @@ -85,6 +85,12 @@ artifacts: `schedule` (a scheduled run). It is the same value CEL triggers see as `event.source.system`. An adapter for another tracker adds its own source name, and that name works as a key with no change to this setting. +- `by_source` looks only at where the run started, not at every private + system the agent can read. A run started from `github` at `all` still + publishes Jira text if its harness gives it Jira access on that run. A + source level protects private data only when access to that data is + attached per source, as in the shipped harnesses. Otherwise, set a stricter + `content` for the whole repo. | Level | Artifact holds | |---|---| @@ -148,6 +154,11 @@ All forges read the same `config.yaml` setting. - The retro agent, session resumption and follow-up workflows that download the artifact get no transcripts or security findings under `metadata` and no artifact under `none`, which the user guide must document. +- This ADR adds no private store for the withheld files, and none is + planned. The full `output/` exists only on the runner and is gone when the + job ends. To keep conversation content privately, export it over OTLP to a + backend the repo owner controls (ADR 0050). A private store that later + workflows read from is out of scope. - When the setting is unset, the artifact is the same as today. - Changing the level is a `config.yaml` change, so it goes through the repo's normal review and CODEOWNERS.