chore(consistency): sync task status from DB [auto]

Updated by fix-consistency on 2026-09-04:
  - update .custodian-brief.md for rein-aharness

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a06ba0-10aa-7ea0-b20a-4f3fac39efe9
This commit is contained in:
custodian-sync 2026-09-04 11:00:20 +02:00
parent 7641fcde40
commit f01b765668
20 changed files with 1027 additions and 165 deletions

View file

@ -9,7 +9,7 @@ owner: codex
topic_slug: rein-aharness
priority: high
created: "2026-08-23"
updated: "2026-08-23"
updated: "2026-09-04"
related:
- REIN-A-0004
- GLAS-IN-0002
@ -65,7 +65,7 @@ waiting on the sandbox owner.
```task
id: REINAH-WP-0003-T01
status: progress
status: done
priority: high
state_hub_task_id: "596fc138-1ee3-5602-95c7-0bd728ec70ab"
```
@ -140,6 +140,19 @@ and T02T06 can cite stable decisions rather than infer ownership from code.
sand-boxer (`1bf5768c-f77a-4f08-ae02-25caff9f0166`), llm-connect
(`4bd35ce5-9c84-4695-83d5-c9bd16fa1b77`), and Glas
(`52567711-1100-43c0-9f8e-40650738eb04`).
- 2026-08-29: this State Hub instance no longer serves those request
message ids (GET 404). Glas approval of the earlier revision still
stands in the ADR text; Activity Core, sand-boxer, and llm-connect
exact-revision acknowledgements of `36e1096` /
`84b47d2e…bb206f` remain the T01 gate. Reminder messages resent from
`rein-aharness`: Activity Core `92b80a06-dc0e-46bd-a5c7-b43d1babe9ba`,
Glas `afc2af7b-8246-482b-a6f5-7acfc2aa32b1`, sand-boxer
`b220425d-5295-4bf3-af4c-34ec838f1175`, llm-connect
`4cc4a2cc-584b-423d-8f34-a0bcd981f1c7`.
- 2026-08-29: operator Bernd Worsch accepted ADR-002 as written.
`INTENT.md` and ADR-001 slogan wording were amended the same day.
Sibling exact-revision acknowledgements remain welcome as recording,
not a gate. T01 is `done`; T04 and T05 are unblocked.
## Make each repository run a lease-bound transaction
@ -211,6 +224,40 @@ class marker rather than leaving an unbound result or retaining provider text.
explicit ownership-rejection statuses as lease loss while allowing transport
errors to retry without immediately abandoning a run.
### Adapter cancellation slice — 2026-08-29
Connected lease-loss, timeout, and signal cancellation at the adapter
boundaries and enabled the repository transaction after ADR-002 acceptance.
- `rein_aharness/execution_cancel.py` is a one-shot, adapter-neutral cancel
token. It records a bounded reason (`lease-loss` / `timeout` / `signal`),
invokes registered process/HTTP stoppers once, and is published to adapters
through an explicit argument or `using_cancel()` context.
- The claim-loop heartbeat now cancels that token when Activity Core rejects
ownership. SIGINT/SIGTERM also cancel the active run. In both cases the loop
still skips Activity Core complete/fail and returns bounded cancellation or
lease-loss evidence.
- `AgenticClaudeCodeAdapter` waits on `Popen` for both blocking and streaming
sessions so an in-flight Claude process can be killed. `LLMConnectClient`
closes its HTTP client. Glas checks the token before and after
`run_execution` and refuses a late success; it still cannot abort an
in-flight sandbox (sand-boxer residual).
- `run_task` records `execution cancelled (<reason>)` without session output.
Tenant brief executors pick the token up through the active-cancel context
when they call llm-connect.
The repository lock is now wired into `runner.py`, legacy mutating approaches,
and the profiled claim path following operator acceptance of ADR-002. Remaining
T02 work is to prove lock release on timeout, signal, and result-close failure
and close the task with the resulting bounded evidence.
### Review checkpoint — 2026-09-04
Reviewed the cancellation and transaction wiring together and corrected the
affected profiled-result and clean-baseline test setup. Full verification passes:
`209 passed, 1 skipped`. T02 remains `progress` until the named timeout, signal,
and result-close lock-release cases are covered directly.
## Verify accepted commits and reconcile metrics/reporting
```task
@ -328,7 +375,7 @@ was requested.
```task
id: REINAH-WP-0003-T04
status: wait
status: todo
priority: high
state_hub_task_id: "f6c7f80c-3807-54ac-b44a-ef582433b927"
```
@ -364,7 +411,7 @@ This is read-only preparation; T04 remains `wait` until T01 accepts ADR-002.
```task
id: REINAH-WP-0003-T05
status: wait
status: todo
priority: high
state_hub_task_id: "c4a3f08f-2874-5672-9f29-aecddd697d90"
```