Exacly model

Requirement · active · spec/exacly/automation.yaml

REQ-031 Compose coordinator backends through checked lifecycle contracts

Trusted coordinator implementations share explicit storage, ownership and worker protocols while preserving authorization, recovery and isolation obligations.

Why it exists

  • REQ-031 Compose coordinator backends through checked lifecycle contracts Requirement main: verification passed
    • supports → PROC-004 Carry out approved verification work Process
      • uses_capability → CAP-004 Reconcile approved verification work Capability
        • contributes_to → OUT-001 Models that match reality Outcome

How it is realized

  • REQ-031 Compose coordinator backends through checked lifecycle contracts Requirement main: verification passed
    • implements ← APP-014 Executor supervisor Application
      • depends_on → APP-016 Local Bubblewrap command launcher Application
        • depends_on → INF-004 Local Bubblewrap execution runtime Infrastructure
        • reads → INFO-007 Isolated run bundles Information
          • stores ← INF-004 Local Bubblewrap execution runtime Infrastructure (above)
        • writes → INFO-007 Isolated run bundles Information (above)
      • depends_on → INF-003 Private execution ledger Infrastructure
      • depends_on → INF-004 Local Bubblewrap execution runtime Infrastructure (above)
      • reads → INFO-008 Executor attempts Information
        • stores ← INF-003 Private execution ledger Infrastructure (above)
      • writes → INFO-008 Executor attempts Information (above)

main config 94cbae926e86

AssessmentReasonEvidenceAt
verification passed
tests
All 115 selected test cases passed2026-11-22T17:48:12Z

Findings

None.

Config

owner
exacly-maintainers
lifecycle
active
last_reviewed_at
2026-10-30
statement
Execute the coordinator lifecycle through explicitly composed attempt-storage, invocation-ownership and worker interfaces whose checked scope, atomic limits and recovery semantics preserve the approved work contract across implementations.
acceptance_criteria
  • Publish typed attempt-storage, checked-session, invocation-lease and worker-lifecycle protocols, with explicit scope and versioned backend composition; the coordinator uses these interfaces for supervision, inspection, cancellation and recovery rather than only declaring structural types.
  • Select implementations only through trusted Python construction. Preserve the local CLI and its closed reviewed policy; candidate configuration cannot discover plugins, load providers, replace the backend bundle or gain additional effects.
  • A checked storage session owns its serialization and transaction boundary, exposes no SQLite connection or directory descriptor to orchestration, returns a checked canonical store locator and initialized instance identity, atomically enforces the immutable attempt and shared concurrency budgets, and preserves committed history and exact replay.
  • Pass the current opaque invocation claim for the exact initialized store, work identity, ordinal and output to owned storage transitions and worker effects; implementations recognize their actual issuer and reject released, stale or differently scoped ownership at the effect boundary. The only unowned attempt mutation is a cancellation request for the current unresolved attempt, which grants no launch or capacity-release authority.
  • Worker supervision includes gated launch, status, cancellation and the full deadline. Durable callbacks retain provider-owned worker and execution-boundary identities before release; live worker handles bind those retained identities to the selected attempt reference. Inspection alone cannot release capacity, and reconciliation rejects another invocation's handles and verifies termination of the exact retained workers before a terminal outcome frees its slot.
  • Before appending a worker or execution-boundary callback, detach its provider-owned identity data and validate the complete proposed event against the selected identity codec and checked history. Malformed identities, duplicate or out-of-order callbacks and later mutation of supplied documents cannot introduce unusable retained history. A rejected callback grants no candidate release; inspection, cancellation and recovery remain available, and capacity is retained until verified termination permits a terminal outcome.
  • Validate a complete proposed terminal outcome against the selected checked history before appending it; an unknown or non-string worker status, invalid worker result or insufficient termination facts leaves the attempt unresolved and its capacity occupied rather than committing an unusable receipt. Explicit candidate failure, timeout, output-limit and cancellation outcomes remain unsuccessful even when a complete output bundle is present.
  • Keep provider-specific process identity parsing and physical runtime controls inside the trusted local adapters. Default local identity and history validation remain strict, preserve existing version-1 attempt records and version-2 or version-4 binding ledgers, and do not reinterpret candidate reports as trusted termination evidence.
  • Protocol version 0.1.0 accepts only the existing local-bubblewrap-v1 contract adapter and one local-machine coordination domain with matching storage, ownership and worker implementations. Unsupported scope or adapter, or a mismatched domain, fails before effects; a lease heartbeat or a check followed by an unrelated write is not a distributed fencing guarantee.
  • Any future distributed backend must specify and independently verify ownership epochs or fencing tokens enforced atomically by storage transitions and worker commands, together with takeover and reconciliation behavior. It must preserve authoritative work identities, consumed budgets and immutable history through an explicit migration before support is claimed.
  • Run common conformance cases against the local adapters and an independent reference implementation for immutable contracts, atomic reservations, bounded attempts and concurrency, stale ownership, cancellation, replay and recovery. Reference implementations establish protocol semantics only; backend-specific process-kill durability and real REQ-025 isolation tests remain necessary.
  • Composing a backend supplies no verification, evidence-admission, completion, release or repository-mutation authority. Runtime support still requires a reviewed backend contract and actual enforcement evidence, not a compatible Python type or provider assertion alone.
verification_method
Shared local and independent-reference backend conformance cases, coordinator substitution tests with opaque worker identities, strict legacy-format and local ownership tests, plus the existing real executor and isolation suites.
observe
tests
cases
  • python/tests/test_executor_interfaces.py::*
  • python/tests/test_coordinator_backends.py::*
  • python/tests/test_executor_local.py::*