# Controller v1 update — September 13, 2026

The director/worker model is provider-neutral. V1 qualifies Astra in Codex as
director and native Claude Fable 5.1 as worker; other adapters, search and the
future web console are tracked in the [execution plan](https://gitlab.ai-servicers.com/administrators/aiagentchat/-/blob/main/docs/agent-communication/plan.md).

Use `agent-control` or `cchat control` for durable submit/status/message/reply/
result/collect/cancel operations. A private owner socket serves local directors;
a dedicated Matrix room routes commands to websurfinmurf's existing owner service.
The receiver applies project grants and launches the native CLI under its own UID
and HOME. /refocus remains the tool for producing a focused project handoff.

Operational IDs, attribution, digests and status survive reconnects. Temporary
controller payload bodies expire or are collected; this does not erase
Matrix/provider histories. No idle-conversation reuse or unmanaged-session attach
is included.

### An administrator service remains available

The administrator host user service stays running and accepts structured questions
and work through `agent-control`, `cchat control`, or its private Unix socket.
It starts Claude when needed; Claude need not remain idle consuming a session.
An authorized peer uses the configured private Matrix connection and project grant.
Programs running as other accounts or in arbitrary containers are not granted
access automatically. A question is a task with an explicit project and objective;
read its status/result and collect its temporary payload when finished.

Websurfinmurf retains its existing owner container. Neither owner needs access to
the other's repositories to exchange tasks and results. The duplicate
`agents-cli-claude-administrator` container has been stopped with restart disabled;
its image and state remain for rollback. Its old public Matrix room remains for
history, but ordinary messages there have no administrator bot. New legacy
administrator delegations are rejected with directions to the controller.
See [retirement evidence](https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/administrator-retirement.md).

### Readable work history — live

The controller keeps objectives, participants, questions,
director answers and follow-ups, delivery states and final results, plus explicit
worker progress, decisions and artifact references. Task titles and ordered,
attributed events provide the data for a future overview with click-through work
details. **The web console is future work; it is not being built now.**

Readable history remains in private owner storage until that owner explicitly
forgets a terminal task. It survives operational `collect` and temporary-body
expiry. Reads follow existing project/status grants; worker reporting belongs to
the live assignment. Forgetting removes the controller's readable history without
resetting execution/replay identities or erasing Matrix/provider copies.

This is a record of reported work, not raw provider reasoning, tools or transcripts.
Titles may be objective excerpts; progress and artifact references remain worker
claims until reviewed. Collection limits identify gaps or truncation, and
already-erased history cannot be recreated. `history` retrieves ordered pages or
stored event-text chunks; worker `agent_report` adds a progress, decision or
artifact note; local-owner `forget_history` removes a terminal task's readable
record. See the [history release evidence](https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/session-controller-history-acceptance.md)
for the 1,217-test CI run, deployment and live cross-owner/restart validation.

See [current acceptance evidence](https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/session-controller-acceptance.md)
and [installation/commands](https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/session-controller-operations.md).
The following handbook preserves the dated September 12 workflow rollout.

---

# Astra orchestrates, Claude delivers — handbook

Status date: **2026-09-12**. Companion to the reveal.js deck
(`astra-claude-orchestration.html`; published as `orchestration-guide.md` next to
`index.html`). Sections marked **Observed** describe current local behavior with
sources.

**Authorization update, 2026-09-12:** the user authorized implementing all six
recommendations in section 10. The first five are implemented and locally
accepted, with automated regression tests and live native Claude checks.
Recommendation 6 has an accepted native CI runner (runner 11), the current owner
image deployed from `main` (CI 1851), fresh provider/tool success and a
service-attested provenance handoff. The native receipt/write and fresh owner verification passed; parent checkout access remains open — see section 11.
Implementation status of record: `docs/orchestration-implementation.md`.

---

## 1. The operating model

**Astra** (a model, running in the **Codex** harness) plans, scopes, reviews and
owns Git. **Claude** (the `claude` CLI, sonnet or opus) does one bounded piece of
work in the owner's real checkout and returns evidence.

- Same Linux owner → launch the native CLI under the existing UID, HOME, login and
  configuration, in the current checkout.
- Different Linux owner → delegate to that owner's standalone agent, which launches
  its CLI under its own account.
- No per-task clone or worktree by default. Role containers and the isolated
  `workers/` candidate are separate designs.

Source: `agents/CLAUDE.md` (agreed session routing, 2026-09-11);
`agents/runtime/CLAUDE.md`.

## 2. Four independent axes (Observed)

| Axis | Question | Examples |
|---|---|---|
| Model | Which weights reason? | Astra; Claude sonnet/opus |
| Harness | Which CLI runs tools, permissions, sessions? | `codex`, `claude`, `agy` |
| Linux owner | Whose UID, HOME, login and files? | administrator (UID 2000), websurfinmurf |
| Project cwd | Whose context loads? | Destination `CLAUDE.md`; context, not a sandbox |

Built-in Codex subagents remain Codex; a role name does not make one Claude. A real
cross-provider worker exists only when the `claude` CLI is invoked. Refocus routing
precedence (implemented and tested — see §5): explicit per-task
choice (`--worker claude`) → invoking skill's `worker:` declaration → the
destination project's canonical `CLAUDE.md` orchestration preference
(adopted in agents/runtime and claude-shared) → initiating harness. So one
explicit request needs no global policy change.

## 3. Lifecycle of one bounded task

1. **Astra — scope:** owner, project, harness, model, files; same project or refocus.
2. **Astra — brief:** `done_when`, `out_of_scope`, inherited facts, assigned files.
3. **Launch:** `/refocus` calls `agent-session run`; it starts native Claude in the destination cwd and records the request and actual session.
4. **Claude — work + Result:** edit assigned files, run checks, write Result.
5. **Astra — verify:** read diff, rerun tests, compare to `done_when`; accept or reject.
6. **Astra — land:** Git, context notes, publication, card update. Single writer.

A worker's "completed" is a claim; acceptance is step 5 by a different party.

## 4. Roles

| Astra (Codex) | Claude worker |
|---|---|
| Talks to the human; decomposes | Leaf: never calls `/refocus` or spawns workers |
| Chooses worker harness and model per task | Edits only assigned paths; preserves others' edits |
| Assigns files; serializes shared-file edits | No `/context-save`; lists Material changes |
| Reviews diffs, reruns tests | Returns Result with tests and unresolved items |
| Only Git and shared-context writer | Suggests follow-ups; parent decides |

## 5. `/refocus` vs `agent-session` vs `aiauto`

**Unified as of 2026-09-12.** `/refocus` execute-mode no longer launches a
harness directly: `spawn-worker.sh` now delegates every automated launch to
`agent-session run`, which owns permissions, the checkout lock and the
timeout. This is source-verified, not the target design — read
`claude-shared/skills/refocus/lib/spawn-worker.sh` and
`agents/runtime/native_sessions/__main__.py`/`runtime.py` directly if you need
to re-check after this date, since implementation was still landing while this
guide was written (see the change note at the end of this section).

| | `/refocus` (skill — brief + review) | `agent-session` (runtime — execution) | `aiauto` (human launcher) |
|---|---|---|---|
| Job | Author a scoped brief, route it, review the Result, own Git | Run one native harness task as the verified owner, or submit to another owner's peer | Human starts/resumes an interactive session |
| Invoked by | Orchestrator interprets `/refocus …` — **not** a shell command | `spawn-worker.sh` calls it for every execute launch; also callable directly | Human terminal |
| Permissions | Delegates entirely to the runner's `--permission-profile` | `native|bypass`, default `native`; `bypass` only when explicitly requested | Explicit bypass mode (Codex: approvals and sandbox) |
| Checkout lock | Delegates entirely to the runner's lock | `--schedule exclusive` (default, whole-checkout) or `owned-files` (per-file lease locks — both implemented, see below) | None; not a scheduler |
| Timeout | Delegates entirely to the runner's `--timeout` (spawner's own default, still 1200s, is just the value it passes) | Runner-owned; single-sourced | — |
| Record | Brief + Result + `ID.worker.log`, linked to the runner's `request_id` | Receipt in `~/.local/state/native-sessions/REQUEST_ID/` | `~/.aiauto.log` |
| Resume | Claude: `claude --resume <exact ID>` for a human to inspect history | `agent-session continue REQUEST_ID --task-file FILE` from an exact terminal receipt (source exists; see recommendation 3 status) | Newest eligible top-level cwd match |

- Refocus is a project-context handoff protocol: brief in destination
  `docs/refocus/`, native worker in that cwd, Result returned, parent accepts or
  rejects and coordinates Git. Children are leaves. Same-project bounded work does
  not itself require a conceptual refocus.
- The one path that still bypasses the runner is the documented **manual**
  fallback: a human copy-pastes `claude --session-id <sid> "<prompt>"` (or the
  Codex/Antigravity equivalent) themselves, outside `spawn-worker.sh`, and runs
  `/refocus-complete` when done. That is a deliberate human-in-the-loop
  alternative to automated execute mode, not a residual gap in it.
- `/refocus --later` files an **inert** GitLab backlog card in another project's
  inbox. It executes nothing.
- `aiauto -codex` resumes the newest eligible top-level conversation matching the
  cwd; `--fresh` forces new; `--dry-run` previews. Launcher fix `864ad00` excludes
  subagent threads via source/thread_source/parent markers and keeps user forks
  (90 launcher tests passed; historical replay picked the parent; the user's
  exit/relaunch succeeded 19:12 EDT 2026-09-12 — this fixed aiauto sometimes
  resuming an unloaded Codex subagent thread instead of continuing the
  parent orchestrator conversation). A newer top-level conversation in the
  same cwd can still win — use `codex resume <exact ID>` for specific history.
- Refocus Claude worker IDs are added to `~/.claude/claudeauto-skip` so aiauto never
  auto-resumes a worker.

Sources: `claude-shared/skills/refocus/SKILL.md`, `lib/spawn-worker.sh`;
`agents/runtime/docs/native-sessions.md`.

### Unified contract — implemented in source, 2026-09-12 (recommendation 2)

The full authorized contract is implemented on both sides of the interface as
of this date, verified by reading the code directly (not asserted from a
comment or commit message):

- `claude-shared/skills/refocus/lib/spawn-worker.sh` builds `agent-session run
  --harness ... --model ... --effort ... --permission-profile ...
  --session-id ... --parent-session-id ... --brief-path ... --schedule ...
  --max-workers ...` and no longer invokes a harness CLI directly.
- `agents/runtime/native_sessions/__main__.py`'s `run` subcommand accepts all
  of those flags, and a `continue` subcommand exists
  (`native_sessions/runtime.py:continue_session`) that resumes from an exact
  terminal receipt, refuses `pending`/uncertain state, and refuses remote
  (cross-owner) continuation with an explicit error rather than a silent
  no-op.
- `--schedule owned-files` is a real lock mode (`schedule_locks()` in
  `runtime.py`: a shared lock on `native-sessions.lock` plus one of
  `--max-workers` per-file lease locks), not a placeholder flag.

**Local behavior is independently verified:** a native Claude write, exact same-session continuation, and complete refocus brief/Result handoff passed. Cancellation through the real runner with a synthetic provider also passed. Cross-owner native execution passed with owner attestation; parent checkout access is still open; see §11 and `docs/orchestration-implementation.md`.

Fields: `--model`, `--effort`, `--permission-profile native|bypass` (default
`native`; `bypass` only when explicitly requested, never implied by a
`CLAUDE.md` stanza or a missing flag), `--parent-session-id`, `--brief-path`,
`--session-id`, `--schedule exclusive|owned-files` (default `exclusive`),
`--max-workers` (default 2, integer 1–64). Owned-files admission enforces one checkout-wide cap; a conflicting cap is refused while active slots are held. Cap changes require exclusive checkout ownership. `--request-id`
remains the durable unique launch identity. Receipts gain
`requested_model`/`actual_model` (`unknown` when not independently knowable —
never guessed), `requested_effort`, `permission_profile`, `parent_session_id`,
`brief_path`, `assigned_files`, and both `session_id` and `native_session_id`
(the old field name is kept for compatibility).

`agent-session continue REQUEST_ID --task-file FILE [--request-id NEW_ID]`
creates a new, linked receipt from an exact, terminal (`completed` or `failed`)
known session — never from "latest". It retains the original owner, cwd,
harness, model and permission profile. Only Claude and Codex have verified
local CLI resume arguments; an unsupported harness, or a remote continuation
the code does not support, blocks honestly instead of guessing.

Routing precedence, most specific first: explicit per-task choice > the
invoking skill's `worker:` declaration > the destination project's canonical
`CLAUDE.md` orchestration preference (adopted in agents/runtime and claude-shared) > the initiating harness.

`SESSION_REFOCUS_ROLE=child` is rejected by a nested run at the parent
process's own entry point; the runner sets that env only for the native
subprocess it launches. A remote (cross-owner) envelope carries the same
contract fields, and the receiving side's own config must explicitly allow
`bypass` — there is no silent privilege increase crossing the owner boundary.

Source: `docs/native-sessions.md` and `docs/orchestration-implementation.md`;
`agents/runtime/native_sessions/__main__.py`, `native_sessions/runtime.py`;
`claude-shared/skills/refocus/lib/spawn-worker.sh`, `SKILL.md` — all read
directly for this guide, 2026-09-12. The implementation record distinguishes
source tests, live local acceptance and the outstanding cross-owner deployment.

### Optional larger-enhancement lifecycle

For multi-phase enhancements only — not required for bounded edits:

| Skill | Produces |
|---|---|
| `/requirements` | Structured interview, EARS spec committed to the repo |
| `/createsolution` | Multi-AI solution with optional critique loop |
| `/createplan` | Synthesized plan in `docs/{enhancement}/` |
| `/executeplan` | GitLab board and cards from those artifacts |
| `/cicd` | Role-aware entry point across the lifecycle |

## 6. The handoff in detail

1. Astra drafts the brief and writes `dest/docs/refocus/ID.md` with status `reserved`.
2. `spawn-worker.sh` routes (`--worker claude --orchestrator codex`), maps tier to
   model/effort, refuses a missing runner with rc 5 (no substitution), skip-marks the
   Claude session ID, stamps frontmatter to `in-progress`.
3. Runs `agent-session run --harness claude --model ... --permission-profile ...
   --session-id ID ...` with brief + worker directive on stdin. The runner — not the
   spawner — resolves cwd = destination, sets `SESSION_REFOCUS_ROLE=child` for its own
   subprocess, takes the checkout lock per `--schedule`, and owns the timeout.
4. Worker edits assigned files and writes the Result block.
5. The runner returns a receipt; the spawner stamps `worker_session_id`,
   `receipt_state` from that receipt and `completed_at` only for terminal evidence
   (never from the worker's own claim). Missing stdout triggers exact-request status
   recovery; unknown state remains uncertain without a completion timestamp.
   A missing, malformed or blocked Result prevents successful completion.
6. Astra reviews, then owns Git, shared context and publication.

A failed or uncertain receipt overrides a worker-written "completed" — the spawner's
frontmatter reflects the receipt, not the Result block, when they disagree.

### Example bounded brief (illustrative)

```yaml
worker_harness: claude
tier: low
done_when:
  - parse_duration accepts "90s" and "2m"; tests added
out_of_scope:
  - no Git operations; orchestrator owns Git
  - edit only src/parser.py and tests/test_parser.py
  - no deployments, credentials or new workers
```

Inherited context: 5–15 load-bearing bullets (≈300 words cap), e.g. "existing
callers pass integers; keep that path", "preserve unrelated uncommitted edits".

### Required Result shape (headings verbatim)

```markdown
### Status
- completed
### Definition-of-Done met
- met: both forms parse; 4 cases added
### Summary
...
### Artifacts produced
- `src/parser.py` — duration suffix parsing
### Tests
- pytest tests/test_parser.py → 12 passed
### Unresolved
- none
### Suggested follow-ups (parent decides)
- none
### Material changes (for /context-save — orchestrator writes them)
- N/A
### Source attribution
- Worker: claude (sonnet); orchestrator: codex
- Session locator: <recorded UUID>
```

Astra independently reruns the tests and reads the diff before accepting.

## 7. Operator cheat sheet

```bash
# start or resume Astra (human terminal)
cd ~/projects/agents/runtime
aiauto -codex              # newest eligible top-level session for this cwd
aiauto -codex --fresh      # force a new conversation
aiauto -codex --dry-run    # preview the pick

# resume exact histories
codex resume <thread-id>
claude --resume <worker-session-id>

# native runner receipts
agent-session status <request-id>
agent-session history

# unified contract, direct call (what spawn-worker.sh now runs for you) —
# implemented in source 2026-09-12; run --dry-run first to see the exact command
agent-session run --owner administrator --cwd ~/projects/agents/runtime \
  --harness claude --model sonnet --effort high \
  --permission-profile native --schedule exclusive --max-workers 2 \
  --brief-path docs/refocus/ID.md --assigned-file src/parser.py \
  --request-id req-<id> --task-file -

# continue exact terminal work (source exists; locally accepted)
agent-session continue req-<id> --task-file more-work.md
```

Tell Astra:

> Use Claude workers for implementation in this checkout; assign files; preserve
> unrelated edits; return diffs and tests; you own review and Git.

Cross-project handoff — a **skill invocation Astra interprets**, not bash:

```
/refocus /absolute/project --worker claude --slug bounded-task --permission-profile native
```

Four sentences that prevent rework: name the worker (and model); bound the files;
demand diff, exact test commands and outcomes; workers do not commit — Astra lands.

Do not put secrets or transcript dumps in briefs; receipts and logs can contain task
material.

## 8. Parallelism and the owner boundary

| Safe now | Coordinate | Avoid |
|---|---|---|
| Different projects / checkouts | Disjoint files in one checkout: assign owners, then `--schedule owned-files` (implemented; per-file lease locks) or run one at a time under the default `exclusive` lock | Nested runner launches (rejected by the leaf guard) |
| One worker per checkout | Every `/refocus` execute launch now takes the runner's lock — refocus no longer has a separate unlocked path (§5) | Recursive autonomous teams |
| Read-only investigation alongside | The documented **manual** human-launched fallback (§5) bypasses the runner and its lock — coordinate that by hand | Treating UID/HOME as full environment parity |

Assigned files in the native runner are advisory, not enforcement. A different owner
always needs a trusted owner-to-peer mapping: no sudo, run-as, Docker exec or
fallback. A containerized owner peer may differ from the host in binaries, groups
and network.

## 9. Completion, resume, recovery

| Situation | System behavior | Operator action |
|---|---|---|
| Refocus worker timeout | Runner-owned timeout (spawner's default is still 1200s); no receipt → blocked Result appended | Read `ID.worker.log`; inspect partial edits; re-brief |
| Crash, no Result | Blocked Result with exit code; a failed/uncertain receipt overrides a worker's own "completed" claim | Do not auto-reroute to another harness; tell the human |
| Need worker history | Claude ID recorded and skip-listed | `claude --resume <exact ID>` |
| Native run uncertain | `execution_unknown` / `submission_uncertain`; no auto-retry | Investigate; never reuse or delete the request ID to retry |
| Cross-owner `pending` | Submission acknowledged only | `cchat status REQ --json`; `reconcile` a peer receipt whose Matrix event provenance is service-attested and hash-bound to the exact body/prompt; explicit operator attestation is still required, and a claimed caller label is never authorization |
| Need to continue known work | `agent-session continue REQUEST_ID --task-file FILE` — implemented in source (`native_sessions/runtime.py:continue_session`), locally accepted through verified native write, continuation and refocus checks | Give the exact terminal request ID; a `pending`/uncertain request refuses continuation, never falls back to "latest" |

Native CLI exit 0 can mean `completed` or `pending`; inspect `state`.

### Four kinds of record

| Record | Answers | Notes |
|---|---|---|
| GitLab work item | Why, and is it done? | Durable, human-reviewable; `--later` lands here |
| Conversation | How did we reason? | Resume by exact ID; "newest" can pick wrongly |
| Job receipt / Result | What exactly ran and came back? | Brief Result + worker log, or native receipt; private |
| Context notes | What must the next session know? | `CLAUDE.md`, `docs/context/`; orchestrator is single writer |

The request ID now links the brief, original parent, actual native session/model, owner/cwd/files, logs and parent test review. Keep the GitLab work-item link in the task brief.

## 10. Implementation of the six changes

| # | Change | Current state | Acceptance or remaining step |
|---|---|---|---|
| 1 | Canonical project Astra→Claude preference | Implemented, locally accepted | Runtime and claude-shared adopt it; live refocus selected Claude without override; explicit overrides have regression coverage |
| 2 | Refocus executes through native owner-aware runner | Implemented, locally accepted | Real Claude marker, complete Result and linked receipt passed; peer transport is tested, owner provider/tool probe passed; full shared-checkout parent-Git acceptance remains |
| 3 | Linked receipts and exact continuation | Implemented, locally accepted | Request resolves brief/parent/session/model/logs/review; same native Claude session continued successfully |
| 4 | Bounded disjoint-file scheduling | Implemented, tested | Exclusive default; checkout-wide cap, disjoint concurrency, overlapping paths and shared-ACL checks pass |
| 5 | One Git and shared-context writer | Implemented and tested | Execute workers never commit or save shared context; only an explicit manual handoff transfers ownership |
| 6 | Owner image, runner and cross-user acceptance | **Native write passed; parent checkout access open** | Runner 11, the CI 1851 owner image, fresh owner provider requests and the service-attested provenance handoff (`req-deb6063540f9`) pass; native write `req-7993bc50a00b` and fresh verification/cleanup `req-535d03bcccb4` passed; parent checkout access remains open |

CI now selects one target: `RUNTIME_PIPELINE_TARGET=tests` (default), `owner`,
`roles`, or `workers`. The owner target cannot deploy the separate role or isolated
worker candidate. GitLab CI lint verified the actual job graphs; focused tests
passed in the declared non-root image. Runner 11 executes main tests and lint
successfully (711 tests and lint on pipeline 1851).

## 11. Status and evidence — 2026-09-12

Current deployment: runtime `main` `b7b2a1ca` deployed by CI 1851 (owner job 11169; 711 tests and lint passed); owner image `sha256:1f0e35d9af7e95b2f6a279c09685c2bf6255673d82104e513b362a99adc11921` is healthy. aiagentchat `main` `deb1aec3` deployed the normal gateway and daemon by CI 1852 (job 11173; 482 passed, 3 skipped). Deployment facts in this section were supplied by the orchestrator from those pipelines.

Current local acceptance: native write `astra-native-smoke-f4d40e74`, exact continuation `astra-native-continue-f4d40e74`, and complete refocus handoff `refocus-2026-09-12-refocus-runner-smoke-09c7df` passed with actual `claude-sonnet-5`, administrator UID/GID 2000 and canonical HOME/cwd. Parent assertions verified files and linked receipts. The real-runner/synthetic-provider cancellation check returned 130 and stopped descendants. Full evidence: `docs/orchestration-implementation.md`.

| Claim | State | Evidence |
|---|---|---|
| Same-owner native Claude writes in current checkout | Verified | Claude 2.1.270, actual claude-sonnet-5; native write, exact continuation and full refocus Result independently checked |
| Same-owner native Codex writes | Verified | Codex 0.154.0 marker created and checked |
| Antigravity unattended file edits | Blocked | Response check passed; write `permission_blocked` under unchanged policy |
| Cross-user execution and provenance via owner agent | Native write and owner verification passed | `req-23d900790d2f` completed real owner commands and receiver help; `req-9f006c71579a` reported a native Claude session. Live `req-deb6063540f9` returned `PROVENANCE_HANDOFF_OK` with verified owner UID 1000, HOME and private metadata. Native write `req-7993bc50a00b` passed as Fable 5.1/session `abdecfdd-000e-437f-8e13-14809afd67d8`; fresh `req-535d03bcccb4` verified exact bytes/hash/UID1000 and cleanup. Astra checked correlation hashes and reconciled the receipt; file evidence is owner attestation |
| Runtime regression suite | Passed in CI | 711 passed in the non-root test image on pipeline 1851; shell lint passes (historical: 611 on recovery pipelines 1848/1849) |
| Current host Claude CLI | Observed | 2.1.270 (parent, this turn) |

Fresh tracked request `req-23d900790d2f` completed through the expected authenticated
websurfinmurf Matrix sender. The agent executed commands as UID/GID 1000, HOME
`/home/websurfinmurf`, and verified `agent-session receive --help`. Follow-up
`req-9f006c71579a` reported a native Claude session and that only Claude is
installed in that owner container (no Codex or Antigravity). Historical
recovery: pipeline 1848 restored the prior owner image through the rollback
path and pipeline 1849 (job 11164) deployed the corrected image; the current
image comes from pipeline 1851.

Structured Matrix event provenance is now service-attested and bound to the exact
body and prompt hashes, passed privately (mode 0600) to the owner CLI and captured
for the matching native brief. A claimed Linux caller label is never authenticated
authorization; explicit operator attestation remains. All three Review Board nodes
reviewed the design; `docs/reviews/native-owner-completion-design.final.md` is
canonical. Native Fable workers implemented both sides; Astra reviewed, integrated
and deployed. A one-line memory deviation in the owner environment was restored by
owner request `req-2c6d4ba277d2` under owner attestation. Legacy role/container
tests are counted separately.

### Next operator action

Runner 11 is installed, active and accepted; do not reinstall it. The CI 1851
owner image, the fresh provider/tool requests and the provenance handoff
(`req-deb6063540f9`) passed; the transport-provenance repair is landed and
deployed. Native write `req-7993bc50a00b` and fresh owner verification/cleanup
`req-535d03bcccb4` passed, and Astra reconciled the exact receiver receipt. Administrator UID 2000
cannot traverse `/home/websurfinmurf`, so full same-checkout and parent-Git
acceptance stays open; no ACL expansion or HOME permission grant is requested or
approved, and none should be read as the next command. The [owner deployment guide](https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/native-owner-deployment.md)
records the remaining sender/receipt acceptance steps. The receiver must retain
explicit caller authorization and return a matching receipt; successful submission
alone cannot complete change 6. No isolated worker was activated. No new account,
clone, ACL change or provider login was created.

The native profile preserved the owner's existing `defaultMode: bypassPermissions`;
no bypass flag was added. This acceptance therefore does not demonstrate an
approval-enforcing sandbox. The child reported an unsolicited environment dump
containing a messaging token in its private raw transcript. No raw transcript was
forwarded; the clean receipt and verification are retained, and the scope deviation
is disclosed in `native-acceptance.md`.

### Risks and trade-offs

- The cwd and assigned file list coordinate work; they are not filesystem confinement.
  Actual access depends on OS permissions and the harness policy.
- The runner's exclusive/owned-files lock only covers automated execute-mode launches;
  the documented manual human-launched fallback (§5) is not locked.
- "Newest session" resume can land on the wrong history.
- Local execution, the owner image, provider execution and the provenance handoff are accepted; the correlated cross-owner native write passed with owner attestation.
- Accepted trade-offs: current checkout over worktrees (needs coordination); native
  permissions as the default over bypass (some tasks block; bypass stays available but
  explicit); serialized-by-default same-checkout work, `owned-files` scheduling
  available for disjoint assignments; peer-receipt reconciliation rests on
  service-attested, hash-bound provenance plus explicit operator attestation.

## 12. Worked example — this guide

Astra issued refocus brief `2026-09-12-astra-claude-orchestration-7f082d` to a
native Claude worker (opus, tier medium) limited to two new files, no Git, no
deployments. The worker wrote the deck and this handbook and recorded a Result.
Independent review, Git, nginx publication and portal registration are Astra's
steps; see the [publication acceptance record](https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/astra-claude-orchestration-acceptance.md) for the original checks. Execute workers now consistently leave Git and shared context to Astra.

A second refocus brief (`2026-09-12-orchestration-guide-update-cd7d61`, sonnet,
tier low, same two owned files) refreshed both documents after the user
authorized all six recommendations, adding the unified `agent-session`
contract (§5), the authorized-status recommendations table (§10) and the
then-current cross-user evidence in §11 (the historical `req-cd8fa70cbd60`
failure, since superseded by `req-23d900790d2f`). Same constraints applied: no Git, no
deployment, no further delegation — Astra reviews and lands this revision too.

A third bounded pass (native Claude Fable 5.1, owned-files schedule, same two files)
refreshed both documents to the CI 1851/1852 deployment state and the provenance
handoff evidence in §10–§11, under the same no-Git, no-deployment, parent-reviews rule.

## Sources (accessed 2026-09-12)

Our repositories (primary):

Runtime links point at `main` (MR !5 merged; current deployment is `b7b2a1ca`).

- `agents/runtime/docs/native-sessions.md` — <https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/native-sessions.md>
- `agents/runtime/docs/native-acceptance.md` — <https://gitlab.ai-servicers.com/agents/runtime/-/blob/main/docs/native-acceptance.md>
- `agents/runtime/docs/orchestration-implementation.md` (authorization record, CI isolation, live acceptance gate)
- `agents/runtime/docs/reviews/native-owner-completion-design.final.md` (canonical provenance design; all three Review Board nodes)
- `agents/runtime/docs/native-owner-deployment.md` (owner deployment and remaining acceptance steps)
- `agents/runtime/docs/astra-claude-orchestration-acceptance.md` (prior publication acceptance)
- `agents/runtime/docs/ci-runner.md` (human runner provisioning steps)
- `agents/runtime/docs/project-workers/readiness.md` (separate candidate)
- `agents/runtime/native_sessions/__main__.py`, `runtime.py` — read directly, 2026-09-12, to confirm the unified-contract fields and `continue` subcommand landed in the installed CLI
- `agents/runtime/CLAUDE.md`, `agents/CLAUDE.md`
- `claude-shared/skills/refocus/SKILL.md`, `lib/spawn-worker.sh` — <https://gitlab.ai-servicers.com/claude-skills/claude-shared/-/blob/main/skills/refocus/SKILL.md>
- claude-shared skills `requirements`, `createsolution`, `createplan`, `executeplan`, `cicd`
- aiauto launcher, commit `864ad00`
- Agent operating guide — <https://nginx.ai-servicers.com/presentations/agents/>

Vendor documentation (paraphrased):

- Claude Code headless mode — <https://code.claude.com/docs/en/headless>
- Claude Code sessions — <https://code.claude.com/docs/en/sessions>
- Codex subagents — <https://learn.chatgpt.com/docs/agent-configuration/subagents>
- reveal.js initialization — <https://revealjs.com/initialization/>
