Skip to content
Merged
5 changes: 5 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
6 changes: 6 additions & 0 deletions docs/ADRs/0061-harness-cel-dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions docs/ADRs/0063-polling-based-work-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 15 additions & 1 deletion docs/ADRs/0098-entity-first-harness-evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions docs/ADRs/0112-overlays-may-set-any-harness-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- ADRs are point-in-time records, but not fully frozen after acceptance.
Minor annotations are welcome: cross-references to related ADRs, short
notes linking to newer decisions, or clarifying remarks. However, do not
Expand Down
6 changes: 6 additions & 0 deletions docs/ADRs/0133-actor-attributed-data-security-boundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Date: 2026-10-07

Accepted

[ADR 0151](0151-harness-human-role-minimums.md) replaces the
observation/mutation-derived human threshold for Fullsend-controlled
model-bound records with the selected harness's effective `human_min_role`,
enforced above an immutable `triage` floor. Current-revision actor checks,
filtering, delimitation, and redaction remain required.

## Context

[ADR 0054](0054-require-authorization-on-all-agent-dispatch-paths.md) decides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ Date: 2026-09-07

Accepted

[ADR 0151](0151-harness-human-role-minimums.md) partially supersedes the
human threshold inherited from ADR 0133 for Fullsend-controlled model-bound
snapshot records in the target contract: admission uses the selected harness's
effective `human_min_role` above an immutable `triage` floor. Snapshot v1
retains its historical threshold; deterministic assembly, current-revision
checks, and filtering remain required.

## Context

[Issue #6407](https://github.com/fullsend-ai/fullsend/issues/6407) identifies
Expand Down
13 changes: 13 additions & 0 deletions docs/ADRs/0144-reuse-poll-and-entity-bound-run-processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ Partially supersedes [ADR 0063](0063-polling-based-work-discovery.md):
`fullsend poll` may remain resident instead of always exiting after one cycle.
Its per-repository scope and driver architecture remain current.

[ADR 0147](0147-evaluate-entity-cel-over-selectively-acquired-data.md)
partially supersedes the complete-entity due-check and full-history audit
requirements below. [ADR 0148](0148-reuse-verified-actor-roles-for-entity-cel.md)
separately permits bounded role reuse for entity CEL in place of mandatory
per-check actor-role refresh. The lifecycle, due-check scheduling, current
entity resolution, and fresh model-bound authorization rules remain current.

[ADR 0151](0151-harness-human-role-minimums.md) makes the selected harness's
effective `human_min_role` the platform-enforced threshold for each cycle's
event actor (when present), decision-relevant entity facts, and
Fullsend-controlled model records. Eventless checks still require trusted
Fullsend invocation provenance; model-bound actor checks remain fresh.

## Context

[ADR 0098](0098-entity-first-harness-evaluation.md) makes the current entity,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
title: "147. Evaluate entity CEL over selectively acquired data"
status: Accepted
relates_to:
- agent-architecture
- operational-observability
topics:
- authorization
- cel
- entities
- polling
---

# 147. Evaluate entity CEL over selectively acquired data

Date: 2026-10-22

## Status

Accepted

Partially supersedes [ADR 0098](0098-entity-first-harness-evaluation.md)'s
pre-CEL enumeration, per-element permission refresh, and full audit roster. It
also replaces [ADR 0144](0144-reuse-poll-and-entity-bound-run-processes.md)'s
full-entity due checks and full-history audit roster. Their trusted-origin,
process-lifecycle, and model-bound staging rules remain. Actor-role reuse is
defined by [ADR 0148](0148-reuse-verified-actor-roles-for-entity-cel.md), and
actor admission by [ADR 0151](0151-harness-human-role-minimums.md).

## Context

[ADR 0098](0098-entity-first-harness-evaluation.md) and
[ADR 0144](0144-reuse-poll-and-entity-bound-run-processes.md) require complete
entity history before entity-source CEL evaluation. That can cause unrelated
provider reads for state-only or short-circuiting predicates. Progressive
evaluation can also repeat role lookups for the same actor. Entity-source CEL
remains disabled pending the [normalized-entity contract tracked by issue
#8420](https://github.com/fullsend-ai/fullsend/issues/8420), which must define
partial-data and coverage semantics. Existing event-only routes are unchanged.

## Options

### Fetch all history before CEL

This makes missing history easy to detect but requires reads and audit records
for categories the predicate never uses.

### Fetch decision-relevant data progressively

This avoids unrelated reads, but requires explicit partial-data semantics and
proof that a result cannot change when more data is fetched.

## Decision

1. Keep the platform's action-indicating categories closed. Acquire only fields
and history that could affect the compiled predicate, using a conservative
plan and only sound provider filters.
2. Return `true` or `false` only when fetched facts and proven coverage establish
that result for every complete entity consistent with the evidence. Otherwise
return `UNKNOWN` and fetch more relevant data or leave the candidate
unresolved. Missing, unavailable, inconsistent, or exhausted evidence is
never treated as false or empty.
3. Fetch, authorize, and audit only decision-relevant facts. Unrelated history is
neither fetched nor listed, and provider aggregates affected by excluded
records cannot enter the authorized view unchanged.
4. Record bounded decision evidence—query scopes, coverage, and witness
provenance—as specified in [Authorization Contract v2](../normative/authorization/v2/README.md).

[ADR 0151](0151-harness-human-role-minimums.md) defines actor admission and
human-minimum rules. [ADR 0148](0148-reuse-verified-actor-roles-for-entity-cel.md)
defines verified-role reuse. [ADR 0144](0144-reuse-poll-and-entity-bound-run-processes.md)
continues to define the bound-run lifecycle. Authorization Contract v2
specifies the evaluation, audit, and incomplete-candidate retry rules under
[ADR 0015](0015-normative-specifications-directory.md); it does not change
legacy non-CEL, non-entity workflows.

## Forge scope

This applies to GitHub, GitLab, Forgejo, and Jira entity-source harnesses.
Each adapter must establish sound coverage and provider-backed actor roles
for the facts it supplies; unsupported provider queries or pagination leave
the decision unresolved. Existing event-only dispatch on every forge is
unchanged.

## Consequences

- State-only and short-circuiting predicates can avoid unrelated provider
reads, permission lookups, and audit volume.
- Negative and aggregate predicates can still require all relevant history;
provider limits may leave a check unresolved and prevent sandbox launch.
- Adapters and the normalized-entity contract must represent partial coverage
and source consistency, including raw state versus actor-filtered action
facts, before entity-source CEL can ship.
- Audit consumers must use bounded decision evidence; omitted actors' roles
cannot be reconstructed from that record without separate provider logs.
- An unauthorized forge update may defer a staleness check based on raw
`updated_at`; a harness needing last-authorized-update semantics must acquire
and authorize the relevant history.
105 changes: 105 additions & 0 deletions docs/ADRs/0148-reuse-verified-actor-roles-for-entity-cel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
title: "148. Reuse verified actor roles for entity CEL within a bounded lifetime"
status: Accepted
relates_to:
- agent-architecture
- agent-infrastructure
topics:
- authorization
- caching
- cel
- entities
---

# 148. Reuse verified actor roles for entity CEL within a bounded lifetime

Date: 2026-10-22

## Status

Accepted

Partially supersedes [ADR 0098](0098-entity-first-harness-evaluation.md)'s
permission-at-evaluation-time rule and
[ADR 0144](0144-reuse-poll-and-entity-bound-run-processes.md)'s mandatory
actor-role refresh at every due check and prohibition on a cached
authorization result substituting for that refresh. This exception applies
only to entity-source CEL. Event admission and model-bound content admission
retain their separate fresh authorization rules.
[ADR 0151](0151-harness-human-role-minimums.md) sets the platform human floor
and effective harness minimum without extending this cache to either gate.

## Context

[ADR 0147](0147-evaluate-entity-cel-over-selectively-acquired-data.md) lets an
entity CEL check load only the facts needed to decide its predicate, fetching
more when the partial result is `UNKNOWN`. Iterations within one check, later
due checks, and separate `poll` and bound `run` processes can encounter the
same actors. [ADR 0144](0144-reuse-poll-and-entity-bound-run-processes.md)
requires every due check to refresh actor authorization even when a recent,
provider-verified result is available. That multiplies provider calls as
entity polling becomes more frequent.

Reusing a role result across checks reduces those calls but delays recognition
of a grant or revocation that the platform has not observed. The bounded
period and the gate to which it applies therefore belong in the authorization
contract, rather than being left as a cache implementation detail.

## Options

### Refresh every due check

This notices provider-side permission changes on the next check but repeats
lookups for actors shared by related checks.

### Reuse roles without expiry

This saves lookups but can permanently preserve a revoked grant or stale denial.

### Reuse roles for a bounded period

This bounds permission-change latency while allowing related checks to share
provider results.

## Decision

For entity-source CEL, Fullsend may reuse completed, provider-verified human
role results and exact registered-bot-role results across progressive checks,
harnesses, and `poll`/bound `run` processes. A trusted host-owned cache may be
local or shared. The initial maximum age is five minutes from lookup start.
This is an arbitrary starting cap, not a measured optimum. After entity polling
is in production, revisit the cap using observed authorization-freshness needs
and SCM API rate-limit pressure. A platform policy may choose a shorter age;
without that policy, cross-check reuse is disabled. Cache hits never renew
expiry. Completed positive and negative verdicts may be cached; failed,
incomplete, or unverifiable results may not.

The cache stores a verified role or verified absence, not a harness threshold
result or CEL decision. Each harness applies its own `human_min_role`, and an
exact label-transition grant is never cached as a role. Cache identity and
invalidation isolate each verified permission source and its revision; the
exact key dimensions and audit evidence are specified by
[Authorization Contract v2](../normative/authorization/v2/README.md). Every
check still validates current entity facts, actor attribution, and coverage.
A bound `run` re-resolves the entity and evaluates its own CEL result before a
sandbox cycle. Event admission and model-bound content retain their fresh gates.

## Forge scope

This applies to GitHub, GitLab, Forgejo, and Jira entity-source CEL. An
adapter can share a role result only if it can verify a stable actor identity,
role, and authorization scope and bind any available source revision;
otherwise the check must refresh authorization or remain inconclusive.
Existing event-only routing is unchanged on every source.

## Consequences

- Progressive checks and resident processes can share role results without
repeating provider calls for every CEL iteration or due check.
- An unobserved revocation can let a newly observed action select and launch a
sandbox until the cached grant expires; an unobserved grant can delay work
until expiry and the next bounded recheck.
- Event admission and model-bound content admission still perform fresh checks,
so each uses authorization evidence independent of the CEL cache.
- Cache implementations must enforce scoped keys, absolute expiry,
invalidation, and auditable evidence age even when processes share storage.
Loading
Loading