Requirement · active · spec/exacly/automation.yaml
REQ-027 Bound authorized executor attempts
A reviewed local snapshot command has durable attempt and concurrency limits and returns content-identified outputs without controlling verification or completion.
Why it exists
How it is realized
REQ-027Bound authorized executor attempts Requirement main: verification passed- implements ←
APP-014Executor supervisor Application- depends_on →
APP-016Local Bubblewrap command launcher Application - depends_on →
INF-003Private execution ledger Infrastructure - depends_on →
INF-004Local Bubblewrap execution runtime Infrastructure (above) - reads →
INFO-008Executor attempts Information- stores ←
INF-003Private execution ledger Infrastructure (above)
- stores ←
- writes →
INFO-008Executor attempts Information (above)
- depends_on →
- implements ←
main config 94cbae926e86
| Assessment | Reason | Evidence | At |
|---|---|---|---|
| verification passed tests | All 250 selected test cases passed | 2026-11-22T17:48:12Z |
Findings
None.
Config
- owner
- exacly-maintainers
- lifecycle
- active
- last_reviewed_at
- 2026-10-31
- statement
- Run one explicitly approved executor adapter within the enforced isolation boundary and declared attempt, time and concurrency limits, retaining durable outcomes and produced implementation identities for independent evidence evaluation.
- acceptance_criteria
- The initial local-bubblewrap-v1 adapter receives explicit immutable input snapshots and copied metadata for the authorized task, Requirement, approved goal, criteria and binding fingerprints, input implementation, dependencies and expected observations; no implicit repository traversal or operator storage handles are supplied.
- Dry-run launches no worker or candidate and changes no state, binding, watermark, attempt or output. Apply requires separately reviewed authorization binding the initialized journal and canonical storage scope, selected contract, actual history head, next attempt ordinal, exact current state and output destination; stale preconditions block execution.
- Recheck the approved plan, policies, target, actual state, exact pending verification task and active execution binding before reserving a new attempt; contract drift, completed work or a changed binding prevents new execution.
- Explicit policy bounds attempts and the worker's wall-clock time through staging, isolated execution and collection. Explicit journal initialization fixes shared concurrency capacity. The first adapter permits no repository effects; retries, changed policies and failures cannot expand retained limits or infer new authorization.
- An optional closed resource_guard policy descriptor pins actual cgroup identity and finite CPU, memory, swap and process bounds in the exact native contract and grant. When declared, native launch and release gates check the actual kernel envelope and process membership; a different or broader guard cannot reuse the grant, and historical replay preserves the original descriptor. Policies without this descriptor retain their existing contract and make no resource-containment claim.
- Before starting the adapter, commit durable work and attempt identities, reviewed limits, status and the shared concurrency reservation in an explicitly initialized private companion journal. Existing version-2 and version-4 binding/completion ledgers retain their formats and ordinary operations never silently initialize, migrate or recover storage.
- Supervision, inspection, cancellation and recovery consume explicitly selected attempt-storage, invocation-ownership and worker-lifecycle protocols; the default local adapters preserve the existing policy, authorization, journal and result contracts, and candidate-controlled inputs cannot select another provider.
- Candidate code runs only through the verified local Bubblewrap launcher satisfying REQ-025, with no host-execution fallback, network or writable host repository mount. The full worker budget and process cleanup remain under the trusted supervisor.
- Return the registered task reference, execution outcome, retained output references and an immutable host-derived build identity computed from collected artifact paths and content. Missing required outputs or ambiguous identity prevents a successful result; candidate-provided revision claims do not establish output provenance.
- Timeout, cancellation, failure and supervisor interruption are observable and recoverable from retained history without requiring an unchanged model or state. An exclusive per-invocation ownership lock distinguishes active supervision from an idle long-lived API process; a cancellation request for an active invocation makes no immediate termination claim. Recovery reconciles or terminates the existing attempt before releasing its slot or permitting another; missing ownership facts or uncertain process identity never authorize signaling a reused PID or starting replacement work.
- Each retry needs fresh authorization for its next ordinal within the original attempt budget. Preserve consumed attempts, successful outcomes and partial-failure history; exact successful replay returns its retained receipt rather than executing again, and exhausted limits stop further execution with an actionable reason.
- Use bounded lock waits and protected explicit backup before journal-only SQLite recovery; neither repair nor attempt recovery resets limits, starts candidate code, changes state or repairs a different ledger.
- Executor success, collected artifacts and a merged PR are execution outcomes only; the supervisor cannot write verification assessments, alter the approved contract, admit evidence, finalize completion receipts or remove pending work. Build identity identifies bytes rather than test honesty, acceptance coverage or a later revision's provenance.
- verification_method
- Executor contract, command, private companion-store and process-fault tests with real Bubblewrap integration, explicit authorization, shared concurrency, attempt and wall-clock enforcement, required output identity, cancellation, timeout, supervisor termination and model-independent recovery.
- observe
- tests
- cases
- python/tests/test_executor.py::*
- python/tests/test_executor_cli.py::*
- python/tests/test_executor_faults.py::*
- python/tests/test_executor_store.py::*
- python/tests/test_executor_runtime.py::*
- python/tests/test_resource_guard.py::*
- python/tests/test_worker_integration_runtime.py::*