diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 4bd064a9f0..69ae949b34 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -419,6 +419,11 @@ export default defineConfig({ collapsed: true, items: getMarkdownFiles("ADRs", "ADRs"), }, + { + text: "Normative Specifications", + collapsed: true, + items: getMarkdownFiles("normative", "normative"), + }, { text: "Design Documents", collapsed: true, diff --git a/docs/ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md b/docs/ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md index 6864bd852b..d307f163e5 100644 --- a/docs/ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md +++ b/docs/ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md @@ -40,6 +40,13 @@ the preserved GitHub label handoff exception are decided in [ADR 0107](0107-bot- Fullsend-originated entity discovery without a prompting event. Event-backed dispatch remains subject to this ADR's actor authorization gate. +[ADR 0151](0151-harness-human-role-minimums.md) partially supersedes the human +permission threshold for target CEL-routed event admission. The platform keeps +a non-waivable `triage`-level floor, satisfied by a verified role or the narrow +verified label-transition grant, and enforces each selected harness's effective +`human_min_role` before CEL. The workflow stage guards and Go role-derived +default thresholds remain in effect until migration. + ## Context The dispatch routing logic (`dispatch.yml` / `reusable-dispatch.yml`) diff --git a/docs/ADRs/0061-harness-cel-dispatch.md b/docs/ADRs/0061-harness-cel-dispatch.md index f2560f4cd8..f3d0d56dae 100644 --- a/docs/ADRs/0061-harness-cel-dispatch.md +++ b/docs/ADRs/0061-harness-cel-dispatch.md @@ -26,6 +26,12 @@ Only the event-only CEL context is superseded by predicate but evaluates it against a resolved entity and optional event. The remaining decisions in this ADR remain accepted. +[ADR 0151](0151-harness-human-role-minimums.md) partially supersedes the +authorization-before-harness-enumeration ordering: the ordinary human `triage` +floor may run before loading harnesses, with a narrow verified label grant for +its exact transition. Each trusted harness's effective `human_min_role` is +then enforced before its CEL predicate. Authorization remains a platform gate. + ## Context Custom agents should be easy to author and portable across forges. Today, adding diff --git a/docs/ADRs/0063-polling-based-work-discovery.md b/docs/ADRs/0063-polling-based-work-discovery.md index 22f08559ba..9bdd43da27 100644 --- a/docs/ADRs/0063-polling-based-work-discovery.md +++ b/docs/ADRs/0063-polling-based-work-discovery.md @@ -38,6 +38,11 @@ resident or run within a deadline, and the reserved `--watch` option denotes the explicit resident poll lifecycle. The poll command, driver architecture, and per-repository scope remain current. +[ADR 0147](0147-evaluate-entity-cel-over-selectively-acquired-data.md) requires +durable retry or proven rediscovery for provisional entity-source handoffs. The +`lastCheck` advance-on-schedule rule below remains for legacy event +reconstruction. + ## Context Fullsend's primary dispatch path is **event-driven**: forge webhooks are normalized diff --git a/docs/ADRs/0098-entity-first-harness-evaluation.md b/docs/ADRs/0098-entity-first-harness-evaluation.md index 412707ca6c..4650945607 100644 --- a/docs/ADRs/0098-entity-first-harness-evaluation.md +++ b/docs/ADRs/0098-entity-first-harness-evaluation.md @@ -40,7 +40,21 @@ On GitLab, the low-latency webhook candidate path and poller backstop are trusted, entity-bound `fullsend run` may recheck only its canonical entity with `event == null`. `fullsend poll` remains the broad candidate enumerator. Both eventless paths require eligible entity sources, trusted Fullsend invocation -provenance, current actor filtering, and the same harness CEL predicate. +provenance, actor filtering under the current authorization contract, and the +same harness CEL predicate. + +[ADR 0147](0147-evaluate-entity-cel-over-selectively-acquired-data.md) +partially supersedes the pre-CEL full-history enumeration, permission +resolution for every history actor, and audit-roster requirements below. +[ADR 0148](0148-reuse-verified-actor-roles-for-entity-cel.md) separately permits +bounded role reuse across entity-CEL checks and partially supersedes the +permission-at-evaluation-time rule. Trusted-origin, event-actor, and +model-bound authorization remain required. + +[ADR 0151](0151-harness-human-role-minimums.md) replaces the observation/mutation-derived +human threshold for decision-relevant entity facts with the selected harness's +effective `human_min_role`, enforced by the platform above an immutable +`triage` floor. Actor provenance and fail-closed filtering remain required. ## Context diff --git a/docs/ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md b/docs/ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md index 3af75f9049..f011ca35d2 100644 --- a/docs/ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md +++ b/docs/ADRs/0107-bot-identity-resolution-for-dispatch-authorization.md @@ -19,6 +19,11 @@ Date: 2026-09-27 Accepted +[ADR 0151](0151-harness-human-role-minimums.md) requires a human labeler to +meet the selected harness's effective `human_min_role` for target CEL dispatch; +the accepted label mutation alone no longer bypasses a stronger human minimum. +This ADR's provider-classified bot label grant and registered-bot gate remain. + Extends [ADR 0054](0054-require-authorization-on-all-agent-dispatch-paths.md) and defines the bot behavior to be added to the existing v1 contracts. This ADR explicitly permits the deferred migration from legacy bot exceptions to diff --git a/docs/ADRs/0112-overlays-may-set-any-harness-field.md b/docs/ADRs/0112-overlays-may-set-any-harness-field.md index 33c240e62d..4a64f0b940 100644 --- a/docs/ADRs/0112-overlays-may-set-any-harness-field.md +++ b/docs/ADRs/0112-overlays-may-set-any-harness-field.md @@ -21,6 +21,12 @@ Date: 2026-10-01 Accepted +[ADR 0151](0151-harness-human-role-minimums.md) treats `human_min_role` as a +guarded overlay field. Its ordered overlay outcome and effective value must be +resolved from verified pre-admission facts and pinned before the harness's +actor gate; the deprecated `forge:` block cannot set it. The other overlay +rules remain current. + NormalizedEvent (adapter) + --> Human triage floor/label grant or bot grant <-- enforced here + --> Resolve trusted harness and verified event/target metadata + --> If needed, resolve structural entity-source metadata only + from the provider or platform discovery credential + --> Resolve guarded minimum overlays from that metadata + --> Human role or exact label-grant gate <-- before this harness's CEL + --> Event-only CEL routing or entity-source resolution + --> Dependency-driven acquisition and per-harness actor gate + --> CEL true / false / UNKNOWN + --> Model-record gate and execution only on definitive true + +Fullsend poll discovery / bound run eventless recheck + --> Trusted-origin authorization gate <-- enforced here + --> Enumerate and resolve candidates (poll) / resolve canonical entity (run) + --> Evaluate each candidate harness (poll) or the bound harness (run): + --> Resolve guarded overlays and effective human minimum + from verified pre-admission metadata + --> Dependency-driven acquisition and per-harness actor gate + --> CEL true / false / UNKNOWN (event is null) + --> Unknown may continue in bound run after current entity re-resolution + --> Model-record gate, filtering, and execution only on true +``` + +### CEL triggers: harness-specific conditions + +Harness `trigger` expressions select runs and may require stronger human roles +or narrower bot roles, labels, and entity states. Such CEL conditions may +further narrow a run but never weaken or replace the platform floor or the +selected harness's admission minimum, and they do not create a bot or +transition grant. A CEL nonmatch is not a platform denial. On the event-backed +path, an event that fails the role or exact label-grant gate never reaches +that harness's CEL. + +Current `fullsend dispatch` runs `IsEventAuthorized()` before harness loading +and `FilterAuthorizedHarnesses()` before `MatchHarnesses()`. Jira polling +preloads harnesses but applies both checks before CEL. In the target path, the +platform MAY reject a below-floor human event before loading harnesses unless +the exact verified label grant applies, but MUST resolve and enforce each +candidate harness's minimum before its CEL predicate. On the Fullsend-originated +eventless path, the trusted-origin gate runs before poll enumeration or +bound-entity resolution and CEL evaluation. For each eligible entity-source +harness, the platform admits actor-originated facts needed for +an actionable CEL result only after current source-revision attribution and a +live or eligible bounded role verdict meeting its effective minimum, or the +exact applicable human label grant for a `triage` minimum. CEL receives that +verified effective role when present and may apply further conditions. An +exact human label transition may instead carry separate `triage`-grant +provenance; CEL MUST NOT treat it as a verified role. The +verified bot label-event grant authorizes only its exact transition, as +described above. Eventless checks use `event == null`. Legacy event-only +harness routing does not acquire entity history under this section. + +### Per-repo configurability + +The `triage` floor and the narrow human-label and bot grants are +platform-level security boundaries. Individual repositories cannot disable or +lower them. A trusted harness author MAY set `human_min_role` at the top level +or in an ADR 0112 trusted-fact-guarded overlay to `triage`, `write`, +`maintain`, or `admin`. The top-level or inherited non-overlay value is the +baseline; an overlay MAY preserve or lower it, never raise it. This lets a +trusted condition relax a stronger default while a missing condition safely +retains that default. The selected value applies to human event, entity-fact, +and model-record admission alike. A repository may disable a harness or use +trigger CEL to require additional conditions, but cannot make it available to +a human rejected by either admission gate. A source event may select the field +only through the validated trusted facts above; it cannot supply policy text. + +A repository can add permission sources through the `authorization` +field (today only `owners_file`). These sources may raise the verified +effective role used by the platform and visible to CEL; they do not change +either minimum or bypass the gate. The current bash +`has_repo_permission` helper and Go event and per-harness gates retain their +v1 compatibility behavior until migrated. + +## Versioning + +This is the v2 normative contract under +[ADR 0015](../../../ADRs/0015-normative-specifications-directory.md). +[ADR 0147](../../../ADRs/0147-evaluate-entity-cel-over-selectively-acquired-data.md) +supersedes v1's future full-history entity-evaluation and audit requirements; +[ADR 0148](../../../ADRs/0148-reuse-verified-actor-roles-for-entity-cel.md) +adds bounded cross-check reuse of provider-verified actor-role verdicts for +entity-source CEL only. +[ADR 0151](../../../ADRs/0151-harness-human-role-minimums.md) sets the +immutable `triage` platform floor and the selected harness's effective +`human_min_role` for human event, entity-fact, and model-record admission. The +resolved harness `role` supplies the default map above; an explicit top-level +or trusted-fact-guarded overlay value may change it within the allowed range, +subject to the rule that overlays may only preserve or lower their non-overlay +baseline. +Trigger CEL may further narrow selection but does not replace the admission +minimum. V2 retains v1's role-derived defaults; a resolved explicit or +guarded-overlay value supersedes the fixed default for that harness across +event, entity-fact, and model-record admission. The separate fresh model-bound +release checkpoints remain. + +Migration MUST teach harness loading and `base` composition to recognize and +validate `human_min_role` with key-presence awareness, including in overlay +entries, and reject an overlay value above its non-overlay baseline before the +value can affect any v2 decision. The versioned CEL schema +MUST name and classify the verified effective-role path before a role-based +minimum overlay can run. An explicit empty or invalid value MUST NOT silently +inherit or default during scalar merge; a +`forge:` value or overlay with untrusted or admission-dependent guard inputs +MUST be rejected before resolution. A runner that cannot interpret a +configured value MUST reject that harness, including a stronger `maintain` or +`admin` value; it MUST NOT silently use the v1 role-derived default. Migration +also requires versioned event and entity CEL inputs that carry verified +effective roles and distinguish exact label-grant +provenance. Existing authorization-sensitive CEL comparisons against an +unverified legacy role MUST be migrated before v2 routing. Migration also +requires the handoff to integrity-bind the candidate harness and event/entity +locator, and requires `run` to reload the trusted target config and harness/base +sources, recompute config `when` flags, harness overlays, and trigger CEL, and +recheck current authorization and launch gates against the canonical entity +under ADR 0144 before ADR 0141 context staging or sandbox launch. The run +records and pins the policy identity it actually verifies through its own +context, actor, and model-record checks. +The dispatch/poll policy identity may differ; it is not permission and need not +be verified as the same revision at run. Migration also requires per-harness +event and entity actor gates and an entity-context-snapshot v2 contract that +can represent all four allowed minimums and the changed record-admission rule. +[Entity-context-snapshot v1](../../entity-context-snapshot/v1/README.md) +retains its historical observation/mutation-derived `triage`/`write` rule until that +migration. +Authorization v1 remains authoritative for existing legacy non-CEL, +non-entity workflows during migration, including their bash thresholds and Go +role-derived defaults. An +explicit per-harness minimum change under v2 is a harness-policy change bound +to that harness's reviewed revision, not a normative contract version change. +Breaking changes to v2 require `docs/normative/authorization/v3/`. + +**ADR 0107 migration exception:** The migration from legacy bot authorization +exceptions to provider-backed bot identity is also permitted within v2. It is a +policy tightening, not a new supported actor population: existing +compatibility behavior remains authoritative until an adapter implementation is +updated; once updated, registered bots use `actor.bot_role` and unregistered +non-label bots are denied. The adapter implementation itself is the migration +boundary; no per-event mode marker or separate deprecation window is required. +An updated adapter MUST enforce the target behavior and MUST NOT silently fall +back to legacy bot authorization when its resolver fails. The normalized-event +fields used to carry this distinction are additive. The verified label-added +bot handoff grant remains; human label additions meet the selected harness's +minimum only when the v2 human gate is implemented. This bot migration +exception does not alter the general v3 rule for unrelated authorization +changes. + +| Change | v2 impact | +|--------|-----------| +| **Breaking** (requires v3): remove a role from the hierarchy, change the platform `triage` floor, change the harness-role default map or allowed `human_min_role` values, stop applying the minimum to human label additions or any of the three admission paths, alter a target label or bot grant, change fail-closed to fail-open, remove a fresh model-bound checkpoint, or weaken the actor and coverage gates beyond the bounded CEL cache adopted here | Dispatch implementations must migrate | +| **Adapter bot-identity migration** (allowed in v2): update an adapter to emit and enforce the ADR 0107 target representation | The adapter's existing compatibility behavior applies until that implementation update; afterward, registered bots use `actor.bot_role` and unregistered non-label bots are denied | +| **Non-breaking** (allowed in v2): add a role under the existing default map, change one reviewed harness's explicit minimum, add equivalent forge mappings, or clarify documentation | The platform floor and contract remain; a harness minimum change binds to its new revision | diff --git a/docs/normative/entity-context-snapshot/v1/README.md b/docs/normative/entity-context-snapshot/v1/README.md index 3d94b786cf..efed1f2f7a 100644 --- a/docs/normative/entity-context-snapshot/v1/README.md +++ b/docs/normative/entity-context-snapshot/v1/README.md @@ -6,6 +6,13 @@ under the actor-attributed data boundary in [ADR 0133](../../../ADRs/0133-actor- It is the contract between forge adapters, `fullsend run`, harness scripts, and agent runtimes. +> **Version note:** [ADR 0151](../../../ADRs/0151-harness-human-role-minimums.md) +> keeps an immutable `triage` floor and uses the selected harness's effective +> `human_min_role` for target Fullsend-controlled model admission. This v1 +> bundle retains its observation/mutation-derived `triage` or `write` threshold; +> snapshot producers need a v2 contract before applying the configurable +> threshold or its expanded role values. + Here, *entity-context-snapshot* means the staged data snapshot for a handled Git-forge entity. The qualified name distinguishes this data structure from the dispatch-layer routing category called *entity context* in diff --git a/docs/normative/normalized-event/v1/README.md b/docs/normative/normalized-event/v1/README.md index 7c7b3a1053..33a0991dce 100644 --- a/docs/normative/normalized-event/v1/README.md +++ b/docs/normative/normalized-event/v1/README.md @@ -290,6 +290,13 @@ proposal is simply no match. `actor.role` says who triggered the event, not who wrote the change, so an overlay that loosens a guarded value on a change proposal should also require `!state.change_proposal.is_fork`. +For a guarded overlay selecting the authorization-v2 `human_min_role`, raw +`actor.role` is excluded even though it is listed as trusted here. A role +guard must use the [v2 verified effective-role input](../../authorization/v2/README.md#platform-floor-and-per-harness-human-minimum), +and a narrow label grant is not a role. A trusted-field dependency check also +does not establish which truth value is safe: a change author can make +`is_fork` true, while only a writer can make it false. + ## CEL trigger examples Harness `trigger` expressions are CEL booleans over `event`: diff --git a/docs/problems/agent-architecture.md b/docs/problems/agent-architecture.md index 644f278b79..00ee714101 100644 --- a/docs/problems/agent-architecture.md +++ b/docs/problems/agent-architecture.md @@ -149,6 +149,13 @@ The repository's existing infrastructure provides all the coordination needed: harness predicates should be evaluated. Each predicate can inspect the resolved entity and an optional prompting event ([ADR 0098](../ADRs/0098-entity-first-harness-evaluation.md)). + [ADR 0147](../ADRs/0147-evaluate-entity-cel-over-selectively-acquired-data.md) + lets those checks acquire entity data progressively when the result is not + yet known. [ADR 0148](../ADRs/0148-reuse-verified-actor-roles-for-entity-cel.md) + permits bounded sharing of verified actor roles between those checks. + [ADR 0151](../ADRs/0151-harness-human-role-minimums.md) sets a platform + `triage` floor and a configurable `human_min_role` for each harness. The + platform applies that minimum before evaluating the harness's CEL predicate. No agent orchestrates other agents. Each agent independently observes the state of the PR and acts according to its role: diff --git a/docs/problems/agent-infrastructure.md b/docs/problems/agent-infrastructure.md index d8d5f6d3ad..731bb5a68f 100644 --- a/docs/problems/agent-infrastructure.md +++ b/docs/problems/agent-infrastructure.md @@ -71,7 +71,9 @@ Agents are often discussed as if they run on a developer workstation: fast local - **Workspace and context continuity** — Ephemeral jobs reset filesystem state between runs or stages. Carrying **in-progress repo state, partial edits, and task context** across those boundaries requires explicit design: shared volumes (for example PVCs in Kubernetes), artifact handoff between steps, branches or WIP commits, or external systems (issues, design docs). Without a deliberate handoff story, every run starts cold and context-window limits bite harder. -- **Compute held open for human latency** — A long-lived pod that **blocks on PR approval, architecture sign-off, or escalation** consumes cluster quota and cost while idle. That misaligns with typical “always-on service” defaults. Better fits include **event-driven** scheduling (wake on comment or approval), aggressive scale-to-zero, or separating **planning** from **execution** so capacity is not reserved across human response times; see [human-factors.md](human-factors.md) and [autonomy-spectrum.md](autonomy-spectrum.md). For shorter gaps between work cycles, [ADR 0144](../ADRs/0144-reuse-poll-and-entity-bound-run-processes.md) bounds host-process reuse and releases idle CI capacity without keeping an agent sandbox alive. +- **Compute held open for human latency** — A long-lived pod that **blocks on PR approval, architecture sign-off, or escalation** consumes cluster quota and cost while idle. That misaligns with typical “always-on service” defaults. Better fits include **event-driven** scheduling (wake on comment or approval), aggressive scale-to-zero, or separating **planning** from **execution** so capacity is not reserved across human response times; see [human-factors.md](human-factors.md) and [autonomy-spectrum.md](autonomy-spectrum.md). For shorter gaps between work cycles, [ADR 0144](../ADRs/0144-reuse-poll-and-entity-bound-run-processes.md) bounds host-process reuse and releases idle CI capacity without keeping an agent sandbox alive. Its repeated entity checks may share verified actor-role results only within [ADR 0148](../ADRs/0148-reuse-verified-actor-roles-for-entity-cel.md)'s bounded lifetime. + Each harness reapplies its effective `human_min_role` to a reused role verdict + under [ADR 0151](../ADRs/0151-harness-human-role-minimums.md). [Forge-sdlc/forge](../landscape.md#forge-sdlcforge) demonstrates one practical pause/resume pattern: LangGraph checkpoints workflow state, then later Jira or GitHub webhooks resume the graph while implementation work happens in ephemeral Podman containers. That separation is directionally useful for fullsend, even though Forge's sandbox is a productivity boundary rather than the stricter credential and egress isolation boundary fullsend needs. diff --git a/docs/problems/operational-observability.md b/docs/problems/operational-observability.md index 4b8e665d2c..ba1c088888 100644 --- a/docs/problems/operational-observability.md +++ b/docs/problems/operational-observability.md @@ -93,6 +93,14 @@ Every agent invocation should produce a structured trace capturing the full life A key insight: much of an agent's input context is already stored durably in existing systems. The PR diff lives in GitHub. The codebase state is a git SHA. The issue description is on the issue tracker. Traces should reference these by pointer (repo + SHA, PR URL, issue URL) rather than duplicating them. The novel data that traces must capture is what those existing systems *don't* store: the LLM interactions themselves — the prompts assembled from that context, the completions returned, the tool calls made, and the reasoning that led to the decision. This distinction matters for storage cost, data sensitivity, and replay: to reconstruct an agent run, you combine the trace's LLM interaction log with the context retrievable from git and GitHub at the recorded references. +For entity-trigger decisions, [ADR 0147](../ADRs/0147-evaluate-entity-cel-over-selectively-acquired-data.md) +applies that principle to bounded actor-provenance and source-coverage evidence. +[ADR 0148](../ADRs/0148-reuse-verified-actor-roles-for-entity-cel.md) also requires +the audit to record the age of any shared actor-role result used for CEL. +The audit records the evaluated harness revision and its effective +`human_min_role`, since one verified actor role can pass one harness's gate and +fail another's under [ADR 0151](../ADRs/0151-harness-human-role-minimums.md). + Traces need to be correlatable. A PR review workflow involving five agents needs a session-level view that shows all five traces, their ordering, and how their outputs composed into the final decision. This is the LLM equivalent of distributed tracing in microservices — but with the additional challenge that each "span" contains non-deterministic reasoning, not just timing and status. ### Human feedback capture diff --git a/docs/problems/security-threat-model.md b/docs/problems/security-threat-model.md index 573a56826c..fa7546288a 100644 --- a/docs/problems/security-threat-model.md +++ b/docs/problems/security-threat-model.md @@ -133,6 +133,19 @@ Agents amplify authority. If a compromised account can trigger agent actions, th verified platform invocation and human-reviewed policy and harness revisions that authorized it (see [ADR 0098](../ADRs/0098-entity-first-harness-evaluation.md)) +- **Human input admission and harness scope** — the target platform requires + verified `triage` authority for ordinary human event actors, + decision-relevant entity facts, and model-bound records, then enforces each + harness's `human_min_role`. An exact verified human-label transition has a + narrow `triage`-equivalent grant that does not create a verified actor role; + a stronger harness minimum still requires the labeler's verified role. The + minimum defaults to `triage` for the `triage` and `review` mint + roles and `write` for other roles; a trusted harness author may override it + within the platform floor. CEL may narrow admission further. Explicitly + lowering a write-capable harness's minimum to `triage` lets triage-authored + content guide that harness, so agent configuration review and fixed + capabilities remain security controls + ([ADR 0151](../ADRs/0151-harness-human-role-minimums.md)). - **No self-approval** — an agent that implements a change cannot also approve it. On GitHub this separation is real: the code and review stages run as distinct bot identities. On GitLab, the [GitLab role-credential contract](../contributing/gitlab-role-credentials.md)'s `approve_merge_request` capability check applies unconditionally: Analyst and Coder authenticate with distinct per-role credentials, and Coder is structurally denied the approve call because the capability check resolves from the role identity. Installs that have not yet provisioned role secrets fail closed rather than authenticating as the shared bot from [ADR 0067](../ADRs/0067-gitlab-cron-polling-event-dispatch.md). - **GitLab role-credential contract** — built-in Poller/Analyst/Coder and administrator-registered custom roles share one registry and credential-selection path ([gitlab-role-credentials.md](../contributing/gitlab-role-credentials.md)). Role registration is install-state only; repository and merge-request content cannot create or elevate roles. Runtime authentication failures do not fall back to the shared token. Provisioning of role credentials is additive (#7498). Job routing (#7499) selects the registered role credential unconditionally. There is no shared-token fallback for an unconfigured role (#7559, #7782). Rotation (#7500) replaces a due role PAT by creating a new token and distributing it to the existing CI variable while the previous PAT stays valid for in-flight jobs; a failed rotation does not drop the last known-good secret or silently broaden to the shared token. Neither `repos install` nor `repos uninstall` automatically removes a leftover shared `FULLSEND_FORGE_TOKEN` credential from a repository installed before the role-only rollout (#7931); an administrator must clean that up manually - **Rate limiting / anomaly detection** — unusual patterns of agent activity (sudden burst of cross-repo changes, changes to security-sensitive paths) trigger alerts @@ -144,6 +157,9 @@ Agents amplify authority. If a compromised account can trigger agent actions, th - How do we distinguish a compromised account from a legitimate team member making unusual but valid changes? - Should agent authority be tied to individual human identity, or to roles? + (The actor-admission gate uses verified roles and each harness's minimum under + [ADR 0151](../ADRs/0151-harness-human-role-minimums.md); that decision does + not grant agent capabilities or settle identity-specific policy.) - How do we handle the bootstrap problem — who sets up the initial agent configuration, and how is that secured? ## Threat 3: Agent drift