feat: preserve failed APT history for one signed UI-approved recovery
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 15:50:34 +01:00
parent a5c2dce4fb
commit fd7225600b
18 changed files with 1345 additions and 34 deletions
+32
View File
@@ -1,5 +1,37 @@
# Typed RootHelper bridge contract (implementation, not native acceptance)
## Explicit one-attempt recovery (schema 3, 2026-11-13)
Schema 2 keeps its exact old encoding (the optional field is omitted). Schema 3
requires `native_retry` and is valid only for dev-test `apt-native-acceptance`:
```
native_retry: {
schema_version: 1,
previous_grant_id: UUID,
previous_attempt_id: UUID,
bootstrap_marker_sha256: SHA256(original exact marker bytes)
}
```
This reference belongs to a **new separately UI-approved signed job**, never
an unsigned IPC override. Under the existing device lock, before consuming the
new grant and again before staging, the helper verifies the original saved
Ed25519 request historically, identical target/generation/assignment/transaction,
distinct job/attempt/authorization/plan, same-ledger terminal `failed` result
`HOOK_NOT_HANDED_OFF`, matching recorded outcome, original context/launch/
sandbox-100 evidence and absent hook/acceptance/retry markers. Historical
signature verification never grants a current start. Unknown or partial history
fails closed. Original active state may only move through the existing terminal
history rule; original tombstone never changes.
Provider independently checks original marker hash and immutable history,
identical full baseline and current normal baseline gates. It exclusively writes
`bootstrap-retry-<recipe>.json` binding the new attempt, signed reference and
hashes of historical evidence. Worker, hook and completion recheck it. This is
one recovery attempt per fixed fixture recipe, not general automatic retries.
Test/native outcomes are recorded in `docs/implementation-status.md`.
**Dedicated-runner update:** the current deployment and readiness protocol is
defined in [`../../deploy/linux/apt-helper-README.md`](../../deploy/linux/apt-helper-README.md).
The actual additive domain schema-2 types and AptNativeAcceptance variant have