Repository navigation
Description
ADR 0107 (deterministic filtered entity-context staging, #7080, unmerged) denies runtime forge reads for entity-context source kinds by default: context is staged on the host before the run, filtered and recorded, and the sandbox consumes the staged records, not the forge. Steering (ADRs 0113 and 0117 in #6959, with the delta and its provenance in #7447 (ADR 0118) and queue monitoring in #7451 (ADR 0119)) and the agent-side re-check (fullsend-ai/agents#1163) were both designed before that rule and both read the forge at run time. This issue tracks bringing them under 0107. It is a follow-up to #6957; nothing here blocks the steer stack, which merges with the reads it has today.
Target A — the watcher's host-built steer delta
In #7447 and #7451 the watcher reads the work item on the host (comments, reviews, head) through ItemReader, builds the delta, and the envelope carries the collaborator text and the work-item context verbatim into the running session. Under 0107 that is a second, unrecorded path for entity-context kinds into the sandbox, with none of staging's filtering, truncation records, or integrity checks.
Target: an accepted follow-up run triggers a re-stage of the affected kinds. The envelope stops carrying content and carries record keys plus the new head; the runtime resolves them against the staged index. That needs:
- an incremental index update for a run already in flight (0107 stages once, before the run);
- a mid-run upload into the sandbox under 0107's integrity rules (same recording of truncation, replacement and fetch errors as the initial stage);
- steer envelope v2 in
docs/normative/steer-envelope/v1's successor: the opening line and structural tokens stay, theAmendments/Work-item contexthalves reference records instead of embedding text. v2 also carries a per-run authenticator the agent can check — a nonce the runner exports into the sandbox and repeats in the envelope, or a message role untrusted content cannot produce — so the definitions stop being the sole enforcement point for "this is a runner update" (today: the opening line, gated onFULLSEND_STEER_ACTIVE). The agent definitions in fullsend-ai/agents match only on the opening line, so v2 is a runtime-side change with a coordinated definitions bump.
Target B — the agent-side re-check's in-sandbox forge reads
fullsend-ai/agents#1163 adds an end-of-run re-check to review, triage, fix and code: once, before writing the result, the agent fetches the current head, the activity created after FULLSEND_RUN_STARTED_AT that is not fullsend's own, and the compare from FULLSEND_RUN_HEAD_SHA to the new head, using the "Re-check Data" commands in the forge skills (gh api / curl from inside the sandbox). Every one of those is a runtime forge read of an entity-context kind, so under 0107 it is denied by default unless a host-side extension is configured to allow it.
Target, one of:
- the re-check reads the re-staged records from Target A instead of the forge — the same index update serves both, and the re-check becomes a read of local staged data with the record's integrity metadata attached; or
- the re-check is dropped in favour of what ADR 0106 already provides: a work-item update that arrives during a run is coalesced into the queued follow-up run, which starts from a fresh, fully staged snapshot; the receipt (feat(cli): receipt the absorbed update under the job token, and skip the queued run #7456, ADR 0120) tells the reader which updates the finished run covered and which the queued run will. The agent then reports the head it was dispatched for and never reads the forge at the end.
Option 2 is the simpler contract and removes an in-sandbox network dependency; option 1 keeps the "fold the delta before the result" behaviour that #6957 asked for. Decide when Target A's shape is settled, because option 1 depends on it.
Out of scope
- The steer stack itself (feat(dispatch)!: never cancel the agent run in flight on a work-item update #7007, refactor(runtime): add the steer interface, off by default #6959, refactor(steerwatch): verify follow-up run provenance and split the delta by authority #7447, feat(steer)!: learn of later events by listing the platform's own run records #7451, feat(cli): receipt the absorbed update under the job token, and skip the queued run #7456, feat(harness)!: steer by default, opt out with steer.enabled: false #7461) and agents#1163: they merge with runtime reads as designed; 0107 is unmerged and its host-side extension mechanism is the interim allow path.
- The prompt-level author rule in agents#1163 (only fullsend's own comments excluded, never classified by login shape); that stays regardless of where the data comes from.
Refs: #6957, #7080 (ADR 0107), #7007 (ADR 0106), #6959 (ADRs 0113, 0117), #7447 (ADR 0118), #7451 (ADR 0119), #7456 (ADR 0120), #7461 (ADR 0121), fullsend-ai/agents#1163
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
fullsend-ai-triage commentedon Sep 18, 2026
🤖 Finished Triage · ✅ Success · Started 3:33 PM UTC · Completed 3:38 PM UTC
Commit:
6e4f581· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.44
fullsend-ai-triage commentedon Sep 18, 2026
This tracking issue is scoped to bring the steer stack and the agent-side re-check under ADR 0107's entity-context staging rule, but that rule is itself still an open, unmerged proposal (#7080). Until 0107 is accepted, there is no settled staging contract to integrate against, and the issue's own text notes the interim allow path is what's in effect today.
Separately, the code this issue would modify is also still in flight: the watcher's host-built steer delta (#7447, #7451) and the steer interface it builds on (#6959), plus the agent-side re-check (fullsend-ai/agents#1163), are all open PRs. The issue's "Out of scope" section confirms those merge first with their current runtime forge reads untouched -- so this follow-up necessarily targets their post-merge shape, which doesn't exist in the tree yet.
One more open item worth flagging for maintainers directly (not something a developer can resolve unilaterally): Target B lists two candidate designs (re-check reads re-staged records vs. dropping the re-check in favor of the ADR 0106 coalesced-run receipt in #7456) and explicitly defers the choice until Target A's shape is settled. That decision should be made once the prerequisites above land, before implementation work is dispatched.
Recommend holding this issue until #7080 is decided and the steer-stack/re-check PRs merge.
Blocked by:
Labels: The issue is gated on an unaccepted ADR and unmerged upstream PRs, and still has an open design choice, matching the repo's blocked/needs-design conventions and the runner/dispatch components it touches.
fullsend-ai-scribe commentedon Sep 28, 2026
Meeting update — 2026-09-28
Relevant to this issue: Discussion emphasized that core entity definitions must be established before implementing agent steering, directly relevant to the entity-context re-staging this issue tracks.
Next steps: Define core entity architecture before advancing steering implementation.
Meeting notes