A

Delivery structure

16 specs, 1451 requirements, 0 with no code mapped
Knuckles-Team/arboraSpec delivery
Specs (16)
  • ARBORA-A2A104
  • ARBORA-ACCEPTANCE18
  • ARBORA-CAPACITY23
  • ARBORA-ACP12
  • ARBORA-DATA-MARKET31
  • ARBORA-RELEASE28
  • ARBORA-DEPLOY-POLICY7
  • ARBORA-FLEET271
  • ARBORA-HARNESS-PLUGINS44
  • ARBORA-HOST177
  • ARBORA-OPS416
  • ARBORA-IDENTITY168
  • ARBORA-MCP-RESOURCES7
  • ARBORA-MESSAGING53
  • 2 more specs. Panel D shows all specs.
Records not done
  • Requirementsall slices in all specs1451
  • Requirements not donenot VERIFIED1033
  • Specs not donewhole specs only16

Each spec shows its requirement count. Panel J lists every record.

B

Delivery states

count of total

Requirements (1451)

SPECIFIED (specified)989 of 1451 requirements
LANDED (landed)44 of 1451 requirements
VERIFIED (verified)418 of 1451 requirements

Specs (16)

SPECIFIED (specified)16 of 16 specs

Each bar shows one state against all records of the same kind.

Percentages count current rows. Done means VERIFIED.

C

State definitions

delivery_state
StateDefinition
SPECIFIEDThe requirement is written. No code for it is on the default branch.
LANDEDA commit that carries its ID in a Spec trailer is on the default branch.
VERIFIEDIt is LANDED and a test bound to its ID exists.

A spec state is the lowest state of its rows. Done means VERIFIED.

Invalid state: 0

D

Specifications

specs/*/status.json
Spec / titleReq.LandedDoneSpec stateCode references
ARBORA-A2AARBORA-A2A — A2A projection, streaming, history and tool-subset admission10427/10426SPECIFIED../../arbora/a2a/application.py:225 implementation: file exists; coverage not verified
../../arbora/a2a/application.py:39 implementation: file exists; coverage not verified
../../arbora/a2a/mcp.py:15 implementation: file exists; coverage not verified
../../arbora/api/invoke/bootstrap.py:99 implementation: file exists; coverage not verified
../../arbora/api/invoke/pipeline.py implementation: file exists; coverage not verified
../../arbora/api/mcp/caller.py:12 implementation: file exists; coverage not verified
../../arbora/mcp_server/composition.py:185 implementation: file exists; coverage not verified
arbora/a2a/admission.py implementation: file exists; coverage not verified
arbora/a2a/admission.py:50 implementation: file exists; coverage not verified
arbora/a2a/admission.py:61 implementation: file exists; coverage not verified
arbora/a2a/application.py implementation: file exists; coverage not verified
arbora/a2a/application.py:140 implementation: file exists; coverage not verified
arbora/a2a/authority.py implementation: file exists; coverage not verified
arbora/a2a/authority.py:256 implementation: file exists; coverage not verified
arbora/a2a/composition.py implementation: file exists; coverage not verified
arbora/a2a/models.py:104 implementation: file exists; coverage not verified
arbora/a2a/models.py:167 implementation: file exists; coverage not verified
arbora/a2a/routing.py:71 implementation: file exists; coverage not verified
arbora/a2a/service.py:37 implementation: file exists; coverage not verified
arbora/a2a/service.py:40 implementation: file exists; coverage not verified
arbora/access/service.py:54 implementation: file exists; coverage not verified
arbora/api/invoke/pipeline.py:641 implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
MERISTEM-RUN-R017.2 documentation: external declaration; not verified
TUIG-RUNTIME-R012.5.2 documentation: external declaration; not verified
`ARBORA-A2A` documentation: file exists; coverage not verified
arbora/a2a/models.py implementation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
test-spec.md documentation: file exists; coverage not verified
ARBORA-ACCEPTANCEARBORA-ACCEPTANCE — evidence acceptance freeze186/186SPECIFIED.github/workflows/ci.yml implementation: file exists; coverage not verified
scripts/check_acceptance_evidence.py implementation: file exists; coverage not verified
scripts/check_acceptance_evidence.py:195 implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
tests/test_check_acceptance_evidence.py test: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
ARBORA-CAPACITYARBORA-CAPACITY — Adaptive capacity control239/239SPECIFIEDarbora/api/ops/capacity.py implementation: file exists; coverage not verified
arbora/fleet/throttle_service.py implementation: file exists; coverage not verified
arbora/mcp_server/bootstrap.py implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-ACPARBORA-ACP — Conversational ACP gateway session projection and policy126/126SPECIFIEDarbora/acp/__init__.py:3 implementation: file exists; coverage not verified
arbora/acp/adapter.py:86 implementation: file exists; coverage not verified
arbora/acp/central_runtime.py:262 implementation: file exists; coverage not verified
arbora/acp/coding_session.py implementation: file exists; coverage not verified
arbora/acp/http_transport.py:454 implementation: file exists; coverage not verified
arbora/acp/session_policy.py:101 implementation: file exists; coverage not verified
arbora/acp/session_policy.py:120 implementation: file exists; coverage not verified
arbora/acp/session_policy.py:21 implementation: file exists; coverage not verified
arbora/acp/session_policy.py:68 implementation: file exists; coverage not verified
arbora/acp/session_policy.py:89 implementation: file exists; coverage not verified
arbora/gateway/graph_api.py:323 implementation: file exists; coverage not verified
arbora/gateway/graph_api.py:368 implementation: file exists; coverage not verified
arbora/identity/broker.py:256 implementation: file exists; coverage not verified
arbora/webui_host/webui_co_service.py:77 implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
Adapter refusal documentation: file exists; coverage not verified
Admission documentation: file exists; coverage not verified
Observability documentation: file exists; coverage not verified
Policy limits documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-DATA-MARKETARBORA-DATA-MARKET — Schema context, source admission, and finance projection316/312SPECIFIEDarbora/api/http/routes.py:72 implementation: file exists; coverage not verified
arbora/api/invoke/plan.py:24 implementation: file exists; coverage not verified
arbora/api/mcp/verbs.py:26 implementation: file exists; coverage not verified
arbora/finance/markets.py implementation: file exists; coverage not verified
arbora/mcp_server/server.py implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-RELEASEARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rollout2812/2812SPECIFIEDarbora/api/ops/plans.py:298 implementation: file exists; coverage not verified
arbora/api/ops/plans.py:934 implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
scripts/pr_static_scope.py implementation: file exists; coverage not verified
tests/deployment/test_pr_static_scope.py test: file exists; coverage not verified
Existing path documentation: file exists; coverage not verified
Failure documentation: file exists; coverage not verified
Gates documentation: file exists; coverage not verified
Manifest documentation: file exists; coverage not verified
Ordering documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-DEPLOY-POLICYARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent Surface70/70SPECIFIEDarbora/api/http/protocol_routes.py implementation: file exists; coverage not verified
arbora/api/ops/policy.py implementation: file exists; coverage not verified
arbora/api/ops/registry_factory.py implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
plan.md documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
tasks.md documentation: file exists; coverage not verified
test-spec.md documentation: file exists; coverage not verified
ARBORA-FLEETARBORA-FLEET — Fleet catalog, intent tools, and policy safe reload271102/27197SPECIFIEDARBORA-OPS-R009 documentation: file exists; coverage not verified
arbora/api/mcp/registration.py:111 implementation: file exists; coverage not verified
arbora/api/mcp/verbs.py:317 implementation: file exists; coverage not verified
arbora/api/ops/fleet.py:143 implementation: file exists; coverage not verified
arbora/control_plane/connectors/service.py:202 implementation: file exists; coverage not verified
arbora/core/settings.py:64 implementation: file exists; coverage not verified
arbora/deployment/doctor.py implementation: file exists; coverage not verified
arbora/deployment/production_ops.py:480 implementation: file exists; coverage not verified
arbora/fleet/catalog_reader.py implementation: file exists; coverage not verified
arbora/fleet/child_resilience.py implementation: file exists; coverage not verified
arbora/fleet/coverage.py implementation: file exists; coverage not verified
arbora/fleet/gateway_ops.py implementation: file exists; coverage not verified
arbora/fleet/health.py:451 implementation: file exists; coverage not verified
arbora/fleet/multiplexer.py implementation: file exists; coverage not verified
arbora/fleet/multiplexer.py:2508 implementation: file exists; coverage not verified
arbora/fleet/multiplexer_ops.py:215 implementation: file exists; coverage not verified
arbora/fleet/onboarding.py:1107 implementation: file exists; coverage not verified
arbora/fleet/onboarding.py:236 implementation: file exists; coverage not verified
arbora/fleet/session_loads.py implementation: file exists; coverage not verified
arbora/fleet/session_loads.py:46 implementation: file exists; coverage not verified
arbora/fleet/session_notifications.py implementation: file exists; coverage not verified
arbora/mcp_server/fleet_composition.py:135 implementation: file exists; coverage not verified
arbora/mcp_server/served_invocation.py:678 implementation: file exists; coverage not verified
arbora/ontology/state_machines.ttl implementation: file exists; coverage not verified
arbora/webui_host/mcp_delegation.py implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
plan.md documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
test-spec.md documentation: file exists; coverage not verified
tests/fleet/test_fleet_onboarding.py test: file exists; coverage not verified
tests/test_fleet_catalog_reader.py test: file exists; coverage not verified
ARBORA-HARNESS-PLUGINSARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registry4432/4432SPECIFIEDarbora/api/invoke/pipeline.py implementation: file exists; coverage not verified
arbora/api/mcp/verbs.py implementation: file exists; coverage not verified
arbora/client/http.py implementation: file exists; coverage not verified
arbora/fleet/mcp_resource_reconciliation.py implementation: file exists; coverage not verified
arbora/harness_plugins/cli.py implementation: file exists; coverage not verified
arbora/identity/client_contract.py implementation: file exists; coverage not verified
arbora/ontology/state_machines.ttl implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
tests/harness_plugins/test_bundle_served.py test: file exists; coverage not verified
MEDULLA-CQ-ORCH-R820 documentation: external declaration; not verified
MEDULLA-IDENTITY-R723 documentation: external declaration; not verified
PIPE-RELEASE-R028 documentation: external declaration; not verified
TUIG-RUNTIME-R013 documentation: external declaration; not verified
US-CONTENT-R007 documentation: external declaration; not verified
plan.md documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
research.md documentation: file exists; coverage not verified
ARBORA-HOSTARBORA-HOST — Arbora host composition and ownership boundary17751/17748SPECIFIEDTUIG-RUNTIME-R002.2 through R002.6 documentation: external declaration; not verified
`contracts/composition-owners.md` documentation: file exists; coverage not verified
`contracts/fleet-multiplexer.md` documentation: file exists; coverage not verified
`contracts/harness-host-modules.md` documentation: file exists; coverage not verified
`contracts/single-gateway.md` documentation: file exists; coverage not verified
arbora/fleet/multiplexer.py implementation: file exists; coverage not verified
arbora/fleet/state.py implementation: file exists; coverage not verified
arbora/mcp_server/composition.py implementation: file exists; coverage not verified
arbora/mcp_server/host_context.py implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-OPSARBORA-OPS — Hosted API and intent operations416107/41695SPECIFIEDMEDULLA-TYPED-PACKS-R807 documentation: external declaration; not verified
arbora/agent_runs.py:442 implementation: file exists; coverage not verified
arbora/api/invoke/bootstrap.py:167 implementation: file exists; coverage not verified
arbora/api/invoke/pipeline.py:810 implementation: file exists; coverage not verified
arbora/api/invoke/pipeline.py:863 implementation: file exists; coverage not verified
arbora/api/invoke/plan.py implementation: file exists; coverage not verified
arbora/api/ops/memory.py implementation: file exists; coverage not verified
arbora/api/ops/registry_factory.py implementation: file exists; coverage not verified
arbora/api/ops/registry_factory.py:52 implementation: file exists; coverage not verified
arbora/api/ops/research.py implementation: file exists; coverage not verified
arbora/api/ops/retrieval.py:81 implementation: file exists; coverage not verified
arbora/api/policy/domain_scopes.py implementation: file exists; coverage not verified
arbora/api/registry/eg_binding.py implementation: file exists; coverage not verified
arbora/api/registry/scopes.py implementation: file exists; coverage not verified
arbora/fleet/plan_confirmation.py:101 implementation: file exists; coverage not verified
arbora/gateway/dashboard_api.py implementation: file exists; coverage not verified
arbora/gateway/fleet_events.py implementation: file exists; coverage not verified
arbora/gateway/registry.py implementation: file exists; coverage not verified
arbora/ingest/connector_sources.py implementation: file exists; coverage not verified
arbora/ingest/service.py implementation: file exists; coverage not verified
arbora/ontology/state_machines.ttl implementation: file exists; coverage not verified
arbora/security/log_redaction.py implementation: file exists; coverage not verified
arbora/security/scope_registry.py implementation: file exists; coverage not verified
arbora/work_items.py implementation: file exists; coverage not verified
arbora/work_items.py:285 implementation: file exists; coverage not verified
contracts/autonomous-delivery.md documentation: file exists; coverage not verified
contracts/delivery-assignment.md documentation: file exists; coverage not verified
contracts/governed-delivery-effects.md documentation: file exists; coverage not verified
contracts/merge-arming.md documentation: file exists; coverage not verified
contracts/process-plan-run.md documentation: file exists; coverage not verified
contracts/scm-event-intake.md documentation: file exists; coverage not verified
scripts/check_api_surface.py implementation: file exists; coverage not verified
tests/api/test_registry_factory.py test: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
test-spec.md documentation: file exists; coverage not verified
ARBORA-IDENTITYARBORA-IDENTITY — ACCESS — identity, authorization, and access operations16865/16856SPECIFIEDarbora/a2a/authority.py implementation: file exists; coverage not verified
arbora/access/service.py:90 implementation: file exists; coverage not verified
arbora/api/http/auth.py:127 implementation: file exists; coverage not verified
arbora/api/invoke/audit.py implementation: file exists; coverage not verified
arbora/api/mcp/caller.py:12 implementation: file exists; coverage not verified
arbora/api/ops/access.py:151 implementation: file exists; coverage not verified
arbora/deployment/cli.py implementation: file exists; coverage not verified
arbora/gateway/graph_api.py implementation: file exists; coverage not verified
arbora/gateway/remote_oauth_api.py implementation: file exists; coverage not verified
arbora/gateway/remote_oauth_api.py:245 implementation: file exists; coverage not verified
arbora/identity/client_contract.py implementation: file exists; coverage not verified
arbora/identity/composition.py:48 implementation: file exists; coverage not verified
arbora/identity/oidc.py:102 implementation: file exists; coverage not verified
arbora/identity/ports.py implementation: file exists; coverage not verified
arbora/mcp_server/bootstrap.py:522 implementation: file exists; coverage not verified
arbora/mcp_server/server.py implementation: file exists; coverage not verified
arbora/observability/runtime_health.py:783 implementation: file exists; coverage not verified
arbora/ontology/state_machines.ttl implementation: file exists; coverage not verified
arbora/security/actor_context.py implementation: file exists; coverage not verified
arbora/security/actor_context.py:38 implementation: file exists; coverage not verified
arbora/webui_host/webui_co_service.py implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-MCP-RESOURCESARBORA-MCP-RESOURCES — MCP resource/template publication reconciliation75/75SPECIFIEDscripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
../../arbora/fleet/mcp_resource_reconciliation.py implementation: file exists; coverage not verified
`docs/fleet.md` documentation: file exists; coverage not verified
`docs/status.md` documentation: file exists; coverage not verified
arbora/fleet/catalog_reader.py implementation: file exists; coverage not verified
ARBORA-MESSAGINGARBORA-MESSAGING — Messaging channel supervision lifecycle5311/539SPECIFIEDarbora/api/ops/messaging.py implementation: file exists; coverage not verified
arbora/messaging/action_dispatch.py implementation: file exists; coverage not verified
arbora/messaging/lease.py:104 implementation: file exists; coverage not verified
arbora/messaging/supervision.py implementation: file exists; coverage not verified
arbora/ontology/state_machines.ttl implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
ARBORA-HOST-R011 documentation: file exists; coverage not verified
arbora/messaging/registry.py implementation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
test-spec.md documentation: file exists; coverage not verified
ARBORA-DEPLOYARBORA-DEPLOY — Portable Arbora development and deployment8722/8714SPECIFIEDarbora/a2a/routing.py implementation: file exists; coverage not verified
arbora/skills/arbora-genesis/references/bare-metal.md documentation: file exists; coverage not verified
deploy/compose/compose.yaml implementation: file exists; coverage not verified
deploy/swarm/stack.yml implementation: file exists; coverage not verified
scripts/check_deployment_image_digests.py implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
specs/hosted-api-operations/plan.md documentation: file exists; coverage not verified
tests/deployment/test_arbora_deploy_artifacts.py test: file exists; coverage not verified
tests/deployment/test_image_digests.py test: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified
ARBORA-INGRESSARBORA-INGRESS — Portable public ingress and identity cutover51/51SPECIFIEDaccess control documentation: file exists; coverage not verified
arbora/deployment/genesis_environments.py:813 implementation: file exists; coverage not verified
arbora/deployment/public_ingress_identity.py:182 implementation: file exists; coverage not verified
arbora/gateway/graph_api.py implementation: file exists; coverage not verified
arbora/identity/browser_composition.py:47 implementation: file exists; coverage not verified
scripts/check_public_specs.py implementation: file exists; coverage not verified
scripts/check_wiring.py implementation: file exists; coverage not verified
spec.md documentation: file exists; coverage not verified
Cutover documentation: file exists; coverage not verified
Portable proof documentation: file exists; coverage not verified
Profile contract documentation: file exists; coverage not verified
Request path documentation: file exists; coverage not verified
Security documentation: file exists; coverage not verified
requirements.md documentation: file exists; coverage not verified

Landed counts LANDED and VERIFIED requirements. Done counts VERIFIED requirements only.

The spec state comes from the spec status file only.

U

Spec architecture

repository / component packages

Packages group specs by repository and declared component. Unassigned means no component was declared. Code links do not prove coverage. Mermaid source.

Knuckles-Team/arbora / Arbora A2A request adapter (1)
Knuckles-Team/arbora / Arbora A2A request adapter (1)ARBORA-A2A
ARBORA-A2A: source plan diagrams (Mermaid)
flowchart LR
  H[human A2A client] --> V[Arbora verified A2A adapter]
  V --> T[A2AService and operation invoke]
  T --> O[agent orchestrator public port]
  T --> E["engine WorkItem, grant and plan leases"]
  T --> F[fleet via hosted operation invoke]
  E --> A[durable audit reservation and outcome]
flowchart LR
  C[A2A caller] --> AC[Agent Card: from_wired_authorities]
  C --> S[message/stream]
  C --> G["tasks/get (history)"]
  S --> AU["AU task-event reader: owner contract pending"]
  G --> EG["EG durable transition ledger (MEDULLA-DURABLE-KERNEL)"]
  AU --> PN[push-notification trigger]
  PN --> OB["EG durable outbox (MEDULLA-DURABLE-KERNEL-R001)"]
flowchart LR
  C[A2A caller: agent graph ref + contextBudgetTokens] --> D[admit_tool_subset admission door]
  D -->|needs| EG["EG AgentAssemble (MEDULLA-DECISION-ENGINE-R036)"]
  D -->|needs| AU["AU signed AgentTurnEnvelope allowed-tool-subset (the meristem signed-envelope row (id unassigned))"]
  D -->|refused| R["typed ToolSubsetAdmissionDecision (admitted=False; reason; provenance)"]
  D -->|admitted, once both land| A["ToolSubsetAdmissionDecision (admitted tools + provenance)"]
  A --> X[OrchestratorA2ARouter / WorkItemA2AAuthority dispatch]
flowchart LR
  R[Authenticated A2A request] --> A[Retain resolved AU GraphSession]
  A --> C[Existing caller_from_session projection]
  C --> V[Existing session refresh]
  V --> I[Shared InvokeServices and Surface.A2A]
  I --> O[Registered operation scope and effect boundary]
Knuckles-Team/arbora / Coding harness plugins (1)
Knuckles-Team/arbora / Coding harness plugins (1)ARBORA-HARNESS-PLUGINS
ARBORA-HARNESS-PLUGINS: source plan diagrams (Mermaid)
flowchart LR
  REG[Registry and content packages] --> CORE[compose_bundle]
  CORE --> SPEC[BundleSpec]
  SPEC --> R1[claude-code renderer]
  SPEC --> R2[opencode renderer]
  SPEC --> R3[codex renderer]
  SPEC --> R4[grok renderer]
  R1 --> H1[harness]
  R2 --> H2[harness]
  R3 --> H3[harness]
  R4 --> H4[harness]
  H1 -- MCP intent tools --> DOOR[arbora MCP door]
  H2 -- MCP intent tools --> DOOR
  H3 -- MCP and hook runner --> DOOR
  H4 -- MCP and hook runner --> DOOR
  DOOR --> WS[workstream operations]
  WS --> ENG[engine workstream record]
stateDiagram-v2
  [*] --> unauthenticated
  unauthenticated --> authorizing
  authorizing --> authorized
  authorizing --> unauthenticated
  authorized --> refreshing
  refreshing --> authorized
  refreshing --> expired
  authorized --> revoked
  expired --> authorizing
  revoked --> authorizing
stateDiagram-v2
  [*] --> absent
  absent --> generated
  generated --> installed
  installed --> stale
  stale --> installed
  installed --> removed
  stale --> removed
  removed --> generated
stateDiagram-v2
  [*] --> detached
  detached --> attached: attach
  attached --> attached: checkpoint
  attached --> detached: detach
Knuckles-Team/arbora / Fleet catalog publication (1)
Knuckles-Team/arbora / Fleet catalog publication (1)ARBORA-MCP-RESOURCES

ARBORA-MCP-RESOURCES: no plan diagram declared.

Knuckles-Team/arbora / Unassigned (13)

ARBORA-ACCEPTANCE: no plan diagram declared.

ARBORA-ACP: no plan diagram declared.

ARBORA-CAPACITY: no plan diagram declared.

ARBORA-DATA-MARKET: no plan diagram declared.

ARBORA-DEPLOY: no plan diagram declared.

ARBORA-DEPLOY-POLICY: no plan diagram declared.

ARBORA-FLEET: source plan diagrams (Mermaid)
sequenceDiagram
    participant Caller
    participant Host as Arbora invoke
    participant EG
    participant SDK
    participant Agent as AU agent
    Caller->>Host: authenticated run + idempotency key
    Host->>EG: resolve skill, workflow, policy and distribution
    EG-->>Host: bound decisions and versioned identities
    Host->>Host: certify dependencies, admit all tools, reserve capacity
    Host->>SDK: approved typed allocation
    SDK-->>Host: actual instance receipt
    Host->>Agent: admitted skill identity and model configuration
    Agent->>EG: durable result through published execution contract
    Host->>EG: apply existing aggregation to result receipts
    EG-->>Caller: governed result and provenance
ARBORA-HOST: source plan diagrams (Mermaid)
flowchart LR
  C[Client] --> B[Transport identity and admission]
  B --> P[Shared action policy]
  P --> S[Typed application operation]
  S --> E[Graph engine client]
  S --> A[Agent runtime public API]
  S --> K[Connector SDK runner]
  S --> R[One result and receipt mapper]
  R --> C
ARBORA-IDENTITY: source plan diagrams (Mermaid)
flowchart LR
    B["Browser, CLI, MCP, A2A"] --> C[Arbora serving composition]
    C --> A[Authenticator per mode]
    A --> P[Principal and scope resolver]
    P --> I[Local issuer and short-lived token]
    I --> U[Verified actor and delegated session]
    U --> E["Engine identity, RBAC, CheckAccess, elevation, lease, audit"]
    E --> R[Typed redacted result]
    R --> C
ARBORA-INGRESS: source plan diagrams (Mermaid)
flowchart LR
  Browser --> Ingress[Operator TLS ingress]
  Ingress --> Gateway[Arbora gateway]
  Gateway --> Admission[Existing identity middleware]
  Admission --> Service[Arbora application service]
  Service --> Engine[Graph engine authorization]
  Browser --> IdP[Operator OIDC provider]
ARBORA-MESSAGING: source plan diagrams (Mermaid)
stateDiagram-v2
  [*] --> STOPPED
  STOPPED --> STARTING: start()
  STARTING --> RUNNING: is_connected observed
  STARTING --> STOPPED: not connected, skipped
  STARTING --> DEGRADED: adapter missing/import failed
  RUNNING --> BACKING_OFF: recoverable listener failure
  BACKING_OFF --> RUNNING: listener resumed
  BACKING_OFF --> STOPPING: stop() during backoff
  RUNNING --> STOPPING: stop()
  DEGRADED --> STOPPING: stop()
  STOPPING --> STOPPED: tasks drained
ARBORA-OPS: source plan diagrams (Mermaid)
flowchart LR
  C[MCP / HTTP / A2A / fleet forwarder] --> S[verified surface adapter]
  S --> I["invoke: validate, scopes, policy, subject, effect, audit"]
  I --> R[one typed operation registry]
  I --> E[engine client under caller claims]
  I --> A[agent service via public port]
  I --> F[fleet gateway under caller credential]
  I --> D[durable audit and plan lease]
  R --> G["generated OpenAPI, schemas and clients"]
sequenceDiagram
  participant C as Caller
  participant A as Arbora
  participant E as Medulla
  participant M as Meristem
  C->>A: process.run
  A->>E: Decide ProcessPlan
  E-->>A: sealed plan and bindings
  A->>M: iterate_run with bound ports
  M->>A: approval wait
  C->>A: process.approval.decide
  A-->>M: approved
  M->>E: Decide BranchSelect (through the decision port)
  E-->>M: taken arms
sequenceDiagram
  participant U as Chat, A2A, MCP or HTTP caller
  participant A as Arbora entry point
  participant N as ModalityNormalizer
  participant F as fleet.call
  participant T as speech-to-text tool
  participant H as Harness
  U->>A: prompt with an audio part
  A->>N: normalize(text, parts)
  N->>F: find speech-to-text, then call
  F->>T: transcribe_speech(artifact_b64, digest, media_type)
  T-->>N: speech-transcript/1
  N-->>A: text, attachment, transcript link
  A->>H: run on the text
ARBORA-RELEASE: source plan diagrams (Mermaid)
flowchart LR
  Candidate --> Verify[Verify manifest and compatibility]
  Verify --> Plan[Topological dry run]
  Plan --> Stage[Apply one digest-pinned stage]
  Stage --> Probe[Readiness and functional probe]
  Probe -->|pass| Stage
  Probe -->|fail| Stop[Stop and rollback decision]
  Stage --> Complete[Complete signed receipt]
R

Spec relationships

declared dependencies and references

Depends on means a declared prerequisite. Extends and references do not imply prerequisite order. Shared code never creates dependencies. External targets are source declarations, not verified delivery.

Knuckles-Team/arbora / Arbora A2A request adapter
SpecRelationshipTargetEvidence
ARBORA-A2Adepends onARBORA-A2A-R006.2Knuckles-Team/arbora: local spec declaration; source: specs/a2a/plan.md
ARBORA-A2Adepends onAPIUnresolved: missing source; source: specs/a2a/plan.md
ARBORA-A2Adepends onmeristemUnresolved: missing source; source: specs/a2a/plan.md
ARBORA-A2Adepends onpublicUnresolved: missing source; source: specs/a2a/plan.md
ARBORA-A2Adepends onsessionUnresolved: missing source; source: specs/a2a/plan.md
ARBORA-A2Adepends ontheUnresolved: missing source; source: specs/a2a/plan.md
ARBORA-A2Adepends onMERISTEM-RUN-R017.2Knuckles-Team/meristem: external declaration; not verified; source: specs/a2a/spec.md
ARBORA-A2Adepends onMERISTEM-RUN-R017.5Knuckles-Team/meristem: external declaration; not verified; source: specs/a2a/spec.md
ARBORA-A2AreferencesTUIG-RUNTIME-R012.5.2Knuckles-Team/tuig: external declaration; not verified; source: specs/a2a/spec.md
ARBORA-A2Areferences`MEDULLA-DECISION-ENGINE-001`Knuckles-Team/medulla: external declaration; not verified; source: specs/a2a/spec.md
Knuckles-Team/arbora / Coding harness plugins
SpecRelationshipTargetEvidence
ARBORA-HARNESS-PLUGINSdepends onMEDULLA-IDENTITY-R723Knuckles-Team/medulla: external declaration; not verified; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSdepends onUS-CONTENT-R007Knuckles-Team/universal-skills: external declaration; not verified; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSreferencesMEDULLA-CQ-ORCH-R820Knuckles-Team/medulla: external declaration; not verified; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSreferencesPIPE-RELEASE-R028Knuckles-Team/pipelines: external declaration; not verified; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSreferencesTUIG-RUNTIME-R013Knuckles-Team/tuig: external declaration; not verified; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSdepends onARBORA-DEPLOY-POLICY-R006Knuckles-Team/arbora: local spec declaration; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSdepends onARBORA-IDENTITY-R030.4Knuckles-Team/arbora: local spec declaration; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSdepends onARBORA-OPS-R844.1Knuckles-Team/arbora: local spec declaration; source: specs/harness-plugins/spec.md
ARBORA-HARNESS-PLUGINSdepends onARBORA-OPS-R897.4Knuckles-Team/arbora: local spec declaration; source: specs/harness-plugins/spec.md
Knuckles-Team/arbora / Fleet catalog publication
SpecRelationshipTargetEvidence
ARBORA-MCP-RESOURCESreferences`fleet-catalog-and-tools/spec.md`Knuckles-Team/arbora: file exists; coverage not verified; source: specs/mcp-resource-publication-reconciliation/spec.md
ARBORA-MCP-RESOURCESreferencesfleet-catalog-and-tools/spec.mdUnresolved: missing source; source: specs/mcp-resource-publication-reconciliation/spec.md
Knuckles-Team/arbora / Unassigned
SpecRelationshipTargetEvidence
ARBORA-ACCEPTANCENo relationships declared; dependencies unknown
ARBORA-ACPreferencesARBORA-IDENTITY-R001Knuckles-Team/arbora: file exists; coverage not verified; source: specs/conversational-acp-gateway/spec.md
ARBORA-ACPreferencesAccess controlKnuckles-Team/arbora: file exists; coverage not verified; source: specs/conversational-acp-gateway/spec.md
ARBORA-CAPACITYreferenceshosted operationsKnuckles-Team/arbora: file exists; coverage not verified; source: specs/adaptive-capacity/spec.md
ARBORA-DATA-MARKETNo relationships declared; dependencies unknown
ARBORA-DEPLOYNo relationships declared; dependencies unknown
ARBORA-DEPLOY-POLICYNo relationships declared; dependencies unknown
ARBORA-FLEETreferencesMEDULLA-DECISION-ENGINE-R176Knuckles-Team/medulla: external declaration; not verified; source: specs/fleet-catalog-and-tools/plan.md
ARBORA-FLEETreferencesMEDULLA-DECISION-ENGINE-R177Knuckles-Team/medulla: external declaration; not verified; source: specs/fleet-catalog-and-tools/plan.md
ARBORA-FLEETreferencesMEDULLA-TYPED-PACKS-R103Knuckles-Team/medulla: external declaration; not verified; source: specs/fleet-catalog-and-tools/plan.md
ARBORA-FLEETreferencesMEDULLA-TYPED-PACKS-R104Knuckles-Team/medulla: external declaration; not verified; source: specs/fleet-catalog-and-tools/plan.md
ARBORA-FLEETreferencesSCION-CONNECTOR-CONTROL-R068Knuckles-Team/scion-sdk: external declaration; not verified; source: specs/fleet-catalog-and-tools/plan.md
ARBORA-HOSTreferencesA2A specKnuckles-Team/arbora: file exists; coverage not verified; source: specs/host-composition-boundary/spec.md
ARBORA-IDENTITYNo relationships declared; dependencies unknown
ARBORA-INGRESSreferencesAccess controlKnuckles-Team/arbora: file exists; coverage not verified; source: specs/public-ingress-identity/spec.md
ARBORA-INGRESSreferencesPortable deploymentKnuckles-Team/arbora: file exists; coverage not verified; source: specs/public-ingress-identity/spec.md
ARBORA-MESSAGINGNo relationships declared; dependencies unknown
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

depends onSDK source sync runnerKnuckles-Team/agent-connector-sdk: external declaration; not verified; source: specs/hosted-api-operations/plan.md
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

referencesEG durable kernelKnuckles-Team/medulla: external declaration; not verified; source: specs/hosted-api-operations/plan.md
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

referencesEG mediaKnuckles-Team/medulla: external declaration; not verified; source: specs/hosted-api-operations/plan.md
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

referencesEG orchestrationKnuckles-Team/medulla: external declaration; not verified; source: specs/hosted-api-operations/plan.md
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

referencesEG queryKnuckles-Team/medulla: external declaration; not verified; source: specs/hosted-api-operations/plan.md
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

referencesSDK ingestKnuckles-Team/agent-connector-sdk: external declaration; not verified; source: specs/hosted-api-operations/plan.md
ARBORA-OPS

Unparsed reference declaration: [EG orchestration](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/orchestration-vocabulary/spec.md), [EG durable kernel](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/durable-graph-kernel/spec.md), [EG query](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/federated-query-and-reasoning/spec.md), [EG media](https://github.com/Knuckles-Team/medulla/blob/88572345d7aa8bcc7cad40904f35e2411c701243/specs/media-and-personal-vocabulary/spec.md), [SDK ingest](https://github.com/Knuckles-Team/agent-connector-sdk/blob/a0f78fefbb486e4c7d97e608462cf5847a46bc7d/specs/SCION-SOURCE-INGEST/spec.md).; source: specs/hosted-api-operations/plan.md

referencesA2A task projectionKnuckles-Team/arbora: file exists; coverage not verified; source: specs/hosted-api-operations/spec.md
ARBORA-RELEASEreferencesPortable deploymentKnuckles-Team/arbora: file exists; coverage not verified; source: specs/dependency-ordered-release/spec.md
ARBORA-RELEASEreferencespublic ingressKnuckles-Team/arbora: file exists; coverage not verified; source: specs/dependency-ordered-release/spec.md
G

Open issues and pull requests

open at capture
J

Record inventory

1467 records

Each status file gives one spec row. Each requirement gives one more row. A record without a valid state shows INVALID. Expand a Definition to read the canonical requirement and verification text.

All documented records (1467 rows)
ID / sourceKindParentStateCommit / test evidence
ARBORA-A2A
ARBORA-A2A — A2A projection, streaming, history and tool-subset admission
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001
A2A facade over the engine and agent services
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**A2A facade over the engine and agent services.** arbora implements A2A as a facade over the public graph-engine and meristem services exposed through MCP and REST, starting with unary agent-card discovery and task send/get/list/cancel, then adding durable task streaming and resubscribe without a second task store. Split into `ARBORA-A2A-R001.1` (the resubscribe method-table slice) with the event-cursor-backed streaming fixture remaining open under the parent. | Proven by contract tests covering the unary task operations and a durable stream/resubscribe fixture.
requirementARBORA-A2ASPECIFIED2763cd78b6bc
9bd22960a7ea
a8ed61b538e7
cbe00a4bbd43
tests/a2a/test_dispatch_usage_projection.py:13
tests/a2a/test_native_task_reads.py:15
tests/a2a/test_run_usage.py:20
tests/test_agent_runs.py:100
tests/test_agent_runs.py:120
ARBORA-A2A-R001.1
Fail-closed `tasks/resubscribe` stub on the A2A method table
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Fail-closed `tasks/resubscribe` stub on the A2A method table.** arbora registers `tasks/resubscribe` in the A2A JSON-RPC method table with typed, validated params, and refuses it with a distinct error until durable, restart-safe event-cursor-backed streaming exists — never silently succeeding, never reported as an unrecognized method. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_SYNC_METHODS['tasks/resubscribe']` = `_resubscribe_stub` (`arbora/a2a/application.py:209`). Shape: `_resubscribe_stub` and `_ResubscribeParams` in `arbora/a2a/application.py`; `A2AStreamingUnavailable` in `arbora/a2a/authority.py`; no new file. | Proven by a test asserting `tasks/resubscribe` validates params and is refused with a dedicated JSON-RPC error code distinct from "method not found". Test: `tests/a2a/test_application.py::test_json_rpc_refuses_resubscribe_until_streaming_is_implemented`.
requirementARBORA-A2AVERIFIEDa8ed61b538e7
bc6b0b0827e2
d5bff77ba836
tests/a2a/test_application.py:157
ARBORA-A2A-R002
Inbound task routing with caller-filtered tool exposure
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Inbound task routing with caller-filtered tool exposure.** Subsystem: A2A routing. Caller: `message/send` and `agents.run` → `arbora/a2a/service.py` → `arbora/a2a/routing.py` → `arbora/a2a/authority.py::WorkItemA2AAuthority.dispatch`. Arbora asks the engine assembly decision for the agent and the exposed tool subset (`MEDULLA-DECISION-ENGINE-R134`). It then submits one engine WorkItem (`orchestrator_task`). The task id is the idempotency key. The caller sees only authorized tools. `ARBORA-A2A-R002.1` refuses dispatch while a subset is selected but unenforced. `ARBORA-A2A-R002.2` enforces the subset at the multiplexer. The consumer of the assembled run is `MERISTEM-HARNESS-CYCLE-R009.1`. Children `.1` and `.2`. | Test: `tests/a2a/test_routing_served.py::test_routed_task_maps_to_work_item_and_tools_match_authorization` (served, A2A and `agents.run`).
requirementARBORA-A2ASPECIFIED9a79acee8b6c
ARBORA-A2A-R002.1
Fail-closed refusal when assembly selects a tool subset
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Fail-closed refusal when assembly selects a tool subset.** arbora refuses `dispatch()` with a distinct error before durable admission when a routing decision selects a tool subset. The signed AU dispatch carrier cannot enforce an allowlist at execution time. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `WorkItemA2AAuthority.dispatch` (`arbora/a2a/authority.py:617`). Shape: The refusal lives in `WorkItemA2AAuthority.dispatch` (`arbora/a2a/authority.py`) and raises `A2AAssemblyUnavailable` (`arbora/a2a/routing.py`); no new file. | Proven by a test asserting dispatch raises `A2AAssemblyUnavailable` whenever `decision.selected_tools` is non-empty. Test: `tests/a2a/test_authority.py::test_selected_tool_subset_is_refused_before_durable_admission`.
requirementARBORA-A2AVERIFIEDdfe297e0466d
tests/a2a/test_authority.py:27
ARBORA-A2A-R002.2
Caller-filtered tool-subset enforcement at dispatch
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Caller-filtered tool-subset enforcement at dispatch.** Subsystem: multiplexer admission. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/authority.py::WorkItemA2AAuthority.dispatch` → session claim `allowed_tools` → `arbora/api/ops/fleet.py::handle_fleet_call` → new `arbora/api/invoke/steps.py::require_tool_allowed`. The routing decision's `selected_tools` (at most 256 tool names) become the claim `allowed_tools` of the run's verified session. Every tool call of the run goes through the multiplexer and `invoke`. `require_tool_allowed` refuses `POLICY_DENIED` with reason `tool_not_allowed` when the called tool is outside `allowed_tools`, before any connector call. An empty `allowed_tools` claim means no restriction only when the routing decision selected no subset. Replace the `A2AAssemblyUnavailable` refusal of `ARBORA-A2A-R002.1` with this enforcement. Depends: `ARBORA-A2A-R002.1`, `MEDULLA-DECISION-ENGINE-R134`, MERISTEM-HARNESS-CYCLE-R054. | Test: `tests/a2a/test_tool_subset_served.py::test_call_outside_subset_refuses_before_connector` (served). It asserts zero connector calls for a disallowed tool.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R002.2.1
Owner-blocked: AU carried, enforced tool-subset field
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Owner-blocked: AU carried, enforced tool-subset field.** meristem's `AgentTurnEnvelope`/`enqueue_agent_turn` dispatch carrier has no field or mechanism to carry and enforce a caller-filtered tool allowlist at execution time. arbora's `WorkItemA2AAuthority._enqueue`/`dispatch` (`arbora/a2a/authority.py`) already refuse every request carrying `decision.selected_tools` (`ARBORA-A2A-R002.1`) rather than pass through an unenforced allowlist. meristem owns adding that carried, enforced field. Until an meristem spec exists and lands it, `ARBORA-A2A-R002.2` cannot be implemented in this repository. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `WorkItemA2AAuthority.dispatch` (`arbora/a2a/authority.py:617`), which refuses `decision.selected_tools`. Shape: No code in this repository: the owner row sits in meristem's signed dispatch envelope. The existing refusal in `arbora/a2a/authority.py` stays until it lands. | No arbora-side test is possible against the current AU carrier contract. Verified by the fail-closed tests bound to `ARBORA-A2A-R002.1` continuing to refuse rather than silently drop the filter. Tracked as the explicit cross-repo dependency recorded in `tasks.md`. Test: `tests/a2a/test_authority.py::test_selected_tool_subset_is_refused_before_durable_admission`.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R002.2.2
Reference-bound single-tool task worker
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Reference-bound single-tool task worker.** Model: `ToolTaskRequest`, `ToolTaskResult`, `ToolTaskCarrier`, `ToolTaskDispatcher` and `WorkItemFence` in `arbora/a2a/tool_task.py`. The carrier holds the job ID, the content-addressed request reference, the tenant, the session and one allowed tool. The request holds canonical JSON parameters, never a prompt. Behavior: `run_tool_task` claims the admitted WorkItem through the EG coordination methods. It resolves the exact request through the dispatcher inside the lease. The request digest, tenant, session and single tool must match the carrier before execution starts. The dispatcher reauthorizes the original caller and uses the job ID as its durable idempotency key. A bound result commits its receipt reference under the claim. Wiring: `arbora.a2a` exports the worker. `ARBORA-A2A-R002.2.3` owns the served queue consumer. Refusal: A missing dispatcher, a changed request or a wrong tool refuses before execution and commits a failed result. Some outcomes are uncertain: an exception after execution starts, a result for another job or caller, and an indeterminate result. Each uncertain outcome leaves the WorkItem open and the delivery unacknowledged. An expired deadline starts no execution and leaves the item open for reconciliation. A lost lease stops the worker without a commit. A terminal item skips the delivery. The worker never repeats an uncertain effect. | `tests/a2a/test_tool_task.py` covers each committed outcome, each uncertain outcome and each refusal before execution. It also covers duplicate delivery, a claim held elsewhere, an expired deadline, a foreign carrier, lease loss and canonical requests.
requirementARBORA-A2AVERIFIED21fa71a87f44
3fae52006dfa
663cc8cad940
e366dd8159c5
tests/a2a/test_tool_task.py:21
tests/a2a/test_tool_task.py:22
tests/a2a/test_tool_task_dispatch.py:22
tests/a2a/test_tool_task_dispatch.py:23
tests/a2a/test_tool_task_native.py:37
ARBORA-A2A-R002.2.2.1
Single-invocation worker contract
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Single-invocation worker contract.** Validate canonical requests and exact carrier bindings through the exported worker. With injected dispatcher and fence ports, commit only bound outcomes. An uncertain invocation leaves the item open and unacknowledged. This child does not prove queue wiring or safety across later deliveries. Caller chain: host bootstrap (`arbora/host_bindings.py`) → served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/tool_task.py::run_tool_task`. Shape: `run_tool_task`, `ToolTaskRequest`, `ToolTaskResult`, `ToolTaskCarrier`, `ToolTaskDispatcher` and `WorkItemFence` in `arbora/a2a/tool_task.py`; reuse the closed frozen `_Closed` base. | `tests/a2a/test_tool_task.py` exercises the worker contract with controlled ports.
requirementARBORA-A2AVERIFIEDe366dd8159c5
tests/a2a/test_tool_task.py:22
ARBORA-A2A-R002.2.2.2
Native WorkItem fence binding
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Native WorkItem fence binding.** `EgWorkItemFence` uses the existing EG WorkItem methods and checks the current session and tenant on each transition. Admit only a visible ready item with an exact first-attempt item and payload binding. Preserve the native lease fence through renewal and commit. Read the `effect_phase` field of the `WorkItemView` instead of a visible-started rule. Cancelled and dead-letter reads require owner reconciliation and cannot authorize acknowledgment. Caller chain: host bootstrap (`arbora/host_bindings.py`) → served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/tool_task.py::run_tool_task` → `EgWorkItemFence` (`arbora/a2a/tool_task_dispatch.py:17`). Shape: `EgWorkItemFence` in `arbora/a2a/tool_task_dispatch.py` over `WorkItemView` (`arbora/a2a/work_items.py`); implements the `WorkItemFence` protocol of `arbora/a2a/tool_task.py`. | `tests/a2a/test_tool_task_dispatch.py` covers boundary refusals. `tests/a2a/test_tool_task_native.py` exercises real temporary EG transitions and expired-lease refusal without acknowledgment.
requirementARBORA-A2AVERIFIEDe366dd8159c5
tests/a2a/test_tool_task_dispatch.py:23
tests/a2a/test_tool_task_native.py:38
ARBORA-A2A-R002.2.3
Served delivery and durable reconciliation
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served delivery and durable reconciliation.** Subsystem: tool-task delivery. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → host bootstrap (`arbora/host_bindings.py` composition) → `arbora/a2a/tool_task_consumer.py::ToolTaskConsumer.run` → `arbora/a2a/tool_task.py::run_tool_task`. The consumer polls the engine WorkItem queue `tool_task` every `a2a.tool_task.poll_interval_s` (default 2, range 0.1 to 60, in `~/.config/arbora/config.yaml`). For each verified `ToolTaskCarrier` it claims through `EgWorkItemFence`, calls `run_tool_task`, and acknowledges only when `ToolTaskRun.acknowledge` is true. It reauthorizes the original caller before effects (`.3.3`). It uses the job id as the durable idempotency key. It reconciles uncertain effects without repeating them (`.3.4`). A later pre-execution refusal never settles an earlier uncertain effect. Children `.3.2` to `.3.5` deliver it. The consumer calls `MarkWorkItemEffectStarted` before each effect and `RecordEffectReceipt` after it. On a reclaimed item it reads `effect_phase` for reconciliation. Depends: `ARBORA-A2A-R002.2.2`, `ARBORA-A2A-R002.2.3.1`. | Test: `tests/a2a/test_tool_task_served.py::test_restart_revocation_duplicate_and_uncertain_effect` (served). It needs a durable request store and caller authority. Injected ports alone do not satisfy it.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R002.2.3.1
Immutable native request transport
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Immutable native request transport.** Store canonical request bytes in EG blobs, pin their native holder, and publish only their locator on the matching WorkItem. Resolve by exact job and request digest. Check tenant, current principal and the expected carrier session reference. Session equality is a data binding, not proof that the original credential remains valid. Rehash bounded bytes on every read. This supplies data only; it neither recovers caller credentials nor authorizes effects. Caller chain: host bootstrap (`arbora/host_bindings.py`) → served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/tool_task.py::run_tool_task` → `EgToolTaskRequestStore.resolve` (`arbora/a2a/tool_task_requests.py:121`). Shape: `EgToolTaskRequestStore` in `arbora/a2a/tool_task_requests.py` using the engine blob methods; produces `ToolTaskCarrier` of `arbora/a2a/tool_task.py`. | Controlled refusal tests and actual native storage/read tests must prove exact binding and changed-byte refusal. Served queue and credential recovery remain under the parent.
requirementARBORA-A2AVERIFIED3fae52006dfa
tests/a2a/test_tool_task_request_native.py:21
tests/a2a/test_tool_task_requests.py:15
ARBORA-A2A-R002.2.3.2
Served consumer and original-caller recovery
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served consumer and original-caller recovery.** Subsystem: tool-task delivery. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → host bootstrap (`arbora/host_bindings.py`) → `arbora/a2a/tool_task_consumer.py::ToolTaskConsumer.start`. Compose the real consumer from three ports. The ports are the engine WorkItem queue `tool_task`, `resolve_original_caller` (`ARBORA-A2A-R002.2.3.3`) and the `ToolTaskDispatcher`. The dispatcher wraps `invoke` under the service executor. Bootstrap starts one consumer task per host replica and stops it on shutdown after releasing leases. A host without the engine client does not start the consumer and reports `UNAVAILABLE` on `/ready`. Native request bytes alone satisfy none of the execution requirements. Depends: `ARBORA-A2A-R002.2.3`, `ARBORA-A2A-R002.2.3.1`, `ARBORA-A2A-R002.2.3.3`. Shape: edits `arbora/api/invoke/pipeline.py`, `arbora/host_bindings.py`; adds `arbora/a2a/tool_task_consumer.py` (new); types and functions `ToolTaskDispatcher`, `UNAVAILABLE`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_task_served.py::test_bootstrap_starts_consumer_and_recovers_after_restart` (served). It uses actual queue delivery and credential-free recovery.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R003
No duplicate skill or prompt harvesting in the multiplexer
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**No duplicate skill or prompt harvesting in the multiplexer.** arbora removes the multiplexer's separate skill and prompt harvesting path so there is exactly one owner for tool, skill, and prompt discovery, with no duplicate ingestion path remaining in the running package. Caller chain: multiplexer start-up in `arbora/fleet/multiplexer.py` → the one catalog owner for tools, skills and prompts; the absence check imports the package and inspects its modules. Shape: No new file: delete the duplicate harvest path in `arbora/fleet/` so one owner module remains; the gate is a source scan. | Proven by a runtime absence check confirming no duplicate harvest path is present or reachable in the deployed package. Test: `tests/fleet/test_no_duplicate_skill_prompt_harvest.py::test_skill_and_prompt_body_harvest_has_exactly_one_owner_module`.
requirementARBORA-A2AVERIFIED2cbed24252ec
deb2b45bf83d
tests/fleet/test_no_duplicate_skill_prompt_harvest.py:58
ARBORA-A2A-R004
Served MCP bridge runs FastMCP 4, matching its declared version
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served MCP bridge runs FastMCP 4, matching its declared version.** arbora's deployed MCP bridge runs on FastMCP 4 end to end, including native WebMCP and a single composition loop, so the dependency version it declares matches the version actually serving requests. Caller chain: MCP server start-up (`arbora/mcp_server/runtime.py`) → FastMCP 4 application serving `/mcp` and `/a2a`; the dependency floor is declared in `pyproject.toml`. Shape: The `fastmcp>=4.1.0` floor in `pyproject.toml` and the server wiring in `arbora/mcp_server/`; no new file. | Semantic tests run against the exact declared FastMCP and engine dependency versions. A live-deployment probe confirms the served version. Test: `tests/test_a2a_extension_lifespan.py::test_fastmcp_teardown_joins_real_anyio_worker_in_owner_task`.
requirementARBORA-A2AVERIFIEDd5bff77ba836
d60b46fc6984
tests/deployment/test_release_canary.py:31
tests/deployment/test_release_canary.py:62
tests/deployment/test_release_canary.py:81
tests/deployment/test_release_canary.py:93
ARBORA-A2A-R005
Durable, fail-closed A2A approval exchange for tool calls (rollup)
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Durable, fail-closed A2A approval exchange for tool calls (rollup).** Subsystem: A2A confirmation. Entry point: wire method `arbora.plan/confirm` over `POST /a2a`. Arbora refuses every approval attempt until the full signed chain qualifies. The chain is a live `input-required` pending call, a detached signature, a one-time grant consume and the engine verdict. Children `.2` to `.2.5` build the chain. Children `.3` to `.8` build the tool-action admitter: model, behavior, wiring, refusal, evidence and hot-path proof. Storage of the pending call and the grant is `MEDULLA-DURABLE-KERNEL-R039.3` and `MEDULLA-DURABLE-KERNEL-R039.4`. The verdict is `MEDULLA-DECISION-ENGINE-R038.2`. Depends: `ARBORA-A2A-R005.2`, `ARBORA-A2A-R006.2`. | Satisfied when children `.2` to `.8` pass. The root journey is `tests/a2a/test_tool_action_admission_e2e.py::test_confirm_returns_engine_verdict_and_audit` (L3).
requirementARBORA-A2ASPECIFIED9a79acee8b6c
ARBORA-A2A-R005.1
Fail-closed `arbora.plan/confirm` stub on the A2A method table
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Fail-closed `arbora.plan/confirm` stub on the A2A method table.** arbora registers `arbora.plan/confirm` in the A2A JSON-RPC method table with typed, validated params, and refuses every confirmation attempt with a distinct error until the full signed human approval exchange exists. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5). Shape: `_plan_confirm_stub` and `A2APlanConfirmParams` (`arbora/a2a/models.py`); `A2AOperationBridgeUnavailable` (`arbora/a2a/routing.py`) maps to JSON-RPC -32011. | Proven by a test asserting `arbora.plan/confirm` validates params and is refused with a dedicated JSON-RPC error code distinct from "method not found". Test: `tests/a2a/test_application.py::test_json_rpc_refuses_plan_confirm_until_approval_exchange_exists`.
requirementARBORA-A2AVERIFIEDa226c8fdf397
tests/a2a/test_application.py:273
ARBORA-A2A-R005.2
Full signed human approval chain with input-required task emission (rollup)
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Full signed human approval chain with input-required task emission (rollup).** Subsystem: A2A confirmation. Entry point: `arbora.plan/confirm` over `POST /a2a`. A pending effect moves its durable task to `input-required` with a server-attested `PendingCallBinding` (`arbora/a2a/approval.py`). One compare-and-set then consumes a revocable human grant before the effect runs. Child `.2.1` builds the grant store. Child `.2.5` qualifies the served chain including a restart. The chain reuses the signature checks in `arbora/a2a/approval.py::verify_pending_signature`, which stay unchanged. Refusal codes are the `SignatureCheck` values plus `GRANT_REPLAYED`, `GRANT_REVOKED` and `GRANT_STORE_UNAVAILABLE`. Depends: `ARBORA-A2A-R005.2.1`, `MEDULLA-DURABLE-KERNEL-R039.3`, `MEDULLA-DURABLE-KERNEL-R039.4`. | Satisfied when children `.2.1` and `.2.5` pass. The root journey is `tests/a2a/test_approval_chain_served.py::test_request_sign_approve_execute_once` (L3).
requirementARBORA-A2ASPECIFIEDc935d6686ef5
cdde0200a54a
ARBORA-A2A-R005.2.1
Human-grant store over the engine pending-call lease with atomic consume-once
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Human-grant store over the engine pending-call lease with atomic consume-once.** Subsystem: A2A confirmation, grant authority. Caller chain: `arbora.plan/confirm` → `arbora/a2a/application.py::confirm_dispatch` → `HumanGrantStore.consume` (new). Shape: new `arbora/a2a/grant_store.py` with `HumanGrantStore.issue`, `.get`, `.revoke` and `.consume`. The store holds no state of its own. Each method calls the engine methods `IssueControlLease`, `GetControlLease` and `TransitionControlLease` through `client.control_leases` (see `arbora/api/invoke/plan.py::EgPlanStore`). The pending-call envelope registers on the claimed WorkItem and the plan lease through the paired consume of `MEDULLA-DURABLE-KERNEL-R039.4`. `consume` presents the registered pair, and the engine consumes both leases in one transaction. Grant lifetime is the existing `PLAN_TTL_MS` (600000 ms) and never exceeds it. Refusals: `GRANT_EXPIRED`, `GRANT_REVOKED`, `GRANT_REPLAYED` (a second consume) and `GRANT_STORE_UNAVAILABLE` (engine unreachable, fail closed). Evidence: each outcome records `grant_id`, `grant_revision` and the pending call id in the audit entry of `ARBORA-A2A-R007`. Depends: `MEDULLA-DURABLE-KERNEL-R039.3`, `MEDULLA-DURABLE-KERNEL-R039.4`, `ARBORA-A2A-R007`. | Test: `tests/a2a/test_grant_store.py::test_concurrent_consume_succeeds_once` (L2) runs 8 concurrent consumes against a loopback engine and asserts one success. `::test_expired_and_revoked_grants_refuse` asserts the refusal codes. Served proof is `ARBORA-A2A-R005.2.5`.
requirementARBORA-A2ALANDEDcdde0200a54a
ARBORA-A2A-R005.2.2
Validate detached pending-call signatures without authorizing execution
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Validate detached pending-call signatures without authorizing execution.** Define a closed, frozen server-side binding over the existing plan, task and pending-call identities. Bind parent and child work items, original human, approver, grant identity/revision and expiry. Verify Ed25519 signatures over canonical bytes with a fixed domain/version. Keys and binding evidence never come from confirmation params. The existing confirmation refusal calls this boundary with absent evidence and stays unavailable. Signature validity alone cannot authorize execution. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `verify_pending_signature` (`arbora/a2a/approval.py:130`). Shape: `PendingCallBinding`, `ApprovalVerificationEvidence`, `SignatureCheck` and `verify_pending_signature` in `arbora/a2a/approval.py`. | Scoped tests prove real cryptographic validity and reject altered binding, foreign human, expiry and inactive grant snapshots. A route test proves missing authority still refuses. Snapshot tests do not prove replay prevention or atomic consumption. The full R005.2 chain stays open. Test: `tests/a2a/test_approval_signature.py::test_valid_signature_is_evidence_only`.
requirementARBORA-A2AVERIFIEDc935d6686ef5
tests/a2a/test_approval_signature.py:25
ARBORA-A2A-R005.2.3
Human authority snapshot evaluation
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Human authority snapshot evaluation.** Verify the transient human credential through `SessionAuthority`. Inspect original-session facts through a separate injected reference owner. A separate injected owner resolves a registered human approval key. Bind tenant, human, original session reference, key identifier and both owner revisions. Check active status and expiry before and after resolving the owners again. Refuse missing producers, mismatches, changed snapshots, revoked authority and expired approval or source authority. Return `CURRENT_SNAPSHOT_ONLY`, never execution permission or an atomic fence. Do not renew expired authority or extend approval expiry. No production adapter, key enrollment, credential store or grant issuer is included. Process credential renewal cannot renew human approval. Keep served confirmation unavailable until the full parent chain qualifies. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → human authority snapshot evaluator in `arbora/identity/` over `SessionAuthority`. Shape: Snapshot evaluator and its owner ports under `arbora/identity/`; consumes `SessionAuthority`; returns `CURRENT_SNAPSHOT_ONLY`. | `tests/identity/test_approval_authority.py` covers positive supplied-owner snapshots and missing, expired, revoked, foreign, changed and reconstructed evaluator cases. These tests establish evaluator behavior only. They do not prove a published reference/key producer, atomic consumption, restart-safe authority storage or served approval. Test: `tests/identity/test_approval_authority.py::test_current_snapshot_is_not_consumed_and_rechecks_every_time`.
requirementARBORA-A2AVERIFIED2ddd787cf31d
tests/identity/test_approval_authority.py:20
ARBORA-A2A-R005.2.4
Native facts adapters and registration proof
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Native facts adapters and registration proof.** Use generated identity validation for original session facts and registered approval keys. Refuse unsupported operations without a transport fallback. Explicit registration requires a live matching human session and Ed25519 proof over the native domain-separated fields before broker attestation. Native registration owns durable CAS and session revalidation. Approval composition may explicitly disable credential-resolution refresh through the generated contract. Existing session resolution defaults remain unchanged. Explicit session renewal sends the exact original reference, global revision and scopes. Its response must preserve identity, scopes and the absolute deadline while advancing idle expiry. Renewal never refreshes signed approval evidence. No adapter creates execution permission, renews an approval or enrolls a key automatically. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → native identity facts adapters in `arbora/identity/` (registration proof before broker attestation). Shape: Generated identity validation adapters under `arbora/identity/`; the registration proof is verified before broker attestation; reuse the Ed25519 verification of `arbora/a2a/approval.py`. | Real cryptographic tests bind every field and refuse invalid proof before registration. Generated validation refuses unsupported operations before transport. Native producer integration and served signed execution remain pending until their actual acceptance runs. Test: `tests/identity/test_approval_registration.py::test_real_registration_signature`.
requirementARBORA-A2AVERIFIED2ddd787cf31d
67cfee453bf5
tests/identity/test_approval_authority.py:329
tests/identity/test_approval_authority.py:359
tests/identity/test_approval_authority.py:421
tests/identity/test_approval_registration.py:16
ARBORA-A2A-R005.2.5
Served full-chain qualification of the signed approval
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served full-chain qualification of the signed approval.** Subsystem: A2A confirmation. Caller chain: `POST /a2a` `arbora.plan/confirm` → `confirm_dispatch` → `HumanGrantStore.consume` → shared invoke. The chain composes the installed session producer and the approval-key producer with a server-owned pending call. It emits the durable `input-required` state, then consumes the grant and plan fence once before the effect. It retains the original human, tenant, signed payload and the fixed expiry. A snapshot check, a key registration or a valid detached signature alone supplies no authority. Until this row passes, `confirm_dispatch` refuses with `APPROVAL_CHAIN_UNQUALIFIED`. Refusals: foreign human or tenant (`BINDING_MISMATCH`), expired or revoked grant, changed params and concurrent replay (`GRANT_REPLAYED`), each before any effect. Evidence: one audit entry per attempt with the grant id and the refusal code. Writes: the effect runs only through shared invoke after the consume. Depends: `ARBORA-A2A-R005.2.1`, `ARBORA-A2A-R006.2`, `ARBORA-IDENTITY-R004.3`. Shape: types and functions `HumanGrantStore.consume`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_approval_chain_served.py::test_request_sign_approve_execute_once_across_restart` (L3) runs the chain against a real engine binary and restarts the host between request and approval. It asserts one effect, and the negative cases refuse before any effect.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R005.3
Model: tool-action admission request and approval
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Model: tool-action admission request and approval.** Subsystem: A2A confirmation. Shape: new `arbora/a2a/tool_action_admission.py` with frozen models `ToolActionAdmissionRequest` and `ToolActionApproval`. Replace `A2APlanConfirmParams` in `arbora/a2a/models.py` with a closed union discriminated by `confirmation_kind`: `tool_action` or `held_item`. Both members extend one base that keeps `task_id`, `pending_call_id`, `plan_ref` and `signature`. A missing, unknown or mixed kind fails validation with `CONFIRMATION_KIND_INVALID`. The tool-action request adds `params_digest` (64 lowercase hex), `trust_mark_ref` and `action_class`, one of `egress`, `privileged_call` or `delegation`. The approval carries `verdict` (`admit` or `deny`), `approval_ref` and `decision_ref`. The engine produces the trust mark and the verdict. Arbora carries references only. Depends: `MEDULLA-SRC-AUTH-R011.1`, `MEDULLA-DECISION-ENGINE-R038.2`. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `A2APlanConfirmParams` validation in `arbora/a2a/models.py`. | Test: `tests/a2a/test_tool_action_admission.py::test_models_are_closed_and_frozen` (L1) asserts frozen models, the closed union and each rejected variant.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R005.4
Behavior: one engine round trip returns the verdict unchanged
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Behavior: one engine round trip returns the verdict unchanged.** Subsystem: A2A confirmation. Caller chain: `confirm_dispatch` → `ToolActionAdmitter.admit` (new, `arbora/a2a/tool_action_admission.py`) → `ToolActionDecider.decide`. `ToolActionDecider` is an async protocol. Its engine adapter calls `facade.DecisionClient(client, graph).decide` (see `arbora/api/ops/plans.py`) with the question `tool_action_admission` of `MEDULLA-DECISION-ENGINE-R038.2`. `admit` makes exactly one call and returns the verdict as received. The named default `deny_without_verdict` applies only when the engine returns no verdict. Arbora holds no policy table and no threshold. The engine decides whether an action follows untrusted content. The call timeout is config `A2A_ENGINE_DECISION_TIMEOUT_S` (default 10, range [1, 60], seconds). Depends: `ARBORA-A2A-R005.3`, `MEDULLA-DECISION-ENGINE-R038.2`. Shape: edits `arbora/api/ops/plans.py`; adds `arbora/a2a/tool_action_admission.py` (new); types and functions `ToolActionAdmitter.admit`, `ToolActionDecider.decide`, `ToolActionDecider`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_action_admission.py::test_admit_returns_engine_verdict_unchanged` and `::test_default_applies_only_without_verdict` (L2) run against a scripted decider.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R005.5
Wiring
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Wiring.** Replace the synchronous `_plan_confirm_stub` with one async confirm dispatcher over the closed confirmation_kind union; the tool_action branch awaits shared invoke with Surface.A2A, verified caller, signed authority and audit before `ToolActionAdmitter.admit`. The current stub is (`arbora/a2a/application.py:140`), registered at `arbora/a2a/application.py:154` and reached from `_invoke_method` (`arbora/a2a/application.py:157`) on `POST /a2a`. The harness check at meristem's tool guard calls it through this method and applies the returned approval. No production caller reaches an admission function today. Caller chain: the existing stub registered at `_SYNC_METHODS` (`arbora/a2a/application.py:254`) and reached from `_invoke_method` (`arbora/a2a/application.py:262`) on `POST /a2a`. Shape: edits `arbora/a2a/application.py`; types and functions `ToolActionAdmitter.admit`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Proven by `tests/a2a/test_tool_action_admission.py::test_confirm_dispatch_reaches_admitter`.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R005.6
Refusal: a refusal never reads as approval
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Refusal: a refusal never reads as approval.** Subsystem: A2A confirmation. Shape: `ToolActionRefusal` in `arbora/a2a/tool_action_admission.py`. Reasons: `ENGINE_UNAVAILABLE`, `TRUST_MARK_MISSING`, `ACTION_CLASS_UNKNOWN`, `GRANT_STORE_UNAVAILABLE` and `ABSTAINED`. The wire error is JSON-RPC code -32011 with the reason in `data.reason`. The consumer must treat every refusal as deny (`MERISTEM-HARNESS-CYCLE-R055`). An `admit` verdict is returned only after the signed chain of `ARBORA-A2A-R005.2` and the verified-caller bridge of `ARBORA-A2A-R006.2` both pass. The grant store alone is insufficient. Depends: `ARBORA-A2A-R005.2`, `ARBORA-A2A-R006.2`. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `ToolActionAdmitter.admit` refusal path. | Test: `tests/a2a/test_tool_action_admission.py::test_each_refusal_reason_denies` (L2) asserts each reason yields a deny result and never an approval.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R005.7
Evidence: audit entry names the decision without values
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Evidence: audit entry names the decision without values.** Subsystem: A2A confirmation. Caller chain: `ToolActionAdmitter.admit` → `arbora/api/invoke/audit.py` reservation (`ARBORA-A2A-R007`). Every approval and refusal records `approval_ref`, `decision_ref`, `pending_call_id`, `action_class` and `params_digest`. The entry holds no credential and no parameter value. The reservation precedes the engine call. A failed reservation refuses with `AUDIT_UNAVAILABLE` before any effect. Writes: the audit entry through `arbora/api/invoke/eg_audit.py::EgAuditAdapter`. Depends: `ARBORA-A2A-R007`, `ARBORA-A2A-R005.4`. Shape: edits `arbora/api/invoke/audit.py`, `arbora/api/invoke/eg_audit.py`; types and functions `ToolActionAdmitter.admit`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_action_admission.py::test_audit_entry_names_decision_without_values` (L2) reads the recorded entry and asserts the five fields and no parameter text.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R005.8
Hot-path proof: confirm returns the engine verdict with one audit entry
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Hot-path proof: confirm returns the engine verdict with one audit entry.** Subsystem: A2A confirmation. Entry point: `arbora.plan/confirm` over `POST /a2a`. A loopback engine returns admit, deny and abstain for one pending call per action class. The test observes the verdict in the response and one linked audit entry per call. It proves a refusal never lets the action proceed. Depends: `ARBORA-A2A-R005.3` to `ARBORA-A2A-R005.7`, `MEDULLA-DECISION-ENGINE-R038.2`. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `ToolActionAdmitter.admit` against a loopback engine. Shape: edits `arbora/a2a/application.py`; types and functions `ToolActionAdmitter.admit`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_action_admission_e2e.py::test_confirm_returns_engine_verdict_and_audit` (L3) runs through the real route with tenant and principal context and one cross-tenant refusal.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R006
Operation invoke and plan-confirm methods for A2A
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Operation invoke and plan-confirm methods for A2A.** arbora implements arbora.op/invoke and arbora.plan/confirm as A2A methods registered in its method table, so invoking an operation and confirming its input-required approval use the same scope, policy, and error semantics as other hosted operations. Split into `ARBORA-A2A-R006.1` (both methods registered, fail-closed) with `ARBORA-A2A-R006.2` (the bridge to the shared hosted-operation registry) remaining open under the parent. | Proven by contract tests asserting invoke and confirm share identical authorization and error codes with the MCP and REST paths for the same operation.
requirementARBORA-A2ASPECIFIED9a79acee8b6c
ARBORA-A2A-R006.1
Register `arbora.op/invoke` and `arbora.plan/confirm`, fail-closed
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Register `arbora.op/invoke` and `arbora.plan/confirm`, fail-closed.** Arbora registers both methods in the A2A JSON-RPC table. It validates typed params. Each method refuses with a distinct error until shared hosted-operation invocation is bridged on `Surface.A2A`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_SYNC_METHODS['arbora.op/invoke']` / `['arbora.plan/confirm']` (`arbora/a2a/application.py:254`). Shape: `_op_invoke_stub`, `_plan_confirm_stub`, `A2AOperationInvokeParams` and `A2AOperationBridgeUnavailable`; no new file. | Tests validate params for both methods and assert refusal with a dedicated JSON-RPC code. The code differs from “method not found”. Test: `tests/a2a/test_application.py::test_json_rpc_refuses_op_invoke_until_registry_bridge_exists`.
requirementARBORA-A2AVERIFIEDcdde0200a54a
tests/a2a/test_application.py:235
tests/a2a/test_application.py:274
ARBORA-A2A-R006.2
Parity of `arbora.op/invoke` with the shared hosted-operation registry
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Parity of `arbora.op/invoke` with the shared hosted-operation registry.** Subsystem: A2A operations. Caller: `POST /a2a` `arbora.op/invoke` → `arbora/a2a/application.py::_operation_request` → `_invoke_operation` → `arbora/api/invoke/pipeline.py::invoke` with `Surface.A2A`. The bridge is wired. `create_a2a_handlers` receives `operation_services` and an `AmbientHTTPAuthenticator` together, and a partial composition raises `ValueError`. This row owns the parity proof. A read, a write and a fleet operation must return the same decisions across A2A, MCP and HTTP. The decisions cover scope, policy, effect, reservation, audit and error. A refused call causes zero effects. A request with `plan_ref` refuses with `A2AOperationBridgeUnavailable` until `ARBORA-A2A-R005.2` qualifies. `arbora.plan/confirm` bridges to `services.plans.consume`, so `deploy.placement.apply` can be confirmed over A2A. Depends: `ARBORA-A2A-R006.2.2`, `ARBORA-OPS-R001`. | Test: `tests/a2a/test_operation_parity.py::test_read_write_fleet_match_across_surfaces` (L3) enters the real `/a2a` route and compares the three surfaces for authorization, refusal code and effect count.
requirementARBORA-A2ASPECIFIEDcdde0200a54a
tests/a2a/test_operation_bridge.py:38
ARBORA-A2A-R006.2.1
Preserve the verified caller through Arbora A2A authentication
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Preserve the verified caller through Arbora A2A authentication.** Model: Reuse AU's public GraphSession and Arbora VerifiedCaller projection. The existing session exposes actor, tenant and engine_verified_context. Behavior: Bind the resolved session to the current request's verified credential provenance and retain it through dispatch. Wiring: Extend AmbientA2AAuthenticator at `arbora/a2a/application.py:39` and reuse caller_from_session at `arbora/api/mcp/caller.py:12`. Refresh through verify_current_from_session at `arbora/api/invoke/bootstrap.py:99`. Refusal: Reject missing, stale, foreign-tenant or unsupported actor contexts before invocation. Do not relabel ai_agent or automated_service as human or service. Evidence: A synthetic human-session probe establishes shape compatibility only. It does not prove production authentication or invocation. | Planned `tests/a2a/test_verified_caller_bridge.py` must enter the real HTTP entry point. Cover request-bound credentials, refresh, actor/tenant preservation and each refusal. Assert zero authority or backend calls on refusal. Returning the caller alone cannot close R006.2.
requirementARBORA-A2AVERIFIED013c270081a9
5fc890ade3ae
6e22275807ca
b582a7584de6
cdde0200a54a
tests/a2a/test_request_session_authority.py:43
ARBORA-A2A-R006.2.1.1
Wire request-bound caller retention and refresh
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Wire request-bound caller retention and refresh.** Retain the authenticated session in `arbora/a2a/application.py:39` and pass its caller through dispatch at application.py:225. Reuse caller_from_session and verify_current_from_session without changing AU's compatible return shape. Preserve actor, tenant and credential provenance. Reject unsupported actors, stale authority and mismatched request identity before downstream calls. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_request_caller` (`arbora/a2a/application.py:58`) → `_refresh_unary_caller` (`arbora/a2a/application.py:75`) → `caller_session_scope` (`arbora/a2a/application.py:94`). Shape: edits `arbora/a2a/application.py`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Planned `tests/a2a/test_verified_caller_bridge.py::test_http_retains_and_refreshes_verified_caller` must enter /a2a with request-bound credentials. It must preserve identity and make zero downstream calls for every refusal. Synthetic ambient compatibility alone cannot satisfy this child.
requirementARBORA-A2AVERIFIED013c270081a9
5fc890ade3ae
6e22275807ca
b582a7584de6
tests/a2a/test_request_session_authority.py:43
ARBORA-A2A-R006.2.2
Compose shared invocation into the served A2A routes
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Compose shared invocation into the served A2A routes.** Subsystem: A2A operations, host bootstrap. Caller chain: `arbora/mcp_server/runtime.py` (passes `operation_services=invocation.services`) → `arbora/a2a/mcp.py::register_a2a_tools` → `_admitted_handlers` → `create_a2a_handlers`. The standalone path `arbora/a2a/composition.py` builds the application the same way. Both paths call `validate_contract_admission(operation_services.registry)` before any route is exposed. A contract refusal exposes no route and causes no effect. The verified caller reaches `invoke` with `Surface.A2A`. Signed confirmation stays under `ARBORA-A2A-R005.2`. Refusal: composing services without an authenticator, or the reverse, raises `ValueError` at registration. Depends: `ARBORA-HOST-R001.2.3`. Shape: edits `arbora/mcp_server/runtime.py`, `arbora/a2a/mcp.py`, `arbora/a2a/composition.py`; types and functions `ValueError`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_operation_bridge.py::test_registered_mcp_route_reaches_request_auth_and_shared_pipeline` and `::test_partial_composition_is_rejected` (L3).
requirementARBORA-A2ASPECIFIEDtests/mcp_server/test_hosted_invocation.py:28
ARBORA-A2A-R006.3
Model: held-item admission request and verdict
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Model: held-item admission request and verdict.** Subsystem: A2A confirmation. Shape: new `arbora/a2a/held_item_admission.py` with frozen models `HeldItemAdmissionRequest` and `HeldItemVerdict`. The request carries `item_kind` (`run_output_proposal` or `stored_run_program`), `item_ref`, `content_digest` (64 lowercase hex) and `engine_decision_ref`. The verdict carries `outcome` (`admitted`, `rejected` or `abstained`), `verdict_ref` and, for a program, `verification_ref`. The engine owns the held item and its stored form. This model is the `held_item` member of the union in `ARBORA-A2A-R005.3`. Depends: `ARBORA-A2A-R005.3`, `MEDULLA-DECISION-ENGINE-R038.3`. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `confirm_dispatch` held_item branch. | Test: `tests/a2a/test_held_item_admission.py::test_models_are_closed_and_frozen` (L1).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R006.4
Behavior: the engine verdict on a held item returns unchanged
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Behavior: the engine verdict on a held item returns unchanged.** Subsystem: A2A confirmation. Caller chain: `confirm_dispatch` → `HeldItemAdmitter.admit` (new) → `HeldItemDecider.decide` → engine `Decide` question `held_item_admission` of `MEDULLA-DECISION-ENGINE-R038.3`. `admit` returns the verdict unchanged. For a stored program it checks one thing. The response must carry `verification_ref` and name a verifier other than the compiler. The pass count, retirement evidence and thresholds come from the engine response. Missing policy evidence refuses with `POLICY_EVIDENCE_MISSING`. Arbora holds no local default count. Depends: `ARBORA-A2A-R006.3`, `MEDULLA-DECISION-ENGINE-R038.3`. Shape: types and functions `HeldItemAdmitter.admit`, `HeldItemDecider.decide`, `Decide`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_held_item_admission.py::test_program_needs_distinct_verifier_and_required_passes` (L2) uses a scripted decider and asserts refusal on a shared verifier.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R006.5
Wiring: the held_item branch of the confirm dispatcher
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Wiring: the held_item branch of the confirm dispatcher.** Subsystem: A2A confirmation. Caller chain: `POST /a2a` `arbora.plan/confirm` → `_invoke_method` → `confirm_dispatch` (the async dispatcher of `ARBORA-A2A-R005.5`) → `HeldItemAdmitter.admit`. The branch awaits shared invoke with `Surface.A2A`, signed authority and an audit reservation before `admit`. It replaces the sync `_plan_confirm_stub` in `arbora/a2a/application.py`. It keeps the pending-call, params and human bindings, the grant and plan fences, and consume-once behavior. Arbora keeps no local record. It never calls `approve_elevation` in `arbora/access/service.py`, which is a different authority surface. The harness side is `MERISTEM-HARNESS-CYCLE-R056`. Depends: `ARBORA-A2A-R005.5`, `ARBORA-A2A-R006.4`, `MERISTEM-HARNESS-CYCLE-R056`. Shape: edits `arbora/a2a/application.py`, `arbora/access/service.py`; types and functions `HeldItemAdmitter.admit`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_held_item_admission.py::test_confirm_dispatch_reaches_held_item_admitter` (L3) posts to the real route and asserts the admitter ran once.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R006.6
Refusal: a refusal leaves the item held
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Refusal: a refusal leaves the item held.** Subsystem: A2A confirmation. Shape: `HeldItemRefusal` in `arbora/a2a/held_item_admission.py`. Reasons: `ENGINE_UNAVAILABLE`, `ITEM_UNKNOWN`, `DIGEST_MISMATCH`, `VERIFIER_NOT_INDEPENDENT`, `PASSES_INSUFFICIENT`, `RETIRED`, `POLICY_EVIDENCE_MISSING` and `ABSTAINED`. The wire error is JSON-RPC code -32011 with the reason in `data.reason`. A refusal leaves the item held. The consumer must not apply a refused output or run a refused program (`MERISTEM-HARNESS-CYCLE-R056`). Depends: `ARBORA-A2A-R006.4`. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `HeldItemAdmitter.admit` refusal path. | Test: `tests/a2a/test_held_item_admission.py::test_each_refusal_leaves_item_held` (L2).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R006.7
Evidence: audit entry names the verdict and the item
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Evidence: audit entry names the verdict and the item.** Subsystem: A2A confirmation. Caller chain: `HeldItemAdmitter.admit` → `arbora/api/invoke/audit.py` reservation (`ARBORA-A2A-R007`). Every verdict records `verdict_ref`, `item_kind`, `item_ref`, `content_digest` and `verification_ref`. A rejected item also records its refusal reason. The entry holds no item content. Writes: the audit entry through `EgAuditAdapter`. Depends: `ARBORA-A2A-R007`, `ARBORA-A2A-R006.4`. Shape: edits `arbora/api/invoke/audit.py`; types and functions `HeldItemAdmitter.admit`, `EgAuditAdapter`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_held_item_admission.py::test_audit_entry_names_verdict_and_item` (L2).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R006.8
Hot-path proof: confirm admits or rejects a held item
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Hot-path proof: confirm admits or rejects a held item.** Subsystem: A2A confirmation. Entry point: `arbora.plan/confirm` over `POST /a2a`. A loopback engine holds one run output and one stored program. The test observes one admitted verdict applied once through shared invoke with `Surface.A2A`. It observes one rejected verdict leaving the item held, and the linked audit entry. It proves that operator elevation is never called. Replay, changed params, a wrong human, an expired or revoked grant and an unavailable producer port cannot apply an item. Depends: `ARBORA-A2A-R006.3` to `ARBORA-A2A-R006.7`, `MEDULLA-DECISION-ENGINE-R038.3`. Caller chain: `POST /a2a` `arbora.plan/confirm` → `json_rpc` (`arbora/a2a/application.py:492`) → `_invoke_method` → `_plan_confirm_stub` (`arbora/a2a/application.py:239`, to be replaced by the async confirm dispatcher of ARBORA-A2A-R005.5) → `HeldItemAdmitter.admit` against a loopback engine. Shape: edits `arbora/a2a/application.py`; types and functions `HeldItemAdmitter.admit`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_held_item_admission_e2e.py::test_confirm_admits_or_rejects_held_item` (L3) with tenant context and one cross-tenant refusal.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R007
Pre-effect audit reservation for every governed write
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Pre-effect audit reservation for every governed write.** Before any governed write or administrative effect, arbora reserves a tenant-scoped, idempotent audit entry in a pending state, binds it to the verified calling service's claims, and links the entry to the effect's outcome once known. A request with no audit class or an unavailable durable audit writer is rejected before the effect runs. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → audit reservation step (`arbora/api/invoke/audit.py`) before the executor (`arbora/api/invoke/executor.py`) runs the effect. Shape: The audit reservation step of the invoke pipeline (`arbora/api/invoke/audit.py`, `arbora/api/invoke/eg_audit.py`); no A2A-specific copy. | Proven by negative tests asserting a missing audit class or unavailable writer blocks the effect, and a reconciliation test linking a pending reservation to its final outcome.
requirementARBORA-A2AVERIFIED9a79acee8b6c
c2a6ab839fd3
tests/api/test_invoke_contract.py:481
tests/api/test_invoke_governance.py:443
ARBORA-A2A-R008
First-party A2A facade, not a vendored wrapper
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**First-party A2A facade, not a vendored wrapper.** arbora implements the A2A protocol facade itself as first-party code over the public graph-engine and agent orchestration ports, rather than wrapping or depending on an external vendored A2A implementation. Caller chain: the facade entry point `create_a2a_application` (`arbora/a2a/application.py:513`) built by `compose_a2a` (`arbora/a2a/composition.py:23`). Shape: Facade code only in `arbora/a2a/`; `pyproject.toml` declares no vendored A2A package. | Proven by a source-level dependency check confirming the A2A facade is implemented in this repository against the public ports. Test: `tests/a2a/test_first_party_facade.py::test_a2a_facade_entry_point_is_implemented_in_this_repository`.
requirementARBORA-A2AVERIFIEDd5bff77ba836
tests/a2a/test_first_party_facade.py:53
tests/a2a/test_first_party_facade.py:67
tests/a2a/test_first_party_facade.py:85
ARBORA-A2A-R009
Advertise only what is wired
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Advertise only what is wired.** arbora's Agent Card sets `capabilities.streaming`, `capabilities.pushNotifications`, and `capabilities.stateTransitionHistory` true only when a real durable authority object implementing the matching protocol (`A2AStreamingAuthority`, `A2APushNotificationAuthority`, `A2ATransitionHistoryAuthority`) is wired into the running composition; no flag or partial authority can force a field true. Split into `ARBORA-A2A-R009.1` (the typed capability-advertisement model, landed in this PR). | Proven by unit tests over `A2AAgentCapabilities.from_wired_authorities` asserting default-false, per-authority true, and a `TypeError` refusal on a non-conforming object.
requirementARBORA-A2AVERIFIED35257e780f7c
f4236300caf0
tests/a2a/test_models.py:38
tests/a2a/test_models.py:39
tests/a2a/test_models.py:47
tests/a2a/test_models.py:48
tests/a2a/test_models.py:56
ARBORA-A2A-R009.1
Typed Agent Card capability-advertisement model
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Typed Agent Card capability-advertisement model.** arbora defines `A2AAgentCapabilities.from_wired_authorities` plus `A2AStreamingAuthority`/`A2APushNotificationAuthority`/`A2ATransitionHistoryAuthority` runtime-checkable protocols in `arbora/a2a/models.py`. A capability field is derived from whether a conforming authority object was supplied, never from a bare boolean. Caller chain: `compose_a2a` (`arbora/a2a/composition.py:23`) → `A2AAgentCapabilities.from_wired_authorities` (`arbora/a2a/models.py`) → `A2AService.agent_card` (`arbora/a2a/service.py:91`) on `GET /.well-known/agent-card.json`. Shape: `A2AAgentCapabilities.from_wired_authorities` and the three runtime-checkable protocols in `arbora/a2a/models.py`. | Proven by `tests/a2a/test_models.py` covering default-false, selective true, all-true, and refusal on a non-conforming authority. Test: `tests/a2a/test_models.py::test_from_wired_authorities_advertises_only_what_is_wired`.
requirementARBORA-A2AVERIFIED35257e780f7c
f4236300caf0
tests/a2a/test_models.py:39
tests/a2a/test_models.py:48
tests/a2a/test_models.py:57
tests/a2a/test_models.py:68
tests/a2a/test_models.py:89
ARBORA-A2A-R010
WorkItem stream projection, not a shadow log
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**WorkItem stream projection, not a shadow log.** Arbora must project status, step and terminal events through AU's public task-event reader. The exact producer requirement ID and durable task/tenant reader export remain unassigned in the current AU contracts. Define that owner contract before wiring message/stream, tasks/resubscribe or push delivery. Store no independent event-log copy. A missing, stale or unavailable projection must return typed UNAVAILABLE. Never backfill it from local state. The host owns the `(run_id, stream_id)` cursors. It reads checkpoints through `MEDULLA-DURABLE-KERNEL-R028.1.2.3`. | Future served integration must read real durable AU/EG events, enforce task and tenant scope, and resume after restart. Scripted fixtures alone cannot establish the missing producer or durable replay. Preserve all existing ordering, gap and zero-fabrication cases.
requirementARBORA-A2AVERIFIED9bd22960a7ea
cbe00a4bbd43
tests/a2a/test_terminal_event.py:61
ARBORA-A2A-R011
Transition history reads through to the engine WorkItem ledger
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Transition history reads through to the engine WorkItem ledger.** Subsystem: A2A tasks. Caller chain: `POST /a2a` `tasks/get` → `arbora/a2a/application.py::_get_task` → `A2AService.get_task` → `EngineTransitionHistory.transition_history` (new, `arbora/a2a/history.py`). `_GetTaskParams` gains `includeTransitionHistory` (strict bool, default false). The result carries `A2ATask.transition_history`, a list of `A2ATransition(state, at_ms, revision)`. `EngineTransitionHistory` implements `A2ATransitionHistoryAuthority` and calls the engine method of `MEDULLA-DURABLE-KERNEL-R028.2.1` after the ownership check of the task. It reconstructs nothing locally. Bound: at most 200 entries per page, with a `next_cursor`. Refusal: see `ARBORA-A2A-R012`. Evidence: none written; the read is tenant scoped by the verified session. Depends: `MEDULLA-DURABLE-KERNEL-R028.2.1`. Shape: edits `arbora/a2a/application.py`; adds `arbora/a2a/history.py` (new); types and functions `A2AService.get_task`, `EngineTransitionHistory.transition_history`, `A2ATask.transition_history`, `EngineTransitionHistory`, `A2ATransitionHistoryAuthority`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_transition_history.py::test_history_matches_engine_ledger_exactly` (L3) runs `tasks/get` against a loopback engine and asserts the entries equal the ledger, plus a foreign-tenant refusal.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R012
Typed refusal when the durable history authority is absent
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Typed refusal when the durable history authority is absent.** Subsystem: A2A tasks. Caller: `tasks/get` with `includeTransitionHistory` → `A2AService.get_task`. When no `A2ATransitionHistoryAuthority` is wired, or the authority raises, the service raises `A2ATransitionHistoryUnavailable` (defined in `arbora/a2a/authority.py`). `_ERROR_CODES` in `arbora/a2a/application.py` maps it to JSON-RPC code -32012 and HTTP 501 with a privacy-safe message. The response carries no entries, neither empty nor partial. Child `.3` wires the raise. Depends: `ARBORA-A2A-R011`. | Test: `tests/a2a/test_transition_history.py::test_unavailable_authority_returns_distinct_error` (L3) asserts code -32012, the message shape and no history data.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R012.1
Landed: the protocol exists, the error does not
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Landed: the protocol exists, the error does not.** `arbora/a2a/models.py` defines the `A2ATransitionHistoryAuthority` runtime-checkable protocol (`ARBORA-A2A-R009.1`); no `A2ATransitionHistoryUnavailable` error type exists and `tasks/get` has no history-refusal wiring. Caller chain: `GET /.well-known/agent-card.json` → `_agent_card_request` (`arbora/a2a/application.py:463`) → `A2AService.agent_card` (`arbora/a2a/service.py:91`), which reads `A2ATransitionHistoryAuthority` through `A2AAgentCapabilities`. Shape: `A2ATransitionHistoryAuthority` protocol in `arbora/a2a/models.py`; the unavailable error is `A2ATransitionHistoryUnavailable` in `arbora/a2a/authority.py`. | Proven today by `tests/a2a/test_models.py`; confirmed absent by `git grep -n A2ATransitionHistoryUnavailable arbora/ tests/`. Test: `tests/a2a/test_models.py::test_protocols_are_runtime_checkable_against_conforming_objects`.
requirementARBORA-A2AVERIFIED35257e780f7c
tests/a2a/test_models.py:97
ARBORA-A2A-R012.2
Add the `A2ATransitionHistoryUnavailable` error type
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Add the `A2ATransitionHistoryUnavailable` error type.** Add `A2ATransitionHistoryUnavailable(RuntimeError)` to `arbora/a2a/authority.py`, mirroring the existing `A2AStreamingUnavailable` sibling-error docstring pattern (`-3201x` block). Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_get_task` (`arbora/a2a/application.py:201`) → `_ERROR_CODES` (`arbora/a2a/application.py:287`) maps `A2ATransitionHistoryUnavailable` to JSON-RPC -32012. Shape: `A2ATransitionHistoryUnavailable(RuntimeError)` in `arbora/a2a/authority.py`, beside `A2AStreamingUnavailable`; exported in `__all__`. | A new test in `tests/a2a/` asserts the class exists, subclasses `RuntimeError`, and is exported from `arbora/a2a/authority.py.__all__`. Test: `tests/a2a/test_authority.py::test_transition_history_unavailable_has_distinct_privacy_safe_error`.
requirementARBORA-A2AVERIFIED35257e780f7c
tests/a2a/test_authority.py:54
ARBORA-A2A-R012.3
Wire `tasks/get` to raise the typed history refusal
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Wire `tasks/get` to raise the typed history refusal.** Subsystem: A2A tasks. Caller chain: `tasks/get` → `A2AService.get_task` in `arbora/a2a/service.py`. Add the branch: when `include_transition_history` is true and `authority` does not implement `A2ATransitionHistoryAuthority`, raise `A2ATransitionHistoryUnavailable`. Wrap an authority exception into the same type without echoing its text. Test row `A2A-HT06` of `specs/a2a/test-spec.md` maps to the test below. The provider `MEDULLA-DURABLE-KERNEL-R028.2.1` is the unblocking dependency. Depends: `ARBORA-A2A-R012`, `MEDULLA-DURABLE-KERNEL-R028.2.1`. Shape: edits `arbora/a2a/service.py`; types and functions `A2AService.get_task`, `A2ATransitionHistoryAuthority`, `A2ATransitionHistoryUnavailable`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_transition_history.py::test_get_task_raises_typed_refusal_without_authority` (L2) covers the absent and the raising authority.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R013
Push notifications deliver from a durable engine queue (rollup)
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Push notifications deliver from a durable engine queue (rollup).** Subsystem: A2A tasks. Arbora keeps no in-process queue and no delivery state. Each push is one engine WorkItem of kind `a2a_push`. Children: `.1` model and registration, `.2` delivery worker, `.3` capability wiring, `.4` proof. Delivery uses the engine methods `SubmitWorkItem`, `ClaimWorkItem`, `DeferWorkItem` and `CommitWorkItemResult`. Retry limits are configuration under `~/.config/arbora/config.json`. Depends: `ARBORA-A2A-R013.1` to `ARBORA-A2A-R013.4`. | Satisfied when children `.1` to `.4` pass. The root journey is `tests/a2a/test_push_delivery_served.py::test_push_survives_restart_and_dead_letters` (L3).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R014
Capability fields derive only from wired authorities (rollup)
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Capability fields derive only from wired authorities (rollup).** Subsystem: A2A composition. Caller: host bootstrap → `arbora/a2a/composition.py::compose_a2a` → `A2AAgentCapabilities.from_wired_authorities`. `compose_a2a` passes only authority objects it constructed. Streaming stays false until `ARBORA-A2A-R010` wires an authority. History becomes true with `ARBORA-A2A-R011`. Push becomes true with `ARBORA-A2A-R013.3`. No flag, setting or partial authority forces a field true. Child `.1` keeps the harness field off the card. Depends: `ARBORA-A2A-R009.1`. | Test: `tests/a2a/test_composition.py::test_capabilities_false_without_authorities` (L2) asserts all three fields false when no authority is wired. The root journey is `tests/a2a/test_agent_card.py::test_served_card_matches_wired_authorities` (L3).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R014.1
The card carries no harness field until admission works end to end
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**The card carries no harness field until admission works end to end.** Subsystem: A2A composition. Shape: `A2AAgentCapabilities` and `A2AAgentCard` in `arbora/a2a/models.py` define no harness field or extension. A harness-admission field may be added only in the change that makes `ARBORA-A2A-R017.6` pass on the default branch. Depends: `ARBORA-A2A-R017.6`. Caller chain: `GET /.well-known/agent-card.json` → `_agent_card_request` (`arbora/a2a/application.py:463`) → `A2AService.agent_card` (`arbora/a2a/service.py:91`) → `A2AAgentCard` (`arbora/a2a/models.py`). | Test: `tests/a2a/test_agent_card.py::test_card_has_no_harness_field_before_admission_e2e` (L1) asserts the card JSON keys and the capability model fields.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R015
The served card equals the capabilities the integration fixture exercises
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**The served card equals the capabilities the integration fixture exercises.** Subsystem: A2A composition. Entry point: `GET /.well-known/agent-card.json` → `arbora/a2a/application.py::_agent_card_request` → `A2AService.agent_card`. The test reads the served card. It then exercises each advertised capability once. History uses `tasks/get`, push uses registration and delivery, and streaming uses `tasks/resubscribe`. A capability advertised and not exercised, or exercised and not advertised, fails the test. The tested revision is the git SHA recorded in the test output. Depends: `ARBORA-A2A-R014`, `ARBORA-A2A-R011`, `ARBORA-A2A-R013.3`. Caller chain: `GET /.well-known/agent-card.json` → `_agent_card_request` (`arbora/a2a/application.py:463`) → `A2AService.agent_card` (`arbora/a2a/service.py:91`). Shape: edits `arbora/a2a/application.py`, `arbora/a2a/service.py`; types and functions `A2AService.agent_card`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_agent_card.py::test_served_card_matches_wired_authorities` (L3) compares the advertised set with the exercised set.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R016
Typed admission request and decision at the A2A door (rollup)
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Typed admission request and decision at the A2A door (rollup).** Subsystem: A2A admission. Caller: `message/send` → `A2AService.send_message` → `arbora/a2a/admission.py::admit_tool_subset`. `ToolSubsetAdmissionRequest` and `ToolSubsetAdmissionDecision` in `arbora/a2a/admission.py` are the typed pair. Children `.2` to `.5` add the model profile, task class, harness answer and refusal reasons. Child `.6` adds the caller model preference. Admission derives its subset only from the engine answer of `ARBORA-A2A-R017`. Depends: `ARBORA-A2A-R017`. | Satisfied when children `.2` to `.6` and `ARBORA-A2A-R017` pass. The root journey is `tests/a2a/test_admission_e2e.py::test_message_send_enqueues_envelope_with_harness_config` (L3).
requirementARBORA-A2ASPECIFIED35257e780f7c
tests/a2a/test_admission.py:15
ARBORA-A2A-R016.1
Fail-closed admission function proven against today's unavailable upstreams
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Fail-closed admission function proven against today's unavailable upstreams.** Arbora's `admit_tool_subset` function accepts a typed `ToolSubsetAdmissionRequest` and returns a typed `ToolSubsetAdmissionDecision` refusing every request with `admitted=False`, no admitted tools, reason `EG_ASSEMBLE_UNAVAILABLE`, and a provenance reference naming the unavailable EG operation — never silently succeeding, never an unrecognized/untyped error. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). Shape: `ToolSubsetAdmissionRequest`, `ToolSubsetAdmissionDecision` and `admit_tool_subset` in `arbora/a2a/admission.py`, on the `_WireModel` base. | Proven by a test asserting the exact refusal fields for a representative request while EG `AgentAssemble` and AU's envelope field remain unavailable. Test: `tests/a2a/test_admission.py::test_admission_fails_closed_while_eg_assemble_is_unavailable`.
requirementARBORA-A2AVERIFIED35257e780f7c
tests/a2a/test_admission.py:16
ARBORA-A2A-R016.2
Admission request carries the model profile and task class
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Admission request carries the model profile and task class.** Subsystem: A2A admission. Shape: `ToolSubsetAdmissionRequest` in `arbora/a2a/admission.py` gains `model_profile_ref` and `task_class`, both non-empty strings of at most 512 characters. Arbora reads both from the routed capability (`A2ARouteDecision`, `ARBORA-A2A-R016.5`), never from the caller. A request missing either value raises `ValidationError`. Depends: `ARBORA-A2A-R016.5`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_request_requires_model_profile_and_task_class` (L1).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R016.3
Admission decision carries the committed harness answer
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Admission decision carries the committed harness answer.** Subsystem: A2A admission. Shape: `ToolSubsetAdmissionDecision` in `arbora/a2a/admission.py` gains `harness_config` (a frozen mirror `HarnessConfigMirror` of `HarnessConfigAnswer` from `MEDULLA-DECISION-ENGINE-R128.3`), `decision_record_ref` and `context_budget_tokens`. An admitted decision carries all three. A refused decision carries none. The mirror is hand-written and tested against Rust round-trip vectors of the engine answer. Depends: `MEDULLA-DECISION-ENGINE-R128.3`, `ARBORA-A2A-R017.1`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_admitted_decision_carries_harness_config_and_budget` (L1), plus `::test_mirror_round_trips_engine_vectors` (L1).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R016.4
Refusal reasons for admission form one closed set
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Refusal reasons for admission form one closed set.** Subsystem: A2A admission. Shape: `ToolSubsetAdmissionRefusalReason` in `arbora/a2a/admission.py` becomes the closed set `HARNESS_CONFIG_UNAVAILABLE`, `HARNESS_CONFIG_ABSTAINED`, `ENVELOPE_LACKS_ALLOWED_TOOL_SUBSET`, `ENVELOPE_LACKS_HARNESS_CONFIG` and `CONTEXT_BUDGET_MISSING`. The value `EG_ASSEMBLE_UNAVAILABLE` is removed, because the subset now comes from the one `HarnessConfig` decision. Arbora holds no policy table and no default threshold. JSON-RPC code -32003 carries each reason in `data.reason`. Depends: `ARBORA-A2A-R017.1`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`) → `A2AAssemblyUnavailable` mapped to -32003 in `_ERROR_CODES` (`arbora/a2a/application.py:287`). | Test: `tests/a2a/test_admission.py::test_refusal_reasons_are_closed_set` (L1) asserts the five values and the removal of the old one.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R016.5
Routing decision carries the model profile and task class
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Routing decision carries the model profile and task class.** Subsystem: A2A admission. Caller chain: `A2AService.send_message` → `OrchestratorA2ARouter.route` in `arbora/a2a/routing.py`. `A2ARouteDecision` in `arbora/a2a/models.py` gains `model_profile_ref` and `task_class`. `route` reads both from the capability record of the routed agent. The record comes from the `A2aRoute` decision of `MEDULLA-DECISION-ENGINE-R044.2.2`. A record lacking either field raises `A2AAssemblyUnavailable`. Arbora ranks nothing. Depends: `ARBORA-A2A-R023`. Shape: edits `arbora/a2a/routing.py`, `arbora/a2a/models.py`; types and functions `A2AService.send_message`, `OrchestratorA2ARouter.route`, `A2ARouteDecision`, `A2aRoute`, `A2AAssemblyUnavailable`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_routing.py::test_route_decision_carries_model_profile_and_task_class` (L2); the missing-field case raises `A2AAssemblyUnavailable`.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017
Admitted tool subset comes from the committed harness decision (rollup)
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Admitted tool subset comes from the committed harness decision (rollup).** Subsystem: A2A admission. Caller: `A2AService.send_message` → `admit_tool_subset` → `HarnessConfigDecider.decide`. The admitted subset is the `tool_subset` of the committed `HarnessConfigAnswer` (`MEDULLA-DECISION-ENGINE-R128.9`). The engine solve covers the selected agent within the caller budget. Admission refuses closed when the answer is unavailable, abstained or stale. Children `.1` to `.6` build the port, the async call, priority, budget, send wiring and the end-to-end proof. Depends: `MEDULLA-DECISION-ENGINE-R128`, `MEDULLA-DECISION-ENGINE-R036`. | Satisfied when children `.1` to `.6` pass. The root journey is `tests/a2a/test_admission_e2e.py::test_message_send_enqueues_envelope_with_harness_config` (L3).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017.1
Engine decision port for the harness configuration
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Engine decision port for the harness configuration.** Subsystem: A2A admission. Shape: `HarnessConfigDecider` protocol in `arbora/a2a/admission.py` with one async method `decide(tenant, model_profile_ref, task_class, budget_tokens, priority) -> HarnessConfigMirror`. Its engine adapter calls `facade.DecisionClient(client, graph).decide` (see `arbora/api/ops/plans.py`) with question kind `harness_config` and the params of `MEDULLA-DECISION-ENGINE-R128.2`. The adapter lives in `arbora/a2a/engine_decider.py` and uses the verified session of the request. Timeout: config `A2A_ENGINE_DECISION_TIMEOUT_S` (default 10, [1, 60], seconds). Depends: `MEDULLA-DECISION-ENGINE-R128.2`, `MEDULLA-DECISION-ENGINE-R128.3`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`) → `HarnessConfigDecider.decide`. | Test: `tests/a2a/test_admission.py::test_decider_port_returns_typed_answer` (L2) uses a scripted client and asserts the typed mirror.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017.2
Admission is async and calls the decider once
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Admission is async and calls the decider once.** Subsystem: A2A admission. Shape: `admit_tool_subset` in `arbora/a2a/admission.py` becomes `async def admit_tool_subset(request, decider)`. It makes exactly one decider call. It reads the allowed subset from the answer's `action_space.tool_subset`. It makes no separate `AgentAssemble` call. The caller `A2AService.send_message` awaits it. Depends: `ARBORA-A2A-R017.1`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_admission_makes_one_engine_call` (L2) counts decider calls.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017.3
Priority comes from the principal class
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Priority comes from the principal class.** Subsystem: A2A admission. Shape: `priority_for(caller: RequestCaller) -> str` in `arbora/a2a/admission.py`. A `human` principal maps to `interactive`. A `service` principal maps to `orchestration`. The values are the `LeasePriority` names of `MEDULLA-DURABLE-KERNEL` capacity leases. The caller cannot supply a priority, and a metadata key named `priority` is ignored. Any other principal kind raises `PermissionError`. Depends: `ARBORA-A2A-R017.1`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`) → `priority_for`. | Test: `tests/a2a/test_admission.py::test_priority_is_set_from_principal_class` (L1) asserts both mappings and the ignored metadata key.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017.4
A missing budget refuses before the engine call
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**A missing budget refuses before the engine call.** Subsystem: A2A admission. Shape: the first statement of `admit_tool_subset`. When `context_budget_tokens` is null or below 1, it refuses with `CONTEXT_BUDGET_MISSING` and makes no decider call. The wire parameter keeps its existing bounds, 256 to 1,000,000, in `_SendParams`. Depends: `ARBORA-A2A-R017.2`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_missing_budget_refuses_before_engine_call` (L1).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017.5
Admission runs on the send path
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Admission runs on the send path.** Subsystem: A2A admission. Caller chain: `POST /a2a` `message/send` → `_send_message` → `A2AService.send_message` in `arbora/a2a/service.py`. After `router.route` the service awaits `admit_tool_subset`. The call replaces the inline raise in `OrchestratorA2ARouter.route` for a budgeted message. A refused decision raises `A2AAssemblyUnavailable` before `authority.dispatch`. An admitted decision passes `harness_config` and the subset to `WorkItemA2AAuthority.dispatch`. A message with no budget keeps the default-agent path. Depends: `ARBORA-A2A-R017.2`, `ARBORA-A2A-R016.5`. Shape: edits `arbora/a2a/service.py`; types and functions `A2AService.send_message`, `OrchestratorA2ARouter.route`, `A2AAssemblyUnavailable`, `WorkItemA2AAuthority.dispatch`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_service_admission.py::test_send_message_refuses_without_admission` (L3) posts to the real route with a refusing decider and asserts no WorkItem.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R017.6
End-to-end admitted task
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**End-to-end admitted task.** Subsystem: A2A admission. Entry point: `POST /a2a` `message/send` with a context budget. A scripted decider and a loopback engine drive the call. The test asserts one enqueued dispatch whose `harness_config` and allowed subset equal the scripted answer. Depends: `ARBORA-A2A-R017.5`, `ARBORA-A2A-R018.1`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`) → `WorkItemA2AAuthority.dispatch` (`arbora/a2a/authority.py:617`). Shape: edits `arbora/a2a/application.py`, `arbora/a2a/service.py`, `arbora/a2a/admission.py`, `arbora/a2a/authority.py`; types and functions `A2AService.send_message`, `WorkItemA2AAuthority.dispatch`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_admission_e2e.py::test_message_send_enqueues_envelope_with_harness_config` (L3) with tenant context and a cross-tenant refusal.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R018
Cryptographic enforcement via the signed AU envelope
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Cryptographic enforcement via the signed AU envelope.** An admitted tool subset is carried only inside the signed AU `AgentTurnEnvelope`'s allowed-tool-subset field (`MERISTEM-CONTROL-R035`); while that field does not exist in the signed envelope, admission refuses closed with reason `ENVELOPE_LACKS_ALLOWED_TOOL_SUBSET` even given an EG assembly answer. | Proven by a test asserting a request refuses with this reason when the EG answer exists but the envelope carries no allowed-tool-subset field, and admits only once the signed field is present and its signature verified.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R018.1
The dispatch request carries the harness decision reference
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**The dispatch request carries the harness decision reference.** Subsystem: A2A admission. Caller chain: `WorkItemA2AAuthority._enqueue` (`arbora/a2a/authority.py`) → `SignedAgentDispatchPort.enqueue`. `SignedAgentDispatchRequest` in `arbora/api/contracts/agent_control_contracts.py` gains `allowed_tool_subset` (tuple, at most 64 names) and `decision_record_ref`, plus `harness_config_digest` (64 lowercase hex). The engine signs both into the `AgentTurnEnvelope` carrier (`MEDULLA-DURABLE-KERNEL-R750.750.1`). The harness reads the sealed answer by that reference (`MERISTEM-HARNESS-CYCLE-R015.1.1`). Depends: `MEDULLA-DURABLE-KERNEL-R750.750.1`, `MERISTEM-HARNESS-CYCLE-R015.1`. Shape: edits `arbora/a2a/authority.py`, `arbora/api/contracts/agent_control_contracts.py`; types and functions `WorkItemA2AAuthority._enqueue`, `SignedAgentDispatchPort.enqueue`, `SignedAgentDispatchRequest`, `AgentTurnEnvelope`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_authority_envelope.py::test_enqueue_passes_harness_config_reference` (L2) asserts the request fields reach the dispatch port.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R018.2
A dispatch contract without the field refuses
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**A dispatch contract without the field refuses.** Subsystem: A2A admission. Caller chain: `admit_tool_subset`. At composition, `SignedAgentDispatchRequest.model_fields` must contain `decision_record_ref` and `harness_config_digest`. If either is absent, admission refuses with `ENVELOPE_LACKS_HARNESS_CONFIG` even when the engine answered. Depends: `ARBORA-A2A-R018.1`. Shape: types and functions `SignedAgentDispatchRequest.model_fields`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_admission.py::test_envelope_lacking_harness_config_refuses` (L2) swaps in a request model without the fields.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R019
Every admission decision carries a refusal reason and provenance
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Every admission decision carries a refusal reason and provenance.** Subsystem: A2A admission. Code: `ToolSubsetAdmissionDecision` in `arbora/a2a/admission.py`. Every decision has a non-empty `provenance`. A refused decision has `refusal_reason` from `ToolSubsetAdmissionRefusalReason`. An admitted decision has no refusal reason. Depends: `ARBORA-A2A-R016.4`, `ARBORA-A2A-R019.1`. | Test: `tests/a2a/test_admission.py::test_every_decision_has_provenance_and_typed_reason` (L1) iterates all decision paths.
requirementARBORA-A2ASPECIFIED35257e780f7c
tests/a2a/test_admission.py:34
ARBORA-A2A-R019.1
Provenance names the harness decision record
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Provenance names the harness decision record.** Subsystem: A2A admission. Shape: `admit_tool_subset`. An admitted decision sets `provenance` to `eg.decide:harness_config:<decision_record_ref>`. A refused decision sets it to `<operation>:<reason>`, for example `eg.decide:harness_config:abstained`. Depends: `ARBORA-A2A-R017.2`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_provenance_names_harness_decision_record` (L1).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R020
No advisory, cached or partial substitute
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**No advisory, cached or partial substitute.** Subsystem: A2A admission. Code: `admit_tool_subset` holds no cache and no per-request memory. It never returns a subset from an earlier request, an advisory subset or a partial coverage. An incomplete answer refuses through `ARBORA-A2A-R020.1` or `ARBORA-A2A-R020.2`. Depends: `ARBORA-A2A-R017.2`. | Test: `tests/a2a/test_admission.py::test_partial_or_stale_answer_refuses_never_trims` (L1) feeds partial and stale answers.
requirementARBORA-A2ASPECIFIED35257e780f7c
tests/a2a/test_admission.py:53
ARBORA-A2A-R020.1
Abstention refuses and records the named default
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Abstention refuses and records the named default.** Subsystem: A2A admission. Shape: `admit_tool_subset`. When any part of the answer is `Abstained { missing_fact, conservative_default }`, admission refuses with `HARNESS_CONFIG_ABSTAINED`. The decision's `provenance` records each missing fact and default name. Arbora must not apply the default (`MEDULLA-DECISION-ENGINE-R128.3`). Depends: `ARBORA-A2A-R017.2`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_abstention_refuses_and_does_not_apply_default` (L1).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R020.2
Unavailable, stale or partial answers refuse
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Unavailable, stale or partial answers refuse.** Subsystem: A2A admission. Shape: `admit_tool_subset`. Three cases refuse with `HARNESS_CONFIG_UNAVAILABLE`. They are an unreachable engine, a record past its expiry, and an answer without a threshold under a summarizing policy. Expiry is read from the record's `expires_at_ms` field; Arbora compares it with the host clock and holds no default lifetime. Depends: `ARBORA-A2A-R017.2`. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) → `admit_tool_subset` (`arbora/a2a/admission.py:54`). | Test: `tests/a2a/test_admission.py::test_unavailable_stale_or_partial_harness_answer_refuses` (L2).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R021
Fresh checkout runs the admission tests
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Fresh checkout runs the admission tests.** Subsystem: A2A admission, release. The admission tests run with published packages only. They need no private network, sibling checkout or live identity provider. The CI step `a2a-admission-clean-clone` clones the public repository, installs from the package index and runs `pytest tests/a2a/test_admission.py tests/a2a/test_service_admission.py`. Depends: `ARBORA-A2A-R017.6`. Caller chain: the CI workflow step `a2a-admission-clean-clone` (to be added to `.github/workflows/ci.yml`) → `pytest tests/a2a/test_admission.py tests/a2a/test_service_admission.py`. Shape: the code named in this row; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/deployment/test_ci_workflow.py::test_a2a_admission_runs_from_clean_clone` (L1) asserts the step exists. The CI step itself is the proof (L3).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R022
Critique-gated output release
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Critique-gated output release.** Subsystem: A2A output. Caller chain: `POST /a2a` `message/send` → `_send_message` (`arbora/a2a/application.py`) → `HeldItemAdmitter.admit` (`ARBORA-A2A-R006.4`) before the reply is returned. A generated output enters the held state. The engine critique verdict binds to the digest of that exact output (`MEDULLA-DECISION-ENGINE-R038.3`). Only an `admitted` verdict releases it. Missing, mismatched, rejected or abstained evidence leaves the output held and sends nothing. Routing in `OrchestratorA2ARouter.route` cannot satisfy this gate. The row adds no second approval authority. It uses the verified-caller prerequisite `ARBORA-A2A-R006.2` and the signed prerequisites of `ARBORA-A2A-R006.5`. Depends: `ARBORA-A2A-R006.3` to `ARBORA-A2A-R006.8`, `MEDULLA-DECISION-ENGINE-R038.3`. Shape: edits `arbora/a2a/application.py`; types and functions `HeldItemAdmitter.admit`, `OrchestratorA2ARouter.route`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_application.py::test_send_message_holds_output_until_bound_critique_passes` and `::test_send_message_rejects_untyped_preflight_and_failed_critique` (L3) run through the real route.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.2
Run checkpoint and event-cursor binding
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Run checkpoint and event-cursor binding.** Subsystem: A2A durable runs. Caller chain: `message/send` → `arbora/a2a/application.py::_send_message` → `arbora/a2a/service.py` → `arbora/a2a/authority.py::WorkItemA2AAuthority._execute_claimed_run` → new `arbora/a2a/checkpoint.py::EngineHostCheckpoint`. `EngineHostCheckpoint` implements the host checkpoint port of `MERISTEM-BOUNDARY-R043.8`. It writes each checkpoint as one pinned, tenant-scoped engine blob, rehashed on read. It stores the blob locator and `event_seq` in the WorkItem metadata under the lease fence. `event_seq` starts at 0 and rises by 1 for each emitted task event. After a restart, the lease expires, the consumer reclaims the item and passes the port to `AgentRunPort`. Meristem applies the resume (`MERISTEM-BOUNDARY-R043.8`, `MERISTEM-BOUNDARY-R043.9`). Short-term memory is the context history of `ARBORA-A2A-R001.3` with retention `a2a.context_retention_days` (default 30, range 1 to 365, in `~/.config/arbora/config.yaml`). Long-term memory stays in engine memory (`ARBORA-OPS-R844`). A checkpoint of another tenant or run resolves as absent. `MEDULLA-DURABLE-KERNEL-R028.1` supplies the checkpoint pointer and fence. Depends: `ARBORA-A2A-R001.3`, `MERISTEM-RUN-R001.8`, `MEDULLA-DURABLE-KERNEL-R028`. Shape: edits `arbora/a2a/application.py`, `arbora/a2a/service.py`, `arbora/a2a/authority.py`; adds `arbora/a2a/checkpoint.py` (new); types and functions `EngineHostCheckpoint`, `AgentRunPort`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_checkpoint_resume_served.py::test_run_resumes_after_restart_with_same_cursor` (served). It kills the host mid-run, restarts, and asserts resume from the last checkpoint and a gap-free `event_seq`.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R010.1
Opt-in committed terminal point read
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Opt-in committed terminal point read.** `tasks/get` and the shared MCP get action may request `includeCommittedEvent`. After existing task ownership admission, read AU RunClient.outcome through the current verified graph session. Validate the EG terminal record against tenant, graph, task and terminal outcome; revalidate caller authority after the read. Project only safe committed identity and result references. Missing or legacy producer data is explicitly unavailable. Never enable streaming, fabricate cursors or copy an event log. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_get_task` (`arbora/a2a/application.py:201`) → `A2AService.get_task` (`arbora/a2a/service.py:71`) → `WorkItemA2AAuthority._attach_terminal_event` (`arbora/a2a/authority.py:995`). Shape: `_GetTaskParams` (`arbora/a2a/application.py`) and `_attach_terminal_event` (`arbora/a2a/authority.py`); terminal projection in `arbora/a2a/terminal_event.py`. | Tests exercise shared service and HTTP parameter dispatch, valid readback, foreign bindings, stale caller, malformed producer records and zero reads for unauthorized tasks. Real native producer acceptance remains MEDULLA-DURABLE-KERNEL-R028.2; full lifecycle streaming stays under R010. Test: `tests/a2a/test_terminal_event.py::test_shared_service_opt_in_reads_public_au_run_client`.
requirementARBORA-A2AVERIFIED9bd22960a7ea
cbe00a4bbd43
tests/a2a/test_terminal_event.py:61
ARBORA-A2A-R001.3
Served agent keeps and lists caller conversations
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served agent keeps and lists caller conversations.** Subsystem: served A2A application. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/host_bindings.py::mount_sdk_a2a` → `arbora/a2a/sdk_app.py``::create_admitted_a2a_app` → new `arbora/a2a/storage.py::EngineA2AStorage`. Replace `InMemoryStorage()` and `InMemoryBroker()` in `mount_sdk_a2a` with `EngineA2AStorage`. It implements the SDK storage protocol over the engine KV methods `eg.storage.KvPut`, `KvGet`, `KvScan` and `KvCas`. Keys are `a2a/<tenant>/<principal>/<context_id>/...`. The storage stores tasks and context history. Retention follows `a2a.context_retention_days` of `ARBORA-A2A-R001.2`. The served app serves `tasks/list` for the verified caller only, newest first. Pages hold 50 entries (maximum 100). Each entry has `contextId`, `updated_at` and a title. The title is the first user text, cut to 80 characters. A `contextId` sent after a restart continues that context. A foreign `contextId` refuses with JSON-RPC `-32001` (not found). Depends: `ARBORA-A2A-R001`, SCION-CENTRALIZED-CAPABILITIES-R017.1. Shape: edits `arbora/api/invoke/pipeline.py`, `arbora/host_bindings.py`, `arbora/a2a/sdk_app.py`; adds `arbora/a2a/storage.py` (new); types and functions `EngineA2AStorage`, `KvGet`, `KvScan`, `KvCas`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: (planned) `tests/a2a/test_served_agent.py::test_context_survives_restart_and_list_is_caller_scoped` (served). It restarts between two turns, lists only the caller's contexts and refuses a foreign `contextId`.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.4
Served agent refuses streaming by type until served
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served agent refuses streaming by type until served.** Subsystem: served A2A application. Caller: `message/stream` → the guard → `arbora/a2a/sdk_app.py``::AdmittedA2AApp.__call__` (JSON-RPC guard). While streaming is unserved, the guard answers `message/stream` and `tasks/resubscribe` with the typed JSON-RPC error `-32010` (HTTP 501). This is the code of `A2AStreamingUnavailable` in `arbora/a2a/application.py`. It never lets fasta2a answer HTTP 500. The card advertises `capabilities.streaming: false`. Serving streams is the child `.1`. Depends: `ARBORA-A2A-R001.1`. | Test: `tests/a2a/test_served_agent.py::test_stream_methods_refused_by_type_not_500` (served). It expects `-32010` for both methods and zero tasks created.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.4.1
Served agent streams turn events
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served agent streams turn events.** Subsystem: served A2A application. Caller chain: `message/stream` → `arbora/a2a/sdk_app.py::AdmittedA2AApp` → SDK stream handler. After `ARBORA-A2A-R001.2` serves the event cursor, `message/stream` emits A2A events in order. The order is answer text deltas, each tool call with name and arguments, and each tool result. The final task state comes last. Each event carries `event_seq`. `tasks/resubscribe` replays from `after_seq`. Arguments and results pass the content redactor of `ARBORA-OPS-R042.3` first. The card then advertises `streaming: true`. A slow consumer is cut at `a2a.stream_buffer_events` (default 256, range 16 to 4096, in `~/.config/arbora/config.yaml`) with `-32010`. Depends: `ARBORA-A2A-R001.2`, `ARBORA-A2A-R001.4`, SCION-CENTRALIZED-CAPABILITIES-R017.2. Shape: edits `arbora/a2a/sdk_app.py`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_served_agent.py::test_stream_emits_delta_tool_call_result_final_in_order` (served). A resubscribe from a cursor replays the tail.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5
Served agent accepts file parts
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Served agent accepts file parts.** Subsystem: served A2A application. Caller: `message/send` and `message/stream` → `arbora/a2a/sdk_app.py``::AdmittedA2AApp` → new `arbora/a2a/parts.py::admit_file_parts`. `admit_file_parts` runs before any task is created. It accepts A2A `file` parts that carry bytes and a media type. Allowed types: `image/png`, `image/jpeg`, `image/webp`, `text/plain`, `text/markdown`. Size limit: `a2a.max_file_part_bytes` in `~/.config/arbora/config.yaml`, default 5,242,880, range 1,024 to 33,554,432. At most 8 parts per message. Image parts also pass `ARBORA-A2A-R001.5.2`. Accepted parts pass to the agent as model input. A refusal is JSON-RPC `-32602` with reason `file_part_type_unsupported`, `file_part_too_large` or `file_part_count`. Depends: `ARBORA-A2A-R001.5.2`. | Test: `tests/a2a/test_served_agent.py::test_png_part_reaches_model_input_and_oversize_creates_no_task` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.6
Non-blocking `message/send`
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Non-blocking `message/send`.** `message/send` accepts the A2A `configuration` object with `blocking`, `acceptedOutputModes` and `historyLength`; any other configuration field is refused as invalid params before admission. When `configuration.blocking` is `false`, arbora admits the durable task and answers at once with the task in `submitted` or `working` state. The run continues under the admitted task and the caller's verified session, and the caller follows it with `tasks/get`. A run must not hold the request open past the client's read timeout. Without `configuration.blocking`, or with `blocking: true`, `message/send` answers with the completed task. `message/stream` stays refused by type under `ARBORA-A2A-R001.4`. Consumer: `TUIG-RUNTIME-R012.1`, which must send `blocking: false` for a turn that can outlive its read timeout. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` (`arbora/a2a/application.py:184`) → `A2AService.send_message(blocking=...)` (`arbora/a2a/service.py:37`). Shape: `_SendConfiguration` and `_send_message` in `arbora/a2a/application.py`; the `blocking` argument of `A2AService.send_message`. | `tests/a2a/test_nonblocking_send.py` runs a 31 s turn over the served HTTP route: `message/send` answers in under 5 s with a non-terminal task, and `tasks/get` follows the task to `completed`. An absent, empty or `blocking: true` configuration answers completed. An unknown configuration field creates zero tasks. Test: `tests/a2a/test_nonblocking_send.py::test_non_blocking_send_outlives_the_client_read_timeout`.
requirementARBORA-A2AVERIFIED03988c246133
tests/a2a/test_nonblocking_send.py:108
tests/a2a/test_nonblocking_send.py:148
tests/a2a/test_nonblocking_send.py:175
ARBORA-A2A-R001.5.1
Bounded inline text input
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Bounded inline text input.** Accept inline base64 UTF-8 text/plain files through the shared served message service, with at most eight files, 65,536 aggregate decoded bytes and the configured upload limit. Preserve text routing and authorization; refuse malformed input before tasks. Caller chain: `POST /a2a` → `json_rpc` in `create_a2a_handlers` (`arbora/a2a/application.py:492`) → `_unary_request` → `_invoke_method` (`arbora/a2a/application.py:262`) → `_send_message` → `A2AService.send_message` (`arbora/a2a/service.py:37`) (attachment size check at `arbora/a2a/service.py:49`). Shape: Attachment checks in `A2AService.send_message` (`arbora/a2a/service.py`) and `A2AMessage.attachment_size` (`arbora/a2a/models.py`). | Served HTTP model-input observation and zero-task refusal tests. Test: `tests/a2a/test_inline_text_input.py::test_inline_text_files_are_bounded_and_oversize_creates_no_task`.
requirementARBORA-A2AVERIFIED319e3e4c8516
6794ac7c41af
tests/test_agents_run_end_to_end.py:177
ARBORA-A2A-R001.5.2
Selected-model binary input
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Selected-model binary input.** Subsystem: served A2A application. Caller chain: `message/send` → `arbora/a2a/parts.py::admit_file_parts` → `arbora/a2a/routing.py` selected-model read. For an image part, `admit_file_parts` reads the selected model's media capability from the routing decision (MEDULLA-DECISION-ENGINE-R815). It reads the `accepts_media` entries `{media_type, max_bytes}` and the `model_revision`. The part passes only in three conditions. The media type is listed. The size is within `max_bytes`. The request's model revision equals the capability revision. Unknown capability returns `UNAVAILABLE` with reason `media_capability_unknown`. A stale revision returns `POLICY_DENIED` with reason `media_capability_stale`. Admission and the first WorkItem submit are one atomic step: any refusal creates zero tasks. Depends: MEDULLA-DECISION-ENGINE-R815. Shape: edits `arbora/a2a/routing.py`; adds `arbora/a2a/parts.py` (new); types and functions `UNAVAILABLE`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_served_agent.py::test_capable_model_accepts_png_and_unknown_stale_oversize_create_no_task` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5.3
Verify image content against the declared type
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Verify image content against the declared type.** Subsystem: served A2A application. Caller chain: `message/send` and `message/stream` -> `arbora/a2a/parts.py::admit_file_parts` (new in R001.5). For each image part, `admit_file_parts` checks the leading signature of the decoded bytes. The signature must match the declared `image/png`, `image/jpeg` or `image/webp`. A mismatch is JSON-RPC `-32602` with reason `file_part_type_mismatch`. The check runs before any task exists. Shape: `admit_file_parts` in `arbora/a2a/parts.py` calls a new `sniff_image_type` helper in the same module; it reuses the `A2AMessage` part model in `arbora/a2a/models.py`. Depends: `ARBORA-A2A-R001.5`. | Test: `tests/a2a/test_media_admission.py::test_mismatched_signature_is_refused_with_zero_tasks` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5.4
Limit images per request
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Limit images per request.** Subsystem: served A2A application. Caller chain: `admit_file_parts`, after the per-part checks in `ARBORA-A2A-R001.5`. The request must not exceed `a2a.max_request_media_bytes` of decoded media (default 20,971,520, range 1,024 to 134,217,728). It must not exceed `a2a.max_image_parts` image parts (default 4, range 1 to 8). A breach is JSON-RPC `-32602` with reason `request_media_too_large` or `image_part_count`. Both defaults are starting values; a measurement replaces them. Any breach creates zero tasks. Shape: limits live in the `parts.py` limit table that reads `~/.config/arbora/config.yaml` as `A2AService` already does (`arbora/a2a/service.py`); no second config reader. Depends: `ARBORA-A2A-R001.5`. | Test: `tests/a2a/test_media_admission.py::test_request_byte_and_image_count_limits_refuse_with_reasons` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5.5
Carry image bytes inline or by upload reference
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Carry image bytes inline or by upload reference.** Subsystem: served A2A application. A part under `a2a.inline_media_max_bytes` (default 1,048,576) may carry inline base64 bytes. A larger part must carry a reference `media:sha256:<hex>` in the `uri` field. The caller obtains the reference from the served operation `a2a.media.upload`, which stores the bytes by digest and returns `{digest, media_type, bytes, expires_at}`. A reference is bound to the caller and tenant, and expires after `a2a.media_ref_ttl_seconds` (default 3,600). `admit_file_parts` resolves the reference, re-checks the digest and size, then applies every other check. Refusals are `media_ref_unknown`, `media_ref_expired` and `media_ref_forbidden`. Arbora never fetches a network address. Caller chain: `message/send` -> `admit_file_parts` -> new `resolve_media_ref` in `arbora/a2a/parts.py`; upload: registered op `a2a.media.upload` (new, `arbora/api/ops/`) -> `store_media` port. Shape: `parts.py` plus a closed `MediaRef` pydantic model in `arbora/a2a/models.py`; the store sits behind a port, not in Arbora. Open question: Arbora holds no store. The owner must name the Medulla row that stores content-addressed bytes. This row stays blocked until that row exists. Depends: `ARBORA-A2A-R001.5.3`, `ARBORA-A2A-R001.5.4`. | Test: `tests/a2a/test_media_admission.py::test_upload_reference_resolves_for_owner_and_refuses_foreign_expired_unknown` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5.6
Serve the effective media limits to clients
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Serve the effective media limits to clients.** Subsystem: served A2A application. Caller chain: `GET /.well-known/agent-card.json` -> card builder in `arbora/a2a/application.py`. The card for an authorized caller lists allowed media types, the per-part limit, the request limit, the image count limit and the inline threshold. It also lists the selected model's `accepts_media` entries from `ARBORA-A2A-R001.5.2`. A client reads these values before send and sets no limit of its own. The card lists only values the admission code enforces. Shape: the card builder in `arbora/a2a/application.py` reads the same limit table as `admit_file_parts` in `arbora/a2a/parts.py`, so one table feeds both. Depends: `ARBORA-A2A-R001.5.2`, `ARBORA-A2A-R001.5.4`, `ARBORA-A2A-R001.5.5`. | Test: `tests/a2a/test_media_admission.py::test_card_media_limits_equal_enforced_limits` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5.7
Hand admitted images to the run with the capability and fallback mode
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Hand admitted images to the run with the capability and fallback mode.** Subsystem: run dispatch. Caller chain: `A2AService.send_message` (`arbora/a2a/service.py:37`) -> work-item submit -> the AU run request. Admitted images pass as inline binary `attachments`. The request carries `input_media_types` from the selected model's capability in `ARBORA-A2A-R001.5.2`. It also carries the received `media_fallback` mode (`refuse` or `text_placeholder`). A typed AU refusal returns to the caller as a task failure with the AU reason code. A fallback result keeps `media_fallback` in the task metadata with the count. Arbora never drops an image silently. Shape: edits `A2AService.send_message` (`arbora/a2a/service.py`) and the run-request builder in `arbora/a2a/work_items.py`; reuses the `accepts_media` read from `arbora/a2a/routing.py`. Open question: the Medulla decision does not yet carry `media_fallback`. Until it does, Arbora passes `refuse`. Depends: `ARBORA-A2A-R001.5.2`, MERISTEM-RUN-R017.2, MERISTEM-RUN-R017.5. | Test: `tests/a2a/test_media_admission.py::test_run_request_carries_attachments_capability_and_fallback_mode` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.5.8
Hot-path proof for image admission
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Hot-path proof for image admission.** The proof enters at `POST /a2a` `message/send` with a PNG part. It observes the AU run request through the wired call site in `A2AService.send_message`. Caller chain: `POST /a2a` -> `json_rpc` (`arbora/a2a/application.py:492`) -> `A2AService.send_message` (`arbora/a2a/service.py:37`) -> run request. Shape: one test module, `tests/a2a/test_media_admission.py`, reusing the served-app fixture in `tests/a2a/`. The proof also covers one upload-reference journey and one refusal per reason in `ARBORA-A2A-R001.5.3` to `ARBORA-A2A-R001.5.5`. A unit test of `admit_file_parts` alone does not prove this row. Depends: `ARBORA-A2A-R001.5.7`. Consumed by: TUIG-RUNTIME-R012.5.2.6, which proves the terminal side. | Test: `tests/a2a/test_media_admission.py::test_png_message_send_reaches_run_request_end_to_end` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R001.7
Outbound A2A peer registry served as operations
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Outbound A2A peer registry served as operations.** Subsystem: arbora, A2A client registry. Entry points: the served operations `a2a.peer.register`, `a2a.peer.delete` and `a2a.peer.list`. Caller chain: the registry in `arbora/api/ops/registry_factory.py` registers the new module `arbora/api/ops/a2a_peers.py`, served over HTTP at `POST /api/v1/ops/{op_id}` and over MCP. Peers persist in `~/.config/arbora/a2a_peers.yml` under the key `peers`. A peer holds `name`, `endpoint`, `card_digest`, `skills`, `credential_ref` and `refreshed_at`. Register replaces the record with the same name. List returns peers in name order. A refresh that changes `card_digest` appends a revision with the caller and time, and keeps the newest 50. Refusals: `PEER_CREDENTIAL_VALUE` for a record that holds a credential value. `PEER_ENDPOINT_INSECURE` for an endpoint that is not `https` outside loopback. A lookup of 10,000 peers finishes within 200 microseconds at p99. Moved from `MEDULLA-DURABLE-KERNEL-R851`. Shape: edits `arbora/api/ops/registry_factory.py`; adds `arbora/api/ops/a2a_peers.py` (new); reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_peer_registry_served.py::test_register_refresh_list_delete_through_invoke` (served, HTTP and MCP) registers, refreshes, lists and removes a peer. It asserts both refusals and the revision history. It runs one cross-tenant negative case.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R002.2.3.3
Original-caller authority resolver
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Original-caller authority resolver.** Subsystem: tool-task delivery. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/tool_task_consumer.py``::ToolTaskConsumer.run` → new `arbora/a2a/caller_authority.py::resolve_original_caller`. At admission, the WorkItem metadata stores `authority_ref`, an engine delegation record: tenant, principal, granted tool, `expires_at`. arbora stores no credential. Before effects, `resolve_original_caller` reads that record from the engine (MEDULLA-IDENTITY-R701). It confirms three facts. The principal is active. The record is unexpired and unrevoked. The principal still holds the tool's scope. Otherwise the item commits `succeeded=False` with reason `caller_authority_revoked` or `caller_authority_expired`, zero connector calls, and is acknowledged. The effect runs under the service executor acting for that principal. Depends: `ARBORA-A2A-R002.2.3`, MEDULLA-IDENTITY-R701. Shape: edits `arbora/api/invoke/pipeline.py`; adds `arbora/a2a/tool_task_consumer.py`, `arbora/a2a/caller_authority.py` (new); reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_task_served.py::test_revoked_caller_makes_no_effect_and_is_acknowledged` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R002.2.3.4
Uncertain-effect reconciliation
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Uncertain-effect reconciliation.** Subsystem: tool-task delivery. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/tool_task_consumer.py``::ToolTaskConsumer.reconcile` → `ToolTaskDispatcher.lookup`. Before the effect, the consumer writes an `effect_started` marker in the WorkItem metadata under the lease fence. A claimed item with the marker and no result is uncertain. The consumer never runs it again. It calls `ToolTaskDispatcher.lookup(job_id)`, which asks the connector for the outcome keyed by the job id. A proven outcome commits and is acknowledged. An unproven outcome leaves the item open and unacknowledged. The consumer emits the event `tool_task_uncertain` every `a2a.tool_task.reconcile_interval_s` (default 30, range 5 to 3600). Depends: `ARBORA-A2A-R002.2.3`. Shape: edits `arbora/api/invoke/pipeline.py`; adds `arbora/a2a/tool_task_consumer.py` (new); types and functions `ToolTaskDispatcher.lookup`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_task_served.py::test_crash_after_effect_reconciles_without_repeat` (served). The connector fake counts one execution.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R002.2.3.5
Duplicate delivery is idempotent
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Duplicate delivery is idempotent.** Subsystem: tool-task delivery. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/tool_task_consumer.py``::ToolTaskConsumer.run`. A second delivery of one job id finds the item settled or claimed. It returns the stored receipt reference for a settled item and skips a claimed item. The connector sees one execution per job id. Depends: `ARBORA-A2A-R002.2.3`. Shape: edits `arbora/api/invoke/pipeline.py`; adds `arbora/a2a/tool_task_consumer.py` (new); reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_tool_task_served.py::test_duplicate_delivery_executes_once` (served).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R013.1
Model and registration of a push target
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Model and registration of a push target.** Subsystem: A2A tasks. Caller chain: `POST /a2a` method `tasks/pushNotificationConfig/set` → `_invoke_method` → `A2AService.set_push_target` (new). Shape: `A2APushTarget(task_id, url, token_ref)` in `arbora/a2a/models.py`. The URL must be `https` and at most 2048 characters. It must not resolve to a private address unless config `A2A_PUSH_ALLOWED_PRIVATE_HOSTS` lists its host (default empty). The token is a secrets-backend reference, never a value. Registration stores the target in the task WorkItem metadata through `CasWorkItemMetadata`. Refusals: `PUSH_URL_INVALID` and `PUSH_TARGET_PRIVATE`, as JSON-RPC code -32602. The method needs scope `kg:write`. Depends: none. | Test: `tests/a2a/test_push_delivery.py::test_registration_refuses_private_and_non_https_targets` (L2) and a cross-tenant refusal (L3).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R013.2
Delivery worker with bounded retry and dead letter
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Delivery worker with bounded retry and dead letter.** Subsystem: A2A tasks. Caller chain: host bootstrap `arbora/mcp_server/composition.py` → `CoServiceSupervisor.start_service('a2a-push', ...)` → `arbora/a2a/push.py::PushDeliveryWorker.run` (new). On each terminal task transition the authority submits one `a2a_push` WorkItem per target, keyed by task id, state and target. The worker claims it, posts the A2A task JSON with the bearer token resolved from the reference, and commits success. On failure it calls `DeferWorkItem` with delay `min(base * 2^attempt, cap)`. Config keys: `A2A_PUSH_MAX_ATTEMPTS` default 5 [1, 20]. `A2A_PUSH_BACKOFF_BASE_S` default 5 [1, 300] s. `A2A_PUSH_BACKOFF_CAP_S` default 600 [5, 3600] s. `A2A_PUSH_TIMEOUT_S` default 10 [1, 60] s. After the last attempt the worker commits the WorkItem as failed with reason `PUSH_DEAD_LETTER`. It logs the target host without the URL path. Depends: `ARBORA-A2A-R013.1`, `MEDULLA-DURABLE-KERNEL-R072`. Shape: edits `arbora/mcp_server/composition.py`; adds `arbora/a2a/push.py` (new); types and functions `DeferWorkItem`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_push_delivery.py::test_failed_delivery_defers_then_dead_letters` (L2) asserts the delays and the dead-letter commit against a fake target.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R013.3
Advertise push only when the worker runs
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Advertise push only when the worker runs.** Subsystem: A2A tasks, composition. Caller chain: `arbora/a2a/composition.py::compose_a2a` builds `PushDeliveryWorker` and passes it as `push_notification_authority` to `A2AAgentCapabilities.from_wired_authorities`. `A2AService` gains a `capabilities` field that `agent_card` copies into the card. `PushDeliveryWorker` implements `register_push_target(task_id, target_url)` of `A2APushNotificationAuthority`. Without the worker the card keeps `pushNotifications` false. Depends: `ARBORA-A2A-R013.2`, `ARBORA-A2A-R009.1`. Shape: edits `arbora/a2a/composition.py`; types and functions `PushDeliveryWorker`, `A2AAgentCapabilities.from_wired_authorities`, `A2AService`, `A2APushNotificationAuthority`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_agent_card.py::test_push_capability_follows_wired_worker` (L2).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R013.4
Hot-path proof: pending pushes survive a restart
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Hot-path proof: pending pushes survive a restart.** Subsystem: A2A tasks. Entry point: `message/send` then a terminal transition, with a registered push target. The test stops the host after the WorkItem is submitted, restarts it, and observes one delivery. A second target that always fails reaches `PUSH_DEAD_LETTER` after `A2A_PUSH_MAX_ATTEMPTS` attempts. Depends: `ARBORA-A2A-R013.2`. Caller chain: `message/send` → terminal transition → `PushDeliveryWorker.run` (`arbora/a2a/push.py`, new) started by `CoServiceSupervisor`. Shape: adds `arbora/a2a/push.py` (new); types and functions `PushDeliveryWorker.run`, `CoServiceSupervisor`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_push_delivery_served.py::test_push_survives_restart_and_dead_letters` (L3) against a real engine binary, with a cross-tenant refusal.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R016.6
Caller model preference is a request the engine decides
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Caller model preference is a request the engine decides.** Subsystem: A2A admission. Caller chain: `message/send` → `A2AService.send_message` → `arbora/a2a/admission.py::resolve_model_profile` (replaces `refuse_model_profile_preference`). A caller may name a profile in message metadata key `arboraModelProfile`. Arbora decides nothing. It sends the preference to the engine `Decide` route question of `MEDULLA-DECISION-ENGINE-R039.3`, which returns the profile used or `PREFERENCE_NOT_LEGAL`. The task metadata key `a2a_model_profile` records the profile used and `a2a_preference_honoured` records true or false. A read operation `models.list` (`ARBORA-OPS-R878`) lists the profiles the caller may prefer, with display name and provider. Refusals: the existing `ModelProfileRefusalReason` values stay. Depends: `MEDULLA-DECISION-ENGINE-R039.3`, `ARBORA-OPS-R878`, `ARBORA-A2A-R016.5`. Shape: edits `arbora/a2a/admission.py`; types and functions `A2AService.send_message`, `Decide`, `ModelProfileRefusalReason`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_model_profile_boundary.py::test_preference_allowed_disallowed_absent` (L3) covers the three cases against a loopback engine.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R023
Inbound A2A tasks route through the medulla `A2aRoute` decision
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Inbound A2A tasks route through the medulla `A2aRoute` decision.** Subsystem: A2A routing. Caller chain: `POST /a2a` `message/send` → `A2AService.send_message` → `OrchestratorA2ARouter.route` (`arbora/a2a/routing.py`) → engine `Decide` with `QuestionKind::A2aRoute` and param `a2a.requested_graph_id`. The router takes the requested id from `metadata.agent_name`. It dispatches only to the graph that the sealed record names. An abstention (`A2A_GRAPH_UNKNOWN`, `A2A_REQUEST_MISSING`) refuses the task with JSON-RPC code -32003. A message with no agent name keeps the fleet default agent (`FLEET_AGENT_NAME`) and makes no decision call. Evidence: the router stores `decision_record_ref` in the task metadata. Depends: `MEDULLA-DECISION-ENGINE-R044.2.2`. Shape: edits `arbora/a2a/routing.py`; types and functions `A2aRoute`, `A2AService.send_message`, `OrchestratorA2ARouter.route`, `Decide`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_routing.py::test_task_routes_through_a2a_route_decision` (L3) submits to a known graph and an unknown graph. It asserts dispatch and refusal against a loopback engine.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R024
Hub federation forwards topic messages to a registered peer
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Hub federation forwards topic messages to a registered peer.** Stage: A2A server job. Caller chain: the A2A server reads a message group with `topic.read` (`MEDULLA-DURABLE-KERNEL-R850.3`). It forwards the group to a peer hub and appends the reply with `topic.append`. Peers come from `MEDULLA-DURABLE-KERNEL-R851` (`peer.list`). The forwarding scope is the intersection of the caller's topic scope and the peer's registered scope. A wider peer scope is refused with `FEDERATION_SCOPE_WIDER`. The transport and its retries belong to arbora; medulla stores only the topic log and the peer record. Writes: medulla `topic.append` only. Depends: `MEDULLA-DURABLE-KERNEL-R850.3`, `MEDULLA-DURABLE-KERNEL-R851.3`. Shape: the code named in this row; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_hub_federation_served.py::test_forward_respects_peer_scope` runs the A2A server against a loopback peer and a recorded medulla engine.
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-A2A-R025
Admit anonymous chat under the text-only constraint
Definition — ARBORA-A2A / ARBORA-A2A — A2A projection, streaming, history and tool-subset admissionCanonical requirement and verification source
**Admit anonymous chat under the text-only constraint.** Entry: anonymous chat over HTTP. Caller chain: `arbora/a2a/anonymous_send.py` admits the request, then passes the text-only plan to `meristem.graph.executor.iterate_run`. Arbora owns admission, model selection and the limits `anonymous.max_output_tokens` and `anonymous.max_inflight`. Refusals: `ANON_ADMISSION_DENIED`, `ANON_INFLIGHT_EXCEEDED`. Consumer: `MERISTEM-BOUNDARY-R043.13`. Shape: edits `arbora/a2a/anonymous_send.py`; reuses the existing `A2AService` (`arbora/a2a/service.py`) and `WorkItemA2AAuthority` (`arbora/a2a/authority.py`) ports. | Test: `tests/a2a/test_anonymous_send.py::test_text_only_plan_admitted_and_limited` (served HTTP).
requirementARBORA-A2ASPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE
ARBORA-ACCEPTANCE — evidence acceptance freeze
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R001
Typed acceptance-evidence model and freeze-gap checker
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Typed acceptance-evidence model and freeze-gap checker.** Arbora ships a typed model of the three evidence kinds a requirement needs for `ACCEPTED` (`merged_head`, `test`, and operational `consumer`/`release`, all at the same commit) and a checker that, given a spec's `status.json`, lists every `LANDED`/`CLOSED` requirement missing one or more of those kinds at its `merged_head` commit. | A unit test against a fixture `status.json` asserts the checker reports exactly the gapped requirement IDs with their missing evidence kind names, and a refusal test asserts a malformed or missing `status.json` raises rather than reporting a false pass.
requirementARBORA-ACCEPTANCEVERIFIED57cb99978975
a5951682d6da
f5fc3630a949
f62a4e2e39ed
tests/test_check_acceptance_evidence.py:177
tests/test_check_acceptance_evidence.py:83
tests/test_check_acceptance_evidence.py:99
ARBORA-ACCEPTANCE-R001.1
implement the typed EvidenceRecord/RequirementGap model and gaps_for_status/load_status functions plus the standalone CLI entry point in scripts/check_acceptanc
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**implement the typed EvidenceRecord/RequirementGap model and gaps_for_status/load_status functions plus the standalone CLI entry point in scripts/check_acceptanc.** Child slice of `ARBORA-ACCEPTANCE-R001` (see tasks.md). Caller chain: `python3 scripts/check_acceptance_evidence.py [status.json ...]` → `main` (`scripts/check_acceptance_evidence.py:195`) → `load_status` (line 46) → `gaps_for_status` (line 170) → `gaps_for_requirement` (line 112). Shape: `EvidenceRecord`, `RequirementGap` and `AcceptanceEvidenceError` in `scripts/check_acceptance_evidence.py`; reuse `EVIDENCE_KINDS` of `scripts/check_public_specs.py` and add no second schema. | A unit test against a fixture status.json asserts the checker reports exactly the gapped requirement IDs with their missing evidence kind names, and a refusal test asserts a malformed or missing status.json raises rather than reporting a false pass Test: `tests/test_check_acceptance_evidence.py::test_landed_requirement_missing_test_and_operational_is_reported` and `tests/test_check_acceptance_evidence.py::test_load_status_refuses_invalid_json`.
requirementARBORA-ACCEPTANCEVERIFIED57cb99978975
f5fc3630a949
tests/test_check_acceptance_evidence.py:99
ARBORA-ACCEPTANCE-R002
Auditor distinct from delivery lane
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Auditor distinct from delivery lane.** A requirement's `acceptance_state` moves from `NOT_AUDITED` to `ACCEPTED` only in a change where the reviewing identity differs from the author of the `merged_head` commit it cites, and only after `ARBORA-ACCEPTANCE-R001`'s checker reports no gap for that requirement. Caller chain: the change review of a `status.json` edit → `validate_review_trail` (`scripts/check_acceptance_evidence.py:137`) → `gaps_for_status` (line 170). Shape: `ReviewDecision` (line 128) holds `requirement_id`, `auditor_identity`, `merged_head_author` and `checker_reported_gap`; `validate_review_trail` raises `AcceptanceEvidenceError`; wiring into the pull-request review convention is a separate task. | A review-trail test over a sample `status.json` edit asserts the recorded auditor identity differs from the cited commit's author, and that the checker was run (or its report attached) before the state flip. Test: `tests/test_check_acceptance_evidence.py::test_review_trail_refuses_same_identity_auditor`, `tests/test_check_acceptance_evidence.py::test_review_trail_refuses_when_checker_still_reports_gap` and `tests/test_check_acceptance_evidence.py::test_review_trail_accepts_distinct_auditor_with_no_gap`.
requirementARBORA-ACCEPTANCEVERIFIEDa5951682d6da
f62a4e2e39ed
tests/test_check_acceptance_evidence.py:219
tests/test_check_acceptance_evidence.py:232
tests/test_check_acceptance_evidence.py:245
ARBORA-ACCEPTANCE-R003
Evidence is append-only
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Evidence is append-only.** Once an evidence entry is recorded for a requirement, its `kind`, `commit`, `result`, and `url` fields are never rewritten in place; a correction is a new appended entry, and the checker only honors entries matching the requirement's current `merged_head` commit. Caller chain: the change review of a `status.json` edit → `evidence_is_append_only` (`scripts/check_acceptance_evidence.py:157`). Shape: `evidence_is_append_only(old_evidence, new_evidence)` compares each existing entry by position and returns False on any rewrite or shrink; reuse the evidence list shape of `EvidenceRecord`. | A regression test diffs two revisions of the same `status.json` and fails if any existing evidence entry's fields changed rather than a new entry being appended. Test: `tests/test_check_acceptance_evidence.py::test_evidence_append_only_accepts_pure_appends` and `tests/test_check_acceptance_evidence.py::test_evidence_append_only_rejects_rewrite_in_place`.
requirementARBORA-ACCEPTANCEVERIFIEDa5951682d6da
f62a4e2e39ed
tests/test_check_acceptance_evidence.py:256
tests/test_check_acceptance_evidence.py:264
ARBORA-ACCEPTANCE-R004
Operational evidence tracks the current commit, not a stale one
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Operational evidence tracks the current commit, not a stale one.** A `consumer` or `release` receipt satisfies the `ACCEPTED` gate only when recorded against the requirement's current `merged_head` commit; a receipt recorded against a superseded commit is treated as missing. Caller chain: `python3 scripts/check_acceptance_evidence.py [status.json ...]` → `main` (`scripts/check_acceptance_evidence.py:195`) → `load_status` (line 46) → `gaps_for_status` (line 170) → `gaps_for_requirement` (line 112). Shape: `_missing_kinds_for_commit` (line 100) counts a `consumer` or `release` entry only when its commit equals `_merged_head_commit` (line 90); reuse both helpers. | A fixture test moves a requirement's `merged_head` forward without a fresh operational receipt and asserts the checker reports the operational-evidence kind as missing again. Test: `tests/test_check_acceptance_evidence.py::test_stale_operational_evidence_against_newer_merged_head_is_missing`.
requirementARBORA-ACCEPTANCEVERIFIEDa5951682d6da
f62a4e2e39ed
tests/test_check_acceptance_evidence.py:139
ARBORA-ACCEPTANCE-R005
Checker is the only path to an `ACCEPTED` report
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Checker is the only path to an `ACCEPTED` report.** The acceptance-evidence checker is runnable standalone (as a script or an importable module) against any spec directory under `specs/`, producing a deterministic, machine-parseable gap report with no network or live-cluster dependency. Caller chain: `python3 scripts/check_acceptance_evidence.py [status.json ...]` → `main` (`scripts/check_acceptance_evidence.py:195`) → `load_status` (line 46) → `gaps_for_status` (line 170) → `gaps_for_requirement` (line 112). Shape: `_discover_status_files` (line 185) lists every `specs/*/status.json`; `_format_gap` (line 189) prints one deterministic line per gap; the script reads files only and opens no network connection. | A CLI invocation test runs the checker against each tracked spec's `status.json` offline and asserts exit code and report shape are deterministic across two consecutive runs. Test: `tests/test_check_acceptance_evidence.py::test_main_discovery_mode_is_deterministic_across_runs`.
requirementARBORA-ACCEPTANCEVERIFIEDa5951682d6da
f62a4e2e39ed
tests/test_check_acceptance_evidence.py:272
ARBORA-ACCEPTANCE-R006
Concept-proof scenarios define done for each delivery phase (rollup)
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Concept-proof scenarios define done for each delivery phase (rollup).** A phase is done only when its scenario passes on `main`. Each scenario enters through the public arbora boundary and leaves a durable `ScenarioRun` record in medulla (`MEDULLA-SDLC-R013`). Each phase's release bundle completes when its rows are VERIFIED and the scenario passes (`PIPE-RELEASE-R020`). Children `.1`–`.4` and `.7` define phases P1–P5. Every family that no earlier scenario exercises is phase P5 and waits for P4. Phase P5 is done when `.7` passes. | Each child names its scenario test. The nightly scenario job (`PIPE-RELEASE-R020`) runs every scenario on `main`.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.1
P1 scenario: the minimal closed loop on one node
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P1 scenario: the minimal closed loop on one node.** Steps: 1. Principal A of tenant T authenticates (`ARBORA-IDENTITY`). A calls the served `memory.remember` operation (`MEDULLA-DECISION-ENGINE-R651`). The claim commits before the acknowledgement, with actor, source, time and confidence (`MEDULLA-DURABLE-KERNEL-R078`). 2. A run for principal B of tenant T starts through `meristem.graph.execute_graph` (`MERISTEM-HARNESS-CYCLE-R001`). It retrieves through the served `RetrievalRound` (`MEDULLA-FEDERATED-QUERY-R081`), which joins a graph neighbourhood with a vector match. 3. The run injects the bounded context bundle (`MEDULLA-FEDERATED-QUERY-R650`) into its next step. 4. The run trace (`MEDULLA-ORCH-VOCAB-R009`) lists the retrieved claim IDs. 5. Principal C of tenant U retrieves nothing. 6. With the engine stopped, arbora refuses the call and no state is written. Pass: the claim returns with all provenance fields, the trace links it to the run, and steps 5 and 6 refuse with stable codes. Children: `.1` the counterfactual control, `.2` decision provenance, `.3` the phase gate. | Test: `tests/scenarios/test_p1_closed_loop.py::test_write_retrieve_under_policy_and_trace` runs arbora, a loopback medulla server and an in-process meristem run.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.1.1
P1 counterfactual control: the retrieved claim changes the next action
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P1 counterfactual control: the retrieved claim changes the next action.** Behaviour: the scenario runs the same task twice on the same fixture. The test seeds the claim `deploy window is closed` for tenant T. Run A retrieves it through the `R006.1` steps 1 to 3 and injects it. Run B takes the same task without the claim, once on an empty store and once with the claim refused to B by policy (`ARBORA-IDENTITY`). The fixture model is deterministic: it returns the named action `defer_deploy` when the injected bundle holds the claim and the named action `start_deploy` otherwise. The scenario asserts that run A chose `defer_deploy`, that both B runs chose `start_deploy`, and that the two actions differ. Caller chain: the test client → served `memory.remember` and the served `RetrievalRound` over HTTP and MCP at the arbora boundary → `meristem.graph.execute_graph` (`MERISTEM-HARNESS-CYCLE-R001`) → the injected bundle (`MEDULLA-FEDERATED-QUERY-R650`) → the run step that returns the chosen action. Shape: (planned, no `ScenarioRun` type exists in arbora yet) `ScenarioRun.counterfactual { claim_id, with_claim_action, without_claim_action, refused_by_policy_action }`, each action a stable name. Refusal codes: `SCENARIO_ACTION_UNCHANGED` when the actions are equal, `SCENARIO_CONTROL_MISSING` when either control run did not execute. Depends: `ARBORA-ACCEPTANCE-R006.1`. | Test (planned): `tests/scenarios/test_p1_closed_loop.py::test_retrieved_claim_changes_the_next_action` asserts that the actions differ and that an equal pair fails with `SCENARIO_ACTION_UNCHANGED`.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.1.2
P1 decision provenance: the run trace records the action and the claim that caused it
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P1 decision provenance: the run trace records the action and the claim that caused it.** Behaviour: the trace of run A records the chosen action by name and cites the claim ID whose injection caused it. The cited ID must be one of the retrieved claim IDs of `R006.1` step 4. The trace of the control runs of `R006.1.1` cites no claim for their action. The decision record is the medulla decision log entry that the chosen action commits (`MEDULLA-DECISION-ENGINE-R019`, served `DecisionLog`). Its inputs digest covers the cited claim ID, so a reader can replay the choice. Caller chain: the test client → `meristem.graph.execute_graph` → trace event of the vocabulary `MEDULLA-ORCH-VOCAB-R009` (`action_chosen`, cited claim IDs) → served `DecisionLog` read at the arbora boundary. Meristem applies the received run plan and holds no store (`MERISTEM-RUN-R001.1`). Shape: (planned) trace event `{ run_id, action, cited_claim_ids[], decision_record_id }`. Refusal codes: `SCENARIO_ACTION_UNCITED` when the action has no cited claim or the cited ID was not retrieved, `DECISION_RECORD_MISSING` when the decision record does not resolve. Depends: `ARBORA-ACCEPTANCE-R006.1.1`, `MEDULLA-ORCH-VOCAB-R009`, `MEDULLA-DECISION-ENGINE-R019`, `MERISTEM-RUN-R001.1`. | Test (planned): `tests/scenarios/test_p1_closed_loop.py::test_trace_records_action_and_cites_claim` asserts the cited ID, the resolved decision record and both refusal codes.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.1.3
P1 is the gate: no later phase is delivered before P1 is VERIFIED
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P1 is the gate: no later phase is delivered before P1 is VERIFIED.** Behaviour: no row of phases P2 to P5 may be marked delivered (`PIPE-RELEASE-R022`) until `ARBORA-ACCEPTANCE-R006.1`, `.1.1` and `.1.2` are VERIFIED and the latest P1 `ScenarioRun` passed. The check runs in two places. First, the scenario fixture of `R006.2`, `R006.3`, `R006.4` and `R006.7` reads the status of the three rows and the latest P1 run before it starts, and refuses to run otherwise. Second, the release workflow refuses to cut the bundle of any phase after P1 under the same condition (`PIPE-RELEASE-R020` stops with `BUNDLE_NOT_DELIVERED`; the P1 bundle is `releases/P1.yml` in the pipelines repo, `PIPE-RELEASE-R021`). Caller chain: the nightly job and the pull-request job → `scenario_stack` fixture (`ARBORA-ACCEPTANCE-R006.5`) → phase prerequisite check → the scenario; the release workflow → `scripts/release_scope.py --check` (pipelines repo). Shape: (planned) refusal body `{ code, phase, open_rows[] }`. Refusal codes: `PHASE_PREREQUISITE_UNVERIFIED` (names the open P1 rows), reusing `BUNDLE_NOT_DELIVERED` on the release side. Depends: `ARBORA-ACCEPTANCE-R006.1.2`, `PIPE-RELEASE-R020`, `PIPE-RELEASE-R021`, `PIPE-RELEASE-R022`. | Test (planned): `tests/scenarios/test_phase_gate.py::test_later_phase_scenario_refuses_until_p1_verified` asserts the refusal while a P1 row is open and the run once all three are VERIFIED.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.2
P2 scenario: the loop is reliable and inspectable
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P2 scenario: the loop is reliable and inspectable.** Steps: 1. One fixture connector ingests 100 records through the SDK runner (`SCION-SOURCE-INGEST-R001`). They land as typed claims with provenance. 2. A query filters claims by source, confidence and valid time. 3. Two writers update one claim at the same version. The second write refuses with `WRITE_CONFLICT` (`MEDULLA-DURABLE-KERNEL-R084`). 4. A fixed suite of 20 tasks runs twice, once without and once with retrieval. Each outcome is recorded as an evidenced claim (`MEDULLA-DECISION-ENGINE-R100`, `MEDULLA-DECISION-ENGINE-R813`). Pass: every claim shows full lineage. No write is lost. The run with retrieval succeeds on at least 2 more tasks than the run without it. A smaller lift fails the scenario with `NO_MEMORY_LIFT`. Caller chain: the pull-request CI job → pytest → the `scenario_stack` fixture (`ARBORA-ACCEPTANCE-R006.5`) → the served arbora application over real HTTP and MCP → the engine and the harness run. Shape: new `tests/scenarios/test_p2_reliable_loop.py` that uses the `scenario_stack` fixture and the fixture connector of `ARBORA-ACCEPTANCE-R006.7`; it records its verdict as a `ScenarioRun`. | Test (planned): `tests/scenarios/test_p2_reliable_loop.py::test_lineage_conflict_and_memory_lift`.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.3
P3 scenario: boundaries hold with several agents
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P3 scenario: boundaries hold with several agents.** Steps: 1. The meristem boundary gate (`MERISTEM-RUN-R012`) passes: meristem holds no durable store. 2. Two agents, one human and one A2A peer (`ARBORA-A2A-R001`) write to the same tenant graph under one policy. 3. Node-level visibility (`MEDULLA-IDENTITY-R610`) hides a restricted subgraph from one principal before any query surface. 4. Two agents assert contradicting claims. The write path records a contradiction (`MEDULLA-DECISION-ENGINE-R652`) and keeps both claims. Pass: every write carries provenance, the restricted principal sees zero restricted nodes, and the contradiction record names both claims. Caller chain: the pull-request CI job → pytest → the `scenario_stack` fixture (`ARBORA-ACCEPTANCE-R006.5`) → the served arbora application over real HTTP and MCP → the engine and the harness run. Shape: new `tests/scenarios/test_p3_multi_agent_boundaries.py` that uses the `scenario_stack` fixture and the A2A route of `ARBORA-A2A-R001`; it records its verdict as a `ScenarioRun`. | Test (planned): `tests/scenarios/test_p3_multi_agent_boundaries.py::test_shared_state_under_policy_with_contradiction`.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.4
P4 scenario: the cross-modal bet and memory maintenance
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P4 scenario: the cross-modal bet and memory maintenance.** Steps: 1. One served query joins a graph neighbourhood, a vector match and an attribute filter in one plan, under one transaction and one security context (`MEDULLA-FEDERATED-QUERY-R720`). The falsification gate (`MEDULLA-FEDERATED-QUERY-R730`) must pass on that plan. 2. A write that breaks a shape refuses at commit (`MEDULLA-TYPED-PACKS-R105`). A small entailment set becomes visible to the next read. 3. Decay and consolidation (`MEDULLA-DECISION-ENGINE-R651`) run, and the agent observes the changed ranking. Pass: the result carries provenance, the gate verdict is recorded, and maintenance never breaks durability or policy. Caller chain: the pull-request CI job → pytest → the `scenario_stack` fixture (`ARBORA-ACCEPTANCE-R006.5`) → the served arbora application over real HTTP and MCP → the engine and the harness run. Shape: new `tests/scenarios/test_p4_cross_modal_and_maintenance.py` that uses the `scenario_stack` fixture and one served federated query; it records its verdict as a `ScenarioRun`. | Test (planned): `tests/scenarios/test_p4_cross_modal_and_maintenance.py::test_one_plan_validation_and_decay`.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.5
Scenarios run in process on every pull request
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Scenarios run in process on every pull request.** `arbora/testing/scenario_stack.py` provides the `scenario_stack` fixture. It builds the served arbora application in process, starts a loopback medulla server on a temporary store and runs meristem in process. Each scenario call goes over real HTTP and MCP to that application, so the test exercises arbora's public boundary. Scenarios `.1` to `.4` must finish within 5 minutes in pull-request CI. Scenario `.7` needs connectors and runs only on the stack of `.6`. A scenario that needs a component the stack lacks fails with `SCENARIO_STACK_INCOMPLETE`; it never skips. Caller chain: the pull-request CI job → pytest → the `scenario_stack` fixture → the served arbora application over real HTTP and MCP → the in-process loopback medulla server and meristem run. Shape: new module `arbora/testing/scenario_stack.py` (planned; `arbora/testing/` does not exist) holds the `scenario_stack` fixture and the refusal code `SCENARIO_STACK_INCOMPLETE`. It reuses the host application factory of `ARBORA-HOST` and adds no second server path. | Test (planned): `tests/scenarios/test_scenario_stack.py::test_stack_serves_mcp_and_http_over_one_engine`.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.6
An ephemeral deployed stack validates the scenarios nightly
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**An ephemeral deployed stack validates the scenarios nightly.** `deploy/ephemeral/compose.yaml` starts the medulla server and arbora from the commit's built wheels with a fresh store. It also starts the fixture connectors of `ARBORA-ACCEPTANCE-R006.7`. It reaches ready within 120 s. The nightly job (`PIPE-RELEASE-R020`) runs scenarios `.1` to `.4` and `.7` against it over the network, records each result, and removes the stack. The stack uses the same images as production. Only its store and its credentials are disposable. Caller chain: the nightly schedule of `.github/workflows/ci.yml` (cron line 17) → the nightly scenario job → `docker compose -f deploy/ephemeral/compose.yaml up` → pytest over the network against the stack. Shape: new `deploy/ephemeral/compose.yaml` (planned; `deploy/ephemeral/` does not exist) modelled on `deploy/compose/compose.yaml`, plus `tests/scenarios/test_ephemeral_stack.py`; the images are the production images and only the store and credentials are disposable. | Test (planned): `tests/scenarios/test_ephemeral_stack.py::test_compose_stack_ready_within_budget` runs in the nightly job.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.7
P5 scenario: answers across connectors and across virtual graphs
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**P5 scenario: answers across connectors and across virtual graphs.** The scenario runs only on the ephemeral stack of `ARBORA-ACCEPTANCE-R006.6`. That stack starts three fixture connectors that onboard through arbora. Two of them serve virtual graphs. Every step goes through the served `ask` and `find` operations. Steps: 1. A cross-connector competency question joins facts from at least two connectors' virtual graphs. The supply-chain case takes the supplier from one source and the component and vulnerability from another (`MEDULLA-CQ-XSRC-R002`, `MEDULLA-CQ-XSRC-R012.1`). Each fact names its source, its mapping and its read time. 2. One read-only federated query spans two virtual-graph connectors and the engine-resident facts. The answer cites each source. The engine applies the caller's access rights per source (`MEDULLA-CQ-CONN-R090`). 3. The question the execution question is answered from the tools and skills that the connectors onboarded. The answer names the exact operations in order (`MEDULLA-CQ-ORCH-R012`). 4. A caller who cannot read one source repeats steps 1 and 2. The answer excludes that source and names it in its coverage block with a stable reason code. It never drops the source silently (`MEDULLA-CQ-XSRC-R012.2`). Pass: every fact carries provenance, no answer holds a fact from an unreadable source, and the coverage block lists each excluded source. The `ScenarioRun` record (`MEDULLA-SDLC-R013`) holds the verdict. Phase gate: P4 must have passed. Release `P5` completes when this scenario passes on `main` (`PIPE-RELEASE-R023`). Depends: `ARBORA-FLEET-R052.1`, `ARBORA-FLEET-R052.2`, `ARBORA-FLEET-R052.4.2`, `MEDULLA-CQ-XSRC-R012`, `MEDULLA-CQ-CONN-R090`, `MEDULLA-CQ-ORCH-R012`, `MEDULLA-SRC-AUTH-R006.1`. Caller chain: the nightly scenario job → pytest on the ephemeral stack of `ARBORA-ACCEPTANCE-R006.6` → the served `ask` and `find` operations → the onboarded fixture connectors and their virtual graphs. Shape: new `tests/scenarios/test_p5_cross_source.py`; it reuses the fleet onboarding path of `ARBORA-FLEET-R052.1` and asserts the coverage block fields; the three fixture connectors are part of `deploy/ephemeral/compose.yaml`. | Test (planned): `tests/scenarios/test_p5_cross_source.py::test_answers_join_connectors_and_virtual_graphs_with_coverage` runs in the nightly job against the ephemeral stack.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-ACCEPTANCE-R006.8
Final program scenario: vision questions are answered through the web UI and a messaging channel
Definition — ARBORA-ACCEPTANCE / ARBORA-ACCEPTANCE — evidence acceptance freezeCanonical requirement and verification source
**Final program scenario: vision questions are answered through the web UI and a messaging channel.** The scenario runs on the ephemeral stack of `ARBORA-ACCEPTANCE-R006.6` after `ARBORA-ACCEPTANCE-R006.7` passes. A fixed set of vision questions goes to the served `ask` operation through the browser chat route and through one supervised messaging channel. Both channels must return the same answer with the same citations and coverage block. The browser route is `OVERSTORY-API-R011.2`. The channel is supervised by `ARBORA-MESSAGING-R002`. The `ScenarioRun` record (`MEDULLA-SDLC-R013`) holds the verdict. Release `P5` completes only when this scenario passes on `main` (`PIPE-RELEASE-R023`). Depends: `ARBORA-ACCEPTANCE-R006.7`, `ARBORA-MESSAGING-R002`, `OVERSTORY-API-R011.2`. Caller chain: the nightly scenario job → pytest on the ephemeral stack → the browser chat route (`OVERSTORY-API-R011.2`) and one supervised messaging channel (`ARBORA-MESSAGING-R002`, `InboundRouter.start` in `arbora/messaging/router.py`) → the served `ask` operation. Shape: new `tests/scenarios/test_p5_vision_questions.py`; it compares the two answers field by field (text, citations, coverage block) and records its verdict as a `ScenarioRun`. | Test (planned): `tests/scenarios/test_p5_vision_questions.py::test_web_and_messaging_return_the_same_cited_answer` runs in the nightly job against the ephemeral stack.
requirementARBORA-ACCEPTANCESPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY
ARBORA-CAPACITY — Adaptive capacity control
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001
AIMD error-budget throttling that only narrows automatically (rollup)
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**AIMD error-budget throttling that only narrows automatically (rollup).** Subsystem: fleet admission, capacity. Entry: every served `fleet.call` records an outcome, and the controller loop started at host bootstrap closes windows. Arbora observes a bounded error budget per tenant, child and operation class. It applies additive-increase and multiplicative-decrease throttling under the engine's declared capacity cell ceiling. An automatic action may only narrow concurrency or give back what it narrowed, and never exceeds the ceiling. Every decision records its window digest, old and new limits and reason. Children: `.1` pure rule, `.2` joint per-run adjustment, `.3` closed-loop capacity proposals, `.4` outcome capture and controller, `.5` admission limiter. `capacity.adjust.apply` is the served actuation operation. Depends: `MEDULLA-PLACEMENT-R001.15`. Caller chain: the landed operations `capacity.throttle.status` and `capacity.throttle.set_mode` in `arbora/api/ops/capacity.py` → `ThrottleRegistry` in `arbora/fleet/throttle_service.py`. The outcome recorder, the controller loop that calls `arbora/fleet/error_budget.py::decide` and the admission limiter at the served `fleet.call` do not exist yet; they are the new code of children `.4` and `.5`. Shape: `ThrottleDecision { window_digest, partition, config_version, prior_limit, new_limit, mode, reason, sample_count, eligible_failure_count }` returned by `decide` in `arbora/fleet/error_budget.py` and stored by `ThrottleRegistry.record_decision` in `arbora/fleet/throttle_service.py`. | Root journey: `tests/fleet/test_throttle_controller_served.py::test_breach_narrows_recovery_is_bounded_and_replay_is_idempotent` (L3). Children pass.
requirementARBORA-CAPACITYSPECIFIEDd2f29725918d
ARBORA-CAPACITY-R001.1
Pure partitioned AIMD decision rule
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Pure partitioned AIMD decision rule.** `arbora/fleet/error_budget.py` defines typed `Partition`, `OutcomeSample`, `BudgetWindow`, `AimdConfig`, `ThrottleMode` and `ThrottleDecision`, and a pure `decide()` function that computes the next concurrency limit from a closed window and the controller's prior state: eligible service failures (not caller errors or policy denials) drive the error fraction, breach multiplicatively decreases bounded by a floor, a healthy window additively increases bounded by the engine/policy ceiling, and replaying the same window is idempotent. No clock, I/O or fleet dispatch wiring. Caller chain: no production code calls it yet; `tests/fleet/test_error_budget.py` calls `arbora/fleet/error_budget.py::decide(window=, prior_limit=, engine_headroom=, config=, mode=)`, and the result is the value `ThrottleRegistry.record_decision` in `arbora/fleet/throttle_service.py` stores. The window-closing controller of `ARBORA-CAPACITY-R001.4` is the planned caller. Shape: the types `Partition { tenant, child, operation_class, policy_revision }`, `OutcomeSample`, `BudgetWindow`, `AimdConfig`, `ThrottleMode`, `ThrottleDecision` and the pure `decide()` in `arbora/fleet/error_budget.py`. | Test: `tests/fleet/test_error_budget.py::test_replaying_the_same_window_is_idempotent`. `tests/fleet/test_error_budget.py` covers bounded recovery, multiplicative decrease, the floor and engine-headroom ceiling, caller-error/policy-denial neutrality, insufficient-sample handling, idempotent replay, and tenant/child partition isolation.
requirementARBORA-CAPACITYVERIFIED69d6f6eef5ea
c46a1ded6a8f
d2f29725918d
tests/fleet/test_error_budget.py:28
ARBORA-CAPACITY-R002
Capacity status and mode operations
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Capacity status and mode operations.** Arbora exposes capacity operations in `arbora/api/ops/capacity.py`. It adds a read and config facade in `arbora/fleet/throttle_service.py`. The operations report controller status, update cell limits and report throttle state. They also select observe or enforce mode per child. They use the same hosted-operation registry, identity and error handling as other operations. Caller chain: `arbora/api/invoke/pipeline.py::invoke` → handler `handle_capacity_status` or `handle_capacity_set_mode` in `arbora/api/ops/capacity.py` → `ThrottleRegistry.status` or `ThrottleRegistry.set_mode` on the `throttle_registry` service of `arbora/fleet/throttle_service.py`. No bootstrap binds that service yet, so the handlers raise `capacity throttle controller is not bound` until child `ARBORA-CAPACITY-R001.4` binds it. Shape: `OpSpec` entries `capacity.throttle.status` (scope `capacity:read`, `Effect.READ`) and `capacity.throttle.set_mode` (scope `capacity:admin`, `Effect.ADMIN`) returned by `operations()` in `arbora/api/ops/capacity.py`; `ThrottleRegistry` and `ThrottleStatus` in `arbora/fleet/throttle_service.py`. | Proven by contract tests. A mode change requires verified administrator authorization. The scope `capacity:read` permits status only. Served test: `tests/api/test_capacity_served.py::test_denied_set_mode_leaves_throttle_state_unchanged`.
requirementARBORA-CAPACITYVERIFIED69d6f6eef5ea
c46a1ded6a8f
tests/api/test_capacity_ops.py:26
ARBORA-CAPACITY-R001.2
AU:26 Arbora definition slice
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**AU:26 Arbora definition slice.** AU:26 cross-owner slice. Residual: Per-run error frequency over a declared window is not the host tenant/child/operation partition. No joint latency/cost/error-driven model-and-width adjustment contract records each before/after model, width, budget and rationale on that run. Arbora minimum action: Extend the existing EG routing/continuation contract with the joint per-run observation window and adjustment receipt. Bind AU observations and trace application. Preserve host ceiling and narrow-only enforcement. Producer/consumer boundary: AU ObservedCost routing.py -> EG routing; AU continuation.py narrows and releases capacity. Arbora error_budget.decide computes partitioned AIMD. These separate paths have no reviewed joint per-run adjustment producer/consumer contract. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `MERISTEM-HARNESS-R007, MERISTEM-CONTROL-R006, MERISTEM-CONTROL-R006.1, MERISTEM-CONTROL-R019, MEDULLA-ORCH-VOCAB-R009, MEDULLA-ORCH-VOCAB-R009.1, MEDULLA-ORCH-VOCAB-R009.2, MEDULLA-ORCH-VOCAB-R009.3, MEDULLA-ORCH-VOCAB-R009.4, MEDULLA-ORCH-VOCAB-R009.5, MEDULLA-ORCH-VOCAB-R009.6, MEDULLA-ORCH-VOCAB-R009.7, MEDULLA-ORCH-VOCAB-R009.8, MEDULLA-ORCH-VOCAB-R009.9, MEDULLA-ORCH-VOCAB-R009.10, MEDULLA-ORCH-VOCAB-R009.11, MEDULLA-ORCH-VOCAB-R009.12, MEDULLA-ORCH-VOCAB-R009.13, MEDULLA-ORCH-VOCAB-R009.14, MEDULLA-ORCH-VOCAB-R009.15, MEDULLA-ORCH-VOCAB-R009.16, MEDULLA-ORCH-VOCAB-R009.17, ARBORA-CAPACITY-R001, ARBORA-CAPACITY-R001.1`. Source record SHA-256: `8d2f83f788c5fdd36c4dc47f85c9f7673393b6b9075dc46a5ac1c32afd2386e2`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-70.json, meristem/specs/agent-control-plane/requirements.md:10#sha256=d23694e108652e92337ab4997286d2f3119818b3e7a9ff3f8a65f72a13bbb709, meristem/specs/agent-control-plane/requirements.md:24#sha256=5e7396750953ba0daf829dd0df1d85d868211579eb5673bb158645ceb5204bb5, meristem/specs/harness-evolution/requirements.md:12#sha256=6b67b965ae1e92c7eee335722320248c32212aef6b2a9add2bd117d4c56ba57b, epistemic-graph/specs/orchestration-vocabulary/requirements.md:60#sha256=48fa2a2cf52544702d56b50861ea5a0ceaf85ef47c0d39aba4792baeaeeb1b92, epistemic-graph/specs/orchestration-vocabulary/requirements.md:61#sha256=e4b274c430f4a5f68666f80a71c4e0efa4b18800e9027947b67d91d327b53863, arbora/specs/adaptive-capacity/requirements.md:6#sha256=7ab4ff5d4823d469480e338976991916a161b284d4fec717981291830bbc16f1`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/14`. No implementation or runtime evidence is claimed. Caller chain: no code records per-run error frequency or a before/after model and width today. The nearest existing code is `arbora/fleet/error_budget.py::decide`, keyed by `Partition { tenant, child, operation_class, policy_revision }`; the controller of `ARBORA-CAPACITY-R001.4` (new) is its planned caller, and the per-run window and adjustment receipt are new code beside it. Shape: a frozen adjustment receipt `{ run_id, before_model, before_width, after_model, after_width, budget, rationale }` as a new dataclass in `arbora/fleet/error_budget.py` next to `ThrottleDecision`, narrow-only under the `engine_headroom` ceiling that `decide` already takes. | Test: `tests/fleet/test_error_frequency_partition.py::test_run_errors_use_host_partition_and_record_before_after`. Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `MERISTEM-HARNESS-R007, MERISTEM-CONTROL-R006, MERISTEM-CONTROL-R006.1, MERISTEM-CONTROL-R019, MEDULLA-ORCH-VOCAB-R009, MEDULLA-ORCH-VOCAB-R009.1, MEDULLA-ORCH-VOCAB-R009.2, MEDULLA-ORCH-VOCAB-R009.3, MEDULLA-ORCH-VOCAB-R009.4, MEDULLA-ORCH-VOCAB-R009.5, MEDULLA-ORCH-VOCAB-R009.6, MEDULLA-ORCH-VOCAB-R009.7, MEDULLA-ORCH-VOCAB-R009.8, MEDULLA-ORCH-VOCAB-R009.9, MEDULLA-ORCH-VOCAB-R009.10, MEDULLA-ORCH-VOCAB-R009.11, MEDULLA-ORCH-VOCAB-R009.12, MEDULLA-ORCH-VOCAB-R009.13, MEDULLA-ORCH-VOCAB-R009.14, MEDULLA-ORCH-VOCAB-R009.15, MEDULLA-ORCH-VOCAB-R009.16, MEDULLA-ORCH-VOCAB-R009.17, ARBORA-CAPACITY-R001, ARBORA-CAPACITY-R001.1`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-70.json, meristem/specs/agent-control-plane/requirements.md:10#sha256=d23694e108652e92337ab4997286d2f3119818b3e7a9ff3f8a65f72a13bbb709, meristem/specs/agent-control-plane/requirements.md:24#sha256=5e7396750953ba0daf829dd0df1d85d868211579eb5673bb158645ceb5204bb5, meristem/specs/harness-evolution/requirements.md:12#sha256=6b67b965ae1e92c7eee335722320248c32212aef6b2a9add2bd117d4c56ba57b, epistemic-graph/specs/orchestration-vocabulary/requirements.md:60#sha256=48fa2a2cf52544702d56b50861ea5a0ceaf85ef47c0d39aba4792baeaeeb1b92, epistemic-graph/specs/orchestration-vocabulary/requirements.md:61#sha256=e4b274c430f4a5f68666f80a71c4e0efa4b18800e9027947b67d91d327b53863, arbora/specs/adaptive-capacity/requirements.md:6#sha256=7ab4ff5d4823d469480e338976991916a161b284d4fec717981291830bbc16f1`. This definition does not assert these tests have run.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R003
AU:70 Arbora definition slice
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**AU:70 Arbora definition slice.** AU:70 cross-owner slice. Residual: The contract does not define paper throughput numerator, denominator, window, or a 2000-papers/day target. It also lacks below-target policy to prioritize maintenance backlog purge and per-goal budget allocation. It lacks safe purge candidates, authorization/admission, refusal, and decision/result evidence. Arbora minimum action: Define an Medulla-owned observed-throughput decision with explicit window, units, and safe-purge rules. Also define purge/budget obligations. Bind hosted execution and connector observations. Test below/at/above threshold and refusal through the actual ingestion/maintenance route. Existing repository latency is not paper/day acceptance. Producer/consumer boundary: SDK paper transport -> EG SourceIngest/native commits + enrichment WorkItems -> ingestion telemetry -> EG budget/purge decision. (Missing) -> Arbora governed maintenance dispatch (missing). AU instrumentation supplies observations, not policy authority. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `MERISTEM-RETIRE-R005, MEDULLA-REPO-INGEST-R006`. Source record SHA-256: `902f964dd909186f3a31d1f8a84d146b715446e64dfeec62480c8151baa06996`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, epistemic-graph/specs/repository-index-and-ingestion/requirements.md:21#sha256=31b0c0f71492eba7ea58a154f3a2bb1552aff5c227a88548c09b3f9748b9b49b, meristem/specs/au-engine-duplicate-retirement/requirements.md:14#sha256=0f054dbf4383f287ee72a12135a67fc0a6228e89bff2ee9e32df77fabb7f0ca9`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/22`. No implementation or runtime evidence is claimed. Caller chain: no Arbora code exists for it. The throughput decision is Medulla-owned and not yet in the engine contract; the governed maintenance dispatch is a new registry operation under `arbora/api/ops/`, served through `arbora/api/invoke/pipeline.py::invoke` (no maintenance-dispatch operation exists there today). Shape: the engine decision record `{ window, units, papers_per_day, target, below_target, purge_candidates[], budget_allocation }` consumed by that one new operation module; `arbora/fleet/error_budget.py` is the AIMD rule and is not involved. | Test: `tests/fleet/test_paper_throughput_decision.py::test_below_at_above_threshold_and_refusal`. Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `MERISTEM-RETIRE-R005, MEDULLA-REPO-INGEST-R006`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, epistemic-graph/specs/repository-index-and-ingestion/requirements.md:21#sha256=31b0c0f71492eba7ea58a154f3a2bb1552aff5c227a88548c09b3f9748b9b49b, meristem/specs/au-engine-duplicate-retirement/requirements.md:14#sha256=0f054dbf4383f287ee72a12135a67fc0a6228e89bff2ee9e32df77fabb7f0ca9`. This definition does not assert these tests have run.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R004
AU:122 Arbora definition slice
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**AU:122 Arbora definition slice.** AU:122 cross-owner slice. Arbora must qualify the served agents.run path using the versioned load profile in plan.md. Run 1,000 requests at each concurrency of 1, 8, and 32. Require terminal latency p95 at most 2,000 ms and failure rate at most 1 percent per level. Count 30-second timeouts as failures. Record workload, fixture, owner revisions, measurements, and a pass/fail result. Missing producer bindings or samples must refuse qualification. Synthetic bounded-map or scorer-only tests cannot qualify this path. Producer/consumer boundary: AU load driver -> served agent operation through Arbora -> measured per-run report/admission evidence. No exact load-driver/report producer contract was found. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `none assigned in this packet`. Source record SHA-256: `440703d339dcff0a4ca3658c11f5b32974a921515769f5f29e313bf26ba74fad`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-24-owner-supplements.json, spec-audit/writer-queue-merged/agent-utilities.tsv:122, meristem/specs/harness-evolution/requirements.md:141#sha256=7119a5b3ce026c7d1d3f47abe073ee89be517dae342e4e290b32a5969af85747, meristem/specs/harness-evolution/requirements.md:82#sha256=f7ef7e6ef3f5b93aa4294dbb1371a21f1cf29ae7ec62c739a11deec7782d45c5, epistemic-graph/specs/decision-engine/requirements.md:152#sha256=a59accc536bb7195f5bebf8d0b75e7a2fd31628bbd3932d35c29d58ec0b342a0`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/31`. No implementation or runtime evidence is claimed. Caller chain: a new load driver script under `scripts/` (none exists) → the served `agents.run` operation over HTTP and MCP → `arbora/api/invoke/pipeline.py::invoke` → the `agents.run` handler dispatch in `arbora/api/ops/agents.py`. Shape: load report `{ concurrency, requests, p95_ms, error_rate, verdict }` produced by a driver script under `scripts/`, with threshold refusals. | Test (planned): `tests/api/test_agent_load_served.py::test_agent_run_profile_measures_terminal_latency_and_failures` and `tests/api/test_agent_load_served.py::test_agent_run_profile_rejects_missing_samples_and_exceeded_limits`. Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `none assigned in this packet`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-24-owner-supplements.json, spec-audit/writer-queue-merged/agent-utilities.tsv:122, meristem/specs/harness-evolution/requirements.md:141#sha256=7119a5b3ce026c7d1d3f47abe073ee89be517dae342e4e290b32a5969af85747, meristem/specs/harness-evolution/requirements.md:82#sha256=f7ef7e6ef3f5b93aa4294dbb1371a21f1cf29ae7ec62c739a11deec7782d45c5, epistemic-graph/specs/decision-engine/requirements.md:152#sha256=a59accc536bb7195f5bebf8d0b75e7a2fd31628bbd3932d35c29d58ec0b342a0`. This definition does not assert these tests have run.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.3
Closed-loop capacity proposals and applied-state receipt (rollup)
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Closed-loop capacity proposals and applied-state receipt (rollup).** Subsystem: fleet capacity, scaling. Entry: the controller loop of `ARBORA-CAPACITY-R001.4`, after `decide` reports a limit change or a headroom trigger. Arbora builds a bounded proposal and has the engine judge it (`MEDULLA-PLACEMENT-R001.15`). It applies an allowed proposal and reads back an applied-state receipt. Medulla adds no second controller. Children: `.3.1` proposal builder, `.3.2` engine verdict, `.3.3` apply, `.3.4` receipt readback. Existing scaling intents (`ARBORA-CAPACITY-R750`) stay the actuation path for replica changes. The provider is `MEDULLA-DECISION-ENGINE-R112`. Any limit increase waits for the engine capacity verdict of `MEDULLA-DECISION-ENGINE-R824`. The consumer is `ARBORA-CAPACITY-R751`. Depends: `ARBORA-CAPACITY-R001.4`, `MEDULLA-PLACEMENT-R001.15`, `MEDULLA-DECISION-ENGINE-R112`, `MEDULLA-DECISION-ENGINE-R824`. | Root journey: `tests/fleet/test_capacity_proposals_served.py::test_allowed_proposal_is_applied_and_receipted` (L3). Children pass.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.3.1
Capacity proposal builder
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Capacity proposal builder.** Subsystem: fleet capacity. Caller: `ThrottleController.run()` → new `arbora/fleet/capacity_proposals.py::build_proposal(decision, status)`. Rule: the function fills `CapacityAdjustmentProposal` of `MEDULLA-PLACEMENT-R001.15` from the `CapacityStatus` cell. Fields: `current_capacity`, `proposed_capacity`, `min_capacity`, `max_capacity`, `measured_load`, `available_headroom`, window bounds, `premise_revision`, `policy_revision`. `proposal_digest` is SHA-256 over canonical JSON, 64 lowercase hex. A decision that does not change the limit builds no proposal. Refusals: `PROPOSAL_FIELD_INVALID`. Writes: none. Depends: `MEDULLA-PLACEMENT-R001.15`. Caller chain: `arbora/mcp_server/bootstrap.py` → `ThrottleController.run()` (new, `arbora/fleet/throttle_service.py`) → `build_proposal` (new, `arbora/fleet/capacity_proposals.py`). Shape: new module `arbora/fleet/capacity_proposals.py` with the frozen `CapacityAdjustmentProposal` record built from a `ThrottleDecision` of `arbora/fleet/error_budget.py`, using `hashlib.sha256` over `json.dumps(sort_keys=True, separators=(',', ':'))`. | Test: `tests/fleet/test_capacity_proposals.py::test_builder_fills_fields_and_digest_is_stable` (L1). Verified by the root slice test `tests/fleet/test_capacity_proposals_served.py::test_allowed_proposal_is_applied_and_receipted`.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.3.2
Engine verdict call
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Engine verdict call.** Subsystem: fleet capacity. Caller: `ThrottleController.run()` → `arbora/fleet/capacity_proposals.py::judge(client, proposal)` → engine `Decide` with `QuestionKind::CapacityProposal`. Rule: an `allow` verdict bound to the proposal digest and revisions lets the controller continue. A `refuse` verdict keeps the prior limit and stores the `CapacityRefusalCode`. An engine failure holds the prior limit and records `VERDICT_UNAVAILABLE`. Arbora never applies a proposal without an `allow`. Writes: none. Depends: `ARBORA-CAPACITY-R001.3.1`, `MEDULLA-PLACEMENT-R001.15`. Caller chain: `ThrottleController.run()` (new) → `judge` (new, `arbora/fleet/capacity_proposals.py`) → the Medulla client adapter `Decide` call. Shape: `judge(client, proposal) -> CapacityVerdict` in `arbora/fleet/capacity_proposals.py`; the verdict record binds `proposal_digest`, `policy_revision` and `state_revision`. | Test: `tests/fleet/test_capacity_proposals_served.py::test_refused_and_unavailable_verdicts_hold_the_limit` (L3). A recorded engine reply covers allow, each refusal code and failure.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.3.3
Apply an allowed proposal
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Apply an allowed proposal.** Subsystem: fleet capacity. Caller: `ThrottleController.run()` → `arbora/fleet/capacity_proposals.py::apply(client, proposal, verdict)`. Rule: in mode `enforce` and only after `allow`, a narrowing sets the partition limit. A raise of the cell ceiling calls the engine `UpdateCapacityCell` with `expected_epoch` from the status read, under scope `capacity:admin`. A replica change creates a scaling intent through `arbora/fleet/scaling/scaling_intent_reconciler.py`. In mode `observe` nothing is applied and the receipt says `observed_only`. Refusals: `CAPACITY_EPOCH_CONFLICT` re-reads status and re-proposes at the next window. Writes: engine cell update or scaling intent. Depends: `ARBORA-CAPACITY-R001.3.2`, `ARBORA-CAPACITY-R750.752`. Caller chain: `ThrottleController.run()` (new) → `apply` (new, `arbora/fleet/capacity_proposals.py`) → the engine `UpdateCapacityCell` call, or `ScaleIntentReconciler` in `arbora/fleet/scaling/scaling_intent_reconciler.py` for a replica change. Shape: `apply(client, proposal, verdict) -> CapacityApplyResult` in `arbora/fleet/capacity_proposals.py`, reusing `ScaleIntentReconciler` and the `ThrottleMode` enum of `arbora/fleet/error_budget.py`. | Test: `tests/fleet/test_capacity_proposals_served.py::test_apply_modes_and_epoch_conflict` (L3). It asserts the narrow, the raise, the intent and the conflict re-proposal.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.3.4
Applied-state receipt readback
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Applied-state receipt readback.** Subsystem: fleet capacity. Caller: `ThrottleController.run()` after `apply` → `arbora/fleet/capacity_proposals.py::read_back(client, proposal)` and operation `capacity.throttle.receipt.get` in `arbora/api/ops/capacity.py`. Rule: `CapacityAppliedReceipt{proposal_digest, requested_capacity, applied_capacity, cell_id, policy_revision, state_revision, outcome}` comes from a fresh `CapacityStatus` read, never from the apply reply. A mismatch records `CAPACITY_APPLY_MISMATCH` and re-proposes at the next window. The operation needs scope `capacity:read` and returns the latest receipt per partition. Writes: in-memory receipt store. Depends: `ARBORA-CAPACITY-R001.3.3`. Caller chain: `ThrottleController.run()` (new) → `read_back` (new, `arbora/fleet/capacity_proposals.py`); served `capacity.throttle.receipt.get` → `arbora/api/invoke/pipeline.py::invoke` → handler `handle_capacity_receipt_get` (new, `arbora/api/ops/capacity.py`) → `ThrottleRegistry` receipt store in `arbora/fleet/throttle_service.py`. Shape: `CapacityAppliedReceipt` frozen record in `arbora/fleet/capacity_proposals.py`; one `OpSpec` appended to `operations()` of `arbora/api/ops/capacity.py` next to `capacity.throttle.status` (scope `capacity:read`, `Effect.READ`). | Test: `tests/api/test_capacity_ops.py::test_receipt_reflects_readback_and_mismatch` (L3). It calls the operation over HTTP and MCP and asserts matching and mismatching receipts.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.4
Outcome capture and controller loop
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Outcome capture and controller loop.** Subsystem: fleet admission, capacity. Caller: served `fleet.call` handler in `arbora/api/ops/fleet.py` → new `arbora/fleet/throttle_service.py::OutcomeRecorder.record(partition, outcome)`. Caller: host bootstrap `arbora/mcp_server/bootstrap.py` → new `ThrottleController.run()` background task. Rule: the partition is (tenant, child server, operation class `read` or `write` from the tool annotation, policy revision). The recorder classifies each result with `OutcomeClass`. Caller errors and policy denials stay ineligible. Every `window_seconds` the controller closes each window and calls `arbora/fleet/error_budget.py::decide` with `engine_headroom` from the engine `CapacityStatus` cell ceiling. It stores the decision with `ThrottleRegistry.record_decision`. In mode `enforce` it also reports the window to the engine through `ThrottleCapacityCell` so the engine records the narrowed ceiling. A replayed window digest returns the stored decision. Config file `~/.config/arbora/config.json`, section `capacity.aimd`. `alpha`: default 1, range [1, 64], unit slots. `beta`: default 0.5, range [0.1, 0.9]. `floor`: default 1, range [0, 100], unit slots. `min_sample_count`: default 20, range [1, 10000]. `error_budget_fraction`: default 0.1, range [0.01, 0.5]. `window_seconds`: default 60, range [10, 600], unit seconds. `version`: a string. The registry is created once at bootstrap and bound as service `throttle_registry`, which `arbora/api/ops/capacity.py` already reads. Refusals: a closed window under `min_sample_count` holds the limit with reason `insufficient_samples`. Evidence: the decision receipt. Writes: in-memory registry, plus the engine call in mode `enforce`. Depends: `ARBORA-CAPACITY-R001.1`. Caller chain: served `fleet.call` → `handle_fleet_call` in `arbora/api/ops/fleet.py` → `OutcomeRecorder.record` (new, `arbora/fleet/throttle_service.py`); host bootstrap in `arbora/mcp_server/bootstrap.py` → `ThrottleController.run` (new) → `arbora/fleet/error_budget.py::decide` → `ThrottleRegistry.record_decision`. Shape: `OutcomeRecorder` and `ThrottleController` (new) in `arbora/fleet/throttle_service.py`, reusing `Partition`, `OutcomeSample`, `BudgetWindow`, `AimdConfig` and `decide` from `arbora/fleet/error_budget.py` and binding one `ThrottleRegistry` as the `throttle_registry` service. | Test: `tests/fleet/test_throttle_controller_served.py::test_breach_narrows_recovery_is_bounded_and_replay_is_idempotent` (L3). Served `fleet.call` traffic drives a breach, a bounded recovery, an idempotent replay and a partition isolation case. The test uses a recorded `CapacityStatus` reply.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R001.5
Admission limiter at fleet forward
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Admission limiter at fleet forward.** Subsystem: fleet admission, capacity. Caller: served `fleet.call` → `arbora/fleet/multiplexer.py` forward → new `arbora/fleet/throttle_service.py::PartitionLimiter.acquire(partition)`. Rule: in mode `observe` the limiter admits every call and records the calls that mode `enforce` refuses. In mode `enforce` it admits at most `current_limit` concurrent calls per partition. A call over the limit refuses with `CAPACITY_THROTTLED` (HTTP 429 with `Retry-After: 1`, MCP tool error). A partition with no decision has no limit. The limit never exceeds the engine ceiling. Refusals: `CAPACITY_THROTTLED`. Evidence: audit event on the first refusal per window. Writes: none. Depends: `ARBORA-CAPACITY-R001.4`, `ARBORA-CAPACITY-R002`. Caller chain: `arbora/api/ops/fleet.py::handle_fleet_call` → `_gateway_call` (line 224) → the `fleet_gateway` service `call` → `MCPMultiplexer.call_admitted_child_once` in `arbora/fleet/multiplexer.py` → `PartitionLimiter.acquire` (new, `arbora/fleet/throttle_service.py`). Shape: `PartitionLimiter` (new) in `arbora/fleet/throttle_service.py` reads the effective limit from `ThrottleRegistry.status` and the mode from `ThrottleRegistry.mode`; a new `CAPACITY_THROTTLED` refusal maps to HTTP 429 through the existing error envelope of `arbora/api/invoke/`. | Test: `tests/fleet/test_throttle_controller_served.py::test_enforce_refuses_over_limit_and_observe_admits` (L3). It asserts both modes, the status code and the ceiling bound.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R750
Scaling authority and intent contracts (rollup)
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Scaling authority and intent contracts (rollup).** `arbora/fleet/scaling/` holds typed, immutable contracts for scaling intents. arbora applies these contracts when it admits a scaling intent. The contracts cover scale units, pools, workload classes, controllers, lease fences and lifecycle records. Each unit has exactly one replica writer. The package also holds a scale evaluator and a resource-pool placement evaluator. The engine (MEDULLA-DECISION-ENGINE) decides how far to scale. These modules validate and apply that decision. Child requirements deliver this row. | The child requirements' tests under `tests/fleet/scaling/` prove this row.
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_resource_pool_authority.py:27
tests/fleet/scaling/test_resource_reservation.py:14
tests/fleet/scaling/test_scaling_authority_contract.py:21
tests/fleet/scaling/test_scaling_intent_reconciler.py:25
tests/fleet/scaling/test_scaling_signal_authority.py:22
ARBORA-CAPACITY-R750.750
Scale authority validation
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Scale authority validation.** `scaling_authority.py` refuses two replica writers for one unit. It refuses dependency cycles and headroom beyond the replica bounds. It refuses stale unit revisions, replica counts out of range and offline failure domains. It refuses failed or simulated execution states without evidence. It refuses a lease fence that changes between lifecycle records. Caller chain: no production code calls it yet. The planned caller is `ThrottleController.run()` (new) through `ScaleIntentReconciler` of `ARBORA-CAPACITY-R001.3.3`. Shape: `ScaleAuthority` and `validate_scale_intent(intent, authority)` in `arbora/fleet/scaling/scaling_authority.py`, with `ScaleUnit`, `LeaseFence` and `ScaleExecution`. | Test: `tests/fleet/scaling/test_scaling_authority_contract.py::test_invalid_authority_inventory_is_refused` (L1).
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_scaling_authority_contract.py:21
ARBORA-CAPACITY-R750.751
Authenticated bounded signal reads
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Authenticated bounded signal reads.** `scaling_signal_authority.py` reads scaling signals through one bound provider. The provider rejects samples outside the scope, from another source, stale samples and replayed samples. Pagination stays pinned to one snapshot digest. A missing batch never reads as zero. Samples never enter the graph projection. Caller chain: no production code calls it yet. The planned caller is the signal read of `ScaleController` evaluation for `ARBORA-CAPACITY-R750.753`. Shape: `AuthenticatedSignalProvider`, `SignalReadPolicy`, `ReplayGuard` and `SignalSummary` in `arbora/fleet/scaling/scaling_signal_authority.py`. | Test: `tests/fleet/scaling/test_scaling_signal_authority.py::test_scope_source_freshness_and_authentication_are_enforced` (L1).
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_scaling_signal_authority.py:22
ARBORA-CAPACITY-R750.752
Idempotent scale-intent reconciliation
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Idempotent scale-intent reconciliation.** `scaling_intent_reconciler.py` persists an intent before it calls the actuator. A duplicate delivery replays the recorded result and makes no second call. Crash recovery never actuates a recorded result twice. A retry keeps the execution key and takes a newer fenced lease. A changed target or revision under the same key fails closed. A dry run never calls the actuator. A denied intent needs an audited break-glass approval before actuation. Caller chain: no production code calls it yet. The planned caller is `ThrottleController.run()` (new) in `apply` of `ARBORA-CAPACITY-R001.3.3` for a replica change. Shape: `ScaleIntentReconciler` and the records `ScaleIntentRecord`, `ScaleExecutionRecord` and `BreakGlassAudit` in `arbora/fleet/scaling/scaling_intent_reconciler.py`. | Test: `tests/fleet/scaling/test_scaling_intent_reconciler.py::test_persists_before_actuation_and_replays_duplicates` (L1).
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_scaling_intent_reconciler.py:25
ARBORA-CAPACITY-R750.753
Service-surface scale evaluator
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Service-surface scale evaluator.** `service_scale_units.py` returns one deterministic decision per scale unit. The inputs are signal, capacity, quota, continuity and load-safety observations. Stale or missing evidence blocks scaling. An exhausted provider quota, saturated engine axes, active sessions and overload also block scaling. Caller chain: no production code calls it yet. The planned caller is the controller loop of `ARBORA-CAPACITY-R001.4`, which feeds observations to the evaluator. Shape: `evaluate_scale(...)` returning `ScaleDecision` in `arbora/fleet/scaling/service_scale_units.py`, with `SurfaceProfile` and `ScaleUnitContract`. | Test: `tests/fleet/scaling/test_service_scale_units.py::test_unsafe_or_missing_evidence_blocks_scaling` (L1).
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_service_scale_units.py:31
ARBORA-CAPACITY-R750.754
Attested resource-pool placement
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Attested resource-pool placement.** `resource_pool_authority.py` places a requirement only on a fresh, attested pool. The known capabilities of that pool must satisfy the requirement. Unknown, unverified or stale capability gives a denial with a named reason. The result does not depend on pool order. Caller chain: no production code calls it yet. The planned caller is the placement step of the scaling controller for `ARBORA-CAPACITY-R750.753`. Shape: `place(...)` returning `PlacementDecision` in `arbora/fleet/scaling/resource_pool_authority.py`, with `ResourcePoolSnapshot` and `PlacementRequirement`. | Test: `tests/fleet/scaling/test_resource_pool_authority.py::test_unqualified_unknown_or_stale_pools_are_denied` (L1).
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_resource_pool_authority.py:27
ARBORA-CAPACITY-R750.755
Engine-native reservation and development-lane transport
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Engine-native reservation and development-lane transport.** `resource_reservation.py` and `development_lane.py` expose only the typed synchronous engine operations. They refuse an async client. They refuse an engine that does not advertise the operation. They refuse a status result larger than the requested limit. Caller chain: no production code calls it yet. The planned caller is the development-lane scheduling step of the scaling controller. Shape: `EngineNativeReservationTransport` in `arbora/fleet/scaling/resource_reservation.py` and `EngineNativeDevelopmentLaneTransport` in `arbora/fleet/scaling/development_lane.py`, with `NativeReservationUnavailable`. | Test: `tests/fleet/scaling/test_resource_reservation.py::test_transport_fails_closed` (L1).
requirementARBORA-CAPACITYVERIFIED43b17c4d919c
tests/fleet/scaling/test_resource_reservation.py:14
ARBORA-CAPACITY-R751
Throttle actuation asks the engine to evaluate a capacity proposal
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Throttle actuation asks the engine to evaluate a capacity proposal.** Before arbora raises a limit, `arbora/fleet/throttle_service.py` builds a proposal from its `ThrottleDecision` and calls `Decide` with `capacity_proposal`. Arbora applies the change only on `allow`. It then reads the applied state back. It records a receipt bound to the proposal digest. Narrowing needs no call. Depends: `MEDULLA-DECISION-ENGINE-R824`. Caller chain: `ThrottleController.run()` (new, `arbora/fleet/throttle_service.py`) → `judge` and `apply` of `arbora/fleet/capacity_proposals.py` (rows `ARBORA-CAPACITY-R001.3.2` and `.3.3`); no code calls the engine for a raise today. Shape: the raise path of `ThrottleController` in `arbora/fleet/throttle_service.py` reuses `build_proposal`, `judge`, `apply` and `read_back` of `arbora/fleet/capacity_proposals.py`; a narrowing decision skips `judge`. | Test: `tests/fleet/test_throttle_service.py::test_raise_requires_allow_verdict` (L3) against a loopback medulla engine.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R752
Per-model concurrency applies the engine decision
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Per-model concurrency applies the engine decision.** `arbora/fleet/throttle_service.py` asks `Decide` with `model_capacity` for each model endpoint. It applies the returned limit, breaker state and group slots to its inference gateway. Arbora holds no AIMD constants for models; it holds a fallback limit of 1 for the absence of a decision. Depends: `MEDULLA-DECISION-ENGINE-R825`. Caller chain: no Arbora code asks the engine for a model limit today. The planned caller is the inference gateway acquire path of the host bootstrap in `arbora/mcp_server/bootstrap.py` → `ModelCapacityGate.limit_for(endpoint)` (new, `arbora/fleet/throttle_service.py`) → the Medulla client adapter `Decide` call with `model_capacity`. Shape: `ModelCapacityGate` (new) in `arbora/fleet/throttle_service.py` returns the engine limit, breaker state and group slots, and the constant `FALLBACK_MODEL_LIMIT = 1` when no decision exists. | Test: `tests/fleet/test_model_capacity.py::test_limit_comes_from_engine_decision` (L3) with a recorded medulla engine.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-CAPACITY-R753
Resource grant for index jobs
Definition — ARBORA-CAPACITY / ARBORA-CAPACITY — Adaptive capacity controlCanonical requirement and verification source
**Resource grant for index jobs.** Arbora passes `max_working_bytes` from the host resource grant on each `IndexRepository` job it admits. The value never exceeds the grant. Depends: `MEDULLA-REPO-INGEST-R006.4`. Caller chain: served `ingest.index_repository` → `arbora/api/invoke/pipeline.py::invoke` → `index_repository` in `arbora/ingest/service.py` (line 268) → `IngestRunner.index_repository` (line 170). Shape: add `max_working_bytes: int` to the runner call, read from the host resource grant by a new `resource_grant_bytes()` helper in `arbora/ingest/service.py` and clamped to the grant, and pass it to the engine `IndexRepository` request. | Test: `tests/api/test_ingest_ops.py::test_index_passes_resource_grant_to_engine` (L3, planned). It asserts the grant reaches the engine request and is never exceeded. The grant is the host resource grant.
requirementARBORA-CAPACITYSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP
ARBORA-ACP — Conversational ACP gateway session projection and policy
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP-R001
Conversational ACP gateway session admission and policy
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Conversational ACP gateway session admission and policy.** Arbora admits an ACP session only for a verified principal from the existing identity path, binds the session immutably to that principal/tenant/scope snapshot, enforces configured idle and absolute expiry limits, and returns one typed `chat_adapter_unavailable` refusal for admission and messages whenever the meristem chat adapter is absent or unreachable, without a local reply or REST fallback. Split into `ARBORA-ACP-R001.1` (the arbora-owned typed session-policy model and admission/refusal check) with the transport wiring to the real ACP endpoint and the identical REST-path projection check remaining open under the parent until `ARBORA-ACP-R001.2`'s dependency is satisfied. | Unit and integration tests cover admission refusal for missing/invalid credentials, immutable binding, idle-expired refusal, absolute-expired refusal, the typed adapter-unavailable refusal on both admission and message, identical principal/tenant/scope projection against the REST path, and a status/doctor read that reports adapter and limit state without secrets.
requirementARBORA-ACPSPECIFIED9a79acee8b6c
c2a6ab839fd3
ARBORA-ACP-R001.1
Typed ACP session-policy model and fail-closed admission check
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Typed ACP session-policy model and fail-closed admission check.** arbora defines the typed `PrincipalContext`/`AcpSessionPolicy`/`AcpSessionSnapshot` model. It also defines an `AcpSessionAdmission`, which admits only a verified principal and binds the session immutably. It enforces idle and absolute expiry. When the caller-supplied chat-adapter probe reports unavailable, it refuses admission and messages with a distinct `chat_adapter_unavailable` reason. No transport is wired yet. Caller chain: an ACP request → `HostedACPAgent.new_session` (`arbora/acp/adapter.py:185`) → `AcpSessionAdmission.admit` (`arbora/acp/session_policy.py:107`) and `check_message` (line 126). Shape: `PrincipalContext` (line 44), `AcpSessionPolicy` (line 62), `AcpSessionSnapshot` (line 74), `AcpSessionAdmission` (line 95) and `AcpRefusalReason` (line 21) in `arbora/acp/session_policy.py`; the chat-adapter probe is a caller-supplied boolean `chat_adapter_available`. | Unit tests prove unauthenticated refusal, immutable principal binding, and idle- and absolute-expiry refusal. They also prove the `chat_adapter_unavailable` refusal on admission and on messages. Test: `tests/acp/test_session_policy.py::test_admit_refuses_without_principal`, `tests/acp/test_session_policy.py::test_binding_is_immutable_across_sessions`, `tests/acp/test_session_policy.py::test_check_message_refuses_when_idle_limit_exceeded`, `tests/acp/test_session_policy.py::test_check_message_refuses_when_absolute_limit_exceeded_despite_activity` and `tests/acp/test_session_policy.py::test_admit_refuses_when_chat_adapter_unavailable`.
requirementARBORA-ACPVERIFIED9a79acee8b6c
c2a6ab839fd3
tests/acp/test_session_policy.py:31
tests/acp/test_session_policy.py:71
ARBORA-ACP-R001.3
Model
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Model.** Arbora defines `CodingSessionRequest` (workspace root, declared client capabilities), `WorkspaceGrant` (root, capability, standing flag) and `CodingSessionAdmitted` as frozen types. They live in new `arbora/acp/coding_session.py`, beside `AcpSessionSnapshot` at `arbora/acp/session_policy.py:68`. The snapshot gains no mutable field. Client capabilities use the ACP names: `fs/read_text_file`, `fs/write_text_file`, `terminal/create`, `terminal/output`, `terminal/wait_for_exit`, `terminal/kill`, `session/request_permission`. Caller chain: `session/new` → `HostedACPAgent.new_session` (`arbora/acp/adapter.py:185`) → `CodingSessionAdmission.admit` (`arbora/acp/coding_session.py:85`). Shape: frozen dataclasses `CodingSessionRequest` (line 35), `WorkspaceGrant` (line 51) and `CodingSessionAdmitted` (line 66) and the enum `ClientCapability` (line 17) in `arbora/acp/coding_session.py`, built on `AcpSessionSnapshot` of `arbora/acp/session_policy.py`. | `tests/acp/test_coding_session.py` asserts the types are frozen, reject an empty root, and reject an undeclared capability name. Test: `tests/acp/test_coding_session.py::test_frozen_model_and_no_grant_injection`, `tests/acp/test_coding_session.py::test_empty_roots_refused` and `tests/acp/test_coding_session.py::test_unknown_capabilities_refused`.
requirementARBORA-ACPVERIFIEDfa860a640a8d
tests/acp/test_coding_session.py:34
ARBORA-ACP-R001.4
Behavior: workspace trust and permission rules for coding sessions
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Behavior: workspace trust and permission rules for coding sessions.** Subsystem: ACP coding sessions. Caller: `session/new` and each client-capability request → `arbora/acp/adapter.py::HostedACPAgent` → `arbora/acp/coding_session.py::CodingSessionAdmission`. `admit` already refuses a root outside the trusted set with `UNTRUSTED_ROOT`. This row adds `CodingSessionAdmission.decide_effect(session, method, *, client_connected, chat_adapter_available, now) -> EffectDecision`. Rule `permission_rule`: `fs/read_text_file` passes. `fs/write_text_file` and every `terminal/*` method need one `session/request_permission` answer. A standing `WorkspaceGrant` for the same root and method skips it. The client answers `allow_once`, `allow_always` or `reject`. The first gives outcome `granted`. The second gives `granted` and adds a standing grant. The third gives `denied`. A standing grant gives outcome `standing`. Trusted roots come from config key `ACP_TRUSTED_ROOTS` in `~/.config/arbora/config.json`: a list of absolute paths, default empty, which admits nothing. A root matches only by exact string equality. Grants live on the in-memory session only and end with it. Refusals: see `ARBORA-ACP-R001.6`. Depends: `ARBORA-ACP-R001.1`. Caller chain: `session/new` and each client-capability request → `HostedACPAgent` (`arbora/acp/adapter.py:86`) → `CodingSessionAdmission.decide_effect` (new method beside `admit` and `check_capability` at `arbora/acp/coding_session.py:85` and `:100`). Shape: add `EffectDecision` (frozen dataclass: `outcome`, `refusal_reason`) and `decide_effect` to `arbora/acp/coding_session.py`; reuse `WorkspaceGrant` for the standing grant and `AcpRefusal` of `arbora/acp/session_policy.py`; the trusted roots reach it through `HostedInvocation.configure_acp(trusted_roots=...)` (`arbora/mcp_server/hosted_invocation.py:50`). | Test (planned): `tests/acp/test_coding_session_behavior.py::test_trusted_root_read_write_and_standing_grant` (L2) asserts admission and a passing read. It asserts that a write needs permission and a standing grant skips the prompt.
requirementARBORA-ACPSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP-R001.5
Wiring: the effect path reaches the session policy
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Wiring: the effect path reaches the session policy.** Subsystem: ACP coding sessions. Caller: `POST {prefix}/acp/connections` → `arbora/acp/http_transport.py::register_acp_routes` (registered by `arbora/gateway/graph_api.py`) → `HostedACPAgent.new_session` → `CodingSessionAdmission.admit`. `new_session` is wired today. This row wires the effect path. `_ReadTransport.call` in `arbora/acp/adapter.py` handles reads. A new `_EffectTransport.call` in the same file handles `fs/write_text_file` and `terminal/*`. It calls `decide_effect` and sends `session/request_permission` to the client when the decision needs one. It forwards the request over the same connection only after a `granted` or `standing` outcome. The transport registers with `iterate_client_run` through the run plan's client tools. The host passes `ACP_TRUSTED_ROOTS` to `HostedInvocation.configure_acp` (`arbora/mcp_server/hosted_invocation.py`). Depends: `ARBORA-ACP-R001.4`. Caller chain: `POST {prefix}/acp/connections` → `register_acp_routes` (`arbora/acp/http_transport.py:454`, called at `arbora/gateway/graph_api.py:323`) → `_Gateway.endpoint` (line 424) → `HostedACPAgent.new_session` (`arbora/acp/adapter.py:185`) → `CodingSessionAdmission.admit`; the effect path continues → `_EffectTransport.call` (new) → `decide_effect`. Shape: add class `_EffectTransport` beside `_ReadTransport` (`arbora/acp/adapter.py:393`) with the same `call(method, params)` signature; it sends `session/request_permission` through the connected `acp.Client` held by `HostedACPAgent.on_connect` (line 147) and registers with `iterate_client_run` as a client tool. | Test: `tests/acp/test_acp_routes_wiring.py::test_effect_path_reaches_decide_effect` (L3) opens a session through the registered route and asserts `decide_effect` ran for a write.
requirementARBORA-ACPSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP-R001.6
Refusal: typed reasons return before any forwarded request
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Refusal: typed reasons return before any forwarded request.** Subsystem: ACP coding sessions. Code: `AcpRefusalReason` in `arbora/acp/session_policy.py`. Existing values `UNTRUSTED_ROOT`, `CAPABILITY_NOT_DECLARED`, `CLIENT_DISCONNECTED` and `PERMISSION_REQUIRED` stay. This row adds `PERMISSION_DENIED`. `UNTRUSTED_ROOT` applies at `session/new`. `CAPABILITY_NOT_DECLARED` applies to a method outside the client's declared set. `PERMISSION_DENIED` applies when the client answers `reject` or cancels. `CLIENT_DISCONNECTED` applies when no client is connected. Each reason returns as the ACP error code -32001 with `data.reason` before any forwarded request. Depends: `ARBORA-ACP-R001.4`. Caller chain: a client request on an open session → `_EffectTransport.call` (new, `arbora/acp/adapter.py`) or `HostedACPAgent.new_session` (line 185) → `CodingSessionAdmission.decide_effect` or `admit` → `AcpRefusal` (`arbora/acp/session_policy.py:35`) → the ACP error response. Shape: add the member `PERMISSION_DENIED = "permission_denied"` to `AcpRefusalReason` (line 21); map every member to ACP error code -32001 with `data.reason` in one helper in `arbora/acp/adapter.py`; reuse `AcpRefusal` as the only exception. | Test: `tests/acp/test_coding_session_refusal.py::test_each_reason_is_typed_and_forwards_nothing` (L2) asserts each reason and zero forwarded requests.
requirementARBORA-ACPSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP-R001.7
Evidence: one trace record per admission and capability request
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Evidence: one trace record per admission and capability request.** Subsystem: ACP coding sessions. Caller: `HostedACPAgent.new_session` and `_EffectTransport.call` → `arbora/acp/trace.py::emit_acp_record` (new) → the logger `arbora.observability.acp`. Fields: `session_id`, `principal_id`, `tenant`, `workspace_root`, `capability`, `permission_outcome` (`standing`, `granted`, `denied`) and `refusal_reason`. The record carries no file content and no command output. The logger uses the standard OpenTelemetry exporter configured by `arbora/observability/telemetry.py::configure_standard_otel`. Depends: `ARBORA-ACP-R001.5`. Caller chain: `HostedACPAgent.new_session` (`arbora/acp/adapter.py:185`) and `_EffectTransport.call` (new) → `emit_acp_record` (new, `arbora/acp/trace.py`) → logger `arbora.observability.acp`. Shape: new module `arbora/acp/trace.py` with one function `emit_acp_record(record)` and a frozen `AcpTraceRecord` dataclass holding the listed fields; the OpenTelemetry exporter is set up by `configure_standard_otel` in `arbora/observability/telemetry.py` and this row adds no second exporter. | Test: `tests/acp/test_coding_session_evidence.py::test_record_fields_without_content` (L2) asserts the fields for an admit, a granted write and a denied command.
requirementARBORA-ACPSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP-R001.8
Hot-path proof: coding session over the registered route
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Hot-path proof: coding session over the registered route.** Subsystem: ACP coding sessions. Entry point: ACP method `session/new` on `POST /api/acp/connections`. The test opens a session with a trusted temporary root against a fake connected client. The agent requests `fs/read_text_file` and `fs/write_text_file`. The read passes and the write waits for `session/request_permission`. An untrusted root refuses at `session/new` with `untrusted_root`. Depends: `ARBORA-ACP-R001.5`, `ARBORA-ACP-R001.7`. Caller chain: `POST /api/acp/connections` → `register_acp_routes` (`arbora/acp/http_transport.py:454`) → `_Gateway.endpoint` (line 424) → `HostedACPAgent.new_session` → `CodingSessionAdmission.admit` → `_EffectTransport.call` (new). Shape: new test module `tests/acp/test_coding_session_hot_path.py` that reuses the real-HTTP fixtures of `tests/acp/test_http_transport.py` and a fake connected client; the test adds no production module. | Test: `tests/acp/test_coding_session_hot_path.py::test_read_passes_write_waits_untrusted_root_refused` (L3) runs through the registered route with tenant context and a foreign-principal refusal.
requirementARBORA-ACPSPECIFIEDNo recorded commit/test evidence
ARBORA-ACP-R001.9
Serve bounded read and preview duplex sessions
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Serve bounded read and preview duplex sessions.** Register the authenticated JSON-RPC/SSE route in the shared gateway. Bind each transient connection to the existing verified caller and coding admission snapshot. Correlate bounded client responses, order events, cancel on disconnect, and refuse cross-caller reuse and replay. The local read/preview profile drives AU's received plan with client tools only. The central child retains native planning and server tools. Forward reads; preview writes and commands but return permission_required before any effect request. | Real isolated HTTP/SSE client tests read a temporary file, receive a diff and command preview in order, and prove no write or command dispatch. Missing authority, wrong caller, undeclared reads, stale or duplicate responses, disconnect and queue limits refuse. Durable approvals and effect execution remain owned by the original parent rows.
requirementARBORA-ACPVERIFIED1d09ef1c3109
1fa25a22c11b
22e9d05f8292
552743f1bd41
63fdf0fb0545
tests/acp/test_adapter.py:12
tests/acp/test_central_runtime.py:39
tests/acp/test_http_transport.py:28
tests/acp/test_local_history.py:13
tests/acp/test_local_runtime.py:12
ARBORA-ACP-R001.9.1
Project admitted AU runs through the ACP SDK
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Project admitted AU runs through the ACP SDK.** Reuse the received RunRequest and AU native streaming observer, session policy and Pydantic coding presenter. Provide an explicitly composed stdio server without a second agent loop or history store. Bound transient sessions, prompts and all outgoing updates. Revalidate the caller after awaited admission. Resolve client paths lexically to absolute workspace paths; the client still owns filesystem containment. Permit declared reads and non-executing effect previews only. Owner cancellation and teardown remain possible after expiry. Caller chain: `arbora/acp/local_runtime.py::main` (line 123) → `compose_local` (line 44) → `arbora/acp/stdio_transport.py::serve` (line 38) → `HostedACPAgent` (`arbora/acp/adapter.py:86`) → the received AU run. Shape: `HostedACPAgent` and `_ReadTransport` in `arbora/acp/adapter.py`, `_BoundedReader` in `arbora/acp/stdio_transport.py`, `LocalConversationHistory` in `arbora/acp/local_history.py`; reuse the SDK codec and add no second agent loop. | Real SDK subprocess tests initialize, open sessions, stream text, read a temporary client file, cancel active model and read waits, and refuse path escapes, unsupported effects/recovery, identity changes and bounds. Scripted models and synthetic host authority are explicit. Installed-wheel, remote-auth and durable-history acceptance are separate. Test: `tests/acp/test_adapter.py::test_real_stdio_streams_au_text_and_reads_client` and `tests/acp/test_adapter.py::test_real_stdio_cancel_stops_run_then_accepts_new_prompt`.
requirementARBORA-ACPVERIFIED1d09ef1c3109
1fa25a22c11b
63fdf0fb0545
6718f48d0520
6e22275807ca
tests/acp/test_adapter.py:12
tests/acp/test_local_history.py:13
tests/acp/test_local_runtime.py:12
tests/acp/test_native_observer.py:15
tests/acp/test_session_policy.py:135
ARBORA-ACP-R001.9.2
Mount the authenticated experimental HTTP/SSE profile
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Mount the authenticated experimental HTTP/SSE profile.** Register the shared ACP projection through the gateway's existing identity path. Bind every message to the original verified principal, tenant and scopes; never accept identity or credentials from a query string or JSON-RPC body. Bound frames, connections, queues and response correlation. Refuse duplicate IDs, stale responses and SSE replay. Cancel active AU work on disconnect. Caller chain: `POST {prefix}/acp/connections` → `register_acp_routes` (`arbora/acp/http_transport.py:454`, called at `arbora/gateway/graph_api.py:323`) → `_Gateway.endpoint` (line 424) → `_Connection` (line 112) → `HostedACPAgent`. Shape: `AcpHttpLimits` (line 40), `_Connection` (line 112) with `accept` (line 191), `_correlate` (line 201) and `events` (line 216), and `_Gateway` (line 336) in `arbora/acp/http_transport.py`; identity comes from the gateway middleware through `_authority` (line 227). | Real HTTP/SSE tests use the SDK codec and temporary client workspace. Prove unauthorized and cross-caller refusal, ordered streaming, bounded backpressure, duplicate/stale response refusal and disconnect cancellation. This custom profile is not standardized Streamable HTTP or durable replay. Test: `tests/acp/test_http_transport.py::test_real_http_sdk_stream_and_client_file_read`, `tests/acp/test_http_transport.py::test_carrier_refuses_foreign_identity_replay_and_duplicate` and `tests/acp/test_http_transport.py::test_sse_disconnect_cancels_active_model_without_replay`.
requirementARBORA-ACPVERIFIED1d09ef1c3109
552743f1bd41
tests/acp/test_http_transport.py:28
ARBORA-ACP-R001.9.3
Governed central final answer
Definition — ARBORA-ACP / ARBORA-ACP — Conversational ACP gateway session projection and policyCanonical requirement and verification source
**Governed central final answer.** An opt-in factory uses the existing authenticated `agents.run` operation, native task plan and server tools. Bind the actual admitted task/run receipt; publish only its committed final answer. Refuse continuation and nonterminal outcomes. Confirm cancellation through the task owner and readback, otherwise report uncertainty. Bearer renewal supplies the current caller only with unchanged verified authorization and verifier configuration. Caller chain: `HostedInvocation.configure_acp` (`arbora/mcp_server/hosted_invocation.py:50`) → `configure_central_acp` (`arbora/acp/central_runtime.py:262`) → `CentralACPFactory.__call__` (line 97) → the authenticated `agents.run` operation → `_turn` (line 150) and `_cancel` (line 221). Shape: `CentralACPFactory` (line 50), `_committed_answer` (line 26) and `configure_central_acp` in `arbora/acp/central_runtime.py`; the factory reuses the `agents.run` operation and adds no second run path. | Real SDK/HTTP tests cover final answer, private-event exclusion, nonterminal refusal, cancellation before and after admission, uncertain settlement and renewed credentials. Controlled model and owner ports are not live storage or installed-wheel proof. Test: `tests/acp/test_central_runtime.py::test_central_actual_dependency_run_projects_only_committed_answer`, `tests/acp/test_central_runtime.py::test_central_cancel_waits_for_owner_cancel_and_readback` and `tests/acp/test_central_runtime.py::test_same_identity_renewal_feeds_current_prompt_not_creation_credentials`.
requirementARBORA-ACPVERIFIED1d09ef1c3109
22e9d05f8292
63fdf0fb0545
acce0c4440af
df0d500bbd64
tests/acp/test_central_runtime.py:39
ARBORA-DATA-MARKET
ARBORA-DATA-MARKET — Schema context, source admission, and finance projection
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R001
Durable, deduplicated flip alert delivery
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Durable, deduplicated flip alert delivery.** Stage: arbora host background consumer. Entry: host bootstrap starts `arbora/finance/alert_consumer.py::FlipAlertConsumer.run` under the service principal. Caller chain: host bootstrap → `FlipAlertConsumer.run` → engine `TaskQueueClaim` on queue `finance.alert.trend_flip`. The producer is MEDULLA-FINANCE-PRIMITIVES-R011.2.2 and the claim pair is MEDULLA-DURABLE-KERNEL-R072. Then → `alerts.py::record_alert_delivery` → `arbora/messaging/action_dispatch.py::send_notification` → `TaskQueueAck`. Rule: the receipt key is `<event_id>:<subscriber_id>` in the tenant, kind `alert_delivery`. The consumer calls `FinanceReceiptStore.claim` (ARBORA-DATA-MARKET-R001.1) before it sends, and `complete` after. A key already claimed is acknowledged without a send. A claim with no completion after `alerts.redeliver_after_s` is not resent; it raises the operator event `DELIVERY_UNCERTAIN`. Config: `~/.config/arbora/finance.yml` key `alerts.subscribers` (list of `subscriber_id`, `channel`, `target`) and `alerts.redeliver_after_s` (default 300, [30, 3600], seconds). The consumer holds no order port, so an alert never authorizes an order or changes a portfolio. Scope: the subscriber needs `finance:alerts`. Refusals: `UNAVAILABLE` when the store or queue is absent; the consumer then acknowledges nothing. Writes: receipts only. The consumer topic is `finance.events.v1`. The producer door is `MEDULLA-FINANCE-PRIMITIVES-R011.2.3`. Alerts are deduplicated by tenant, event id and subscriber. Depends: ARBORA-DATA-MARKET-R001.1, MEDULLA-FINANCE-PRIMITIVES-R011.2.2. Shape: new `arbora/finance/alert_consumer.py::FlipAlertConsumer`; reuse `FlipAlertDelivery` and `record_alert_delivery` (`arbora/finance/alerts.py`, line 65) and swap its `AlertDeliveryStore` for `FinanceReceiptStore`; config parsed from `finance.yml` into one closed model. | Test: `tests/finance/test_alert_consumer_served.py::test_restart_and_redelivery_yield_one_alert` (L3) runs a loopback engine queue and channel. It restarts the host and asserts one alert, the uncertain case and no order port.
requirementARBORA-DATA-MARKETVERIFIED9bef28855538
e61c0e3df8b7
tests/finance/test_receipt_store_served.py:18
tests/finance/test_receipt_store_served.py:46
ARBORA-DATA-MARKET-R001.1
Durable finance receipt store
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Durable finance receipt store.** Stage: arbora host. Shape: new `arbora/finance/receipt_store.py::FinanceReceiptStore`. Its `claim`, `complete` and `state` methods replace the `seen` and `record` protocols of `alerts.py`, `schedule.py` and `dca.py`. `claim` returns true once per key. It writes and reads `FinanceReceipt` nodes (MEDULLA-FINANCE-PRIMITIVES-R011.4) through the engine client in `services`, with the tenant from the invoke context. Remove `InMemoryAlertDeliveryStore`, `InMemoryScheduleRunStore` and `InMemoryDCAProposalStore`; tests use a recorded or loopback engine. A store failure raises `UNAVAILABLE` and the caller does not acknowledge. Caller chain: host bootstrap composes the store as `finance_receipt_store`. Depends: MEDULLA-FINANCE-PRIMITIVES-R011.4. | Test: `tests/finance/test_receipt_store_served.py::test_receipt_survives_restart_and_is_tenant_scoped` (L3) restarts the host between two writes. It asserts one node and zero cross-tenant visibility.
requirementARBORA-DATA-MARKETVERIFIED9bef28855538
tests/finance/test_receipt_store_served.py:18
tests/finance/test_receipt_store_served.py:46
ARBORA-DATA-MARKET-R002
Scheduled finance backfill, scan, and explanation jobs
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Scheduled finance backfill, scan, and explanation jobs.** Stage: arbora host scheduled job. Entry: host bootstrap starts `arbora/finance/scheduler.py::FinanceScheduler.run`, which ticks every `scheduler.tick_s` seconds. No scheduler exists in arbora today; this row adds it. Caller chain: host bootstrap → `FinanceScheduler.run` → `arbora/finance/schedule.py::record_schedule_run` → the job for the entry `action`. Jobs: `backfill` calls the ingest operation `ingest.run` (ARBORA-OPS-R020) with the history source. `scan` calls `market.signal_scan` (ARBORA-DATA-MARKET-R003.8). `explain` starts `agents.run` (ARBORA-OPS-R023) with the exact scan result digests as inputs. Each entry holds `tenant_id`, `owner`, `action`, `timezone` (IANA), `trigger`, and the grant it runs under: `finance:backfill`, `finance:track` or `finance:read`. The run uses the owner's delegated grant and refuses when the owner lost it. Triggers: `daily@HH:MM`, `weekly:<mon..sun>@HH:MM` and `interval:<seconds>` with a minimum of 60. The key is `<entry_id>:<local wall time ISO 8601 with zone name>`. A skipped wall time fires once at the next valid instant. A repeated wall time fires on its first pass only. The run claims the key in `FinanceReceiptStore` (ARBORA-DATA-MARKET-R001.1) with kind `schedule_run`, and records `last_run` on completion. Config: `~/.config/arbora/finance.yml` keys `schedules` and `scheduler.tick_s` (default 30, [5, 300], seconds). Refusals: `SCOPE_REQUIRED` for a lost grant, `INVALID_ARGUMENT` for a bad trigger or zone, `UNAVAILABLE` without the store. Scheduled price and DCA jobs call `FinanceAlertRaise` (`MEDULLA-FINANCE-PRIMITIVES-R011.2.3`). Depends: ARBORA-DATA-MARKET-R001.1, ARBORA-DATA-MARKET-R003.8, `MEDULLA-FINANCE-PRIMITIVES-R011.2.3`. Shape: new `arbora/finance/scheduler.py::FinanceScheduler`; reuse `FinanceScheduleEntry` and `record_schedule_run` (`arbora/finance/schedule.py`, line 70) and swap its `ScheduleRunStore` for `FinanceReceiptStore`; the trigger grammar is one parser function in the same module. | Test: `tests/finance/test_scheduler_served.py::test_dst_and_replay_run_each_occurrence_once` (L3) runs the scheduler against a loopback engine across both daylight-saving transitions. It asserts one run per occurrence and the lost-grant refusal.
requirementARBORA-DATA-MARKETLANDED57391db3828f
ARBORA-DATA-MARKET-R003
Server-side finance and markets reads, paper submission and market compute (rollup)
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Server-side finance and markets reads, paper submission and market compute (rollup).** Stage: served operations. Children `.1` to `.7` deliver it. Reads: `markets.*`, `events.*` and `orders.*` (`.1` to `.6`). Paper order submission: `orders.submit_paper` (`.7`). Compute: `market.*` operations that call medulla `Finance*` methods (ARBORA-DATA-MARKET-R003.13 to ARBORA-DATA-MARKET-R003.12). Venue calls stay in emerald; every calculation is medulla's. Caller chain for reads: `POST /api/v1/ops/<op_id>` or MCP `ask` → `arbora/api/ops/finance.py::operations` → `finance_read_port`. The port reaches an emerald tool through the fleet call path (EMERALD-OPS-R005). Every read needs `finance:read`. An unverified tenant or account binding returns typed unavailable before any provider call. Group w37 covers the remaining medulla finance rows; the compute callers cross-link to MEDULLA-FINANCE-PRIMITIVES-R900 and R901. | Test: `tests/mcp_server/test_data_market_reads_served.py` (L3) passes for `.1` to `.6`, and `test_orders_submit_paper_served.py` (L3) passes for `.7`.
requirementARBORA-DATA-MARKETSPECIFIED57391db3828f
b1ee0584dbba
ARBORA-DATA-MARKET-R004
One-at-a-time application admission with rollback
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**One-at-a-time application admission with rollback.** Stage: served effect operations `apps.admit` and `apps.retire_connector`, both `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, scope `federation:admin`. Caller chain: `POST /api/v1/ops/apps.admit` or MCP `manage` → new `arbora/api/ops/apps.py::handle_apps_admit` → `arbora/control_plane/admission/run.py::AdmissionRun.advance`. States: `planned`, `approved`, `probing`, `admitted`, `rolled_back`, `retired`. The run reads state from the engine and holds none itself. Only one run per tenant may be active; a second returns `CONFLICT`. Plan: a dry run lists the source, mapping and parity tables. Approval is the governed change of kind `governed.source-authority` (MEDULLA-SRC-AUTH-R003.1) approved under `governance:approve-source-authority`. Probes: health calls `federation.sources.probe`. Parity compares row counts per table with the old connector's ingested data. It also compares a digest of up to `data_apps.parity_sample` sampled keys. Config: `~/.config/arbora/data_apps.yml` key `data_apps.parity_sample` (default 1000, [10, 100000]). The rollback fence is the plan idempotency key. On a failed probe or a crash, the run detaches the new source and leaves the old connector untouched. `apps.retire_connector` refuses until the state is `admitted`, parity passed and its own approval exists. Refusals: `CONFLICT`, `POLICY_DENIED`, `PARITY_FAILED`, `UNAVAILABLE`. Depends: MEDULLA-SRC-AUTH-R003.1, ARBORA-OPS-R019. Shape: new `arbora/control_plane/admission/run.py::AdmissionRun` (states as a closed enum) beside the existing dry-run planner `plan_admission` (`arbora/control_plane/admission/service.py`, line 49) with `AdmissionIntent` and `AdmissionPlan` (`arbora/control_plane/admission/models.py`, lines 25 and 40), which the plan step reuses; handlers `handle_apps_admit` and `handle_apps_retire_connector` in new `arbora/api/ops/apps.py`. | Test: `tests/data_apps/test_admission_served.py::test_failed_admission_rolls_back_without_retiring_prior_connector` (L3) injects a fault and a restart against a loopback engine. It asserts the rolled-back state and the untouched connector.
requirementARBORA-DATA-MARKETLANDED33622be01de7
fd761d59a171
ARBORA-DATA-MARKET-R005
schema_context query surface for tables and ontology mappings
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**schema_context query surface for tables and ontology mappings.** Stage: served read. Entry: `POST /api/graph/schema/context` (`arbora/gateway/schema_context_api.py::register_schema_context_routes`) and the MCP `ask` operation `schema_context`. Caller chain: route → `arbora/gateway/schema_context_service.py::get_schema_context` → `engine.schema_context` → medulla `SchemaContext` (MEDULLA-UNIFIED-DATA-PLANE-R029.2). Request model `SchemaContextRequest` in `arbora/gateway/schemas/schema_context.py`, with intents `definition`, `joins`, `ontology`, `owner` and `impact`. Scope: `graph:read`. Arbora composes and projects; it derives no fact. Unverified and inferred relationships return with `status` set to `proposal`. Refusals: `UNAVAILABLE` when the engine client lacks `schema_context` or the source has no approved catalog snapshot. It never returns a fabricated answer. Register the MCP operation in `arbora/api/ops/query.py::operations`. Writes: none. Depends: MEDULLA-UNIFIED-DATA-PLANE-R029.2. Shape: reuse `SchemaContextRequest` (`arbora/gateway/schemas/schema_context.py`), `get_schema_context` (`arbora/gateway/schema_context_service.py`, line 36) and `register_schema_context_routes` (`arbora/gateway/schema_context_api.py`, line 63); add one `OpSpec` named `schema_context` to `arbora/api/ops/query.py::operations` (line 18) that calls the same service. | Test: `tests/gateway/test_schema_context_served.py::test_each_intent_over_http_and_mcp_and_unsupported_source` (L3) uses a recorded engine reply per intent. It asserts the proposal label and the unavailable result.
requirementARBORA-DATA-MARKETLANDED0a1beb2aae13
44ba09589820
8a7010bd6592
ARBORA-DATA-MARKET-R006
Recurring DCA plans with deterministic, non-duplicating proposals
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Recurring DCA plans with deterministic, non-duplicating proposals.** Stage: scheduled job `dca_due` of `FinanceScheduler` (R002). Served operations: `dca.plans.set` and `dca.plans.pause`, scope `finance:track`. Caller chain: `FinanceScheduler.run` → `arbora/finance/dca.py::record_dca_proposal` → `FinanceReceiptStore.claim` (ARBORA-DATA-MARKET-R001.1, kind `dca_proposal`). A plan holds `owner`, `tenant_id`, `symbol`, `account_binding`, `amount` (decimal string), `currency` and `timezone`. It also holds `recurrence` (the trigger grammar of R002), `bounds`, `paused` and `mode` (`paper` or `live`). The proposal key is `build_dca_proposal_key(plan, occurrence)`: the plan revision digest plus the occurrence wall time. Replay and clock drift produce the same key and one proposal. The proposal sizing math is medulla's: arbora calls the DCA evaluator `MEDULLA-FINANCE-PRIMITIVES-R007.1` through the strategy route and holds no formula. Paper mode submits through `orders.submit_paper` (R003.7). Live mode stays proposal-only until a human approves the exact preview (ARBORA-OPS-R015). A connector then consumes a write-back lease through the governed path of ARBORA-FLEET-R003 and SCION-GOVERNED-WRITEBACK-R001. A missed or failed occurrence yields the operator event `DCA_MISSED` and is never skipped or doubled. Refusals: `SCOPE_REQUIRED`, `UNAVAILABLE`, `INVALID_ARGUMENT`. Depends: R002, R003.7, ARBORA-DATA-MARKET-R001.1. Shape: reuse `DCAPlan` (`arbora/finance/dca.py`, line 36), `build_dca_proposal_key` (line 55) and `record_dca_proposal` (line 90), swapping `DCAProposalStore` for `FinanceReceiptStore`; add `dca.plans.set` and `dca.plans.pause` `OpSpec` entries in `arbora/api/ops/finance.py`. | Test: `tests/finance/test_dca_served.py::test_replay_and_clock_drift_yield_one_proposal_and_missed_is_reported` (L3) runs a loopback engine. It asserts one proposal per occurrence and the `DCA_MISSED` event.
requirementARBORA-DATA-MARKETLANDED35385208a619
e61c0e3df8b7
ARBORA-DATA-MARKET-R007
Confirmed order and position changes (rollup)
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Confirmed order and position changes (rollup).** Stage: served effect operations `orders.change`, `positions.change` and `wallet.operate`. Each is `Confirm.PLAN` with `Idempotency.KEY_REQUIRED`. Children `.1` to `.6` deliver it. Require explicit confirmation before an order or position effect. Wallet operations consume the signature contract of SCION-GOVERNED-WRITEBACK-R001.1 to R001.6. EG owns authorization; arbora serves authenticated confirmation and preserves its decision. Wallet operations stay unavailable until the producer and every durable binding exist. R003.7 owns paper submission and ARBORA-OPS-R017.2 owns subject ownership. Emerald consumers: CONN-EMERALD-EXCHANGE-XRPL-R001 and X402-R002 prepare the intents and verify signatures through the SDK. | Test: `tests/api/test_order_confirmation.py::test_wallet_proof_confirmation_and_replay` (L3) passes.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.1
Model
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Model.** Shape: `arbora/finance/changes.py` (planned, does not exist yet). `OrderChange` and `PositionChange` bind the exact intent. `WalletOperation` imports `WalletBusinessIntent` and `WalletExecutionEnvelope` from scion-sdk `scion_sdk.writeback.wallet_intent` (planned there by `SCION-GOVERNED-WRITEBACK-R001.1`). Proof and confirmation metadata stay outside the business parameters. Never embed `WalletProofRequest` in a hashed intent. The immutable projection binds authenticated tenant and actor, account, network, wallet, operation and the exact change-set identity. The read models at `arbora/finance/markets.py` do not implement this contract. Depends: SCION-GOVERNED-WRITEBACK-R001.1. Caller chain: `POST /api/v1/ops/wallet.operate` or MCP `act` → `arbora/api/invoke/pipeline.py::_effect` (line 258) → `arbora/api/invoke/plan.py::bind_plan` (line 50) → `OrderChange`, `PositionChange` and `WalletOperation` in `arbora/finance/changes.py` (new). | Test (planned): `tests/api/test_order_confirmation.py::test_models_bind_exact_intent_and_exclude_proof` (L2) asserts the projection fields and that proof is absent from the hashed intent.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.2
Behavior
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Behavior.** Stage: effect pipeline. Caller chain: `POST /api/v1/ops/wallet.operate` or MCP `act` → `arbora/api/invoke/pipeline.py::_effect` (line 258) → `arbora/api/invoke/plan.py::bind_plan` (line 50). Prepare the immutable intent and require explicit confirmation under `confirm_before_commit`. `plan_digest` comes from scion-sdk `scion_sdk.writeback.wallet_intent.wallet_plan_digest` (planned by `SCION-GOVERNED-WRITEBACK-R001.1`), so both repositories hash the same bytes. Sign after confirmation; adding proof does not change that digest. Consume the authenticated SDK proof result unchanged and match every binding before dispatch. A valid signature is not enough: EG authorization, account entitlement and a durable effect reservation are also required. Retries reuse the existing effect key. Arbora creates no second nonce or approval store. Depends: R007.1. Shape: effect handling stays in `arbora/api/invoke/pipeline.py::_effect` and `arbora/api/invoke/plan.py::bind_plan`; the digest comes from `scion_sdk.writeback.wallet_intent.wallet_plan_digest`; no new store or hashing function. | Test (planned): `tests/api/test_order_confirmation.py::test_digest_is_stable_across_signing_and_retries_reuse_effect_key` (L3) asserts the digest, the single effect and the absence of a new store.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.3
Wiring
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Wiring.** Register `orders.change`, `positions.change` and `wallet.operate` in `arbora/api/ops/finance.py::operations` through `arbora/api/ops/registry_factory.py`, each `Confirm.PLAN`. Reuse `_effect` and `bind_plan`. The handler calls the admitted connector SDK proof and governed apply composition before any provider effect. Extend `WalletExecutionEnvelope` so proof is separated before plan hashing, validation, audit and reservation. HTTP `arbora/api/http/routes.py` must pass only `envelope.params` to the operation, and MCP `arbora/api/mcp/verbs.py::_invoke_and_render` must carry the same envelope. Neither carries the extension today, so no order or wallet operation is reachable now. Emerald executes through its governed write-back sink (scion-sdk repo, `scion_sdk/writeback_sinks/sinks/emerald.py`). The `emerald-exchange` wallet tool (`EMERALD-OPS-R014`) is the connector call that composes the SDK proof gate. Depends: R007.2, ARBORA-HOST-R001.2.3, `EMERALD-OPS-R014`. Caller chain: `get_registry` (`arbora/api/ops/registry_factory.py`, line 16) → `arbora/api/ops/finance.py::operations` (new) → `arbora/api/invoke/pipeline.py::_effect` (line 258). Shape: registrations in `arbora/api/ops/finance.py::operations`; the envelope extension is carried by `WalletExecutionEnvelope` through `arbora/api/http/routes.py` and `arbora/api/mcp/verbs.py::_invoke_and_render`; reuse `_effect` and `bind_plan`. | Test (planned): `tests/api/test_order_confirmation.py::test_operations_are_registered_and_envelope_is_shared_over_http_and_mcp` (L3) asserts registration, the envelope on both routes and unavailable until bound.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.4
Refusal
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Refusal.** Return `CONFIRMATION_REQUIRED` for absent confirmation and `PLAN_MISMATCH` for intent tampering. Return `POLICY_DENIED` for an invalid proof and `UNAVAILABLE` for an absent verifier, envelope, trust or durable binding authority. Preserve the SDK typed reason in the redacted error details. No refused request reaches provider mutation. An uncertain prior effect enters reconciliation and is never retried blind. Depends: R007.3. Caller chain: `arbora/api/invoke/pipeline.py::_effect` (line 258) → the `wallet.operate`, `orders.change` and `positions.change` handlers of `arbora/api/ops/finance.py` → the typed refusal mapping of the invoke pipeline. Shape: refusal codes are the existing typed codes of the invoke pipeline; one mapping function in `arbora/finance/changes.py` converts the SDK reason into a redacted error detail. | Test (planned): `tests/api/test_order_confirmation.py::test_each_refusal_code_reaches_no_provider_mutation` (L3) submits one case per code and asserts zero mutation calls.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.5
Evidence
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Evidence.** Record request, tenant, actor, plan and confirmation in the existing audit record (`arbora/api/invoke/audit.py::audit_event`, ARBORA-OPS-R036). Join the EG authorization, proof digest, signer, trust revision and effect receipt. Preserve the SDK verification outcome unchanged. Never log a raw signature, private key or reusable proof body. Depends: R007.4. Caller chain: `arbora/api/invoke/pipeline.py::_effect` (line 258) → `arbora/api/invoke/audit.py::audit_event` (line 13) with the joined authorization, proof digest and effect receipt. Shape: one call to `arbora/api/invoke/audit.py::audit_event` with extra join fields; no new audit store. | Test (planned): `tests/api/test_order_confirmation.py::test_audit_joins_authorization_and_proof_digest_without_secrets` (L3) reads the audit record and asserts the joins and the absence of secrets.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.6
Hot-path proof
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Hot-path proof.** Entry: `POST /api/v1/ops/{op_id}` and its MCP twin. Use the real SDK verifier, synthetic keys, durable graph authority and a controlled provider. Serve prepare, confirm, sign and execute; proof insertion keeps the intent digest and yields one effect. Missing confirmation, altered account, network or payload, a revoked key, expiry and an unavailable producer yield no effect. Concurrent retries and a restart read the same effect receipt without another mutation. Depends: R007.5. Caller chain: `POST /api/v1/ops/{op_id}` → `arbora/api/http/app.py::create_api_application` (line 58) → `_effect`; MCP: `arbora/api/mcp/serving.py::register_intent_surface` (line 29) → `act` → `_effect`. Shape: one integration test module `tests/api/test_order_confirmation.py` that drives both routes with a synthetic key, a loopback authority and a controlled provider; no production code beyond rows R007.1 to R007.5. | Test (planned): `tests/api/test_order_confirmation.py::test_wallet_proof_confirmation_and_replay` (L3) runs the journey over both routes and asserts one effect.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.1
Market list/search/get
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Market list/search/get.** Stage: served read operations `markets.list`, `markets.search` and `markets.get`, scope `finance:read`. Caller chain: `POST /api/v1/ops/markets.list` or MCP `ask` → `arbora/api/ops/finance.py::handle_markets_list` → `finance_read_port.list_markets` → `FleetFinanceReadPort` (`arbora/finance/fleet_read_port.py`) → emerald tool `emerald_exchange_list_markets` (EMERALD-OPS-R005). List and search accept `limit` (default 50, [1, 100]) and an opaque `cursor` of at most 512 bytes. They accept only these filters: `event_id`, `status`, `starts_at_from`, `starts_at_to`, `ends_at_from` and `ends_at_to`. Search also requires `query` (NFC, 1 to 200 bytes) and matches case-sensitive substrings in `question` or outcome `name`. Sort: `starts_at` ascending with nulls last, then `market_id` ascending. Get accepts only `market_id`. Refusals: `INVALID_ARGUMENT` for an unlisted field or a bad bound. `NOT_FOUND`, nonrevealing, for an inaccessible ID. `UNAVAILABLE` before dispatch when the binding is unverified. Writes: none. Depends: R003.4, R003.5, R003.6. Shape: `handle_markets_list`, `handle_markets_search` and `handle_markets_get` in new `arbora/api/ops/finance.py`; request and page models in `arbora/finance/markets.py` (closed, `extra="forbid"`, same style as `MarketReadRequest`); `FleetFinanceReadPort` in new `arbora/finance/fleet_read_port.py`, reusing the fleet call helper of `arbora/api/ops/fleet.py`. | Test: `tests/mcp_server/test_data_market_reads_served.py::test_markets_reads_served` (L3) calls all three over HTTP and MCP. It asserts filters, bounds, order, get-by-ID and zero effect calls.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.2
Event list/search/get
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Event list/search/get.** Stage: served read operations `events.list`, `events.search` and `events.get`, scope `finance:read`. Caller chain: `POST /api/v1/ops/events.list` or MCP `ask` → `arbora/api/ops/finance.py::handle_events_list` → `finance_read_port.list_events` → `FleetFinanceReadPort` (`arbora/finance/fleet_read_port.py`) → emerald tool `emerald_exchange_list_events` (EMERALD-OPS-R005). List and search accept `limit` (default 50, [1, 100]) and an opaque `cursor` of at most 512 bytes. They accept only these filters: `status`, `starts_at_from`, `starts_at_to`, `ends_at_from` and `ends_at_to`. Search also requires `query` (NFC, 1 to 200 bytes) and matches case-sensitive substrings in `title` or `description`. Sort: `starts_at` ascending with nulls last, then `event_id` ascending. Get accepts only `event_id`. Refusals: `INVALID_ARGUMENT` for an unlisted field or a bad bound. `NOT_FOUND`, nonrevealing, for an inaccessible ID. `UNAVAILABLE` before dispatch when the binding is unverified. Writes: none. Depends: R003.4, R003.5, R003.6. Shape: `handle_events_list`, `handle_events_search` and `handle_events_get` in `arbora/api/ops/finance.py`; request and page models in `arbora/finance/markets.py`; `FleetFinanceReadPort.list_events` in `arbora/finance/fleet_read_port.py`, reusing the fleet call helper of `arbora/api/ops/fleet.py`. | Test: `tests/mcp_server/test_data_market_reads_served.py::test_events_reads_served` (L3) calls all three over HTTP and MCP. It asserts filters, bounds, order, get-by-ID and zero effect calls.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.3
Order list/search/get
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Order list/search/get.** Stage: served read operations `orders.list`, `orders.search` and `orders.get`, scope `finance:read`. Caller chain: `POST /api/v1/ops/orders.list` or MCP `ask` → `arbora/api/ops/finance.py::handle_orders_list` → `finance_read_port.list_orders` → `FleetFinanceReadPort` (`arbora/finance/fleet_read_port.py`) → emerald tool `emerald_exchange_list_orders` (EMERALD-OPS-R005). List and search accept `limit` (default 50, [1, 100]) and an opaque `cursor` of at most 512 bytes. They accept only these filters: `market_id`, `status`, `side` (`buy` or `sell`), `created_at_from` and `created_at_to`. Search also requires `query` (NFC, 1 to 200 bytes) and matches case-sensitive substrings in `order_id`, `market_id` or `outcome`. Reads bind to the caller's resolved tenant and account. Sort: `created_at` descending with nulls last, then `order_id` ascending. Get accepts only `order_id`. Refusals: `INVALID_ARGUMENT` for an unlisted field or a bad bound. `NOT_FOUND`, nonrevealing, for an inaccessible ID. `UNAVAILABLE` before dispatch when the binding is unverified. Writes: none. Depends: R003.4, R003.5, R003.6. Shape: `handle_orders_list`, `handle_orders_search` and `handle_orders_get` in `arbora/api/ops/finance.py`; request and page models in `arbora/finance/markets.py`; `FleetFinanceReadPort.list_orders` in `arbora/finance/fleet_read_port.py`, reusing the fleet call helper of `arbora/api/ops/fleet.py`. | Test: `tests/mcp_server/test_data_market_reads_served.py::test_orders_reads_served` (L3) calls all three over HTTP and MCP. It asserts filters, bounds, order, get-by-ID and zero effect calls.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.4
Stable JSON projections
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Stable JSON projections.** Stage: result projection in `arbora/finance/markets.py`. Caller chain: each handler of `arbora/api/ops/finance.py` → `project_market_page`, `project_market`, `project_event_page`, `project_event`, `project_order_page`, `project_order`. Closed envelopes: `MarketPage`, `MarketGet`, `EventPage`, `EventGet`, `OrderPage`, `OrderGet` with items `MarketItem`, `EventItem`, `OrderItem`; each carries `schema_version` 1. The item keys, nullability and metadata are in `plan.md` under "Version-1 response contract". Preserve provider `source`, `as_of`, `session`, currency, unit, freshness and provenance. Never compute or invent a missing value. Decimals are strings; nullable fields are explicit null; keys are deterministic. A cursor binds tenant, account, filters, sort and snapshot. Omit provider-only fields. Refusal: `INVALID_ARGUMENT` for a cursor that fails its binding. Writes: none. Depends: R003.6. Shape: closed pydantic models `MarketPage`, `MarketGet`, `EventPage`, `EventGet`, `OrderPage`, `OrderGet`, `MarketItem`, `EventItem` and `OrderItem` plus the six `project_*` functions in `arbora/finance/markets.py`, following the `MarketReadResult` model (line 44). | Test: `tests/mcp_server/test_data_market_contracts.py::test_projection_keys_types_and_cursor_binding` (L2) pins keys, types, nulls and encodings. The served test of R003.6 compares REST and MCP JSON.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.5
Authority before provider calls
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Authority before provider calls.** Stage: admission in `arbora/api/ops/finance.py`. Caller chain: `arbora/api/invoke/pipeline.py` → each of the nine handlers → `resolve_finance_authority` (new, `arbora/finance/markets.py`) → `finance_read_port`. All nine operations require `finance:read`, which exists in the engine scope catalog (medulla repo, `crates/medulla-capabilities/src/scopes.rs`). The handler resolves tenant membership and proof of the account binding before it builds a provider request. It derives tenant and account from authority and rejects a caller-selected identity with `INVALID_ARGUMENT`. A missing or mismatched binding returns `UNAVAILABLE` before dispatch. Scope denials map under ARBORA-OPS-R010. Inaccessible IDs are nonrevealing. Preserves ARBORA-OPS-R017.1. Writes: none. Depends: ARBORA-OPS-R010. Shape: `resolve_finance_authority` in `arbora/finance/markets.py`, reusing `AccountBinding` (line 59) and `_binding_matches` (line 80); it returns a typed authority object or a typed refusal and holds no provider client. | Test (planned): `tests/mcp_server/test_data_market_reads_served.py::test_two_tenant_denials_make_zero_provider_calls` (L3) asserts zero provider calls on each denial and no cross-tenant record.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.6
Producer port, registration, and read/effect separation
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Producer port, registration, and read/effect separation.** Stage: composition. Shape: `FinanceReadPort` in `arbora/finance/markets.py` with the nine typed methods. `FleetFinanceReadPort` in `arbora/finance/fleet_read_port.py` implements it over the fleet call path of `arbora/api/ops/fleet.py`. Bind it as `finance_read_port` in `services`. `MarketProvider.market_read` stays a single-symbol read and does not implement the port. Register `arbora/api/ops/finance.py::operations` and `arbora/api/ops/market.py::operations` in `arbora/api/ops/registry_factory.py::get_registry`. REST: `NativeGatewayApplication.mount_rest_routes` → `create_api_application` → `POST /api/v1/ops/{op_id}` (ARBORA-HOST-R001.2.3). MCP: `register_intent_surface` on `/mcp`, tool `ask` with `op` and `params` (ARBORA-OPS-R029). Until both attachments are active the operations stay unavailable and this row claims no serving. Read handlers need only `finance:read` and cannot reserve a lease or reach submission. Each venue read reaches the `emerald-exchange` tool named in `ARBORA-DATA-MARKET-R003.1` to `.3` through the SDK adapter. Each calculation calls the medulla `Finance*` method named in `ARBORA-DATA-MARKET-R003.8` to `.14`. Depends: ARBORA-HOST-R001.2.3, ARBORA-OPS-R029, EMERALD-OPS-R005. Caller chain: `get_registry` (`arbora/api/ops/registry_factory.py`, line 16) → `arbora/api/ops/finance.py::operations` and `arbora/api/ops/market.py::operations` (both new) → `FinanceReadPort` bound as `finance_read_port`. | Test: `tests/mcp_server/test_data_market_reads_served.py::test_both_routes_share_provider_dispatch_and_isolate_effects` (L3) exercises both real routes. It asserts shared dispatch, denial before calls and that no lease is reserved.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.7
Paper order submission
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Paper order submission.** Stage: served effect operation `orders.submit_paper`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, scope `finance:propose-order`. Caller chain: `POST /api/v1/ops/orders.submit_paper` or MCP `act` → `arbora/api/ops/finance.py::handle_orders_submit_paper` → `pipeline._effect` in `arbora/api/invoke/pipeline.py`. Then → `FinanceOrderPort.submit_paper` → `FleetFinanceOrderPort` → fleet call of emerald tool `emerald_orders` action `submit` in mode `paper`. The order needs a tenant-bound account. An unverified binding returns `UNAVAILABLE` before any provider call. A live mode value is refused with `POLICY_DENIED`. The emerald risk guard still applies. Ownership of the subject: ARBORA-OPS-R017.2. Writes: the governed effect receipt. Depends: R003.5, R003.6. Shape: `handle_orders_submit_paper` in `arbora/api/ops/finance.py`; `FinanceOrderPort` in `arbora/finance/markets.py` and `FleetFinanceOrderPort` in `arbora/finance/fleet_read_port.py` (new); reuse `_effect` and `bind_plan` without a second effect path. | Test: `tests/mcp_server/test_orders_submit_paper_served.py::test_paper_submit_is_planned_keyed_and_tenant_bound` (L3) asserts the plan, the key replay, the unavailable case and the live refusal.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.8
Market signal compute operations
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Market signal compute operations.** Stage: served operation. Entry: `POST /api/v1/ops/market.signal_replay`, `market.signal_scan`, `market.flip_confidence` and `market.backtest_run`, plus the MCP `ask` twin. Caller chain: `arbora/api/ops/market.py::operations` → `MarketComputePort.call` (ARBORA-DATA-MARKET-R003.13) → `Method::FinanceMarket` with ops `SignalReplay`, `SignalScan`, `FlipConfidence` and `BacktestRun`. Medulla owners: MEDULLA-FINANCE-PRIMITIVES-R001 for the backtest digest and MEDULLA-FINANCE-PRIMITIVES-R009.1 for flip confidence. Scope: `finance:read`, `Confirm.NONE`. The request bodies are the serde types of `crates/medulla-types/src/compute_result/market`. Engine refusal codes pass through in the error details. Writes: none; sealing a stored record is a separate medulla write. Depends: ARBORA-DATA-MARKET-R003.13. Shape: four `OpSpec` entries (`arbora/api/registry/spec.py::OpSpec`, line 124) in new `arbora/api/ops/market.py::operations`; request and result types follow the serde types named in the row; the call goes through `MarketComputePort` of `arbora/finance/compute_port.py` (new, R003.13). | Test: `tests/mcp_server/test_market_compute_served.py::test_signal_ops_over_http_and_mcp` (L3) runs the four operations against a recorded engine. It asserts results, codes and one cross-tenant denial.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.9
Served market.size operation over RegimeSizingInput
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Served market.size operation over RegimeSizingInput.** Stage: served operation. Caller chain: `POST /api/v1/ops/market.size` and MCP twin → `arbora/api/ops/registry_factory.py` → `arbora/finance/markets.py::size_from_regime` → engine `RegimeSizingInput`. Requires `finance:read`. Arbora applies no weights. A `SIZING_ABSTAIN` result passes through unchanged. Depends: `MEDULLA-FINANCE-PRIMITIVES-R002.11.3`. Shape: (planned, none exists yet) `size_from_regime` in `arbora/finance/markets.py` and one `OpSpec` in `arbora/api/ops/market.py::operations`; it forwards `RegimeSizingInput` through `MarketComputePort` and adds no weight. | Test (planned): `tests/api/test_market_size.py::test_size_and_abstain_over_http_and_mcp` (L3) against a recorded engine.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.10
Served market.evaluate operation over medulla NumericEvaluate
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Served market.evaluate operation over medulla NumericEvaluate.** Stage: served operation. Caller chain: `POST /api/v1/ops/market.evaluate` and its MCP twin → `arbora/api/ops/registry_factory.py` registration → `arbora/finance/markets.py::evaluate_kernel` → engine client call to `MEDULLA-FINANCE-PRIMITIVES-R002.2.5` `NumericEvaluate`. Rule: params `{op, ...kernel fields}` pass through unchanged after the ceilings verification. Requires the `finance:read` grant. Tenant comes from the verified principal. Arbora computes nothing. Refusal: `KERNEL_*` codes of the engine pass through in the error detail. A missing grant returns `POLICY_DENIED`. An unreachable engine returns `UNAVAILABLE`. Depends: `MEDULLA-FINANCE-PRIMITIVES-R002.2.5`, `ARBORA-DATA-MARKET-R003.5`. Shape: (planned, none exists yet) `evaluate_kernel` in `arbora/finance/markets.py` and one `OpSpec` in `arbora/api/ops/market.py::operations`; it forwards `NumericEvaluate` through `MarketComputePort` and computes nothing. | Test (planned): `tests/api/test_market_evaluate.py::test_market_evaluate_over_http_and_mcp` (L3) calls the operation over HTTP and MCP against a recorded medulla engine. It asserts the Brier and ADF results. It also asserts the denied-grant refusal.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.11
Served market.positions operation over FinanceAccountProject
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Served market.positions operation over FinanceAccountProject.** Stage: served operation. Caller chain: `POST /api/v1/ops/market.positions` and MCP twin → registry → `arbora/finance/markets.py::project_account` → engine `FinanceAccountProject`. Requires `finance:read` and a verified account binding. Figures keep source, as-of and session. Refusals `FIGURE_PROVENANCE_MISSING` pass through. Depends: `MEDULLA-FINANCE-PRIMITIVES-R013.2.6`. Shape: (planned, none exists yet) `project_account` in `arbora/finance/markets.py` and one `OpSpec` in `arbora/api/ops/market.py::operations`; it reuses `AccountBinding` (line 59) and passes figures through with source, as-of and session. | Test (planned): `tests/api/test_market_positions.py::test_positions_carry_provenance` (L3) over HTTP and MCP against a recorded engine.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.12
Research kernel compute operations
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Research kernel compute operations.** Stage: served operation. Entry: `POST /api/v1/ops/market.pattern_classify` and `market.profit_attribution`, plus the MCP `ask` twin. Caller chain: `arbora/api/ops/market.py::operations` → `MarketComputePort.call` (ARBORA-DATA-MARKET-R003.13) → `Method::FinancePatternClassify` and `Method::FinanceProfitAttribution` (MEDULLA-FINANCE-PRIMITIVES-R750.754). Scope: `finance:read`, `Confirm.NONE`. Parameters mirror the Rust fields; arbora adds no default. Engine codes `PATTERN_WINDOW_SHORT`, `PATTERN_INPUT_INVALID`, `ATTRIBUTION_WEIGHTS_INVALID` and `ATTRIBUTION_INPUT_INVALID` pass through. Writes: none. Depends: ARBORA-DATA-MARKET-R003.13, MEDULLA-FINANCE-PRIMITIVES-R750.754. Shape: two `OpSpec` entries in `arbora/api/ops/market.py::operations`; both call `MarketComputePort.call` from `arbora/finance/compute_port.py` and pass engine codes through in the error detail. | Test: `tests/mcp_server/test_market_compute_served.py::test_research_kernel_ops_over_http_and_mcp` (L3) runs both operations against a recorded engine. It asserts the results and each engine code.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.13
Market compute port and sizing operations
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Market compute port and sizing operations.** Stage: served operation. Entry: `POST /api/v1/ops/market.position_size` and `market.distribution_shift`, plus the MCP `ask` twin. Caller chain: `arbora/api/ops/registry_factory.py::get_registry` → `arbora/api/ops/market.py::operations` → `arbora/finance/compute_port.py::MarketComputePort` → `EngineMarketComputePort.call`. The port sends `Method::FinancePositionSize` and `Method::FinanceDistributionShift` (MEDULLA-FINANCE-PRIMITIVES-R900.3) through the engine client held in `services` under the service scope `compute:finance`. Both operations are reads on the user scope `finance:read` (ARBORA-OPS-R017.1), with `Confirm.NONE`. Parameters mirror the Rust request fields. Arbora forwards omitted optionals as omitted, so medulla applies `knob sizing.fraction` and `knob sizing.max_risk`. Refusals: `UNAVAILABLE` when `market_compute_port` is not composed. `SCOPE_REQUIRED` without the grant. The engine codes `SIZING_INPUT_INVALID` and `SHIFT_SAMPLE_EMPTY` pass through in the error details. Writes: none. Depends: ARBORA-HOST-R001.2.3, MEDULLA-FINANCE-PRIMITIVES-R900.3. Shape: `MarketComputePort` protocol and `EngineMarketComputePort` in new `arbora/finance/compute_port.py`; two `OpSpec` entries in `arbora/api/ops/market.py::operations`; the engine client comes from `services`, with no new client class. | Test: `tests/mcp_server/test_market_compute_served.py::test_sizing_and_shift_over_http_and_mcp` (L3) calls both routes against a recorded medulla engine. It asserts the result, each refusal code and one cross-tenant denial.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.14
Banking compute operations
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Banking compute operations.** Stage: served operation. Entry: `POST /api/v1/ops/market.aml_screen`, `market.capital_ratios`, `market.expected_loss` and `market.settlement_chain`, plus the MCP `ask` twin. Caller chain: `arbora/api/ops/market.py::operations` → `MarketComputePort.call` (ARBORA-DATA-MARKET-R003.13) → `Method::FinanceAmlScreen`, `FinanceCapitalRatios`, `FinanceExpectedLoss`, `FinanceSettlementChain`. Scope: `finance:read`, `Confirm.NONE`. The parameters are the Rust request fields, with amounts in integer minor units. Arbora rejects a float in a minor-unit field with `INVALID_ARGUMENT` before dispatch. Engine codes `CAPITAL_RWA_INVALID` and `CREDIT_INPUT_INVALID` pass through in the error details. Writes: none. Depends: ARBORA-DATA-MARKET-R003.13, MEDULLA-FINANCE-PRIMITIVES-R901.3. Shape: four `OpSpec` entries in `arbora/api/ops/market.py::operations` with integer minor-unit request fields validated by one closed model per operation; the call goes through `MarketComputePort.call`. | Test: `tests/mcp_server/test_market_compute_served.py::test_banking_ops_over_http_and_mcp` (L3) runs each operation against a recorded engine. It asserts results, both engine codes and the float refusal.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R003.15
Finance guide projection
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Finance guide projection.** Stage: served read `finance.guide.get`, scope `finance:read`, `Confirm.NONE`. Caller chain: `POST /api/v1/ops/finance.guide.get` or MCP `ask` → `arbora/api/ops/finance.py::handle_guide_get` → fleet resource read of `skill://emerald-exchange-leveraged-trading/SKILL.md` → `arbora/finance/guides.py::project_guide`. The result holds `guide_id`, `revision`, `reviewed_at`, `reviewer`, `source_cards` and `body_sha256`. Arbora derives nothing; a missing or unparsable revision header returns `UNAVAILABLE`. The WebUI explainer reads this operation. Depends: EMERALD-GUIDE-R001. Shape: `handle_guide_get` in `arbora/api/ops/finance.py` and `project_guide` in new `arbora/finance/guides.py`; the projection model has the six fields named in the row and is closed. | Test: `tests/mcp_server/test_finance_guide_served.py::test_projection_matches_skill_revision_header` (L3) reads a recorded skill resource over HTTP and MCP. It asserts the fields and the unavailable case.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R007.7
Order stage and confirm operations call the proposal door
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Order stage and confirm operations call the proposal door.** Stage: served operations. Caller chain: `market.order.stage` and `market.order.confirm` registered with `Confirm.PLAN` in `arbora/api/ops/registry_factory.py` → engine `FinanceOrderProposal.Stage` and `Promote`. Arbora supplies the gate manifest and gate receipts and holds the human confirmation. Depends: `MEDULLA-FINANCE-PRIMITIVES-R015.1.1`, `MEDULLA-FINANCE-PRIMITIVES-R015.1.2`. Shape: two `OpSpec` entries `market.order.stage` and `market.order.confirm` in `arbora/api/ops/finance.py::operations`, both `Confirm.PLAN`; the engine call goes through the engine client held in `services`; gate manifests are built from the existing `bind_plan` plan. | `tests/api/test_order_confirmation.py::test_stage_confirm_promote` (L3) over HTTP and MCP against a recorded engine.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-DATA-MARKET-R008
Served forecast operation `market.forecast.sample`
Definition — ARBORA-DATA-MARKET / ARBORA-DATA-MARKET — Schema context, source admission, and finance projectionCanonical requirement and verification source
**Served forecast operation `market.forecast.sample`.** Stage: registered served operation in `arbora/api/ops/` (verify the registry module). Caller chain: the operation registry `invoke` over HTTP and MCP. Flow: the operation validates the controls of SCION-FINANCE-SOURCES-R901 and calls the forecast provider through the SDK adapter. It then stores the response with `SourceIngest` (MEDULLA-FINANCE-PRIMITIVES-R902). It returns the stored record digest and never a raw sample as a deterministic value. Refusals: the provider codes of SCION-FINANCE-SOURCES-R901 pass through unchanged; `FORECAST_ADMISSION_DENIED` when the caller lacks the finance scope. The operation holds no approval because it places no order. Writes: the medulla `SourceIngest` call only. Depends: SCION-FINANCE-SOURCES-R901, MEDULLA-FINANCE-PRIMITIVES-R902. Shape: one `OpSpec` `market.forecast.sample` in `arbora/api/ops/market.py::operations` (new file); the provider call uses the SDK adapter named in the row and the store step uses the engine client held in `services`. | Test: `tests/api/test_market_forecast_served.py::test_sample_is_stored_with_probabilistic_flag` runs `invoke` over HTTP and MCP with a loopback provider and a recorded medulla engine.
requirementARBORA-DATA-MARKETSPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE
ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rollout
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R001
Dependency-ordered, digest-verified release promotion
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Dependency-ordered, digest-verified release promotion.** Arbora validates digest-pinned candidate images in a dedicated Kubernetes test namespace before promoting them, and performs its dependency-ordered pushes to each repository in sequence, checking that repository's continuous-integration result before advancing to the next. | An integration test against a fixture dependency graph confirms the rollout stops before the next stage when a predecessor's digest or CI result is missing.
requirementARBORA-RELEASEVERIFIED0d34328f1114
1766bb2b39d8
3fe9b5ec74fc
4510e0b854aa
8b0cb0d81469
tests/deployment/test_release_workflow_sources.py:246
tests/deployment/test_release_workflow_sources.py:359
tests/deployment/test_release_workflow_sources.py:384
tests/deployment/test_release_workflow_sources.py:392
ARBORA-RELEASE-R001.1
A version tag publishes the wheel and the sdist
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**A version tag publishes the wheel and the sdist.** The `build` job of `.github/workflows/checks.yml` builds the wheel and the source distribution. Both files go into one build artifact. On a `v*` tag, `.github/workflows/release.yml` calls those checks and then its `publish` job uploads both files to PyPI. The `pypi-publish` environment has no required reviewer, so no manual approval holds the tag. A pre-release tag such as `v0.1.8.dev1` follows the same path. Its GitHub release is a pre-release, never the latest release. Deployments install the published release from PyPI only. Caller chain: `git push` of a `v*` tag → `.github/workflows/release.yml` (calls `checks.yml`) → job `build` (`checks.yml:267`) → job `publish` → PyPI. Shape: `.github/workflows/checks.yml` and `.github/workflows/release.yml` only; no Python module. Reuse the existing `build` artifact upload. `tests/deployment/test_release_workflow_sources.py` reads the workflow text. | `tests/deployment/test_release_workflow_sources.py::test_tag_publishes_wheel_and_sdist` reads the workflow. It finds that `build` makes both files, that the artifact carries both, and that `publish` uploads both on a tag.
requirementARBORA-RELEASEVERIFIED0d34328f1114
1766bb2b39d8
3fe9b5ec74fc
4510e0b854aa
8b0cb0d81469
tests/deployment/test_release_workflow_sources.py:359
tests/deployment/test_release_workflow_sources.py:384
ARBORA-RELEASE-R001.2
Release gates scan only the published range
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Release gates scan only the published range.** The step "Resolve the published base" in `.github/workflows/checks.yml` exports `PRE_COMMIT_FROM_REF` only when `github.event.before` names a real commit that is present in the checkout. A run with no previous push sets no base: a schedule, a manual dispatch or a tag push. Each shared range hook then resolves its own published range. The step never falls back to the root commit, so a nightly or tag run does not rescan the whole history and fail on historical commit identities. Caller chain: `main-checks` (push, schedule, dispatch) and `release.yml` (tag) → `checks.yml` job `gates` → step `Resolve the published base` → the pre-commit range hooks. Shape: `.github/workflows/checks.yml` only; no Python module. | `tests/deployment/test_release_workflow_sources.py::test_published_base_is_set_only_from_a_real_previous_push` reads the step. It finds that the export is guarded by the previous-push checks and that the step has no root-commit fallback.
requirementARBORA-RELEASEVERIFIED9684d74884f0
tests/deployment/test_release_workflow_sources.py:392
ARBORA-RELEASE-R001.3
The install matrix covers exactly the engine wheel platforms
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**The install matrix covers exactly the engine wheel platforms.** The `install-smoke` job of `.github/workflows/checks.yml` has one leg per platform that both pinned engine packages, `medulla` and `medulla-stem`, publish a wheel for in `uv.lock`, and no other leg. Every leg gates the release: none is optional and none may fail. A leg never needs an engine wheel that does not exist, so a tag never fails on a platform the engine does not ship. A change that locks an engine release with a wheel for a new platform adds that leg in the same change. Caller chain: `git push` of a `v*` tag → `.github/workflows/release.yml` (calls `checks.yml`) → job `install-smoke` → job `publish`. Shape: `.github/workflows/checks.yml` only; no Python module. The leg set derives from the `uv.lock` wheel tags. | `tests/deployment/test_release_workflow_sources.py::test_install_smoke_covers_exactly_the_engine_wheel_platforms` reads the workflow and `uv.lock`. It finds that the leg names equal the platforms both engine packages ship wheels for, and that no leg is optional.
requirementARBORA-RELEASEVERIFIEDf4a6638e12b5
tests/deployment/test_release_workflow_sources.py:246
ARBORA-RELEASE-R002
Local Kubernetes validation gates every push
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Local Kubernetes validation gates every push.** Arbora runs local Kubernetes validation in a dedicated test namespace as part of release qualification. The release process refuses to push or deploy until the repository's local gates report green. Every pull request also runs the static architecture and import-scan tests, whatever files its diff touches. The mapped fast subset only narrows the rest of the suite. Caller chain: Push gate: `setup-config release-plan` (`arbora/deployment/cli.py:31` `_run_release_plan`) → `arbora/deployment/release_candidate.py:268` `plan_candidate` → `release_candidate.py:313` `gate_release`, which takes `LocalGateResult` rows from `arbora/deployment/local_gates.py:46` `require_green_local_gates` and `local_gates.py:58` `validate_test_namespace`; today only tests call `gate_release`, so wiring it into `_run_release_plan` is the open work. Pull-request half: `.github/workflows/ci.yml:279` → `scripts/pr_static_scope.py` → pytest. Shape: Files: `arbora/deployment/local_gates.py` (`GateReport`, `GateBlockedError`), `arbora/deployment/release_candidate.py` (`LocalGateResult`, `gate_release`), `scripts/pr_static_scope.py`. Reuse `gate_release`; add no second aggregator. Refusal: `GateBlockedError`, naming every red gate. | A negative integration test confirms a push is blocked while a local gate is failing and proceeds once all local gates report green. A workflow test confirms the pull-request fast subset always includes every `tests/architecture` test and every test that scans repository source (`tests/deployment/test_pr_static_scope.py`). Tests: `tests/deployment/test_local_gates.py::test_push_blocked_while_a_local_gate_is_red`, `tests/deployment/test_local_gates.py::test_push_proceeds_once_every_local_gate_is_green` and `tests/deployment/test_pr_static_scope.py::test_every_architecture_test_is_selected`.
requirementARBORA-RELEASEVERIFIED03ec8432da14
6a537bf0c090
b248775f941c
b4cbe0ddcba3
f3f45f5e2d1b
tests/deployment/test_local_gates.py:15
tests/deployment/test_local_gates.py:28
tests/deployment/test_local_gates.py:41
tests/deployment/test_local_gates.py:47
tests/deployment/test_local_gates.py:59
ARBORA-RELEASE-R003
Exit-criteria matrix maps readiness to tests (rollup)
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Exit-criteria matrix maps readiness to tests (rollup).** Stage: release qualification. Caller: `setup-config release-plan` → `arbora/deployment/cli.py::_run_release_plan` → `release_candidate.py::plan_candidate` (wired by ARBORA-RELEASE-R003.10). The matrix file is `deploy/release/exit-criteria.json`. It holds seven rows with the ids `ingestion_receipts`, `query_proofs`, `orchestration_graph`, `connector_certification`, `write_back_receipt`, `login_probe` and `typed_abstention`. Each row names one arbora served test. Each served test drives a registry operation through `invoke` against a loopback engine. Facts the test reads must come from ingest the same test ran. A hand-written fixture graph does not count. Refusal: `EXIT_CRITERIA_UNMET`. Children: `.1` model and audit, `.2` matrix closure, `.3` to `.8` one obligation each, `.9` fleet acceptance, `ARBORA-RELEASE-R003.10` wiring. Owner rows on the engine side: `MEDULLA-CQ-XSRC-R007`, `MEDULLA-CQ-ORCH-R001`, `MEDULLA-CQ-ORCH-R003`. Depends: `ARBORA-RELEASE-R003.1`. | Test: `tests/deployment/test_exit_criteria_served.py::test_release_plan_refuses_unmet_obligation` (L2). The rollup passes when `.1` to `.9` and `ARBORA-RELEASE-R003.10` pass.
requirementARBORA-RELEASESPECIFIED03ec8432da14
7db4c4a5d87c
ARBORA-RELEASE-R003.1
Exit-criteria matrix registry and audit mechanism (arbora side, against the currently pinned medulla)
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Exit-criteria matrix registry and audit mechanism (arbora side, against the currently pinned medulla).** Arbora defines the exit-criteria matrix as a typed registry of obligation to test-node-id rows. An audit function runs a test-suite audit against the collected pytest node IDs. An unregistered or uncollected obligation audits as missing, never a silent pass. `ExitCriterionRow` (`release_candidate.py`) is the row model. `ExitCriterion` is dropped after `ARBORA-RELEASE-R003.10` lands. Caller chain: `setup-config release-plan` (`arbora/deployment/cli.py:31`) → `plan_candidate` (`release_candidate.py:268`) → `arbora/deployment/release_candidate.py:103` `read_exit_criteria_matrix` → `arbora/deployment/exit_criteria.py:50` `audit_exit_criteria` (the `plan_candidate` call is wired by `ARBORA-RELEASE-R003.10`). Shape: Files: `arbora/deployment/release_candidate.py` (`ExitCriterionRow`, `ExitCriteriaMatrix`, `ExitCriteriaError`), `arbora/deployment/exit_criteria.py` (`ExitCriteriaAudit`, `audit_exit_criteria`). `audit_exit_criteria` still takes the older `ExitCriterion` model; `ARBORA-RELEASE-R003.10` switches it to `ExitCriterionRow` and deletes `ExitCriterion`. | A unit test confirms the audit function marks a row satisfied. The test node ID must be among the collected test IDs. It also confirms the row is missing when the ID is absent. Tests: `tests/deployment/test_exit_criteria.py::test_audit_flags_a_row_missing_when_its_test_is_not_collected` and `tests/deployment/test_release_candidate.py::test_exit_criteria_matrix_refuses_duplicate_obligation`.
requirementARBORA-RELEASEVERIFIED03ec8432da14
7db4c4a5d87c
tests/deployment/test_exit_criteria.py:10
tests/deployment/test_exit_criteria.py:27
tests/deployment/test_exit_criteria.py:42
ARBORA-RELEASE-R003.2
Exit-criteria matrix closes across all seven obligations
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Exit-criteria matrix closes across all seven obligations.** Stage: release qualification. Caller: as `ARBORA-RELEASE-R003`. Create `deploy/release/exit-criteria.json` with seven rows: `{obligation_id, description, test_reference}`. The row `ingestion_receipts` binds `tests/release/test_exit_ingestion_receipts.py::test_sync_receipt_reads_back_through_ask`. That test calls `ingest.sources.sync` (`arbora/api/ops/ingest.py`) for a recorded connector. It then reads the receipt with `ingest.jobs.status`. It asks `query.uql` for one ingested fact. The other six rows bind the tests named by `.3` to `.8`. A row whose test does not exist fails the audit. The matrix is complete when each owner row it cites reports the test passing. The earlier gate on one engine release is removed. Refusal: `EXIT_CRITERIA_UNMET`. Depends: `ARBORA-RELEASE-R003.3` to `R003.8`. Caller chain: As `ARBORA-RELEASE-R003`: `setup-config release-plan` (`arbora/deployment/cli.py:31`) → `plan_candidate` (`release_candidate.py:268`) → `read_exit_criteria_matrix` (`release_candidate.py:103`) on `deploy/release/exit-criteria.json`. Shape: Files: new (planned) `deploy/release/exit-criteria.json`, new `tests/release/test_exit_ingestion_receipts.py`, new `tests/deployment/test_exit_criteria.py` case. Reuse `ExitCriterionRow` for the row model and `invoke` of the registry for the served test. Rows carry `obligation_id`, `description`, `test_reference`. | Test (planned): `tests/deployment/test_exit_criteria.py::test_shipped_matrix_has_seven_rows_that_resolve_to_collected_tests` (L2). It collects node ids with `pytest --collect-only` and asserts each row resolves.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.3
SPARQL and natural-language query-proof row
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**SPARQL and natural-language query-proof row.** Stage: release qualification, obligation `query_proofs`. Caller: registered ops `query.uql` and `query.nl` (`arbora/api/ops/query.py`) → the caller's engine client → engine query path. The test first runs `ingest.sources.sync` for a recorded connector. It then asks one SPARQL question and one natural-language question over those facts. Each answer carries provenance. A question with no supporting fact returns the engine abstention unchanged; arbora adds no text. The matrix row `query_proofs` in `deploy/release/exit-criteria.json` binds `tests/release/test_exit_query_proofs.py::test_uql_and_nl_questions_answer_from_ingested_facts`. Owner rows: `MEDULLA-CQ-XSRC-R007`, `MEDULLA-CQ-ORCH-R001`. Refusal: `EXIT_CRITERIA_UNMET` when the test is absent or did not pass. Depends: `ARBORA-FLEET-R014.3`. Caller chain: Served `invoke` (HTTP and MCP) → op `query.uql` / `query.nl` (`arbora/api/ops/query.py:21` and `:33`) → the caller's engine client → engine query path; facts come from `ingest.sources.sync` (`arbora/api/ops/ingest.py:284`). Shape: Files: new `tests/release/test_exit_query_proofs.py` and the `query_proofs` row in `deploy/release/exit-criteria.json` (planned file, not yet created). No production code changes; reuse the registry `invoke` harness of `tests/api/test_query_federation_served.py`. | Test (planned): `tests/release/test_exit_query_proofs.py::test_uql_and_nl_questions_answer_from_ingested_facts` (L3, served through the operation registry `invoke` over HTTP and MCP against a loopback engine). It asserts the answer and the engine-held evidence.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4
Multi-agent orchestration-graph row (rollup)
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Multi-agent orchestration-graph row (rollup).** Stage: release qualification, obligation `orchestration_graph`. Caller: registered op `agents.plan_run` (`arbora/api/ops/plans.py::handle_plan_run`). The matrix row binds `tests/api/test_plan_run_ops.py::test_cross_connector_plan_passes_data_by_binding_end_to_end`. Children `.1` to `.13` deliver the operation. The engine owner row is `MEDULLA-CQ-ORCH-R001`. Refusal: `EXIT_CRITERIA_UNMET`. Depends: `ARBORA-RELEASE-R003.2`. | Test: `tests/api/test_plan_run_ops.py::test_cross_connector_plan_passes_data_by_binding_end_to_end` (L3). The rollup passes when `.1` to `.13` pass.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.1
Served task-plan run (validation checks c22 and c21)
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Served task-plan run (validation checks c22 and c21).** Arbora serves one registry operation, `agents.plan_run`. The caller supplies explicit tasks (`task_id`, `prompt`, `depends_on`), an output task and limits. Arbora asks the engine for the plan through its `TaskPlan` decision (`MEDULLA-CQ-ORCH-R001`, `MEDULLA-DECISION-ENGINE-R134.111`). It uses the caller's own authenticated engine client. Arbora checks the returned receipt against the request and the verified caller principal before any task starts. It maps the engine plan one to one onto a harness `RunPlan` with a `DependencyPlan` (`MERISTEM-BOUNDARY-R043.6`). The harness runs the tasks in dependency order. At most the plan's `max_concurrency` tasks are active, and that limit is at most 8. Every task runs inside the caller's run-authority scope, so each child task inherits the caller-credential renewal. Arbora holds no planner. It never derives a plan from free text. It never adds, drops, reorders or re-validates tasks. Engine refusals such as `plan_cycle`, `missing_dependency` and `plan_bounds` pass through unchanged. A receipt mismatch refuses with `RECEIPT_MISMATCH`. An engine release without `TaskPlan` refuses with `UNAVAILABLE`. Neither refusal starts a task. Fan-out aggregation binds to `ARBORA-FLEET-R024.11`. Caller chain: Served `invoke` → op `agents.plan_run` (`arbora/api/ops/plans.py:1067` `operations`) → `plans.py:934` `handle_plan_run` → `plans.py:188` `decide_task_plan` (engine `TaskPlan`) → `plans.py:262` `run_plan_for` → `plans.py:470` `execute_task_plan` → harness `DependencyPlan`. Shape: File: `arbora/api/ops/plans.py` (`PlanRunParams`, `PlanRunResult`, `TaskPlanEngine`, `engine_task_plan`). Reuse the harness `RunPlan` mapping in `run_plan_for`; Arbora adds no planner, validator or reordering. | `tests/api/test_plan_run_ops.py` covers these cases. A five-task DAG runs every dependent after its prerequisites. The result carries the output task's result and the engine plan digest. The engine refuses a cycle and a missing dependency with its own codes, and no task starts. Arbora refuses a receipt for another principal before any task starts. Twenty independent children feed one join task. At most eight children run at a time, and the result carries every child result. Tests: `tests/api/test_plan_run_ops.py::test_c22_dag_runs_in_dependency_order_with_verified_receipt`, `::test_c22_engine_refusals_pass_through_unchanged`, `::test_receipt_for_another_principal_is_refused_before_running` and `::test_c21_fan_out_runs_at_most_max_concurrency_and_returns_all`.
requirementARBORA-RELEASEVERIFIED02140e1c7a78
ab79b6f75be5
tests/api/test_plan_run_ops.py:241
tests/api/test_plan_run_ops.py:313
tests/api/test_plan_run_ops.py:333
tests/api/test_plan_run_ops.py:352
tests/api/test_plan_run_ops.py:365
ARBORA-RELEASE-R003.4.2
Plan attached to the work item
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Plan attached to the work item.** A plan run can name a work-item lease (`run_id`, `worker_id`, `lease_epoch`, `fencing_token`). Arbora then publishes the engine plan and its proposal to that work item's current plan through `PublishCurrentPlan` before any task starts (`MEDULLA-DURABLE-KERNEL-R028.5.2`, `MEDULLA-DURABLE-KERNEL-R028.5.3`). The idempotency key is the run and the plan digest. Replay and recovery read the same plan. The engine checks the fence. Caller chain: `handle_plan_run` (`arbora/api/ops/plans.py:934`) → `plans.py:215` `publish_request` → engine `PublishCurrentPlan`, before `execute_task_plan` (`plans.py:470`). Shape: File: `arbora/api/ops/plans.py` (`WorkItemLease`, `publish_request`, `_validated_publish_receipt`). Reuse the engine fence check; the idempotency key joins the run and the plan digest. | `tests/api/test_plan_run_ops.py::test_work_item_run_publishes_the_same_plan_for_replay` proves three facts. The published snapshot carries the plan that ran and its proposal. The request carries the lease fence and a run-and-digest idempotency key. A replay of the same proposal reads the same plan digest.
requirementARBORA-RELEASEVERIFIED02140e1c7a78
tests/api/test_plan_run_ops.py:408
ARBORA-RELEASE-R003.4.3
Dependency floors for served task plans
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Dependency floors for served task plans.** Arbora depends on `meristem>=5.0.0,<6.0.0`, which carries `DependencyPlan`. Arbora also pins `medulla==3.3.0`, the engine release that serves `TaskPlan` and accepts arbora's state-machine ontology pack. Both come from the package index only. Against an engine without `TaskPlan`, `agents.plan_run` refuses with `UNAVAILABLE`. Caller chain: Install path: `pyproject.toml` `dependencies` → `uv.lock` → the installed `meristem` and `medulla` wheels → `handle_plan_run` (`arbora/api/ops/plans.py:934`), which refuses `UNAVAILABLE` when the engine lacks `TaskPlan` (`engine_task_plan`, `plans.py:136`). Shape: Files: `pyproject.toml` (`meristem>=5.0.0,<6.0.0`, `medulla==3.3.0`) and `uv.lock`. Reuse `tests/architecture/test_dependency_manifest_pins_published_packages.py`; no path or git source for either package. | `tests/architecture/test_dependency_manifest_pins_published_packages.py::test_manifest_declares_each_split_repository_package` (L1) asserts both packages carry version specifiers, not paths. `tests/api/test_plan_run_ops.py::test_engine_without_task_plan_refuses_unavailable` (L2) asserts the `UNAVAILABLE` refusal.
requirementARBORA-RELEASEVERIFIEDa78249aec3fd
tests/architecture/test_dependency_manifest_pins_published_packages.py:67
ARBORA-RELEASE-R003.4.4
Published task-plan schema pin
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Published task-plan schema pin.** The engine exports the task-plan feature schema as `TASK_PLAN_FEATURE_SCHEMA`, with its body, `schema_version` and content digest. At server start-up, Arbora reads that export from the installed engine and checks the body against its content digest with the engine codec; nothing is committed. When it is consistent, the server lifespan publishes the body to the Agent Library for every served tenant before it serves requests. Arbora serves the process tenant's graph only. The publish runs under the process authority and is awaited with bounded retry and backoff. A tenant that still fails is logged. The publish is idempotent, and a current entry with the same body is reused. Arbora uses the `definition_digest` that the engine returns as the pin for `agents.plan_run`. A request only reads the published pin for its own tenant, under its own session. It never publishes. An unpublished tenant refuses with a retryable `UNAVAILABLE`. No request path can install the process session (`ARBORA-HOST-R018` applies the same rule to catalog reads). On a mismatch or a missing export, Arbora logs the reason, and `agents.plan_run` refuses with `UNAVAILABLE`. Arbora never makes up a definition digest. Caller chain: Server lifespan start-up → `arbora/mcp_server/task_plan.py` (reads `TASK_PLAN_FEATURE_SCHEMA`, line 194) → `arbora/api/task_plan_schema.py` publisher → Agent Library; the request path reads the pin through `arbora/api/ops/plans.py:523` `_feature_schema` → `task_plan_schema.published_pin`. Shape: Files: `arbora/api/task_plan_schema.py` (`PURPOSE_ID`, `EXPORT_NAME`, `published_pin`), `arbora/mcp_server/task_plan.py`, `arbora/mcp_server/served_invocation.py`. Reuse the engine body codec; Arbora computes no digest of its own. | `tests/api/test_task_plan_schema_pin.py` uses a fixture export. Start-up reads the body and digest, and an export that does not hash to its digest is refused. A digest mismatch or a missing export binds nothing and logs the reason. Concurrent calls publish once per tenant and return the engine definition digest. Start-up publishes every served tenant with bounded retry. An unpublished tenant refuses `UNAVAILABLE` and does not publish. The publish request passes the engine request model, and a current entry is reused. `tests/mcp_server/test_task_plan_receipts.py` proves start-up publishes under the process authority. A caller with other scopes reads the published pin. No request binding or module reaches the publisher. Tests: `tests/api/test_task_plan_schema_pin.py::test_an_export_that_does_not_hash_to_its_digest_is_refused` and `tests/mcp_server/test_task_plan_receipts.py::test_startup_publishes_the_served_tenant_under_the_process_authority`.
requirementARBORA-RELEASEVERIFIED07135d7c54a6
166a7322d0e6
2117d4306d7c
3b2cfd78dc75
46c93f5103b1
tests/api/test_task_plan_schema_pin.py:141
tests/api/test_task_plan_schema_pin.py:153
tests/api/test_task_plan_schema_pin.py:169
tests/api/test_task_plan_schema_pin.py:184
tests/api/test_task_plan_schema_pin.py:338
ARBORA-RELEASE-R003.4.5
Governed fleet tools and caller in plan steps
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Governed fleet tools and caller in plan steps.** A plan run can name the fleet tools its agent steps may call in `fleet_tools` (`server`, `tool`; at most 16). Each step then has one tool, `fleet_call(server, tool, arguments)`, where `arguments` may be an object. The call runs as `fleet.call` through the invoke pipeline, under the verified caller's own authority and scopes. It gets the same effect authority, audit reservation and effect journal as any governed write. The idempotency key is `plan-step:<record>:<task>:<idx>`: the run's replay record (`ARBORA-RELEASE-R003.4.11`), the task id and the call index. A replay of the same served call makes the same keyed calls. The journal returns the recorded outcome and runs no second effect. Without a bound pipeline, a call fails closed with `UNAVAILABLE`. Arbora refuses a tool the caller did not name. It also refuses a tool whose effect needs a confirmed plan or a console step-up. It refuses a tool whose scopes the caller lacks. The step receives the refusal as data and nothing runs. A step with no `fleet_tools` has no fleet tool. The harness gives a dependent task its prerequisites' outputs as data in its prompt. The result carries `run.fleet_calls`, the ordered record of every call with its arguments, its result or its refusal code. Callers read tool results from that record, not from step text. The same governed caller serves typed tool steps (`ARBORA-RELEASE-R003.4.6`). Arbora supplies the harness `ToolCaller` (`MERISTEM-BOUNDARY-R043.6.1`). It sends each call through the single invoke pipeline (`ARBORA-OPS-R009`) as `fleet.call` (`ARBORA-OPS-R023`). The call runs under the caller's own authority and the run scope of `ARBORA-RELEASE-R003.4.1`. The pipeline applies surface, principal rule, exact scopes and policy. A refused tool returns the pipeline's typed reason. A tool outside the loaded catalog is refused the same way. The harness records `ToolCallRefused`. A typed step's idempotency key is `plan-call:<record>:<task_id>:<call_digest>`, from the record, the task and the resolved call. Each call writes one audit event through the pipeline. The caller holds no policy table and never calls the gateway directly. Caller chain: `handle_plan_run` (`arbora/api/ops/plans.py:934`) → `plans.py:364` `FleetStepTools` → op `fleet.call` (`arbora/api/ops/fleet.py:245`) through the single invoke pipeline, keyed by `plans.py:325` `step_idempotency_key` and `plans.py:335` `replay_record`. Shape: File: `arbora/api/ops/plans.py` (`FleetToolRef`, `FleetStepTools`, `LateStepInvoke`, `_fleet_step_tools`, `_fleet_calls`). Reuse the invoke pipeline and the effect journal; the typed-step `ToolCaller` binding is `ARBORA-RELEASE-R003.4.9`. | `tests/api/test_plan_run_ops.py` covers these cases. A step calls a named tool with an object argument, and the dependent step's prompt carries the tool result. A replay returns the recorded outcome and runs one effect in total. A tool that is not named is refused and nothing runs. A tool that needs a confirmed plan is not run. A plan with no `fleet_tools` records no call. For typed tool steps, a test observes the pipeline stages under caller authority. It also checks a typed refusal for an unscoped tool. It checks that a replay repeats no effect. It checks one audit event per call. Tests: `tests/api/test_plan_run_ops.py::test_step_calls_a_named_fleet_tool_and_the_next_step_reads_its_output` and `::test_replayed_plan_returns_the_recorded_outcome_without_a_second_effect`.
requirementARBORA-RELEASEVERIFIED39537773ab6c
5b24d7657890
7faa685b3ee9
b0b90565cb9e
tests/api/test_plan_run_ops.py:1019
tests/api/test_plan_run_ops.py:939
tests/api/test_plan_run_ops.py:957
tests/api/test_plan_run_ops.py:968
tests/api/test_plan_run_ops.py:976
ARBORA-RELEASE-R003.4.6
Plan run accepts typed tool steps
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Plan run accepts typed tool steps.** Stage: task-plan run. Caller: registered op `agents.plan_run` → `arbora/api/ops/plans.py::handle_plan_run` → `_map_plan_to_run_plan` (new helper). A task may carry `call{server, tool, arguments}`. Argument values are literals or a binding `{"$ref": "steps.<task_id>.output.<json.path>"}`. Arbora sends the proposal to the engine unchanged. It holds no binding validator. The engine canonicalizes and validates calls (`MEDULLA-DECISION-ENGINE-R134.111.8` to `MEDULLA-DECISION-ENGINE-R134.111.11`). Arbora maps each engine task one to one onto a harness `RunTask` with its `ToolStep` (`MERISTEM-BOUNDARY-R043.6.1`). Engine refusals `binding_not_dependency`, `binding_cycle` and `call_bounds` pass through unchanged. A schema pin that does not describe calls refuses with `UNAVAILABLE` (`ARBORA-RELEASE-R003.4.4`). No task starts on a refusal. A plan of prompt steps keeps its behavior. Depends: `ARBORA-RELEASE-R003.4.4`, `MERISTEM-RUN-R001.6.1`. Caller chain: Served `invoke` → `agents.plan_run` → `handle_plan_run` (`arbora/api/ops/plans.py:934`) → `decide_task_plan` (`plans.py:188`) → `run_plan_for` (`plans.py:262`), which gains the `RunTask` with `ToolStep` mapping. Shape: File: `arbora/api/ops/plans.py` (extend `PlanRunParams` and `run_plan_for`; no new module). Reuse `claim_values` thaw and the engine DTO; add no binding validator. Planned test in `test-spec.md` (T-RL-12). | Test: `tests/api/test_plan_run_ops.py::test_plan_run_maps_tool_steps_to_run_tasks` (L3) checks the one-to-one mapping and the unchanged proposal. `::test_engine_binding_refusal_passes_through_and_starts_nothing` covers pass-through. `::test_call_against_unpinned_schema_refuses_unavailable` covers the old pin.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.8
Run reply lists resolved arguments
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Run reply lists resolved arguments.** Stage: task-plan run reply. Caller: registered op `agents.plan_run` → `handle_plan_run` → `_reply_steps` (new helper). The reply lists each tool step in declaration order. A step holds `task_id`, `resolved_arguments` and `outcome` (`ok`, `refused` or `failed`). It also holds `failure_reason`, `result`, `idempotency_key` and `audit_ref`. The values come from the harness record (`MERISTEM-BOUNDARY-R043.6.4`) and the pipeline result. Arbora computes none of them. The reply applies the redaction of other operation replies. A secret value in an argument or result is masked. The reply carries the engine plan digest, which covers calls and bindings (`MEDULLA-DECISION-ENGINE-R134.111.11`). A step that failed to resolve lists the failed reference and no arguments. Depends: `ARBORA-RELEASE-R003.4.6`. Caller chain: `handle_plan_run` (`arbora/api/ops/plans.py:934`) → the harness run record → new helper `_reply_steps` in `plans.py` → `PlanRunResult` (`plans.py:122`). Shape: File: `arbora/api/ops/plans.py` (`PlanRunResult` gains a `steps` field; new `_reply_steps`). Reuse the redaction of other operation replies. Planned test in `test-spec.md` (T-RL-14). | Test: `tests/api/test_plan_run_ops.py::test_reply_lists_resolved_arguments_and_results_per_step` (L3) checks fields and order. `::test_reply_masks_secret_values` checks redaction. `::test_unresolved_binding_reply_names_the_reference` checks the failed step.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.9
Plan run wiring binds the governed caller
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Plan run wiring binds the governed caller.** Stage: task-plan run. Caller: registered op `agents.plan_run` → `arbora/api/ops/plans.py::handle_plan_run` (line 934). The handler passes `call` fields in the engine request. It builds the governed `ToolCaller` over the invoke pipeline. It binds that caller to the harness port set. It copies the per-step records into the reply (`ARBORA-RELEASE-R003.4.8`). Producer rows: `MEDULLA-DECISION-ENGINE-R134.111.8` to `MEDULLA-DECISION-ENGINE-R134.111.13` and `MERISTEM-BOUNDARY-R043.6.1` to `MERISTEM-BOUNDARY-R043.6.7`. `ARBORA-RELEASE-R003.4.4` publishes the task-plan schema pin. Refusal: `UNAVAILABLE` when no pipeline is bound. Depends: `ARBORA-RELEASE-R003.4.5`, `ARBORA-RELEASE-R003.4.6`. Caller chain: Served `invoke` → `agents.plan_run` → `arbora/api/ops/plans.py:934` `handle_plan_run` → `plans.py:470` `execute_task_plan` with the governed `ToolCaller` over the invoke pipeline. Shape: File: `arbora/api/ops/plans.py` (`FleetStepTools`, `LateStepInvoke`, `execute_task_plan`). Reuse the `fleet.call` pipeline caller of `ARBORA-RELEASE-R003.4.5`; no direct gateway call. Planned test in `test-spec.md` (T-RL-15). | Test: `tests/api/test_plan_run_ops.py::test_handle_plan_run_binds_the_governed_caller` (L3) enters the registry operation and observes the caller bound to the pipeline.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.10
Plan run hot-path proof
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Plan run hot-path proof.** Stage: task-plan run. Caller: served op `agents.plan_run` over the real invoke pipeline, entered through `invoke` on HTTP and MCP. The plan has a prompt step that returns a JSON object. A tool step on one fleet connector binds a field of that object. A tool step on a second connector binds the first tool result. Fixture connectors answer. The test observes the engine plan digest and both resolved arguments in the reply. It observes one audit event per call and the idempotency keys. A second run of the same record repeats no effect. A binding to a missing path gives a typed step failure, no model retry and no dependent start. The engine is a recorded or loopback `medulla` engine, not a fake. Depends: `ARBORA-RELEASE-R003.4.8`, `ARBORA-RELEASE-R003.4.9`, `ARBORA-RELEASE-R003.4.11`. Caller chain: Served `invoke` on HTTP and MCP → `agents.plan_run` → `arbora/api/ops/plans.py:934` `handle_plan_run` → harness tool steps → op `fleet.call` (`arbora/api/ops/fleet.py:245`) on two fixture connectors. Shape: Files: new test in `tests/api/test_plan_run_ops.py`; no production code. Reuse the fleet fixtures of `tests/fleet/_support.py` and a loopback `medulla` engine. Planned test in `test-spec.md` (T-RL-16). | Test: `tests/api/test_plan_run_ops.py::test_cross_connector_plan_passes_data_by_binding_end_to_end` (L3).
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.11
Served plan runs have a replay owner
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Served plan runs have a replay owner.** `agents.plan_run` declares its replay owner in `NATIVE_IDEMPOTENCY` (`arbora/api/ops/plans.py`). The owner is the EG effect journal that holds each step `fleet.call`. The run's only external effects are those step calls. The engine `TaskPlan` decision is evaluate-only. `PublishCurrentPlan` is keyed by the run and the plan digest. The `<record>` part of each step key derives from the request identity that the invoke pipeline binds. That identity covers the tenant, the principal, the operation and the caller's idempotency key. The engine decision record id is not used: each `Decide` stamps its own creation time. A replay with the same key therefore makes the same step keys, and the journal returns each recorded outcome. A new key is a new run. A fleet run without a bound request identity refuses with `UNAVAILABLE` before any step runs. Validation run 2026-10-24 gap G2: the served call was refused `durable effect owner unavailable`. Caller chain: Served `invoke` → the invoke pipeline binds the request identity → `arbora/api/ops/plans.py:358` `NATIVE_IDEMPOTENCY` → `plans.py:335` `replay_record` → `plans.py:325` `step_idempotency_key` → `EgEffectJournal` (`arbora/mcp_server/effect_journal.py`). Shape: File: `arbora/api/ops/plans.py` (`NATIVE_IDEMPOTENCY`, `replay_record`, `step_idempotency_key`). Reuse the EG effect journal; Arbora keeps no replay store. | `tests/api/test_served_replay_owners.py` composes the production registry with the invoke pipeline. `::test_served_plan_run_reaches_dispatch_with_its_native_owner` reaches dispatch and reserves nothing. `::test_served_plan_run_replay_binds_the_same_request_identity` binds one identity across a replay. `tests/api/test_plan_run_ops.py::test_a_new_run_key_is_a_new_effect_and_the_decision_record_is_not_the_key`; `::test_a_fleet_run_without_a_bound_request_identity_runs_nothing`.
requirementARBORA-RELEASEVERIFIED96b68a9b5e5c
d0f2716ab3ea
tests/api/test_plan_run_ops.py:1008
tests/api/test_plan_run_ops.py:996
tests/api/test_served_replay_owners.py:55
tests/api/test_served_replay_owners.py:76
ARBORA-RELEASE-R003.5
Connector-certification row
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Connector-certification row.** Stage: release qualification, obligation `connector_certification`. Caller: the SDK conformance kit run (`connector-certify`) → `arbora/fleet/onboarding.py::FleetOnboarding.onboard` → engine pack ingest. The test certifies one fixture connector with the kit. It onboards that connector through arbora. It then reads the connector pack from the engine with `fleet.packs.status`. An uncertified connector must be refused before onboarding. The matrix row `connector_certification` in `deploy/release/exit-criteria.json` binds `tests/release/test_exit_connector_certification.py::test_certified_connector_onboards_and_the_engine_holds_its_pack`. Owner rows: `SCION-CENTRALIZED-CAPABILITIES-R029`, `MEDULLA-CQ-CONN-R001`. Refusal: `EXIT_CRITERIA_UNMET` when the test is absent or did not pass. Depends: `ARBORA-RELEASE-R003.2`, `ARBORA-RELEASE-R003.9`. Caller chain: SDK conformance kit `connector-certify` → `arbora/fleet/onboarding.py:360` `FleetOnboarding.onboard` → engine pack ingest → op `fleet.packs.status` (`arbora/api/ops/fleet.py:370`). Shape: Files: new `tests/release/test_exit_connector_certification.py` and the `connector_certification` row in `deploy/release/exit-criteria.json` (planned file, not yet created). No production change; reuse the fixtures of `tests/fleet/test_fleet_onboarding.py`. | Test (planned): `tests/release/test_exit_connector_certification.py::test_certified_connector_onboards_and_the_engine_holds_its_pack` (L3, served through the operation registry `invoke` over HTTP and MCP against a loopback engine). It asserts the answer and the engine-held evidence.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.6
Write-back receipt row
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Write-back receipt row.** Stage: release qualification, obligation `write_back_receipt`. Caller: registered ops `fleet.write_back.preview` and `fleet.write_back.commit` (`arbora/api/ops/write_back.py`) → the engine effect journal. The test previews one write, confirms the returned plan reference and commits. It reads the receipt back from the engine effect journal. A second commit with the same key returns the same receipt and runs no second effect. The matrix row `write_back_receipt` in `deploy/release/exit-criteria.json` binds `tests/release/test_exit_write_back_receipt.py::test_confirmed_commit_returns_the_engine_journal_receipt`. Owner rows: `ARBORA-FLEET-R003.2`, `ARBORA-FLEET-R003.3`. Refusal: `EXIT_CRITERIA_UNMET` when the test is absent or did not pass. Depends: `ARBORA-RELEASE-R003.2`. Caller chain: Served `invoke` → new ops `fleet.write_back.preview` and `fleet.write_back.commit` (registered from `arbora/api/ops/write_back.py`, which holds `preview_write_back` at line 50 today) → engine effect journal. Shape: Files: `arbora/api/ops/write_back.py`, `arbora/api/ops/write_back_models.py`, new `tests/release/test_exit_write_back_receipt.py`. Reuse `WriteBackPreviewRequest`; the commit op is owned by `ARBORA-FLEET-R003.3` and this row adds only the exit-criteria test and matrix row. | Test (planned): `tests/release/test_exit_write_back_receipt.py::test_confirmed_commit_returns_the_engine_journal_receipt` (L3, served through the operation registry `invoke` over HTTP and MCP against a loopback engine). It asserts the answer and the engine-held evidence.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.7
Browser-and-identity-provider login probe row
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Browser-and-identity-provider login probe row.** Stage: release qualification, obligation `login_probe`. Caller: the OIDC certification driver (`arbora/certification/oidc.py`) → the HTTP login route → the verified session. The pull-request run uses the loopback issuer of `ARBORA-IDENTITY-R003`. The release stage also runs `scripts/certification_oidc.py` against the live issuer. The release receipt records that second result. Only the loopback test gates the matrix. The matrix row `login_probe` in `deploy/release/exit-criteria.json` binds `tests/release/test_exit_login_probe.py::test_browser_login_through_the_issuer_reaches_a_verified_session`. Owner rows: `ARBORA-INGRESS-R001`, `ARBORA-IDENTITY-R003`. Refusal: `EXIT_CRITERIA_UNMET` when the test is absent or did not pass. Depends: `ARBORA-RELEASE-R003.2`. Caller chain: `scripts/certification_oidc.py` → `arbora/certification/oidc.py` loopback issuer → the HTTP login route → the verified session. Shape: Files: new `tests/release/test_exit_login_probe.py` and the `login_probe` row in `deploy/release/exit-criteria.json` (planned file, not yet created). Reuse the loopback issuer fixtures of `tests/certification/test_oidc.py`. | Test (planned): `tests/release/test_exit_login_probe.py::test_browser_login_through_the_issuer_reaches_a_verified_session` (L3, served through the operation registry `invoke` over HTTP and MCP against a loopback engine). It asserts the answer and the engine-held evidence.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.8
Typed-abstention response row
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Typed-abstention response row.** Stage: release qualification, obligation `typed_abstention`. Caller: registered op `query.nl` (`arbora/api/ops/query.py`) → the engine planner → `AgentAssemble` abstention. The test asks whether an existing agent covers a capability no agent declares. The reply carries the engine abstention reason `uncovered_capability` unchanged. No agent is invented. The matrix row `typed_abstention` in `deploy/release/exit-criteria.json` binds `tests/release/test_exit_typed_abstention.py::test_capability_question_with_no_agent_returns_typed_abstention`. Owner rows: `MEDULLA-CQ-ORCH-R003`, `MEDULLA-DECISION-ENGINE-R036`. Refusal: `EXIT_CRITERIA_UNMET` when the test is absent or did not pass. Depends: none. Caller chain: Served `invoke` → op `query.nl` (`arbora/api/ops/query.py:33`) → the engine planner → `AgentAssemble` abstention returned unchanged. Shape: Files: new `tests/release/test_exit_typed_abstention.py` and the `typed_abstention` row in `deploy/release/exit-criteria.json` (planned file, not yet created). No production change; Arbora adds no abstention text. | Test (planned): `tests/release/test_exit_typed_abstention.py::test_capability_question_with_no_agent_returns_typed_abstention` (L3, served through the operation registry `invoke` over HTTP and MCP against a loopback engine). It asserts the answer and the engine-held evidence.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.9
Fleet acceptance row
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Fleet acceptance row.** Stage: rollout promotion. Caller: `acceptance/acceptance.py --only fleet` in the deployment stack → registered op `fleet.acceptance.check` → `arbora/fleet/acceptance.py::check_fleet` (new). The op is read-only and needs scope `fleet:read`. For each configured connector it runs four checks. Check (a): `fleet.status` reports the child healthy. Check (b): the live tool count equals `tool_count` in the engine-held pack record. Check (c): one read-only tool call succeeds through the `fleet.call` pipeline. Check (d): the engine pack digest equals the connector's reported pack digest. Config: `~/.config/arbora/fleet.yaml` key `acceptance.expected_skip` maps connector to reason. A skip needs a reason. Results are `PASS`, `FAIL`, `GAP` or `SKIP`. `GAP` never passes. Any `FAIL` or `GAP` makes the receipt `blocked`. The JSON receipt lists connector, four results and cause. Refusal: `ACCEPTANCE_BLOCKED`. Depends: `ARBORA-FLEET-R015`, `ARBORA-RELEASE-R003.2`. Caller chain: `acceptance/acceptance.py --only fleet` in the deployment stack → served op `fleet.acceptance.check` (new, registered beside `fleet.status` in `arbora/api/ops/fleet.py:381`) → `arbora/fleet/acceptance.py::check_fleet` (new). Shape: Files: new `arbora/fleet/acceptance.py`, `arbora/api/ops/fleet.py`, new `tests/fleet/test_fleet_acceptance_served.py`. Reuse `fleet.status`, `fleet.call` and `fleet.packs.status`; the pack digest comes from `arbora/fleet/onboarding.py`. | Test: `tests/fleet/test_fleet_acceptance_served.py::test_two_connector_fixture_gives_one_pass_one_fail_and_blocks` (L3, `invoke` over HTTP and MCP). One connector passes. One has a stale pack. The receipt is `blocked`.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.12
Admit a message to an active child
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Admit a message to an active child.** Stage: agent task intake. Caller: new registered op `agents.tasks.message` (effect write, idempotency `KEY_REQUIRED`) → `arbora/api/ops/agents.py::handle_agent` → `arbora/a2a/authority.py::WorkItemA2AAuthority.admit_child_message` (new). Params: `conversation_target`, `expected_revision`, `content` (at most 16384 bytes) and the caller idempotency key. The identity binds caller, root owner, target, mode and the SHA-256 of the content. The same identity returns the same receipt. Different content or target conflicts. The engine records the admission and the lifecycle revision (MEDULLA-DURABLE-KERNEL-R865). The harness delivers at its step boundary while the child is active (MERISTEM-BOUNDARY-R058). The receipt state is `queued` or `applied`. Uncertain delivery never claims `applied` and never retries without the key. Refusals: `CHILD_TARGET_TERMINAL`, `CHILD_REVISION_STALE`, `CHILD_OWNER_MISMATCH`, `CHILD_INPUT_TOO_LARGE`, `CHILD_LIMIT_EXHAUSTED`, `UNAVAILABLE` when MEDULLA-DURABLE-KERNEL-R865 is absent. Arbora starts no new root run on refusal. Depends: MEDULLA-DURABLE-KERNEL-R865, MERISTEM-RUN-R009, `ARBORA-OPS-R009.3`. Caller chain: Served `invoke` → new op `agents.tasks.message` registered in `arbora/api/ops/agents.py:104` `operations` → `agents.py:43` `handle_agent` → `arbora/a2a/authority.py:166` `WorkItemA2AAuthority.admit_child_message` (new). Shape: Files: `arbora/api/ops/agents.py` (new `OpSpec`, `Params` class), `arbora/a2a/authority.py` (new method beside `dispatch`, line 617). Reuse the keyed receipt path of `WorkItemA2AAuthority`; Arbora keeps no mailbox. Planned test in `test-spec.md` (T-RL-17). | Test: `tests/api/test_child_message_served.py::test_retry_delivers_at_most_once` (L3, `invoke` over HTTP and MCP). `::test_completion_race_gives_one_explicit_outcome` and `::test_wrong_owner_stale_revision_and_oversize_refuse_before_delivery` cover refusals. `::test_trace_step_is_not_a_child_target` proves substitution fails.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.4.13
Admit explicit completed-child continuation
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Admit explicit completed-child continuation.** Stage: agent task intake. Caller: new registered op `agents.tasks.continue` (effect write, idempotency `KEY_REQUIRED`) → `arbora/api/ops/agents.py::handle_agent` → `WorkItemA2AAuthority.admit_continuation` (new). Params: completed child `conversation_target`, `history_revision`, `content` and the idempotency key. Arbora checks the owner and the lifecycle `completed`. It creates one new run with the predecessor and conversation binding, using `ConversationTurnAdmission` (`MEDULLA-DURABLE-KERNEL-R028.4.3`). The harness hydrates history through the host provider (`MERISTEM-BOUNDARY-R043.9.1`, `MERISTEM-BOUNDARY-R043.9.2`) with fresh turn budgets. Parent and session ceilings still apply. The same tuple returns the same receipt and run binding. Refusals: `CONTINUATION_HISTORY_UNSUPPORTED`, `CONTINUATION_LIFECYCLE_INVALID`, `CHILD_OWNER_MISMATCH`, `HISTORY_REVISION_CONFLICT`. A refusal starts nothing. It never reopens a terminal run. Depends: `MEDULLA-DURABLE-KERNEL-R028.4.3`, `MERISTEM-RUN-R001.9.2`. Caller chain: Served `invoke` → new op `agents.tasks.continue` registered in `arbora/api/ops/agents.py:104` `operations` → `agents.py:43` `handle_agent` → `arbora/a2a/authority.py:166` `WorkItemA2AAuthority.admit_continuation` (new). Shape: Files: `arbora/api/ops/agents.py` (new `OpSpec`), `arbora/a2a/authority.py` (new method beside `dispatch`, line 617). Reuse the engine `ConversationTurnAdmission`; Arbora keeps no history store. Planned test in `test-spec.md` (T-RL-18). | Test: `tests/api/test_child_continuation_served.py::test_retry_starts_one_continuation` (L3, with the installed host and harness composition). `::test_changed_history_or_content_conflicts` and `::test_foreign_incomplete_and_unsupported_histories_start_nothing` cover refusals. `::test_model_receives_only_permitted_history_with_fresh_limits` checks the harness input.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-RELEASE-R003.10
Candidate planning audits the exit-criteria matrix
Definition — ARBORA-RELEASE / ARBORA-RELEASE — Dependency-ordered, digest-pinned Arbora rolloutCanonical requirement and verification source
**Candidate planning audits the exit-criteria matrix.** Stage: release qualification. Caller: `setup-config release-plan` → `arbora/deployment/cli.py::_run_release_plan` → `arbora/deployment/release_candidate.py::plan_candidate` → `arbora/deployment/exit_criteria.py::audit_exit_criteria`. Add option `--junit PATH` to `release-plan`. Add `passed_node_ids_from_junit(path)` to `exit_criteria.py`. It reads a pytest report written with `junit_family=xunit1`. A passed test case yields the id `<file>::<class>::<name>` or `<file>::<name>` when no class exists. Failed, errored and skipped cases yield no id. `plan_candidate` loads `deploy/release/exit-criteria.json` through `read_exit_criteria_matrix`. It audits the rows against the passed ids. It refuses with `EXIT_CRITERIA_UNMET` naming every missing obligation. It never plans when the audit has a gap. The model `ExitCriterion` in `exit_criteria.py` is removed. `audit_exit_criteria` takes `ExitCriterionRow` from `release_candidate.py`, so one matrix model remains. Evidence: the JSON result lists `satisfied` and `missing` obligation ids. Write path: none; the command never applies. Depends: `ARBORA-RELEASE-R003.1`, `ARBORA-RELEASE-R003.2`. Caller chain: `setup-config release-plan --junit PATH` (`arbora/deployment/cli.py:31` `_run_release_plan`) → `arbora/deployment/release_candidate.py:268` `plan_candidate` → `arbora/deployment/exit_criteria.py:50` `audit_exit_criteria`. Shape: Files: `arbora/deployment/cli.py` (new `--junit` option at the `release-plan` parser, line 204), `arbora/deployment/exit_criteria.py` (new `passed_node_ids_from_junit`; drop `ExitCriterion`), `arbora/deployment/release_candidate.py`. Reuse `read_exit_criteria_matrix`; one matrix model remains. | Test (planned): `tests/deployment/test_exit_criteria_served.py::test_release_plan_refuses_unmet_obligation` (L2, real CLI). A junit file without one obligation test exits 1 with `EXIT_CRITERIA_UNMET` and that obligation id. `::test_release_plan_passes_when_every_obligation_passed` exits 0. `::test_skipped_test_is_not_a_pass` proves skips count as missing.
requirementARBORA-RELEASESPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY
ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent Surface
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R001
Declarative deployment manifest and plan preview
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Declarative deployment manifest and plan preview.** Stage: deployment plan. Caller: registered op `deploy.manifest.plan` (effect read, scope `ops:read`) → `arbora/api/ops/deploy.py::handle_manifest_plan` → `arbora/deployment/manifest.py::plan_manifest`. Model `DeploymentManifest` in `manifest.py`: `schema_version`, `name`, `components[]`. A component has `id`, `kind`, `image`, `revision`, `identity_mode`, `secrets_ref` and `capacity{cpu_millis, memory_bytes, replicas}`. `kind` is `engine_shard`, `gateway`, `connector` or `webui`. `image` is a digest reference. `identity_mode` is `none`, `local` or `external`. `secrets_ref` is an `openbao://` or `env://` reference. The op reads the manifest by name from `~/.config/arbora/deploy/manifests/<name>.yaml`; the name matches `^[a-z0-9][a-z0-9_-]{0,63}$`. Parsing uses the strict loader of `arbora/deployment/image_digests.py`: unknown and duplicate keys are errors. Live state comes from the port `LiveStateReader`, backed by one read `fleet.call` named by `~/.config/arbora/deploy.yaml` key `tools.live_state.<target>`. `plan_manifest` returns `DeploymentDiff` entries `{component_id, change, from, to}`, sorted by id. Changes: `create`, `update`, `scale`, `destroy`. Refusals: `MANIFEST_INVALID`, `IMAGE_NOT_DIGEST_PINNED`, `LIVE_STATE_UNAVAILABLE`, `LIVE_STATE_TOOL_NOT_READ`. Writes: none. Depends: ARBORA-DEPLOY-R017.18, ARBORA-DEPLOY-R017.19. Caller chain: MCP or HTTP `deploy.manifest.plan` → the op registry built by `arbora/api/ops/registry_factory.py` (which lists `policy`, `messaging` and the other op modules) → `handle_manifest_plan` (new, `arbora/api/ops/deploy.py`) → `plan_manifest` (new, `arbora/deployment/manifest.py`) → `LiveStateReader` → one read `fleet.call` (`arbora/fleet/multiplexer_ops.py:256`). Shape: new modules `arbora/api/ops/deploy.py` and `arbora/deployment/manifest.py`; model `DeploymentManifest` and `DeploymentDiff`; follow the module shape of `arbora/api/ops/policy.py` (`operations()` returns `OpSpec` values, handler path `arbora.api.ops.deploy.handle_manifest_plan`); the strict loader reuses `StrictLoader` of `scripts/check_deployment_image_digests.py`, moved to `arbora/deployment/image_digests.py` so the script and the op share one loader. | Test: `tests/api/test_deploy_manifest_served.py::test_plan_returns_typed_diff_and_makes_no_write_call` (L3, `invoke`). `tests/deployment/test_manifest.py::test_unknown_key_duplicate_key_and_floating_image_are_rejected` (L2).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R002
Idempotent apply convergence
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Idempotent apply convergence.** Stage: deployment apply. Caller: registered op `deploy.manifest.apply` (effect admin, `confirm=PLAN`, scope `fleet:control`, idempotency `KEY_REQUIRED`) → `handle_manifest_apply` → `arbora/deployment/manifest.py::apply_manifest`. The function recomputes the diff and requires its digest to equal the confirmed `plan_digest`. For each `create` or `update` entry it asks placement (`ARBORA-DEPLOY-R017.1`, `R017.2`) and runs the confirmed steps (ARBORA-DEPLOY-R017.21). The receipt `ApplyReceipt{manifest_digest, components[{id, revision, outcome}], receipt_digest}` carries no timestamp. `receipt_digest` is the SHA-256 of the canonical JSON. A re-run on a converged state has an empty diff, makes zero calls and returns the same receipt. A missing input refuses `MANIFEST_INPUT_MISSING` naming the gap, before any call. Arbora fabricates no input. Writes: governed `fleet.call` effects keyed `deploy:<manifest_digest>:<component>:<node>`. Depends: `ARBORA-DEPLOY-POLICY-R001`, ARBORA-DEPLOY-R017.21. Caller chain: MCP or HTTP `deploy.manifest.apply` → the op registry → `handle_manifest_apply` (new, `arbora/api/ops/deploy.py`) → `apply_manifest` (new, `arbora/deployment/manifest.py`) → placement and confirmed steps of `ARBORA-DEPLOY-R017.1`, `R017.2` and `R017.21` → governed `fleet.call`. Shape: `ApplyReceipt` frozen dataclass in `arbora/deployment/manifest.py`; `receipt_digest` is SHA-256 over canonical JSON (sorted keys, no timestamp); the idempotency key format is `deploy:<manifest_digest>:<component>:<node>`; reuse the plan recomputation of `plan_manifest` so the confirmed `plan_digest` is checked against a fresh diff. | Test: `tests/api/test_deploy_manifest_served.py::test_second_apply_makes_zero_calls_and_returns_identical_receipt` (L3). `::test_missing_input_names_the_gap_and_creates_nothing` (L3).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R003
Drift inspection and destructive-change approval
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Drift inspection and destructive-change approval.** Stage: deployment plan and apply. Caller: `deploy.manifest.plan` returns `drift[]` for entries with change `update` or `scale`. It returns `destructive[]` for `destroy`, `scale` below one replica, and any component whose persistent volume is removed. `deploy.manifest.apply` requires the param `approval_elevation_id` when `destructive[]` is not empty. Arbora reads the elevation through the access service (`arbora/access/service.py`). It requires status `approved`, `remaining_ms > 0`, and justification equal to `deploy-destructive:<destructive_digest>`. The two-person rule is the elevation service rule: the approver differs from the requester. Refusals: `APPROVAL_REQUIRED`, `APPROVAL_EXPIRED`, `APPROVAL_MISMATCH`. Drift inspection is read-only. Depends: `ARBORA-DEPLOY-POLICY-R001`, `ARBORA-DEPLOY-POLICY-R002`, `ARBORA-IDENTITY-R001`. Caller chain: MCP or HTTP `deploy.manifest.plan` and `deploy.manifest.apply` → `handle_manifest_plan` and `handle_manifest_apply` (new, `arbora/api/ops/deploy.py`) → `arbora/security/elevation.py` through `arbora/access/service.py`. Shape: extend `DeploymentDiff` with `drift[]` and `destructive[]`; `destructive_digest` is SHA-256 over the canonical `destructive[]`; the approval check calls the existing `ElevationService` (`arbora/security/elevation.py`) and adds no second approval store. | Test: `tests/api/test_deploy_manifest_served.py::test_manual_replica_change_is_reported_as_drift` (L3). `::test_destructive_apply_needs_a_fresh_approval_and_a_stale_one_expires` (L3).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R004
Declarative policy bundles as code
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Declarative policy bundles as code.** Stage: policy administration. Caller: registered ops `policy.bundle.validate` (read) and `policy.bundle.bind` (effect admin, `confirm=CONSOLE`, scope `fleet:control`) in `arbora/api/ops/policy.py`. They call the engine methods `ValidatePolicyBundle` and `BindPolicyBundle` (MEDULLA-IDENTITY-R702) through the caller's engine client. Arbora parses the bundle file `~/.config/arbora/policy/<name>.yaml` with the strict loader and sends it unchanged. The engine compiles it into its isolation layer and enforces it in the one access boundary. MCP and HTTP share one decision because both call the same op. Engine refusals `POLICY_SCOPE_BOUND` and `POLICY_SELF_AUTHORIZATION` pass through unchanged. Arbora holds no rule table and no evaluator. Writes: engine only. Depends: MEDULLA-IDENTITY-R702, `ARBORA-OPS-R009`. Caller chain: MCP or HTTP `policy.bundle.validate` and `policy.bundle.bind` → the op registry built by `arbora/api/ops/registry_factory.py` (which lists `policy`, `messaging` and the other op modules) → `handle_bundle_validate` and `handle_bundle_bind` (new, `arbora/api/ops/policy.py`, next to `handle_policy_read` at line 36) → the caller's engine client → `ValidatePolicyBundle` and `BindPolicyBundle`. Shape: add two `OpSpec` entries to `operations()` in `arbora/api/ops/policy.py` (scopes `policy:read` and `fleet:control`, `confirm=CONSOLE` for bind) and a `PolicyBundle` strict-loader model in new `arbora/deployment/policy_bundle.py`; the bundle goes to the engine unchanged and Arbora keeps no evaluator. | Test: `tests/api/test_policy_bundle_served.py::test_bound_bundle_denies_a_mutation_on_http_and_mcp_with_the_same_decision` (L3, loopback engine). `::test_scope_exclusivity_and_self_authorization_refusals_pass_through` (L3).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R005
Epistemic policy predicates
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Epistemic policy predicates.** Stage: policy enforcement. Caller: any registered write op (for example `ingest.submissions.create`) → invoke pipeline → engine mutation → engine access service (MEDULLA-IDENTITY-R703). Arbora adds no predicate code. The pipeline returns the engine refusals `POLICY_EVIDENCE_MISSING`, `POLICY_EVIDENCE_EXPIRED` and `POLICY_CONFIDENCE_LOW` as typed refusals with the engine reason. Missing evidence is never a pass. Depends: MEDULLA-IDENTITY-R703, `ARBORA-DEPLOY-POLICY-R004`. Caller chain: any registered write op → the invoke pipeline of `arbora/api/ops/` → the engine mutation → the engine access service. Shape: no new module; extend the refusal mapping of the invoke pipeline with the three engine codes `POLICY_EVIDENCE_MISSING`, `POLICY_EVIDENCE_EXPIRED` and `POLICY_CONFIDENCE_LOW` so each returns as a typed refusal carrying the engine reason. | Test: `tests/api/test_policy_epistemic_served.py::test_write_with_valid_evidence_admits_and_expired_or_missing_evidence_refuses` (L3, loopback engine).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R006
Served agent surface: llms.txt, best-practice resources, versioned skill export
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Served agent surface: llms.txt, best-practice resources, versioned skill export.** Stage: serving. Caller: HTTP `GET /llms.txt` (a `ProtocolRoute` in `arbora/api/http/protocol_routes.py`, owner `arbora.fleet`) → `arbora/fleet/agent_surface.py::build_llms_txt`. The file lists the served operations and docs links of the deployed version and its release digest. MCP best-practice resources register through the FastMCP bridge from the same module. The skill export command `arbora skills export --digest-stamp` writes the skills with the release digest in each header. Every artifact calls `gate_mcp_resource_publication` (`arbora/fleet/mcp_resource_reconciliation.py`) first. A stale or missing receipt refuses `reingestion-unreconciled` and publishes nothing. Depends: `ARBORA-MCP-RESOURCES-R001`. Caller chain: HTTP `GET /llms.txt` → a new `ProtocolRoute` in the route list of `arbora/api/http/protocol_routes.py` → `build_llms_txt` (new, `arbora/fleet/agent_surface.py`) → `gate_mcp_resource_publication` (`arbora/fleet/mcp_resource_reconciliation.py:75`). Shape: new module `arbora/fleet/agent_surface.py` with `build_llms_txt`, the MCP resource registration and the `--digest-stamp` skill export; each artifact calls the existing gate first and returns its `PublicationGateResult` refusal `reingestion-unreconciled` unchanged. | Test: `tests/fleet/test_agent_surface_served.py::test_llms_txt_and_resources_match_the_deployed_digest` (L3, HTTP and MCP). `::test_stale_or_missing_receipt_refuses_generation` (L3).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-POLICY-R007
Rollout records a deployment through deployment.record
Definition — ARBORA-DEPLOY-POLICY / ARBORA-DEPLOY-POLICY — Deployment and Policy as Code, with a Served Agent SurfaceCanonical requirement and verification source
**Rollout records a deployment through deployment.record.** After each successful rollout, the deploy executor must call the served operation `deployment.record`. The call carries the release artifact digest, the target and the time. Caller: the deploy operation entry in the policy-as-code deploy path. A failed record refuses with `UNAVAILABLE` and marks the rollout unrecorded. Depends: `ARBORA-OPS-R853.1`. Caller chain: MCP or HTTP `deploy.manifest.apply` → `apply_manifest` (new, `arbora/deployment/manifest.py`) → after each successful component rollout → `fleet.call` of the served operation `deployment.record` (`ARBORA-OPS-R853.1`). Shape: one helper `record_rollout(receipt_component)` in `arbora/deployment/manifest.py` that sends the artifact digest, target and UTC time through the same `fleet.call` path as the apply steps; a failed record sets the component outcome to `unrecorded` and refuses `UNAVAILABLE`. | Test: `tests/api/test_deploy_manifest_served.py::test_rollout_records_one_deployment_and_none_on_failure` (planned, see test-spec.md).
requirementARBORA-DEPLOY-POLICYSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET
ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reload
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R001
Typed pack publisher replaces placeholder ContentPack
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Typed pack publisher replaces placeholder ContentPack.** arbora publishes fleet content packs with the engine-generated SQL record types, not the placeholder `ContentPack` structure. SQL and market-data connector items then carry real typed schemas in the catalog. Caller chain: connector onboarding in `arbora/fleet/onboarding.py` -> pack publish in `arbora/fleet/catalog_items.py` -> engine pack write; the guard test `tests/test_connector_pack_typed_publisher.py` scans the package for the placeholder type. Shape: publish with the engine-generated SQL record types through the engine client used in `arbora/fleet/catalog_items.py`; the placeholder `ContentPack` structure is deleted, and the scan in `tests/test_connector_pack_typed_publisher.py` is the existing guard. | Integration test asserts published packs use the generated types and that no code path constructs the placeholder `ContentPack`. Test: `tests/test_connector_pack_typed_publisher.py::test_no_placeholder_content_pack_type_is_defined_anywhere`
requirementARBORA-FLEETVERIFIED18038a22a875
223bee6a0edd
8df218e2f742
tests/test_connector_pack_typed_publisher.py:29
tests/test_connector_pack_typed_publisher.py:51
tests/test_connector_pack_typed_publisher.py:65
ARBORA-FLEET-R002
Tool schema fingerprints recomputed from served schemas (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Tool schema fingerprints recomputed from served schemas (rollup).** Subsystem: fleet catalog admission. Caller: boot onboarding thread or `arbora-production-ops onboard-fleet` (`arbora/deployment/production_ops.py`) → `arbora/fleet/onboarding.py::onboard_fleet` → `FleetOnboarding.onboard` → `arbora/fleet/catalog_items.py::compute_schema_fingerprint`. Every fleet tool pin's fingerprint is computed from the served schema, never from an empty placeholder. `.1` is the fingerprint rule. `.3` to `.8` add versioned definitions (kind, semantic version, digests) and their admission gate. `.2` and `.9` retire into them. Depends: `ARBORA-FLEET-R002.1`, `SCION-CONNECTOR-CONTROL-R003`. | Root L3 test `tests/fleet/test_versioned_definitions_served.py::test_catalog_reload_admits_compatible_update` passes. `tests/fleet/test_schema_fingerprint.py` fails on any empty-schema fingerprint.
requirementARBORA-FLEETSPECIFIED0f346a4d0e4a
ARBORA-FLEET-R002.1
Per-tool schema fingerprint computed from the served schema
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Per-tool schema fingerprint computed from the served schema.** `arbora/fleet/catalog_items.py` defines `compute_schema_fingerprint()`, a pure SHA-256 digest of a canonicalized schema that refuses an empty mapping, and `CatalogItem.schema_fingerprint`; `items_from_child_probe`'s tool rows populate it from the probed tool's real `inputSchema` through `_probed_item`, leaving it unset rather than empty for an unprobed schema or a non-tool item. No fleet-wide re-certification check yet (`ARBORA-FLEET-R002.2`, not yet specified). Caller chain: fleet probe in `arbora/fleet/multiplexer.py` -> `arbora/fleet/catalog_items.py::items_from_child_probe` (line 308) -> `_probed_item` -> `arbora/fleet/catalog_items.py::compute_schema_fingerprint` (line 252) -> `CatalogItem.schema_fingerprint`. Shape: `compute_schema_fingerprint` (pure SHA-256 over a canonicalized schema, refusing an empty mapping) and the `schema_fingerprint` field of `arbora/fleet/catalog_items.py::CatalogItem` (line 21), both in `arbora/fleet/catalog_items.py`; no new module. | `tests/fleet/test_schema_fingerprint.py` covers a stable digest, sensitivity to the served schema's content, refusal of an empty schema, population for a probed tool, and no fingerprint for an unprobed schema or a non-tool kind. Test: `tests/fleet/test_schema_fingerprint.py::test_fingerprint_is_a_stable_sha256_of_the_real_schema`
requirementARBORA-FLEETVERIFIED0f346a4d0e4a
223bee6a0edd
tests/fleet/test_schema_fingerprint.py:27
tests/fleet/test_schema_fingerprint.py:36
tests/fleet/test_schema_fingerprint.py:42
tests/fleet/test_schema_fingerprint.py:48
tests/fleet/test_schema_fingerprint.py:57
ARBORA-FLEET-R003
D18 write-back exposed only as a typed, previewed operation (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**D18 write-back exposed only as a typed, previewed operation (rollup).** Subsystem: served operations, write-back. Caller: HTTP route `arbora/api/http/routes.py::invoke_for_caller` or MCP intent tool → `arbora/api/invoke/pipeline.py::invoke` → ops `fleet.write_back.preview` and `fleet.write_back.commit` in `arbora/api/ops/write_back.py`. Children: `.1` models, `.2` registration, `.3` restart. Children `.5` to `.10` bind the repository profile: request, composition, commit, readback, refusal parity and replay. `.4` retires. Approval and audit stay under `ARBORA-OPS-R009`; the provider effect belongs to `SCION-GOVERNED-WRITEBACK-R004`. | Root L3 test `tests/fleet/test_write_back_restart.py::test_write_back_survives_restart` passes.
requirementARBORA-FLEETSPECIFIED67b1b9ab916e
ARBORA-FLEET-R003.1
Typed write-back preview model and its refusal rule
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Typed write-back preview model and its refusal rule.** `arbora/api/ops/write_back.py` defines `WriteBackPreviewRequest`/`WriteBackPreviewResult` and `preview_write_back()`. The preview never applies a write and refuses a blank idempotency key. D18 write-back is therefore never an unguarded native child tool. No registry binding yet (`ARBORA-FLEET-R003.2`, not yet specified). Caller chain: no registry binding yet (`ARBORA-FLEET-R003.2`); today only `tests/api/test_write_back_preview.py` calls `arbora/api/ops/write_back.py::preview_write_back` (line 50). Shape: `WriteBackPreviewRequest`, `WriteBackPreviewResult` and `arbora/api/ops/write_back.py::preview_write_back` (line 50) in `arbora/api/ops/write_back.py`, with the shared models in `arbora/api/ops/write_back_models.py`. | `tests/api/test_write_back_preview.py` covers a successful preview, the blank-idempotency-key refusal, and that the result never marks the write as applied. Test: `tests/api/test_write_back_models.py::test_idempotency_key_is_stable_for_identical_inputs`
requirementARBORA-FLEETVERIFIED67b1b9ab916e
e80df3dcad62
f2d7ec520ab7
tests/api/test_write_back_models.py:120
tests/api/test_write_back_models.py:19
tests/api/test_write_back_models.py:31
tests/api/test_write_back_models.py:46
tests/api/test_write_back_models.py:60
ARBORA-FLEET-R003.2
Write-back registered as a typed, gated registry operation, not a native child tool
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Write-back registered as a typed, gated registry operation, not a native child tool.** Subsystem: served operations. Shape: add `operations()` to `arbora/api/ops/write_back.py` returning two `OpSpec` entries, `fleet.write_back.preview` (read effect) and `fleet.write_back.commit` (write effect, `Confirm`, `Idempotency`). Add the module to the module tuple in `arbora/api/ops/registry_factory.py`. They consume `WriteBackPreviewParams`, `WriteBackCommitParams` and `WriteBackReceipt` from `write_back_models.py`. Preview stores the `WriteBackPreview` in the invoke journal (`_journal_key`). Commit loads it and calls `commit_write_back`. Refusals: `WRITE_BACK_PREVIEW_REQUIRED` for no stored preview and `WRITE_BACK_KEY_MISMATCH` for a different key. No native child tool exposes write-back. Depends: `ARBORA-FLEET-R003.1`, `ARBORA-OPS-R009`. Caller chain: HTTP and MCP -> registry `invoke` -> `fleet.write_back.preview` and `fleet.write_back.commit` `OpSpec` entries from the new `operations()` of `arbora/api/ops/write_back.py` -> the child write-back tool through the fleet forward. | Test: `tests/api/test_write_back_ops.py::test_preview_commit_replay_and_refusals` (L2) covers preview-then-commit, replayed commit returning the original receipt, no preview and a mismatched key.
requirementARBORA-FLEETLANDEDf2d7ec520ab7
ARBORA-FLEET-R004
Pack annotations carry capability, digest, modality, cost, latency
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Pack annotations carry capability, digest, modality, cost, latency.** Every fleet pack item's catalog entry carries its capability, schema digest, modality, cost and latency annotations. Every pack item in the fleet carries them, not a subset. Caller chain: fleet catalog build in `arbora/fleet/catalog_composition.py` -> `arbora/fleet/catalog_items.py::connector_items` (line 363) -> `_pack_annotations` -> catalog entry. Shape: `_pack_annotations` and `connector_items` in `arbora/fleet/catalog_items.py` fill capability, digest, modality, cost and latency for every pack item; the audit is `tests/fleet/test_catalog_items_pack_annotations.py`. | A catalog audit test confirms all required annotation fields are present and non-empty for every pack item fleet-wide. Test: `tests/fleet/test_catalog_items_pack_annotations.py::test_every_pack_item_carries_all_required_annotations_fleet_wide`
requirementARBORA-FLEETVERIFIED0aba0c33acd0
f2a3173e9a84
tests/fleet/test_catalog_items_pack_annotations.py:28
tests/fleet/test_catalog_items_pack_annotations.py:45
tests/fleet/test_catalog_items_pack_annotations.py:63
tests/fleet/test_catalog_items_pack_annotations.py:71
ARBORA-FLEET-R005
A2A task routing with typed work-item and lease operations (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A2A task routing with typed work-item and lease operations (rollup).** Subsystem: A2A routing. Caller: A2A server (`arbora/a2a/service.py`) → `arbora/a2a/routing.py::OrchestratorA2ARouter.route` → typed `GetWorkItem` and `ListWorkItems` (`arbora/a2a/work_items.py`). It adds capability-based agent search and single-use, provenance-tracked control leases for assigned work. The multiplexer exposes only the tools that this routing reaches. `.1` holds the work-item view, `.3` the integrated flow of `ARBORA-FLEET-R027.1` to `.6`. `.2` retires into this row. `MEDULLA-DURABLE-KERNEL-R039.3` provides pending-call storage and its refusal outcomes. | Root L3 test `tests/fleet/test_discovery_distribution_provisioning.py::test_a2a_task_routes_through_work_item` passes.
requirementARBORA-FLEETSPECIFIED3b404ee3ecf8
ARBORA-FLEET-R005.1
Typed WorkItem view, the GetWorkItem/ListWorkItems producer
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Typed WorkItem view, the GetWorkItem/ListWorkItems producer.** `arbora/a2a/work_items.py` defines a frozen `WorkItemView` and projects it. The projection reads the same durable work-item record fields `WorkItemA2AAuthority` already writes (`kind`, `tenant`, `created_by`, `metadata`, the `workitem:orchestrator:` id), The view refuses a record missing or blanking a required identity field for a single get. It drops (not fails) a malformed record for a listing. No `GetWorkItem`/`ListWorkItems` operation, capability search, or control lease yet (`ARBORA-FLEET-R005.2`+, not yet specified). Caller chain: A2A task read path in `arbora/a2a/service.py` -> `arbora/a2a/work_items.py` projection (`arbora/a2a/work_items.py::WorkItemView` (line 35)) over the records written by `WorkItemA2AAuthority`; no `GetWorkItem` operation calls it yet. Shape: frozen `arbora/a2a/work_items.py::WorkItemView` (line 35) and its projection functions in `arbora/a2a/work_items.py`, reading the existing durable work-item record fields. | `tests/a2a/test_work_items.py` covers correct projection, optional-field defaults, missing or blank fields, and non-mapping metadata refusals. It also proves listing drops malformed records while preserving order. Test: `tests/a2a/test_work_items.py::test_projects_a_real_record_into_a_typed_view`
requirementARBORA-FLEETVERIFIED3b404ee3ecf8
f2a3173e9a84
tests/a2a/test_work_items.py:31
tests/a2a/test_work_items.py:45
tests/a2a/test_work_items.py:59
tests/a2a/test_work_items.py:67
tests/a2a/test_work_items.py:75
ARBORA-FLEET-R006
Multiplexer skill and prompt harvest path removed
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Multiplexer skill and prompt harvest path removed.** Subsystem: multiplexer. Caller: server bootstrap → `arbora/fleet/multiplexer.py` probe path (`_probe_skills`, `_probe_prompts`, `_resolve_via_local_catalog_or_harvest`). The multiplexer no longer harvests or statically hydrates skills and prompts at startup. The resident catalog (`arbora/fleet/local_skill_catalog.py`) serves the same capability. Children: `.1` inventory baseline, `.2` cutover, `.3` deletion in four steps, `.4` rename, `.5` closing audit. Hard cutover: no flag keeps the old path. | Root test `tests/fleet/test_no_harvest_remains.py::test_baseline_is_zero` passes.
requirementARBORA-FLEETSPECIFIED67b1b9ab916e
ARBORA-FLEET-R007
Bridge runs on FastMCP 4 with native primitives (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Bridge runs on FastMCP 4 with native primitives (rollup).** Subsystem: MCP bridge. Caller: server bootstrap → `arbora/mcp_server/backing/server_factory.py` (the `FastMCP(` construction at line 2437) → `arbora/mcp_server/backing/arbora_surface.py::register_arbora_surface`. The bridge declares `fastmcp>=4.1.0` (`pyproject.toml:67`) and serves native tools, prompts, resources, templates and skills from one composed server loop. `.1` is the connector SDK pattern, `.2` the bridge registration, `.3` the served end-to-end proof. Native content publication follows `ARBORA-FLEET-R044`. | Root L3 test `tests/mcp/test_fastmcp4_native.py::test_served_bridge_native_primitives` passes.
requirementARBORA-FLEETSPECIFIED67b1b9ab916e
ARBORA-FLEET-R008
RUM, security-audit and CI/CD feeds join the catalog (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**RUM, security-audit and CI/CD feeds join the catalog (rollup).** Subsystem: fleet feeds. Caller: connector ingest job → `arbora/fleet/feeds.py` event builders (`rum_event`, `security_audit_event`, `cicd_event`) → `arbora/fleet/catalog_items.py::connector_items`. Only sanitized, tenant-scoped data reaches the operation registry. `.1` holds the typed events and `.2` the live wiring. | Root L3 test `tests/fleet/test_feed_catalog_served.py::test_feed_events_sanitized_and_tenant_scoped` passes.
requirementARBORA-FLEETSPECIFIED67b1b9ab916e
ARBORA-FLEET-R008.1
Typed feed-event model per feed kind
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Typed feed-event model per feed kind.** `arbora/fleet/feeds.py` defines `FeedEvent`/`FeedEventRejected` and `rum_event()`/`security_audit_event()`/`cicd_event()`, each refusing an unsanitized payload or a missing tenant before a feed event can exist. No live connector ingestion yet (`ARBORA-FLEET-R008.2`, not yet specified). Caller chain: no live ingestion yet (`ARBORA-FLEET-R008.2`); today the feed constructors in `arbora/fleet/feeds.py` are called by `tests/fleet/test_feeds.py` and by `connector_items` in `arbora/fleet/catalog_items.py`. Shape: `arbora/fleet/feeds.py::FeedEvent` (line 44), `FeedEventRejected`, `rum_event`, `security_audit_event` and `cicd_event` in `arbora/fleet/feeds.py`, sharing the `_check_sanitized` helper. | `tests/fleet/test_feeds.py` covers construction of each feed kind, the unsanitized-payload refusal, and the missing-tenant refusal. Test: `tests/fleet/test_feeds.py::test_rum_event_accepts_sanitized_payload`
requirementARBORA-FLEETVERIFIED67b1b9ab916e
f2a3173e9a84
tests/fleet/test_feeds.py:15
tests/fleet/test_feeds.py:23
tests/fleet/test_feeds.py:31
tests/fleet/test_feeds.py:37
tests/fleet/test_feeds.py:44
ARBORA-FLEET-R008.2
Live feed ingestion wired into the catalog
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Live feed ingestion wired into the catalog.** Subsystem: fleet feeds. Caller chain: connector ingest job → `feeds.py::FeedEvent` constructors (they run `_check_sanitized`) → `connector_items()` and `_pack_annotations()` (`catalog_items.py:321`, `:343`) → registry. A payload that fails sanitization refuses with `FeedEventRejected` and never reaches the catalog. An event with another tenant never appears for the caller. Depends: `ARBORA-FLEET-R008.1`, `ARBORA-FLEET-R026.2`. Shape: call the `FeedEvent` constructors of `arbora/fleet/feeds.py` from the connector ingest job and carry the event into `connector_items` and `_pack_annotations` of `arbora/fleet/catalog_items.py`, filtering by caller tenant; no new module. | Test: `tests/fleet/test_feed_catalog_served.py::test_feed_events_sanitized_and_tenant_scoped` (L3) feeds one event per kind and a rejected one through `find` over HTTP and MCP.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R009
Run admission evaluates, commits and publishes with capacity control
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Run admission evaluates, commits and publishes with capacity control.** Subsystem: A2A run admission. Caller: `agents.run` via `invoke` → `arbora/a2a/routing.py::OrchestratorA2ARouter.route` → `arbora/a2a/composition.py` → `arbora/control_plane/runs/admission.py`. A candidate run is evaluated, committed with synthesis evidence and published only after an all-or-nothing capacity acquisition (`CapacityAcquisition.acquire`). A denied acquisition allows exactly one re-decision (`CapacityReDecisionExhaustedError` on the second). A stopped run releases its hold. `.1` is the primitive, `.2` routing and composition, `.3` admission. | Root L3 test `tests/a2a/test_run_admission_capacity_served.py::test_evaluate_commit_publish_with_capacity` passes.
requirementARBORA-FLEETLANDED58ee1a06a392
67b1b9ab916e
c77ede8726fa
ARBORA-FLEET-R009.1
Capacity acquisition is all-or-nothing with one re-decision
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Capacity acquisition is all-or-nothing with one re-decision.** `arbora/control_plane/runs/admission.py` gains a capacity primitive: a candidate run acquires every requested resource unit or none at all; the first denial consumes that run's single re-decision and returns a retry signal instead of failing, a second denial for the same run fails closed, and releasing a run (stop, or a reset after denial) returns every unit it held and restores its re-decision budget. Caller chain: run admission `arbora/control_plane/runs/admission.py::InMemoryNativeAdmission` (line 119) -> `CapacityAcquisition` (line 48 of the same module) -> `CapacityLedger` of `arbora/control_plane/runs/capacity.py` (all-or-nothing acquire, one re-decision, `CapacityReDecisionExhaustedError` on the second denial). Shape: `arbora/control_plane/runs/capacity.py::CapacityLedger` (line 53), `CapacityDecision` and `CapacityReDecisionExhaustedError` in `arbora/control_plane/runs/capacity.py`, consumed through `CapacityAcquisition` in `arbora/control_plane/runs/admission.py`; reuse, no second ledger. | Unit test drives the primitive through grant, partial-unavailability no-op, denial-then-one-redecision, a second denial failing closed, and release restoring both capacity and the redecision budget. Test: `tests/control_plane/admission/test_capacity_acquisition.py::test_acquire_grants_all_or_nothing`
requirementARBORA-FLEETVERIFIED58ee1a06a392
c77ede8726fa
tests/control_plane/admission/test_capacity_acquisition.py:13
tests/control_plane/admission/test_capacity_acquisition.py:23
tests/control_plane/admission/test_capacity_acquisition.py:35
tests/control_plane/admission/test_capacity_acquisition.py:47
tests/control_plane/admission/test_capacity_acquisition.py:60
ARBORA-FLEET-R009.2
Routing and composition publish only through acquired capacity
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Routing and composition publish only through acquired capacity.** Subsystem: A2A routing. Caller chain: `OrchestratorA2ARouter.route` → `composition.py` publish step → `CapacityLedger.acquire` (`arbora/control_plane/runs/capacity.py:89`). Evaluate a candidate, commit with synthesis evidence, acquire, then publish. A denial returns the single re-decision to the caller. A second denial refuses with `CAPACITY_REDECISION_EXHAUSTED`. Stop calls `release`. Depends: `ARBORA-FLEET-R009.1`. Shape: edit `compose_a2a` in `arbora/a2a/composition.py::compose_a2a` (line 23) and `OrchestratorA2ARouter.route` in `arbora/a2a/routing.py::OrchestratorA2ARouter` (line 44) to acquire through the ledger before publish; a second denial raises `CAPACITY_REDECISION_EXHAUSTED`, mapped from `CapacityReDecisionExhaustedError`. | Test: `tests/a2a/test_run_admission_capacity_served.py::test_evaluate_commit_publish_with_capacity` (L3) drives grant, one re-decision, publish and release on stop.
requirementARBORA-FLEETLANDED58ee1a06a392
c77ede8726fa
ARBORA-FLEET-R009.3
Run admission publishes with all-or-nothing capacity control
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Run admission publishes with all-or-nothing capacity control.** Subsystem: run admission. Caller chain: `composition.py` → `arbora/control_plane/runs/admission.py::InMemoryNativeAdmission.admit_once` → `CapacityAcquisition.acquire` (line 65). Publish a committed run only after the acquisition grants every requested resource. A partial grant holds nothing. A denial allows one re-decision (`CapacityDeniedError`). Release runs when the run stops. Depends: `ARBORA-FLEET-R009.2`. Shape: `InMemoryNativeAdmission.admit_once` in `arbora/control_plane/runs/admission.py::InMemoryNativeAdmission` (line 119) calls `CapacityAcquisition.acquire` and releases on stop; no new module. | Test: `tests/a2a/test_run_admission_capacity_served.py::test_all_or_nothing_and_release` (L3) asserts no partial hold on denial and release on stop.
requirementARBORA-FLEETLANDED58ee1a06a392
ARBORA-FLEET-R003.3
Write-back idempotency and preview gating survive a service restart
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Write-back idempotency and preview gating survive a service restart.** Subsystem: served operations. Caller chain: `fleet.write_back.commit` via `invoke` → journal reservation (`_reserve_journal_entry`). The journal is durable, so a restarted registry reads the stored preview and receipt. A replayed commit returns the original receipt and applies nothing twice. A faulted child call leaves no stored receipt and no partial state. Refusal parity with `.2` applies after restart. Depends: `ARBORA-FLEET-R003.2`. Shape: the durable journal of `arbora/api/invoke/pipeline.py::_reserve_journal_entry` (line 812) stores the preview and the receipt and is reused after restart; new test `tests/fleet/test_write_back_restart.py` reopens the journal. | Test: `tests/fleet/test_write_back_restart.py::test_write_back_survives_restart` (L3) rebuilds the registry mid-sequence and asserts one effect and an unchanged receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R006.1
Harvest call-site inventory, the removal baseline
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Harvest call-site inventory, the removal baseline.** `tests/fleet/test_harvest_inventory.py` enumerates every harvest-named entry point in `arbora/fleet/multiplexer.py` (`_harvest_deadline`, `_harvest_error_reason`, `_harvest_resource_bodies` and its call sites in `_probe_protocol_families`/`_probe_skills`/`_probe_prompts`, and `_harvest_probe_results`) and pins today's call-site count as a baseline. `ARBORA-FLEET-R006.2`-`.5` must reduce it. No removal in this child. Caller chain: `tests/fleet/test_harvest_inventory.py` scans `arbora/fleet/multiplexer.py` (`_harvest_deadline`, `_harvest_error_reason`, `_harvest_resource_bodies`, `_harvest_probe_results` and their call sites in `_probe_protocol_families`, `_probe_skills`, `_probe_prompts`). Shape: the AST scan helper inside `tests/fleet/test_harvest_inventory.py` pins the call-site count of `_harvest`-named functions; no production code. | `tests/fleet/test_harvest_inventory.py` passes against current `main` and fails if a harvest-named symbol or call site is added or removed without updating the pinned baseline. Test: `tests/fleet/test_harvest_inventory.py::test_harvest_named_entry_points_match_pinned_baseline`
requirementARBORA-FLEETVERIFIED031958c74eb8
a94c87aa090e
tests/fleet/test_harvest_inventory.py:105
tests/fleet/test_harvest_inventory.py:116
ARBORA-FLEET-R006.2
Skill/prompt body-harvest cutover for an already-admitted child
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Skill/prompt body-harvest cutover for an already-admitted child.** `_probe_skills` and `_probe_prompts` (`arbora/fleet/multiplexer.py`) stop calling `_harvest_resource_bodies` for a mounted child server already covered by the resident local-skill catalog (`arbora/fleet/local_skill_catalog.py`'s `build_local_skill_catalog`), keeping the fleet-harvest fallback only for a child server that catalog does not yet admit, consuming `ARBORA-FLEET-R006.1`'s baseline. Caller chain: fleet probe -> `arbora/fleet/multiplexer.py::_probe_skills` (line 5716) and `_probe_prompts` -> `arbora/fleet/local_skill_catalog.py::build_local_skill_catalog` for an admitted child. Shape: edit `_probe_skills` and `_probe_prompts` in `arbora/fleet/multiplexer.py` to resolve through the resident catalog built by `build_local_skill_catalog` in `arbora/fleet/local_skill_catalog.py`, keeping `_resolve_via_local_catalog_or_harvest` (line 5643 caller) fallback for non-admitted children. | A multiplexer test confirms an admitted child's skills/prompts resolve through the resident catalog with no `_harvest_resource_bodies` call, while a non-admitted child still falls back to the existing harvest path. Test: `tests/fleet/test_fleet_r006_2_local_catalog_cutover.py::test_admitted_skill_resolves_via_local_catalog_without_harvest`
requirementARBORA-FLEETVERIFIED031958c74eb8
1db599dcf40c
a94c87aa090e
tests/fleet/test_fleet_r006_2_local_catalog_cutover.py:125
tests/fleet/test_fleet_r006_2_local_catalog_cutover.py:33
tests/fleet/test_fleet_r006_2_local_catalog_cutover.py:68
tests/fleet/test_fleet_r006_2_local_catalog_cutover.py:91
ARBORA-FLEET-R006.3
Dead harvest helpers removed (rollup over `.3.1` to `.3.4`)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Dead harvest helpers removed (rollup over `.3.1` to `.3.4`).** Subsystem: multiplexer. `.3.1` routes `_probe_protocol_families` to the cutover helper. `.3.2` deletes the fallback and `_harvest_resource_bodies`. `.3.3` deletes `_harvest_deadline`, `_HARVEST_DEADLINE_SHARE` and `_harvest_error_reason`. `.3.4` deletes `_SKILL_HARVEST_SPEC`, `_PROMPT_HARVEST_SPEC` and the harvest-only budget constants. Order: `.3.1`, `.3.2`, `.3.3`, `.3.4`. Depends: `ARBORA-FLEET-R006.2`. | Test: `tests/fleet/test_harvest_inventory.py::test_removed_symbols_absent` (L1) asserts none of the five symbols exists in `arbora/fleet/multiplexer.py`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R006.3.1
`_probe_protocol_families` harvest calls routed through the cutover helper
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**`_probe_protocol_families` harvest calls routed through the cutover helper.** The two direct `_harvest_resource_bodies` calls in `_probe_protocol_families` (`arbora/fleet/multiplexer.py`) are replaced by `_resolve_via_local_catalog_or_harvest`, leaving that helper the single `_harvest_resource_bodies` call site. Caller chain: fleet probe -> `arbora/fleet/multiplexer.py::_probe_protocol_families` (line 5588) -> `_resolve_via_local_catalog_or_harvest` -> `_harvest_resource_bodies` (the single remaining call site). Shape: replace the two direct `_harvest_resource_bodies` calls in `_probe_protocol_families` of `arbora/fleet/multiplexer.py` with `_resolve_via_local_catalog_or_harvest`. | `tests/fleet/test_harvest_inventory.py` pins `_probe_protocol_families` at zero direct `_harvest_resource_bodies` call sites and `_resolve_via_local_catalog_or_harvest` at one; an admitted child's skills resolve with no wire read. Test: `tests/fleet/test_harvest_inventory.py::test_probe_protocol_families_has_no_direct_harvest_call`
requirementARBORA-FLEETVERIFIEDddb10c07995e
tests/fleet/test_harvest_inventory.py:128
tests/fleet/test_harvest_inventory.py:135
ARBORA-FLEET-R006.3.2
Non-admitted fallback and `_harvest_resource_bodies` deleted
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Non-admitted fallback and `_harvest_resource_bodies` deleted.** Once every mounted fleet child is admitted by the resident catalog (`arbora/fleet/local_skill_catalog.py`; admitting the remaining children is a prerequisite and may need an `meristem` or per-agent package change), the fallback branch of `_resolve_via_local_catalog_or_harvest` and `_harvest_resource_bodies` are deleted. Caller chain: fleet probe -> `_probe_protocol_families`, `_probe_skills`, `_probe_prompts` in `arbora/fleet/multiplexer.py` -> `_resolve_via_local_catalog_or_harvest` -> resident catalog only (planned, after every child is admitted). Shape: delete the fallback branch of `_resolve_via_local_catalog_or_harvest` and `_harvest_resource_bodies` in `arbora/fleet/multiplexer.py`; the surviving path is `build_local_skill_catalog` in `arbora/fleet/local_skill_catalog.py`. | The inventory test confirms `_harvest_resource_bodies` no longer exists and the skill/prompt discovery tests still pass. Test: `tests/fleet/test_harvest_inventory.py::test_harvest_resource_bodies_absent` (planned, listed in test-spec.md).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R006.3.3
Deadline and error-reason helpers deleted
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Deadline and error-reason helpers deleted.** Subsystem: multiplexer. Shape: delete `_harvest_deadline` (`multiplexer.py:226`), `_HARVEST_DEADLINE_SHARE` and `_harvest_error_reason` after `.3.2` leaves them without a caller. Remove the comment reference near line 5507. The probe deadline logic keeps its own helper. Depends: `ARBORA-FLEET-R006.3.2`. Caller chain: fleet probe in `arbora/fleet/multiplexer.py`; after `.3.2` no caller reaches `_harvest_deadline` or `_harvest_error_reason`, which are deleted. | Test: `tests/fleet/test_harvest_inventory.py::test_deadline_helpers_absent` (L1) asserts the symbols are gone; the probe deadline tests still pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R006.3.4
Harvest specs deleted
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Harvest specs deleted.** Subsystem: multiplexer. Shape: delete `_SKILL_HARVEST_SPEC` (`multiplexer.py:193`), `_PROMPT_HARVEST_SPEC`, `_ResourceHarvestSpec` and the harvest-only budget constants. `_probe_resource_family` keeps only the kind and body-field data that it still uses. Depends: `ARBORA-FLEET-R006.3.3`. Caller chain: fleet probe -> `_probe_resource_family` in `arbora/fleet/multiplexer.py`; after `.3.3` nothing reads `_SKILL_HARVEST_SPEC` or `_PROMPT_HARVEST_SPEC`, which are deleted. | Test: `tests/fleet/test_harvest_inventory.py::test_harvest_specs_absent` (L1) asserts the spec symbols are gone; the `_probe_skills` and `_probe_prompts` tests pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R006.4
Residual harvest-named symbol renamed off the removed path
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Residual harvest-named symbol renamed off the removed path.** Subsystem: multiplexer. Shape: rename `_harvest_probe_results` (`multiplexer.py:6064`) to `_settled_probe_results` and update its call sites at lines 6179 and 6182. The function folds generic per-server probe results and must not read as the removed path. Depends: `ARBORA-FLEET-R006.3.3`. Caller chain: fleet probe -> `probe_catalog` in `arbora/fleet/multiplexer.py` -> `_harvest_probe_results` (renamed to `_settled_probe_results`) at its two call sites. | Test: `tests/fleet/test_harvest_inventory.py::test_no_harvest_named_symbol` (L1) greps `multiplexer.py` for `_harvest` names outside comments; `probe_catalog` tests pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R006.5
Closing audit: no harvest or hydration code remains
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Closing audit: no harvest or hydration code remains.** Subsystem: multiplexer. Shape: new `tests/fleet/test_no_harvest_remains.py` built on the `ARBORA-FLEET-R006.1` inventory. It asserts the pinned count of call sites is zero in the shipped `arbora` package. The sites are skill and prompt harvest and boot hydration. Depends: `ARBORA-FLEET-R006.3`, `ARBORA-FLEET-R006.4`. Caller chain: `tests/fleet/test_no_harvest_remains.py` (planned) reads the shipped `arbora` package through the inventory helper of `tests/fleet/test_harvest_inventory.py`; no production caller. | Test: `tests/fleet/test_no_harvest_remains.py::test_baseline_is_zero` (L1) passes.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R007.1
Connector SDK server registers native prompts, resources and templates
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connector SDK server registers native prompts, resources and templates.** Subsystem: scion-sdk MCP server. Caller chain: every connector's `create_mcp_server` in the scion-sdk repo (`scion_sdk/mcp/server.py`, line 101). It registers the prompt `connector-status` (line 196) next to its tools. It registers the resource `connector://status` (line 201). It registers the template `connector://capability/{capability}` (line 206). Owner: scion-sdk; the conformance kit run of every connector exercises it. Depends: none. Shape: owned by scion-sdk (cross-repo, nothing in arbora): `create_mcp_server` in scion-sdk's `scion_sdk/mcp/server.py` registers the prompt `connector-status`, the resource `connector://status` and the template `connector://capability/{capability}`; arbora has no code for this row and consumes the result through the fleet probe in `arbora/fleet/multiplexer.py`. | Test: `tests/test_mcp_native_primitives.py::test_create_mcp_server_serves_native_prompts_resources_and_templates` in the scion-sdk repo (L3, conformance kit) lists the prompt. It reads the resource and lists the template through the served instance.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R007.2
meristem's arbora bridge surface gains native prompt/resource/template registration (cross-repo, owner: meristem)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**meristem's arbora bridge surface gains native prompt/resource/template registration (cross-repo, owner: meristem).** `arbora/mcp_server/backing/arbora_surface.py`'s `register_arbora_surface()` and its backing `FastMCP("arbora-backing")` instance register native prompts, resources and resource templates, not only tools. They follow the `ARBORA-FLEET-R007.1` pattern. They attach to the single composed server loop handed to arbora. Caller chain: arbora MCP server bootstrap `arbora/mcp_server/server.py` (imports `backing_server`, line 427) -> `arbora/mcp_server/runtime.py` (imports `register_arbora_surface`, line 911) -> `arbora/mcp_server/backing/arbora_surface.py::register_arbora_surface` (line 250). Shape: register native prompts, resources and resource templates next to the tools in `register_arbora_surface` and the `backing_server` instance of `arbora/mcp_server/backing/arbora_surface.py`, following the SDK pattern of `ARBORA-FLEET-R007.1`. | A protocol test in meristem confirms `register_arbora_surface()`'s backing instance exposes native prompts/resources/templates alongside `arbora_registrars()`'s tools. Test: `tests/mcp_server/test_arbora_surface_native_primitives.py::test_backing_surface_exposes_prompts_resources_and_templates` (planned, listed in test-spec.md).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R007.3
The served bridge exercises native prompts, resources and templates end to end
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The served bridge exercises native prompts, resources and templates end to end.** Subsystem: MCP bridge. Caller chain: MCP client → `arbora/mcp_server/server.py` bootstrap → composed server loop → `register_arbora_surface`. The served bridge answers native tool, prompt, resource, resource-template and skill lists and reads. The results equal the registry projection. A prompt or resource that policy denies is absent from the list (`ARBORA-FLEET-R019`). Depends: `ARBORA-FLEET-R007.1`, `ARBORA-FLEET-R044.1`, `ARBORA-FLEET-R044.2`. Shape: extend the served bridge in `arbora/mcp_server/backing/arbora_surface.py` and `arbora/api/mcp/serving.py` so list and read answers equal the registry projection of `arbora/api/mcp/verbs.py`; the test drives a real MCP client against `arbora/mcp_server/server.py`. | Test (planned): `tests/mcp_server/test_served_native_primitives.py::test_served_bridge_native_primitives` (L3; `tests/test_installed_content.py` already lists resources and prompts through a client and does not cover templates or the policy-denied absence) runs against the started MCP surface.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R011
Registry core computes a canonical digest and authorized find
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Registry core computes a canonical digest and authorized find.** `arbora/api/registry/` defines `OpSpec`, its enums, and the `Registry` type with a canonical serialization and a `registry_digest` that identifies the active generation, and `find` evaluates caller authorization at lookup time rather than deferring it. Caller chain: registry build `arbora/api/ops/registry_factory.py::get_registry` (line 16) -> `arbora/api/registry/registry.py` `Registry` (`registry_digest`, `find`) -> MCP discovery in `arbora/api/mcp/discovery.py`. Shape: `OpSpec`, its enums and the `Registry` type in `arbora/api/registry/`, with canonical serialization and `registry_digest`; `find` takes the caller and filters at lookup time. | `tests/api/test_registry.py` covers canonical-form stability, digest computation, and authorized-versus-denied `find` results. Test: `tests/api/test_api_registry.py::test_registry_digest_is_order_independent_and_covers_contract`
requirementARBORA-FLEETVERIFIED4b83c69e2b41
a7c25b4e76aa
tests/api/test_api_registry.py:131
tests/api/test_api_registry.py:65
ARBORA-FLEET-R012
Medulla-direct binding generator with reviewed exclusions
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Medulla-direct binding generator with reviewed exclusions.** `arbora/api/registry/eg_binding.py` generates one registry operation for each wire-callable engine method. `eg_exclusions.yaml` lists each method that is left out. Each exclusion records a replacement or an internal-only reason. Every method has a generated operation or a reviewed exclusion. | `tests/api/test_eg_binding.py` asserts full method coverage by generated bindings plus documented exclusions.
requirementARBORA-FLEETVERIFIED4b83c69e2b41
68e31b75248a
a78249aec3fd
f651a834b0db
tests/api/test_eg_binding.py:110
tests/api/test_eg_binding.py:152
tests/api/test_eg_binding.py:209
tests/api/test_eg_binding.py:65
tests/api/test_registry_factory.py:389
ARBORA-FLEET-R012.1
Engine operations come from the engine's run-time method catalog, not a contract file
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Engine operations come from the engine's run-time method catalog, not a contract file.** The binding generator of `ARBORA-FLEET-R012` reads each engine method's descriptor (identity, domain, scope, mutates, idempotency, replay class, stability, summary) and the scope registry from the catalog the engine serves at run time, `medulla.engine.method_catalog()` (`MEDULLA-CONTRACT-R057`), read once per process. Effect, verb, idempotency and principal rules derive from the descriptor. Descriptor stability `stable` maps to `stable`; `deprecated` maps to `experimental`, since the descriptor carries no removal release; `internal` methods are never wire-callable. Request and result validation is delegated to the engine at dispatch; arbora holds no schema files, and each generated op names its sides as `medulla:method/<Method>#request` and `#result`. The registry digest binds every engine-bound side to the catalog digest, so a descriptor change moves the registry digest. Arbora reads no `methods.json`, `scopes.json`, `errors.json`, receipt or `contract/schemas` file from the installed package. A catalog that is missing or malformed stops registry build (fail closed). Child slice of `ARBORA-FLEET-R012`. Caller chain: `arbora/api/ops/registry_factory.py::get_registry` -> `arbora/api/registry/eg_binding.py::load_catalog` (`medulla.engine.method_catalog()`) -> `load_eg_bindings` -> `arbora/api/registry/registry.py::Registry` (digest through `arbora/api/registry/digest.py`) -> `eg.*` operations in the registry. Shape: `load_catalog(catalog=None)` returns a shape-checked catalog mapping and raises `EgContractError`; `load_generated_scopes(catalog=None)` and `load_eg_bindings(*, catalog=None, curated_ops=(), exclusions_path=None)` take it; an `EgSchemaRef` digests as `{"eg_schema": path, "catalog_digest": digest}`. | A test builds the registry from an in-memory catalog and proves a malformed catalog refuses the build and a catalog digest change moves the registry digest. A source scan finds no read of the packaged contract directory. Test: `tests/api/test_registry_factory.py::test_engine_operations_come_from_served_descriptors`.
requirementARBORA-FLEETVERIFIEDa78249aec3fd
tests/api/test_registry_factory.py:389
tests/architecture/test_no_engine_contract_files.py:12
ARBORA-FLEET-R013
MCP projection exposes the six verbs with typed schemas
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**MCP projection exposes the six verbs with typed schemas.** `arbora/api/mcp/verbs.py`, `discovery.py` and `resources.py` project the registry as the six intent verbs produced by `make_verb`, each with a typed input schema, a `find` operation returning typed schemas, `arbora://` resources, and the active registry digest embedded in server instructions. Caller chain: MCP `tools/list` and `tools/call` -> `arbora/api/mcp/verbs.py::make_verb` -> `arbora/api/mcp/discovery.py` and `arbora/api/mcp/resources.py` -> registry. Shape: `arbora/api/mcp/verbs.py::make_verb` (line 370) builds the six verb tools with typed input schemas; `discovery.py` serves `find` and `resources.py` serves `arbora://` resources and the digest in server instructions. | `tests/api/test_mcp_verbs.py` validates verb schemas, `find` output, resource URIs, and the embedded digest. Test: `tests/api/test_mcp_verbs.py::test_find_merges_only_authorized_registry_and_filtered_fleet_entries`
requirementARBORA-FLEETVERIFIED6b63aeb7ba03
a7c25b4e76aa
ea736715b7fb
tests/api/test_mcp_verbs.py:144
tests/api/test_mcp_verbs.py:263
tests/api/test_mcp_verbs.py:311
ARBORA-FLEET-R014
Resolver ranks catalog items with partitioned feedback
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Resolver ranks catalog items with partitioned feedback.** `arbora/api/mcp/resolve.py` ranks catalog items using lexical and semantic matching over generated descriptors, an exponential moving average of tenant- and policy-partitioned outcome feedback, and a bounded result cache. Natural-language queries produce a preview rather than an executed mutation, and `ask` falls back to a natural-language `query.nl` call under `query:nl` (never `query.uql` under `query:unified`) when no direct match is found. | `tests/api/test_resolve.py` covers ranking, partitioned feedback, cache bounds, and the NL-to-preview and `ask` fallback paths.
requirementARBORA-FLEETVERIFIED3597c590c8c9
43db6b7ac49b
96b68a9b5e5c
a2f74cb9621d
b2a301657802
tests/api/test_ask_routing_table.py:108
tests/api/test_ask_routing_table.py:127
tests/api/test_ask_routing_table.py:141
tests/api/test_ask_routing_table.py:96
tests/api/test_resolve.py:114
ARBORA-FLEET-R014.1
`ask` does not route a plain question to an op it cannot run
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**`ask` does not route a plain question to an op it cannot run.** A plain-language `ask` carries no parameters. The best-ranked `ask` op loses when it needs a parameter the caller did not pass. The next ranked `ask` op above the evidence floor that runs with the passed parameters wins. When no op qualifies and `query.nl` is visible, the engine natural-language planner answers. The resolution names the skipped ops as alternatives. Without a visible `query.nl`, the missing-parameter preview is kept. Child slice of `ARBORA-FLEET-R014`. Caller chain: MCP `ask` -> `arbora/api/mcp/verbs.py` -> `arbora/api/mcp/resolve.py::IntentResolver` (line 132) -> `query.nl` when no op qualifies. Shape: the ranking and fallback in `IntentResolver` and `_ask_fallback` of `arbora/api/mcp/resolve.py` (tests in `tests/api/test_resolve.py`); skipped ops are listed as alternatives in `Resolution`. | `tests/api/test_resolve.py` proves four cases. They are the NL fallback over a missing-parameter match, the next-runnable preference, a kept match for a passed parameter, and the preview without `query.nl`. Test: `tests/api/test_resolve.py::test_ask_match_needing_a_required_param_yields_to_nl_planner`
requirementARBORA-FLEETVERIFIEDe755549375e6
tests/api/test_resolve.py:258
tests/api/test_resolve.py:272
tests/api/test_resolve.py:287
tests/api/test_resolve.py:302
ARBORA-FLEET-R014.2
A request verb is not evidence for an op
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A request verb is not evidence for an op.** The resolver drops the request verbs `show`, `display`, `tell`, `give` and `across` with its other stop words. They say how to answer, not which op to run. "Show open issues across three issue trackers" then matches no `ask` op and goes to `query.nl`. A question that names an op, such as "show the fleet status", still matches it. Child slice of `ARBORA-FLEET-R014`. Caller chain: MCP `ask` -> `arbora/api/mcp/verbs.py` -> `arbora/api/mcp/resolve.py::IntentResolver` (line 132) -> `query.nl` when no op qualifies. Shape: add `show`, `display`, `tell`, `give` and `across` to the stop-word set used by `_tokens` in `arbora/api/mcp/resolve.py`; verified by `tests/api/test_resolve.py`. | `tests/api/test_resolve.py` proves the request-verb question falls back to `query.nl` and that a named op still matches. Test: `tests/api/test_resolve.py::test_a_request_verb_alone_is_not_evidence_for_an_ask_op`
requirementARBORA-FLEETVERIFIED3597c590c8c9
tests/api/test_resolve.py:313
tests/api/test_resolve.py:325
ARBORA-FLEET-R014.3
A plain question goes to the engine planner unless an op names it
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A plain question goes to the engine planner unless an op names it.** An `ask` with no parameters is a data, catalog, lineage or ownership question. When `query.nl` is visible, a generated engine method (`eg.*`) never answers it, because that method needs structured parameters. Another `ask` op answers only when it matches at least half of the question's content terms. Any other question goes to `query.nl` with its text unchanged. The resolution names the ranked ops as alternatives. The resolver also drops question and function words such as `which`, `who`, `where`, `that` and `by`. Those words name no operation. Explicit parameters keep the ranked op. No operation exists per question. Validation run 2026-10-24 gap G8: ten questions went to `KvGet`, `GetNodesByLabel`, `SourceIngestStatus` or `agents.tasks.list` on one shared word. Child slice of `ARBORA-FLEET-R014`. Caller chain: MCP `ask` -> `arbora/api/mcp/verbs.py` -> `arbora/api/mcp/resolve.py::IntentResolver` (line 132) -> `query.nl` when no op qualifies. Shape: the half-of-content-terms rule in `_plain_question_answers` and the exclusion of generated `eg.*` methods via `_engine_method` in `arbora/api/mcp/resolve.py`; stop-word additions share the existing set. | `tests/api/test_ask_routing_table.py` routes the 26 validation questions through the production registry's `ask` operations and asserts `query.nl` for each. It also proves that op-naming questions still win. A generated engine method never answers, and explicit parameters keep the ranked op. Test: `tests/api/test_ask_routing_table.py::test_validation_question_routes_to_the_engine_planner`
requirementARBORA-FLEETVERIFIED96b68a9b5e5c
b2a301657802
tests/api/test_ask_routing_table.py:108
tests/api/test_ask_routing_table.py:127
tests/api/test_ask_routing_table.py:141
tests/api/test_ask_routing_table.py:96
ARBORA-FLEET-R015
Typed operations cover agents, browser and fleet calls
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Typed operations cover agents, browser and fleet calls.** `arbora/api/ops/agents.py`, `browser.py` and `fleet.py` implement typed operations for agent and A2A tasks, reasoning calls, browser actions and fleet calls. The effect classification of `fleet.call` is derived from the target item's own annotations. `arbora/fleet/gateway_ops.py` wraps resolution and mounting of catalog tools for these operations to call through. `fleet.acceptance.check` is among the typed fleet operations. | Integration tests exercise each operation family and confirm `fleet.call` effect classification matches the invoked item's annotation.
requirementARBORA-FLEETSPECIFIED0248fc5f595a
154ad4cd6e25
54834624dbb4
68e31b75248a
760ec8539a13
tests/access/test_legacy_policy_history.py:11
tests/browser_control/test_browser_control_service.py:2099
tests/browser_control/test_browser_proposals.py:39
tests/browser_control/test_served_browser_authority.py:11
tests/fleet/test_attended_proposal_agent_journey.py:65
ARBORA-FLEET-R015.1
Arbora classifies a failed `fleet.call` by its real cause
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Arbora classifies a failed `fleet.call` by its real cause.** The MCP client wraps every child failure in a task-group `ExceptionGroup`. That wrapper hides the cause, and the child's own error answer is inside it. `_child_failure_result()` in `arbora/fleet/multiplexer.py` reads the leaves of the group. A child protocol error answers `CHILD_REFUSED` with the child's own message. A transport leaf or a stopped session answers `UNAVAILABLE`. Any other cause keeps the opaque public error with its correlation id. The log names the server, the tool, the leaf classes and the redacted leaf messages. The log never carries a credential. A child that the catalog does not hold answers `UNAVAILABLE`, and arbora sends nothing to it. The invoke pipeline (`arbora/api/invoke/pipeline.py`) answers a group around one typed refusal with that refusal. For any other dispatch failure, it logs the leaf classes before it answers `INDETERMINATE`. `FleetGateway.call` hands every child plain JSON. It thaws the pipeline's frozen arguments. A nested object or array argument, such as `api_parameters={"issue_type":"incident"}`, reaches the child. The write then takes effect. The invoke pipeline logs the cause of an unsettled write. The causes are a dispatch timeout, an unacquired effect and an outcome record failure. `INDETERMINATE` answers with a message that states the outcome is unknown. Arbora copies tracing-service keys only into a child process that it runs itself (`command`). The catalog keeps a remote tracing-service child (`url`) unchanged, because that child holds its own keys. Caller chain: served `fleet.call` -> `arbora/api/ops/fleet.py::handle_fleet_call` -> the forward in `arbora/fleet/multiplexer.py` -> `arbora/fleet/multiplexer.py::_child_failure_result` (line 691) on a child failure. Shape: `arbora/fleet/multiplexer.py::_child_failure_result` (line 691) walks the leaves of the `ExceptionGroup` and returns `CHILD_REFUSED`, `UNAVAILABLE` or the opaque public error with the correlation id; no new module. | `tests/fleet/test_child_failure_classification.py` asserts each class, the redaction, the log causes, the absent-child answer and the pipeline unwrap. `tests/fleet/test_multiplexer_dynamic_gateway.py::test_load_catalog_admits_remote_langfuse_entry_without_projection` asserts that the catalog keeps a remote tracing-service child with or without keys.
requirementARBORA-FLEETVERIFIEDd9181280937b
fdd59af317ce
tests/fleet/test_child_failure_classification.py:18
tests/fleet/test_multiplexer_dynamic_gateway.py:279
ARBORA-FLEET-R015.2
A plan-confirmed destructive relay answers the connector's confirmation
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A plan-confirmed destructive relay answers the connector's confirmation.** A connector built on the connector SDK asks for a live MCP confirmation (`elicitation/create`) before a destructive tool runs. Without an answer, the connector cancels the call. Arbora is the MCP client of its children, and it answers that request from a confirmed plan. The invoke pipeline dispatches a destructive `fleet.call` only under a consumed, human-confirmed plan, with the key `plan:<ref>`. The pipeline refuses an expired, unknown or mismatched `plan_ref`, and nothing reaches the child. `handle_fleet_call` marks the confirmed tool for that one dispatch (`arbora/fleet/plan_confirmation.py`). The child runtime arms the exact child session while that tool call runs. Each session holds one armed call at a time. The session's elicitation callback accepts once per armed call. It accepts only the boolean `confirmed` form, and only when the request names the armed tool. It declines every other request, so an unconfirmed call still fails closed. There is no bypass flag and no direct source call. The answer covers the negotiated protocol era 2025-11-25. A child on the input-request era gets no answer and fails closed. Validation run 2026-10-24 gap G15: a confirmed `servicenow_delete_table_record` answered `{"cancelled": true}`. Child slice of `ARBORA-FLEET-R015`. Caller chain: destructive `fleet.call` -> `arbora/api/ops/fleet.py::handle_fleet_call` (`_plan_confirmed`) -> `arbora/api/invoke/pipeline.py::_confirmation_gate` -> forward in `arbora/fleet/multiplexer.py`, where the MCP client session answers `elicitation/create` from the consumed plan. Shape: the existing `arbora/fleet/plan_confirmation.py::answer_elicitation` (line 97) (wired as `elicitation_callback` at `arbora/fleet/multiplexer.py` line 4194) accepts only under a consumed, human-confirmed plan keyed `plan:<ref>` and declines otherwise; no new module. | `tests/fleet/test_plan_confirmation.py` runs a real FastMCP child whose delete tool calls the SDK `ctx_confirm_destructive`. A plan-confirmed call deletes. An unconfirmed call, or a plan for another tool, is cancelled. Through the production registry and pipeline, only a consumed plan marks the dispatch. An expired, mismatched or unknown `plan_ref` dispatches nothing. Test: `tests/fleet/test_plan_confirmation_relay.py::test_destructive_relay_answers_from_confirmed_plan` (planned, listed in test-spec.md).
requirementARBORA-FLEETVERIFIED54834624dbb4
9532a0c5f38f
c5fac0da232e
tests/fleet/test_plan_confirmation.py:22
ARBORA-FLEET-R015.3
An unreadable policy ledger is denied with its cause, not as a spent budget
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**An unreadable policy ledger is denied with its cause, not as a spent budget.** The rate-limit and blast-radius pre-checks read the `ActionDecision` ledger once per decision, and only when a positive budget is set. An unreadable ledger is typed `LedgerUnreadable`. That covers an engine read failure and rows of the requested kind that carry `type` without the `node_type` label. The decision still fails closed. Its `denial` is `ledger_unreadable` and its reason names the cause, such as `ledger unreadable: N rows lack label ActionDecision (kind K)`. A spent budget is denied with `denial` `rate_limited` and the rate-limit reason. The connector-pack provisioning refusal carries the policy reason. Type-only rows are repaired only by the recorded data migration of `ARBORA-HOST-R033.2`. Child slice of `ARBORA-FLEET-R015`. Caller chain: policy decision in `arbora/access/action_policy.py` -> rate-limit and blast-radius pre-checks read the `ActionDecision` ledger once per decision (source in `arbora/access/action_policy_source.py`). Shape: the existing `arbora/access/action_policy.py::LedgerUnreadable` (line 143) result of `_recent_decisions` (line 802) yields the `ledger_unreadable` denial with the cause in the reason; the decision still fails closed. | `tests/test_data_migrations.py::test_spent_budget_and_unreadable_ledger_are_distinct_denials` and `::test_native_unreadable_ledger_denial_names_the_cause`; `tests/access/test_legacy_policy_history.py` keeps the fail-closed accounting.
requirementARBORA-FLEETVERIFIED154ad4cd6e25
tests/test_data_migrations.py:194
ARBORA-FLEET-R015.4
A Medulla `Mcp` foreign source is read through the existing source executor
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A Medulla `Mcp` foreign source is read through the existing source executor.** Child slice of `ARBORA-FLEET-R015`; the provider side of `MEDULLA-FEDERATED-QUERY-R073.3` (seam contract `contracts/mcp-source-fleet-call.md` in medulla). Medulla never calls MCP; Arbora serves the call and returns rows. This row adds no operation and no second executor: it binds the request and the codes of that seam to `FleetSourceExecutor.read` (`ARBORA-FLEET-R043.7`). A new adapter function `source_read_from_connector_row(request: ConnectorRowRequest) -> SourceReadRequest` in `arbora/fleet/source_executor.py` maps `source_label` to `source_id`, `server` to `connector`, `tool` to `tool`, and `arguments` with `pushed_filter` merged in (only when the tool's declared input schema names the filter argument) to `arguments`. It maps `budget.max_rows` (1 to 10000, default 1000) to `max_rows` and `budget.timeout_ms` (100 to 60000, default 10000) to `timeout_s` (`timeout_ms` divided by 1000), with `max_pages` left at its default. Before any call, `arguments` are validated against the declared input schema of the target tool, and a mismatch returns `UNSUPPORTED_SEARCH_ARGUMENT` without calling the tool. The reply is `{source_label, rows, truncated, missing_source}` built from `SourceReadResult`: `rows` and `truncated` are copied, and `missing_source` names `source_label` when `error_code` is set. The executor's codes map to the seam's codes: `SOURCE_NOT_GRANTED` to `FOREIGN_SOURCE_UNGRANTED`; `SOURCE_TIMEOUT` and `SOURCE_UNAVAILABLE` to `SOURCE_UNREACHABLE`; `SOURCE_BAD_RESPONSE` (a result that is not a row list) to `SOURCE_UNREACHABLE` with the reason kept; a target the shared outbound guard refuses returns `OUTBOUND_TARGET_DENIED`. A refusal calls no further tool and writes nothing. The executor already refuses a tool whose effect is not read. Knobs: none. Writes: none. Depends: `ARBORA-FLEET-R043.7`. Caller chain: a Medulla host-registered `ConnectorRowSource` (`McpRemote::fetch`) → `source_read_from_connector_row` → `FleetSourceExecutor.read` (`arbora/fleet/source_executor.py:300`) → `FleetGateway.call` under the caller's delegation → the registered MCP server's tool. Shape: one new function and one result mapper in `arbora/fleet/source_executor.py`; reuse `SourceReadRequest`, `SourceReadResult` and `_failure`; no new transport, no new `OpSpec`. | `tests/fleet/test_source_executor.py::test_connector_row_request_maps_budget_and_pushed_filter`, `::test_arguments_outside_the_tool_schema_are_refused_before_any_call`, and `::test_executor_codes_map_to_the_seam_codes_and_name_the_missing_source`, each at the executor boundary.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R015.5
An allowed decision whose audit write failed is refused with that cause
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**An allowed decision whose audit write failed is refused with that cause.** `ActionPolicy._audit` logs a failed `ActionDecision` audit write at `WARNING` with the exception class, the action kind and the target, and never the request params. An allowed decision without an audit row has no receipt and still fails closed, but its refusal reason is `policy allowed but the decision could not be recorded (audit write failed)` with `denial` `audit_unrecorded`, never a policy-deny text. The connector-pack provisioning refusal carries that reason, so a spent budget (`rate_limited`), an unreadable ledger (`ledger_unreadable`) and a failed audit write each produce distinct refusal and log text. Child slice of `ARBORA-FLEET-R015`, sibling of `ARBORA-FLEET-R015.3`. Caller chain: `pack_import_authority` -> `arbora/api/contracts/provisioning.py::_require_receipt` -> `ActionPolicy.decide` -> `_bind_decision_receipt` -> `_audit` (`arbora/access/action_policy.py`). Shape: constants `DENIAL_AUDIT_UNRECORDED` and `REASON_AUDIT_UNRECORDED` in `arbora/access/action_policy.py`; no new module. | `tests/access/test_policy_refusal_causes.py::test_three_refusal_causes_have_distinct_text`.
requirementARBORA-FLEETVERIFIEDae4378e5988f
tests/access/test_policy_refusal_causes.py:28
ARBORA-FLEET-R015.6
The connector's destructive declaration decides at the door; no argument can lift it
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The connector's destructive declaration decides at the door; no argument can lift it.** A connector declares an operation destructive once, through the connector SDK declaration that becomes the MCP `destructiveHint` annotation (`SCION-CONNECTOR-CONTROL-R930`, provider; this row consumes it). `annotation_effect` in `arbora/fleet/gateway_ops.py` classifies a child tool with `destructiveHint` true as destructive, which requires a human-confirmed plan (`Confirm.PLAN`). A `fleet.call` for such a tool dispatches only under a consumed plan, whatever its `arguments` carry: a caller-supplied `confirm`, `allow_destructive` or any other flag neither skips the plan nor reaches the connector as an approval. The connector's own guard is then answered from the plan (`ARBORA-FLEET-R015.2`). The ecosystem gate `PIPE-GATES-R014.12` (consumer) refuses a connector that names a destructive tool without declaring it. Caller chain: `fleet.call` → `arbora/api/invoke/pipeline.py` → `arbora/fleet/gateway_ops.py::annotation_effect`. Shape: no new production file. Child slice of `ARBORA-FLEET-R015`. | `tests/fleet/test_plan_confirmation.py::test_a_declared_destructive_tool_needs_a_plan_whatever_its_arguments_say` and `tests/fleet/test_plan_confirmation.py::test_the_declared_destructive_hint_alone_classifies_the_call`. A destructive `fleet.call` carrying `confirm: true` and no plan returns the confirmation-required result and dispatches nothing; a `destructiveHint` annotation alone yields the destructive effect and the plan confirmation, while a read-only annotation does not.
requirementARBORA-FLEETVERIFIED03b0c566ea51
tests/fleet/test_plan_confirmation.py:22
ARBORA-FLEET-R016
Automated gates catch API surface and compatibility drift
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Automated gates catch API surface and compatibility drift.** `scripts/check_api_surface.py` and `scripts/check_api_compat.py` run as pre-commit hooks that detect drift in the registry's public API surface and backward compatibility, covering the full gate set defined for this specification. Caller chain: pre-commit hooks run `scripts/check_api_surface.py` and `scripts/check_api_compat.py` against the registry built by `arbora/api/ops/registry_factory.py::get_registry`. Shape: the two scripts in `scripts/` with their baselines; the fixture registries live in `tests/api/test_gates_cli.py`. | `tests/api/test_gates_*.py` exercises each gate against both a compliant and a drifted fixture registry. Test: `tests/api/test_gates_cli.py::test_surface_gate_writes_initial_baseline_and_passes`
requirementARBORA-FLEETVERIFIEDba0aa6a11b4a
tests/api/test_gates_cli.py:27
tests/api/test_gates_cli.py:39
tests/api/test_gates_cli.py:61
tests/api/test_gates_cli.py:76
ARBORA-FLEET-R017
Authority-parity oracle validates principal, operation and surface
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Authority-parity oracle validates principal, operation and surface.** `tests/api/authority_matrix.yaml` defines the expected authorization outcome for each principal, operation and serving-surface combination, and `tests/api/test_authority_parity.py` asserts the registry's actual authorization decisions match that matrix exactly. Caller chain: `tests/api/test_authority_parity.py` loads `tests/api/authority_matrix.yaml` and calls the registry `invoke` pipeline (`arbora/api/invoke/pipeline.py::invoke`) per principal, operation and surface. Shape: the matrix file and the parity test only; production authority code is `arbora/api/invoke/pipeline.py::_policy`, unchanged. | `tests/api/test_authority_parity.py` runs the full principal-by-operation-by-surface matrix and fails on any mismatch. Test: `tests/api/test_authority_parity.py::test_authority_matrix_row_matches_expected_outcome`
requirementARBORA-FLEETVERIFIEDa7c25b4e76aa
ba0aa6a11b4a
tests/api/test_authority_parity.py:84
ARBORA-FLEET-R018
Multiplexer exposes four resident fleet tools over one catalog
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Multiplexer exposes four resident fleet tools over one catalog.** `api/ops/fleet.py` and `arbora/fleet/{gateway_ops,catalog_items,session_loads}.py` implement `find_tools` (with `browse=true` replacing a separate catalog listing), `load_tools`, `unload_tools` and `multiplexer_status` over a single catalog filtered per caller, covering fleet tools, prompts, resources, resource templates, agent skills and connector items. Each caller's loaded-tool set defaults to a 64-item cap (hard cap 256) with optional least-recently-used eviction and a one-hour idle expiry, and each loaded tool's body invokes `fleet.call` using the caller's own delegated credential. Caller chain: MCP `tools/call` of `find_tools`, `load_tools`, `unload_tools`, `multiplexer_status` -> `arbora/api/ops/fleet.py::handle_fleet_operation` -> `arbora/fleet/gateway_ops.py` (`status`, `load`, `unload`) over `FleetCatalog` in `arbora/fleet/catalog_items.py` and `SessionLoads` in `arbora/fleet/session_loads.py`. Shape: `arbora/fleet/session_loads.py::SessionLoads` (line 46) (default cap 64, hard cap 256, `LoadCapExceeded`), `arbora/fleet/catalog_items.py::FleetCatalog` (line 101) and the gateway operations in `arbora/fleet/gateway_ops.py`. | Scoped integration tests confirm cap enforcement, LRU eviction, idle expiry, and that invocation always carries the caller's delegated credential. Test: `tests/fleet/test_gateway_ops.py::test_catalog_is_one_filtered_view_across_kinds`
requirementARBORA-FLEETVERIFIEDa7c25b4e76aa
e1d37ca10ef7
e241347ae841
tests/fleet/test_gateway_ops.py:17
tests/fleet/test_gateway_ops.py:510
tests/fleet/test_gateway_ops.py:61
ARBORA-FLEET-R019
Eunomia narrows authority at discover, load and call
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Eunomia narrows authority at discover, load and call.** Subsystem: policy. Caller: HTTP route `arbora/api/http/routes.py::invoke_for_caller` or MCP intent tool → `arbora/api/invoke/pipeline.py::invoke` → `_policy` (`pipeline.py:238`) → `arbora/api/policy/eunomia.py::PolicyGate`. Policy narrows only. It runs after scope and principal-rule checks and before the deputy and confirmation steps reach the engine. Scope filtering applies even when policy is off. An enabled but unreachable policy service raises `PolicyUnavailable` and the request fails closed with `POLICY_UNAVAILABLE`. Defaults are a Fixed safety rule in `~/.config/arbora/config.json`. No policy configured means off. A local deployment ships `arbora/api/policy/default_policy.json` enabled. An external deployment enables it. `arbora/deployment/doctor.py` reports a warning when policy is off. An explicit denial never becomes an allow. Depends: `ARBORA-OPS-R009`. | Test: `tests/api/test_policy_eunomia.py::test_discover_load_call_modes` (L3) covers allowed and denied callers at each phase in the three default modes. It also asserts fail-closed on unreachable, scope filtering when off, the doctor warning and zero engine reach for denied calls.
requirementARBORA-FLEETSPECIFIED269c409c5415
ARBORA-FLEET-R021
Fleet capability checks require exact scopes and deny unknown tools
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet capability checks require exact scopes and deny unknown tools.** Subsystem: multiplexer authority. Caller: MCP delegate or discover call → `arbora/fleet/multiplexer.py::require_fleet_capability` (line 1559) and `MCPMultiplexer.tool_dispatchable` (line 7052). `require_fleet_capability` needs the exact fleet scope for the action. `admin` and `kg:admin` do not substitute. Local stdio runs the same check as network transports. `tool_dispatchable` denies every unrecognized native host tool. The served MCP surface applies the policy filter (`ARBORA-FLEET-R019`) before visibility and dispatch. Refusal codes: `FLEET_SCOPE_REQUIRED` and `TOOL_NOT_DISPATCHABLE`. Safety rules are Fixed. Depends: `ARBORA-FLEET-R019`. | Test: `tests/fleet/test_multiplexer_runtime_policy.py::test_exact_scope_and_unknown_tool_denied` (L3) covers scoped and over-broad callers on stdio and network. It also covers unknown native names and policy middleware on the started surface.
requirementARBORA-FLEETSPECIFIED18038a22a875
2c70abad2b68
336f9faf3f21
444cedaf2b6d
e7a32f572005
ARBORA-FLEET-R022
Catalog reconciliation re-ingests via durable replay
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog reconciliation re-ingests via durable replay.** Subsystem: fleet catalog. Caller chain: server bootstrap and catalog reload (`ARBORA-FLEET-R051.1`) → new `arbora/fleet/catalog_replay.py::replay_deltas`. Arbora writes one `CatalogDeltaReceipt { tenant, generation, sequence, item_id, op, item_digest }` per catalog change into the engine through the pack import path of `FleetOnboarding.write_catalog` (`onboarding.py:408`). `op` is `upsert` or `remove`. Replay reads the receipts of a tenant in `(generation, sequence)` order and applies each once. The key `(tenant, generation, sequence, item_id)` makes a second replay a no-op. A gap in `sequence` refuses with `CATALOG_REPLAY_GAP`. A digest that differs from the stored item refuses with `CATALOG_REPLAY_DIGEST_MISMATCH`. Covered kinds: tools, prompts, resources and skills. Depends: `ARBORA-FLEET-R051.1`, `ARBORA-FLEET-R041.5`. Shape: new `arbora/fleet/catalog_replay.py` with `CatalogDeltaReceipt` and `replay_deltas`, writing receipts through `arbora/fleet/onboarding.py::FleetOnboarding.write_catalog` (line 408) and reading them back in `(generation, sequence)` order into the catalog of `arbora/fleet/catalog_items.py`. | Test: `tests/fleet/test_catalog_replay.py::test_replay_twice_same_state` (L3) replays a delta sequence twice through the booted catalog. It asserts identical state, the gap refusal and the digest refusal.
requirementARBORA-FLEETLANDED1a8d280ab981
ARBORA-FLEET-R051
Catalog reload rejects invalid candidates, proves replica convergence (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog reload rejects invalid candidates, proves replica convergence (rollup).** Entry: the catalog reload (`refresh_serving_catalog`, `arbora/fleet/onboarding.py:831`) and the health route. Children: `.1` rejects invalid candidates in `FleetCatalogReader`; `.2` observes replica convergence by generation and digest. The publish step is the single swap point that `ARBORA-MCP-RESOURCES-R003.2` guards. Depends: `ARBORA-FLEET-R051.1`, `ARBORA-FLEET-R051.2`. | Rollup. Passes when `.1` and `.2` pass.
requirementARBORA-FLEETSPECIFIED1a8d280ab981
ARBORA-FLEET-R023
Connector count pins stay consistent across the fleet
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connector count pins stay consistent across the fleet.** Every fleet connector count reference — the compatibility matrix, the bundle-catalog schema, the check scripts, `ontology.lock`, the federated IRI, and `genesis.yaml` — reflects the same current total connector count, with no site lagging behind an actual fleet change. Delivered through its child requirements, producer first. | A check script scans all count-pin sites and fails if any of them disagrees with the live connector count.
requirementARBORA-FLEETVERIFIED667a206c800e
a7c25b4e76aa
tests/test_check_connector_count_pins.py:25
ARBORA-FLEET-R023.1
Pure connector count-pin comparison (producer)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Pure connector count-pin comparison (producer).** `arbora/fleet/connector_count_pins.py` defines typed `CountPinSite` and `ConnectorCountMismatch`, and a pure `check_connector_count_pins()` that reports every site whose declared count disagrees with a given live count. `scripts/check_connector_count_pins.py` is the real CLI entry point: it parses `--site name=location=declared_count` arguments, runs the comparison, and exits non-zero on any mismatch. Wiring the fleet's actual count-pin sites (the compatibility matrix, the bundle-catalog schema, `ontology.lock`, the federated IRI) is cross-repo/Meristem-owned follow-up, not done here. Caller chain: `scripts/check_connector_count_pins.py` imports and runs `main` from `arbora/fleet/connector_count_pins.py` → `build_parser` and `_parse_site` turn each `--site` into a `CountPinSite` → `check_connector_count_pins(live_count, sites)`. Shape: `CountPinSite { name, location, declared_count }` and `ConnectorCountMismatch { site, location, declared_count, live_count }` in `arbora/fleet/connector_count_pins.py`. | Test: `tests/test_check_connector_count_pins.py::test_script_refuses_on_a_deliberate_mismatch_fixture`. `tests/test_check_connector_count_pins.py` covers agreement, a flagged mismatch, a deliberate-mismatch fixture run through the real CLI (non-zero exit, mismatch on stderr), and a malformed `--site` argument.
requirementARBORA-FLEETVERIFIED667a206c800e
a7c25b4e76aa
tests/test_check_connector_count_pins.py:25
ARBORA-FLEET-R024
Fleet reconciliation, scaling and deploy watch are served by arbora (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet reconciliation, scaling and deploy watch are served by arbora (rollup).** Subsystem: fleet operations. Caller: scheduled reconcile tick and `invoke` → typed ops in `arbora/api/ops/fleet_deploy_watch.py` and the `.2` module → `arbora/fleet/scaling/*`. Arbora owns the reconciler, autoscaler, scaling authority and deploy watch behind typed operations. The operations have caller verification, the policy filter and audit. `.1` is the verdict op. `.2` serves reconcile and scale. `.3` retires because meristem ships none of these modules. `.4` to `.9` serve provisioning at scale. `.10` and `.11` hold the producer and aggregation gaps. | Root L3 test `tests/fleet/test_fleet_ops_served.py::test_reconcile_scale_and_watch_served` passes.
requirementARBORA-FLEETSPECIFIEDc2d8c8ce46b8
ARBORA-FLEET-R051.1
Catalog reload rejects invalid candidates
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog reload rejects invalid candidates.** `FleetCatalogReader`/`FleetCatalogIntegrityError` fail closed on duplicate, malformed, stale, missing, deleted or digest-mismatched candidate assets without publishing a partial generation. Caller chain: catalog reload in `arbora/fleet/catalog_composition.py` -> `arbora/fleet/catalog_reader.py` (`FleetCatalogReader`) -> raises `arbora/fleet/catalog_reader.py::FleetCatalogIntegrityError` (line 41) before any generation is published. Shape: `FleetCatalogReader` and `FleetCatalogIntegrityError` in `arbora/fleet/catalog_reader.py` with `ReadContext`, `ReadReceipt` and `ComponentPin`; the candidate is validated whole before publish. | Negative-case tests cover cross-tenant, no-longer-current, unresolved provenance, content-revision mismatch and cyclic-cursor conditions. Test: `tests/test_fleet_catalog_reader.py::test_reader_fails_closed_on_cross_tenant_search_receipt`
requirementARBORA-FLEETVERIFIED1a8d280ab981
tests/test_fleet_catalog_reader.py:212
tests/test_fleet_catalog_reader.py:224
tests/test_fleet_catalog_reader.py:235
tests/test_fleet_catalog_reader.py:252
tests/test_fleet_catalog_reader.py:263
ARBORA-FLEET-R051.2
Multi-replica convergence is observed by generation and digest
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Multi-replica convergence is observed by generation and digest.** Subsystem: fleet catalog. No generation concept exists in `arbora/fleet/catalog_reader.py` today. Add frozen `CatalogGeneration{tenant, generation, digest}` there. `FleetCatalogReader` stamps each published catalog with the engine catalog generation. It also stamps a SHA-256 digest (64 lowercase hex characters) of its sorted item digests. Each replica publishes its active `CatalogGeneration` in `FleetHealthSnapshot`. A replica compares its own with the engine's current generation through the engine catalog read. A mismatch for longer than `ARBORA_REPLICA_CONVERGENCE_TIMEOUT_S` sets the replica `degraded` with reason `catalog_generation_behind`. The key is in `~/.config/arbora/config.json` (default 30, bounds [1, 600], unit seconds). A degraded replica keeps serving its last-known-good catalog and never merges two generations. Caller: health route → `health_payload` (`arbora/fleet/health.py:478`) → `FleetCatalogReader.generation_status`. Depends: `ARBORA-FLEET-R051.1`, `ARBORA-FLEET-R022`. | Test: `tests/fleet/test_catalog_convergence.py::test_lagging_replica_reports_degraded_and_never_mixes` (L3). Two reader instances over a recorded engine, one held back, report convergence and degraded states.
requirementARBORA-FLEETSPECIFIED1a8d280ab981
ARBORA-FLEET-R024.1
Deploy-watch verdict is a typed Arbora operation
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Deploy-watch verdict is a typed Arbora operation.** Arbora owns the deploy-watch verdict decision (the success/failed/unobserved reduction over a probe sequence) that previously sat in the agent runtime's `orchestration/deploy_watch.py`, served as a typed operation (`fleet.deploy_watch.evaluate`) behind the same caller verification and policy filter as other fleet operations. Caller chain: HTTP and MCP -> registry `invoke` -> `fleet.deploy_watch.evaluate` in `arbora/api/ops/fleet_deploy_watch.py::operations` -> verdict reduction over the probe sequence. Shape: `arbora/api/ops/fleet_deploy_watch.py::FleetDeployWatchEvaluateParams` (line 36), `FleetDeployWatchResult` and `operations` in `arbora/api/ops/fleet_deploy_watch.py`, registered through `registry_factory.py`. | Parity tests reproduce the prior success/failed/unobserved verdict rule through the operation, and a negative test refuses a caller lacking the required scope. Test: `tests/api/test_fleet_deploy_watch_ops.py::test_operation_is_a_read_ask_scoped_to_mcp_delegate`
requirementARBORA-FLEETVERIFIEDa7c25b4e76aa
c2d8c8ce46b8
e241347ae841
tests/api/test_fleet_deploy_watch_ops.py:17
ARBORA-FLEET-R024.2
Reconcile, scale and deploy-watch dispatch are served operations
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Reconcile, scale and deploy-watch dispatch are served operations.** Subsystem: fleet operations. Shape: new `arbora/api/ops/fleet_scaling.py` with `OpSpec` ids `fleet.reconcile.run` (write effect, key required) and `fleet.scale.evaluate` (read effect), added to `registry_factory.py`. The handlers call `ScalingIntentReconciler` (`arbora/fleet/scaling/scaling_intent_reconciler.py`) and the scaling authority (`scaling_authority.py`). Deploy-watch dispatch extends `fleet_deploy_watch.py` after the `.1` verdict. Rules move unchanged; this row adds no new threshold. The scheduled tick calls `fleet.reconcile.run` through `invoke` with the service actor. Refusals: `FLEET_SCOPE_REQUIRED` for an unauthorized caller and `FLEET_LEASE_FENCED` for a stale lease. Depends: `ARBORA-FLEET-R024.1`, `ARBORA-FLEET-R021`. Caller chain: HTTP and MCP -> registry `invoke` -> `fleet.reconcile.run` and `fleet.scale.evaluate` from the new `arbora/api/ops/fleet_scaling.py` -> `ScalingIntentReconciler` in `arbora/fleet/scaling/scaling_intent_reconciler.py`. | Test: `tests/fleet/test_fleet_ops_served.py::test_reconcile_scale_and_watch_served` (L3) reproduces the recorded scale-up, scale-down and watch decisions and refuses an unauthorized caller.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.750
Fail-closed fleet health evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fail-closed fleet health evidence.** `arbora/fleet/health.py` collects one typed `fleet.health.v1` snapshot. The caller injects a reader for the control store, the goal authority and the worker registry. An authority this release does not serve (no reader, or a reader that raises `AuthorityNotServed`) reports `not_served`: it is not applicable and does not gate readiness. A failed read reports `unavailable` and never becomes an empty result. Readiness needs every served authority `healthy` (a rollup of `healthy` or `not_served`). Autoscaling and convergence need every authority served and `healthy`. Diagnostics hold the exception type only. The gateway fleet routes use this collector. Caller chain: readiness probe `/health/ready` (`PROTOCOL_ROUTES` in `arbora/api/http/protocol_routes.py`) and `ops.doctor` -> `arbora/fleet/health.py::collect_fleet_health` (line 394) -> injected readers for control store, goal registry and worker registry. Shape: `arbora/fleet/health.py::collect_fleet_health` (line 394), `FleetHealthSnapshot`, `FleetHealthEvidence`, `AuthorityNotServed` and `_rollup` in `arbora/fleet/health.py`; `not_served` does not gate readiness and a failed read is `unavailable`. | `tests/fleet/test_health.py` asserts the healthy rollup, a failed authority, an unserved authority that leaves readiness set, and secret-free diagnostics. Test: `tests/fleet/test_health.py::test_all_authorities_served_is_ready`
requirementARBORA-FLEETVERIFIED62c0320da4f9
tests/fleet/test_health.py:19
ARBORA-FLEET-R025
Skills from every installed package, and an always-offered core pack, join the find/load path
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Skills from every installed package, and an always-offered core pack, join the find/load path.** arbora serves skills from its own package and from every installed package that declares `scion_sdk.connector`, including content-only packages. `ARBORA-HOST-R001.10` discovers them. The fleet harvest adds its skills too. All of them use the same catalog and the `find_tools`, `discover_tools` and `list_catalog` path. A short core-pack list is served without a search query. A locally served skill takes precedence over a fleet-harvested skill of the same name. Arbora reports an unreadable skill and a core-pack name that no installed package provides. It never drops them silently. Caller chain: MCP `find_tools` and `list_catalog` -> `arbora/fleet/gateway_ops.py` -> `arbora/fleet/local_skill_catalog.py::build_local_skill_catalog` (installed packages, own skills) and `core_pack_names` for the no-query core pack. Shape: `arbora/fleet/local_skill_catalog.py::build_local_skill_catalog` (line 137) and `arbora/fleet/local_skill_catalog.py::core_pack_names` (line 165) (reads `arbora/skills/core-pack.txt`); a locally served skill precedes a harvested one in the catalog. | `tests/fleet/test_local_skill_discovery.py` ranks a local skill with fleet tools and lists local skills without a query. Test: `tests/test_installed_content.py::test_catalog_includes_package_skills`
requirementARBORA-FLEETVERIFIED3f7190f32493
7d6d317b490a
d16472d4df1d
tests/fleet/test_local_skill_discovery.py:145
tests/fleet/test_local_skill_discovery.py:32
tests/test_installed_content.py:115
ARBORA-FLEET-R029
The intent tools are the only MCP surface
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The intent tools are the only MCP surface.** arbora serves the six intent tools and two MCP Apps launchers from the meristem contract. `find` searches, lists and reports fleet status. `act` calls fleet tools, browser control, A2A and RLM operations. `manage` mounts and releases fleet servers. arbora registers no fleet meta-tool and no per-session visibility middleware. This requirement supersedes the four resident tools in ARBORA-FLEET-R018 and ARBORA-FLEET-R020. | Served-surface tests list exactly the intent tools. Fleet tests reach find, call, load and status through the intent tools.
requirementARBORA-FLEETVERIFIED1a8d280ab981
4fabd9b042be
d2b070392ec9
db8d44259c3d
tests/api/test_fleet_effect.py:560
tests/api/test_fleet_effect.py:585
ARBORA-FLEET-R029.1
Catalog search refuses an empty unscoped request
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog search refuses an empty unscoped request.** `fleet.catalog.search` with no `query`, no `browse: true` and no `servers` filter returns the typed `INVALID_ARGUMENT` refusal with `field: query`, which the REST surface serves as HTTP 400. The handler refuses before the fleet gateway runs. A query, `browse: true` or a `servers` filter reaches the gateway unchanged. Caller chain: HTTP and MCP -> registry `invoke` -> `arbora/api/ops/fleet.py::handle_fleet_operation` (line 143) for `fleet.catalog.search`, which refuses before the gateway runs. Shape: the empty-request guard in `handle_fleet_operation` raising `OperationRefused("INVALID_ARGUMENT", {"field": "query"})`; the REST surface maps it to HTTP 400. | `tests/api/test_fleet_effect.py::test_unscoped_search_without_query_is_invalid_argument` asserts the refusal, its field and the 400 status, with no gateway call. `test_query_browse_or_server_scope_reaches_the_gateway` covers the three admitted shapes.
requirementARBORA-FLEETVERIFIED4fabd9b042be
tests/api/test_fleet_effect.py:560
tests/api/test_fleet_effect.py:585
ARBORA-FLEET-R026
The catalog admits each server on its own
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The catalog admits each server on its own.** The catalog reader skips a live registration without a current `mcp_server` component. It logs a warning and records the server name. `multiplexer_status` reports the names as `unadmitted_servers`. Boot never fails for this state. Receipt, revision, pin, content, duplicate and page-bound faults stay fatal. | `tests/test_fleet_catalog_reader.py` proves the reader skips and reports a bare registration. The existing fail-closed cases still raise. A multiplexer test reads `unadmitted_servers` from status.
requirementARBORA-FLEETVERIFIED5ecdfe7fbe9a
619d25ac8e69
cef285464d04
d4804307c79b
d9015e6d6cda
tests/mcp_server/test_catalog_composition.py:164
tests/test_fleet_catalog_reader.py:436
ARBORA-FLEET-R026.1
Catalog scale bound
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog scale bound.** One complete catalog read admits at least 65,536 components (256 pages of 256). The page bound stops a cursor that never ends. It must not refuse a fleet that registers one tool per API operation. Proving test: `tests/test_fleet_catalog_reader.py::test_default_bound_reads_a_fleet_above_8192_components`. Caller chain: catalog reload in `arbora/fleet/catalog_composition.py` -> `FleetCatalogReader` page loop in `arbora/fleet/catalog_reader.py` (`ServerPage`). Shape: the page-bound constant and page loop of `FleetCatalogReader` in `arbora/fleet/catalog_reader.py` (256 pages of 256 components).
requirementARBORA-FLEETVERIFIED5ecdfe7fbe9a
tests/test_fleet_catalog_reader.py:436
ARBORA-FLEET-R026.2
Fleet catalog reads run under the process authority
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet catalog reads run under the process authority.** The fleet catalog reader's engine reads (the `__commons__` server registry and the tenant's `AgentComponent` rows) bind the Arbora process session, re-targeted to each graph. They never bind the caller's session. The read context, its receipts and the shared snapshot cache all name the process, and caller admission is Arbora's per-item scope check. The engine hides process-owned `:Server` registrations from an ordinary operator session, so a caller-session read saw no live server and served an empty catalog. Caller chain: catalog reload in `arbora/fleet/catalog_composition.py` -> `FleetCatalogReader` in `arbora/fleet/catalog_reader.py` -> engine reads bound to the process session re-targeted to each graph. Shape: `ReadContext` and `ReadReceipt` in `arbora/fleet/catalog_reader.py` carry the process session; the process authority comes from `arbora/gateway/daemon.py::mint_process_identity`. | `tests/mcp_server/test_catalog_composition.py::test_fleet_catalog_reads_bind_the_process_session_not_the_caller` binds the default reader and proves each read runs as the process session, re-targeted per graph, without resolving the ambient caller session.
requirementARBORA-FLEETVERIFIEDcef285464d04
d4804307c79b
tests/mcp_server/test_catalog_composition.py:164
ARBORA-FLEET-R027
Arbora onboards every configured fleet server
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Arbora onboards every configured fleet server.** Subsystem: fleet onboarding. Caller: boot onboarding thread or `arbora-production-ops onboard-fleet` (`arbora/deployment/production_ops.py`) → `arbora/fleet/onboarding.py::onboard_fleet` → `FleetOnboarding.onboard`. One idempotent pass selects every enabled streamable-HTTP server from the MCP config (`fleet_endpoints`, `onboarding.py:124`). It registers each server and captures its catalog through the connector SDK. It attests the catalog with the engine and imports the pack. A failure of one server leaves the others untouched. A repeat pass imports nothing twice. Registry outages and missing child credentials give explicit per-server outcomes. `arbora-production-ops onboard-fleet` runs one full pass, reports each server and exits non-zero on any failure. Boot starts the same pass on a background thread; a pass failure never stops serving. Disabled servers and other transports are excluded. | Test: `tests/fleet/test_fleet_onboarding.py::test_full_onboarding_matrix` (L3) covers a fresh-store pass, a repeat pass, a failing server and an admitted server. It covers a registry outage and a missing credential. It runs the real CLI exit codes and a failing boot pass that still serves MCP requests.
requirementARBORA-FLEETSPECIFIED5edd6cc9a3d7
619d25ac8e69
bbc73cd1532d
be2026dd4ebf
d9015e6d6cda
ARBORA-FLEET-R028
Arbora renews every registration before its lease lapses
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Arbora renews every registration before its lease lapses.** Each pass re-registers each fleet and self-served lease that expires within six hours. Each renewal window uses its own idempotency key. A self-served registration renews at the configured served URL, else at its live URL. The boot thread repeats the pass every 30 minutes. A pass that admits a new server refreshes the multiplexer catalog when no child session runs. Caller chain: boot thread of the fleet onboarding service (`FleetOnboardingService._loop`, line 1107) -> `arbora/fleet/onboarding.py::_renew_all` (line 768) every 30 minutes -> `FleetOnboarding.renew`. Shape: `_renew_all` and `FleetOnboarding.renew` in `arbora/fleet/onboarding.py` with `RENEW_MARGIN_MS` (six hours) and one idempotency key per renewal window; a pass that admits a new server refreshes the multiplexer catalog. | `tests/fleet/test_fleet_onboarding.py` covers lapsing, fresh and absent leases, windowed keys, self-served renewal, the pass schedule and the refresh rule. Test: `tests/fleet/test_fleet_onboarding.py::test_renewal_reregisters_only_lapsing_or_absent_leases`
requirementARBORA-FLEETVERIFIED619d25ac8e69
a7c25b4e76aa
d9015e6d6cda
tests/fleet/test_fleet_onboarding.py:256
tests/fleet/test_fleet_onboarding.py:285
tests/fleet/test_fleet_onboarding.py:583
ARBORA-FLEET-R030
Fleet onboarding registers connector access contracts unapproved
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet onboarding registers connector access contracts unapproved.** After a pack import, onboarding parses each `ontology://` resource with the SDK access-contract parser. It registers one `SourceConnection` per source and one unapproved `VirtualMapping` per contract. An unapproved mapping serves no reads. A missing SDK parser skips contracts without failure. A repeated pass adds no duplicate mapping. Caller chain: `FleetOnboarding.write_catalog` pack import in `arbora/fleet/onboarding.py` -> `arbora/fleet/onboarding.py::FleetOnboarding.register_contracts` (line 495) -> SDK access-contract parser -> `SourceConnection` and unapproved `VirtualMapping` writes. Shape: `register_contracts` in `arbora/fleet/onboarding.py` with `arbora/fleet/access_contracts.py` for the parsed contract; a missing SDK parser skips contracts and a repeated pass adds no duplicate mapping. | `tests/fleet/test_fleet_access_contracts.py` covers registration, the unapproved state, idempotency and the missing parser. Test: `tests/fleet/test_fleet_access_contracts.py::test_registers_unapproved_mappings`
requirementARBORA-FLEETVERIFIED7e0cc536c81a
9095a5cefabe
f2284b64b6b3
tests/fleet/test_fleet_access_contracts.py:108
ARBORA-FLEET-R031
`find` ranks catalog-admitted tools when a live probe cannot answer
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**`find` ranks catalog-admitted tools when a live probe cannot answer.** `discover_tools` reads each admitted server's `tool`-kind components straight off the installed EG catalog snapshot (`MCPMultiplexer._catalog_tool_probe_info`), with no live probe, and ranks them when that server's live probe errored. The live probe stays the freshness refresh; the server still appears in `unavailable` so a real probe failure is never hidden, and a live answer is never shadowed by the snapshot. Caller chain: MCP `discover_tools` -> `arbora/fleet/gateway_ops.py` -> multiplexer discover in `arbora/fleet/multiplexer.py` -> `arbora/fleet/multiplexer.py::MCPMultiplexer._catalog_tool_probe_info` (line 6525) when a live probe errored. Shape: `_catalog_tool_probe_info` reads `tool` components from the installed catalog snapshot and the ranker uses them only for a server whose probe errored; the server stays in `unavailable`. | `tests/fleet/test_catalog_tool_fallback.py` covers a timed-out server ranking its catalog-sourced tools as stale while still reported `unavailable`, an empty snapshot, and a live answer taking precedence over the snapshot. Test: `tests/fleet/test_catalog_tool_fallback.py::test_discover_tools_ranks_catalog_tools_when_the_live_probe_times_out`
requirementARBORA-FLEETVERIFIEDa7c25b4e76aa
d43ff2da921f
tests/fleet/test_catalog_tool_fallback.py:28
ARBORA-FLEET-R032
Gateway widget fetches run under a bound service actor
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Gateway widget fetches run under a bound service actor.** `arbora/gateway/aggregator.py` mints the gateway's own verified process actor (the same `acquire_process_identity_token` → `mint_actor_from_token_sync` → `mint_graph_session` authority `arbora/gateway/daemon.py::mint_process_identity` already mints for the host daemon) and binds it with `use_actor`/`use_session` around each widget fetch dispatched to the thread pool, propagating the bound context across the executor boundary instead of losing it to a plain `ThreadPoolExecutor` thread. Caller chain: gateway widget request -> `arbora/gateway/aggregator.py::Aggregator` -> thread-pool dispatch via `_run_as_service_actor` -> widget fetch. Shape: `arbora/gateway/aggregator.py::_run_as_service_actor` (line 77) binds the process actor minted by `_service_authority` (reusing `arbora/gateway/daemon.py::mint_process_identity`) with `use_actor` and `use_session` inside the executor thread. | Every widget fetch reaches the fleet multiplexer with the gateway's service actor bound (context propagated across the worker-thread boundary), and no fetch fails with a missing process context.
requirementARBORA-FLEETVERIFIEDf4812c0aa389
tests/gateway/test_aggregator.py:159
ARBORA-FLEET-R033
Fleet-catalog `servers` read owned by arbora (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet-catalog `servers` read owned by arbora (rollup).** Subsystem: gateway catalog. Caller: gateway route `GET /registry/servers` → `arbora/gateway/registry_api.py` (kind `servers`, line 286) → new `FleetCatalogServersReader`. `.1` defines the reader. `.2` holds its refusals. The reader replaces the registry read that meristem's gateway used; `MERISTEM-BOUNDARY` consumers call this reader through the registry route. | Root L3 test `tests/gateway/test_servers_reader.py::test_servers_scoped_by_tenant_and_principal` passes.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R033.1
Define the typed fleet-catalog `servers` reader
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Define the typed fleet-catalog `servers` reader.** Subsystem: gateway catalog. Shape: `FleetCatalogServersReader.list(caller, page)` in new `arbora/gateway/servers_reader.py`, returning `RegistryServer` records (`registry_api.py`) scoped by tenant and principal. `registry_api.py` kind `servers` calls it; `_normalize_row` keeps URL redaction (`_safe_url`). The reader reads the `mcp_servers` table written by `fleet_catalog_tables.py`. Writes: none. Depends: `ARBORA-FLEET-R026.2`. Caller chain: HTTP registry route kind `servers` in `arbora/gateway/registry_api.py` (line 746) -> new `FleetCatalogServersReader.list` in `arbora/gateway/servers_reader.py`. | Test: `tests/gateway/test_servers_reader.py::test_servers_scoped_by_tenant_and_principal` (L3) lists only servers visible to the calling tenant and principal through the served route.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R033.2
Refusals of the `servers` reader
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusals of the `servers` reader.** Subsystem: gateway catalog. Codes: `PRINCIPAL_REQUIRED` for a missing principal, `TENANT_MISMATCH` for a cross-tenant read and `SCOPE_DENIED` for an unauthorized read. Each returns a typed error from the served route and no record. Depends: `ARBORA-FLEET-R033.1`. Caller chain: HTTP registry route kind `servers` in `arbora/gateway/registry_api.py` -> new `FleetCatalogServersReader.list` (`arbora/gateway/servers_reader.py`). Shape: refusal codes `PRINCIPAL_REQUIRED`, `TENANT_MISMATCH`, `SCOPE_DENIED` raised in the new `arbora/gateway/servers_reader.py` and mapped by the served route to the typed error model of `arbora/gateway/registry_api.py`. | Test: `tests/gateway/test_servers_reader.py::test_refusals_leak_no_records` (L3) asserts each code and an empty body.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034
Skills and workflows are admitted before they run (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Skills and workflows are admitted before they run (rollup).** Subsystem: admission. Caller: HTTP route `arbora/api/http/routes.py::invoke_for_caller` or MCP intent tool → `arbora/api/invoke/pipeline.py::invoke` → `invoke` admission step before `_confirmation_gate` (`pipeline.py:744`). `.1` to `.6` audit each skill. They admit a workflow with one owner, structured inputs, mapped data flows and a tool inventory. `.7` to `.12` certify atomic skills with the configured local model before composed workflows. `.13` admits skill upgrades, `.14` binds the certification producer, `.15` binds the attestation consumer proof. | Root L3 test `tests/fleet/test_admission_hot_path.py::test_unsafe_ownerless_and_complete` passes.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: admission. Shape: `SkillAuditReport` (findings, severity, policy limit) and `WorkflowAdmissionRecord` (owner, inputs schema, data flows, tool inventory). Both live in new `arbora/fleet/admission_models.py`, pydantic with `extra=forbid`. A finding holds `rule`, `severity` (`low`, `medium`, `high`) and `location`. A missing required field refuses with `ADMISSION_FIELD_MISSING`. Writes: none. Caller chain: `_admission_gate` in `arbora/api/invoke/pipeline.py` (planned, `.3`) -> `arbora/fleet/admission_models.py` records (planned). | Test: `tests/fleet/test_admission_models.py::test_required_fields` (L1) refuses each missing field.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: admission. Shape: `default_skill_audit_policy` and `default_workflow_admission_policy` in new `arbora/fleet/admission_policy.py`. The skill policy scans skill text and declared tools. It fails a skill when `high` findings exceed a limit. The limit is `~/.config/arbora/config.json` key `admission.skill_max_high_findings`, default 0, bounds [0, 50], unit findings. The workflow policy requires owner, inputs schema, data flows and tool inventory. Each default is replaceable by name through the key `admission.skill_policy` or `admission.workflow_policy`. Depends: `ARBORA-FLEET-R034.1`. Caller chain: `_admission_gate` in `arbora/api/invoke/pipeline.py` (planned, `.3`) -> `arbora/fleet/admission_policy.py` default policies (planned). | Test: `tests/fleet/test_admission_models.py::test_default_policies_pass_and_fail` (L2) covers pass, over-limit and each missing workflow field.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: admission. Caller chain: HTTP route `arbora/api/http/routes.py::invoke_for_caller` or MCP intent tool. Next call: `arbora/api/invoke/pipeline.py::invoke`. Next call: `_admission_gate` (new, called before `_confirmation_gate` at `pipeline.py:744`). Next call: both policies. The gate runs for any operation that loads a skill or starts a workflow, including `agents.run`. This row creates the call site. Depends: `ARBORA-FLEET-R034.2`. Shape: new `_admission_gate` in `arbora/api/invoke/pipeline.py` placed before `arbora/api/invoke/pipeline.py::_confirmation_gate` (line 744) in `arbora/api/invoke/pipeline.py::invoke` (line 1021), calling the policies of `arbora/fleet/admission_policy.py`; named policies are replaceable by name. | Test: `tests/fleet/test_admission_wiring.py::test_policies_run_before_effect` (L3) asserts the order through the served route.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: admission. `invoke` returns `OpError('SKILL_AUDIT_FAILED')` or `OpError('WORKFLOW_NOT_ADMITTED')`. The error names the missing field or the exceeded limit. No effect runs. Depends: `ARBORA-FLEET-R034.3`. Caller chain: `invoke` in `arbora/api/invoke/pipeline.py` -> `_admission_gate` (planned, `.3`) -> `OpError`. Shape: the gate returns `OpError('SKILL_AUDIT_FAILED')` or `OpError('WORKFLOW_NOT_ADMITTED')` with the missing field or exceeded limit as detail, using the existing `OpError` of `arbora/api/invoke/steps.py`. | Test: `tests/fleet/test_admission_wiring.py::test_refusal_names_field_or_limit` (L3) asserts both codes and their detail.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: admission. The outcome trace records the audit report digest (SHA-256), the policy name and the missing fields. The existing `_record` step of `invoke` writes it. Skill text is not recorded. Depends: `ARBORA-FLEET-R034.3`. Caller chain: `invoke` -> `_admission_gate` (planned, `.3`) -> `arbora/api/invoke/pipeline.py::_record` (line 589). Shape: `_record` in `arbora/api/invoke/pipeline.py` writes the SHA-256 digest of the audit report, the policy name and the missing fields into the outcome trace; skill text is never recorded. | Test: `tests/fleet/test_admission_wiring.py::test_trace_records_digest_policy_fields` (L3) reads the trace back.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Subsystem: admission. Caller chain: the served invoke route `arbora/api/http/routes.py`. The test observes refusal of an unsafe skill and of an ownerless workflow, then admission of a complete workflow. Depends: `ARBORA-FLEET-R034.3`, `ARBORA-FLEET-R034.4`, `ARBORA-FLEET-R034.5`. Shape: new served test `tests/fleet/test_admission_hot_path.py` over HTTP (`arbora/api/http/routes.py`) and MCP with the fixtures of `tests/fleet/test_fleet_onboarding.py`; no production code. | Test: `tests/fleet/test_admission_hot_path.py::test_unsafe_ownerless_and_complete` (L3) passes over HTTP and MCP.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.7
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: certification. Shape: `CertificationBinding` and `WorkflowBinding` in `arbora/fleet/admission_models.py`. Certification binds skill identity and version, dependency digests, model endpoint revision, system prompt digest and the engine attestation digest. Workflow admission binds tenant, caller, workflow declaration, every tool schema digest and the grant revision. Digests are SHA-256 hex. A missing binding refuses with `CERTIFICATION_REQUIRED`; a dependency cycle refuses with `WORKFLOW_NOT_ADMITTED`. Writes: none. Depends: `ARBORA-FLEET-R034.1`. Caller chain: `invoke` in `arbora/api/invoke/pipeline.py` -> `_admission_gate` (planned, `.3`) -> `admit_workflow` in `arbora/fleet/admission.py` (planned) -> `CertificationBinding` and `WorkflowBinding` in `arbora/fleet/admission_models.py` (planned). | Test: `tests/fleet/test_admission_models.py::test_bindings_and_cycle_refusal` (L1) rejects missing bindings and cycles.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.8
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: certification. Shape: `validate_certification(binding, attestation)` and `admit_workflow(binding, grants)` in `arbora/fleet/admission.py` (new). The engine selects and scores: medulla `DecisionEval` stores the attestation (`MEDULLA-DECISION-ENGINE-R142.101`). Arbora validates that the attestation digests equal the binding and holds no scoring. Atomic dependencies are certified before composed workflows. Every bound tool is admitted against the trusted declaration and the caller grant before any tool runs. Depends: `ARBORA-FLEET-R034.7`, `MEDULLA-DECISION-ENGINE-R142.101`. Caller chain: `invoke` in `arbora/api/invoke/pipeline.py` -> `_admission_gate` (planned, `.3`) -> new `arbora/fleet/admission.py::validate_certification` and `admit_workflow`. | Test: `tests/fleet/test_certified_workflow_served.py::test_stale_dependency_or_denied_tool_blocks_all` (L3) shows one stale dependency or one denied tool prevents every workflow call.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.9
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: certification. Caller chain: HTTP route `arbora/api/http/routes.py::invoke_for_caller` or MCP intent tool → `arbora/api/invoke/pipeline.py::invoke` → `_admission_gate` (`.3`) → `validate_certification` and `admit_workflow`. `agents.run` (`arbora/api/ops/agents.py:109`) reaches the gate before the harness executes. The gate reads the attestation by digest through the engine client. This row creates the certification call site. It calls `AdmitSkillUpgrade` of `MEDULLA-TYPED-PACKS-R100.101` before dispatch. It refuses with `SKILL_BREAKING_NO_MIGRATION`. Depends: `ARBORA-FLEET-R034.8`, `ARBORA-FLEET-R034.3`, `MEDULLA-TYPED-PACKS-R100.101`. Shape: the `_admission_gate` of `ARBORA-FLEET-R034.3` calls `validate_certification` and `admit_workflow` of the new `arbora/fleet/admission.py`; `agents.run` (`arbora/api/ops/agents.py::handle_agent` (line 43)) reaches the gate through `invoke` before the harness executes; the attestation is read by digest through the engine client. | Test: `tests/fleet/test_certified_workflow_served.py::test_agents_run_reaches_gate_before_execution` (L3) asserts the gate runs first.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.10
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: certification. Codes: `CERTIFICATION_REQUIRED`, `CERTIFICATION_STALE`, `WORKFLOW_NOT_ADMITTED` and `PRODUCER_UNAVAILABLE`. A generated plan cannot enlarge the engine policy. Grant, declaration and schema revisions are rechecked before each dispatch. Unknown tools, cycles and revoked grants cause no new effect. Depends: `ARBORA-FLEET-R034.8`. Caller chain: `invoke` in `arbora/api/invoke/pipeline.py` -> `_admission_gate` (planned, `.3`) -> `arbora/fleet/admission.py` refusals (planned); `agents.run` reaches it before dispatch. Shape: a `REFUSALS` table in the new `arbora/fleet/admission.py` for `CERTIFICATION_REQUIRED`, `CERTIFICATION_STALE`, `WORKFLOW_NOT_ADMITTED`, `PRODUCER_UNAVAILABLE`; revisions are rechecked before each dispatch by the gate. | Test: `tests/fleet/test_certified_workflow_served.py::test_refusal_codes_and_no_effect` (L3) asserts each code and zero backend calls.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.11
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: certification. Record these in the run journal. They are ordered certification receipts, dependency ids, model and prompt revisions, the workflow snapshot digest and the engine decision ids. Exclude prompt bodies and credentials. Depends: `ARBORA-FLEET-R034.9`. Caller chain: `agents.run` -> `invoke` -> `_admission_gate` (planned, `.3`) -> run journal record in `arbora/control_plane/runs/audit.py`. Shape: the ordered certification receipts, dependency ids, revisions, workflow snapshot digest and decision ids are written by the gate through `arbora/control_plane/runs/audit.py`; prompt bodies and credentials are excluded. | Test: `tests/fleet/test_certified_workflow_served.py::test_trace_orders_atomic_before_composed` (L3) reads the trace and checks order and exact tool binding.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.12
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Subsystem: certification. Caller chain: `agents.run` over REST and MCP. The test runs local-model certification, workflow admission and real tool execution for allowed, denied and stale cases. Depends: `ARBORA-FLEET-R034.9`, `ARBORA-FLEET-R034.10`, `ARBORA-FLEET-R034.11`. Shape: new served test `tests/fleet/test_certified_workflow_served.py` driving `agents.run` over REST and MCP with a fake model endpoint and recording tools; no production code. | Test: `tests/fleet/test_certified_workflow_served.py::test_allowed_denied_stale` (L3) observes the model request and zero denied backend calls.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.4
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: provisioning. Shape: `ProvisionRequest`, `ProvisionResult` and `FleetCapacityProof` (pydantic, `extra=forbid`) in new `arbora/api/contracts/provisioning_capacity.py` beside `provisioning.py`. `ProvisionRequest` holds `image_digest` (SHA-256), `os`, `runtime`, `tenant`, `instance_count`, `budget` and `idempotency_key`. `ProvisionResult` holds `instance_ids`, `allocation_receipt_digest` and per-instance outcome. `FleetCapacityProof` holds `peak_concurrency`, `budget_consumed` and the receipt digests. The producer API is `SCION-CONNECTOR-CONTROL-R906` in scion-sdk. Depends: `SCION-CONNECTOR-CONTROL-R906`. Caller chain: `agents.run` -> `invoke` -> `arbora/a2a/authority.py::WorkItemA2AAuthority` -> `provision_instances` (planned, `.5`) taking `ProvisionRequest` from the new `arbora/api/contracts/provisioning_capacity.py`. | Test: `tests/fleet/test_provisioned_capacity.py::test_request_result_round_trip` (L1) round-trips nested fixtures and refuses a missing binding field.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.5
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: provisioning. Shape: `provision_instances(request)` in `arbora/fleet/provisioning.py` (new). Validate the platform matrix, then acquire capacity with `CapacityLedger.acquire` before any allocation. Allocate through the SDK provisioner (`SCION-CONNECTOR-CONTROL-R906`) and collect durable results from the real instances. Config `~/.config/arbora/config.json` key `provisioning.max_concurrent_instances`, default 200, bounds [1, 2000], unit instances. A replay with the same key returns the same allocation receipt. Aggregation of results follows the engine decision of `ARBORA-FLEET-R024.11`. Depends: `ARBORA-FLEET-R024.4`, `SCION-CONNECTOR-CONTROL-R906`. Caller chain: `agents.run` -> `invoke` -> `WorkItemA2AAuthority` -> new `arbora/fleet/provisioning.py::provision_instances` -> `CapacityLedger.acquire` of `arbora/control_plane/runs/capacity.py` -> SDK provisioner. | Test: `tests/fleet/test_provisioned_capacity_served.py::test_two_hundred_concurrent_instances` (L3) observes 200 concurrent instances and independent durable results.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.6
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: provisioning. Caller chain: `agents.run` (`arbora/api/ops/agents.py:109`) via `invoke` → `arbora/a2a/authority.py::WorkItemA2AAuthority` → `provision_instances`. Reuse `NativeWorkItemAdmissionProtocol` (`arbora/control_plane/runs/admission.py:105`) and `CapacityLedger` (`capacity.py:53`). This row creates the served call site of the SDK provisioner and the returned-result consumer. Depends: `ARBORA-FLEET-R024.5`. Shape: `WorkItemA2AAuthority` in `arbora/a2a/authority.py::WorkItemA2AAuthority` (line 166) calls `provision_instances`, reusing `arbora/control_plane/runs/admission.py::NativeWorkItemAdmissionProtocol` (line 105) and `CapacityLedger`. | Test: `tests/fleet/test_provisioned_capacity_served.py::test_agents_run_reaches_provisioner_and_consumer` (L3) shows the served operation reaches both with a disposable provisioner.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.7
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: provisioning. Codes in the `REFUSALS` table of `provisioning.py`: `PLATFORM_UNSUPPORTED`, `PROVISION_GRANT_DENIED`, `PROVISION_DECISION_STALE`, `PROVISION_BUDGET_EXCEEDED` and `PROVISION_REPLAY_BODY_CHANGED`. Each refuses before allocation. An unknown allocation outcome returns `PROVISION_OUTCOME_UNKNOWN` and requires reconciliation; it is never repeated. A partial failure keeps the real resource ids for cleanup. Depends: `ARBORA-FLEET-R024.5`. Caller chain: `provision_instances` (planned, `.5`) in `arbora/fleet/provisioning.py` checks the `REFUSALS` table before any allocation. Shape: the `REFUSALS` table in the new `arbora/fleet/provisioning.py` with `PLATFORM_UNSUPPORTED`, `PROVISION_GRANT_DENIED`, `PROVISION_DECISION_STALE`, `PROVISION_BUDGET_EXCEEDED`, `PROVISION_REPLAY_BODY_CHANGED`, `PROVISION_OUTCOME_UNKNOWN`. | Test: `tests/fleet/test_provisioned_capacity_served.py::test_refusals_allocate_nothing` (L3) asserts each code, zero denied allocations and retained ids after a partial failure.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.8
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: provisioning. Record `FleetCapacityProof` into the run journal. It holds requested, admitted, started, completed and failed instance ids. It also holds peak concurrency, budget consumption, timestamps and result receipt digests. Keep the engine aggregation operation, version and input receipt ids. Counters reconcile with runtime observations. Depends: `ARBORA-FLEET-R024.5`. Caller chain: `provision_instances` (planned, `.5`) -> run journal record via `arbora/control_plane/runs/audit.py`. Shape: `FleetCapacityProof` (from `arbora/api/contracts/provisioning_capacity.py`) is written by `provision_instances` into the run journal through `arbora/control_plane/runs/audit.py`. | Test: `tests/fleet/test_provisioned_capacity_served.py::test_counters_reconcile_with_runtime` (L3) compares the proof with independent runtime and durable result reads.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.9
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Subsystem: provisioning. Caller chain: `agents.run` over HTTP and MCP. The test uses real disposable provisioners. It covers every declared matrix row, 200 concurrent instances, a refusal, a replay, an interruption and aggregate result reads. Mock allocations and extrapolated smaller runs do not count. Depends: `ARBORA-FLEET-R024.6`, `ARBORA-FLEET-R024.7`, `ARBORA-FLEET-R024.8`. Shape: new served test `tests/fleet/test_provisioning_hot_path.py` over HTTP and MCP using real disposable provisioners; no production code. | Test: `tests/fleet/test_provisioned_capacity_served.py::test_matrix_two_hundred_refusal_replay_interrupt` (L3) passes with disposable provisioners.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R002.3
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: fleet catalog admission. Shape: `VersionedDefinition` and `DefinitionAdmissionReceipt` (pydantic, `extra=forbid`) in new `arbora/fleet/definitions.py`. `VersionedDefinition` holds `kind` (`tool`, `prompt`, `skill`), `producer_id`, `version` (`MAJOR.MINOR.PATCH`), `input_schema`, `output_schema`, `schema_digest`, `body_digest` and `compatibility_receipt_ref`. Digests are SHA-256 with 64 lowercase hex characters over canonical sorted JSON. A missing output schema takes the canonical nonempty digest of `SCION-CONNECTOR-CONTROL-R003`. The model refuses a missing version with `DEFINITION_VERSION_REQUIRED` and an unknown required field with `SCHEMA_INVALID`. Writes: none. Depends: `ARBORA-FLEET-R002.1`, `SCION-CONNECTOR-CONTROL-R003`. Caller chain: `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` -> `admit_definition` (planned, `.4`) -> `VersionedDefinition` and `DefinitionAdmissionReceipt` in the new `arbora/fleet/definitions.py`. | Test: `tests/fleet/test_versioned_definitions.py::test_nested_definition_round_trip_and_refusals` (L1) parses nested fixtures and refuses a missing version and an unknown required field.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R002.4
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: fleet catalog admission. Shape: `admit_definition(prior, candidate, decision)` in `arbora/fleet/definitions.py`. Arbora applies the compatibility `decision` that medulla returns from `Decide` with `QuestionKind::SkillUpgrade` (`MEDULLA-DECISION-ENGINE-R167`). Arbora computes no compatibility itself. Rule: equal version and different digests refuses. A higher minor or patch version needs an admitted `decision` of compatible. A higher major version needs a declared migration id and an explicit re-admission record. Publication swaps the catalog generation atomically; a refusal leaves the prior generation active. The SDK provider rows are `SCION-CONNECTOR-CONTROL-R003` and `SCION-CONNECTOR-CONTROL-R002`. The medulla record of the verdict is `MEDULLA-TYPED-PACKS-R001.100`. Depends: `ARBORA-FLEET-R002.3`, `MEDULLA-DECISION-ENGINE-R167.2`, `MEDULLA-DECISION-ENGINE-R167.3`, `MEDULLA-TYPED-PACKS-R001.100`, `SCION-CONNECTOR-CONTROL-R003`, `SCION-CONNECTOR-CONTROL-R002`. Caller chain: `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` -> new `arbora/fleet/definitions.py::admit_definition` -> engine `Decide` answer for `QuestionKind::SkillUpgrade`. | Test: `tests/fleet/test_versioned_definitions.py::test_admit_definition_rules` (L2) covers same-version change, compatible minor, breaking major without migration and with migration.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R002.5
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: fleet catalog admission. Caller chain: boot onboarding thread or `arbora-production-ops onboard-fleet` (`arbora/deployment/production_ops.py`) → `arbora/fleet/onboarding.py::onboard_fleet` → `FleetOnboarding.onboard` → `admit_definition` (`.4`) called before the pack import step. Catalog reload (`ARBORA-FLEET-R051.1`) calls the same function. The onboarding code reads the served schema, calls `compute_schema_fingerprint` (`catalog_items.py:252`) and builds the `VersionedDefinition`. It then calls medulla `Decide` through the existing engine client for the compatibility decision. Prompt and skill bodies keep medulla authority; tool schemas keep SDK authority. Depends: `ARBORA-FLEET-R002.4`. Shape: call `admit_definition` from `arbora/fleet/onboarding.py::FleetOnboarding.onboard` (line 360) before the pack import step and from the catalog reload of `arbora/fleet/catalog_composition.py`; digests come from `arbora/fleet/catalog_items.py::compute_schema_fingerprint` (line 252); the CLI entry is `onboard_fleet` in `arbora/fleet/onboarding.py`. | Test: `tests/fleet/test_versioned_definitions_served.py::test_onboard_calls_admission_before_import` (L3) shows a real served catalog probe reaches `admit_definition` and no import runs on refusal.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R002.6
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: fleet catalog admission. Shape: the `REFUSALS` table in `arbora/fleet/definitions.py`. Codes: `DEFINITION_VERSION_REQUIRED`, `SCHEMA_INVALID`, `SCHEMA_INCOMPATIBLE`, `DEFINITION_VERSION_CONFLICT` and `PRODUCER_UNAVAILABLE`. Each refusal returns before the item is visible in `find`. Missing or contradictory producer evidence never permits a generation swap. Host parsing alone never certifies compatibility. Writes: none. Depends: `ARBORA-FLEET-R002.4`. Caller chain: `FleetOnboarding.onboard` (`arbora/fleet/onboarding.py`) -> `admit_definition` (planned, `.4`) raises from the `REFUSALS` table before the item reaches `find`. | Test: `tests/fleet/test_versioned_definitions.py::test_each_refusal_code_leaves_generation_unchanged` (L2) asserts each code and the unchanged active generation.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R002.7
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: fleet catalog admission. Shape: `DefinitionAdmissionReceipt` in `arbora/fleet/definitions.py`, written by the pack import step of `FleetOnboarding.onboard` into the caller's tenant. It records old and new versions, both digests, producer revision, the compatibility decision id and the catalog generation. The receipt keeps tenant and source provenance and holds no prompt body. Workflow admission (`ARBORA-FLEET-R034.8`) cites the receipt ids that it consumed. Depends: `ARBORA-FLEET-R002.5`. Caller chain: pack import step of `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` -> write of the `DefinitionAdmissionReceipt` (planned) into the caller's tenant. | Test: `tests/fleet/test_versioned_definitions_served.py::test_receipt_names_consumed_definition` (L3) reads the receipt back through `ask` and matches the workflow's consumed ids.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R002.8
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Subsystem: fleet catalog admission. Entry: served catalog reload. Caller chain: HTTP route `arbora/api/http/routes.py::invoke_for_caller` or MCP intent tool → `arbora/api/invoke/pipeline.py::invoke` → `fleet.catalog.reload` → `FleetOnboarding.onboard` → `admit_definition`. The test admits a compatible nested update. A breaking update, a forged receipt and a stale workflow schema each refuse before execution. MCP and REST return the same admitted generation. Depends: `ARBORA-FLEET-R002.5`, `ARBORA-FLEET-R002.6`, `ARBORA-FLEET-R002.7`. Shape: new served test `tests/fleet/test_definition_admission_served.py` driving `fleet.catalog.reload` through `invoke`; no production code beyond `arbora/fleet/definitions.py`. | Test: `tests/fleet/test_versioned_definitions_served.py::test_catalog_reload_admits_compatible_update` (L3) and `::test_breaking_forged_stale_refuse` pass over HTTP and MCP.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: integrated provisioning. Shape: `IntegratedProvisionReceipt` in new `arbora/fleet/provision_receipt.py`. It binds the discovery generation, the engine skill identity and version, and the distribution decision id. It also binds the admission receipt, the instance id and the durable result digest. Reuse the typed work-item view of `ARBORA-FLEET-R005.1`. Every phase carries one tenant, one run id and the exact skill digest (SHA-256, 64 lowercase hex). A mismatch refuses with `RECEIPT_BINDING_MISMATCH`. Writes: none. Depends: `ARBORA-FLEET-R005.1`. Caller chain: `agents.run` -> `invoke` -> admitted work-item route -> `provision_for_work_item` (planned, `.2`) -> new `arbora/fleet/provision_receipt.py::IntegratedProvisionReceipt`. | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_receipt_binds_all_phases` (L1) checks the fields and the mismatch refusal.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: integrated provisioning. Shape: `provision_for_work_item` in `arbora/fleet/provision_flow.py` (new). Discover the authorized domain capabilities and read the engine distribution decision. Provision the agent through `provision_instances` (`ARBORA-FLEET-R024.5`). Attach the graph-ingested skill version. The agent must run with that exact identity. Success is claimed only when the graph read and the agent observation agree. Depends: `ARBORA-FLEET-R027.1`, `ARBORA-FLEET-R024.5`. Caller chain: `agents.run` -> `invoke` -> admitted work-item route (`ARBORA-FLEET-R005.3`) -> new `arbora/fleet/provision_flow.py::provision_for_work_item` -> `provision_instances` (`ARBORA-FLEET-R024.5`). | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_graph_and_agent_agree_before_success` (L3) reads graph state and agent state independently before the completion claim.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: integrated provisioning. Caller chain: `agents.run` (`arbora/api/ops/agents.py:109`) via `invoke` → admitted work-item route (`ARBORA-FLEET-R005.3`) → `provision_for_work_item`. It reuses `FleetOnboarding.onboard` outputs (`onboarding.py:360`) for the catalog generation. This row creates the integrated acceptance call site. Depends: `ARBORA-FLEET-R027.2`. Shape: `WorkItemA2AAuthority` (`arbora/a2a/authority.py::WorkItemA2AAuthority` (line 166)) calls `provision_for_work_item` and takes the catalog generation from `FleetOnboarding.onboard` outputs in `arbora/fleet/onboarding.py`. | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_one_request_traverses_discovery_to_skill` (L3) sends one served request through discovery, distribution, provisioning and skill consumption.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: integrated provisioning. Codes: `SKILL_NOT_FOUND`, `PRODUCER_UNAVAILABLE`, `SCHEMA_INCOMPATIBLE`, `CROSS_TENANT_RECEIPT` and `TOOL_NOT_APPROVED`. Each stops before the affected dispatch. Known partial allocation state is kept and no rollback is claimed. A denied discovery returns no protected identity. Depends: `ARBORA-FLEET-R027.2`. Caller chain: `provision_for_work_item` (planned, `.2`) in `arbora/fleet/provision_flow.py` raises each refusal before the affected dispatch. Shape: a `REFUSALS` table in the new `arbora/fleet/provision_flow.py` for `SKILL_NOT_FOUND`, `PRODUCER_UNAVAILABLE`, `SCHEMA_INCOMPATIBLE`, `CROSS_TENANT_RECEIPT`, `TOOL_NOT_APPROVED`. | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_denials_have_no_effect` (L3) asserts each code, no unauthorized agent or tool effect and no identity leak.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: integrated provisioning. Record these ids in the run journal. They are the catalog generation, graph read receipt, distribution decision, instance, model trace and result receipt. Read the graph again after ingestion and after execution. The evidence proves identity consumption, not copied skill text. Depends: `ARBORA-FLEET-R027.3`. Caller chain: `provision_for_work_item` (planned, `.2`) -> run journal record via `arbora/control_plane/runs/audit.py`. Shape: the ids listed in the row are written by `provision_for_work_item` through `arbora/control_plane/runs/audit.py`, with graph reads after ingestion and after execution. | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_evidence_proves_identity_consumption` (L3) changes the skill text and keeps the identity, then asserts the evidence follows the identity.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Subsystem: integrated provisioning. Caller chain: `agents.run` over REST and MCP. The test runs the whole sequence with a denial, an unavailable producer, a restart and a duplicate delivery. Helper tests alone do not satisfy it. Depends: `ARBORA-FLEET-R027.3`, `ARBORA-FLEET-R027.4`, `ARBORA-FLEET-R027.5`. Shape: new served test `tests/fleet/test_discovery_distribution_provisioning.py` over REST and MCP; no production code. | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_full_sequence_with_denial_restart_duplicate` (L3) passes over REST and MCP.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R019.1
Workflow admission applies the same narrowing boundary
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Workflow admission applies the same narrowing boundary.** Subsystem: policy. Caller chain: `invoke` → workflow admission gate (`ARBORA-FLEET-R034.9`) → `PolicyGate`. Admission checks of `ARBORA-FLEET-R034.7` to `.12` run through the one narrowing boundary. No second host identity authority exists. Depends: `ARBORA-FLEET-R019`, `ARBORA-FLEET-R034.9`. Shape: the workflow admission gate (`ARBORA-FLEET-R034.9`) calls the existing `PolicyGate` narrowing path of `arbora/api/invoke/pipeline.py::_policy`; no second authority module. | Test: `tests/fleet/test_certified_workflow_served.py::test_workflow_admission_uses_policy_gate` (L3) asserts a policy denial blocks admission and no second authority is consulted.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R021.1
Every workflow tool requires its declaration and grant binding
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Every workflow tool requires its declaration and grant binding.** Subsystem: multiplexer authority. Caller chain: `tool_dispatchable` → workflow binding check of `ARBORA-FLEET-R034.7` to `.12`. A workflow tool needs the declaration and grant binding before its first call. The binding is revalidated before each later call. A revoked grant refuses with `WORKFLOW_GRANT_REVOKED`. Depends: `ARBORA-FLEET-R021`, `ARBORA-FLEET-R034.10`. Shape: extend `arbora/fleet/multiplexer.py::MCPMultiplexer.tool_dispatchable` (line 7052) to require the workflow binding of `ARBORA-FLEET-R034.7` and recheck it before each call, refusing with `WORKFLOW_GRANT_REVOKED`. | Test: `tests/fleet/test_certified_workflow_served.py::test_revoked_grant_stops_later_calls` (L3) asserts the first call passes and the call after revocation refuses with no backend effect.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R005.3
Integrated work-item distribution and provisioning use the R027 flow
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Integrated work-item distribution and provisioning use the R027 flow.** Subsystem: A2A routing. Caller chain: `OrchestratorA2ARouter.route` → `ARBORA-FLEET-R027.3` provisioning call site. Routing keeps the engine's work-item identity, the control lease and the authority of the returned result. It never mints a work item. A lease is single-use; a second consume refuses with `LEASE_ALREADY_CONSUMED`. Depends: `ARBORA-FLEET-R005.1`, `ARBORA-FLEET-R027.3`. Shape: `arbora/a2a/routing.py::OrchestratorA2ARouter` (line 44) `route` calls `provision_for_work_item` (planned, `ARBORA-FLEET-R027.2`) and keeps the work-item identity, lease and result authority; single-use lease refusal `LEASE_ALREADY_CONSUMED`. | Test: `tests/fleet/test_discovery_distribution_provisioning.py::test_a2a_task_routes_through_work_item` (L3) asserts identity, lease consumption and the refusal on reuse.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R027.7.1
Production CLI report stream
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Production CLI report stream.** During a synchronous CLI operation, configuration and operation diagnostics go to stderr. The CLI restores stdout before emitting exactly one unchanged success, partial-failure or opaque-exception JSON report with its existing exit status. Caller chain: console script `arbora-production-ops` (`pyproject.toml`) -> `arbora/deployment/production_ops.py` main (`_onboard_fleet`, line 411) -> stderr diagnostics and one JSON report on stdout. Shape: stdout restoration around the synchronous operation in `arbora/deployment/production_ops.py`; the JSON report schema is unchanged. | `tests/deployment/test_production_ops.py::test_cli_retains_diagnostics_on_stderr_and_one_json_report` plus the unchanged provisioning/onboarding JSON assertions after a real WebUI factory import.
requirementARBORA-FLEETVERIFIED1ac397d110e6
tests/deployment/test_production_ops.py:121
ARBORA-FLEET-R027.8
Operator-approved mass withdrawal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Operator-approved mass withdrawal.** `arbora-production-ops onboard-fleet --allow-mass-withdrawal SERVER` (repeatable or comma-separated) names the servers whose pack import may withdraw more than half of the published surface, as a connector moving to one tool per operation does. `FleetOnboarding.allow_mass_withdrawal` passes the decision to `import_attested_pack` and the SDK sink (`SCION-SOURCE-INGEST-R004.27`); EG then requires `admin:connector-pack`. Every other server's import keeps the engine's refusal. Proving test: `tests/fleet/test_fleet_access_contracts.py::test_onboarding_passes_the_operator_mass_withdrawal_decision`. Caller chain: `arbora-production-ops onboard-fleet --allow-mass-withdrawal` -> `arbora/deployment/production_ops.py::_onboard_fleet` -> `FleetOnboarding.allow_mass_withdrawal` (`onboarding.py` line 320) -> pack import (line 397). Shape: the flag in `arbora/deployment/production_ops.py` (line 512 area, `_server_names`) and the `allow_mass_withdrawal` frozenset of `FleetOnboarding`, passed to the SDK sink as `allow_mass_withdrawal=endpoint.name in ...`. | Only a named server's import carries the approval, and the flag parses repeated and comma-separated names.
requirementARBORA-FLEETVERIFIED524b0ceaaf9c
tests/fleet/test_fleet_access_contracts.py:483
ARBORA-FLEET-R003.5
Complete repository request binding
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Complete repository request binding.** Subsystem: served operations, repository profile. Shape: `RepositoryWriteBackParams` in `arbora/api/ops/write_back_models.py` (planned: `RepositoryWriteBackParams` does not exist yet; `write_back_models.py` holds `WriteBackPreviewParams` and `WriteBackCommitParams`) carries the full `RepositorySourceEffectRequest` (scion-sdk repo, `scion_sdk/writeback/repository_effect.py:133`) and a trusted connector-binding digest. Every SDK field stays in the confirmed projection: exact bytes, immutable base, actor, approval and effect key. Refusals: `WRITE_BACK_UNKNOWN_FIELD`, `WRITE_BACK_BINDING_CHANGED` and `WRITE_BACK_INTENT_MISMATCH` when `request.intent` differs from the durable desired patch. The producers are `SCION-GOVERNED-WRITEBACK-R004.12` and the github-agent tool of `CONN-GITHUB-AGENT-CONNECTOR-CONTENT-R006`. Depends: `ARBORA-FLEET-R003.2`, `SCION-GOVERNED-WRITEBACK-R004.5`. Caller chain: `fleet.write_back.preview` and `commit` handlers (planned, `ARBORA-FLEET-R003.2`) -> `RepositoryWriteBackParams` in `arbora/api/ops/write_back_models.py`. | Test (planned): `tests/fleet/test_repository_source_effect_served.py::test_request_binding` (L3) round-trips seeded byte fixtures over HTTP and MCP and refuses each altered field.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R003.6
Trusted composition through shared invoke
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Trusted composition through shared invoke.** Subsystem: served operations, repository profile. Caller chain: `invoke` → `fleet.write_back.*` handlers in `write_back.py` → the fleet gateway and source executor (`arbora/fleet/source_executor.py`). Resolve the admitted binding (connector, source instance, repository, operation schema) from trusted configuration under `~/.config/arbora`. Run both operations through the existing invoke checks. Refusals before provider mutation: `WRITE_BACK_PRODUCER_MISSING`, `WRITE_BACK_CONFIG_CHANGED` and `WRITE_BACK_REPLAY_UNAVAILABLE`. Depends: `ARBORA-FLEET-R003.5`, `SCION-GOVERNED-WRITEBACK-R004.12`. Shape: handlers in `arbora/api/ops/write_back.py` resolve the admitted binding from the config of `arbora/core/settings.py`, then call the fleet gateway and the source executor in `arbora/fleet/source_executor.py`, through the shared invoke pipeline. | Test: `tests/fleet/test_repository_source_effect_served.py::test_trusted_composition` (L3) shows a served request reaches the connector once. It also shows a bypass or unbound configuration reaches it zero times.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R003.7
Preview and approval bind the commit operation
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Preview and approval bind the commit operation.** Subsystem: served operations. Caller chain: `invoke` → `arbora/api/invoke/plan.py::bind_plan` and `_confirmation_gate` (`pipeline.py:744`) under `ARBORA-OPS-R009`. The plan binds the commit operation, the full parameters, caller, tenant, policy revision and registry revision. Commit requires the SDK dry-run and the recorded approval for the same canonical change set. A preview-operation lease, an expired plan, a changed payload or an unbound approval refuses with `WRITE_BACK_PLAN_UNBOUND`. Provider mutations in those cases: zero. Depends: `ARBORA-FLEET-R003.5`. Shape: `bind_plan` in `arbora/api/invoke/plan.py` binds the commit operation, full parameters, caller, tenant, policy revision and registry revision; `arbora/api/invoke/pipeline.py::_confirmation_gate` (line 744) enforces it, and the commit handler in `arbora/api/ops/write_back.py` requires the SDK dry-run and recorded approval. | Test: `tests/fleet/test_repository_source_effect_served.py::test_commit_binding` (L3) commits one approved preview and counts zero provider mutations for each binding change.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R003.8
Served effect and independent readback evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Served effect and independent readback evidence.** Subsystem: served operations. Caller chain: `fleet.write_back.commit` → SDK apply → result projection in `write_back.py`. The result carries the SDK `RepositorySourceEffectReceipt` (`repository_effect.py:190`), the request digest and the receipt digest. Success needs a durable attempt, an actual immutable revision and a matching independent readback (`SCION-GOVERNED-WRITEBACK-R004.8` to `.10`). An echoed effect key, an applied flag, a fabricated revision or an unbound receipt refuses with `WRITE_BACK_RECEIPT_UNBOUND`. After a successful commit, it calls `MEDULLA-TYPED-PACKS-R094.8` to record the receipt on the component revision. Depends: `ARBORA-FLEET-R003.6`, `MEDULLA-TYPED-PACKS-R094.8`. Shape: the result projection in `arbora/api/ops/write_back.py` carries the SDK `RepositorySourceEffectReceipt`, the request digest and the receipt digest (models in `arbora/api/ops/write_back_models.py::WriteBackReceipt`), and reports success only after the independent readback. | Test: `tests/fleet/test_repository_source_effect_served.py::test_actual_effect_readback` (L3) serves preview, approval and commit against a disposable provider and reads the revision independently.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R003.9
Zero-effect refusal parity
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Zero-effect refusal parity.** Subsystem: served operations. Caller chain: `invoke` on HTTP and MCP. Principal, scope, policy, subject-read, plan, approval and audit rules apply identically on both surfaces through the shared error envelope. Refuse before mutation: missing approval, stale base, path escape, changed bytes and denied scope. Preserve the engine and fleet error provenance. A readback failure after an effect returns `WRITE_BACK_EFFECT_UNCERTAIN`, never a rollback and never another write. Depends: `ARBORA-FLEET-R003.7`. Shape: no new module; the refusals use the shared error envelope of `arbora/api/errors.py` raised before the effect step of `arbora/api/invoke/pipeline.py::invoke`, and both surfaces project the same result. | Test: `tests/fleet/test_repository_source_effect_served.py::test_refusal_parity` (L3) counts zero denied mutations on both surfaces and one uncertain result without a second write.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R003.10
Durable replay across host and connector restart
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Durable replay across host and connector restart.** Subsystem: served operations. Caller chain: `invoke` → qualified effect coordinator with `SCION-GOVERNED-WRITEBACK-R004.2` and `.11`. The host plan and reservation bind the SDK effect key, the request and the durable receipt. After restart the host recovers the proven result and reconciles uncertain effects without blind reapply. A consumed plan alone never proves completion. A conflicting replay, a lost receipt or unavailable causal lookup returns `WRITE_BACK_REPLAY_UNRESOLVED` and applies nothing. Depends: `ARBORA-FLEET-R003.8`. Shape: the effect reservation of `arbora/api/invoke/pipeline.py::_reserve_journal_entry` (line 812) binds the SDK effect key, the request and the durable receipt; recovery after restart reuses the journal and the reconciliation path of `arbora/api/invoke/executor.py`. | Test: `tests/fleet/test_repository_source_effect_served.py::test_restart_replay` (L3) races identical calls and crashes at each effect boundary. It restarts both processes and proves one effect or a truthful unresolved result.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R035
Authenticated schema preflight for OpenAPI operation aliases
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Authenticated schema preflight for OpenAPI operation aliases.** Before invoking a schema-bound alias, Arbora reads its SDK manifest and complete ordered fragments over the same authority-admitted MCP session. It reconstructs the canonical document with the public SDK. It checks both schema hashes and exact equality with the admitted input/output schemas. It binds the manifest alias and operation to the requested action. Revalidate caller delegation, child generation, catalog revision and tool mapping before each resource read and final call. Missing, stale, invalid, incomplete, oversized or mismatched disclosure refuses before invocation. Schema-bound aliases are not automatically retried after uncertain outcomes; existing MCP confirmation and effect handling remain authoritative. Caller chain: served `fleet.call` of a schema-bound alias -> forward in `arbora/fleet/multiplexer.py` (`call_proxied_tool`, line 2978) -> schema preflight before the child call (planned). Shape: a preflight helper in `arbora/fleet/multiplexer.py` that reads the SDK manifest and ordered fragments over the admitted session, rebuilds the document with the public SDK and compares schema hashes with the admitted input and output schemas. | `tests/fleet/test_multiplexer_schema_disclosure.py` covers complete reconstruction, stale/incomplete/mismatched refusal, missing output-schema refusal, authority/session/catalog binding, OAuth session reuse and no write replay. These fixture tests do not establish live-provider or deployment evidence. Test: `tests/fleet/test_multiplexer_dynamic_gateway.py::test_prefixing_preserves_child_annotations_and_output_schema`
requirementARBORA-FLEETVERIFIED1cf004ee454e
1e55e62acb2a
35fbba91b24b
61c7f230ec1e
763701d591a8
tests/fleet/test_multiplexer_boundary.py:275
tests/fleet/test_multiplexer_boundary.py:283
tests/fleet/test_multiplexer_boundary.py:296
tests/fleet/test_multiplexer_dynamic_gateway.py:1868
tests/fleet/test_multiplexer_dynamic_gateway.py:1885
ARBORA-FLEET-R024.10
AU:29 Arbora definition slice
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**AU:29 Arbora definition slice.** AU:29 cross-owner slice. Residual: SDK allocation/reconciliation producer API with actual instance receipts, unknown-result handling and replay fencing. Binding from the AU sandbox port through the hosted agents.run operation to that producer Arbora minimum action:. Define only the missing SDK allocation/reconciliation contract and exact consumer binding; preserve the existing host matrix and refusal definitions. Acceptance must cross the served agents.run route into real disposable adapters. With unsupported combinations producing zero allocation and uncertain outcomes never blindly retried. Producer/consumer boundary: AU direct sandbox port -> Arbora agents.run/invoke -> arbora/control_plane/runs/admission.py. NativeWorkItemAdmissionProtocol and capacity.py CapacityLedger -> SDK provisioner (producer operation/module not defined) -> runtime allocation receipt -> Arbora returned-result consumer. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `MERISTEM-CONTROL-R021, MERISTEM-CONTROL-R038, MERISTEM-CONTROL-R038.1, MERISTEM-CONTROL-R038.2, MERISTEM-CONTROL-R038.3, MERISTEM-CONTROL-R038.4, MERISTEM-CONTROL-R038.5, MERISTEM-CONTROL-R038.6, MERISTEM-CONTROL-R039, MERISTEM-CONTROL-R039.1, MERISTEM-CONTROL-R039.2, MERISTEM-CONTROL-R039.3, MERISTEM-CONTROL-R039.4, MERISTEM-CONTROL-R039.5, MERISTEM-CONTROL-R039.6, MERISTEM-CONTROL-R041, MERISTEM-CONTROL-R041.1, MERISTEM-CONTROL-R041.2, MERISTEM-CONTROL-R041.3, MERISTEM-CONTROL-R041.4, MERISTEM-CONTROL-R041.5, MERISTEM-CONTROL-R041.6, ARBORA-FLEET-R024.4, ARBORA-FLEET-R024.5, ARBORA-FLEET-R024.6, ARBORA-FLEET-R024.7, ARBORA-FLEET-R024.8, ARBORA-FLEET-R024.9`. Source record SHA-256: `49df21c60c947240d4f02b1424b1de29183f10a69c76bd885f19d13e7237061c`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, arbora/specs/fleet-catalog-and-tools/plan.md:150#sha256=8fe992c0172fe99e82885d398c4490c00643801df8b64db82dafe2dd235a9223, arbora/specs/fleet-catalog-and-tools/plan.md:151#sha256=33a792338bd6baa69fca00bcf7ac8202fe029911eb5f9b83a9244ddb29926b1f, arbora/specs/fleet-catalog-and-tools/plan.md:152#sha256=3862f89efb1ead7c8a8684e6204def414d615207f4fff79ef30cfa66b00f4e95, arbora/specs/fleet-catalog-and-tools/plan.md:153#sha256=6a4c23b6a961588e9a6ed00a06813b6d584a607bc2668e7f2d94d1739055752b, arbora/specs/fleet-catalog-and-tools/plan.md:154#sha256=0c9a2ad707136387a8088a0d003599eff6614e46b7b27ea461249a1a7d235790, arbora/specs/fleet-catalog-and-tools/plan.md:155#sha256=40538332c2a8ed9e1e71533cd87dec249b62697786ae302d55115d10bdf256f8, arbora/specs/fleet-catalog-and-tools/plan.md:156#sha256=3752c6301423554e39f0d762f2e9aed78cf4247f061639641df3e7575f95c181, arbora/specs/fleet-catalog-and-tools/plan.md:157#sha256=8ec92bc0ae2191f7f6d7716eb898154322122194a2739dbcbf1d1a82bd1b6d02, arbora/specs/fleet-catalog-and-tools/plan.md:158#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, arbora/specs/fleet-catalog-and-tools/plan.md:159#sha256=000bafff0b1df418ca2a05537925f6e57b8d1e1654b3d4eb998197ce6d6e43fb, arbora/specs/fleet-catalog-and-tools/plan.md:160#sha256=5cce45243da01c4af746641382ca6c84ac7a73cf291c51779fd47cb28cf1699a, arbora/specs/fleet-catalog-and-tools/plan.md:161#sha256=d0aacbb14d48d0923d26d8efdb45e159b41f3ddb8f1ee160477565222eaa774c, arbora/specs/fleet-catalog-and-tools/plan.md:162#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, arbora/specs/fleet-catalog-and-tools/plan.md:163#sha256=9bbb969aee819a16737ffdba1d15ebdb3541c3773144dc09df2663797111b334, arbora/specs/fleet-catalog-and-tools/plan.md:164#sha256=4da1ec6f47782090102dc16bda978efb5655fbf2ddce0f84ecf1faf79a930f2d, arbora/specs/fleet-catalog-and-tools/plan.md:165#sha256=4b665287c64ea278c7b9b29be6549b9b20f6cbca908c6f0c480794f17beaf60f, arbora/specs/fleet-catalog-and-tools/plan.md:166#sha256=5736970e981605d0675fa3a2825712560785082e58af6229d834e9c107314aa6, arbora/specs/fleet-catalog-and-tools/plan.md:167#sha256=887fc0aced120fc3763f3e8f6d06f7eb989937812afe1539e93a2c27f20f53f3, arbora/specs/fleet-catalog-and-tools/plan.md:168#sha256=3ae24c1a63f728e4336597f14282e88401359ed438638cf17b59e0e41343f810, arbora/specs/fleet-catalog-and-tools/plan.md:169#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, arbora/specs/fleet-catalog-and-tools/plan.md:170#sha256=1d1d6723ad8b0c2d94691135886fb6bfd6772b57ba751c4435204ff796f4548e, arbora/specs/fleet-catalog-and-tools/plan.md:171#sha256=308a3420a69c828fafc2381d64c4acd7b23a6ce6c7e944b0dbf4e1e83e946993, arbora/specs/fleet-catalog-and-tools/plan.md:172#sha256=77a31d59a69f081e6b8f97303ae58eadc1b5c0e87416333177f56204ae107d98, arbora/specs/fleet-catalog-and-tools/plan.md:173#sha256=ef68c4a84ec4424b847382c5b9fbc1ddee34d560abc4e7bffa372ee4cb720943, arbora/specs/fleet-catalog-and-tools/plan.md:174#sha256=4f01f77b17d1907a0baf9642db8cde70e04a5e51d489ebe6fbc9ba706797441f, arbora/specs/fleet-catalog-and-tools/plan.md:175#sha256=c11fc8d2e1fd526ab00f3cb36b1672086dbc4b9b48a1923de014e5220bd0514d, arbora/specs/fleet-catalog-and-tools/plan.md:176#sha256=57b64cc7c260f47db959b048a7c867a71f9e8798fcb64d144cce5a0473806968, arbora/specs/fleet-catalog-and-tools/requirements.md:89#sha256=2b8dadeef0c0cd61f4437ca5899360ae99208ad363f409f2930816543fea8b04, arbora/specs/fleet-catalog-and-tools/requirements.md:90#sha256=ad310fd6727a224c24b128721a9095f620c5e8ca87bc3342c3cf06b3fb046676, arbora/specs/fleet-catalog-and-tools/requirements.md:91#sha256=5c976b8e84f7c83b5f14d0974a64b8a2370a32cd395c2480adeef40b9b511a7b, arbora/specs/fleet-catalog-and-tools/requirements.md:92#sha256=ae533aa48c60bf84a766f91c2f39ef890cc0b5d4cff541d36b3a293bf1b9639f, arbora/specs/fleet-catalog-and-tools/requirements.md:93#sha256=8bf49a7de9c909fc5be29beeedd19e5a2b21ecade2a00da409fc667c0c465fa8, arbora/specs/fleet-catalog-and-tools/requirements.md:94#sha256=c3ded92adffb8f82c5ce532c1e9a8f91b034496642757e48f24f95d346ea5ecf, meristem/specs/agent-control-plane/requirements.md:26#sha256=643e7a1f961e5b313cbafb9cbf8b85873f33be7463c17736870cf1c6e9dd6848`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/15`. No implementation or runtime evidence is claimed. Caller chain: hosted `agents.run` (`arbora/api/ops/agents.py::handle_agent` (line 43)) -> sandbox port binding -> SDK allocation and reconciliation producer API (cross-owner, planned). Shape: only the consumer call and receipt types in the new `arbora/fleet/provisioning.py` (see `ARBORA-FLEET-R024.5`); the producer contract itself is owned by the SDK. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `MERISTEM-CONTROL-R021, MERISTEM-CONTROL-R038, MERISTEM-CONTROL-R038.1, MERISTEM-CONTROL-R038.2, MERISTEM-CONTROL-R038.3, MERISTEM-CONTROL-R038.4, MERISTEM-CONTROL-R038.5, MERISTEM-CONTROL-R038.6, MERISTEM-CONTROL-R039, MERISTEM-CONTROL-R039.1, MERISTEM-CONTROL-R039.2, MERISTEM-CONTROL-R039.3, MERISTEM-CONTROL-R039.4, MERISTEM-CONTROL-R039.5, MERISTEM-CONTROL-R039.6, MERISTEM-CONTROL-R041, MERISTEM-CONTROL-R041.1, MERISTEM-CONTROL-R041.2, MERISTEM-CONTROL-R041.3, MERISTEM-CONTROL-R041.4, MERISTEM-CONTROL-R041.5, MERISTEM-CONTROL-R041.6, ARBORA-FLEET-R024.4, ARBORA-FLEET-R024.5, ARBORA-FLEET-R024.6, ARBORA-FLEET-R024.7, ARBORA-FLEET-R024.8, ARBORA-FLEET-R024.9`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, arbora/specs/fleet-catalog-and-tools/plan.md:150#sha256=8fe992c0172fe99e82885d398c4490c00643801df8b64db82dafe2dd235a9223, arbora/specs/fleet-catalog-and-tools/plan.md:151#sha256=33a792338bd6baa69fca00bcf7ac8202fe029911eb5f9b83a9244ddb29926b1f, arbora/specs/fleet-catalog-and-tools/plan.md:152#sha256=3862f89efb1ead7c8a8684e6204def414d615207f4fff79ef30cfa66b00f4e95, arbora/specs/fleet-catalog-and-tools/plan.md:153#sha256=6a4c23b6a961588e9a6ed00a06813b6d584a607bc2668e7f2d94d1739055752b, arbora/specs/fleet-catalog-and-tools/plan.md:154#sha256=0c9a2ad707136387a8088a0d003599eff6614e46b7b27ea461249a1a7d235790, arbora/specs/fleet-catalog-and-tools/plan.md:155#sha256=40538332c2a8ed9e1e71533cd87dec249b62697786ae302d55115d10bdf256f8, arbora/specs/fleet-catalog-and-tools/plan.md:156#sha256=3752c6301423554e39f0d762f2e9aed78cf4247f061639641df3e7575f95c181, arbora/specs/fleet-catalog-and-tools/plan.md:157#sha256=8ec92bc0ae2191f7f6d7716eb898154322122194a2739dbcbf1d1a82bd1b6d02, arbora/specs/fleet-catalog-and-tools/plan.md:158#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, arbora/specs/fleet-catalog-and-tools/plan.md:159#sha256=000bafff0b1df418ca2a05537925f6e57b8d1e1654b3d4eb998197ce6d6e43fb, arbora/specs/fleet-catalog-and-tools/plan.md:160#sha256=5cce45243da01c4af746641382ca6c84ac7a73cf291c51779fd47cb28cf1699a, arbora/specs/fleet-catalog-and-tools/plan.md:161#sha256=d0aacbb14d48d0923d26d8efdb45e159b41f3ddb8f1ee160477565222eaa774c, arbora/specs/fleet-catalog-and-tools/plan.md:162#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, arbora/specs/fleet-catalog-and-tools/plan.md:163#sha256=9bbb969aee819a16737ffdba1d15ebdb3541c3773144dc09df2663797111b334, arbora/specs/fleet-catalog-and-tools/plan.md:164#sha256=4da1ec6f47782090102dc16bda978efb5655fbf2ddce0f84ecf1faf79a930f2d, arbora/specs/fleet-catalog-and-tools/plan.md:165#sha256=4b665287c64ea278c7b9b29be6549b9b20f6cbca908c6f0c480794f17beaf60f, arbora/specs/fleet-catalog-and-tools/plan.md:166#sha256=5736970e981605d0675fa3a2825712560785082e58af6229d834e9c107314aa6, arbora/specs/fleet-catalog-and-tools/plan.md:167#sha256=887fc0aced120fc3763f3e8f6d06f7eb989937812afe1539e93a2c27f20f53f3, arbora/specs/fleet-catalog-and-tools/plan.md:168#sha256=3ae24c1a63f728e4336597f14282e88401359ed438638cf17b59e0e41343f810, arbora/specs/fleet-catalog-and-tools/plan.md:169#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, arbora/specs/fleet-catalog-and-tools/plan.md:170#sha256=1d1d6723ad8b0c2d94691135886fb6bfd6772b57ba751c4435204ff796f4548e, arbora/specs/fleet-catalog-and-tools/plan.md:171#sha256=308a3420a69c828fafc2381d64c4acd7b23a6ce6c7e944b0dbf4e1e83e946993, arbora/specs/fleet-catalog-and-tools/plan.md:172#sha256=77a31d59a69f081e6b8f97303ae58eadc1b5c0e87416333177f56204ae107d98, arbora/specs/fleet-catalog-and-tools/plan.md:173#sha256=ef68c4a84ec4424b847382c5b9fbc1ddee34d560abc4e7bffa372ee4cb720943, arbora/specs/fleet-catalog-and-tools/plan.md:174#sha256=4f01f77b17d1907a0baf9642db8cde70e04a5e51d489ebe6fbc9ba706797441f, arbora/specs/fleet-catalog-and-tools/plan.md:175#sha256=c11fc8d2e1fd526ab00f3cb36b1672086dbc4b9b48a1923de014e5220bd0514d, arbora/specs/fleet-catalog-and-tools/plan.md:176#sha256=57b64cc7c260f47db959b048a7c867a71f9e8798fcb64d144cce5a0473806968, arbora/specs/fleet-catalog-and-tools/requirements.md:89#sha256=2b8dadeef0c0cd61f4437ca5899360ae99208ad363f409f2930816543fea8b04, arbora/specs/fleet-catalog-and-tools/requirements.md:90#sha256=ad310fd6727a224c24b128721a9095f620c5e8ca87bc3342c3cf06b3fb046676, arbora/specs/fleet-catalog-and-tools/requirements.md:91#sha256=5c976b8e84f7c83b5f14d0974a64b8a2370a32cd395c2480adeef40b9b511a7b, arbora/specs/fleet-catalog-and-tools/requirements.md:92#sha256=ae533aa48c60bf84a766f91c2f39ef890cc0b5d4cff541d36b3a293bf1b9639f, arbora/specs/fleet-catalog-and-tools/requirements.md:93#sha256=8bf49a7de9c909fc5be29beeedd19e5a2b21ecade2a00da409fc667c0c465fa8, arbora/specs/fleet-catalog-and-tools/requirements.md:94#sha256=c3ded92adffb8f82c5ce532c1e9a8f91b034496642757e48f24f95d346ea5ecf, meristem/specs/agent-control-plane/requirements.md:26#sha256=643e7a1f961e5b313cbafb9cbf8b85873f33be7463c17736870cf1c6e9dd6848`. This definition does not assert these tests have run. Test: `tests/fleet/test_provisioning_producer_binding.py::test_agents_run_reaches_the_allocation_producer` (planned, listed in test-spec.md).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R024.11
AU:30 Arbora definition slice
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**AU:30 Arbora definition slice.** AU:30 cross-owner slice. Residual: The selected AggregationOp lacks binding to AU FanoutResult and real fleet receipts. No generated public operation/version, result schema, consumer call, or independent served readback is named. Host plan line 207 explicitly preserves this producer gap. Arbora minimum action: Retain only the aggregation-interface residual. Bind existing EG aggregation to AU/Arbora result receipts with operation/version/schema/caller/readback evidence. Do not add another 200-instance definition or aggregation policy. Producer/consumer boundary: EG decompose_task selects AggregationOp; AU _fork_fanout returns FanoutResult; Arbora agents.run collects durable instance receipts. Applying aggregation to those receipts lacks the named public producer/consumer contract. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `MERISTEM-CONTROL-R043, MERISTEM-CONTROL-R043.1, MERISTEM-CONTROL-R043.2, MERISTEM-CONTROL-R043.3, MERISTEM-CONTROL-R043.4, MERISTEM-CONTROL-R043.5, MERISTEM-CONTROL-R043.6, MERISTEM-CONTROL-R007, MERISTEM-CONTROL-R018, MERISTEM-HARNESS-R026, MERISTEM-HARNESS-R026.1, MERISTEM-HARNESS-R026.2, MERISTEM-HARNESS-R026.3, MERISTEM-HARNESS-R026.4, MERISTEM-HARNESS-R026.5, MERISTEM-HARNESS-R026.6, MERISTEM-HARNESS-R026.7, ARBORA-FLEET-R024.4, ARBORA-FLEET-R024.5, ARBORA-FLEET-R024.6, ARBORA-FLEET-R024.7, ARBORA-FLEET-R024.8, ARBORA-FLEET-R024.9`. Source record SHA-256: `8f2ff3030a71d67b20cd19301f0ed8cef75e975403595cec4060abf9fa8952c1`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-70.json, meristem/specs/agent-control-plane/requirements.md:12#sha256=ccedbc80e3c3d981854ae5c31f76f63b7c8bdd27af501dcb4546b988294e851c, meristem/specs/agent-control-plane/requirements.md:100#sha256=ee88348e7504497509d3f035e319bb34ab65fbfe0d860d1b2828417bbd6f0ed1, meristem/specs/agent-control-plane/requirements.md:101#sha256=d3d01e99903b7c42070d019b6133df2f74078b01a9ab3e12dc167ced500c0cd9, arbora/specs/fleet-catalog-and-tools/requirements.md:90#sha256=ad310fd6727a224c24b128721a9095f620c5e8ca87bc3342c3cf06b3fb046676, arbora/specs/fleet-catalog-and-tools/requirements.md:92#sha256=ae533aa48c60bf84a766f91c2f39ef890cc0b5d4cff541d36b3a293bf1b9639f, arbora/specs/fleet-catalog-and-tools/requirements.md:93#sha256=8bf49a7de9c909fc5be29beeedd19e5a2b21ecade2a00da409fc667c0c465fa8, arbora/specs/fleet-catalog-and-tools/requirements.md:94#sha256=c3ded92adffb8f82c5ce532c1e9a8f91b034496642757e48f24f95d346ea5ecf, medulla/specs/decision-engine/requirements.md:280#sha256=c6863f3a208df505d64ef6a9c672fdc04f8061b1c361c224d1d45d5f87d50fc8, medulla/specs/decision-engine/requirements.md:282#sha256=ab6257664369433a509277ad01a474bb8e769c04693cdf99f6861c9ff45b9a02, arbora/specs/fleet-catalog-and-tools/plan.md:130#sha256=9c3a9be68e50c3395f82c3ee14554891b0bd19d1419fd5f372a0a4da5764ae7f, arbora/specs/fleet-catalog-and-tools/plan.md:131#sha256=72edacadb577797544a01534a7f49b9fe046ec1d65022572185586e3782aeff4, arbora/specs/fleet-catalog-and-tools/plan.md:132#sha256=3349bd2a7f486086dd14ec9c28b56f35c742daf2dd5cc43f1557ed7b5414358e, arbora/specs/fleet-catalog-and-tools/plan.md:133#sha256=c1af0b78233d5d23d72e347020553eaae486f681f5f41aa107c0ed8ddcf43e58, arbora/specs/fleet-catalog-and-tools/plan.md:207#sha256=cacec740ca546d9ab6b818b7986359edfa4d6f51277c453f51df5d3e44b1e2ff, arbora/specs/fleet-catalog-and-tools/plan.md:209#sha256=11b9626ad9b27e25d0ec1ef636320de5062d7c731e681876b8c59ee98688df3d, arbora/specs/fleet-catalog-and-tools/plan.md:211#sha256=feb0279ce1d92bc3120ecee04c588483c42eb4ec5999d1f3d7a95639cb66d849, arbora/specs/fleet-catalog-and-tools/plan.md:212#sha256=1d54719777ef43536e0077eb5f2f3bda89a34f57e1b08c96e013e09171d2f67b, arbora/specs/fleet-catalog-and-tools/plan.md:213#sha256=9d21c74d67b683ba1dd44587115fbee059259366a352998a86d9808abd62c0ef, arbora/specs/fleet-catalog-and-tools/plan.md:219#sha256=57a10a4bba1bac9b9b05cd0722cdf1f4773c4374a797885b9bc540fe38401ab6, arbora/specs/fleet-catalog-and-tools/plan.md:220#sha256=2a1eba0606487abcef074148bb979a01b3289614c514f8b027ccb148c780a4ba`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/16`. No implementation or runtime evidence is claimed. Caller chain: hosted `agents.run` fan-out result -> aggregation consumer call in the new `arbora/fleet/provisioning.py` (planned) -> engine aggregation operation. Shape: only the aggregation-intent consumer call in `arbora/fleet/provisioning.py` that reads fleet receipts; the engine owns the aggregation operation and its result schema. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `MERISTEM-CONTROL-R043, MERISTEM-CONTROL-R043.1, MERISTEM-CONTROL-R043.2, MERISTEM-CONTROL-R043.3, MERISTEM-CONTROL-R043.4, MERISTEM-CONTROL-R043.5, MERISTEM-CONTROL-R043.6, MERISTEM-CONTROL-R007, MERISTEM-CONTROL-R018, MERISTEM-HARNESS-R026, MERISTEM-HARNESS-R026.1, MERISTEM-HARNESS-R026.2, MERISTEM-HARNESS-R026.3, MERISTEM-HARNESS-R026.4, MERISTEM-HARNESS-R026.5, MERISTEM-HARNESS-R026.6, MERISTEM-HARNESS-R026.7, ARBORA-FLEET-R024.4, ARBORA-FLEET-R024.5, ARBORA-FLEET-R024.6, ARBORA-FLEET-R024.7, ARBORA-FLEET-R024.8, ARBORA-FLEET-R024.9`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-70.json, meristem/specs/agent-control-plane/requirements.md:12#sha256=ccedbc80e3c3d981854ae5c31f76f63b7c8bdd27af501dcb4546b988294e851c, meristem/specs/agent-control-plane/requirements.md:100#sha256=ee88348e7504497509d3f035e319bb34ab65fbfe0d860d1b2828417bbd6f0ed1, meristem/specs/agent-control-plane/requirements.md:101#sha256=d3d01e99903b7c42070d019b6133df2f74078b01a9ab3e12dc167ced500c0cd9, arbora/specs/fleet-catalog-and-tools/requirements.md:90#sha256=ad310fd6727a224c24b128721a9095f620c5e8ca87bc3342c3cf06b3fb046676, arbora/specs/fleet-catalog-and-tools/requirements.md:92#sha256=ae533aa48c60bf84a766f91c2f39ef890cc0b5d4cff541d36b3a293bf1b9639f, arbora/specs/fleet-catalog-and-tools/requirements.md:93#sha256=8bf49a7de9c909fc5be29beeedd19e5a2b21ecade2a00da409fc667c0c465fa8, arbora/specs/fleet-catalog-and-tools/requirements.md:94#sha256=c3ded92adffb8f82c5ce532c1e9a8f91b034496642757e48f24f95d346ea5ecf, medulla/specs/decision-engine/requirements.md:280#sha256=c6863f3a208df505d64ef6a9c672fdc04f8061b1c361c224d1d45d5f87d50fc8, medulla/specs/decision-engine/requirements.md:282#sha256=ab6257664369433a509277ad01a474bb8e769c04693cdf99f6861c9ff45b9a02, arbora/specs/fleet-catalog-and-tools/plan.md:130#sha256=9c3a9be68e50c3395f82c3ee14554891b0bd19d1419fd5f372a0a4da5764ae7f, arbora/specs/fleet-catalog-and-tools/plan.md:131#sha256=72edacadb577797544a01534a7f49b9fe046ec1d65022572185586e3782aeff4, arbora/specs/fleet-catalog-and-tools/plan.md:132#sha256=3349bd2a7f486086dd14ec9c28b56f35c742daf2dd5cc43f1557ed7b5414358e, arbora/specs/fleet-catalog-and-tools/plan.md:133#sha256=c1af0b78233d5d23d72e347020553eaae486f681f5f41aa107c0ed8ddcf43e58, arbora/specs/fleet-catalog-and-tools/plan.md:207#sha256=cacec740ca546d9ab6b818b7986359edfa4d6f51277c453f51df5d3e44b1e2ff, arbora/specs/fleet-catalog-and-tools/plan.md:209#sha256=11b9626ad9b27e25d0ec1ef636320de5062d7c731e681876b8c59ee98688df3d, arbora/specs/fleet-catalog-and-tools/plan.md:211#sha256=feb0279ce1d92bc3120ecee04c588483c42eb4ec5999d1f3d7a95639cb66d849, arbora/specs/fleet-catalog-and-tools/plan.md:212#sha256=1d54719777ef43536e0077eb5f2f3bda89a34f57e1b08c96e013e09171d2f67b, arbora/specs/fleet-catalog-and-tools/plan.md:213#sha256=9d21c74d67b683ba1dd44587115fbee059259366a352998a86d9808abd62c0ef, arbora/specs/fleet-catalog-and-tools/plan.md:219#sha256=57a10a4bba1bac9b9b05cd0722cdf1f4773c4374a797885b9bc540fe38401ab6, arbora/specs/fleet-catalog-and-tools/plan.md:220#sha256=2a1eba0606487abcef074148bb979a01b3289614c514f8b027ccb148c780a4ba`. This definition does not assert these tests have run. Test: `tests/fleet/test_provisioning_aggregation.py::test_aggregation_reads_real_fleet_receipts` (planned, listed in test-spec.md).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.13
Skill upgrades are admitted on contract compatibility
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Skill upgrades are admitted on contract compatibility.** Subsystem: admission. Caller chain: `invoke` `_admission_gate` (`.3`) for an upgrade of an admitted skill → medulla `Decide` with `QuestionKind::SkillUpgrade` (`MEDULLA-DECISION-ENGINE-R167.3`). Arbora sends the previous and new consumer contract and the declared migration id, and applies the returned admit or refusal. Arbora computes no diff. Refusals: `SKILL_UPGRADE_BREAKING_WITHOUT_MIGRATION` and `SKILL_UPGRADE_DIGEST_MISMATCH`, passed through from the engine, before any effect. No compatibility wrapper exists. Evidence: the decision id and migration id enter the run journal. Depends: `ARBORA-FLEET-R034.9`, `MEDULLA-DECISION-ENGINE-R167.4`. Shape: `admit_definition` of `arbora/fleet/definitions.py` (`ARBORA-FLEET-R002.4`) is called by `_admission_gate` for a skill upgrade; arbora sends the prior and new contracts and the migration id, and applies the returned decision. | Test: `tests/fleet/test_skill_upgrade_served.py::test_compatible_breaking_and_migrated_upgrades` (L3) covers a compatible upgrade, a breaking upgrade without migration and one with a declared migration.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.14
Certification producer and consumer are bound to the engine decision
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Certification producer and consumer are bound to the engine decision.** Subsystem: certification. Producer: medulla `DecisionEval` `CertifyLocalSkill` (`MEDULLA-DECISION-ENGINE-R142.101`, `R142.102`). Consumer: arbora `validate_certification` (`ARBORA-FLEET-R034.8`). The harness submits the local-model receipt to the engine; arbora reads the stored attestation by digest and validates it. Arbora adds no host scoring. The harness side that submits the receipt is `MERISTEM-HARNESS-CYCLE-R057`. Depends: `ARBORA-FLEET-R034.8`, `MEDULLA-DECISION-ENGINE-R142.102`, `MERISTEM-HARNESS-CYCLE-R057`. Caller chain: the harness submits the local-model receipt to the engine; `_admission_gate` in `arbora/api/invoke/pipeline.py` (planned, `.3`) -> `validate_certification` in `arbora/fleet/admission.py` (planned) -> stored attestation read by digest. Shape: `validate_certification` in the new `arbora/fleet/admission.py` compares the attestation digests with `CertificationBinding`; arbora holds no scoring. | Test: `tests/fleet/test_certified_workflow_served.py::test_attestation_consumed_by_digest` (L3) shows arbora accepts only an attestation whose digests equal the binding.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036
The connector contract is established on first connect (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The connector contract is established on first connect (rollup).** Entry: the multiplexer handshake or a `notifications/resources/list_changed` event. Caller: `HandshakeOnboarder.notify` → `FleetOnboarding.handshake_pass` → `FleetOnboarding.onboard`. Onboarding reads `connector://resources`, the `ontology://` bodies and the seed graph resource, and records their digests. The engine imports ontologies (`MEDULLA-TYPED-PACKS-R103`) and seed graphs (`MEDULLA-TYPED-PACKS-R104`) and holds every validation rule. arbora holds none. Children `.1` to `.6` deliver it. Depends: `ARBORA-FLEET-R041.7`, `ARBORA-FLEET-R041.14`, SCION-CONNECTOR-CONTROL-R907. | Rollup. Its L4 proof is `tests/fleet/test_connect_contract_served.py::test_first_connect_and_list_changed_reimport_only_changed`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: fleet onboarding. Add frozen `ConnectContract{connector, manifest_digest, ontology_digests, seed_digest, observed_at_ms}` in `arbora/fleet/connect_contract.py`. `ontology_digests` maps ontology URI to digest. `seed_digest` is empty when the connector serves no seed. Each digest is lowercase SHA-256 hex (64 characters) over the resource body bytes. `FleetOnboarding.contracts` keeps the last record per connector in memory, and the engine receipt of `ConnectorPack.Import` is the durable copy. Caller chain: `FleetOnboarding.onboard` (`arbora/fleet/onboarding.py`) builds it through `build_connect_contract(pack)`. Refusal: a blank connector raises `ValueError`. Depends: none. Shape: new frozen `ConnectContract` in `arbora/fleet/connect_contract.py` built by `build_connect_contract` from the captured pack of `FleetOnboarding` in `arbora/fleet/onboarding.py`; digests are SHA-256 of resource bodies. | Test: `tests/fleet/test_connect_contract.py::test_contract_record_round_trips` (L1). A round trip keeps every field and refuses a blank connector.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: fleet onboarding. Shape: `arbora/fleet/connect_contract.py::contract_delta(previous, current)`. The function returns the set of changed resource keys from the two digest maps. Arbora sends the whole captured pack through the existing `import_attested_pack` call. The engine replaces only changed parts and returns `unchanged` for equal digests (`MEDULLA-TYPED-PACKS-R104.2`, `MEDULLA-TYPED-PACKS-R103.2`). Arbora therefore keeps no second diff authority. `contract_delta` feeds the status report and the skip decision only: an empty delta calls `renew` and no import. Repeated `list_changed` events inside `HANDSHAKE_DEBOUNCE_S` (2.0 s) coalesce into one pass through `HandshakeOnboarder`. Caller chain: `HandshakeOnboarder._pass` → `FleetOnboarding.handshake_pass` → `FleetOnboarding.onboard` → `contract_delta`. Depends: `ARBORA-FLEET-R036.1`, `MEDULLA-TYPED-PACKS-R104.3`. | Test: `tests/fleet/test_connect_contract.py::test_only_changed_resources_import` (L2). A second connect with one changed resource reports one changed key, and an unchanged connect sends no import.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: fleet onboarding. `FleetOnboarding.onboard` (`arbora/fleet/onboarding.py:360`) calls `build_connect_contract` after `capture` returns the pack and before `import_attested_pack`. A `list_changed` notification already reaches `onboard` through `ARBORA-FLEET-R041.14`. This row adds no second subscription. The seed graph resource travels in the pack that `import_attested_pack` sends to `ConnectorPack.Import`. That path needs the SDK seed resource of SCION-CONNECTOR-CONTROL-R907 and the seed pass-through of ARBORA-FLEET-R054. Caller chain: multiplexer handshake → `HandshakeOnboarder.notify` → `FleetOnboarding.onboard` → `build_connect_contract`. Depends: `ARBORA-FLEET-R036.1`, `ARBORA-FLEET-R041.14`, SCION-CONNECTOR-CONTROL-R907. Shape: `arbora/fleet/onboarding.py::FleetOnboarding.onboard` (line 360) calls `build_connect_contract` after `capture` and before `import_attested_pack`; no second subscription is added. | Test: `tests/fleet/test_connect_contract.py::test_list_changed_reaches_onboard` (L3). A served connect and a `list_changed` event both reach `onboard` and update the record.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: fleet onboarding. Shape: `connect_contract.py::check_resource_sizes` and `FleetOnboarding.onboard`. A connector without a seed resource onboards without a seed and records `seed_absent`. A resource over `ARBORA_CONTRACT_RESOURCE_MAX_BYTES` refuses with `CONTRACT_RESOURCE_TOO_LARGE` before any engine call. The key is in `~/.config/arbora/config.json` (default 8388608, bounds [1024, 67108864], unit bytes). An engine refusal marks the connector `contract_rejected`, and the catalog admits none of its tools. The engine codes include `ONTOLOGY_INVALID`, `SHACL_VIOLATION` and `SEED_SHACL_VIOLATION`. Caller chain: `FleetOnboarding.onboard`. Depends: `ARBORA-FLEET-R036.3`, `ARBORA-FLEET-R041.4`. | Test: `tests/fleet/test_connect_contract.py::test_contract_refusals` (L3). Each case records its reason, and a rejected connector serves no tools.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: fleet onboarding. `OnboardingReport.surfaces[connector]` gains `contract` with each resource digest, the `contract_delta` keys and the engine import receipt id for each import. `fleet.packs.status` (`ARBORA-FLEET-R041.16`) and the `find` status read return it per connector. Records written: none in arbora; the receipt is the engine's. Caller chain: `find` status → `arbora/fleet/health.py::health_payload` → `surfaces`. Depends: `ARBORA-FLEET-R036.1`. Shape: add `contract` to `OnboardingReport.surfaces[connector]` in `arbora/fleet/onboarding.py`, read by `fleet.packs.status` (`handle_pack_status` in `arbora/api/ops/fleet.py`) and the `find` status read. | Test: `tests/fleet/test_connect_contract.py::test_status_reports_contract` (L3). The status read shows the digests and the engine receipt ids.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R036.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Caller chain: a real connector process over MCP, registered in the fleet config. The test connects it, then changes its seed graph and emits `notifications/resources/list_changed`. A served `ask` engine query must read the new catalog objects. Premise: the first connect imports every resource, and the change replaces only the seed `catalog` part. Depends: `ARBORA-FLEET-R036.2`, `ARBORA-FLEET-R036.3`, `MEDULLA-TYPED-PACKS-R104.6`. Shape: new served test `tests/fleet/test_connect_contract_hot_path.py` with a real fixture connector process over MCP; no production code beyond `arbora/fleet/connect_contract.py`. | Test: `tests/fleet/test_connect_contract_served.py::test_first_connect_and_list_changed_reimport_only_changed` (L4).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037
Tools load per job from the engine answer (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Tools load per job from the engine answer (rollup).** Entry: the served `find` intent tool with a job request. Caller: `arbora/api/mcp/verbs.py` → `FleetMultiplexerOps.find_tools` → engine `Decide` with `QuestionKind::LoadSet` (`MEDULLA-DECISION-ENGINE-R176`) → `load_tools`. arbora computes no ranking. The session cap of `ARBORA-FLEET-R018` still applies. Children `.1` to `.6` deliver it. Depends: `MEDULLA-DECISION-ENGINE-R176.3`. | Rollup. Its L4 proof is `tests/fleet/test_job_loads_served.py::test_find_job_lazily_loads_answered_tools`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Subsystem: fleet gateway. Add frozen `JobLoadRequest{job_text, required_capabilities}` and `JobLoadResult{loaded, over_cap, skills, agent_starts, decision_id}` in `arbora/fleet/job_loads.py`. `JobLoadRequest` maps to `LoadSetQuestion{job_text, required_capabilities, max_tools, max_agents}` of `MEDULLA-DECISION-ENGINE-R176.1`. `max_tools` is the session cap of `ARBORA-FLEET-R018`; `max_agents` is the engine default. Refusal: an empty `job_text` with no capability raises `ValueError`. Depends: `MEDULLA-DECISION-ENGINE-R176.1`. Caller chain: `find` verb with `job_text` (`arbora/api/mcp/verbs.py`) -> `find_tools` in `arbora/fleet/multiplexer_ops.py` -> new `arbora/fleet/job_loads.py` request and result types. Shape: frozen `JobLoadRequest` and `JobLoadResult` in the new `arbora/fleet/job_loads.py`, mapped to the engine `LoadSetQuestion`; `max_tools` is the session cap of `SessionLoads` in `arbora/fleet/session_loads.py`. | Test: `tests/fleet/test_job_loads.py::test_job_load_round_trips` (L1). A round trip keeps every field and refuses an empty request.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Subsystem: fleet gateway. Shape: `arbora/fleet/job_loads.py::apply_load_set(answer, session_cap)`. The function loads the answered tools in answer order until the session cap. It lists the rest as `over_cap` and loads nothing the answer omits. It returns the answered skills and starts the answered local agents through the `act` delegation path. It never reorders or filters by its own score. Caller chain: `FleetMultiplexerOps.find_tools` → `apply_load_set` → `load_tools`. Depends: `ARBORA-FLEET-R037.1`. | Test: `tests/fleet/test_job_loads.py::test_loads_only_answered_tools` (L2). A 300-tool fixture loads only the answered tools in answer order.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** Subsystem: fleet gateway. The `find` verb (`arbora/api/mcp/verbs.py`) routes a request that carries `job_text` to `find_tools` (`arbora/fleet/multiplexer_ops.py:234`). `find_tools` sends one `Decide` call and passes the answer to `apply_load_set`, which calls `load_tools` (`arbora/fleet/multiplexer_ops.py:339`). The tenant and principal come from the verified caller context, never from the request. Depends: `ARBORA-FLEET-R037.2`. Caller chain: MCP `find` with `job_text` -> `arbora/api/mcp/verbs.py` -> `arbora/fleet/multiplexer_ops.py::find_tools` (line 234) -> engine `Decide` -> `apply_load_set` -> `load_tools`. Shape: `find_tools` and `load_tools` in `arbora/fleet/multiplexer_ops.py` with the new `apply_load_set` (planned) in `arbora/fleet/job_loads.py`; tenant and principal come from the verified caller. | Test: `tests/fleet/test_job_loads.py::test_find_job_reaches_load_tools` (L3). A served `find` with a job reaches `load_tools` under the caller tenant.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: fleet gateway. An engine abstention loads nothing and returns the `AbstainReason` unchanged. An unreachable engine returns `decision_unavailable`. A request over `max_tools` returns the engine `PARAMETER_INVALID`. Arbora must not fall back to its own ranking or to a keyword search. Caller chain: `find_tools`. Depends: `ARBORA-FLEET-R037.3`. Shape: refusals pass through in `find_tools` of `arbora/fleet/multiplexer_ops.py` (`AbstainReason` unchanged, `decision_unavailable` on an unreachable engine, `PARAMETER_INVALID` over `max_tools`); no keyword-search fallback is kept. | Test: `tests/fleet/test_job_loads.py::test_job_load_refusals` (L3). Each case loads no tool and returns its reason.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Subsystem: fleet gateway. `JobLoadResult` carries the engine `decision_id` and one premise reference per loaded tool, taken from the `load_set:component=` premises of `MEDULLA-DECISION-ENGINE-R176.5`. Arbora writes no record; the engine sealed it. Depends: `ARBORA-FLEET-R037.2`, `MEDULLA-DECISION-ENGINE-R176.5`. Caller chain: `find_tools` in `arbora/fleet/multiplexer_ops.py` -> `apply_load_set` (planned) -> `JobLoadResult` of `arbora/fleet/job_loads.py`. Shape: `JobLoadResult` carries `decision_id` and one premise reference per loaded tool read from the `load_set:component=` premises of the engine answer; arbora writes no record. | Test: `tests/fleet/test_job_loads.py::test_result_cites_decision` (L3). Each loaded tool names its decision premise.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R037.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Caller chain: the served `find` intent tool over MCP, against a recorded engine answer for `MEDULLA-DECISION-ENGINE-R176.6`. The test connects three fixture connectors with 300 tools and asks for a web search job. Premise: the session lists only the answered tools, and `tools/list_changed` fires once. Depends: `ARBORA-FLEET-R037.3`, `MEDULLA-DECISION-ENGINE-R176.6`. Shape: new served test `tests/fleet/test_job_loads_hot_path.py` with three fixture connectors of 300 tools and a recorded engine answer; no production code. | Test: `tests/fleet/test_job_loads_served.py::test_find_job_lazily_loads_answered_tools` (L4).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R038
One protocol stack with one implementation per role
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**One protocol stack with one implementation per role.** MCP and A2A each have a serving role and a consuming role. Arbora owns MCP serving, A2A serving and the multiplexer MCP client. Scion-sdk owns connector client transports. Scion-sdk also owns connector server scaffolding (`SCION-REPOSITORY-TRANSPORT`). A second implementation of one role is a defect. Shape: `tests/architecture/test_protocol_roles.py` walks the `arbora/` import graph. Caller chain: the pre-commit and CI architecture gate runs the test on every change. Roles are tabled in `specs/fleet-catalog-and-tools/plan.md`. Depends: none. | Test: `tests/architecture/test_protocol_roles.py::test_no_second_role_implementation` (L1). It fails when an arbora module implements a connector transport or connector server scaffolding.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039
Domain pack reads compose engine methods (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Domain pack reads compose engine methods (rollup).** Entry: the registered operation `domain.pack`, served as an `ask` intent tool. Caller: registry `invoke` → `arbora/api/ops/domain_pack.py::read_domain_pack` → `eg.storage.ConnectorPack`, `eg.reasoning.OntologyInspect`, `eg.reasoning.ShaclValidate`. Consumers: the legal, human-resources, medical and government skills. The operation holds no pack model, store or validator. The pack definition is `MEDULLA-TYPED-PACKS-R097`. Children `.1` to `.6` cover model, behavior, wiring, refusal, evidence and proof. | Rollup. Its L4 proof is `tests/fleet/test_domain_pack_served.py::test_domain_pack_read_composes_engine_methods`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Shape: `arbora/api/ops/domain_pack.py`. The operation declares one request `DomainPackRequest{domain, version}` and one result `DomainPackResult{pack_digest, classes, enumerations, shapes_verdict, request_ids}`. `domain` is `human-resources`, `legal`, `medical` or `government`. It declares no other data structure. Depends: `MEDULLA-TYPED-PACKS-R097`. Caller chain: registry build `arbora/api/ops/registry_factory.py::get_registry` -> `domain.pack` operation of the new `arbora/api/ops/domain_pack.py` -> `read_domain_pack` (planned, `.2`). | Test: `tests/api/test_domain_pack_contract.py::test_request_and_result_fields` (L1). It lists both models and fails on an extra field.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** Shape: `read_domain_pack`. It reads the pack through `ConnectorPack`, lists the classes through `OntologyInspect` and checks them through `ShaclValidate`. It returns the engine results unchanged, adds no ranking and keeps no cache. Caller chain: registry `invoke` → `read_domain_pack`. Depends: `ARBORA-FLEET-R039.1`. | Test: `tests/api/test_domain_pack_contract.py::test_result_equals_three_engine_responses` (L2). A recorded-engine fixture compares the result with the three responses.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** The registry factory (`arbora/api/ops/registry_factory.py::get_registry`) registers `domain.pack` as an `ask` intent tool with scope `domain:read`. A skill calls it through `find` and `ask` and holds no copy of the pack. Depends: `ARBORA-FLEET-R039.2`. Caller chain: MCP `find` and `ask` -> registry built by `arbora/api/ops/registry_factory.py::get_registry` (line 16) -> `domain.pack` handler `read_domain_pack` in the new `arbora/api/ops/domain_pack.py` -> three engine calls. Shape: add `arbora/api/ops/domain_pack.py` to the module tuple of `arbora/api/ops/registry_factory.py::get_registry` (line 16) so `domain.pack` registers as an `ask` operation with scope `domain:read`; the scope is registered in `arbora/security/scope_registry.py`. | Test: `tests/api/test_domain_pack_contract.py::test_served_tool_reaches_three_engine_methods` (L3). It asserts the three recorded engine calls under the caller tenant.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** The operation refuses an unknown domain or version with the engine code. It refuses a caller outside the tenant with `TENANT_DENIED`. It never falls back to a local pack. Caller chain: `read_domain_pack`. Depends: `ARBORA-FLEET-R039.3`. Shape: `read_domain_pack` in the new `arbora/api/ops/domain_pack.py` passes engine refusals through and raises `TENANT_DENIED` for another tenant, with no local pack fallback. | Test: `tests/api/test_domain_pack_contract.py::test_refusals_carry_stable_codes` (L3). One case per refusal asserts the stable code.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** `DomainPackResult.pack_digest` is the engine digest. `request_ids` holds the three engine request ids. arbora writes no record. Depends: `ARBORA-FLEET-R039.2`. Caller chain: `domain.pack` -> `read_domain_pack` (planned) in `arbora/api/ops/domain_pack.py` -> three engine calls. Shape: `DomainPackResult.pack_digest` and `request_ids` copy the engine values in `arbora/api/ops/domain_pack.py`; arbora writes no record. | Test: `tests/api/test_domain_pack_contract.py::test_result_carries_digest_and_request_ids` (L3).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R039.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Caller chain: the served tool over MCP for each of the four domains. The engine is a loopback medulla engine that holds the packs of `MEDULLA-TYPED-PACKS-R097`. The added latency over the three engine calls is at most 5 ms at p99 over 200 calls. The latency check runs in the nightly group `arbora/domain_pack`, never in the PR gate. Depends: `ARBORA-FLEET-R039.3`. Shape: new served test `tests/api/test_domain_pack_hot_path.py` over MCP against a loopback engine, plus a nightly latency check in the group `arbora/domain_pack`; no production code. | Test: `tests/fleet/test_domain_pack_served.py::test_domain_pack_read_composes_engine_methods` (L4).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R040
arbora serves and reports the prompts, skills and resources of each connector
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**arbora serves and reports the prompts, skills and resources of each connector.** The fleet catalog must report the components of each imported pack. These are the tools, skills, `mcp_prompt` and `mcp_resource` components. The resources include `ontology://` and `shapes://` resources. `fleet.catalog.list` and `fleet.catalog.search` must return each kind. arbora must serve connector prompts through `prompts/list` and `prompts/get`. It must serve skill and ontology resources through `resources/list` and `resources/read`. Each item keeps the fleet name of its connector. `capture_server_pack` must record a count for each of the five surfaces per connector. A connector with no prompt, skill or ontology gets one `surface_gap` per missing kind. A silent zero is not allowed. | A served test onboards a fixture connector with each content kind. It lists each kind through `fleet.catalog.list`. It gets one prompt through arbora. It reads one `skill://` resource and one `ontology://` resource through arbora. A connector with no prompts reports `surface_gap: prompts`. The live acceptance `surface_audit.py` reports the fleet against this row.
requirementARBORA-FLEETVERIFIED25c198540020
3597c590c8c9
6815715c27d8
8496a59c6bd1
96b68a9b5e5c
tests/fleet/test_connector_surfaces.py:137
tests/fleet/test_connector_surfaces.py:147
tests/fleet/test_connector_surfaces.py:157
tests/fleet/test_connector_surfaces.py:191
tests/fleet/test_connector_surfaces.py:231
ARBORA-FLEET-R040.1
The served gateway forwards the relay ops
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The served gateway forwards the relay ops.** The served `LateFleetGateway` forwards `prompts_list`, `prompts_get`, `resources_list` and `resources_read` to the bound fleet gateway under the caller session, as it does for search and call. It also serves every other gateway method the fleet ops call. A prompt or resource that is missing, not imported or hidden answers `NOT_FOUND`, never `INTERNAL`. Child slice of `ARBORA-FLEET-R040`. Caller chain: served fleet ops (`prompts_list`, `prompts_get`, `resources_list`, `resources_read`, `handle_fleet_operation` in `arbora/api/ops/fleet.py`) -> `LateFleetGateway` (defined in `arbora/mcp_server/server.py`) -> bound fleet gateway in `arbora/fleet/gateway_ops.py` -> `arbora/fleet/multiplexer.py`. Shape: the four forwarding methods of `LateFleetGateway` in `arbora/mcp_server/server.py` plus a generic forward for every other gateway method; `NOT_FOUND` for missing, unimported or hidden items. | `tests/mcp_server/test_late_gateway_parity.py` compares the gateway methods the fleet ops call with the methods `LateFleetGateway` serves, and proves each relay call forwards. Test: `tests/mcp_server/test_late_gateway_parity.py::test_late_gateway_serves_every_method_the_fleet_ops_call`
requirementARBORA-FLEETVERIFIED3597c590c8c9
6815715c27d8
f5c799c91830
tests/fleet/test_connector_surfaces.py:276
tests/mcp_server/test_late_gateway_parity.py:29
tests/mcp_server/test_late_gateway_parity.py:37
ARBORA-FLEET-R040.2
A relay read survives a child restart
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A relay read survives a child restart.** A restarted streamable-http child no longer knows the session id. It answers 404 with `INVALID_REQUEST "Session not found"`. Arbora treats that answer as a dead session, as it treats `Session terminated` and `Connection closed`. `prompts_get` and `resources_read` run through one relay read (`MCPMultiplexer._relay_read`). On a dead session that read tears the generation down and waits for the supervisor to reconnect. The wait is bounded by the child connect timeout and 45 seconds. The read then retries once on the new session. A second failure, or any other failure, propagates unchanged. The supervisor keeps reconnecting after its first generation dies: a recovery never reports itself as a boot failure. Validation run 2026-10-24 gap G4: every relay read failed `Session not found` until arbora restarted. Child slice of `ARBORA-FLEET-R040`. Caller chain: `prompts_get` and `resources_read` -> `MCPMultiplexer._relay_read` in `arbora/fleet/multiplexer.py` -> child session; a 404 `Session not found` is treated as a dead session and retried once on a fresh session. Shape: the dead-session classifier in `arbora/fleet/multiplexer.py` extended with the 404 `Session not found` answer beside `Session terminated` and `Connection closed`. | `tests/fleet/test_relay_session_recovery.py` runs a real FastMCP child process over HTTP. It kills the process and starts it again on the same port. `::test_relay_reads_reestablish_the_session_after_a_real_child_restart` reads a resource and a prompt from the new generation. `::test_a_child_that_stays_down_fails_after_one_bounded_retry`; `::test_unknown_session_is_a_dead_session_signature`. Test: `tests/fleet/test_relay_read_restart.py::test_relay_read_survives_child_restart` (planned, listed in test-spec.md).
requirementARBORA-FLEETVERIFIED25c198540020
96b68a9b5e5c
e68f7006d5a2
tests/fleet/test_relay_session_recovery.py:24
ARBORA-FLEET-R040.3
One paged fleet census, and the per-server read agrees with it
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**One paged fleet census, and the per-server read agrees with it.** `fleet.catalog.list` with `summary: true` returns no items and pages over every registered connector, served or not, by server name. Each entry carries the five surface counts and `surface_gap` of R040, the pack status of `fleet.packs.status` (`served`, `registered_unpublished` when the pack head is absent, or `not_in_fleet`), and the last probe error code when the catalog probe failed. A census of the fleet is then one paged call instead of one `fleet.packs.status` per connector. `find(op="catalog", params={server})` reads the same snapshot as `fleet.catalog.list`: for a server whose snapshot holds tools it never answers an empty tool list with a probe error, and a server the snapshot lacks answers `NOT_FOUND` with its pack status, never an empty catalog. A connector redeploy republishes its pack, so its verified engine record changes: the catalog then drops that server's cached live probe and serves the engine's current tool schemas until a fresh probe answers, never the schema the server had before the redeploy. Child slice of `ARBORA-FLEET-R040`. Live check 2026-11-07 (deployed build before R068 to R070): the per-server read of one connector answered `tools: []` with a boundary error while `fleet.catalog.list` counted 675 tools for it, and three served-or-registered connectors were absent from both reads. Caller chain: `ask(op="fleet.catalog.list")` / `find(op="catalog")` → `arbora/api/ops/fleet.py` → the multiplexer's one `list_catalog` handler (`arbora/fleet/multiplexer.py`) → catalog snapshot, plus the pack status read of `fleet.packs.status`. Shape: a `summary` flag on the existing `fleet.catalog.list` params and one shared snapshot read for both ops; no new operation and no new store. Depends: `ARBORA-FLEET-R040`. | `tests/fleet/test_fleet_census_summary.py::test_summary_pages_every_connector_with_pack_status`, `::test_per_server_read_matches_the_catalog_snapshot` and `::test_connector_redeploy_refreshes_its_schemas`.
requirementARBORA-FLEETVERIFIED8496a59c6bd1
tests/fleet/test_fleet_census_summary.py:35
ARBORA-FLEET-R041
Registering a connector imports its full pack with no manual step (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Registering a connector imports its full pack with no manual step (rollup).** Entry: connector registration, a fleet-config pass, a connector release or the MCP handshake. Caller: `HandshakeOnboarder.notify` or `FleetOnboardingService.run_pass` → `FleetOnboarding.onboard(endpoint, auth, trigger)`. One pass captures and imports the whole pack: ontology, tools, prompts, skills, resource descriptors and source contracts. A release re-imports by content digest. `onboard-fleet` stays as a bulk re-sync. Extends `ARBORA-FLEET-R027` and `ARBORA-FLEET-R036`; depends on `ARBORA-FLEET-R040`. Children `.1` to `.18` deliver it. | Rollup. Its L4 proof is `tests/fleet/test_auto_onboard_served.py::test_register_then_release_serves_all_surfaces_without_manual_step`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** `OnboardingTrigger{connector, reason, release_digest}` exists in `arbora/fleet/onboarding.py:69`. `reason` is `registered`, `config_pass`, `release_changed`, `list_changed` or `handshake`. Add frozen `PackSurfaceCounts{tools, prompts, skills, resources, ontologies, contracts, contract_state}` in the same file, built by the existing `pack_surface_report`. `OnboardingReport.surfaces` keeps it per connector. Depends: `ARBORA-FLEET-R040`. Caller chain: `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` builds `PackSurfaceCounts` through `pack_surface_report` and records it with the trigger. Shape: `arbora/fleet/onboarding.py::OnboardingTrigger` (line 69) (line 69) and the new frozen `PackSurfaceCounts` in the same file, built by the existing `pack_surface_report`. | Test: `tests/fleet/test_auto_onboard.py::test_trigger_and_counts_round_trip` (L1) stores and reads a record.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** A new registration starts one pass with no operator call. The pass runs `capture_server_pack`, imports through `import_attested_pack`, then reads the contract state. A release is a changed content digest (`handshake_catalog_digest`). The digest covers the served tool, prompt and resource lists and `connector://resources`. The server version is never compared. An unchanged digest calls `renew` and sends no import. Caller chain: `FleetOnboardingService.run_pass` → `FleetOnboarding.onboard`. Depends: `ARBORA-FLEET-R041.1`. Shape: `handshake_catalog_digest` and `capture_server_pack` feed `import_attested_pack` inside `FleetOnboarding.onboard` of `arbora/fleet/onboarding.py`; a release is a changed digest, the server version is never compared. | Test: `tests/fleet/test_auto_onboard.py::test_registration_and_release_start_one_pass_each` (L2) registers a fixture, then changes a served tool.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** `onboard_fleet` (`arbora/fleet/onboarding.py:806`), `FleetOnboardingService.run_pass` and `HandshakeOnboarder._pass` all call `FleetOnboarding.onboard` (`arbora/fleet/onboarding.py:360`) with an `OnboardingTrigger`. The `list_changed` path of `ARBORA-FLEET-R041.14` passes `list_changed`. No second onboarding path exists. Host bootstrap: `start_fleet_onboarding` (`arbora/fleet/onboarding.py:1215`). Depends: `ARBORA-FLEET-R041.2`. Caller chain: host bootstrap `start_fleet_onboarding` (`arbora/fleet/onboarding.py`) -> `onboard_fleet` (line 806), `FleetOnboardingService.run_pass` and `HandshakeOnboarder._pass` -> `arbora/fleet/onboarding.py::FleetOnboarding.onboard` (line 360) with an `OnboardingTrigger`. Shape: the one `onboard` entry in `arbora/fleet/onboarding.py` takes the trigger; the `list_changed` path passes `list_changed`; no second onboarding path exists. | Test: `tests/fleet/test_auto_onboard.py::test_every_trigger_reaches_the_one_onboard_function` (L3) patches `onboard` and drives each trigger.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** A failed pass leaves other connectors unaffected and marks the connector `onboarding_failed` with a typed cause. The pass never blocks serving. An engine refusal such as `ONTOLOGY_ORPHAN` marks the connector `contract_rejected` and admits none of its tools. Arbora records `surface_gap` per missing kind, never a silent zero. `PACK_MASS_WITHDRAWAL` holds for operator approval (`ARBORA-FLEET-R027.8`). Caller chain: `FleetOnboarding.onboard`. Depends: `ARBORA-FLEET-R041.3`, `MEDULLA-TYPED-PACKS-R105.1`. Shape: failure handling in `FleetOnboarding.onboard` and the report of `arbora/fleet/onboarding.py` marks a connector `onboarding_failed` or `contract_rejected` with a typed cause and records `surface_gap`; serving is never blocked. | Test: `tests/fleet/test_auto_onboard.py::test_orphan_refusal_marks_contract_rejected_and_admits_no_tools` (L3).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** The onboarding record carries each surface count, each resource digest, the engine receipt and the trigger reason. `find` status and `fleet.packs.status` report the record per connector. A reader can tell which release produced the served catalog. Caller chain: `health_payload` (`arbora/fleet/health.py:478`). Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R036.5`. Shape: the onboarding record in `arbora/fleet/onboarding.py` is read by `arbora/fleet/health.py::health_payload` (line 478) and `handle_pack_status` in `arbora/api/ops/fleet.py` per connector. | Test: `tests/fleet/test_auto_onboard.py::test_status_reports_counts_digests_receipt_and_reason` (L3).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Caller chain: a real fixture connector process over MCP, registered with no other call. The test reads tools, prompts, skills and resources through the served `find` tool and `fleet.catalog.list`. It then bumps the connector release and reads the changed prompt without a manual step. `MEDULLA-CQ-CONN-R085.6` is the medulla consumer of the onboarding pass. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R041.5`. Shape: new served test `tests/fleet/test_onboarding_hot_path.py` with a real fixture connector process over MCP; no production code. | Test: `tests/fleet/test_auto_onboard_served.py::test_register_then_release_serves_all_surfaces_without_manual_step` (L4).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.7
Handshake trigger
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Handshake trigger.** The multiplexer completes the handshake with a connector: `initialize`, then `tools/list`, `prompts/list` and `resources/list`. It then starts one onboarding pass for that connector. The pass captures the full pack. The pack holds tools, prompts, skills, resources, ontology, shapes, and `connector://resources`, the data-source declaration with its record-type mappings. It imports or renews the pack in EG. `OnboardingTrigger.reason` gains `handshake`. No separate onboarding command is needed. Caller chain: child session handshake in `arbora/fleet/multiplexer.py` (`initialize`, then the three list calls) -> `HandshakeOnboarder` in `arbora/fleet/onboarding.py` -> `FleetOnboarding.onboard`. Shape: `HandshakeOnboarder` and `capture_server_pack` in `arbora/fleet/onboarding.py`; the multiplexer announces the connected child after the handshake. | `tests/fleet/test_handshake_onboard.py::test_completed_handshake_starts_one_pass_and_imports_full_pack` connects a fixture connector and calls nothing else.
requirementARBORA-FLEETVERIFIEDf832448cf411
tests/fleet/test_handshake_onboard.py:146
tests/fleet/test_handshake_onboard.py:367
ARBORA-FLEET-R041.8
Reconnect compare
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Reconnect compare.** On a reconnect, arbora compares a content digest with the pack EG holds. The digest covers the served lists and `connector://resources`. The `serverInfo` version is recorded and never compared. A change re-captures the pack. No change re-captures nothing. An unchanged pack is renewed, not re-imported. Renewal extends the registration lease only. Caller chain: reconnect of a child in `arbora/fleet/multiplexer.py` -> `HandshakeOnboarder._pass` in `arbora/fleet/onboarding.py` -> digest compare -> `FleetOnboarding.renew` or `onboard`. Shape: `handshake_catalog_digest` and `FleetOnboarding.renew` in `arbora/fleet/onboarding.py`; an unchanged pack is renewed, not re-imported. | `tests/fleet/test_handshake_onboard.py::test_reconnect_recaptures_only_on_content_digest_change` reconnects with a new version only, a changed tool, a changed declaration and a changed prompt.
requirementARBORA-FLEETVERIFIED6e797f51cc30
dab2f894b5d6
f832448cf411
tests/fleet/test_handshake_onboard.py:166
tests/fleet/test_handshake_onboard.py:204
tests/fleet/test_handshake_onboard.py:296
ARBORA-FLEET-R041.9
Serving never blocks
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Serving never blocks.** A capture or import failure never blocks serving the tools of the connector. arbora logs the failure. It surfaces it in the catalog surface report of `ARBORA-FLEET-R040`. It retries with backoff. The backoff is bounded and resets on success. Caller chain: `HandshakeOnboarder._pass` in `arbora/fleet/onboarding.py` runs on a worker thread, so a failure never blocks tool serving in `arbora/fleet/multiplexer.py`. Shape: bounded backoff reset on success inside `HandshakeOnboarder` of `arbora/fleet/onboarding.py`; the failure is shown in the surface report. | `tests/fleet/test_handshake_onboard.py::test_failed_capture_serves_tools_reports_gap_and_retries_with_backoff` fails the capture twice, then lets it pass.
requirementARBORA-FLEETVERIFIEDe755549375e6
f832448cf411
tests/fleet/test_handshake_onboard.py:313
tests/fleet/test_handshake_onboard.py:347
tests/fleet/test_handshake_onboard.py:381
ARBORA-FLEET-R041.10
Rules unchanged
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Rules unchanged.** The handshake trigger adds no authority. Governance, admission and authority rules stay as they are. A large shrink of an imported pack still needs the mass-withdrawal approval. The handshake pass never bypasses it. The pass uses the one `onboard` function. The periodic and `onboard-fleet` passes remain as re-sync. Caller chain: `HandshakeOnboarder._pass` -> `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py`; the mass-withdrawal approval path is `allow_mass_withdrawal` (line 320). Shape: no new authority; the handshake pass uses the single `onboard` function and the existing `allow_mass_withdrawal` guard. | `tests/fleet/test_handshake_onboard.py::test_large_shrink_on_handshake_waits_for_mass_withdrawal_approval` reconnects with a pack that drops most tools.
requirementARBORA-FLEETVERIFIEDa31aba1d54a2
f832448cf411
tests/fleet/test_handshake_onboard.py:392
ARBORA-FLEET-R041.11
A connector's declaration is captured as a pack resource
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A connector's declaration is captured as a pack resource.** A connector on scion-sdk 0.4.0 serves its data-source declaration at `connector://resources`. The JSON holds sources, record-type mappings and resources. The pack capture lists that URI with the `ontology://` and `shapes://` resources. It validates the body as a JSON object. It keeps no other metadata file. arbora requires `scion-sdk>=0.5.9`. Child slice of `ARBORA-FLEET-R041`. Caller chain: `capture_server_pack` in `arbora/fleet/onboarding.py` lists `connector://resources` with the `ontology://` and `shapes://` resources -> `arbora/fleet/declarations.py`. Shape: `capture_server_pack` reads and validates the declaration body, kept by `arbora/fleet/declarations.py`. | `tests/fleet/test_declarations.py::test_capture_lists_the_declaration_and_not_a_manifest`.
requirementARBORA-FLEETVERIFIED846e2eb35dff
963a7d457622
dab2f894b5d6
fd0f5f810481
tests/fleet/test_declarations.py:32
ARBORA-FLEET-R041.12
The pack capture stays under the connector rate limit
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The pack capture stays under the connector rate limit.** The connector SDK limits each caller to 10 requests a second with a burst of 20. A pack capture sends one request per skill, prompt and resource, so the connector throttled an unpaced capture of a pack with 22 skills mid-way. The throttle surfaced as a prompt rejection. The capture now spaces its requests to one per 0.125 seconds for each connector. Child slice of `ARBORA-FLEET-R041`. Caller chain: `capture_server_pack` in `arbora/fleet/onboarding.py` issues one request per skill, prompt and resource to the child. Shape: a pacing delay in the capture loop of `capture_server_pack` in `arbora/fleet/onboarding.py` below the connector limit of 10 requests a second with burst 20. | `tests/fleet/test_paced_capture.py` proves the paced session spaces its calls and passes plain attributes through. Test: `tests/fleet/test_paced_capture.py::test_capture_requests_stay_under_ten_per_second`
requirementARBORA-FLEETVERIFIED963a7d457622
tests/fleet/test_paced_capture.py:23
ARBORA-FLEET-R041.13
Mappings come from the captured declaration only
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Mappings come from the captured declaration only.** Onboarding keeps each connector's `connector://resources` body (`arbora/fleet/declarations.py`). `research.web` commit refuses with `MAPPING_UNDECLARED` when a captured declaration lacks the `Document` or `Chunk` mapping. An uncaptured connector is left to the engine. The connector source listing reads `connector://resources` through the fleet `resources_list` and `resources_read` relays. A source's `for_each` fan-out passes through to the SDK runner unchanged. arbora reads no `connector_manifest.yml`, `mcp_source_presets.json`, `tool_schema_fingerprints.json`, `ingest_sources.json`, `data_resources.json` or `manifest://connector`. The SDK builds the mapping reference `connector:<connector>#mappings/<type>`. The engine parses it. arbora does not build it. Child slice of `ARBORA-FLEET-R041`. Caller chain: `research.web` commit -> `arbora/fleet/declarations.py` captured declaration lookup -> `MAPPING_UNDECLARED` refusal. Shape: the mapping lookup in `arbora/fleet/declarations.py` returns the captured `Document` and `Chunk` mappings; an uncaptured connector is left to the engine. | `tests/fleet/test_declarations.py::test_research_mappings_resolve_from_the_captured_declaration`; `tests/ingest/test_connector_sources.py::test_list_sync_status_compose_runner`.
requirementARBORA-FLEETVERIFIED3eccd0f72f06
5621b576a1ce
727648cc4db0
8c0ad7f95b66
95234018d50f
tests/fleet/test_declarations.py:101
tests/ingest/test_connector_sources.py:306
ARBORA-FLEET-R041.14
Onboarding follows discovery and list changes
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Onboarding follows discovery and list changes.** The announce runs after `initialize` or `server/discover`. It reads `serverInfo` from the session, which both set. A child that sends a `list_changed` notification is re-digested. The notification covers tools, prompts and resources. The one onboarding pass then runs with reason `list_changed`. A server that sends none is covered by its next handshake. Child slice of `ARBORA-FLEET-R041`. Caller chain: child `list_changed` notification handled in `arbora/fleet/multiplexer.py` -> re-digest -> `HandshakeOnboarder` -> `FleetOnboarding.onboard` with trigger `list_changed`. Shape: the announce after `initialize` or `server/discover` reads `serverInfo`; the notification handler re-digests tools, prompts and resources. | `tests/fleet/test_handshake_onboard.py::test_list_changed_notification_recaptures_through_the_one_pass`; `tests/fleet/test_handshake_onboard.py::test_reconnect_recaptures_only_on_content_digest_change` uses a discover session.
requirementARBORA-FLEETVERIFIEDdab2f894b5d6
e776cee8433e
fd0f5f810481
tests/fleet/test_handshake_onboard.py:205
tests/fleet/test_handshake_onboard.py:258
ARBORA-FLEET-R041.15
Captured pack bodies are read from the archive section
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Captured pack bodies are read from the archive section.** Under scion-sdk 0.5 a captured pack keeps every entry body in one archive blob. `entry.body` is the `PackSection` (offset, length, sha256) that locates it. Onboarding reads the `connector://resources` declaration and every `ontology://` body from `pack.archive.data` by that section (`arbora/fleet/declarations.py::entry_bytes`). It never parses the section object itself. Onboarding refuses and logs a section outside the archive. It also refuses bytes that miss the section digest. It then clears the declaration. There is no fallback for the older inline-bytes shape. Arbora requires `scion-sdk>=0.5.9,<0.6.0`, the first release that declares edges on declared sources. Validation run 2026-10-24 gap G1: every explicit `onboard-fleet` capture logged `unreadable connector://resources: … not PackSection` and registered no ingest sources. Child slice of `ARBORA-FLEET-R041`. Caller chain: `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` -> pack archive reads of the `connector://resources` declaration and each `ontology://` body. Shape: the reader locates each body through the `PackSection` (offset, length, sha256) of `entry.body` in the pack archive blob and verifies the sha256. | `tests/fleet/test_declarations.py::test_sdk_pack_declaration_is_read_from_its_archive_section` captures a live in-process MCP server through the real SDK pack path; `::test_a_section_that_does_not_match_its_digest_is_refused`; `::test_sdk_pack_ontology_bodies_are_read_from_the_archive`.
requirementARBORA-FLEETVERIFIED25c198540020
54834624dbb4
6721ef2b00df
96b68a9b5e5c
tests/fleet/test_declarations.py:117
tests/fleet/test_declarations.py:72
tests/fleet/test_declarations.py:90
ARBORA-FLEET-R041.16
Connector pack status is a served read
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connector pack status is a served read.** `fleet.packs.status` (verb `ask`, effect read, scope `agent:pack-control`) reads one connector's durable pack status. It sends the engine `ConnectorPack` `status` variant under the verified caller's client and graph. The tenant is the caller's tenant, never a request field. The read needs no idempotency key and reserves no effect. `eg.storage.ConnectorPack` stays the governed write for the import, bind and retire variants. Validation run 2026-10-24 gap G2: the status read was reachable only through that write and was refused `durable effect owner unavailable`. Caller chain: the served `ask` intent tool → `invoke` → the `fleet.packs.status` handler → the engine `ConnectorPack` `status` variant. Shape: `fleet.packs.status(connector) -> PackStatus` in `arbora/fleet/`, reusing the engine client adapter and adding no store. Child slice of `ARBORA-FLEET-R041`. | `tests/api/test_served_replay_owners.py::test_served_pack_status_is_a_read_and_reaches_dispatch_without_a_key`; `::test_pack_status_tenant_comes_from_the_caller_not_the_request`.
requirementARBORA-FLEETVERIFIED96b68a9b5e5c
d0f2716ab3ea
tests/api/test_served_replay_owners.py:113
tests/api/test_served_replay_owners.py:96
ARBORA-FLEET-R041.17
Onboarding writes the agent-library catalog into EG
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Onboarding writes the agent-library catalog into EG.** Each pass writes the pack's tools, prompts, skills and data resources as graph nodes. The vocabulary is the EG core metadata catalog (`MEDULLA-TYPED-PACKS-R106.1`). Each node is a `cat:ToolAsset`, `cat:PromptAsset`, `cat:SkillAsset` or `cat:DataResource`. Each node carries `cp:ofConnector` and its `cp:digest`. A tool names its schema.org Action with `cat:actionType`. A prompt that declares `systemPromptFor` or `useCase` meta is a `:PromptCandidate` (`MEDULLA-DECISION-ENGINE-R814.1`). A prompt tagged `system` without them frames its own title. Its `:systemPromptFor` edge names a `:Task`, and a class name also gets `cp:servesClass`. A data resource names its record class and is `cat:lineageTo` from the tool that reads it. The pass writes the set with one `AddTriples`, imported or renewed. A failed write never fails onboarding; the surface report keeps it as `catalog_error`. Catalog questions are graph queries through `ask` and `find`; no catalog read operation exists. The medulla consumer is `MEDULLA-TYPED-PACKS-R106.2`. The pass exports the batch as `tests/fleet/fixtures/catalog_batch.nt`. Medulla pins that file by SHA-256. | `tests/fleet/test_catalog_graph.py::test_pack_becomes_typed_assets_candidates_and_lineage`, `::test_ntriples_escape_literals_and_dedupe` and `::test_onboarding_writes_the_catalog_and_never_fails_on_a_refusal`.
requirementARBORA-FLEETSPECIFIED3ffdccaea68b
76c14ffa5264
tests/fleet/test_catalog_graph.py:118
tests/fleet/test_catalog_graph.py:133
tests/fleet/test_catalog_graph.py:89
ARBORA-FLEET-R041.18
Off-loop passes own temporary EG transports
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Off-loop passes own temporary EG transports.** The handshake pass and the background service pass run on the worker thread's fresh `asyncio.run` loop. The serving loop drives the one EG client pool. A pooled transport is bound to the loop that connected it. The pool refuses to drive a live client from a foreign loop. Each off-loop pass therefore runs under the temporary client scope. Its transports are created in the scope, owned by the pass loop and closed when the pass ends. The serving loop's pooled clients are never displaced and never driven from a foreign loop. Validation run 2026-10-24 finding F1: every pack-changing handshake on the dev4 pre-release failed `live client belongs to another event loop`. Unchanged packs passed because their renew-only pass never opened the tenant client. Child slice of `ARBORA-FLEET-R041`. Caller chain: `HandshakeOnboarder._pass` and the service pass run `asyncio.run` on the worker thread in `arbora/fleet/onboarding.py` -> their own EG transport. Shape: each off-loop pass opens and closes its own temporary EG transport instead of the pooled one bound to the serving loop. | `tests/fleet/test_handshake_onboard.py::test_handshake_pass_scopes_its_loop_transports` proves a pack-changing handshake on the fresh loop onboards while the serving loop holds its live pool client. It then closes the pass's own clients without displacing it.
requirementARBORA-FLEETVERIFIED58eace7440eb
tests/fleet/test_handshake_onboard.py:424
ARBORA-FLEET-R041.19
A committed import with a failed projection is reported with its cause
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A committed import with a failed projection is reported with its cause.** Caller: `FleetOnboarding.onboard`. The engine can commit a pack and then fail to project it. The pass must read the pack status. It must report the connector as `imported_projection_failed` with the engine's stable code and the graph name. A bare refusal with empty text is a defect. The pass must request the served reproject once when the code is retryable. The connector stays in `unadmitted_servers` (`ARBORA-FLEET-R026`) until the projection applies. Other connectors are unaffected. Depends: `ARBORA-FLEET-R041.16`, `MEDULLA-TYPED-PACKS-R096.1`. Caller chain: the fleet onboarding pass → `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` → the engine pack status read → the served reproject call. Shape: the outcome record `imported_projection_failed { connector, code, graph_name }` in `arbora/fleet/onboarding.py`. It reuses the existing `unadmitted_servers` report and adds no new store. | Test: `tests/fleet/test_auto_onboard.py::test_commit_then_projection_failure_names_code_and_graph_and_reprojects_once`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.20
A long onboarding pass renews its graph authority between imports
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A long onboarding pass renews its graph authority between imports.** The verified graph authority has a short lifetime. A pass that outlives it must obtain a fresh authority before the next import. An expired authority must not fail every remaining connector in the pass. A connector that still fails is marked `onboarding_failed` with the cause `authority_expired`. Depends: `ARBORA-IDENTITY-R027`. Caller chain: `_onboard_fleet` pass loop (`arbora/deployment/production_ops.py`) and `FleetOnboardingService.run_pass` -> `FleetOnboarding.onboard` per connector. Shape: renew the verified graph authority before the next import in the pass loop of `arbora/fleet/onboarding.py` when it is near expiry; a connector that still fails is marked `onboarding_failed`. | Test: `tests/fleet/test_auto_onboard.py::test_pass_longer_than_authority_lifetime_renews_between_imports`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.21
The catalog attest key covers the published component state
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The catalog attest key covers the published component state.** The idempotency key of the self-served catalog attest must digest the observed registry state. It must also digest the revision and digest of the published server component that the attest read. A moved component then yields a new key. An unmoved component replays the same key. Two attests around a moved component must not conflict. Caller chain: self-served catalog attest in `arbora/fleet/onboarding.py` (`FleetOnboarding.write_catalog`) computes the idempotency key. Shape: the key digests the observed registry state plus the revision and digest of the published server component read by the attest. | Test: `tests/fleet/test_catalog_attest.py::test_attest_key_changes_when_the_published_component_moves`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R042
arbora registers connector data resources as virtual-graph sources by policy (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**arbora registers connector data resources as virtual-graph sources by policy (rollup).** Entry: the onboarding pass after a pack import. Caller: `FleetOnboarding.onboard` → `register_contracts` → `register_access_contracts` and `approve_contracts` → engine `ConnectorPack.approve_source` (`MEDULLA-FEDERATED-QUERY-R722.3`). `ARBORA-FLEET-R030` registers mappings unapproved. This row adds the approval step. A read-only contract of an admitted connector is approved by `source_approval_policy` with no operator step. Any other contract stays held and serves no reads. Children `.1` to `.6` deliver it. The served operations it calls are `MEDULLA-FEDERATED-QUERY-R722.7` and `MEDULLA-FEDERATED-QUERY-R722.10`. | Rollup. Its L4 proof is `tests/fleet/test_source_approval_served.py::test_onboarded_read_contract_serves_rows_and_held_contract_serves_none`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R042.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** `SourceApprovalDecision{connector, contract_iri, mapping_iri, outcome, policy_id, reason, contract_digest, receipt}` exists in `arbora/fleet/access_contracts.py:52`. `outcome` is `approved` or `held`. The record keeps the deciding policy id. The engine receipt is the authority; the record is a projection. Depends: `MEDULLA-FEDERATED-QUERY-R722.1`. Caller chain: `register_access_contracts` in `arbora/fleet/access_contracts.py` produces `SourceApprovalDecision` records for `FleetOnboarding.register_contracts`. Shape: `arbora/fleet/access_contracts.py::SourceApprovalDecision` (line 52) in `arbora/fleet/access_contracts.py`; the engine receipt is the authority. | Test: `tests/fleet/test_source_approval.py::test_decision_round_trips` (L1).
requirementARBORA-FLEETVERIFIEDc049946b1e81
tests/fleet/test_source_approval.py:198
ARBORA-FLEET-R042.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** `source_approval_policy` (`arbora/fleet/access_contracts.py:244`) approves a mapping on three conditions. The contract is explicitly read-only. It names a credential reference only (`env://` or `openbao://`). Its connector is admitted. It holds every other mapping with a named reason. A repeated pass adds no duplicate decision and re-evaluates a changed `contract_digest`. A release that changes a contract returns the mapping to `held` until the policy approves it again. Caller chain: `register_access_contracts` → `source_approval_policy`. Depends: `ARBORA-FLEET-R042.1`. Shape: `arbora/fleet/access_contracts.py::source_approval_policy` (line 244) approves read-only, credential-reference-only contracts of admitted connectors and holds the rest with a named reason. | Test: `tests/fleet/test_source_approval.py::test_read_only_admitted_contract_is_approved_and_write_contract_is_held` (L2).
requirementARBORA-FLEETVERIFIEDc049946b1e81
tests/fleet/test_source_approval.py:217
ARBORA-FLEET-R042.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** `FleetOnboarding.register_contracts` (`arbora/fleet/onboarding.py:495`) calls `register_access_contracts` (`arbora/fleet/access_contracts.py:621`) after `parse_pack_contracts` (`access_contracts.py:368`). `onboard` calls it after the pack import. `approve_contracts` (`onboarding.py:543`) sends the approved decisions to the engine source-registry method that `MEDULLA-FEDERATED-QUERY-R722.3` serves. It projects the receipt through `bind_approved_mapping` (`access_contracts.py:534`). Depends: `ARBORA-FLEET-R042.2`, `MEDULLA-FEDERATED-QUERY-R722.3`. Caller chain: `FleetOnboarding.onboard` (`arbora/fleet/onboarding.py`, line 360) after the pack import -> `arbora/fleet/onboarding.py::FleetOnboarding.register_contracts` (line 495) -> `register_access_contracts` and `parse_pack_contracts` in `arbora/fleet/access_contracts.py` -> `approve_contracts` to the engine. Shape: `arbora/fleet/onboarding.py::FleetOnboarding.register_contracts` (line 495) calls `register_access_contracts` after `parse_pack_contracts`; `approve_contracts` sends the approved decisions to the engine. | Test: `tests/fleet/test_source_approval.py::test_onboard_calls_policy_and_engine_registry_once` (L3).
requirementARBORA-FLEETVERIFIEDc049946b1e81
tests/fleet/test_fleet_access_contracts.py:375
tests/fleet/test_source_approval.py:256
ARBORA-FLEET-R042.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** A contract with a literal secret (`CONTRACT_SECRET`) stays `held` and registers nothing readable. An unknown access kind and a write operation do the same. A missing SDK parser skips contracts and records `contracts_skipped`. An engine outage marks the connector `sources_pending` and retries on the next pass. Caller chain: `approve_contracts`. Depends: `ARBORA-FLEET-R042.3`, `MEDULLA-FEDERATED-QUERY-R722.4`. Shape: held outcomes (`CONTRACT_SECRET`, unknown access kind, write operation) are decided in `arbora/fleet/access_contracts.py`; `contracts_skipped` and `sources_pending` are report fields of `arbora/fleet/onboarding.py`. | Test: `tests/fleet/test_source_approval.py::test_secret_unknown_kind_write_and_outage_hold_the_mapping` (L3).
requirementARBORA-FLEETVERIFIEDc049946b1e81
tests/fleet/test_source_approval.py:272
ARBORA-FLEET-R042.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Each decision records the policy id, the contract digest and the engine receipt. The fleet catalog reports approved and held counts per connector, and a held mapping names its reason. Caller chain: `fleet.catalog.list`. Depends: `ARBORA-FLEET-R042.3`. Shape: `FleetCatalog` in `arbora/fleet/catalog_items.py` reports approved and held counts and the held reason per connector for `fleet.catalog.list`. | Test: `tests/fleet/test_source_approval.py::test_catalog_reports_approved_and_held_counts_with_reason` (L3).
requirementARBORA-FLEETVERIFIEDc049946b1e81
tests/fleet/test_source_approval.py:298
ARBORA-FLEET-R042.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Caller chain: a real fixture connector over MCP with one read-only and one write contract. The test onboards it. A served engine query reads rows through the approved mapping, and the held mapping returns no rows. Depends: `ARBORA-FLEET-R042.3`, `MEDULLA-FEDERATED-QUERY-R722.6`. Shape: new served test `tests/fleet/test_source_approval_hot_path.py` with a fixture connector exposing one read-only and one write contract; no production code. | Test: `tests/fleet/test_source_approval_served.py::test_onboarded_read_contract_serves_rows_and_held_contract_serves_none` (L4).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R043
arbora serves virtual-graph queries over connector data through the one door (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**arbora serves virtual-graph queries over connector data through the one door (rollup).** Entry: the served `query.uql` or `query.nl` operation (`ARBORA-OPS-R018.2`). Caller: registry `invoke` → `arbora/api/ops/query_federation.py` → engine UQL method. The engine answers from native facts and approved connector sources and returns provenance per source. arbora adds no query planner. It binds caller identity, tenant and budget. Children `.1` to `.6` deliver it. Depends: `MEDULLA-FEDERATED-QUERY-R722`. | Rollup. Its L4 proof is `tests/api/test_query_federation_served.py::test_nl_question_spans_native_facts_and_live_connector_rows`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R043.1
Model
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model.** Add `FederatedAnswerView{rows, sources, native_count, virtual_count, fetched_at, budget_used}` in `arbora/api/ops/query_federation.py`. Each `sources` entry names the connector, contract IRI and mapping IRI. Caller chain: `query.uql` and `query.nl` handlers in `arbora/api/ops/query.py` -> `arbora/api/ops/query_federation.py` view builder. Shape: frozen `FederatedAnswerView` in `arbora/api/ops/query_federation.py` with `sources` entries naming connector, contract IRI and mapping IRI. | `tests/api/test_query_federation.py::test_view_names_connector_contract_and_mapping`.
requirementARBORA-FLEETVERIFIED5704a6e6e655
tests/api/test_query_federation.py:146
tests/api/test_query_federation.py:70
ARBORA-FLEET-R043.2
Behavior
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior.** `query.uql` and `query.nl` pass the caller-bound request to the engine unchanged. The view reports the virtual sources the engine used. Which approved sources exist and their ontology classes are graph entities of EG. A caller asks for them through `ask`, which routes to `query.nl` (`ARBORA-OPS-R855.1`). There is no `query.sources` operation. The caller needs a current grant per source (`ARBORA-IDENTITY-R019`). Caller chain: MCP `ask` -> `IntentResolver` in `arbora/api/mcp/resolve.py` -> `query.nl` or `query.uql` handler in `arbora/api/ops/query.py` -> engine. Shape: the handlers pass the caller-bound request unchanged and attach the sources reported by the engine through `arbora/api/ops/query_federation.py`. | `tests/api/test_query_federation.py::test_query_reports_virtual_sources_and_sources_op_lists_granted_ones`.
requirementARBORA-FLEETVERIFIED5704a6e6e655
c135fd8a6f4a
tests/api/test_query_federation.py:146
tests/api/test_query_federation.py:93
ARBORA-FLEET-R043.3
Wiring
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring.** The view attaches in the query operation handlers of `ARBORA-OPS-R018.2.1`. No operation is added. REST and MCP project the existing query operations. Caller chain: REST and MCP -> registry `invoke` -> query operation handlers in `arbora/api/ops/query.py` -> `arbora/api/ops/query_federation.py` view. Shape: the view is attached in the existing handlers; no operation is added. | `tests/api/test_query_federation.py::test_rest_and_mcp_project_the_same_sources_operation`.
requirementARBORA-FLEETVERIFIED5704a6e6e655
tests/api/test_query_federation_served.py:174
ARBORA-FLEET-R043.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** A caller with no grant for a source gets that source left out and a typed `SOURCE_NOT_GRANTED` note. A query over a held mapping returns `SOURCE_HELD`. An exhausted budget returns the engine budget refusal unchanged. arbora never falls back to its own fetch. Caller chain: `query.nl` handler in `arbora/api/ops/query.py` -> `arbora/api/ops/query_federation.py` source filter. Shape: the filter in `query_federation.py` leaves out ungranted sources with a `SOURCE_NOT_GRANTED` note, returns `SOURCE_HELD` for a held mapping and passes the engine budget refusal through. | `tests/api/test_query_federation.py::test_ungranted_held_and_over_budget_sources_refuse_with_typed_codes`.
requirementARBORA-FLEETVERIFIED5704a6e6e655
tests/api/test_query_federation.py:219
tests/api/test_query_federation.py:270
ARBORA-FLEET-R043.5
Evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence.** Shape: `arbora/api/ops/query_federation.py`. The audit line records caller, tenant and question digest (SHA-256, 64 lowercase hex characters). It also records each source used and the engine decision id. No source rows enter the audit line. Caller chain: registry `invoke` audit hook. Depends: `ARBORA-FLEET-R043.1`, `MEDULLA-FEDERATED-QUERY-R722.5`. | Test: `tests/api/test_query_federation.py::test_audit_line_names_sources_and_holds_no_rows` (L3).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R043.6
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Caller chain: the served `query.nl` operation over MCP against a loopback medulla engine. A fixture connector with live data and an ontology is onboarded through `ARBORA-FLEET-R041.3`. One question spans a native fact and the connector rows. The test reads the rows and the per-source provenance. Depends: `ARBORA-FLEET-R042.6`, `MEDULLA-FEDERATED-QUERY-R722.6`. Shape: new served test `tests/api/test_query_federation_hot_path.py` over MCP against a loopback engine and a fixture connector; no production code. | Test: `tests/api/test_query_federation_served.py::test_nl_question_spans_native_facts_and_live_connector_rows` (L4).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R043.7
Source executor
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Source executor.** The engine reads a connector's data at query time (MEDULLA-FEDERATED-QUERY-R722). arbora runs each source read in `arbora/fleet/source_executor.py`. This is an internal path the engine uses. It is not LLM-facing and adds no operation. Each read goes through the governed `fleet.call` gateway under the caller's own delegation. Only read tools run. A tool whose effect changed refuses. The executor caps a source at 20 pages, 10000 rows and a per-source timeout. It caps a query at 32 sources, 8 in flight and an overall deadline. A failing source returns its own typed error: `SOURCE_NOT_GRANTED`, `SOURCE_TIMEOUT`, `SOURCE_UNAVAILABLE` or `SOURCE_BAD_RESPONSE`. The other sources still answer. The executor stores and logs no rows. Caller chain: engine foreign read -> `arbora/fleet/source_executor.py` -> governed `fleet.call` gateway under the caller session -> connector tool. Shape: `SourceReadRequest`, `SourceReadResult`, `ForeignReadSourceRequest` and `ForeignReadResult` in `arbora/fleet/source_executor.py`; an internal path with no new operation. | `tests/fleet/test_source_executor.py::test_reads_page_through_fleet_call_with_caller_delegation_and_per_source_errors`.
requirementARBORA-FLEETVERIFIED18ce44dc31bd
2d2fe39a58ce
c135fd8a6f4a
e755549375e6
tests/fleet/test_source_executor.py:196
tests/fleet/test_source_executor.py:233
tests/fleet/test_source_executor.py:257
tests/fleet/test_source_executor.py:283
tests/fleet/test_source_executor.py:321
ARBORA-FLEET-R044
arbora serves all installed content as native MCP primitives, declared the same as every connector (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**arbora serves all installed content as native MCP primitives, declared the same as every connector (rollup).** Skills, prompts and ontology reach callers and the engine the same way for arbora's own package, the skills packages and every connector. The connector SDK registration serves them, so no second declaration exists. Children `.1` to `.5` deliver it. | See each child.
requirementARBORA-FLEETVERIFIED7d6d317b490a
tests/test_installed_content.py:124
tests/test_installed_content.py:125
tests/test_installed_content.py:146
tests/test_installed_content.py:154
tests/test_installed_content.py:173
ARBORA-FLEET-R044.1
Skills as `skill://`
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Skills as `skill://`.** Each installed package's `skills/<name>/SKILL.md` is served as `skill://<name>/SKILL.md` through the fastmcp skills directory provider the connectors use. arbora registers no `prompt://` resource and no per-skill provider. Caller chain: MCP `resources/list` and `resources/read` -> backing server in `arbora/mcp_server/backing/arbora_surface.py` -> fastmcp skills directory provider over each installed package's `skills/`. Shape: the provider registration in `arbora/mcp_server/backing/arbora_surface.py` using the package content discovery of `arbora/content.py`; no `prompt://` resource is registered. | `tests/test_installed_content.py::test_skills_prompts_and_ontology_are_served_natively`.
requirementARBORA-FLEETVERIFIED7d6d317b490a
tests/test_installed_content.py:124
ARBORA-FLEET-R044.2
Prompts as fastmcp prompts
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Prompts as fastmcp prompts.** Each `prompts/<name>.json` is a native prompt with a title, tags and `_meta` under `team.knuckles/prompt` (role, goal, topic, version, `systemPromptFor`). A malformed prompt is an error. Caller chain: MCP `prompts/list` and `prompts/get` -> backing server in `arbora/mcp_server/backing/arbora_surface.py` -> prompt files read by `arbora/content.py`. Shape: each `prompts/<name>.json` becomes a fastmcp prompt with title, tags and `_meta` `team.knuckles/prompt`; a malformed file raises. | `tests/test_installed_content.py::test_skills_prompts_and_ontology_are_served_natively` and `::test_arbora_serves_its_own_prompts_with_meta`.
requirementARBORA-FLEETVERIFIED7d6d317b490a
tests/test_installed_content.py:125
tests/test_installed_content.py:212
ARBORA-FLEET-R044.3
Engine core ontology
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Engine core ontology.** arbora serves the engine's core ontology as `ontology://medulla/<file>` and its shapes as `shapes://medulla/<file>`, read from the installed medulla package data (`ontology/*.ttl`, `*.shapes.ttl` and `ontology/shapes/*.ttl`). A wheel without that data serves none and logs it by name. Caller chain: MCP `resources/read` of `ontology://medulla/<file>` -> `arbora/content.py` -> installed medulla package data. Shape: the engine ontology and shapes files are read from the installed medulla package data in `arbora/content.py`; a wheel without that data serves none and logs it by name. | `tests/test_installed_content.py::test_core_ontology_is_served_from_engine_package_data` and `::test_engine_without_ontology_data_serves_none_and_says_so`.
requirementARBORA-FLEETVERIFIED7d6d317b490a
tests/test_installed_content.py:154
tests/test_installed_content.py:173
ARBORA-FLEET-R044.4
arbora's own prompts
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**arbora's own prompts.** `arbora/prompts/` holds data-only prompts. They are: three cross-connector proof questions, ten competency questions, ten CMDB and TRM questions, five delegation use cases and one incident-triage system prompt. Each text names the intent tool to use (`ask`, `find`, `act` or `agents.plan_run`) and what a correct answer contains. Caller chain: MCP `prompts/list` -> backing server in `arbora/mcp_server/backing/arbora_surface.py` -> data-only prompts under `arbora/prompts/`. Shape: data files in `arbora/prompts/` served by the prompt provider of `arbora/content.py`; each text names the intent tool to use. | `tests/test_installed_content.py::test_arbora_prompts_are_data_with_title_tags_and_meta`.
requirementARBORA-FLEETVERIFIED7d6d317b490a
tests/test_installed_content.py:194
ARBORA-FLEET-R044.5
Package content onboards like connector content
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Package content onboards like connector content.** Every discovered package is a semantic content provider, so the engine imports its skills, prompts and ontology under its fleet name, as it does for a connector (`ARBORA-FLEET-R041`). The skills join the local catalog (`ARBORA-FLEET-R025`). Caller chain: onboarding pass `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py` treats each discovered package as a content provider -> pack import; the skills join `build_local_skill_catalog`. Shape: discovered packages are enumerated by `arbora/content.py` and imported under their fleet name by the same pack import as a connector. | `tests/test_installed_content.py::test_semantic_providers_cover_every_content_package` and `::test_catalog_includes_package_skills`.
requirementARBORA-FLEETVERIFIED7d6d317b490a
tests/test_installed_content.py:146
ARBORA-FLEET-R052
Medulla competency questions served through the intent tools (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Medulla competency questions served through the intent tools (rollup).** Entry: the six intent tools. Arbora serves the questions that medulla specifies and supplies the served operation, the connected-source list and the printed source block. Medulla supplies the method, the answer and the provenance. Extends `ARBORA-FLEET-R029` without changing it. Medulla rows `MEDULLA-CQ-XSRC-R006.5`, `MEDULLA-CQ-XSRC-R007.2`, `MEDULLA-SRC-AUTH-R007.5` and `MEDULLA-CQ-ORCH-R009` name this spec as owner. Each is answered by the matching child. Medulla specs: cross-source-competency, source-authority, orchestration-competency. | Rollup. It passes when children `.1` to `.4` pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.1
Serve the supply-chain impact report through one intent operation
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Serve the supply-chain impact report through one intent operation.** Companion of `MEDULLA-CQ-XSRC-R006.5`. Entry: the registered operation `report.supply_chain_impact`, served through `ask` over MCP and REST. Caller chain: registry `arbora/api/invoke/pipeline.py::invoke` → `supply_chain_impact` (new) beside the handlers in `arbora/api/ops/federation.py` → engine method `SupplyChainImpact`, which `MEDULLA-CQ-XSRC-R011` specifies and the engine contract does not yet publish. The operation passes the engine's typed `SupplyChainImpactReport` through unchanged. It adds no tool beyond the six intent tools and composes no part of the report. Refusal: when the engine contract lacks the method it returns `ENGINE_METHOD_UNAVAILABLE` and no report. The connected sources it reports come from `Method::SourceCoverage` (`MEDULLA-SRC-AUTH-R004.6.1`). Depends: `MEDULLA-CQ-XSRC-R006.1`, MEDULLA-CQ-XSRC-R011, `MEDULLA-SRC-AUTH-R004.6.1`. Shape: reply `{ report, sources_used[], abstentions[] }` of the new operation in `arbora/api/ops/federation.py`, registered through that module's `operations()`. | Test: `tests/api/test_supply_chain_impact_served.py::test_report_shape_and_method_absent_refusal` (L3) calls MCP and REST against a recorded engine, then against an engine without the method.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.2
Connected-source list and abstentions in the live acceptance run
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connected-source list and abstentions in the live acceptance run.** Companion of `MEDULLA-CQ-XSRC-R007.2`. Code: `arbora/api/ops/federation.py::connected_sources(tenant)` reads the tenant's admitted connectors from the fleet catalog (`FleetCatalogReader`). `supply_chain_impact` passes the list in the engine request. An authoritative source with no connected connector comes back as an engine abstention (`Unconnected`), which arbora passes through unchanged. The acceptance run records report, sources used and abstentions against the sources connected that day in the operator run output. Depends: `ARBORA-FLEET-R052.1`, `MEDULLA-CQ-XSRC-R006.3`. Caller chain: MCP `ask` and REST invoke → `arbora/api/invoke/pipeline.py::invoke` → `connected_sources` (new) in `arbora/api/ops/federation.py` → `FleetCatalogReader.read` in `arbora/fleet/catalog_reader.py` → engine request. Shape: `connected_sources(tenant)` (new) in `arbora/api/ops/federation.py` returning the tenant's admitted connectors from `FleetCatalogReader`; the engine reply carries `abstentions[]`. | Test: `tests/api/test_supply_chain_impact_served.py::test_removing_a_connector_turns_its_source_into_an_abstention` (L4). The software supply chain and services sides return non-empty answers.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.3
Print the sources-used-and-why block in the served tool result
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Print the sources-used-and-why block in the served tool result.** Companion of `MEDULLA-SRC-AUTH-R007.5`. Code: `arbora/api/ops/_common.py::require_sources_block`. Every served operation that returns a source-authority answer includes the engine's sources-used-and-why block unaltered and in engine order. Arbora never drops the block to fit a response budget. If the engine omits it, the result is refused with `SOURCES_BLOCK_MISSING`. Caller chain: registry `arbora/api/invoke/pipeline.py::invoke` result stage for `ask` operations tagged `source_authority`, calling `require_sources_block` (new). The block is the unaltered `audit` field of the `SourceCoverage` reply (`MEDULLA-SRC-AUTH-R004.6.1`). Its provider is `MEDULLA-SRC-AUTH-R007.1` (`AuthorityAudit`). Depends: `MEDULLA-SRC-AUTH-R007.1`, `MEDULLA-SRC-AUTH-R004.6.1`. Shape: `require_sources_block(reply) -> reply` (new) in `arbora/api/ops/_common.py`, next to `build_read_op` and `handle_tenant_read`; the block is the unaltered `audit` field of the `SourceCoverage` reply. | Test: `tests/api/test_sources_block.py::test_block_present_over_mcp_and_rest_and_missing_block_refused` (L3).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4
Orchestration probe questions through the intent surface (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Orchestration probe questions through the intent surface (rollup).** Companion of `MEDULLA-CQ-ORCH-R009`. Each of the six probes `MEDULLA-CQ-ORCH-R009.1` to `.6` is a served acceptance test in `tests/fleet/test_orchestration_probes.py`. Every probe runs through the intent tools over MCP against the deployed-shape fixture. A probe passes when the answer is non-empty, matches the stated expected content and cites provenance. The test writes a receipt file that medulla cites as status evidence. Children `.1` to `.6`. Each probe cites its medulla engine path in `MEDULLA-CQ-ORCH-R009.1` to `.6`. All probes use the shared fixture inputs of `MEDULLA-CQ-ORCH-R009`. | Rollup. It passes when children `.1` to `.6` pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4.1
Probe: "How many nodes does the graph hold, by label?"
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Probe: "How many nodes does the graph hold, by label?"** Companion of `MEDULLA-CQ-ORCH-R009.1`. Entry: `ask` with the question over MCP. Caller chain: registry `invoke` → engine method named by the plan for that intent. Expected: The counts per label equal a direct served SPARQL count on the same graph; an empty answer fails. Premises: the answer cites at least one engine record id. Refusals: an empty answer fails the test with `EMPTY_ANSWER`. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R052.4`. Shape: new served probe test `tests/fleet/test_competency_probes.py::test_graph_label_count_probe` over MCP against a loopback engine; no production code. | Test: `tests/fleet/test_orchestration_probes.py::test_probe_node_counts_by_label` (L4) records its trace receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4.2
Probe: "How can I deploy a container with container-manager?"
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Probe: "How can I deploy a container with container-manager?"** Companion of `MEDULLA-CQ-ORCH-R009.2`. Entry: `ask` through `plans.*` over MCP. Caller chain: registry `invoke` → engine method named by the plan for that intent. Expected: The answer is a plan of at least two steps. Each step names a tool present in the fleet catalog of container-manager. Premises: the answer cites at least one engine record id. Refusals: an empty answer fails the test with `EMPTY_ANSWER`. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R052.4`. Shape: served probe test in `tests/fleet/test_competency_probes.py` over MCP using the `plans.*` operations and the fleet catalog fixture; no production code. | Test: `tests/fleet/test_orchestration_probes.py::test_probe_deploy_container_plan` (L4) records its trace receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4.3
Probe: "Which agents are in the Agent Library?"
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Probe: "Which agents are in the Agent Library?"** Companion of `MEDULLA-CQ-ORCH-R009.3`. Entry: `ask` with the question over MCP. Caller chain: registry `invoke` → engine method named by the plan for that intent. Expected: The answer lists exactly the agents that `fleet.catalog.list` returns for kind agent. Premises: the answer cites at least one engine record id. Refusals: an empty answer fails the test with `EMPTY_ANSWER`. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R052.4`. Shape: served probe test in `tests/fleet/test_competency_probes.py` comparing the `ask` answer with `fleet.catalog.list` for kind agent; no production code. | Test: `tests/fleet/test_orchestration_probes.py::test_probe_agent_library_listing` (L4) records its trace receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4.4
Probe: "Why does Arbora use the intent surface?"
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Probe: "Why does Arbora use the intent surface?"** Companion of `MEDULLA-CQ-ORCH-R009.4`. Entry: `ask` with the question over MCP. Caller chain: registry `invoke` → engine method named by the plan for that intent. Expected: The answer cites at least one ingested spec or document node, including `ARBORA-FLEET-R029`. Premises: the answer cites at least one engine record id. Refusals: an empty answer fails the test with `EMPTY_ANSWER`. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R052.4`. Shape: served probe test in `tests/fleet/test_competency_probes.py` that ingests the specs and checks the cited node; no production code. | Test: `tests/fleet/test_orchestration_probes.py::test_probe_why_intent_surface` (L4) records its trace receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4.5
Probe: "Find a tool that lists Docker containers."
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Probe: "Find a tool that lists Docker containers."** Companion of `MEDULLA-CQ-ORCH-R009.5`. Entry: `find` with the question over MCP. Caller chain: registry `invoke` → engine method named by the plan for that intent. Expected: The container-manager list-containers tool appears in the top 3 results. Premises: the answer cites at least one engine record id. Refusals: an empty answer fails the test with `EMPTY_ANSWER`. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R052.4`. Shape: served probe test in `tests/fleet/test_competency_probes.py` using the `find` verb against the fixture fleet catalog; no production code. | Test: `tests/fleet/test_orchestration_probes.py::test_probe_find_list_containers_tool` (L4) records its trace receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.4.6
Probe: "Delegate: list running containers."
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Probe: "Delegate: list running containers."** Companion of `MEDULLA-CQ-ORCH-R009.6`. Entry: `act` delegation over MCP. Caller chain: registry `invoke` → engine method named by the plan for that intent. Expected: The delegated call reaches the fixture list-containers tool through `fleet.call` and returns the fixture containers. Premises: the answer cites at least one engine record id. Refusals: an empty answer fails the test with `EMPTY_ANSWER`. Depends: `ARBORA-FLEET-R041.3`, `ARBORA-FLEET-R052.4`. Shape: served probe test in `tests/fleet/test_competency_probes.py` using the `act` delegation to a fixture list-containers tool through `fleet.call`; no production code. | Test: `tests/fleet/test_orchestration_probes.py::test_probe_delegate_list_containers` (L4) records its trace receipt.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R053
Scheduled fleet smoke sweep
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Scheduled fleet smoke sweep.** Entry: host bootstrap starts `FleetSmokeService` beside `start_fleet_onboarding` (`arbora/fleet/onboarding.py:1215`). Caller chain: scheduler tick → `arbora/fleet/smoke_sweep.py::run_sweep` → served `fleet.call` path (`arbora/api/ops/fleet.py`) for one probe tool per admitted connector. A dedicated service principal holds only `mcp:discover` and the read-only fleet scopes. A probe is a named tool with no required arguments whose annotations carry `readOnlyHint: true`. The sweep never calls any other tool. Each run writes one `SmokeRow{server, tool, outcome, error_code, detail}` per connector to the run store of `arbora/fleet/smoke_sweep.py`. `outcome` is `ok`, `error`, `refused` or `no_probe`. `detail` holds at most 200 characters and no secret. The existing alert path fires once when a connector that passed the previous run now fails. Config: `ARBORA_FLEET_SMOKE_INTERVAL_S` in `~/.config/arbora/config.json`, default 900, bounds [60, 86400], unit seconds. Depends: `ARBORA-FLEET-R041.3`. Shape: new `arbora/fleet/smoke_sweep.py` with `FleetSmokeService` and `run_sweep`, started beside `start_fleet_onboarding` in `arbora/fleet/onboarding.py` and calling the served fleet call path of `arbora/api/ops/fleet.py`. | Test: `tests/fleet/test_smoke_sweep.py::test_sweep_records_rows_and_alerts_once_on_new_failure` (L3) drives `run_sweep` over a fake fleet with an ok, a failing, a refusing and a probe-less child.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R045
Host and supervise the ingest worker; surface its health
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Host and supervise the ingest worker; surface its health.** Companion of `MEDULLA-INGEST-WORKER-R001.13`, which owns the exported metrics. Entry: host bootstrap (`start_fleet_onboarding`, `arbora/fleet/onboarding.py:1215`) and the health route. Caller chain: host bootstrap → `arbora/fleet/ingest_worker_unit.py::declare_ingest_worker_unit` → fleet supervision; health route → `arbora/fleet/health.py::health_payload` → `ingest_worker_health`. The unit runs the `ingest-worker` command of `SCION-SOURCE-INGEST-R011` with `--engine-endpoint` from the served engine URL. Health reads the gauges and counters of `MEDULLA-INGEST-WORKER-R001.13` through the engine metrics read and returns them unchanged. A stopped unit reports `unhealthy` with reason `worker_stopped`; an unreachable metrics read reports `metrics_unavailable`. Arbora holds no job logic, queue or policy. Config: `~/.config/arbora/config.json` key `ingest_worker.enabled`, default true. Depends: `MEDULLA-INGEST-WORKER-R001.13`, `SCION-SOURCE-INGEST-R011`. Shape: new `arbora/fleet/ingest_worker_unit.py` with `declare_ingest_worker`, started by `start_fleet_onboarding` in `arbora/fleet/onboarding.py`; health is added to `collect_fleet_health` in `arbora/fleet/health.py`. | Test: `tests/fleet/test_ingest_worker_health.py::test_stopped_worker_is_unhealthy_and_running_worker_exposes_metrics` (L3) drives the health route with a fake supervisor and a recorded metrics response.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R034.15
DecisionEval attestation consumption proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**DecisionEval attestation consumption proof.** Subsystem: certification. Companion of `MEDULLA-DECISION-ENGINE-R142.101` and `MEDULLA-DECISION-ENGINE-R142.102`. Caller chain: served `agents.run`. The served path admits only the exact current attestation. A separate certification run does not open the normal invocation path. The case matrix holds a missing, a stale, a mismatched and an exact attestation. The receipt schema is the `DecisionEval` request type owned by medulla; no other schema blocks this row. Depends: `ARBORA-FLEET-R034.12`, `ARBORA-FLEET-R034.14`. Shape: new served test `tests/fleet/test_attestation_consumption.py` driving `agents.run` (`handle_agent`) with stale and current attestations; no production code beyond `validate_certification`. | Test: `tests/fleet/test_certified_workflow_served.py::test_attestation_matrix` (L3) covers the four cases through the served route.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R041.17.1
Onboarding writes owner, version, term, lineage-hop and schema nodes with the asset set
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Onboarding writes owner, version, term, lineage-hop and schema nodes with the asset set.** Subsystem: fleet onboarding. Caller chain: `arbora/fleet/onboarding.py::onboard` → `arbora/fleet/catalog_graph.py` (the writer of `R041.17`). Extend the batch. Add one `cat:StewardshipAssignment` per asset from the pack `cp:declaredOwner`, else the importing principal with `cat:flag "owner_missing"`. Add `cp:packVersion`. Add one `cat:LineageEdge` plus a direct `cat:lineageTo` edge per hop. Hops are `connector`, `operation`, `resource`, `field`. Add schema, key, view and index nodes from the pack contract, and `cat:flag "field_unmapped"` for an unmapped field. Send `RemoveTriples` for nodes that left the pack before the `AddTriples`. Split a batch above `knob catalog.onboard_batch_max_triples` (a received engine value, fallback 50000). Export the batch as an N-Triples file for the medulla repo's fixture `tests/fixtures/catalog/onboarding_batch.nt` (medulla side; arbora keeps no copy). Depends: `MEDULLA-TYPED-PACKS-R106.2`, `MEDULLA-TYPED-PACKS-R108.7`, ARBORA-FLEET-R041.17. Shape: extend the batch writer in `arbora/fleet/catalog_graph.py` with one `cat:StewardshipAssignment` per asset from the pack declared owner, called by `FleetOnboarding.onboard` in `arbora/fleet/onboarding.py`. | Test (planned): `tests/fleet/test_catalog_graph.py::test_onboarding_writes_owner_version_hops_and_schema_nodes` (L3, served onboarding against a loopback engine).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R051.2.1
Convergence status is a served read
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Convergence status is a served read.** `fleet.catalog.convergence` (verb `ask`, scope `agent:pack-control`) returns each replica's `CatalogGeneration` and state from `FleetCatalogReader.generation_status`. Caller chain: registry `invoke` → `arbora/api/ops/fleet.py` → `generation_status`. It writes nothing. Refusal: a caller outside the tenant gets `TENANT_DENIED`. Depends: `ARBORA-FLEET-R051.2`. Shape: new `fleet.catalog.convergence` `OpSpec` in `arbora/api/ops/fleet.py` calling a new `generation_status` method on `FleetCatalogReader` in `arbora/fleet/catalog_reader.py` (planned); scope `agent:pack-control`, no writes. | Test: `tests/fleet/test_catalog_convergence_served.py::test_convergence_read_over_mcp` (L4) reads the state over MCP.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R052.5
Serve the cross-source questions through the intent surface
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Serve the cross-source questions through the intent surface.** Subsystem: fleet catalog. Entry: intent tool `ask` with `op='eg.source.CrossSourceQuestion'`. Caller chain: MCP `ask` and REST invoke → `arbora/api/invoke/pipeline.py::invoke` → the generated operation of the Medulla-direct binding `arbora/api/registry/eg_binding.py` (`ARBORA-FLEET-R012`) → engine method `CrossSourceQuestion`, which the engine contract does not yet publish. The operation adds no tool beyond the six intent tools. It passes `sources_used` and `abstentions` through unchanged (`ARBORA-FLEET-R052.3`). It refuses with the engine refusal code when the engine lacks the method. Depends: `ARBORA-FLEET-R052.2`, `MEDULLA-CQ-XSRC-R008` MEDULLA-CQ-XSRC-R008.4. Shape: request `{ question, tenant, sources_connected[] }` and reply `{ report, sources_used[], abstentions[] }` passed through unchanged; no new file: the operation comes from the generator in `arbora/api/registry/eg_binding.py` and is not listed in `arbora/api/registry/eg_exclusions.yaml`. | Test: `tests/fleet/test_cq_xsrc_served.py::test_three_questions_over_http_and_mcp` (L3) runs each question over HTTP and MCP against a loopback engine.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R054
Onboarding passes the seed body to the pack import
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Onboarding passes the seed body to the pack import.** Subsystem: fleet onboarding. Shape: `arbora/deployment/semantic_provisioning.py::import_attested_pack`. The function copies the captured seed body, when present, into the `ConnectorPack.Import` request seed field of `MEDULLA-TYPED-PACKS-R104.3`. It adds no seed validation. The engine refusal codes `SEED_TOO_LARGE`, `SEED_BULK_DATA`, `SEED_SHACL_VIOLATION` and `SEED_DIGEST_MISMATCH` propagate unchanged. Caller chain: `FleetOnboarding.onboard` → `import_attested_pack`. Depends: `ARBORA-FLEET-R036.3`, `MEDULLA-TYPED-PACKS-R104.3`. | Test: `tests/fleet/test_connect_contract.py::test_seed_body_reaches_pack_import` (L3) asserts the recorded engine request carries the seed body and a seed refusal propagates.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R055
Serve the composed execution answer through the intent surface
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Serve the composed execution answer through the intent surface.** Arbora `ask(intent='how can I execute task <iri>')` resolves to the generated operation `eg.<service>.AgentExecutionAnswer` of `MEDULLA-CQ-ORCH-R008.2`. The resolver in `arbora/api/mcp/resolve.py` must return seven parts and must not compose them locally. Arbora holds no planner. Depends: `MEDULLA-CQ-ORCH-R008.2`. Caller chain: MCP `ask` -> `IntentResolver` in `arbora/api/mcp/resolve.py` -> generated operation `eg.<service>.AgentExecutionAnswer` -> answer returned unchanged. Shape: a route rule in `arbora/api/mcp/resolve.py` for the intent `how can I execute task <iri>` to the generated engine operation; no local composition of the seven parts. | Test: `tests/fleet/test_orchestration_probes.py::test_execution_answer_through_intent_surface` (L5) asserts seven parts with provenance over a loopback medulla engine.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R056
Intent surface answers the job, downtime and plan questions
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Intent surface answers the job, downtime and plan questions.** Arbora `find` and `ask` must reach the five engine paths of `MEDULLA-CQ-ORCH-R011` and return their answers with provenance. Q1 and Q4 resolve to `eg.<service>.Decide`. Q2, Q3 and Q5 resolve to `eg.<service>.Sparql` or `eg.<service>.UnifiedQuery` with `EXPLAIN`. Arbora composes no answer locally. File it touches: `arbora/api/mcp/resolve.py`. Depends: `MEDULLA-CQ-ORCH-R011.6`. Caller chain: MCP `find` and `ask` -> `IntentResolver` in `arbora/api/mcp/resolve.py` -> `eg.<service>.Decide`, `Sparql` or `UnifiedQuery` with `EXPLAIN`. Shape: route rules for the five questions in `arbora/api/mcp/resolve.py`; answers carry the engine provenance unchanged. | Test: `tests/fleet/test_job_downtime_plan_intent.py::test_five_questions_through_intent_surface` (L5) connects two fixture connectors and asks all five questions through `find`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R057
Source executor relays read-time access checks
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Source executor relays read-time access checks.** Stage: fleet. Caller chain: engine foreign read operation `access_check` (`MEDULLA-FEDERATED-QUERY-R722.3`) → `arbora/fleet/source_executor.py` (`ARBORA-FLEET-R043.7`) → connector tool backed by `AccessCheckPort` (`SCION-SOURCE-INGEST-R805.5`). The executor sends at most 200 record refs per call and enforces the 2,000 ms timeout. A timeout or a missing tool answers every record as denied. Refusal code: `SOURCE_ACCESS_CHECK_UNAVAILABLE`. Depends: MEDULLA-FEDERATED-QUERY-R703.3, SCION-SOURCE-INGEST-R805.5. Shape: an `access_check` relay in `arbora/fleet/source_executor.py` sending at most 200 requests per call to the connector tool through the governed `fleet.call` gateway. | Test: `tests/fleet/test_source_executor_access_check.py::test_timeout_denies_every_record` runs the executor against a loopback connector (served).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R058
Host bootstrap declares data-prep fields to the engine
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Host bootstrap declares data-prep fields to the engine.** Stage: host bootstrap. Caller chain: the arbora host start-up sequence. It loads `~/.config/arbora/data_prep.yml` and calls operation `eg.ingest.DataPrepDeclare` once per capability. Key `declarations[].capability`, `field_refs` and `policy_digest`. The file holds no import path or executable. Provider: MEDULLA-INGEST-WORKER-R001.1008. Depends: ARBORA-FLEET-R045. Shape: new `arbora/deployment/data_prep.py::declare_data_prep` reading `data_prep.yml` from the config directory (path helper in `arbora/core/settings.py`) and calling `eg.ingest.DataPrepDeclare` once per capability from host bootstrap. | Test: `tests/fleet/test_data_prep_bootstrap.py::test_bootstrap_declares_each_capability_once` (L3) uses a recorded engine and asserts one call per capability.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R059
A caller pins tools so they stay loaded across sessions and restarts (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A caller pins tools so they stay loaded across sessions and restarts (rollup).** Subsystem: fleet gateway. Entry: the served `manage` intent tool with op `fleet.tools.pin` or `fleet.tools.unpin`. Caller chain: `arbora/api/mcp/verbs.py:317` (`dispatch_verb`) → `invoke` → `arbora/api/ops/fleet.py:143` (`handle_fleet_operation`) → `arbora/fleet/multiplexer_ops.py` (`MultiplexerOps.pin`) → `arbora/fleet/session_loads.py:46` (`SessionLoads`) and the durable `PinStore`. Shape: a pin is a durable per-principal record plus a pinned flag on the live loaded item. Pinning adds no resident tool; the four fleet tools of `ARBORA-FLEET-R018` stay as they are. Children `.1` to `.9` deliver it. Depends: `ARBORA-FLEET-R018`, `ARBORA-FLEET-R029`. | Rollup. Its L4 proof is `tests/fleet/test_pinned_loads_served.py::test_pin_survives_restart_and_eviction`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_served.py:168
ARBORA-FLEET-R059.1
Model and knobs
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model and knobs.** Subsystem: fleet gateway. Add frozen `PinRecord{tenant, principal, item_id, binding, pinned_at_ms}` and the `PinStore` protocol (`list(tenant, principal)`, `put(record)`, `delete(tenant, principal, item_id)`, `list_tenant(tenant, cursor, limit)`) in `arbora/fleet/pin_store.py`. `binding` is the `item_binding` tuple of `arbora/fleet/multiplexer_ops.py:31`. Add the knob `pinned_cap` to `SessionLoads.__init__` (`arbora/fleet/session_loads.py:47`) with the starting value 32 and the valid range 1..128. Read it from the new setting `FLEET_PINNED_CAP` in `arbora/core/settings.py`, beside `mcp_always_load_tools` (line 494). `arbora/fleet/catalog_composition.py:150` passes it to `SessionLoads`. The pinned cap is separate from the session cap of 64. Refusal: a `pinned_cap` outside 1..128 raises `ValueError`. Caller chain: `MultiplexerOps` construction in `arbora/fleet/catalog_composition.py:150` builds `SessionLoads(pinned_cap=...)`, which reads the `FLEET_PINNED_CAP` setting. Shape: `PinRecord`, `PinStore` and `InMemoryPinStore` in `arbora/fleet/pin_store.py`; the `pinned_cap` argument of `SessionLoads.__init__`; one `Field` in `arbora/core/settings.py`. Reuse `item_binding`. Depends: none. | Test: `tests/fleet/test_pin_store.py::test_pin_record_round_trips_and_cap_range` (L1) planned in `test-spec.md`. A round trip keeps every field. A cap of 0 or 129 raises.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pin_store.py:22
ARBORA-FLEET-R059.2
Behavior: pinned items skip eviction and idle expiry
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior: pinned items skip eviction and idle expiry.** Subsystem: fleet gateway. Code: `SessionLoads.pin(key, items)` and `SessionLoads.unpin(key, items)` in `arbora/fleet/session_loads.py`, plus a `pinned` set on `_Session` (line 17). `_overflow_victims` (line 84) must never choose a pinned item as an LRU victim. `_session` (line 63) must keep the pinned set when it rebuilds an idle-expired session, and re-mark each pinned item loaded. `retractable` (line 156) must exclude pinned items, so `unload` by server, kind or `all_items` and `invalidate_policy_revision` (`multiplexer_ops.py:430`) skip them. An explicit `items` unload removes the pin. Pinned items count toward `pinned_cap`, and also toward the session cap of 64 and hard cap of 256. Caller chain: the served `manage` op `fleet.tools.pin` → `MultiplexerOps.pin` → `SessionLoads.pin`; `load` (`arbora/fleet/session_loads.py:106`) → `_overflow_victims` (line 84). Shape: `_Session.pinned: set[str]` in `arbora/fleet/session_loads.py`, `SessionLoads.pin/unpin`, and a filter in `_overflow_victims`, `_session` and `retractable`. Reuse `_mark_loaded`. Depends: `ARBORA-FLEET-R059.1`. | Test: `tests/fleet/test_pinned_session_loads.py::test_pinned_skip_lru_and_idle_expiry` (L2) planned in `test-spec.md`. Fill a session with 64 items, pin 3, load 5 more with `evict=lru` and advance the clock past the idle TTL. The 3 pinned items stay loaded.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_session_loads.py:16
ARBORA-FLEET-R059.3
Pins are stored durably, per principal, in the medulla store
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Pins are stored durably, per principal, in the medulla store.** Subsystem: fleet gateway. Code: `EgPinStore` in `arbora/fleet/pin_store.py`. It writes through the service-authorized engine client that `arbora/mcp_server/served_invocation.py:678` already composes for `EgPlanStore`, and adds no second database. It keys each record by tenant, principal and item id, using the same `tenant:principal` identity as `_session_key` (`arbora/mcp_server/fleet_composition.py:135`). Control leases are time-bound and the WebUI repository (`arbora/control_plane/webui/repository.py:283`) is in memory, so neither can hold a pin. The record kind is a medulla-owned per-principal record that medulla must file in its own specs. `InMemoryPinStore` serves fixtures only. A restart of arbora or the engine loses no pin. Caller chain: `MultiplexerOps.pin` → `PinStore.put`; `restore_pins` → `PinStore.list`; the store comes from the engine client composition at `arbora/mcp_server/served_invocation.py:678`. Shape: `EgPinStore(client)` in `arbora/fleet/pin_store.py` implementing `PinStore`. It reuses the `EgPlanStore` client wiring and adds no table of its own. Depends: `ARBORA-FLEET-R059.1`. | Test: `tests/fleet/test_pin_store.py::test_eg_pin_store_survives_a_new_client` (L3) planned in `test-spec.md`. A second store instance on the same loopback engine lists the first instance's pins and nobody else's.
requirementARBORA-FLEETVERIFIED0477d79baf0b
ddd9ea45ab03
tests/fleet/test_pin_store.py:171
tests/fleet/test_pin_store.py:231
ARBORA-FLEET-R059.4
Wiring: pin and unpin are `manage` operations; every session start restores pins
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring: pin and unpin are `manage` operations; every session start restores pins.** Subsystem: served operations. Add two `OpSpec` entries `fleet.tools.pin` and `fleet.tools.unpin` (verb `MANAGE`, effect `WRITE`, scope `mcp:delegate`, audit `EVENT`, surface MCP) after `arbora/api/ops/fleet.py:281`, with params `FleetPinParams{items: tuple[str,...] 1..32}` beside `FleetUnloadParams` (line 83). Add the two branches to `handle_fleet_operation` (line 143) calling `gateway.pin` and `gateway.unpin`, and `MultiplexerOps.pin/unpin` next to `load` (`multiplexer_ops.py:193`). `FleetUnloadParams` gains `include_pinned: bool = False`. Restore: `visible_names` (`arbora/api/mcp/registration.py:111`) calls `MultiplexerOps.restore_pins(caller, key)` before `revoke_invisible`. It reads the `PinStore`, re-checks each item through `_resolve_loadable_items` (`multiplexer_ops.py:296`) and loads the ones that pass. `FLEET_OPERATIONS` (`registration.py:28`) gains no entry. Caller chain: served `manage` intent tool → `dispatch_verb` (`arbora/api/mcp/verbs.py:317`) → `handle_fleet_operation` (`arbora/api/ops/fleet.py:143`) → `MultiplexerOps.pin`; on each request `visible_names` (`arbora/api/mcp/registration.py:111`) → `restore_pins`. Shape: `FleetPinParams` and two `OpSpec` entries in `arbora/api/ops/fleet.py`; `MultiplexerOps.pin/unpin/restore_pins` in `arbora/fleet/multiplexer_ops.py`. Reuse `FleetLoadParams` (line 77) and `_resolve_loadable_items`. Depends: `ARBORA-FLEET-R059.2`, `ARBORA-FLEET-R059.3`. | Test: `tests/fleet/test_pinned_loads_wiring.py::test_pin_op_is_a_manage_op_and_adds_no_resident_tool` (L3) planned in `test-spec.md`. The registry lists both ops under `manage`. The resident tool names stay the ten of `RESIDENT_NAMES`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_restore.py:43
tests/fleet/test_pinned_loads_wiring.py:18
ARBORA-FLEET-R059.5
Authority: a principal pins only what it may already load, and every call uses its own credential
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Authority: a principal pins only what it may already load, and every call uses its own credential.** Subsystem: fleet gateway. `MultiplexerOps.pin` requires `mcp:delegate` (`_require_delegate_scope`, `multiplexer_ops.py:36`) and resolves each item through `_resolve_loadable_items` (line 296), which applies the item scopes and `_loadable`. A pin is therefore never wider than a load by the same caller. `restore_pins` repeats the check with the caller's current scopes and policy. A pinned item that fails the check stays stored but unloaded, and `status` lists it as `suspended` with the refusal code. Pinning grants no authority. A call to a pinned tool takes the `fleet.call` path with the caller's delegated credential (`ARBORA-FLEET-R018`), and the pin never stores a token. Caller chain: served `manage` op `fleet.tools.pin` → `MultiplexerOps.pin` → `_require_delegate_scope` (`arbora/fleet/multiplexer_ops.py:36`) → `_resolve_loadable_items` (line 296). Shape: No new type. `MultiplexerOps.pin` and `restore_pins` in `arbora/fleet/multiplexer_ops.py` reuse `_loadable` and `item_binding`; the `suspended` entry is `{item_id, code}`. Depends: `ARBORA-FLEET-R059.4`. | Test: `tests/fleet/test_pinned_loads_authority.py::test_pin_needs_load_authority_and_call_uses_caller_credential` (L3) planned in `test-spec.md`. A caller without the item scope is refused. After a scope revocation the pin is suspended and the next call refuses.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_authority.py:33
ARBORA-FLEET-R059.6
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: fleet gateway. `fleet.tools.pin` returns `LOAD_CAP_EXCEEDED` with `cap: pinned` and the pinned list when the request exceeds `pinned_cap`. It returns `SCOPE_REQUIRED` without `mcp:delegate`, `NOT_FOUND` for an item that is missing or not loadable by the caller, `INVALID_ARGUMENT` for an empty or oversize `items`, `POLICY_DENIED` and `POLICY_UNAVAILABLE` from the policy decision, and `UNAVAILABLE` when the `PinStore` is unreachable. A store failure pins nothing and leaves the live session unchanged. `fleet.tools.unpin` of an item that is not pinned succeeds and reports it under `not_pinned`. All codes come from `ArboraErrorCode` (`arbora/api/errors.py:15`). Caller chain: served `manage` op `fleet.tools.pin` → `invoke` → `MultiplexerOps.pin`, which raises `OperationRefused` (`arbora/api/invoke/pipeline.py:111`) or `LoadCapExceeded` (`arbora/fleet/session_loads.py:10`). Shape: `LoadCapExceeded` gains a `cap` field set to `pinned` or `session` in `arbora/fleet/session_loads.py`. The code table stays `ArboraErrorCode`; no code is new. Depends: `ARBORA-FLEET-R059.5`. | Test: `tests/fleet/test_pinned_loads_authority.py::test_pin_refusals_carry_stable_codes` (L3) planned in `test-spec.md`. One case per code asserts the code and the HTTP status.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_authority.py:137
tests/fleet/test_pinned_loads_authority.py:84
tests/fleet/test_pinned_loads_restore.py:29
ARBORA-FLEET-R059.7
Evidence: `find` and `status` show pinned tools
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Evidence: `find` and `status` show pinned tools.** Subsystem: fleet gateway. `find_tools` (`multiplexer_ops.py:234`) sets `pinned: true` on each returned item the caller has pinned. `SessionLoads.status` (`session_loads.py:234`) adds `pinned_cap`, `pinned_used` and a `pinned` list, and `MultiplexerOps.status` (line 215) adds the `suspended` list from `.5`. `unload` results (line 398) report `skipped_pinned`. Caller chain: served `find` → `fleet.catalog.search` → `MultiplexerOps.find_tools` (`arbora/fleet/multiplexer_ops.py:234`); served `ask` → `fleet.status` → `MultiplexerOps.status` (line 215). Shape: One `pinned: bool` field on the item dict from `CatalogItem.public()` (`arbora/fleet/catalog_items.py`) and three keys in `SessionLoads.status`. No new type. Depends: `ARBORA-FLEET-R059.4`. | Test: `tests/fleet/test_pinned_loads_status.py::test_find_and_status_flag_pinned_items` (L3) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_status.py:69
ARBORA-FLEET-R059.8
Audit and admin view
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Audit and admin view.** Subsystem: served operations. Every pin and unpin is a `WRITE` op with audit class `EVENT`, so the invoke pipeline (`arbora/api/invoke/pipeline.py:404`, `:591`) writes one audit record with the caller, tenant, op id and parameter digest. Add the read op `fleet.pins.list` (verb `ASK`, effect `READ`, scopes `fleet:control` and `mcp:admin`) in `arbora/api/ops/fleet.py`. It pages every pin in the caller's tenant by principal through `PinStore.list_tenant`, and shows the suspended state. It never returns another tenant's pins. An admin removes a pin only through `fleet.tools.unpin` by the owning principal. Caller chain: served `manage` op `fleet.tools.pin` → `invoke` audit step (`arbora/api/invoke/pipeline.py:404`); served `ask` op `fleet.pins.list` → `handle_fleet_operation` → `PinStore.list_tenant`. Shape: `FleetPinsListParams{cursor, limit}` (the invoke pipeline refuses a caller-asserted `principal`, so an admin pages the tenant's pins and reads the principal off each row) and one `OpSpec` in `arbora/api/ops/fleet.py`. Reuse `AuditClass.EVENT` (`arbora/api/registry/spec.py:66`) and the paging fields of `FleetCatalogParams`. Depends: `ARBORA-FLEET-R059.4`. | Test: `tests/fleet/test_pinned_loads_admin.py::test_pin_audit_and_tenant_scoped_admin_view` (L3) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_admin.py:23
ARBORA-FLEET-R059.9
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Entry: the served `manage` intent tool over MCP, against a loopback engine. The test pins 2 tools, loads 70 more with `evict=lru`, advances the clock past the idle TTL and rebuilds the multiplexer to model a restart. Premise: both pinned tools stay loaded through eviction and expiry, and `restore_pins` reloads them after the rebuild. `find` flags both and `status` lists them. Unpin removes one. Caller chain: served `manage` intent tool over MCP → `dispatch_verb` → `handle_fleet_operation` → `MultiplexerOps.pin` → `SessionLoads` and `EgPinStore`. Shape: One test file `tests/fleet/test_pinned_loads_served.py` using the fixtures of `tests/fleet/catalog_fixture.py` and a loopback engine. Depends: `ARBORA-FLEET-R059.4`, `ARBORA-FLEET-R059.7`. | Test: `tests/fleet/test_pinned_loads_served.py::test_pin_survives_restart_and_eviction` (L4) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_pinned_loads_served.py:168
ARBORA-FLEET-R060
Every registered connector is multiplexed, and a coverage gate enforces it (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Every registered connector is multiplexed, and a coverage gate enforces it (rollup).** Subsystem: fleet onboarding. Entry: `multiplexer_status` (`fleet.status`) and the operator command `arbora-production-ops check-fleet-coverage`. Caller chain: `arbora/api/ops/fleet.py:143` (`handle_fleet_operation`) → `MultiplexerOps.status` (`arbora/fleet/multiplexer_ops.py:215`) → `arbora/fleet/coverage.py::check_fleet_coverage`. The org registry is the `connectors` group of `workspace.yml`, read from `platform_config_file("workspace.yml")` (`arbora/core/settings.py:64`). Children `.1` to `.5` deliver it. Depends: `ARBORA-FLEET-R026`, `ARBORA-FLEET-R041`. | Rollup. Its L3 proof is `tests/fleet/test_fleet_coverage_served.py::test_missing_and_empty_connectors_fail_status`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_fleet_coverage_served.py:211
ARBORA-FLEET-R060.1
Model and registry source
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Model and registry source.** Subsystem: fleet onboarding. Add frozen `RegisteredConnector{repo, server}` and `CoverageReport{registered, covered, missing, zero_tools, ok}` in `arbora/fleet/coverage.py`. `registered_connectors(path)` reads the `repositories` list of the group named `connectors` in the nested `subdirectories` tree of `workspace.yml`, takes each repo name from the entry's clone `url`, and maps it to its MCP server key by the entry's `mcp_server` field, else the repo name. A manifest with no `connectors` group raises `FleetCoverageError`, so an empty registry never passes the gate. The mapping needs the `mcp_server` field on the entries whose server key differs from the repo name, which the registry owner adds. Self-served connectors (`self_served_connectors`, `arbora/fleet/onboarding.py`) are excluded. The canonical source is `workspace.yml` because the human-edited manifest outranks the deployed MCP config, which `configured_fleet_endpoints` (`onboarding.py:142`) reads. Refusal: a missing or unparsable file raises `FleetCoverageError`. Caller chain: `production_ops` `check-fleet-coverage` and `MultiplexerOps.status` → `registered_connectors` (`arbora/fleet/coverage.py`) → `platform_config_file` (`arbora/core/settings.py:64`). Shape: `RegisteredConnector`, `CoverageReport` and `FleetCoverageError` in `arbora/fleet/coverage.py`. Reuse `self_served_connectors` from `arbora/fleet/onboarding.py`. Depends: none. | Test: `tests/fleet/test_fleet_coverage.py::test_registry_maps_repo_to_server_key` (L1) planned in `test-spec.md`.
requirementARBORA-FLEETVERIFIED7375c79be1b5
tests/fleet/test_fleet_coverage.py:51
ARBORA-FLEET-R060.2
Behavior: compare the registry with the catalog
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Behavior: compare the registry with the catalog.** Subsystem: fleet onboarding. `check_fleet_coverage(registered, endpoints, tool_counts)` returns `missing` for a registered server with no enabled endpoint or no admitted catalog entry, and `zero_tools` for a server whose catalog holds no item of kind `tool`. `tool_counts` comes from the new `FleetCatalog.tool_counts()` in `arbora/fleet/catalog_items.py:101`, which counts admitted `tool` items per server and starts no child. A server listed in `unadmitted_servers` (`arbora/fleet/multiplexer.py:7158`) counts as missing. The check is pure and reads no clock. Caller chain: `MultiplexerOps.status` → `check_fleet_coverage` → `configured_fleet_endpoints` (`arbora/fleet/onboarding.py:142`) and `FleetCatalog.tool_counts`. Shape: `check_fleet_coverage` in `arbora/fleet/coverage.py` and `FleetCatalog.tool_counts` in `arbora/fleet/catalog_items.py`. Reuse the `unadmitted` list of `FleetCatalogReader`. Depends: `ARBORA-FLEET-R060.1`. | Test: `tests/fleet/test_fleet_coverage.py::test_missing_and_zero_tool_servers_are_reported` (L2) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_fleet_coverage.py:131
ARBORA-FLEET-R060.3
Wiring: the served status and the operator command
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring: the served status and the operator command.** Subsystem: served operations. `MultiplexerOps.status` (`multiplexer_ops.py:215`) adds a `coverage` block built by `check_fleet_coverage`. `FleetStatusParams` (`arbora/api/ops/fleet.py:73`) gains `require_full_coverage: bool = False`. When it is true and `ok` is false, the handler raises `OperationRefused("UNAVAILABLE", {"missing": [...], "zero_tools": [...]})`. Add the `check-fleet-coverage` subcommand beside `onboard-fleet` (`arbora/deployment/production_ops.py:480`). It prints the report and exits non-zero when `ok` is false. Caller chain: served `ask` op `fleet.status` → `handle_fleet_operation` (`arbora/api/ops/fleet.py:143`) → `MultiplexerOps.status`; operator `arbora-production-ops check-fleet-coverage` → `_check_fleet_coverage`. Shape: `require_full_coverage` on `FleetStatusParams`, a `coverage` key in the status dict, and one subcommand in `arbora/deployment/production_ops.py`. Reuse the `onboard-fleet` argument parsing. Depends: `ARBORA-FLEET-R060.2`. | Test: `tests/fleet/test_fleet_coverage_served.py::test_status_reports_coverage_and_strict_mode_refuses` (L3) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_fleet_coverage_served.py:138
ARBORA-FLEET-R060.4
Refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Refusal.** Subsystem: fleet onboarding. A registered connector with no enabled endpoint reports `missing` with reason `no_endpoint`. One that is registered but not admitted reports `not_admitted`. One with zero admitted tools reports `zero_tools`. The strict status call returns `UNAVAILABLE` (HTTP 503) naming every offender, and never lists a healthy server. The check must not auto-disable, skip or hide an offender. Caller chain: `MultiplexerOps.status` → `OperationRefused` → the HTTP and MCP error mapping of `arbora/api/errors.py:15`. Shape: `CoverageReport.missing` is a list of `{server, reason}`. No new code: `UNAVAILABLE` (HTTP 503) carries the lists in its details. Depends: `ARBORA-FLEET-R060.3`. | Test: `tests/fleet/test_fleet_coverage_served.py::test_each_offender_reason_is_named` (L3) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_fleet_coverage_served.py:172
ARBORA-FLEET-R060.5
Hot-path proof
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Hot-path proof.** Entry: the served `fleet.status` over MCP with `require_full_coverage` true, against the fixture connectors of `tests/fleet/test_fleet_onboarding.py` and a fixture `workspace.yml` of four connectors. Premise: three connectors with tools pass. The fourth is first absent, then admitted with zero tools. The status call refuses each time and names the fourth. After it serves one tool the call succeeds. Caller chain: served `fleet.status` over MCP → `handle_fleet_operation` → `MultiplexerOps.status` → `check_fleet_coverage`. Shape: One test file `tests/fleet/test_fleet_coverage_served.py` reusing `tests/fleet/test_fleet_onboarding.py` fixtures and a fixture `workspace.yml`. Depends: `ARBORA-FLEET-R060.3`. | Test: `tests/fleet/test_fleet_coverage_served.py::test_missing_and_empty_connectors_fail_status` (L3) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDtests/fleet/test_fleet_coverage_served.py:211
ARBORA-FLEET-R061
A caller loads and unloads the tools of one connector group
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A caller loads and unloads the tools of one connector group.** Subsystem: fleet gateway. A connector that proxies several upstream applications marks each tool with a group, so a caller can load or unload one application without listing item IDs. Entry: the `load_tools` and `unload_tools` fleet tools, with the new argument `groups`, and the `find_tools` filter `groups`. Caller chain: `dispatch_verb` (`arbora/api/mcp/verbs.py:317`) → `handle_fleet_operation` (`arbora/api/ops/fleet.py:143`) → `MultiplexerOps` load and unload (`arbora/fleet/multiplexer_ops.py`) → `SessionLoads.load` (`arbora/fleet/session_loads.py:106`) and `SessionLoads.unload` (line 135). Shape: add `group: str | None = None` to `CatalogItem` (`arbora/fleet/catalog_items.py:21`). The catalog builder fills it from the tool metadata key `scion/upstream`, field `namespace`, and leaves it unset when the key is absent. Add `groups: tuple[str, ...] = ()` to `FleetCatalogParams`, `FleetLoadParams` (`arbora/api/ops/fleet.py:77`) and `FleetUnloadParams` (line 83). `FleetLoadParams.items` stays, and a load needs `items` or `groups`. A load by group resolves to the admitted tool items of the group that the caller may already load, then follows the same path as an item load. The load is atomic: it loads the whole group or none of it. An unload by group removes the loaded items of the group, and it skips pinned items (`ARBORA-FLEET-R059.2`). A group is a lowercase word of 2 to 24 letters and digits. Refusals: `FLEET_GROUP_INVALID` for another form, and the existing `LoadCapExceeded` when the group would pass the session cap of `ARBORA-FLEET-R018` (default 64, hard cap 256). An unknown group yields an empty result, not an error. Knobs: none; the session cap stays as it is. A group of about 170 tools fits only a session cap above 170. Depends: `ARBORA-FLEET-R018`, `ARBORA-FLEET-R059.2`, `SCION-CONNECTOR-CONTROL-R914.5`. | Test: `tests/fleet/test_group_load_unload.py::test_group_load_and_unload_by_namespace` (L3) planned in `test-spec.md`. A fixture connector marks tools of two groups. A load by group loads only that group and an unload by group leaves the other loaded. A pinned item survives the unload. A group larger than the cap refuses and loads nothing.
requirementARBORA-FLEETVERIFIEDf44909b8f479
tests/fleet/test_group_load_unload.py:166
tests/fleet/test_group_load_unload.py:76
ARBORA-FLEET-R062
Fleet discovery and fleet calls never hang while the fleet comes up
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet discovery and fleet calls never hang while the fleet comes up.** Subsystem: served intent surface. Entry: `find(intent=...)` and `act(op='fleet.call')`. Caller chain: `dispatch_verb` (`arbora/api/mcp/verbs.py`) → `find_visible` (`arbora/api/mcp/discovery.py`) → `_fleet_entries` → `LateFleetGateway.fleet_search` (`arbora/mcp_server/fleet_composition.py`); `invoke` → `_effective_op` (`arbora/api/invoke/pipeline.py`) → `LateFleetGateway.effect`; boot: `arbora/mcp_server/server.py` → `_start_engine_bootstrap` (`arbora/mcp_server/bootstrap.py`). Shape: the fleet search runs under the existing `MCP_DYNAMIC_DISCOVERY_TIMEOUT` budget (default 5 s). On timeout, or while the gateway is not bound, `find` returns the registry results it has with `fleet_partial: true` and `fleet: "timeout"` or `fleet: "not_ready"`. While the gateway is not bound, or the fleet effect authority does not answer inside the same budget, `fleet.call` refuses `UNAVAILABLE` at once with `reason: "fleet gateway is not ready"` and `retry_after_s: 5`. Boot waits for the engine `Health` answer for `ARBORA_ENGINE_READY_TIMEOUT` seconds (default 1500, inside the deployment startup-probe budget) instead of a fixed 120 s, so a slow engine delays readiness rather than exiting the process. Knobs: `MCP_DYNAMIC_DISCOVERY_TIMEOUT` (existing), `ARBORA_ENGINE_READY_TIMEOUT` (new). | Test: `tests/fleet/test_fleet_readiness_discovery.py::test_find_returns_partial_when_fleet_search_times_out`, `::test_find_flags_not_ready_gateway`, `::test_fleet_call_refuses_fast_with_retry_hint_when_not_ready`, `::test_engine_ready_wait_uses_configured_budget` (L2).
requirementARBORA-FLEETVERIFIED0680bf105a34
tests/fleet/test_fleet_readiness_discovery.py:104
tests/fleet/test_fleet_readiness_discovery.py:64
tests/fleet/test_fleet_readiness_discovery.py:80
tests/fleet/test_fleet_readiness_discovery.py:88
ARBORA-FLEET-R063
`find(op="catalog", params={"server": X})` lists one server's tools with their schemas
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**`find(op="catalog", params={"server": X})` lists one server's tools with their schemas.** Subsystem: served intent surface. Before this row the served `find` treated `catalog` as an exact registry operation id, matched nothing and skipped the fleet, so it returned `items: []`. Caller chain: `dispatch_verb` → `find_visible` (`arbora/api/mcp/discovery.py`) → `LateFleetGateway.fleet_catalog` (`arbora/mcp_server/fleet_composition.py`) → `FleetGateway.catalog` (`arbora/fleet/gateway_ops.py`) → `MCPMultiplexer.list_catalog` (`arbora/fleet/multiplexer.py`), the one per-server catalog handler. Shape: `find` with `op="catalog"` requires `mcp:discover` and returns `{"catalog": <list_catalog result>}`; each drilled-down tool row carries `input_schema` from the server's served tool list. No second catalog implementation. Refusals: `UNAVAILABLE` with `retry_after_s` while the gateway is not bound; `SCOPE_REQUIRED` without `mcp:discover`. Knobs: none. Depends: `ARBORA-FLEET-R062`. | Test: `tests/fleet/test_fleet_readiness_discovery.py::test_find_catalog_op_serves_list_catalog`, `::test_catalog_detail_rows_carry_input_schema` (L2).
requirementARBORA-FLEETVERIFIED0680bf105a34
tests/fleet/test_fleet_readiness_discovery.py:114
tests/fleet/test_fleet_readiness_discovery.py:143
tests/fleet/test_fleet_readiness_discovery.py:154
ARBORA-FLEET-R064
A fleet onboarding refusal names its engine operation and refusal code
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A fleet onboarding refusal names its engine operation and refusal code.** Subsystem: fleet onboarding. Entry: the boot onboarding pass and `arbora-production-ops onboard-fleet`. Caller chain: `FleetOnboardingService.run_pass` → `onboard_fleet` → `_onboard_all` → `FleetOnboarding.onboard` (`arbora/fleet/onboarding.py`). Shape: each engine step of `onboard` (`ConnectorPackStatus`, attest and import, contract registration, catalog write) is labelled. A failure is recorded and logged as `<connector>: <step> refused <CODE>: <detail>`, where `CODE` is the engine refusal code the response carried (`EngineResponseError.code`), never folded into a generic message. An engine refusal the engine itself could not classify (`INTERNAL: unclassified engine refusal`) is reported with `step` and `code=INTERNAL` and the hint `engine-side classification gap`, so the owner of the store is named. Knobs: none. Depends: `MEDULLA` connector-pack store refusal classification (filed for medulla). | Test: `tests/fleet/test_fleet_readiness_discovery.py::test_onboarding_failure_names_step_and_engine_code` (L2).
requirementARBORA-FLEETVERIFIED0680bf105a34
tests/fleet/test_fleet_readiness_discovery.py:172
ARBORA-FLEET-R065
Engine, discovery and fleet report health on their own
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Engine, discovery and fleet report health on their own.** Subsystem: served intent surface and observability. A wedge in one subsystem is visible as that subsystem, never as "MCP down". Caller chain: every served verb → `dispatch_verb` (`arbora/api/mcp/verbs.py`) → `track(classify(verb, op))` (`arbora/observability/subsystem_health.py`); `GET /health/subsystems` (`arbora/mcp_server/runtime.py`) → `snapshot`. Shape: `classify` maps `find` to `discovery`, any `fleet.*` op to `fleet`, and every other verb and op to `engine`. Each subsystem reports `ok`, `degraded` (more than half of its last 50 calls refused or raised) or `wedged` (a call in flight longer than 30 s), with `in_flight`, `oldest_in_flight_s`, `recent_failures` and `recent_p99_s`. Metrics: `arbora_subsystem_up{subsystem}`, `arbora_subsystem_in_flight{subsystem}`, `arbora_subsystem_call_duration_seconds{subsystem,outcome}`. The route is unauthenticated for probes and returns states and counts only; 503 when any subsystem is not `ok`. It is not a liveness probe. Knobs: none. Depends: `ARBORA-FLEET-R062`. | Test: `tests/fleet/test_subsystem_health.py::test_classify_maps_verbs_to_subsystems`, `::test_wedged_subsystem_is_reported_alone`, `::test_degraded_after_refusals` (L2).
requirementARBORA-FLEETVERIFIED312a1f12460c
tests/fleet/test_subsystem_health.py:24
tests/fleet/test_subsystem_health.py:32
tests/fleet/test_subsystem_health.py:44
ARBORA-FLEET-R066
Parallel find and act calls do not hang under load
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Parallel find and act calls do not hang under load.** Subsystem: served intent surface. Entry: operator probe `scripts/load_find_act.py`. Caller chain: `scripts/load_find_act.py::main` → `run` → served MCP `find` and `act` → `dispatch_verb` (`arbora/api/mcp/verbs.py`) → `find_visible` and `invoke`; verdict from `summarize`. Shape: 20 parallel workers alternate `find(intent=...)` and `act(op="fleet.call")` for 120 s against a deployed endpoint. Each call has a 60 s deadline; a call past it counts as a hang. The verdict holds when there are zero hangs and the overall p99 is at most 10 s. The report gives per-kind counts, outcomes and p50/p95/p99/max. Knobs: `--workers`, `--seconds`, `--call-timeout-s`, `--p99-bound-s`. Depends: `ARBORA-FLEET-R062`, `ARBORA-FLEET-R065`. | Test: `tests/fleet/test_subsystem_health.py::test_load_summary_verdict` (L2); live evidence from a run against the deployed release.
requirementARBORA-FLEETVERIFIED312a1f12460c
tests/fleet/test_subsystem_health.py:57
ARBORA-FLEET-R067
The verified fleet snapshot lands even when every caller deadline is shorter than one full read
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The verified fleet snapshot lands even when every caller deadline is shorter than one full read.** Subsystem: fleet catalog. Entry: every `find(intent=...)` fleet half, `find(op="catalog")` and `act(op="fleet.call")` admission, which read the verified fleet catalog under the discovery budget (`ARBORA-FLEET-R062`). On a real fleet one full verified read takes longer than that budget, so a read the caller's deadline cancelled never cached and the fleet answered `UNAVAILABLE` forever. The reader owns one shared read per exact read context: a caller waits on it shielded, so its deadline never cancels the read, and the result is cached for `ARBORA_FLEET_CATALOG_TTL_S`. A snapshot past its TTL is still served, while one refresh runs, up to three TTLs old; past that a caller waits for the fresh read. A failed refresh is logged and leaves the last snapshot. Caller chain: `FleetGateway.effect` and `.search` (`arbora/fleet/gateway_ops.py`) → `MultiplexerOps.admitted_tool` / `FleetCatalog.search` → `CombinedFleetSource` (`arbora/fleet/catalog_sources.py`) → `FleetCatalogReader.read` (`arbora/fleet/catalog_reader.py`). Shape: `arbora/fleet/catalog_reader.py` only; no new store. | `tests/test_fleet_catalog_reader.py::test_a_caller_deadline_never_cancels_the_shared_snapshot_read` cancels a caller mid-read and finds that the read still lands and serves the next caller from one EG read. `::test_a_stale_snapshot_is_served_while_one_refresh_runs` finds that an expired snapshot answers at once while exactly one refresh runs, and that the refresh replaces it.
requirementARBORA-FLEETVERIFIEDd872c29ec986
tests/test_fleet_catalog_reader.py:365
tests/test_fleet_catalog_reader.py:385
ARBORA-FLEET-R068
A child's `tools/list` is followed to its last page
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A child's `tools/list` is followed to its last page.** Subsystem: fleet multiplexer. Entry: every place arbora lists a child's tools: the catalog probe (`MCPMultiplexer.probe_server`), a child generation's connect (`_start_child`), the `list_changed` refresh (`_child_message_handler`) and the OAuth-gated admission (`_assert_oauth_tool_admitted`). Before this row each read only the first page and ignored `nextCursor`, so a paginating connector showed a fraction of its tools. Arbora reads cursor by cursor until a page has no `nextCursor`; there is no page-count bound, and the probe's own deadline bounds the time. A failed page fetch or a repeated cursor refuses the listing whole with the typed `FleetCatalogPageError`; a partial catalog is never returned, so a connector never silently loses tools. The probe records the error, the last good catalog keeps serving, and the primer retries after its window (`ARBORA-FLEET-R070`). Caller chain: those four entries → `_list_all_tools` → `_list_page` (`arbora/fleet/multiplexer.py`) → `ClientSession.list_tools(params=PaginatedRequestParams(cursor=...))`. Shape: two helpers in `arbora/fleet/multiplexer.py`; no new module. | `tests/fleet/test_large_tool_catalogs.py::test_tools_list_is_followed_to_its_last_page` reads three pages in order. `::test_a_repeated_cursor_refuses_the_listing_whole` and `::test_a_failed_page_refuses_the_listing_typed_never_partial` refuse with the typed error. `::test_a_real_paginating_server_is_read_over_the_wire` reads all 450 tools of a FastMCP server with a page size of 100 over the MCP session.
requirementARBORA-FLEETVERIFIED4e4b04d8c44c
84a3ae6e3277
tests/fleet/test_large_tool_catalogs.py:389
tests/fleet/test_large_tool_catalogs.py:73
tests/fleet/test_large_tool_catalogs.py:82
tests/fleet/test_large_tool_catalogs.py:89
tests/fleet/test_large_tool_catalogs.py:97
ARBORA-FLEET-R068.1
Every list family pages, not only tools
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Every list family pages, not only tools.** Subsystem: fleet multiplexer. Child of `ARBORA-FLEET-R068`. The probe's `resources/list`, `resources/templates/list` and `prompts/list` reads (`MCPMultiplexer._probe_protocol_families`, `_probe_resource_family`) follow `nextCursor` to the last page exactly as tools do. A failed continuation page or a repeated cursor refuses that family whole with `FleetCatalogPageError`, recorded in the probe's `catalog_family_errors`; a first-page failure keeps its own error, so a family the child does not implement still reads as not served. Caller chain: `probe_server` → `_probe_protocol_families` → `_list_all` → `_list_page` (`arbora/fleet/multiplexer.py`). Shape: `_list_all(session, method, field)` is the one paged lister; `_list_all_tools` delegates to it. | `tests/fleet/test_large_tool_catalogs.py::test_prompts_resources_and_templates_page_like_tools` reads 25 prompts over three pages.
requirementARBORA-FLEETVERIFIED4e4b04d8c44c
tests/fleet/test_large_tool_catalogs.py:389
ARBORA-FLEET-R069
No per-connector tool cap
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**No per-connector tool cap.** Subsystem: fleet multiplexer. A connector that serves one tool per upstream operation lists thousands of tools (9,011 for one live connector; 10,000 and more must work). The old fixed bound of 2,048 tools and the aggregate catalog bound (4,096 entries, 4 MiB) refused such a catalog, so its probe failed and fleet calls to its newer tools were refused `UNAVAILABLE`. There is no count bound and no configurable ceiling: a cap contradicts dynamic tool loading. Each tool descriptor is bounded on its own (names, schemas, nesting, 4 MiB), so a hostile descriptor is still refused. The catalog of record is the engine: onboarding imports the whole captured pack, and `find` searches the engine catalog joined with the probe (`CombinedFleetSource`). MCP clients see tools by progressive discovery (`fleet.tools.load` and `tools/list_changed`), never one giant list. Resource and prompt listings keep their fixed bound. Caller chain: `_list_all_tools` → `_bounded_tool_catalog` (`arbora/fleet/multiplexer.py`). Shape: `arbora/fleet/multiplexer.py` only; `_bounded_tool_catalog` validates each descriptor with the existing `_assert_bounded_json_value`; the fixed tool constant is deleted and resources and prompts use `_MAX_DISCOVERED_DESCRIPTORS`. | `tests/fleet/test_large_tool_catalogs.py::test_a_catalog_past_the_old_fixed_cap_is_admitted_whole` admits 9,011 tools. `::test_a_paged_catalog_of_twenty_thousand_tools_is_admitted_whole` reads 20,000 tools over 40 pages and admits them all.
requirementARBORA-FLEETVERIFIED84a3ae6e3277
tests/fleet/test_large_tool_catalogs.py:121
tests/fleet/test_large_tool_catalogs.py:127
ARBORA-FLEET-R070
A connector's catalog refreshes without an arbora restart
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A connector's catalog refreshes without an arbora restart.** Subsystem: fleet catalog. Three triggers. (1) A child `notifications/tools/list_changed` (or prompts/resources): arbora re-lists the child to its last page, publishes the list to a mounted child's served tools, drops its cached probe so the next read re-probes, and announces the handshake so onboarding re-imports a changed pack into the engine. (2) Periodic: a cached probe past `MCP_CATALOG_PROBE_TTL` is served while one background re-probe runs, throttled per server. Before this row a probed server was never re-probed while arbora ran. (3) Explicit: `manage(op="fleet.catalog.refresh", params={"servers": [...]})` (scope `fleet:control`, 1 to 32 servers) re-probes each server now, re-lists a mounted child, re-onboards a changed catalog, and answers each server's tool count and error. A server is re-read at most once per 60 s retry window. A failed re-probe is logged and leaves the last good probe. Caller chain: `handle_fleet_operation` (`arbora/api/ops/fleet.py`) → `FleetGateway.catalog_refresh` (`arbora/fleet/gateway_ops.py`) → `MultiplexerOps.refresh_catalog` (`arbora/fleet/multiplexer_ops.py`) → `ProbePrimer.refresh` (`arbora/fleet/catalog_composition.py`) → `MCPMultiplexer.probe_server(force=True)`. Shape: `ProbePrimer` in `arbora/fleet/catalog_composition.py` replaces the `probe_primer` closure (the function stays as its constructor) and reuses `MCPMultiplexer._probe_cache_hit` for the TTL; `FleetCatalogRefreshParams` and the op in `arbora/api/ops/fleet.py`; `MCPMultiplexer._publish_live_tools` and `_relist_live_child` reuse `_admit_runtime_policy_tools`, `_refresh_child_tools` and `_announce_handshake`. | `tests/fleet/test_large_tool_catalogs.py::test_a_stale_probe_is_served_while_one_background_reprobe_runs`, `::test_a_failed_reprobe_keeps_the_last_good_catalog`, `::test_the_explicit_refresh_reprobes_now_and_is_throttled`, `::test_the_explicit_refresh_refuses_a_bad_server_list`, `::test_the_refresh_op_is_a_control_scoped_manage_op`; `tests/fleet/test_handshake_onboard.py::test_list_changed_notification_recaptures_through_the_one_pass` finds the changed child's probe dropped.
requirementARBORA-FLEETVERIFIED4e4b04d8c44c
84a3ae6e3277
tests/fleet/test_large_tool_catalogs.py:165
tests/fleet/test_large_tool_catalogs.py:185
tests/fleet/test_large_tool_catalogs.py:196
tests/fleet/test_large_tool_catalogs.py:216
tests/fleet/test_large_tool_catalogs.py:227
ARBORA-FLEET-R070.1
A refresh drops what the server stopped serving
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A refresh drops what the server stopped serving.** Subsystem: fleet catalog. Child of `ARBORA-FLEET-R070`. The served catalog joins the engine's pack items with the latest probe. Before this row the join only added: a tool, prompt or skill a connector release removed stayed listed and admitted from the older pack until onboarding re-imported it. A good probe is now the server's whole current set of each family it answered: an engine item of that server and kind the probe does not list is dropped. Tools are answered by any probe without an `error`; prompts and skills only when their family carries no `catalog_family_errors` entry. Resources are not pruned this way: the engine names a pack resource by its entry name and the probe by its URI, so a missing probe row does not prove a withdrawal; onboarding's pack import withdraws them. A failed probe drops nothing. Caller chain: `CombinedFleetSource` → `_merge_probed_items` → `_drop_unserved` (`arbora/fleet/catalog_sources.py`). Shape: `_AUTHORITATIVE_FAMILIES`, `_answered_kinds` and `_drop_unserved` in `arbora/fleet/catalog_sources.py`; reuse `items_from_child_probe`. | `tests/fleet/test_large_tool_catalogs.py::test_a_refresh_drops_tools_prompts_and_skills_the_server_no_longer_serves` keeps the new and retained items and drops the removed ones, and keeps the engine's resource. `::test_a_failed_family_or_probe_drops_nothing`.
requirementARBORA-FLEETVERIFIED4e4b04d8c44c
tests/fleet/test_large_tool_catalogs.py:415
tests/fleet/test_large_tool_catalogs.py:441
ARBORA-FLEET-R071
`fleet.call` authority is the current catalog
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**`fleet.call` authority is the current catalog.** Subsystem: fleet gateway. Entry: `act(op="fleet.call")`. Before this row a tool a connector added after its first probe was refused `fleet tool is unavailable` until arbora restarted. When the admitted catalog holds no item for the called tool, arbora re-reads that server once (`ProbePrimer.refresh`, throttled per server) and looks again; only a tool still absent is refused. The refusal and every other admission check are unchanged. Caller chain: `FleetGateway.effect` → `MultiplexerOps.admitted_tool` → `MultiplexerOps._tool_item` → `FleetCatalog._raw_get`. Shape: `arbora/fleet/multiplexer_ops.py` gains the optional `refresh` hook (type `Refresh`), bound by `compose_multiplexer_ops` to the same `ProbePrimer.refresh` as `ARBORA-FLEET-R070`. | `tests/fleet/test_large_tool_catalogs.py::test_a_tool_new_since_the_cached_probe_is_callable_without_restart` admits a tool added after the first probe. `::test_an_unknown_tool_is_refused_after_one_throttled_refresh` refuses an absent tool three times with one refresh.
requirementARBORA-FLEETVERIFIED84a3ae6e3277
tests/fleet/test_large_tool_catalogs.py:274
tests/fleet/test_large_tool_catalogs.py:287
ARBORA-FLEET-R072
The served catalog takes each tool's contract from the engine
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The served catalog takes each tool's contract from the engine.** Subsystem: fleet catalog. Child of `ARBORA-FLEET-R069`. Before this row an engine tool item carried a name and summary only; its input schema and behaviour hints came from the live probe, so a connector whose probe failed served every tool with an empty schema, and every read-only tool resolved as a write. The engine holds the whole imported pack: each tool's content body carries its input schema, and its entry's tool facts carry the declared hints (read-only, destructive, idempotent, open world). The catalog reader projects the hints into `ComponentRecord.tool_hints`; `items_from_eg_catalog` fills each tool item's schema, schema fingerprint and annotations from them. A live probe of the same tool still refines it, and a field the probe lacks keeps the engine's value. Caller chain: `FleetCatalogReader` → `GeneratedFleetCatalogPort._component` (`arbora/fleet/epistemic_adapter.py`) → `items_from_eg_catalog` (`arbora/fleet/catalog_items.py`) → `CombinedFleetSource` → `_merge_probed_item` (`arbora/fleet/catalog_sources.py`). Shape: one optional field on `ComponentRecord` (`arbora/fleet/catalog_reader.py`); helpers `_tool_hints`, `_engine_input_schema` and `_with_engine_tool_contract`; reuse `compute_schema_fingerprint`. | `tests/fleet/test_large_tool_catalogs.py::test_engine_tool_facts_project_to_mcp_hints`, `::test_an_engine_tool_item_has_its_schema_and_read_effect_without_a_probe`, `::test_a_probe_without_hints_keeps_the_engine_contract`.
requirementARBORA-FLEETVERIFIEDbb45acf66c2e
tests/fleet/test_large_tool_catalogs.py:328
tests/fleet/test_large_tool_catalogs.py:345
tests/fleet/test_large_tool_catalogs.py:357
ARBORA-FLEET-R073
Process-resident catalog state is flat in catalog size
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Process-resident catalog state is flat in catalog size.** Subsystem: fleet catalog. Residual of `ARBORA-FLEET-R069` after `ARBORA-FLEET-R072`. Two process copies still grow with the largest connector: the probe cache holds each probed connector's full tool rows, and `FleetCatalogReader` caches every component content body of the snapshot. Target: the probe keeps per-server and per-tool digests and probe times only; `find`, `fleet.call` admission and `find(op="catalog")` read tool pages from the engine by server and name; the multiplexer's own readers of probe tool rows (`list_catalog` detail, discovery ranking, the registry export) read the same engine pages. Cross-repo seam: an engine component search filtered by server and name that returns entry facts without content, with content read per item on demand (to be filed in the engine's specs). Caller chain: `MCPMultiplexer.probe_server` → engine catalog import (`ARBORA-FLEET-R041`); `FleetCatalog.search` / `_raw_get` → `FleetCatalogReader`. Shape: no second store; the engine is the catalog. | Planned: `tests/fleet/test_large_tool_catalogs.py::test_probe_memory_is_flat_in_catalog_size` probes connectors of 1,000 and 50,000 tools and finds the process-resident catalog state the same size.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R074
`find` ranks a large fleet by the request's discriminating words
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**`find` ranks a large fleet by the request's discriminating words.** Subsystem: fleet discovery. Entry: the served `find(intent=...)` fleet half (`MCPMultiplexer.discover_tools`), which ranks every probed tool and skill row against the request. Its lexical backbone was a plain overlap ratio: each query word counted alike, stopwords included, and `requests` did not match `request`. On a fleet of tens of thousands of tools, rows that shared the request's common words ("list", "media", "in") outranked the tool that names the asked-for system and object. The backbone is now a per-call ranker over that call's candidates: stopwords are dropped, plurals fold to their singular, each query term is weighted by its rarity among the candidates, and a match in the candidate's own name counts double. Semantic scores from the graph still add on top. Caller chain: `discover_tools` → `_discovery_ranker` → `_ranked_tool_entry` / `_ranked_skill_entry` → `MCPMultiplexer._lexical_score` → `LexicalRanker.score` (`arbora/fleet/discovery_ranking.py`). Shape: one module `arbora/fleet/discovery_ranking.py` (`LexicalRanker`, `terms`); `_DiscoveryRanking` gains the optional `lexical` ranker; `_relevance` stays the fallback when no ranker is built. | `tests/fleet/test_large_tool_catalogs.py::test_find_ranks_the_named_system_and_object_first_in_a_large_catalog` ranks `seerr_get_requests` and `seerr_get_request_count` first for "list pending media requests in seerr" among 1,449 tools where the plain ratio ranks a generic queue tool first.
requirementARBORA-FLEETVERIFIED4e4b04d8c44c
tests/fleet/test_large_tool_catalogs.py:482
ARBORA-FLEET-R075
A slow tool's call deadline is not the connect budget
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A slow tool's call deadline is not the connect budget.** Subsystem: fleet multiplexer. Entry: `act(op="fleet.call")` and every pooled child call. Before this row the per-call `fleet.call` path took its deadline from the server's `timeout`, which is the connect and handshake budget (15 s in the fleet config), with a 30 s default; `call_timeout` was never read, and the engine-sourced child config dropped it. A tool that answers in about 65 s (200 glossary terms) failed `MCPChildTimeout`. The call deadline is now the call's own deadline, else the server's `call_timeout`, else 300 s; `timeout` never caps a call. The pooled `ChildRuntime` uses the same order. A server's `call_timeout` comes from the connector's declared server config (now admitted as an engine config field) and is overridden by the operator's per-server `call_timeout` in the deployment's MCP config. An out-of-range value is refused at call time, never clamped. The invoke pipeline's dispatch deadline (320 s) stays above the 300 s ceiling. Extending a deadline on progress notifications is not covered. Caller chain: `FleetGateway.call` → `oauth_delegated_call_for_mux` → `MCPMultiplexer.call_admitted_child_once` → `_call_service_child_once` → `_child_call_timeout`; `refresh_engine_catalog` → `_operator_call_timeouts`; `ChildRuntime.__init__` (`arbora/fleet/child_resilience.py`). Shape: `arbora/fleet/multiplexer.py` (`_DEFAULT_CHILD_CALL_TIMEOUT_S`, `_operator_call_timeouts`, `call_timeout` in `_ENGINE_CONFIG_FIELDS`) and one fallback in `arbora/fleet/child_resilience.py`. | `tests/fleet/test_large_tool_catalogs.py::test_the_call_deadline_ignores_the_connect_budget`, `::test_a_call_slower_than_the_connect_budget_completes`, `::test_the_operator_call_timeout_reaches_the_child`.
requirementARBORA-FLEETVERIFIED8a5c48b81a61
tests/fleet/test_large_tool_catalogs.py:505
tests/fleet/test_large_tool_catalogs.py:521
tests/fleet/test_large_tool_catalogs.py:541
ARBORA-FLEET-R076
Connector prompts come through complete
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connector prompts come through complete.** Subsystem: fleet catalog and prompt relay. arbora builds agents from connector prompts. A connector carries a prompt's role, goal, topic, tone, style, version and agent definition in its `prompts/list` `_meta`, with a `title` and declared `arguments`; the rendered `prompts/get` result holds the directive, and may hold resource links, embedded resources or images. Before this row a prompt item kept only name and description, and the relay kept only text blocks and dropped the result's `_meta`. A prompt item now keeps `title`, `arguments` and `_meta` whole (`CatalogItem.details`, shown by `fleet.prompts.list`), and its declared arguments become its schema, so a required argument is enforced (`ARBORA-OPS-R009.4`). `fleet.prompts.get` returns every message with its whole content block (a text block also keeps its flat `text`), the result's `_meta`, and the listed title, arguments and role `_meta` merged in (rendered `_meta` keys win). Bounded by the delegated value boundary. Caller chain: `items_from_child_probe` → `_probed_item` → `prompt_details` / `prompt_argument_schema` (`arbora/fleet/catalog_items.py`) → `_merge_probed_item` (`arbora/fleet/catalog_sources.py`); `FleetGateway.prompts_get` → `MCPMultiplexer.get_server_prompt` → `_relayed_prompt_message` → `_with_listed_details` (`arbora/fleet/gateway_ops.py`). Shape: one optional `details` field on `CatalogItem`; helpers in `catalog_items.py`, `multiplexer.py` and `gateway_ops.py`. | `tests/fleet/test_large_tool_catalogs.py::test_a_listed_prompt_keeps_its_title_arguments_and_role_meta`, `::test_a_rendered_prompt_keeps_every_content_block_and_the_role_meta`.
requirementARBORA-FLEETVERIFIEDc7c51eba3a0b
tests/fleet/test_large_tool_catalogs.py:568
tests/fleet/test_large_tool_catalogs.py:592
tests/fleet/test_large_tool_catalogs.py:621
tests/fleet/test_large_tool_catalogs.py:642
ARBORA-FLEET-R076.1
A skill's supporting files read under its resource template
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A skill's supporting files read under its resource template.** Subsystem: fleet resource relay. Child of `ARBORA-FLEET-R076`. A connector built the fastmcp way (its skills directory provider) lists `skill://<name>/SKILL.md` and `skill://<name>/_manifest` and serves every other file of the skill through the `skill://<name>/{path*}` resource template. `fleet.resources.read` admitted only a listed item, so a supporting file read as `NOT_FOUND`. A URI that is not a listed item is now admitted when it expands one of the server's admitted resource templates (`{name}` is one path segment, `{name*}` the rest); a URI with a `.` or `..` segment never matches. The template's own visibility and load policy apply. Caller chain: `FleetGateway.resources_read` → `MultiplexerOps.admitted_surface_item` → `_template_for` → `template_matches` (`arbora/fleet/multiplexer_ops.py`). Shape: two helpers in `arbora/fleet/multiplexer_ops.py`; reuse `FleetCatalog.search` and `.get`. | `tests/fleet/test_large_tool_catalogs.py::test_a_skill_file_uri_reads_under_its_template`, `::test_a_templated_skill_file_is_admitted_and_traversal_is_not`.
requirementARBORA-FLEETVERIFIEDc7c51eba3a0b
tests/fleet/test_large_tool_catalogs.py:621
tests/fleet/test_large_tool_catalogs.py:642
ARBORA-FLEET-R077
A confirmed destructive call is confirmed; a cancelled one is never ok
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**A confirmed destructive call is confirmed; a cancelled one is never ok.** Subsystem: fleet gateway. Entry: `act(op="fleet.call")`. A connector's destructive tool asks for a live MCP confirmation (`elicitation/create`) or declares a boolean `confirm` argument, and answers `{"cancelled": true}` without one. Before this row the per-call `fleet.call` sessions were never armed for the plan confirmation of `ARBORA-FLEET-R015.2` (only pooled sessions were), so every elicitation was declined, and a cancelled result was returned as `ok`. Now: the dedicated call session is armed exactly like a pooled one; a tool whose schema declares a boolean `confirm`, or whose child already cancelled an unconfirmed call in this process, is classified destructive, so its call is previewed and dispatched only under a consumed plan; under that plan a declaring tool gets `confirm=true` when the caller did not set it; and a cancelled child result raises the typed `CONFIRMATION_REQUIRED` refusal naming the plan step (call again without `execute` for a `plan_ref`, then resubmit with `execute=true`). The learned set is per process and bounded (4,096 tools). Caller chain: `FleetGateway.effect` / `.call` → `annotation_effect(confirming=...)` → `_confirmed_arguments` → delegated or service call → `_refuse_cancelled` (`arbora/fleet/gateway_ops.py`); `MCPMultiplexer._invoke_oauth_tool` → `armed` (`arbora/fleet/plan_confirmation.py`). Shape: `AdmittedTool.confirm_argument`; helpers in `gateway_ops.py`; `plan_confirmed` in `plan_confirmation.py`. | `tests/fleet/test_large_tool_catalogs.py::test_a_cancelled_child_result_is_a_typed_confirmation_refusal`, `::test_a_confirm_argument_tool_is_planned_and_confirmed_under_its_plan`, `::test_the_ephemeral_call_path_arms_its_session`.
requirementARBORA-FLEETVERIFIEDc7c51eba3a0b
tests/fleet/test_large_tool_catalogs.py:683
tests/fleet/test_large_tool_catalogs.py:707
tests/fleet/test_large_tool_catalogs.py:738
ARBORA-FLEET-R078
arbora serves while the catalog warms; an engine timeout never exits the process
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**arbora serves while the catalog warms; an engine timeout never exits the process.** Subsystem: fleet catalog and process boot. Entry: the served process boot (`arbora.mcp_server.server.mcp_server`). Before this row boot ran `compose_catalog_authorities` (semantic-content proof through `ConnectorPack` status, then the verified fleet catalog read and the multiplexer refresh) synchronously before binding its port. On a busy store one engine call took minutes; its `TimeoutError` escaped `asyncio.run` and exited the process, and the restarted pod waited on the same call, so arbora served nothing for over 30 minutes. Boot now binds and serves at once: `_start_catalog_warmup` composes the catalog authorities, and then starts fleet onboarding, on a background thread under the process session, inside a temporary engine client scope so the warm-up loop never claims the serving loop's pooled clients (the onboarding thread's rule, `ARBORA-FLEET-R041.18`). A failed attempt of any kind is logged and retried with a backoff doubling from 5 s to 300 s; no error leaves the thread. A retried composition keeps the reader its first attempt installed. Until the catalog is installed, every fleet catalog read raises the typed, retryable `UNAVAILABLE` refusal with `reason: "catalog warming"` and `retry_after_s` (`ARBORA-FLEET-R062`'s fast refusal family). `/health` is live at once; `/health/ready` reports `catalog: {status, attempts, last_error}` with status `warming`, `retrying`, `ready` or `stopped` (class names only), and the catalog never gates readiness. Caller chain: `mcp_server` → `_start_catalog_warmup` → `start_catalog_warmup` → `CatalogWarmup.run` (`arbora/mcp_server/catalog_warmup.py`) → `compose_catalog_authorities` → `start_fleet_onboarding`; `DeferredFleetCatalogReader.read` (`arbora/fleet/catalog_reader.py`); the readiness route (`arbora/mcp_server/runtime.py`). Shape: one module `arbora/mcp_server/catalog_warmup.py` (`CatalogWarmup`, `catalog_state`, `start_catalog_warmup`); `DeferredFleetCatalogReader.installed`. | `tests/mcp_server/test_catalog_warmup.py::test_an_engine_timeout_is_retried_and_never_escapes`, `::test_a_retrying_warmup_reports_its_typed_state_and_stops`, `::test_a_catalog_read_before_install_is_a_retryable_refusal`, `::test_boot_returns_while_the_catalog_composition_is_still_running`, `::test_the_warmup_composes_inside_its_own_client_scope`.
requirementARBORA-FLEETVERIFIED3328458fdf14
9797095f4678
b50743a085f5
tests/mcp_server/test_catalog_warmup.py:102
tests/mcp_server/test_catalog_warmup.py:142
tests/mcp_server/test_catalog_warmup.py:168
tests/mcp_server/test_catalog_warmup.py:18
tests/mcp_server/test_catalog_warmup.py:39
ARBORA-FLEET-R080
Connector onboarding handshake is an explicit state machine (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connector onboarding handshake is an explicit state machine (rollup).** Subsystem: fleet onboarding. Entry: the multiplexer handshake and the background onboarding service. Each connector has one onboarding state: `Idle`, `Debouncing`, `Running`, `Backoff`, `AwaitingApproval` or `Failed`. The machine has no terminal state, because `Failed` leaves on the slow-retry edge. It replaces the `handshake[connector]` dict of strings and the substring test for a held mass withdrawal. Children `.1` to `.4` deliver it. It refines `ARBORA-FLEET-R041.4` and `ARBORA-FLEET-R028`. Depends: `ARBORA-FLEET-R080.1`, `ARBORA-FLEET-R080.2`, `ARBORA-FLEET-R080.3`, `ARBORA-FLEET-R080.4`, `ARBORA-IDENTITY-R027.3`. | Root journey: `tests/fleet/test_onboarding_machine.py::test_identity_provider_blip_does_not_strand_connectors` (L3, planned). Children pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R080.1
Onboarding state model, transition function and typed refusals
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Onboarding state model, transition function and typed refusals.** Subsystem: fleet onboarding. Caller chain: `FleetOnboarding._record` (`arbora/fleet/onboarding.py:1223`) and `onboard_fleet` (`:849`) call `transition`. Rule: the closed states are `Idle`, `Debouncing`, `Running`, `Backoff`, `AwaitingApproval` and `Failed`; none is terminal. The closed events are `registered`, `debounce_elapsed`, `retry_elapsed`, `pass_ok`, `pass_err`, `held`, `approved` and `authority_live`. Guards: `attempts_left` (attempts below `max_attempts`) and `lease_live` (the lease of `ARBORA-IDENTITY-R027.1` is `Live`). Transition table, 11 legal edges: `Idle` to `Debouncing` on `registered`; `Debouncing` to `Debouncing` on `registered` (coalesce); `Debouncing` to `Running` on `debounce_elapsed`; `Running` to `Running` on `registered` (join); `Running` to `Idle` on `pass_ok`; `Running` to `Backoff` on `pass_err` when `attempts_left`; `Running` to `Failed` on `pass_err` when not `attempts_left`; `Running` to `AwaitingApproval` on `held`; `Backoff` to `Running` on `retry_elapsed`; `AwaitingApproval` to `Running` on `approved`; `Failed` to `Backoff` on `authority_live` when `lease_live`. The machine refuses every other pair and every legal pair whose guard fails. The persisted field is `OnboardingRecord.state: OnboardingState`, stored per connector in `FleetOnboarding.handshake` (`arbora/fleet/onboarding.py:327`, today a dict of strings). `attempts` and `last_error` are data, not state. One function, `transition` in `arbora/fleet/onboarding_machine.py`, writes the state; `_record` is its only caller. A held mass withdrawal is the event `held` carrying `MASS_WITHDRAWAL_CODE` (`onboarding.py:62`), never a substring of an error message. The typed refusal is `IllegalOnboardingTransition` with the code `ONBOARDING_TRANSITION_ILLEGAL` and the fields `machine` (`fleet_onboarding`), `from_state` and `event`, defined in `onboarding_machine.py`. Depends: `ARBORA-FLEET-R041.4`. Shape: `OnboardingState`, `OnboardingEvent`, `OnboardingRecord`, `transition` and the error in new `arbora/fleet/onboarding_machine.py`. | Test: `tests/fleet/test_onboarding_machine.py::test_legal_edge` (L1, planned), one parameter id per edge: `idle-registered-debouncing`, `debouncing-registered-debouncing`, `debouncing-debounce_elapsed-running`, `running-registered-running`, `running-pass_ok-idle`, `running-pass_err-backoff`, `running-pass_err-failed`, `running-held-awaitingapproval`, `backoff-retry_elapsed-running`, `awaitingapproval-approved-running`, `failed-authority_live-backoff`. `tests/fleet/test_onboarding_machine.py::test_every_illegal_pair_is_refused` (L1, planned) covers the other 37 pairs and failed guards, and asserts the code and the three fields. `test_held_is_read_from_the_event_not_the_message` asserts `MASS_WITHDRAWAL_CODE`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R080.2
Onboarding retries after the process authority recovers
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Onboarding retries after the process authority recovers.** Subsystem: fleet onboarding. Caller chain: `onboard_fleet` -> `FleetOnboardingService.run_pass` in `arbora/fleet/onboarding.py`. Rule: the slow-retry edge out of `Failed` (`failed-authority_live-backoff` in `.1`) fires only while the process credential lease of `ARBORA-IDENTITY-R027.1` is `Live`. One identity provider outage that outlasts `max_attempts` leaves connectors in `Failed`. They return to `Backoff` and then to `Running` once the lease is `Live`, with no restart. The retry period is 60 seconds with jitter. Depends: `ARBORA-FLEET-R080.1`, `ARBORA-IDENTITY-R027.3`. Shape: the guard `authority_live` in `onboarding_machine.py`, fed from the lease state in `onboarding.py`. | Test: `tests/fleet/test_onboarding_machine.py::test_identity_provider_blip_does_not_strand_connectors` (L3, planned). It fails the lease for 3 lifetimes, recovers it, and asserts every connector reaches `Running`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R080.3
The onboarding machine is described in the ontology
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The onboarding machine is described in the ontology.** Subsystem: fleet onboarding, ontology. Caller chain: the ontology pack loader reads `arbora/ontology/state_machines.ttl`, and a check compares it with `OnboardingState` and `OnboardingEvent` in `arbora/fleet/onboarding_machine.py`. Rule: the pack file `arbora/ontology/state_machines.ttl` declares the machine `arbora:FleetOnboardingMachine`, the state classes `arbora:OnboardingIdle`, `arbora:OnboardingDebouncing`, `arbora:OnboardingRunning`, `arbora:OnboardingBackoff`, `arbora:OnboardingAwaitingApproval` and `arbora:OnboardingFailed`, one `arbora:OnboardingTransition` class per edge of `.1`, the event classes, the guard classes `arbora:AttemptsLeft` and `arbora:LeaseLive`, and `arbora:OnboardingTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `Transition`, `Event` and `Guard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class. The file uses no `owl:imports`. The machine class is an instance of `StateMachine`, and each terminal state also extends `TerminalState`. Depends: `MEDULLA-ORCH-VOCAB-R811` (pending: it exists only on the medulla branch for explicit state machines), `ARBORA-FLEET-R080.1`. Shape: the Turtle classes in `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_onboarding_machine_description.py::test_classes_roll_up_to_the_core_classes` (L2, planned). It asserts one class per enum member and per edge, each a subclass of a core class.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R080.4
Wiring and hot-path proof of the onboarding machine
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring and hot-path proof of the onboarding machine.** Subsystem: fleet onboarding. Caller chain: multiplexer handshake -> `HandshakeOnboardingScheduler` schedule (`arbora/fleet/onboarding.py:1107`) -> pass worker -> `FleetOnboardingService.run_pass` (`:914`) -> `onboard_fleet` (`:849`) -> `FleetOnboarding._record` (`:1223`) -> `transition` -> `merge_handshake_records` (`:969`) -> `fleet.status`. Rule: every state write goes through `_record`, and no site writes the strings `failed` or `awaiting_approval`. A source search proves it. The proof runs the real scheduler and service with a fake lease, not a unit call. Depends: `ARBORA-FLEET-R080.1`, `ARBORA-FLEET-R080.2`. Shape: the changed `_record` and the scheduler in `arbora/fleet/onboarding.py`. | Test: `tests/fleet/test_onboarding_machine.py::test_handshake_to_status_runs_through_the_machine` (L3, planned) drives a handshake to `fleet.status` and asserts each recorded state. `test_no_site_writes_a_state_string` (L1, planned) is the source search.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R081
Catalog serving readiness is an explicit state machine (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog serving readiness is an explicit state machine (rollup).** Subsystem: fleet catalog. Entry: `arbora/fleet/multiplexer.py` and `arbora/fleet/health.py`. The catalog has one serving state: `Cold`, `Loading`, `Snapshot`, `Serving`, `Degraded` or `Closing`. `Closing` is the only terminal state. A failed first read leaves `Cold`, which differs from an empty catalog. The flags `autoscaling_ready` and `convergence_ready`, and the `None` checks, are derived from the state. Children `.1` to `.4` deliver it. It refines `ARBORA-FLEET-R078`. Depends: `ARBORA-FLEET-R081.1`, `ARBORA-FLEET-R081.2`, `ARBORA-FLEET-R081.3`, `ARBORA-FLEET-R081.4`. | Root journey: `tests/fleet/test_catalog_serving_machine.py::test_failed_first_read_is_cold_not_empty` (L2, planned). Children pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R081.1
Catalog serving state model and transition function
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Catalog serving state model and transition function.** Subsystem: fleet catalog. Caller chain: the catalog reload and warm paths of `MCPMultiplexer` (`arbora/fleet/multiplexer.py:2508`) call `transition`. Rule: the closed states are `Cold`, `Loading`, `Snapshot`, `Serving`, `Degraded` and `Closing`; `Closing` is terminal. The closed events are `load_start`, `read_ok`, `read_err`, `children_up`, `epoch_bump` and `close`. Guard: `has_snapshot` (a previous read succeeded). Transition table, 13 legal edges: `Cold` to `Loading` on `load_start`; `Loading` to `Snapshot` on `read_ok`; `Loading` to `Cold` on `read_err` when not `has_snapshot`; `Loading` to `Degraded` on `read_err` when `has_snapshot`; `Snapshot` to `Serving` on `children_up`; `Serving` and `Snapshot` to `Loading` on `epoch_bump`; `Degraded` to `Loading` on `load_start`; `Cold`, `Loading`, `Snapshot`, `Serving` and `Degraded` to `Closing` on `close`. `Degraded` serves the stale snapshot. The machine refuses every other pair and every failed guard. The persisted field is `MCPMultiplexer._catalog_state: CatalogState`, set beside `_catalog` (`multiplexer.py:2576`) and replacing its `None` checks. `_catalog_epoch` (`:2562`) stays data. One function, `transition` in `arbora/fleet/catalog_machine.py`, writes the state. The typed refusal is `IllegalCatalogTransition` with the code `CATALOG_TRANSITION_ILLEGAL` and the fields `machine` (`catalog_serving`), `from_state` and `event`, defined in `catalog_machine.py`. Depends: `ARBORA-FLEET-R078`. Shape: `CatalogState`, `CatalogEvent`, `transition` and the error in new `arbora/fleet/catalog_machine.py`. | Test: `tests/fleet/test_catalog_serving_machine.py::test_legal_edge` (L1, planned), one parameter id per edge: `cold-load_start-loading`, `loading-read_ok-snapshot`, `loading-read_err-cold`, `loading-read_err-degraded`, `snapshot-children_up-serving`, `serving-epoch_bump-loading`, `snapshot-epoch_bump-loading`, `degraded-load_start-loading`, `cold-close-closing`, `loading-close-closing`, `snapshot-close-closing`, `serving-close-closing`, `degraded-close-closing`. `test_every_illegal_pair_is_refused` (L1, planned) covers the other 23 pairs and failed guards, and asserts the code and the three fields.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R081.2
Readiness flags are derived from the catalog state
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Readiness flags are derived from the catalog state.** Subsystem: fleet health. Caller chain: readiness collectors in `arbora/fleet/health.py` (the fields at `:141-142`, set at `:451`, `:498` and `:542`) -> `fleet.status`. Rule: `autoscaling_ready` and `convergence_ready` are derived functions of `CatalogState`: both are true only in `Serving`. The `_BUNDLED_SKILL_READINESS` `None` check (`arbora/mcp_server/bootstrap.py:549`) reads the same state. No site stores a readiness boolean. Depends: `ARBORA-FLEET-R081.1`. Shape: pure functions `autoscaling_ready(state)` and `convergence_ready(state)` in `catalog_machine.py`, called by `health.py`. | Test: `tests/fleet/test_catalog_serving_machine.py::test_readiness_flags_are_functions_of_state` (L2, planned), parametrised over the six state ids `cold`, `loading`, `snapshot`, `serving`, `degraded` and `closing`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R081.3
The catalog serving machine is described in the ontology
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The catalog serving machine is described in the ontology.** Subsystem: fleet catalog, ontology. Caller chain: the ontology pack loader reads `arbora/ontology/state_machines.ttl`, and a check compares it with `CatalogState` and `CatalogEvent` in `arbora/fleet/catalog_machine.py`. Rule: the pack file `arbora/ontology/state_machines.ttl` declares the machine `arbora:CatalogServingMachine`, the state classes `arbora:CatalogCold`, `arbora:CatalogLoading`, `arbora:CatalogSnapshot`, `arbora:CatalogServing`, `arbora:CatalogDegraded` and `arbora:CatalogClosing`, one `arbora:CatalogTransition` class per edge of `.1`, the event classes, the guard class `arbora:HasSnapshot`, and `arbora:CatalogTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `Transition`, `Event` and `Guard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class. The file uses no `owl:imports`. The machine class is an instance of `StateMachine`, and each terminal state also extends `TerminalState`. Depends: `MEDULLA-ORCH-VOCAB-R811` (pending: it exists only on the medulla branch for explicit state machines), `ARBORA-FLEET-R081.1`. Shape: the Turtle classes in `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_catalog_machine_description.py::test_classes_roll_up_to_the_core_classes` (L2, planned).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R081.4
Wiring and hot-path proof of the catalog machine
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Wiring and hot-path proof of the catalog machine.** Subsystem: fleet catalog. Caller chain: served start -> `MCPMultiplexer` catalog load (`arbora/fleet/multiplexer.py`) -> `transition` in `catalog_machine.py` -> `collect_fleet_health` in `arbora/fleet/health.py` -> `fleet.status` and the readiness route. Rule: every catalog load, reload, child-up and close path sends an event, and no site assigns `_catalog_state` except through `transition`. The proof runs the real multiplexer with a failing first read, and asserts `fleet.status` reports `Cold`, not an empty catalog. Depends: `ARBORA-FLEET-R081.1`, `ARBORA-FLEET-R081.2`. Shape: the event calls in `multiplexer.py`. | Test: `tests/fleet/test_catalog_serving_machine.py::test_served_failed_first_read_reports_cold_in_status` (L3, planned). `test_only_transition_writes_catalog_state` (L1, planned) is the source search.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R082
Connector desired state is a machine; authorization is a projection (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Connector desired state is a machine; authorization is a projection (rollup).** Subsystem: connector control plane. Entry: `arbora/control_plane/connectors/models.py` and `service.py`. `DesiredStatus` (`disabled`, `enabled`, `quarantined`) gets one transition function and has no terminal state. `AuthorizationOutcome` (`pending`, `approved`, `denied`, `revoked`) is a read-only projection of the medulla decision record, not a second machine. Arbora refuses a write of an outcome that no decision supports. Children `.1` to `.3` deliver it. The decision machine is owned by medulla: `MEDULLA-ORCH-VOCAB-R811` and `MEDULLA-IDENTITY-R720` (pending: both exist only on the medulla branch for explicit state machines; the elevation states are `ElevationStatus`). Depends: `ARBORA-FLEET-R082.1`, `ARBORA-FLEET-R082.2`, `ARBORA-FLEET-R082.3`, `MEDULLA-ORCH-VOCAB-R811`. | Root journey: `tests/control_plane/test_connector_state_machine.py::test_denied_never_becomes_approved_without_a_new_decision` (L2, planned). Children pass.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R082.1
Desired-status machine with typed refusal
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Desired-status machine with typed refusal.** Subsystem: connector control plane. Caller chain: `ConnectorControlService.set_desired` (`arbora/control_plane/connectors/service.py:202`) and the other status writes in `service.py` call `transition`. Rule: the closed states are `disabled`, `enabled` and `quarantined`; none is terminal. The closed events are `enable`, `disable`, `quarantine` and `release`. Transition table, 5 legal edges: `disabled` to `enabled` on `enable`; `enabled` to `disabled` on `disable`; `disabled` and `enabled` to `quarantined` on `quarantine`; `quarantined` to `disabled` on `release`. The machine refuses every other pair (7 pairs). `quarantined` leaves only through `release`. The persisted field is `desired_status: DesiredStatus` (`arbora/control_plane/connectors/models.py:348`, also `:484`); the Literal stays as the stored type. One function, `transition` in `arbora/control_plane/connectors/machine.py`, writes it. The typed refusal is `IllegalDesiredTransition` with the code `CONNECTOR_TRANSITION_ILLEGAL` and the fields `machine` (`connector_desired_status`), `from_state` and `event`, defined in `machine.py`. Depends: `ARBORA-FLEET-R080.1`. Shape: `transition` and the error in new `arbora/control_plane/connectors/machine.py`; `models.py` validators stay. | Test: `tests/control_plane/test_connector_state_machine.py::test_legal_edge` (L1, planned), one parameter id per edge: `disabled-enable-enabled`, `enabled-disable-disabled`, `disabled-quarantine-quarantined`, `enabled-quarantine-quarantined`, `quarantined-release-disabled`. `test_every_illegal_pair_is_refused` (L1, planned) covers the other 7 pairs and asserts the code and the three fields.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R082.2
Authorization outcome is projected from the medulla decision
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Authorization outcome is projected from the medulla decision.** Subsystem: connector control plane. Caller chain: `service.py` authorization reads and writes -> `AuthorizationDecision` (`arbora/control_plane/connectors/models.py:493`). Rule: `AuthorizationOutcome` (`models.py:54`) is a projection of the medulla decision state, and arbora holds no transition table for it. `project_outcome(decision)` maps the elevation states of `MEDULLA-IDENTITY-R720` (`ElevationStatus`; pending: medulla branch only) to `pending`, `approved`, `denied` and `revoked`, one state to one outcome. A request that would move `denied` to `approved` is refused by the decision record. Arbora surfaces the typed medulla `TransitionRefused` with `machine`, `from` and `event`. Depends: `ARBORA-FLEET-R082.1`, `MEDULLA-ORCH-VOCAB-R811`. Shape: `project_outcome(decision)` in `machine.py`; the `AuthorizationOutcome` literal is derived from it. | Test: `tests/control_plane/test_connector_state_machine.py::test_denied_never_becomes_approved_without_a_new_decision` (L2, planned). `test_projection_maps_each_decision_state` (L1, planned) has parameter ids `pending`, `approved`, `denied` and `revoked`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R082.3
The connector desired-status machine is described in the ontology, and the wiring is proven
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The connector desired-status machine is described in the ontology, and the wiring is proven.** Subsystem: connector control plane, ontology. Caller chain: served connector control operation -> `ConnectorControlService.set_desired` (`service.py:202`) -> `transition` -> stored `desired_status`; the ontology pack loader reads `arbora/ontology/state_machines.ttl`. Rule: the pack file `arbora/ontology/state_machines.ttl` declares the machine `arbora:ConnectorDesiredStatusMachine`, the state classes `arbora:DesiredDisabled`, `arbora:DesiredEnabled` and `arbora:DesiredQuarantined`, one `arbora:DesiredTransition` class per edge of `.1`, the event classes and `arbora:DesiredTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `Transition`, `Event` and `Guard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class. The file uses no `owl:imports`. The machine class is an instance of `StateMachine`, and each terminal state also extends `TerminalState`. The authorization outcome has no arbora state classes, because it projects the medulla decision. No site assigns `desired_status` outside `transition`; a source search proves it. Depends: `ARBORA-FLEET-R082.1`, `MEDULLA-ORCH-VOCAB-R811`. Shape: the Turtle classes in `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_connector_machine_description.py::test_classes_roll_up_to_the_core_classes` (L2, planned). `tests/control_plane/test_connector_state_machine.py::test_served_quarantine_cannot_be_enabled_directly` (L3, planned) is the hot-path proof.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R083
Tool, skill and operation ranking asks medulla; the lexical floor is the received fallback (rollup)
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Tool, skill and operation ranking asks medulla; the lexical floor is the received fallback (rollup).** Subsystem: fleet discovery and intent resolution. Owner ruling (2026-11-07): a ranking of tools, skills, actions or operations is a choice, and a choice is medulla's (organization boundary rule "Consumers of a decision"). Arbora keeps one deterministic lexical floor as the received fallback and asks medulla for the order. Eight hand-written scorers decide today: `mcp_server/backing/tools/intent_tools.py` (`_score` :448, `_rank_candidate` :668, `_rank_actions` :698), `fleet/discovery_ranking.py` (`LexicalRanker.score` :96), `api/mcp/resolve.py` (`rank` :160, `_score` :302), `fleet/multiplexer.py` (`_cosine` :1794 and the ranking at :6515-6575), `fleet/catalog_items.py` (`_rank` :72) and `mcp_server/backing/connector_surface.py` (`rank_operations` :122). Children `.1` to `.5`. Caller chain: `find` and `ask` intent -> a ranking call site -> `RankingPort.rank` -> the SDK ranked call -> medulla `Decide`. Shape: one port in `arbora/fleet/ranking.py`; the scorers collapse into one floor. Depends: SCION-CONNECTOR-CONTROL-R006.1, MEDULLA-DECISION-ENGINE-R829. | Test: Rollup closes when `.1` to `.5` pass. Root test: `tests/fleet/test_ranking_port.py::test_every_ranking_site_asks_the_port_and_falls_back_to_the_floor` (L2).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R083.1
The ranking port and the single lexical floor
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The ranking port and the single lexical floor.** Stage: port and floor. Add `arbora/fleet/ranking.py` with the protocol `RankingPort.rank(question_id: str, query: str, candidates: Sequence[RankCandidate]) -> list[str]` and the frozen record `RankCandidate(id, name, description, kind)`. `kind` is `tool`, `skill`, `action`, `operation` or `catalog_item`. Add `arbora/fleet/lexical_floor.py::LexicalFloor`, the one scorer: it keeps the behaviour of `LexicalRanker` of `ARBORA-FLEET-R074` (stopwords dropped, plural fold, rarity weight per call, name match counts double, name-coverage tie-break). `RankingPort` is implemented by `MedullaRanking(ask, floor)` in the same module: it calls `ask(question_id, query, candidates)` and answers the floor order on abstention, error or timeout. The floor holds no learned or tuned weights beyond those named. Caller chain: call sites of `.2` -> `RankingPort`. Shape: two new modules; `discovery_ranking.py` is deleted after its callers move. Depends: SCION-CONNECTOR-CONTROL-R006.1. | Test: `tests/fleet/test_ranking_port.py::test_floor_orders_like_the_r074_ranker`, `tests/fleet/test_ranking_port.py::test_abstention_error_and_timeout_answer_the_floor_order` and `tests/fleet/test_ranking_port.py::test_a_medulla_order_is_used_when_offered` (L2).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R083.2
Intent tools and the intent resolver ask the port
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Intent tools and the intent resolver ask the port.** Stage: intent resolution. `intent_tools._score`, `_rank_candidate`, `_rank_actions`, `_declared_action_phrase_bonus` and `_skill_delegation_bonus` are replaced by one call: `ranking.rank("catalog.intent_action_rank", intent, candidates)` where each candidate carries the tool, the action, the one-line description and the declared verbs. The action phrases and the skill-delegation case become candidate text, so no bonus survives in arbora. `api/mcp/resolve.py::rank` and `_score` keep the descriptor selection but get their order from `catalog.operation_rank`, with the clamp `top_k` of 20 applied after the order. Caller chain: `dispatch_intent` -> `resolve_intent` -> `RankingPort`. Shape: edits in `intent_tools.py` and `api/mcp/resolve.py`; the ranking port arrives by argument from the `HostContext` (`ARBORA-HOST-R039.5`). Depends: ARBORA-FLEET-R083.1. | Test: `tests/mcp_server/test_intent_resolution_ranking.py::test_intent_actions_are_ordered_by_the_ranking_port` and `tests/api/test_resolve_ranking.py::test_top_k_clamps_after_the_port_order` (L2).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R083.3
Fleet discovery, catalog items and connector operations ask the port
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Fleet discovery, catalog items and connector operations ask the port.** Stage: discovery. `MCPMultiplexer.discover_tools` (after the split into `fleet/tool_discovery.py`, `ARBORA-HOST-R038.9`) ranks probed tool and skill rows with `catalog.tool_rank` and `catalog.skill_rank`; the `_cosine` and the ranking block at `multiplexer.py:6515-6575` are deleted because medulla owns the semantic score. `fleet/catalog_items.py::_rank` uses `catalog.catalog_item_rank`. `connector_surface.rank_operations` uses `catalog.operation_rank`. On a fleet of tens of thousands of rows the candidate set is first narrowed by the existing name and description prefilter to at most 2000 candidates before the call (knob `fleet.rank.max_candidates`, starting value 2000), so the request stays bounded. Caller chain: served `find(intent=...)` -> `discover_tools` -> `RankingPort`. Shape: edits in `fleet/tool_discovery.py`, `fleet/catalog_items.py`, `mcp_server/backing/connector_surface.py`. Depends: ARBORA-FLEET-R083.1, ARBORA-HOST-R038.9. | Test: `tests/fleet/test_large_tool_catalogs.py::test_find_ranks_the_named_system_and_object_first_through_the_port` and `tests/fleet/test_large_tool_catalogs.py::test_candidate_set_is_bounded_before_the_port_call` (L2).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R083.4
Delete the other scorers
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Delete the other scorers.** Stage: removal. Delete `_cosine`, `_lexical_score`, `_relevance`, `LexicalRanker` (moved into the floor) and every other function that scores a tool, skill, action or operation by overlap, rarity or cosine. A repository scan finds no function named `*score*`, `*rank*` or `*relevance*` in `fleet`, `api/mcp` and `mcp_server/backing` outside `lexical_floor.py` and `ranking.py`. Caller chain: none. Shape: deletions and one scan test. Depends: ARBORA-FLEET-R083.2, ARBORA-FLEET-R083.3. | Test: `tests/architecture/test_single_ranking_floor.py::test_no_scoring_function_exists_outside_the_floor` (L2).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R083.5
Ranking served proof and degradation evidence
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**Ranking served proof and degradation evidence.** Stage: proof. With a loopback medulla engine that serves the four `Rank` catalog entries, `find` returns the engine's order. With the engine stopped, `find` returns the floor order and the response carries `ranking: "floor"` and the reason `decision_unavailable`. A call never fails because the ranking is unavailable. Evidence: a metric `arbora_ranking_total{source=medulla|floor}`. Caller chain: `find` -> `discover_tools` -> `MedullaRanking`. Shape: one served test and one counter in `observability`. Depends: ARBORA-FLEET-R083.3, MEDULLA-DECISION-ENGINE-R829.1. | Test: `tests/fleet/test_ranking_served.py::test_find_uses_the_engine_order_and_degrades_to_the_floor` (L3).
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-FLEET-R084
The fleet serves the city layout read
Definition — ARBORA-FLEET / ARBORA-FLEET — Fleet catalog, intent tools, and policy safe reloadCanonical requirement and verification source
**The fleet serves the city layout read.** Subsystem: fleet catalog. Entry: the served `ask` operation `fleet.city.layout` (effect `READ`, scope `fleet:read`). arbora serves the spatial layout of the fleet tenant from the Medulla world view: districts, buildings, rooms, streets, the relations `locatedIn`, `position` and `hasInterior`, and the active manual overrides. arbora invokes the engine's one spatial query method as the bound actor (`MEDULLA-WORLD-VIEW-R003`) and serves its stable envelope; it adds no placement logic and no second registry. A connector added to the catalog appears in the layout on the next read without a write, and a stored override for a removed connector is reported stale, never applied. Refusals: `UNAVAILABLE` when the engine world view is not bound; the engine's typed unknown-tenant and unknown-layout refusals are preserved in arbora's closed error enum. Writes: none. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` -> `arbora/api/invoke/pipeline.py:1021` -> (planned) `arbora/api/ops/fleet_city.py::handle_city_layout` -> the engine spatial query; over MCP, `arbora/api/mcp/serving.py:29` -> `arbora/api/mcp/verbs.py` (`ask`) -> the same handler. Shape: one handler that builds the params and maps the engine envelope into the result model; no new store. Depends on: `MEDULLA-WORLD-VIEW-R003`. | Test: `tests/fleet/test_city_layout_served.py::test_city_layout_serves_the_engine_envelope_and_refuses_unbound` (L3) planned in `test-spec.md`.
requirementARBORA-FLEETSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS
ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registry
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R001
One harness-neutral bundle core is composed from the registry (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**One harness-neutral bundle core is composed from the registry (rollup).** Arbora composes one `BundleSpec` from its registry and its installed content packages. One renderer per harness profile writes the files. Children `.1` to `.7` deliver it. | Children `.1` to `.7`.
requirementARBORA-HARNESS-PLUGINSVERIFIED39de36df20d6
6535ad966012
tests/harness_plugins/test_bundle_served.py:36
tests/harness_plugins/test_cli.py:13
tests/harness_plugins/test_cli.py:55
tests/harness_plugins/test_compose.py:20
tests/harness_plugins/test_profiles.py:10
ARBORA-HARNESS-PLUGINS-R001.1
Model: the closed harness profile table
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Model: the closed harness profile table.** The closed set is `claude-code`, `opencode`, `codex` and `grok`. Each profile names its manifest layout, its loopback OAuth callback, its hook kind (`mcp_tool` or `command`) and its event map. Each profile lists its supported parts: skills, commands, agents, hooks, MCP servers and status line. The table is the one source of these facts. Caller chain: `arbora/console.py:main` → `arbora/harness_plugins/cli.py::bundle_command` → `profiles.profile(name)`. Shape: new `arbora/harness_plugins/profiles.py` with frozen dataclass `HarnessProfile`, enum `HookKind` and the tuple `PROFILES`; no helper to reuse. | Test: `tests/harness_plugins/test_profiles.py::test_profile_table_is_closed_and_complete`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_profiles.py:10
ARBORA-HARNESS-PLUGINS-R001.2
Core composer reads the registry and the content packages
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Core composer reads the registry and the content packages.** `compose_bundle(caller, profile)` returns a frozen `BundleSpec`. It holds one MCP entry for the arbora door with the public base URL from config. It holds the door skills of `US-CONTENT-R007` and the skills in the declared list `harness_plugins.skills`. It holds one agent definition per entry of the declared list `agents` of the install record (name, description, agent profile). Each agent definition delegates through `act` with `agents.run`. The bundle copies no MCP prompt; the harness lists the served prompts itself. Caller chain: `arbora/console.py:main` → `cli.py::bundle_command` → `compose.py::compose_bundle` → `arbora/core/providers.py::content_connectors`. Shape: new `arbora/harness_plugins/compose.py` with `BundleSpec`, `SkillRef`, `AgentDef` and `HookIntent`; reuse the SDK content convention for skill folders. | Test: `tests/harness_plugins/test_compose.py::test_bundle_holds_door_skills_agents_and_no_prompt_copy`.
requirementARBORA-HARNESS-PLUGINSVERIFIED39de36df20d6
6535ad966012
tests/harness_plugins/test_compose.py:20
ARBORA-HARNESS-PLUGINS-R001.3
Renderers write one deterministic tree per profile
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Renderers write one deterministic tree per profile.** `render(spec, profile, out_dir)` writes the files of the profile layout only. It sorts every key and list. It returns the tree digest: SHA-256 over sorted relative paths and file bytes. Two runs on one registry must return one digest. The digest is the bundle version. Caller chain: `cli.py::bundle_command` → `render.py::render` → the renderer function of the profile. Shape: new `arbora/harness_plugins/render.py` with `render`, `tree_digest` and one function per profile; reuse `hashlib.sha256`. | Test: `tests/harness_plugins/test_render.py::test_two_renders_give_one_digest`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render.py:16
ARBORA-HARNESS-PLUGINS-R001.4
Command: arbora plugin bundle
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Command: arbora plugin bundle.** `arbora/console.py:main` dispatches `plugin` before server start, as it dispatches `identity reconcile`. `arbora plugin bundle --harness ID` writes to `--out DIR`. Without `--out`, it writes under `${XDG_CACHE_HOME}/arbora/plugins/<harness>/<digest>/`. `--print-path` prints only the absolute tree path on one line. Caller chain: `arbora` console script → `arbora/console.py:main` → `arbora/harness_plugins/cli.py::main` → `bundle_command`. Shape: new `arbora/harness_plugins/cli.py` with `argparse` sub-commands; reuse the dispatch form of `reconcile_command` in `arbora/identity/client_contract.py`. | Test: `tests/harness_plugins/test_cli.py::test_bundle_print_path_prints_one_absolute_line`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_cli.py:13
ARBORA-HARNESS-PLUGINS-R001.5
Refusal: typed reasons write no file
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Refusal: typed reasons write no file.** The command refuses `HARNESS_UNKNOWN` for a name outside the table, `ENDPOINT_UNSET` when the public base URL is unset and `SKILL_UNKNOWN` for a door or declared skill that no installed content package holds. Each refusal exits 2 and writes no file. The bundle copies no served catalog, so it needs no publication receipt. Caller chain: `cli.py::bundle_command` → `cli.py::build` → `compose_bundle`. Shape: enum `BundleRefusal` in `arbora/harness_plugins/cli.py`. | Test: `tests/harness_plugins/test_cli.py::test_refusals_exit_two_and_write_nothing`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_cli.py:55
ARBORA-HARNESS-PLUGINS-R001.6
No secret and no file outside the tree
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**No secret and no file outside the tree.** A bundle file must hold no token, secret, password or client secret. A path value must stay inside the tree, except the configured endpoint URL. The renderer refuses a skill file that resolves outside its package. Caller chain: `render.py::render` → `render.py::check_tree` before the digest. Shape: function `check_tree` in `arbora/harness_plugins/render.py`; reuse the secret patterns of the repository secrets gate. | Test: `tests/harness_plugins/test_render.py::test_bundle_holds_no_secret_and_no_escaping_path`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render.py:38
ARBORA-HARNESS-PLUGINS-R001.7
Hot-path proof: the console builds every profile
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Hot-path proof: the console builds every profile.** The test runs the `arbora` console script in a subprocess with a loopback registry fixture. It builds all four profiles. Each tree passes the structural validator of its profile. Caller chain: `arbora` console script → `cli.py::bundle_command` → `render` → `validate.py::validate_tree`. Shape: new `arbora/harness_plugins/validate.py` with one check per profile layout. Depends: `ARBORA-HARNESS-PLUGINS-R001.1` to `.6`. | Test: `tests/harness_plugins/test_bundle_served.py::test_console_builds_every_profile_and_each_validates`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_bundle_served.py:36
ARBORA-HARNESS-PLUGINS-R002
The install lifecycle is an explicit state machine (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The install lifecycle is an explicit state machine (rollup).** Arbora installs, reports and removes a bundle per harness through one machine. Children `.1` to `.5` deliver it. | Children `.1` to `.5`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_bundle_served.py:53
tests/harness_plugins/test_install_machine.py:120
tests/harness_plugins/test_install_machine.py:47
tests/harness_plugins/test_install_machine.py:65
tests/harness_plugins/test_install_machine.py:87
ARBORA-HARNESS-PLUGINS-R002.1
Model: the install machine
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Model: the install machine.** The states are `absent`, `generated`, `installed`, `stale` and `removed`. One `transition` function applies `INSTALL_EDGES`. An edge outside the table raises `IllegalInstallTransition`. The ontology file describes the same machine. Caller chain: `cli.py::install_command` → `install.py::transition`. Shape: new `arbora/harness_plugins/install.py` with `InstallState`, `InstallEvent`, `INSTALL_EDGES` and `IllegalInstallTransition`; reuse the machine form of `arbora/identity/client_contract.py` and `arbora/ontology/state_machines.ttl`. | Test: `tests/harness_plugins/test_install_machine.py::test_edges_match_the_ontology_and_refuse_others`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_install_machine.py:47
ARBORA-HARNESS-PLUGINS-R002.2
Commands: install, status and remove
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Commands: install, status and remove.** `arbora plugin install --harness ID` generates the tree and places it where the profile says. The place is a plugin discovery directory or a marketplace registration. Arbora records the harness, the digest and the place in `~/.config/arbora/plugins.json`. `status` prints the state per harness. `remove` deletes only the files that arbora placed. Caller chain: `cli.py::main` → `install_command`, `status_command` or `remove_command` → `install.py::transition`. Shape: `InstallRecord` in `arbora/harness_plugins/install.py`; reuse the arbora config directory resolver. | Test: `tests/harness_plugins/test_install_machine.py::test_install_status_remove_touch_only_owned_files`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_install_machine.py:65
ARBORA-HARNESS-PLUGINS-R002.3
Hard cutover: one door per harness
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Hard cutover: one door per harness.** Install must detect a hand-written arbora MCP entry and a hand-made skill link set for the same harness. On a find, install refuses `DUPLICATE_DOOR`. It prints each entry and the exact removal step. It never edits a harness file that it did not write. Caller chain: `install_command` → `install.py::find_duplicate_doors` before any write. Shape: function `find_duplicate_doors(profile, home)` in `arbora/harness_plugins/install.py`; it reads the config paths that the profile names. | Test: `tests/harness_plugins/test_install_machine.py::test_duplicate_door_refuses_and_edits_nothing`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_install_machine.py:87
ARBORA-HARNESS-PLUGINS-R002.4
Stale detection and the update channel
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Stale detection and the update channel.** `status` composes a fresh digest and compares it with the recorded digest. A mismatch moves the state to `stale`. The `claude-code` entry uses a command source, so the harness reruns the bundle command once per session. The `opencode` plugin reads the current bundle at setup. `codex` and `grok` update when the developer reruns install. Caller chain: `status_command` → `compose_bundle` → `tree_digest` → `install.py::transition`. Shape: function `current_digest` in `arbora/harness_plugins/install.py`; reuse `render.tree_digest`. | Test: `tests/harness_plugins/test_install_machine.py::test_changed_registry_gives_stale`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_install_machine.py:120
ARBORA-HARNESS-PLUGINS-R002.5
Hot-path proof: install, change and status
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Hot-path proof: install, change and status.** The test runs the `arbora` console script with a temporary home directory. It installs `claude-code` and `opencode`, then changes the registry fixture. `status` reports `stale` for both. `remove` leaves the home directory as before install. Caller chain: `arbora` console script → `cli.py::main` → install, status and remove. Shape: the test fixture `loopback_registry` in `tests/harness_plugins/conftest.py`. Depends: `ARBORA-HARNESS-PLUGINS-R002.1` to `.4`. | Test: `tests/harness_plugins/test_bundle_served.py::test_install_change_status_remove`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_bundle_served.py:53
ARBORA-HARNESS-PLUGINS-R003
The harness signs in through the native client, with no credential in the bundle (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The harness signs in through the native client, with no credential in the bundle (rollup).** Children `.1` to `.4` deliver it. | Children `.1` to `.4`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_compose.py:56
tests/harness_plugins/test_hook_runner.py:123
tests/harness_plugins/test_login.py:41
tests/harness_plugins/test_login.py:77
ARBORA-HARNESS-PLUGINS-R003.1
The bundle MCP entry names the native client and the profile callback
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The bundle MCP entry names the native client and the profile callback.** The MCP entry carries the client ID of `ARBORA-IDENTITY-R030.4.1` and the fixed loopback callback of the profile. It carries no header value and no token. The harness runs its own authorization code flow with PKCE. Caller chain: `compose_bundle` → `compose.py::door_entry` → `arbora/identity/client_contract.py::DEFAULT_NATIVE_CLIENT_ID`. Shape: function `door_entry(profile, base_url)` in `arbora/harness_plugins/compose.py`. Depends: `ARBORA-IDENTITY-R030.4.7`. | Test: `tests/harness_plugins/test_compose.py::test_mcp_entry_names_native_client_and_profile_callback`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_compose.py:56
ARBORA-HARNESS-PLUGINS-R003.2
Command: arbora plugin login for command hooks
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Command: arbora plugin login for command hooks.** A profile with hook kind `command` needs a caller credential outside the harness. `arbora plugin login` runs the authorization code flow with PKCE on a loopback port with the native client. It stores the refresh token in the platform credential store. Without that store, it uses a file of mode 0600 under `~/.config/arbora/credentials/`. The runner renews the access token before expiry. Caller chain: `cli.py::login_command` → `login.py::authorize` → `login.py::TokenStore.save`. Shape: new `arbora/harness_plugins/login.py` with `authorize`, `TokenStore` and `renew`; reuse the discovery of `arbora/fleet/remote_oauth_broker.py`. | Test: `tests/harness_plugins/test_login.py::test_login_stores_refresh_token_and_renews`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_login.py:41
ARBORA-HARNESS-PLUGINS-R003.3
Model: the credential machine
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Model: the credential machine.** The states are `unauthenticated`, `authorizing`, `authorized`, `refreshing`, `expired` and `revoked`. `revoked` and `expired` go only to `authorizing`. The ontology file describes the same machine. Caller chain: `login.py::authorize` and `login.py::renew` → `login.py::transition`. Shape: `CredentialState`, `CREDENTIAL_EDGES` and `IllegalCredentialTransition` in `arbora/harness_plugins/login.py`; reuse `arbora/ontology/state_machines.ttl`. | Test: `tests/harness_plugins/test_login.py::test_credential_edges_match_the_ontology`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_login.py:77
ARBORA-HARNESS-PLUGINS-R003.4
Refusal: a hook without a credential never blocks
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Refusal: a hook without a credential never blocks.** A hook call without a valid credential returns `AUTH_REQUIRED` with a one-line sign-in hint. The hook output is a non-blocking note. The prompt or the tool call still runs. Caller chain: `hook_runner.py::run` → `login.py::TokenStore.load` → the note. Shape: function `auth_required_note(profile)` in `arbora/harness_plugins/hook_runner.py`. | Test: `tests/harness_plugins/test_hook_runner.py::test_missing_credential_is_a_non_blocking_note`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_hook_runner.py:123
ARBORA-HARNESS-PLUGINS-R004
Workstream operations share session context across harnesses (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Workstream operations share session context across harnesses (rollup).** Arbora serves attach, checkpoint, detach, get and list over the engine workstream record of `MEDULLA-IDENTITY-R723`. Arbora keeps no state of its own. Children `.1` to `.7` deliver it. | Children `.1` to `.7`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.1
Model: workstream params and results
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Model: workstream params and results.** The workstream key is tenant, principal and workspace digest. Arbora computes the workspace digest as SHA-256 of the principal and the reported workspace root. Arbora stores the digest and never the root path. Caller chain: registry `invoke` → `arbora/api/ops/workstreams.py::workstream_key`. Shape: new `arbora/api/ops/workstreams.py` with `AttachParams`, `CheckpointParams`, `DetachParams`, `WorkstreamView` and `workstream_key`; each model extends `Params` of `arbora/api/ops/_common.py`. | Test: `tests/api/ops/test_workstreams.py::test_key_holds_digest_and_never_the_path`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.2
The attach operation joins a harness session to the workstream
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The attach operation joins a harness session to the workstream.** `workstream.attach` is verb `write`, scope `workstream:write`, effect on the caller's own session only. The operation declares `Confirm.NONE` (`arbora/api/registry/spec.py`), so one hook call runs it with no preview. Params: `harness`, `harness_session_id`, `workspace_root`. The harness session ID is the idempotency key. The first call writes the `attachedTo` link and returns a context of 4096 bytes or fewer. The context holds the last checkpoint, the open run IDs and the other attached sessions. A repeat call returns `already_attached` with an empty context. Caller chain: MCP `write` at `arbora/api/mcp/verbs.py` → `invoke` at `arbora/api/invoke/pipeline.py` → `workstreams.py::handle_attach` → the engine send helper of `ARBORA-OPS-R897.1`. Shape: `handle_attach` and `AttachResult`; reuse the engine send helper of `ARBORA-OPS-R897.1`. Depends: `MEDULLA-IDENTITY-R723`. | Test: `tests/api/ops/test_workstreams.py::test_attach_is_idempotent_and_bounded`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.3
The checkpoint operation records a handoff
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The checkpoint operation records a handoff.** `workstream.checkpoint` is verb `write`, scope `workstream:write`, `Confirm.NONE`. Params: `harness_session_id`, `summary` of 2000 characters or fewer, `run_ids` and `trigger`. The handler sends one turn through the path of `ARBORA-OPS-R897.4`. The privacy masking of `ARBORA-OPS-R844.1` applies. The idempotency key is the session ID and a sequence number. Caller chain: registry `invoke` → `workstreams.py::handle_checkpoint` → `participants.py::handle_turn_append` → `send_engine`. Shape: `handle_checkpoint` in `arbora/api/ops/workstreams.py`; reuse `handle_turn_append`. | Test: `tests/api/ops/test_workstreams.py::test_checkpoint_writes_one_masked_turn`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.4
Detach, get and list, with a uniform denial
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Detach, get and list, with a uniform denial.** `workstream.detach` (verb `write`) ends the attachment. `workstream.get` (verb `ask`) and `workstream.list` (verb `find`) use scope `workstream:read`. A read of another principal's workstream returns `WORKSTREAM_NOT_FOUND`. An unknown key returns the same status and body. Caller chain: registry `invoke` → `handle_detach`, `handle_get` or `handle_list` → `send_engine`. Shape: three handlers in `arbora/api/ops/workstreams.py`; reuse the denial form of `identity.clients.get`. | Test: `tests/api/ops/test_workstreams.py::test_cross_principal_read_matches_unknown`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.5
Model: the attachment machine
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Model: the attachment machine.** The states are `detached` and `attached`. `checkpoint` is valid only in `attached`. A detach of a `detached` session is a no-op result, not an error. The ontology file describes the machine. Caller chain: `handle_attach`, `handle_checkpoint` and `handle_detach` → `workstreams.py::transition`. Shape: `AttachmentState`, `ATTACH_EDGES` and `IllegalAttachTransition` in `arbora/api/ops/workstreams.py`; reuse `arbora/ontology/state_machines.ttl`. | Test: `tests/api/ops/test_workstreams.py::test_attachment_edges_match_the_ontology`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.6
Registration and scopes
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Registration and scopes.** Arbora registers the five operations and the scopes `workstream:read` and `workstream:write`. The native client default scopes grant both through `ARBORA-IDENTITY-R030.4.7`. Caller chain: host bootstrap → `arbora/api/ops/registry_factory.py::get_registry` → the module tuple. Shape: add `workstreams` to the module tuple of `get_registry`; register the scopes in `arbora/security/scope_registry.py` through `scripts/gen_scope_registry.py`. | Test: `tests/api/ops/test_workstreams.py::test_operations_and_scopes_are_registered`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R004.7
Hot-path proof: two harnesses share one workstream over MCP
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Hot-path proof: two harnesses share one workstream over MCP.** A `claude-code` session attaches and writes a checkpoint. An `opencode` session attaches on the same root and receives it. A second tenant gets `WORKSTREAM_NOT_FOUND`. Attach p95 stays at 150 ms or less over 200 calls. Caller chain: MCP `write` and `ask` at `arbora/api/mcp/verbs.py` → `invoke` → `workstreams.py` handlers → loopback engine. Shape: the served test uses the loopback engine fixture of the operations tests. Depends: `ARBORA-HARNESS-PLUGINS-R004.1` to `.6`. | Test: `tests/api/ops/test_workstreams_served.py::test_two_harnesses_share_one_workstream`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R005
The claude-code renderer (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The claude-code renderer (rollup).** Children `.1` to `.4` deliver it. | Children `.1` to `.4`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_claude_code.py:109
tests/harness_plugins/test_render_claude_code.py:32
tests/harness_plugins/test_render_claude_code.py:57
tests/harness_plugins/test_render_claude_code.py:84
ARBORA-HARNESS-PLUGINS-R005.1
Layout of the claude-code tree
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Layout of the claude-code tree.** The renderer writes `.claude-plugin/plugin.json` with name `arbora` and the digest as version. It writes `.mcp.json` with one `http` server `arbora`, the native client ID and the callback port. It writes `skills/<name>/SKILL.md`, `agents/<name>.md`, `commands/handoff.md`, `commands/resume.md` and `hooks/hooks.json`. Caller chain: `render.py::render` → `render.py::render_claude_code`. Shape: function `render_claude_code(spec, out_dir)`; reuse `tree_digest`. | Test: `tests/harness_plugins/test_render_claude_code.py::test_layout_matches_the_profile`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_claude_code.py:32
ARBORA-HARNESS-PLUGINS-R005.2
Hooks call the door as MCP tools
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Hooks call the door as MCP tools.** Every hook has type `mcp_tool` with server `plugin:arbora:arbora` and tool `write`. `UserPromptSubmit` sends `workstream.attach`. `PreCompact` sends `workstream.checkpoint` with trigger `compact`. `SessionEnd` sends `workstream.detach`. The hooks hold no script. Caller chain: `render_claude_code` → `render.py::hook_entries` over the hook intents of `BundleSpec`. Shape: function `hook_entries(intents, profile)` in `arbora/harness_plugins/render.py`. | Test: `tests/harness_plugins/test_render_claude_code.py::test_hooks_are_mcp_tool_calls_to_the_door`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_claude_code.py:57
ARBORA-HARNESS-PLUGINS-R005.3
Marketplace entry with a command source
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Marketplace entry with a command source.** Install writes one local marketplace file in the arbora config directory. Its single entry has a command source: `arbora plugin bundle --harness claude-code --print-path`, mode `copy`. Install registers that marketplace through the harness command line. Caller chain: `install_command` → `install.py::place_claude_code` → the harness marketplace add command. Shape: function `place_claude_code(record)` in `arbora/harness_plugins/install.py`. | Test: `tests/harness_plugins/test_render_claude_code.py::test_marketplace_entry_uses_the_bundle_command`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_claude_code.py:84
ARBORA-HARNESS-PLUGINS-R005.4
Status line command
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Status line command.** A plugin cannot set the main status line of this harness. `arbora plugin statusline` prints the workstream and the credential state in one line. It reads stdin JSON and finishes within 200 ms. The door skill tells the developer how to select it. Caller chain: harness status line → `cli.py::statusline_command` → the local install record and `TokenStore.load`. Shape: function `statusline_command` in `arbora/harness_plugins/cli.py`; it calls no network. | Test: `tests/harness_plugins/test_render_claude_code.py::test_statusline_prints_one_line_quickly`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_claude_code.py:109
ARBORA-HARNESS-PLUGINS-R006
The opencode renderer (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The opencode renderer (rollup).** Children `.1` to `.4` deliver it. | Children `.1` to `.4`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_opencode.py:109
tests/harness_plugins/test_render_opencode.py:124
tests/harness_plugins/test_render_opencode.py:66
tests/harness_plugins/test_render_opencode.py:89
ARBORA-HARNESS-PLUGINS-R006.1
Layout: one generated server plugin directory
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Layout: one generated server plugin directory.** The renderer writes `package.json` and `server.ts` from the template. The wheel ships the template. Install places the directory in the global plugin discovery directory of the harness. Install edits no harness config file. Caller chain: `render.py::render` → `render.py::render_opencode` → the template. Shape: function `render_opencode(spec, out_dir)`; template files in `arbora/harness_plugins/templates/opencode/`. | Test: `tests/harness_plugins/test_render_opencode.py::test_layout_matches_the_profile`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_opencode.py:66
ARBORA-HARNESS-PLUGINS-R006.2
Setup registers the door, the skills and the commands
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Setup registers the door, the skills and the commands.** At setup, the plugin sets the remote MCP server `arbora` with the native client ID and the profile callback. It adds the bundle skill directory and the commands `handoff` and `resume`. It registers nothing else. Caller chain: harness plugin loader → `server.ts` `setup(ctx)` → the MCP, skill and command transforms of `ctx`. Shape: one `setup` function in `templates/opencode/server.ts`; the renderer fills only the endpoint, the client ID and the callback. | Test: `tests/harness_plugins/test_render_opencode.py::test_setup_registers_door_skills_and_commands`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_opencode.py:89
ARBORA-HARNESS-PLUGINS-R006.3
Session hooks call the workstream operations
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Session hooks call the workstream operations.** The session `context` hook sends `workstream.attach` once per session. The session `compaction` hook sends `workstream.checkpoint` with trigger `compact`. The session end event sends `workstream.detach`. The harness gives a plugin no way to call a tool of a connected MCP server, so each call runs the hook runner of `ARBORA-HARNESS-PLUGINS-R007` with the credential of `ARBORA-HARNESS-PLUGINS-R003.2`. A failed call adds no context and never blocks. Caller chain: harness session → `server.ts` hook handlers → `arbora plugin hook` → `hook_runner.py::run`. Shape: three handlers in `templates/opencode/server.ts`. | Test: `tests/harness_plugins/test_render_opencode.py::test_hooks_call_workstream_operations_non_blocking`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_opencode.py:109
ARBORA-HARNESS-PLUGINS-R006.4
Hot-path proof: a loader fixture runs the generated plugin
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Hot-path proof: a loader fixture runs the generated plugin.** `node` runs the loader fixture on the generated directory with a recorded context. The fixture asserts each registration of `.2` and each call of `.3` against a loopback door. Caller chain: `node tests/harness_plugins/fixtures/opencode_loader.mjs` → generated `server.ts` `setup` → loopback door. Shape: new loader fixture `tests/harness_plugins/fixtures/opencode_loader.mjs`. Depends: `ARBORA-HARNESS-PLUGINS-R006.1` to `.3`. | Test: `tests/harness_plugins/test_render_opencode.py::test_loader_fixture_runs_the_generated_plugin`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_opencode.py:124
ARBORA-HARNESS-PLUGINS-R007
Command hook runner
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Command hook runner.** A profile with hook kind `command` runs `arbora plugin hook <event> --harness ID`. The runner reads the hook JSON on stdin and maps the event through the profile event map. It calls the workstream operation with the credential of `ARBORA-HARNESS-PLUGINS-R003.2`. It prints the output form of the profile and always exits 0. It stops after 5 seconds. Caller chain: harness command hook → `cli.py::hook_command` → `hook_runner.py::run` → `arbora/client/http.py` → `POST /api/v1/ops/workstream.attach`. Shape: new `arbora/harness_plugins/hook_runner.py` with `run`; reuse the served HTTP client. | Test: `tests/harness_plugins/test_hook_runner.py::test_runner_maps_events_and_always_exits_zero`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_hook_runner.py:36
ARBORA-HARNESS-PLUGINS-R008
The codex renderer
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The codex renderer.** The renderer writes `.codex-plugin/plugin.json`, `skills/<name>/SKILL.md`, `.mcp.json` with one streamable HTTP server and the native client, and `hooks/hooks.json`. Each hook is a `command` hook that runs the runner of `ARBORA-HARNESS-PLUGINS-R007`. Hook timeouts are in seconds. Install places the tree in the user plugin directory of the harness. Caller chain: `render.py::render` → `render.py::render_codex`. Shape: function `render_codex(spec, out_dir)`; reuse `hook_entries`. Depends: `ARBORA-HARNESS-PLUGINS-R007`. | Test: `tests/harness_plugins/test_render_codex.py::test_layout_hooks_and_mcp_entry`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_codex.py:25
ARBORA-HARNESS-PLUGINS-R009
The grok renderer
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**The grok renderer.** The renderer reuses the `claude-code` layout for skills, agents, commands and `.mcp.json`. It writes a local marketplace file `.grok-plugin/marketplace.json` with one entry. Each hook is a `command` hook that runs the runner of `ARBORA-HARNESS-PLUGINS-R007`. Install places the tree in the user plugin directory of the harness. Caller chain: `render.py::render` → `render.py::render_grok` → `render_claude_code` for the shared parts. Shape: function `render_grok(spec, out_dir)`. Depends: `ARBORA-HARNESS-PLUGINS-R007`. | Test: `tests/harness_plugins/test_render_grok.py::test_layout_reuses_the_shared_parts`.
requirementARBORA-HARNESS-PLUGINSVERIFIED6535ad966012
tests/harness_plugins/test_render_grok.py:25
ARBORA-HARNESS-PLUGINS-R010
A hosted coding agent reaches the door from its vendor cloud (rollup)
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**A hosted coding agent reaches the door from its vendor cloud (rollup).** The `hosted` profile serves a coding agent that runs on its vendor's machines. Nothing is installed on the developer's machine and every call reaches the door over the network. The profile is optional and customer-configured: Arbora never exposes a door or an identity provider itself. A deployment that wants it declares its own reachable door endpoint, its edge controls and the vendor redirect of its identity provider client (decision D8). Children `.1` to `.3` deliver it. Depends on: `ARBORA-HARNESS-PLUGINS-R004`. | Children `.1` to `.3`. (planned)
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R010.1
Model and command: the hosted profile renders a connection sheet
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Model and command: the hosted profile renders a connection sheet.** The profile table gains `hosted` with hook kind `none`, no loopback callback and the parts `skills` and `mcp`. `arbora plugin bundle --harness hosted` writes `connection.md` and `playbook.md` and no plugin manifest. `connection.md` names the configured door endpoint (the existing endpoint setting of `_endpoint`), the streamable HTTP transport and the hosted client ID. `playbook.md` holds the door skills as one playbook text. An endpoint that is not `https`, or whose host is a loopback address, refuses `HOSTED_ENDPOINT_UNREACHABLE`, because a hosted agent cannot reach it; Arbora does not open any exposure to fix that. `install --harness hosted` refuses `HOSTED_HARNESS` and prints the steps to paste both files into the vendor settings. Caller chain: `cli.py::bundle_command` → `compose_bundle` → `render.py::render_hosted`. Shape: a `HookKind.NONE` member and a `hosted` field in `profiles.py`; function `render_hosted(spec, out_dir)`; two `BundleRefusal` members; reuse `_copy_skills` text. Depends on: `ARBORA-HARNESS-PLUGINS-R002.2`. | Test: `tests/harness_plugins/test_render_hosted.py::test_connection_sheet_and_playbook_only` (planned).
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R010.2
Auth: a hosted client with the vendor redirect, never the native client
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Auth: a hosted client with the vendor redirect, never the native client.** A hosted agent cannot use a loopback callback. The identity contract gains one confidential client `arbora-hosted-mcp` whose redirect URIs are the deployment's configured `hosted_redirect_uris`, the vendor's fixed OAuth callback. With the key empty, which is the default, no hosted client is written and the hosted bundle refuses `HOSTED_CLIENT_UNSET`. Its default scopes are the native scopes plus `workstream:read` and `workstream:write`. The door serves the protected-resource document on its configured endpoint. The bundle names the client ID and holds no secret; the developer pastes the client secret into the vendor settings from the credential store. The contract never changes the identity provider's sign-in flows or brokers. Caller chain: `arbora/identity/client_contract.py::build_contract` → the hosted `ClientSpec`. Shape: one `ClientSpec` and a `hosted_redirect_uris` config key in `ContractConfig`. Depends on: `ARBORA-IDENTITY-R030.4`. | Test: `tests/identity/test_client_contract.py::test_hosted_client_has_vendor_redirect_and_no_loopback` (planned).
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HARNESS-PLUGINS-R010.3
Workstream: the playbook attaches and checkpoints, with a repository workspace key
Definition — ARBORA-HARNESS-PLUGINS / ARBORA-HARNESS-PLUGINS — Coding harness plugins generated from the registryCanonical requirement and verification source
**Workstream: the playbook attaches and checkpoints, with a repository workspace key.** A hosted agent has no hook. The playbook tells the agent to call `write` with `workstream.attach` at task start and `workstream.checkpoint` before it finishes. A hosted machine path names no developer workspace, so the hosted profile reports `workspace_root` as the repository remote and branch. Arbora hashes it with the principal as for D5. A developer harness on the same repository joins the same workstream only when owner decision D9 maps local roots to the same key. Caller chain: the playbook text → MCP `write` → `workstreams.py::handle_attach`. Shape: playbook steps in `render_hosted`; no new operation. Depends on: `ARBORA-HARNESS-PLUGINS-R004.2`, D9. | Test: `tests/harness_plugins/test_render_hosted.py::test_playbook_attaches_and_checkpoints` (planned).
requirementARBORA-HARNESS-PLUGINSSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST
ARBORA-HOST — Arbora host composition and ownership boundary
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R001
The import boundary census guards the composition owners (rollup)
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The import boundary census guards the composition owners (rollup).** Subsystem: host composition. The ownership decision lives in `contracts/composition-owners.md`. Caller chain: the CI job that runs `pytest tests/architecture` → `arbora/architecture/boundary_census.py::ImportBoundaryCensus.census` over every file under `arbora/`. The seeds file is `architecture/component-registry-boundary-seeds.yml` (`ARBORA-HOST-R012`). A file that imports outside an owner's `public_import_surface` is a violation and fails the job. Children `.1` to `.10` carry the concrete slices. Depends: `ARBORA-HOST-R012`. | Satisfied when children `.1` to `.10` pass. The root check is `tests/architecture/test_host_import_boundaries.py::test_webui_host_imports_only_public_runtime_surfaces` and `tests/architecture/test_boundary_census.py::test_census_refuses_an_import_outside_the_public_surface` (L2).
requirementARBORA-HOSTSPECIFIED9760bef27075
ARBORA-HOST-R001.1
Arbora owns the MCP, REST and API serving code that meristem 3.0.0 drops
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora owns the MCP, REST and API serving code that meristem 3.0.0 drops.** The agent runtime keeps only the harness. Arbora holds the served MCP backing surface in `arbora/mcp_server/backing/` (graph tools, server factory, tasks extension, intent contract, remote OAuth broker, client credentials). It holds the control-plane contracts and the single session port in `arbora/api/contracts/`. It holds WebUI contact and voice delegation in `arbora/webui_host/`. Arbora imports no agent runtime `mcp`, `gateway`, `server` or `api` module and requires `meristem>=3.0.0,<4.0.0`. Child slice of `ARBORA-HOST-R001`. Caller chain: the `arbora` console script (`arbora.console:main`) → `arbora/mcp_server/server.py::mcp_server` → modules under `arbora/mcp_server/backing/`. The layout test reads every `.py` file under `arbora/`. Shape: packages `arbora/mcp_server/backing/`, `arbora/api/contracts/` and `arbora/webui_host/`. The check is a regex over file text in `tests/test_package_layout.py`. No new helper. | `tests/test_package_layout.py::test_arbora_imports_no_au_serving_packages` finds no such import under `arbora/`.
requirementARBORA-HOSTVERIFIED4eb2b408bd93
a78249aec3fd
tests/test_package_layout.py:117
ARBORA-HOST-R001.2
Arbora registers the harness host bindings at startup
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora registers the harness host bindings at startup.** The `arbora` MCP entry point registers three bindings with `meristem.host_ports`. The native toolset provider serves its operations through the governed `_execute_tool` path. The fleet catalog provider maps each server to its public prefix and URL from the served multiplexer. The session keepalive factory renews the session. Shutdown clears the bindings. Without them the harness fails closed. Child slice of `ARBORA-HOST-R001`. | `tests/mcp_server/test_harness_host.py` proves fail-closed before registration, bound tools, fleet and keepalive after it, and cleared bindings after shutdown.
requirementARBORA-HOSTSPECIFIED120446dcdd0c
192099593cdd
25e15e2108e1
2763cd78b6bc
52ad3952c2c8
tests/mcp_server/test_harness_host.py:110
tests/mcp_server/test_harness_host.py:142
tests/mcp_server/test_harness_host.py:29
tests/mcp_server/test_harness_host.py:37
tests/mcp_server/test_harness_host.py:77
ARBORA-HOST-R001.2.1
Arbora binds the run-loop providers at startup
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora binds the run-loop providers at startup.** `bind_run_ports()` registers a run decision provider, a model provider and a run event sink with `meristem.host_ports`. The engine serves no run-plan decision, so the decision provider returns the harness default plan over the Arbora model registry. The model provider builds a chat-completions-compatible model for a registry endpoint. The event sink writes each run event to the engine as a `RunEvent` node. `AgentRunPort` adapts the harness `AgentRunExecutor` to the Arbora agent execution port. A run without a model fails closed. Child slice of `ARBORA-HOST-R001.2`. | `tests/test_agent_runs.py` runs an agent through `AgentRunPort` with a fake model and checks the persisted run events. It also checks the registry model and the fail-closed run.
requirementARBORA-HOSTVERIFIED25e15e2108e1
2763cd78b6bc
52ad3952c2c8
9bd22960a7ea
e41d67a0bcca
tests/a2a/test_failed_usage.py:20
tests/mcp_server/test_task_plan.py:18
tests/mcp_server/test_task_plan_failure.py:18
tests/mcp_server/test_task_plan_runtime.py:31
tests/mcp_server/test_task_plan_settings.py:14
ARBORA-HOST-R001.2.2
A served agents.run call runs end to end
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**A served agents.run call runs end to end.** The invoke pipeline admits the call and dispatches it to the A2A service. The A2A WorkItem authority admits one engine WorkItem through `arbora.work_items` and leases it. The harness `AgentRunExecutor` runs the agent, and the authority commits the outcome to the WorkItem. The run events reach the engine as `RunEvent` nodes. The idempotency key derives the task id, so the A2A authority owns replay for `agents.run`. Every `InvokeServices` that registers `agents.run` declares that owner. The served `arbora` factory runs an A2A `message/send` the same way. Child slice of `ARBORA-HOST-R001.2`. Caller chain: `agents.run` served call → invoke pipeline (`arbora/api/invoke/`) → `arbora/a2a/authority.py::WorkItemA2AAuthority._run` → `arbora/agent_runs.py::AgentRunPort.execute_agent` → harness `AgentRunExecutor`. Shape: `arbora/agent_runs.py::AgentRunPort` and `arbora/work_items.py` already hold the WorkItem admit, lease and commit calls; this row adds no type and reuses them. | `tests/test_agents_run_end_to_end.py` invokes `agents.run` with a fake model and a fake engine client. It also boots the served factory and posts `message/send` to `/a2a`. Each test checks the completed task, the committed outcome and the persisted run events. Test: `tests/test_agents_run_end_to_end.py::test_served_agents_run_executes_through_a2a_work_items_and_the_harness` and `::test_served_process_runs_an_agent_over_its_http_a2a_route`.
requirementARBORA-HOSTVERIFIEDcc6349408a14
d3d50ac5d766
tests/test_agents_run_end_to_end.py:130
tests/test_agents_run_end_to_end.py:177
ARBORA-HOST-R001.2.3
The served process mounts the operation-invoke API
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The served process mounts the operation-invoke API.** When `GRAPH_SERVICE_ENDPOINTS` names an engine, `mcp_server()` mints the process authority first and composes one `HostedInvocation`. The composition joins the generated registry and the bootstrap client factories over one engine client pool. It adds the control-lease plan store, the policy gate and a schema validator over the engine contract schemas. The web UI host calls `POST /api/v1/ops/<op_id>` on that API. `fleet.call` refuses until the served root composes the governed fleet operations. Child slice of `ARBORA-HOST-R001.2`. Caller chain: `arbora/mcp_server/server.py::mcp_server` → `arbora/mcp_server/hosted_invocation.py::HostedInvocation.mount_http` → `POST /api/v1/ops/<op_id>` → the invoke pipeline. Shape: `HostedInvocation` in `arbora/mcp_server/hosted_invocation.py` is the one composition type; it joins the generated registry, the bootstrap client factories and the plan store, and reuses `arbora/mcp_server/served_invocation.py`. | `tests/test_served_operation_api.py` mounts the composed API the way the web UI co-service does. It calls `agents.run`, `query.uql` and `eg.graph.GetNodesByLabel` over HTTP and checks each value the web UI parses, including the `memory.*` operations. It also lists the served MCP intent verbs and runs `find`. Test: `tests/test_served_operation_api.py::test_served_api_answers_the_web_ui_operations` and `::test_served_mcp_surface_lists_the_intent_verbs_and_finds`.
requirementARBORA-HOSTVERIFIED120446dcdd0c
192099593cdd
tests/test_served_operation_api.py:220
tests/test_served_operation_api.py:332
ARBORA-HOST-R001.2.4
Tool-call RunEvents are queryable provenance
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
Caller chain: MCP `tools/call` → `arbora/mcp_server/runtime.py::_emit_native_intent_event` (line 462) → the run-event port of `meristem.host_ports`. Shape: `_emit_native_intent_event` in `arbora/mcp_server/runtime.py` sets the `type`, `run_id`, `tool_name`, `op`, `server`, `tool` and `ok` properties on the RunEvent node; no new type. | **Tool-call RunEvents are queryable provenance.** Each `tool_call` RunEvent stores the governed verb (`tool_name`), the operation (`op`), and for `fleet.call` the connector `server` and `tool`, plus `ok`, as node properties. A UQL property filter then answers which connector tool a run used, without parsing the payload string. Proving test: `tests/mcp_server/test_arbora_016_served_fixes.py::test_tool_call_run_events_carry_queryable_tool_provenance`.
requirementARBORA-HOSTVERIFIEDfe6c51770bc3
tests/mcp_server/test_arbora_016_served_fixes.py:179
ARBORA-HOST-R001.3
Arbora ships one registry-backed client
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora ships one registry-backed client.** The typed REST client `arbora.client` reads operation IDs, schemas and the registry digest from the in-code registry; no generated client or contract file is committed. Arbora ships no hand-written gateway client. The stable application API facade lives in `arbora.api.contracts`. Child slice of `ARBORA-HOST-R001`. Caller chain: a caller imports `arbora.client` → `arbora/client/invoke.py::invoke` → `HttpTransport` in `arbora/client/http.py`. Shape: `registry_digest` and the schema lookup in `arbora/client/_models.py` read `get_registry()` from `arbora/api/ops/registry_factory.py`. `Transport` is a Protocol in `invoke.py`. `OperationError` lives in `http.py`. | `tests/api/test_client_http.py` invokes operations through `arbora.client` against the served registry digest. Test: `tests/api/test_client_http.py::test_invoke_posts_the_operation_with_a_bearer_token`.
requirementARBORA-HOSTVERIFIED166a7322d0e6
2117d4306d7c
9e7f6499d96f
tests/api/test_client_http.py:16
ARBORA-HOST-R001.4
Content is found by convention; no provider entry-point group exists
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Content is found by convention; no provider entry-point group exists.** Arbora declares no `scion_sdk.*_providers` group and no `meristem.*_providers` group. Its own `skills/`, `prompts/` and `ontology/` directories are found with the connector SDK directory convention. Child slice of `ARBORA-HOST-R001`. Caller chain: `arbora/core/providers.py::own_content` → `scion_sdk.connector.content_dirs`. `pytest` reads `pyproject.toml` to prove no provider group exists. Shape: `own_content()` and `content_connectors()` in `arbora/core/providers.py` return the SDK `ResolvedConnector`. No entry-point group is read. | `tests/deployment/test_arbora_deploy_artifacts.py` asserts `pyproject.toml` declares no provider group. Test: `tests/deployment/test_arbora_deploy_artifacts.py::test_content_is_found_by_convention_and_packaged`.
requirementARBORA-HOSTVERIFIED7d6d317b490a
8e5b4ec2b3fc
9e7f6499d96f
tests/deployment/test_arbora_deploy_artifacts.py:103
ARBORA-HOST-R001.5
The moved serving code keeps its tests and runs on FastMCP 4
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The moved serving code keeps its tests and runs on FastMCP 4.** The tests of the MCP, API and gateway modules that Arbora took over live under `tests/mcp_server/backing/`, `tests/api/contracts/` and `tests/gateway/`. They import the Arbora paths. Arbora declares `fastmcp>=4` itself. Child slice of `ARBORA-HOST-R001`. Caller chain: `pytest` collects `tests/mcp_server/backing/`, `tests/api/contracts/` and `tests/gateway/`, which import the Arbora paths. `test_arbora_declares_and_runs_fastmcp_4` reads the installed package metadata. Shape: the floor `fastmcp>=4` in `pyproject.toml`. The check uses `importlib.metadata.requires` and `version` in `tests/test_package_layout.py`. No new helper. | `tests/test_package_layout.py::test_arbora_declares_and_runs_fastmcp_4` checks the declared floor and the installed major version.
requirementARBORA-HOSTVERIFIED9e7f6499d96f
tests/test_package_layout.py:133
ARBORA-HOST-R001.6
Arbora publishes its operation registry as versioned data
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora publishes its operation registry as versioned data.** `arbora/mcp_server/arbora_operations.json` holds the schema version, digest, intent verbs, operations, tool verbs and supported features. `python -m arbora.mcp_server.operation_registry --write` generates it from the served tool specs. The harness skill validation reads this document. Child slice of `ARBORA-HOST-R001`. Caller chain: `python -m arbora.mcp_server.operation_registry --write` → `main` → `render` → `operation_registry_document`. The published file is `arbora/mcp_server/arbora_operations.json`. Shape: `operation_registry_document`, `registry_digest` and `published_operation_registry` in `arbora/mcp_server/operation_registry.py` build from `TOOL_SPECS` in `arbora/mcp_server/backing/tool_specs.py`. | `tests/mcp_server/test_operation_registry.py` proves the packaged document is current, names exactly the served operations and loads through the harness reader. Test: `tests/mcp_server/test_operation_registry.py::test_published_document_is_current` and `::test_document_names_exactly_the_served_operations`.
requirementARBORA-HOSTVERIFIED9e7f6499d96f
tests/mcp_server/test_operation_registry.py:11
tests/mcp_server/test_operation_registry.py:17
ARBORA-HOST-R001.8
Gate G-26: the served MCP surface is wired to medulla
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Gate G-26: the served MCP surface is wired to medulla.** Every served `engine_<domain>` family resolves to an installed medulla client class. Every served method is an EG coroutine. `graph_query scope=uql` dispatches to the engine's `uql` method. Only the medulla planner plans natural-language queries (`nl_query`, `graph_ask`, `ask_data`). Each tool calls `QueryClient.nl_query` through the governed `engine_query` dispatch under `kg:read`. Arbora imports no local NL planner. Arbora refuses options that the engine planner cannot honor with `invalid_request`. Replaces meristem certification gate G-26. Child slice of `ARBORA-HOST-R001`. Caller chain: CI runs `tests/mcp_server/test_engine_wiring_gate.py`, which reads `engine_tools` and `query_tools` in `arbora/mcp_server/backing/tools/` and the installed `medulla.client` classes. Shape: `ENGINE_DOMAINS` and `_DOMAIN_CLASSES` in `arbora/mcp_server/backing/tools/engine_tools.py`. The gate adds no helper. | `tests/mcp_server/test_engine_wiring_gate.py` passes against the installed medulla, including the proof that each NL tool reaches only `engine_query.nl_query`. Test: `tests/mcp_server/test_engine_wiring_gate.py::test_every_engine_domain_family_resolves_to_an_eg_client_class` and `::test_every_served_engine_method_is_an_eg_coroutine`.
requirementARBORA-HOSTVERIFIED3f7190f32493
9e7f6499d96f
tests/mcp_server/test_engine_wiring_gate.py:115
tests/mcp_server/test_engine_wiring_gate.py:22
tests/mcp_server/test_engine_wiring_gate.py:34
tests/mcp_server/test_engine_wiring_gate.py:44
tests/mcp_server/test_engine_wiring_gate.py:65
ARBORA-HOST-R001.9
The tiny profile serves the graph with zero containers (rollup)
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The tiny profile serves the graph with zero containers (rollup).** Subsystem: deployment profile `tiny`. Arbora and the embedded engine run with no message broker, relational store or remote graph store. The profile and its engine topology `unified-in-process` come from `arbora/deployment/config_generator.py`. Child `.1` proves the import footprint. Child `.2` proves the served graph. Depends: `ARBORA-HOST-R001.9.1`, `ARBORA-HOST-R001.9.2`. | Satisfied when children `.1` and `.2` pass. The root journey is `tests/deployment/test_tiny_profile_served_graph.py::test_tiny_profile_writes_and_reads_one_node` (L3).
requirementARBORA-HOSTSPECIFIED9e7f6499d96f
tests/deployment/test_small_profile_footprint.py:33
ARBORA-HOST-R001.9.1
The served surface imports no external-service driver
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The served surface imports no external-service driver.** A cold import of the gateway routes and the MCP server entry loads no broker client. It also loads no relational, labelled-property or remote RDF store client. Child slice of `ARBORA-HOST-R001.9`. Caller chain: `pytest tests/deployment` → `tests/deployment/test_small_profile_footprint.py` imports `arbora.gateway` routes and the `arbora/mcp_server/server.py` entry in a clean interpreter. Shape: One test in `tests/deployment/test_small_profile_footprint.py` inspects `sys.modules` after the cold import; no production file changes. | `tests/deployment/test_small_profile_footprint.py` checks the loaded modules in a clean interpreter. Test: `tests/deployment/test_small_profile_footprint.py::test_cold_import_of_the_served_surface_loads_no_external_driver`.
requirementARBORA-HOSTVERIFIEDe755549375e6
tests/deployment/test_small_profile_footprint.py:34
ARBORA-HOST-R001.9.2
The tiny profile cold-boots and serves graph reads and writes
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The tiny profile cold-boots and serves graph reads and writes.** Subsystem: deployment profile `tiny`. Entry point: the host started with `DEPLOYMENT_PROFILE=tiny` and `ENGINE_TOPOLOGY=unified-in-process`. Caller chain: gateway routes from `arbora/gateway/graph_api.py` → operations `eg.graph.AddNode` and `eg.graph.GetNodeProperties`. The test boots the host from a temporary `ARBORA_CONFIG_DIR` with no broker, relational or remote graph endpoint set. It writes one node through `write` and reads it back through `ask`, both over HTTP. The engine binary comes from the installed `medulla` package, so the test needs no env override and never skips. Refusal: a configured external endpoint fails the test setup. Evidence: the node round-trips with its tenant. Writes: one node. Depends: `ARBORA-HOST-R001.9.1`, `ARBORA-DEPLOY-R009.2`. Shape: `tests/deployment/test_tiny_profile_served_graph.py` (new) boots the host with the fixtures in `tests/deployment/`; production code is `arbora/gateway/graph_api.py` and the `write` and `ask` intent tools, unchanged. | Test: `tests/deployment/test_tiny_profile_served_graph.py::test_tiny_profile_writes_and_reads_one_node` (L3) asserts the read equals the write and a second tenant reads nothing.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R001.10
Arbora discovers all installed content through `installed_connectors()`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora discovers all installed content through `installed_connectors()`.** `arbora.core.providers` returns arbora's own content plus every installed package that declares `scion_sdk.connector`, connector or content-only. It reads no provider entry-point group. Skill identity is global. Arbora logs a duplicate name with both owners, and the first connector in fleet-name order keeps it. Child slice of `ARBORA-HOST-R001`. Caller chain: `arbora/core/providers.py::content_connectors` → `installed_connectors()` in `scion_sdk.connector`. `resolve_skill_provider_dirs` then collects the skill directories. Shape: `own_content()`, `content_connectors()` and `resolve_skill_provider_dirs()` in `arbora/core/providers.py` over the SDK `ResolvedConnector`. | `tests/test_installed_content.py` covers discovery of a fixture content-only package, arbora's own content, and the duplicate-skill report. Test: `tests/test_installed_content.py::test_discovery_finds_content_only_package_and_arbora` and `::test_duplicate_skill_identity_keeps_first_and_reports`.
requirementARBORA-HOSTVERIFIED3f7190f32493
7d6d317b490a
8e5b4ec2b3fc
fa15da95f51d
tests/core/test_providers.py:15
tests/test_installed_content.py:101
tests/test_installed_content.py:93
ARBORA-HOST-R002
The installed engine client exposes every symbol that Arbora imports
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The installed engine client exposes every symbol that Arbora imports.** Subsystem: host composition. Caller chain: the CI job that runs `pytest tests/architecture` → `tests/architecture/test_engine_client_surface.py`. The gateway and fleet modules call the released `medulla` client directly, for example `arbora/fleet/epistemic_adapter.py` and `arbora/gateway/registry_api.py`. Arbora keeps a single implementation of each call. The test scans every `arbora/**/*.py` with the `ast` module for `from medulla... import name` and `import_module('medulla...')`. It then imports each module from the installed client and asserts every named symbol exists and is callable. A rename in the client fails this test before any runtime path does. The client is hand-written and tested against Rust round-trip vectors (see `MEDULLA-CONTRACT-R001`). Refusal: the test reports each missing `module:symbol`. Depends: `MEDULLA-CONTRACT-R001`. Shape: `tests/architecture/test_engine_client_surface.py` (new) walks `arbora/**/*.py` with `ast`, reusing the file walker of `ImportBoundaryCensus` in `arbora/architecture/boundary_census.py`, and imports each named symbol from the installed `medulla` client. | Test: `tests/architecture/test_engine_client_surface.py::test_every_imported_client_symbol_exists` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R004
The layout gate keeps one gateway package
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The layout gate keeps one gateway package.** The decision lives in `contracts/single-gateway.md`. Rule: `arbora/gateway/` is the only top-level package whose name holds `gateway`; `pyproject.toml` declares no `arbora-daemon` script and no `gateway-widgets` extra; `arbora.gateway.daemon` has no `main`. Caller chain: CI runs `tests/architecture/test_single_gateway_implementation.py`, which lists the packages under `arbora/` and reads the scripts and extras in `pyproject.toml`. Shape: the single package `arbora/gateway/`. The check is `test_single_gateway_and_retired_script_and_extra_absent` over `pathlib` and `tomllib`. No new helper. | `tests/architecture/test_single_gateway_implementation.py::test_single_gateway_and_retired_script_and_extra_absent` (L1), bound to this ID.
requirementARBORA-HOSTVERIFIED45283d0137b9
4d1f17345cbb
f37f67d33d37
tests/architecture/test_single_gateway_implementation.py:40
ARBORA-HOST-R005
Every retired MCP action resolves to a served registry operation or a named owner row
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Every retired MCP action resolves to a served registry operation or a named owner row.** Subsystem: MCP serving in `arbora/mcp_server/`. Caller chain: MCP `tools/call` of a retired tool name. Next call: `arbora/mcp_server/backing/tools/analysis_tools.py` or `write_ingest_tools.py` action dispatch. Next call: `legacy_action_mapping.resolve_legacy_action` (`.2.9`). Next call: registry `invoke` (`ARBORA-OPS-R007`). The retired host is the agent runtime's MCP host as of the commit before `e8412d800` in `meristem`. Its action list is frozen in `tests/mcp_server/fixtures/legacy_mcp_actions.json` (`.2.8`). Rule: every legacy action maps to exactly one registry operation id, or to a `retired_by` owner row id. No third outcome exists. Refusal: an unmapped action returns `UNAVAILABLE` through `not_served` with `details.spec_row` set. Evidence: the served call writes its normal `invoke` audit record. Write path: none new. Depends: `ARBORA-OPS-R007`, `ARBORA-HOST-R005.2`, `ARBORA-HOST-R005.2.9`. | Parity test `tests/mcp_server/test_legacy_action_parity.py::test_every_legacy_action_has_resolvable_mapping` (L2). Served proof `tests/mcp_server/test_legacy_action_served.py::test_mapped_and_retired_actions_over_mcp` (L3).
requirementARBORA-HOSTSPECIFIED4ca77fbff9e3
ARBORA-HOST-R005.1
Landed: the typed approved-mapping model
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Landed: the typed approved-mapping model.** `arbora/mcp_server/legacy_action_mapping.py` defines `APPROVED_ACTION_MAPPING`, `build_approved_action_mapping` and `validate_served_actions` (construction-time duplicate refusal, lookup-time unmapped-action refusal). `runtime.py` defines `served_legacy_actions_within_approved_mapping` over this table, but nothing calls it against the actual served MCP operation list yet. Caller chain: the unit tests call `build_approved_action_mapping` and `validate_served_actions`. The production wrapper `served_legacy_actions_within_approved_mapping` (`arbora/mcp_server/runtime.py:356`) has no caller yet. Shape: `ActionOperationMapping`, `build_approved_action_mapping`, `validate_served_actions`, `DuplicateActionMappingError` and `UnmappedActionError` in `arbora/mcp_server/legacy_action_mapping.py`. | Proven today by `tests/mcp_server/test_legacy_action_mapping.py`. Tests: `tests/mcp_server/test_legacy_action_mapping.py::test_unmapped_served_action_is_refused` and `::test_duplicate_action_in_table_construction_is_refused`.
requirementARBORA-HOSTVERIFIEDc7eda638d959
tests/mcp_server/test_legacy_action_mapping.py:17
tests/mcp_server/test_legacy_action_mapping.py:30
tests/mcp_server/test_legacy_action_mapping.py:37
ARBORA-HOST-R005.2
Parity test proves no served action is dropped
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Parity test proves no served action is dropped.** Rollup of `ARBORA-HOST-R005.2.1` to `ARBORA-HOST-R005.2.9`. The approved table covers fewer actions than the frozen legacy list. Each family row extends `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py`. `.2.9` adds the resolver that gives the table its production caller. `.2.8` adds the parity test and lands last. Policy for every family row: a pure graph read maps to `query.uql` or `query.nl`. A choice or finance action maps to `retired_by` the owner row already named in its `not_served` call. Child slice of `ARBORA-HOST-R005`. | Satisfied when `ARBORA-HOST-R005.2.1` to `ARBORA-HOST-R005.2.9` are verified. Proof level is that of the children.
requirementARBORA-HOSTSPECIFIEDc7eda638d959
ARBORA-HOST-R005.2.1
Approved mapping for the analyze action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the analyze action family.** Subsystem: MCP serving. Caller chain: as `ARBORA-HOST-R005.2.9`. Family `analyze`: `code_context`, `call_graph`, `routes`, `change_coupling`, `blast_radius`, `similar_code`, `explain`, `process_writeback` are mapped. `.2.1.3` maps the rest. Rule: code-graph reads go to `query.uql`; `explain` to `query.nl`; `process_writeback` to `eg.storage.WriteBack`. Code: tuples `CODE_NAVIGATION_ACTIONS`, `IMPACT_ACTIONS`, `SIMILARITY_ACTIONS` in `legacy_action_mapping.py`. Per ask-the-graph, no per-question read operation is added. Depends: `ARBORA-OPS-R007`. Child slice of `ARBORA-HOST-R005.2`. | Parity rows `tests/mcp_server/test_legacy_action_parity.py::test_family_analyze_mapped_and_resolvable` (L2). Each mapped operation id is in `arbora/api/generated/registry.json`. Rollup: `.2.1.3` verified.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.1.1
Add arbora operation for code navigation actions
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Add arbora operation for code navigation actions.** The table maps these actions to the engine query operations `query.uql` and `query.nl`, so no new operation is added. Child slice of `ARBORA-HOST-R005.2.1`. Caller chain: `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` maps `code_context`, `call_graph`, `routes` and `explain` to `query.uql` and `query.nl`. `arbora/api/ops/query.py::operations` registers both. Shape: `CODE_NAVIGATION_ACTIONS` and the `explain` entry in `legacy_action_mapping.py`. The resolution check reuses `operations()` from `arbora/api/ops/query.py`. | Satisfied when the operation exists in the registry and a test bound to this ID proves it resolves. Test: `tests/mcp_server/test_legacy_analyze_intent_mapping.py::test_code_navigation_actions_resolve_to_engine_query_ops`.
requirementARBORA-HOSTVERIFIEDe1f67d6033f1
tests/mcp_server/test_legacy_analyze_intent_mapping.py:31
ARBORA-HOST-R005.2.1.3
Map the remaining analyze actions without adding read operations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map the remaining analyze actions without adding read operations.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. `similar_code` is already in `SIMILARITY_ACTIONS` and maps to `query.uql`. Add these entries in `legacy_action_mapping.py`. `code_evolution`, `adr`, `cross_repo_usages`, `code_metrics`, `arch_report`, `context`, `enrichment_coverage`: `query.uql`. `inspect`: `ontology.inspect`. `security_scan`: `security.posture.read`. `readiness`: `ops.doctor`. `executable_rag`, `recommend`, `placement_plan`, `infra_sweep`, `distill_memory`, `world_model_rollout`, `research_ingest`, `check_constraints`: `retired_by` the owner row in each existing `not_served` call. Refusal: `UNAVAILABLE` for `retired_by` entries. Evidence: none new. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.1`. Caller chain: planned, not yet wired. Today `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` maps `similar_code` to `query.uql`. The other listed actions have no entry. Shape: add `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` for the listed actions. The `retired_by` field on `ActionOperationMapping` is new. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_analyze_intent_mapping.py::test_remaining_analyze_actions_mapped` (L2), bound to this ID. It covers `similar_code` and every action listed. Partial proof today: `tests/mcp_server/test_legacy_analyze_intent_mapping.py::test_similarity_action_resolves_to_engine_query_ops` covers `similar_code` only.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.1.4
Add arbora operation for `process_writeback`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Add arbora operation for `process_writeback`.** The table maps `process_writeback` to the engine operation `eg.storage.WriteBack`, which the registry passes through, so no new operation is added. Child slice of `ARBORA-HOST-R005.2.1`. Caller chain: `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` maps `process_writeback` to `eg.storage.WriteBack`. The registry resolves it through `get_registry()`. Shape: one entry in `legacy_action_mapping.py`. The check reuses `get_registry` from `arbora/api/ops/registry_factory.py`. | Satisfied when the operation exists in the registry and a test bound to this ID proves it resolves. Test: `tests/mcp_server/test_legacy_ingest_writeback_mapping.py::test_process_writeback_resolves_to_engine_write_back`.
requirementARBORA-HOSTVERIFIED22db6b4614c7
tests/mcp_server/test_legacy_ingest_writeback_mapping.py:27
ARBORA-HOST-R005.2.1.5
Approve the analyze mappings
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approve the analyze mappings.** Replace analyze entries in `APPROVED_ACTION_MAPPING` with real operation IDs from the children above. This covers the whole family under `ARBORA-HOST-R005.2.1`. Caller chain: `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` entries for the analyze family resolve through `get_registry()` in `arbora/api/ops/registry_factory.py`. Shape: the entries of `CODE_GRAPH_QUERY_ACTIONS`, `explain` and `process_writeback`. The check is `_resolves` in `tests/mcp_server/test_legacy_ingest_writeback_mapping.py`. | An ID-bound test checks each listed action in `APPROVED_ACTION_MAPPING`. It confirms every mapped ID exists in `{op.id for op in operations()}` from `arbora/api/ops/*.py`. Test: `tests/mcp_server/test_legacy_ingest_writeback_mapping.py::test_every_analyze_action_resolves_in_the_registry`.
requirementARBORA-HOSTVERIFIED22db6b4614c7
tests/mcp_server/test_legacy_ingest_writeback_mapping.py:33
ARBORA-HOST-R005.2.2
Approved mapping for the configure action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the configure action family.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Family `configure`: `describe`, `get`, `get_config`, `list_config`, `generate_config`, `config_doctor`, `config_reference`, `set_secret`, `vault_sync`, `install_hooks`, `uninstall_hooks`, `health`, `system_doctor`, `preflight`, `doctor`. Rule: config reads map to `ops.config`; doctor and health checks map to `ops.doctor`. `set_secret` and `vault_sync` map to `fleet.call` with server `openbao-mcp`, so secrets stay in the vault connector. Hook actions map to `ops.hooks.install` and `ops.hooks.uninstall` from `ARBORA-OPS-R879`. Today four entries name ids absent from the registry: `secret_vault.set_secret`, `secret_vault.vault_sync`, `graph_loops.install_hooks`, `graph_loops.uninstall_hooks`; replace them. Depends: `ARBORA-OPS-R879`, `ARBORA-OPS-R007`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`. Today the table maps `describe`, `get`, `get_config` and `list_config` to `ops.config`, which `arbora/api/ops/ops.py` registers. The four hook and secret entries still name ids the registry lacks. Shape: edit `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py`. `ops.config` and `ops.doctor` come from `arbora/api/ops/ops.py`. `fleet.call` comes from `arbora/api/ops/fleet.py`. | Planned test, not yet in the tree. Parity rows `tests/mcp_server/test_legacy_action_parity.py::test_family_configure_mapped_and_resolvable` (L2). Each mapped operation id is in `arbora/api/generated/registry.json`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3
Approved mapping for the ingest action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the ingest action family.** Subsystem: MCP serving. Caller chain: as `ARBORA-HOST-R005.2.9`. Family `ingest` covers the 41 `graph_ingest` actions plus job and pack actions. Children `.2.3.2` to `.2.3.7` map them; `.2.3.8` is the final table check. Rule: submission, job and sync actions map to `ingest.*` operations. Extraction and cohort actions map to `retired_by` the `MEDULLA-INGEST-WORKER` row named in each `not_served` call. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2`. | Rollup: `ARBORA-HOST-R005.2.3.2` to `ARBORA-HOST-R005.2.3.8` verified. Parity row `test_family_ingest_mapped_and_resolvable` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.1
Map `sync` to `ingest.sources.sync`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map `sync` to `ingest.sources.sync`.** The only legacy ingest action with an existing registry operation: add `ActionOperationMapping("sync", "ingest.sources.sync")` with a bound resolution test. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` maps `sync` to `ingest.sources.sync`. `arbora/api/ops/ingest.py` registers it. Shape: the entry `ActionOperationMapping("sync", "ingest.sources.sync")` in `legacy_action_mapping.py`. | Satisfied when the mapping is in the table and a bound test proves the id resolves. Test: `tests/mcp_server/test_legacy_action_mapping_ingest_sync.py::test_sync_maps_to_registered_ingest_operation`.
requirementARBORA-HOSTVERIFIED567a2b417ed7
tests/mcp_server/test_legacy_action_mapping_ingest_sync.py:11
ARBORA-HOST-R005.2.3.2
Map ingest submission actions to the submission operation
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map ingest submission actions to the submission operation.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. `ingest`, `ingest_url`, `ingest_knowledge_pack`, `fact_extract`, `distill` map to `ingest.submissions.create`, which `arbora/ingest/service.py` serves. Remap the non-registry `ingest_knowledge_pack` entry. Params carry `kind` equal to the legacy action name. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` maps `INGEST_SUBMISSION_ACTIONS` to `ingest.submissions.create`, which `arbora/ingest/service.py` serves. The `kind` parameter mapping and the `retired_by` field are not in the code yet. Shape: `INGEST_SUBMISSION_ACTIONS` and the mapped entries in `legacy_action_mapping.py`. The submission handler is in `arbora/ingest/service.py`. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_ingest_writeback_mapping.py::test_submission_actions_resolve` (L2), bound to this ID. Partial proof today: `tests/mcp_server/test_legacy_ingest_writeback_mapping.py::test_ingest_submission_actions_resolve_in_the_registry`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.3
Map `corpus` to the ingest source operations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map `corpus` to the ingest source operations.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. `corpus` maps to `ingest.sources.list` for listing. Corpus build and rebuild are `retired_by` the `MEDULLA-INGEST-WORKER` row in its `not_served` call. No new operation is added. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`. The table has no `corpus` entry today. `ingest.sources.list` is registered in `arbora/api/ops/ingest.py`. Shape: add one `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` for `corpus`. The `retired_by` field is new. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_parity.py::test_corpus_mapped` (L2), bound to this ID.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.4
Map job lifecycle actions to the job operations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map job lifecycle actions to the job operations.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. `jobs` maps to `ingest.jobs.list`, `job_status` and `status` to `ingest.jobs.status`, `cancel` to `ingest.jobs.cancel`, `prioritize` to `ingest.jobs.prioritize`. `clear` is `retired_by` the owner row in its `not_served` call. Verify the existing entries stay. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` maps `jobs`, `job_status`, `cancel` and `prioritize` to the `ingest.jobs.*` operations in `arbora/api/ops/ingest.py`. `status` and `clear` have no entry yet. Shape: the existing entries in `legacy_action_mapping.py`. Add the `status` entry and the `retired_by` field for `clear`. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_ingest_writeback_mapping.py::test_job_actions_resolve` (L2), bound to this ID. Partial proof today: `tests/mcp_server/test_legacy_ingest_writeback_mapping.py::test_job_actions_resolve_in_the_registry`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.5
Map `rebuild_indexes` and `observe`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map `rebuild_indexes` and `observe`.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. `rebuild_indexes` maps to `ingest.repositories.index`. `observe` maps to `telemetry.read`. Both ids exist in the registry today. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`. The table has no `rebuild_indexes` or `observe` entry today. `ingest.repositories.index` and `telemetry.read` are registered under `arbora/api/ops/`. Shape: add two `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py`. No new operation. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_parity.py::test_rebuild_and_observe_mapped` (L2), bound to this ID.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.6
Map `materialize` and `materialize_source`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map `materialize` and `materialize_source`.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Both actions map to `ingest.sources.sync` with params `mode=materialize`. The `materialize_source` call adds `source`. No new operation is added. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`. The table has no `materialize` or `materialize_source` entry today. `ingest.sources.sync` is registered in `arbora/api/ops/ingest.py`. Shape: add two `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` with fixed parameters. No new operation. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_parity.py::test_materialize_actions_mapped` (L2), bound to this ID.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.7
Map `reflect` and `agent_toolkit`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Map `reflect` and `agent_toolkit`.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. `reflect` is `retired_by` the `MEDULLA-DECISION-ENGINE` row in its `not_served` call, since reflection is a choice. `agent_toolkit` maps to `fleet.catalog.list`. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`. The table has no `reflect` or `agent_toolkit` entry today. The id `fleet.catalog.list` is not registered under `arbora/api/ops/`. Shape: add two `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py`. The `agent_toolkit` target must exist in the registry before the entry is added. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_parity.py::test_reflect_and_toolkit_mapped` (L2), bound to this ID.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.3.8
Check the ingest family table is complete
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Check the ingest family table is complete.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Extend `APPROVED_ACTION_MAPPING` with every ingest action in `tests/mcp_server/fixtures/legacy_mcp_actions.json` under family `ingest`, using the ids from `.2.3.2` to `.2.3.7`. Include `sync`, `profile`, `cohort_*`, `extract_*`, `import_pack`, `curate_wiki`, `sync_second_brain`, `skill_workflows` and the skill-graph actions. Depends: `ARBORA-HOST-R005.2.3.2` to `ARBORA-HOST-R005.2.3.7`. Child slice of `ARBORA-HOST-R005.2.3`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`, with the family list read from `tests/mcp_server/fixtures/legacy_mcp_actions.json` (new). Shape: extend `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` from the ids of `.2.3.2` to `.2.3.7`. The fixture file is new. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_parity.py::test_family_ingest_mapped_and_resolvable` (L2) asserts every listed action is mapped and each operation id is in `arbora/api/generated/registry.json`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.4
Approved mapping for the query-memory action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the query-memory action family.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Family `query-memory` covers the legacy tools `graph_query`, `graph_memory`, `graph_write`. Read their action names from `tests/mcp_server/fixtures/legacy_mcp_actions.json`. Reads map to `query.uql`, `query.nl`, `query.sparql`, `query.sql`. Memory `recall`/`store`/`link` map to `memory.read` and `memory.write`. Graph writes map to `eg.*` mutation methods through the gateway. Entries for actions the registry cannot serve are `retired_by` the owner row named in the legacy `not_served` call. Otherwise they are `retired_by` the medulla row that owns the choice. Replace the invalid entries `recall_memory` (use `memory.read`) and `submit_sdd` (use `agents.plan_run`). Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`, with the action names read from `tests/mcp_server/fixtures/legacy_mcp_actions.json` (new). The table has no `memory.*` or graph-write entries for these tools yet. `query.nl`, `query.uql`, `memory.read` and `memory.write` are registered under `arbora/api/ops/`. Shape: add `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` for the family. The fixture file and the `retired_by` field are new. | Planned test, not yet in the tree. Parity rows `tests/mcp_server/test_legacy_action_parity.py::test_family_query_memory_mapped_and_resolvable` (L2). Each mapped operation id is in `arbora/api/generated/registry.json`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.5
Approved mapping for the orchestrate action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the orchestrate action family.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Family `orchestrate` covers the legacy tools `graph_orchestrate`, `graph_loops`, `graph_agents`, `graph_goals`, `graph_evolution`. Read their action names from `tests/mcp_server/fixtures/legacy_mcp_actions.json`. Run and task actions map to `agents.run`, `agents.plan_run`, `agents.tasks.get`, `agents.tasks.list`, `agents.tasks.cancel`. Goal and loop scheduling are choices and are `retired_by` medulla decision rows. Entries for actions the registry cannot serve are `retired_by` the owner row named in the legacy `not_served` call. Otherwise they are `retired_by` the medulla row that owns the choice. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`, with the action names read from `tests/mcp_server/fixtures/legacy_mcp_actions.json` (new). `agents.run`, `agents.plan_run` and `agents.tasks.*` are registered in `arbora/api/ops/agents.py`. Shape: add `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` for the family. The fixture file and the `retired_by` field are new. | Planned test, not yet in the tree. Parity rows `tests/mcp_server/test_legacy_action_parity.py::test_family_orchestrate_mapped_and_resolvable` (L2). Each mapped operation id is in `arbora/api/generated/registry.json`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.6
Approved mapping for the mine-learn action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the mine-learn action family.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Family `mine-learn` covers the legacy tools `graph_mine`, `graph_mine_deep`, `graph_learn`, `graph_evaluate`. Read their action names from `tests/mcp_server/fixtures/legacy_mcp_actions.json`. Mining and learning are engine computations. Each maps to the matching `eg.*` method, or is `retired_by` the medulla row that owns it. Evaluation verdicts are medulla choices. Entries for actions the registry cannot serve are `retired_by` the owner row named in the legacy `not_served` call. Otherwise they are `retired_by` the medulla row that owns the choice. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`, with the action names read from `tests/mcp_server/fixtures/legacy_mcp_actions.json` (new). The table has no mine or learn entries yet. Shape: add `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` for the family. The fixture file and the `retired_by` field are new. | Planned test, not yet in the tree. Parity rows `tests/mcp_server/test_legacy_action_parity.py::test_family_mine_learn_mapped_and_resolvable` (L2). Each mapped operation id is in `arbora/api/generated/registry.json`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.7
Approved mapping for the governance-ops action family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Approved mapping for the governance-ops action family.** Subsystem: MCP serving. Caller: as `ARBORA-HOST-R005.2.9`. Family `governance-ops` covers the legacy tools `graph_audit`, `graph_governance`, `graph_compliance`, `graph_bus`, `graph_ontology`. Read their action names from `tests/mcp_server/fixtures/legacy_mcp_actions.json`. Access and policy actions map to `access.*` and `policy.read`. Ontology actions map to `ontology.*`. Audit verify maps to `eg.audit.*` methods. `graph_message` and `graph_incident` have no source and are out of scope. Entries for actions the registry cannot serve are `retired_by` the owner row named in the legacy `not_served` call. Otherwise they are `retired_by` the medulla row that owns the choice. Depends: `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`, with the action names read from `tests/mcp_server/fixtures/legacy_mcp_actions.json` (new). `access.check`, `access.explain_policy` and `policy.read` are registered under `arbora/api/ops/`. Shape: add `ActionOperationMapping` entries in `arbora/mcp_server/legacy_action_mapping.py` for the family. The fixture file and the `retired_by` field are new. | Planned test, not yet in the tree. Parity rows `tests/mcp_server/test_legacy_action_parity.py::test_family_governance_ops_mapped_and_resolvable` (L2). Each mapped operation id is in `arbora/api/generated/registry.json`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.8
Parity test over the frozen legacy action list
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Parity test over the frozen legacy action list.** Subsystem: MCP serving test gate. Caller: CI fast gate runs `tests/mcp_server/test_legacy_action_parity.py`. Add `tests/mcp_server/fixtures/legacy_mcp_actions.json`: `{family: {tool: [actions]}}`, extracted once from the MCP tool modules of the last harness release that served them. The test loads the fixture and asserts each action is in `APPROVED_ACTION_MAPPING` with a `retired_by` or an `operation` in `arbora/api/generated/registry.json`. It fails if the fixture lists an action the table lacks. Refusal: none. Depends: `ARBORA-HOST-R005.2.1` to `ARBORA-HOST-R005.2.7` and `ARBORA-HOST-R005.2.9`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. CI fast gate → `tests/mcp_server/test_legacy_action_parity.py` (new) → `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py` → `get_registry()` in `arbora/api/ops/registry_factory.py`. The fixture `tests/mcp_server/fixtures/legacy_mcp_actions.json` and the parity test file do not exist yet. Shape: new test `test_every_legacy_action_has_resolvable_mapping` and new fixture shape `{family: {tool: [actions]}}`. It reuses `get_registry` and `APPROVED_ACTION_MAPPING` in `arbora/mcp_server/legacy_action_mapping.py`. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_parity.py::test_every_legacy_action_has_resolvable_mapping` (L2) fails when a mapping is removed or an operation id stops resolving.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R006
The layout gate keeps arbora.fleet the sole multiplexer
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The layout gate keeps arbora.fleet the sole multiplexer.** The ownership decision lives in `contracts/fleet-multiplexer.md`. Subsystem: MCP fleet host. Caller chain: host bootstrap `arbora/mcp_server/server.py::mcp_server` → `arbora/fleet/multiplexer.py::MCPMultiplexer` → hosted modules. `arbora/fleet/` holds the only multiplexer. The OAuth broker (`arbora/fleet/remote_oauth_broker.py`), task extension, principal, harness host (`arbora/mcp_server/harness_host.py`), middleware and skill coverage stay in `arbora/mcp_server/backing/`. Rule: no module outside `arbora/fleet/` defines a multiplexer class. No module under `arbora/` imports an agent-runtime multiplexer. Refusal: none; this is a layout gate. Depends: `ARBORA-HOST-R007.2.69`. | `tests/test_package_layout.py::test_serving_packages_do_not_import_legacy_au_multiplexer` (L1) plus `tests/architecture/test_fleet_sole_multiplexer.py::test_no_multiplexer_class_is_defined_outside_arbora_fleet` (L1), bound to this ID.
requirementARBORA-HOSTSPECIFIED97b844e615b7
ARBORA-HOST-R007
The agent runtime is imported only through its declared public modules
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The agent runtime is imported only through its declared public modules.** Subsystem: package boundary. The harness package is `meristem` (the former harness package name is retired). The harness publishes no API aggregation module, so the fence names the modules `meristem` declares public. Caller chain: CI fast gate runs `tests/test_package_layout.py::test_arbora_imports_only_meristem_public_modules` (`.2.69`). Allowed modules are exactly `meristem.PUBLIC_HOST_MODULES` (`MERISTEM-BOUNDARY-R057`): `meristem.host_ports`, `meristem.runtime`, `meristem.graph`, `meristem.rlm`, `meristem.harness.hosted_run`, `meristem.harness.plan`, `meristem.harness.conversation_history`. Rule: no import of the retired harness package name anywhere under `arbora/` or `tests/`. No import of a `meristem` module outside the set. The allowlist is empty. Children: `.2.1`-`.2.68` per-file rows, `.2.69` the gate, `.2.70` the import-name codemod, `R007.3` the metric prefix. Depends: `MERISTEM-RUN-R008`. | `tests/test_package_layout.py::test_arbora_imports_only_meristem_public_modules` (L1) fails on any other import.
requirementARBORA-HOSTSPECIFIEDc467b28d2385
ARBORA-HOST-R007.1
Landed: none of the fence exists yet
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Landed: none of the fence exists yet.** `tests/test_package_layout.py` exists but holds no import-fence test for the declared meristem public modules. `arbora/mcp_server/runtime.py` and other modules still import the retired harness package directly (core configuration, security, messaging, usage and observability modules) instead of the declared `meristem` public modules. Caller chain: planned, not yet wired. `pytest tests/test_package_layout.py` (new test in the existing file) and `arbora/architecture/boundary_census.py::ImportBoundaryCensus.census`, which walks every file under `arbora/` with `ast`. Shape: a machine-readable owner and port map next to `architecture/component-registry-boundary-seeds.yml`. The census reuses `ImportBoundaryCensus`. | Test (planned): `tests/test_package_layout.py::test_arbora_imports_only_declared_meristem_modules`; no such test exists today, confirmed by `a `git grep` of `^from <retired harness package>\.` over `arbora/``.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2
Rewire every import site to the declared public modules (rollup of `.2.1` to `.2.70`)
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire every import site to the declared public modules (rollup of `.2.1` to `.2.70`).** Subsystem: package boundary. Per-file rows with no retired harness-package import at origin/main are retired into `.2.69`. Open work: `.2.4`, `.2.24`, `.2.28`, `.2.35`, `.2.38`, `.2.39`, `.2.54`, `.2.63`, the gate `.2.69` and the codemod `.2.70`. Caller chain: as `ARBORA-HOST-R007`. Child slice of `ARBORA-HOST-R007`. | Satisfied when the open children are verified. Proof level is that of the children.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.1
Rewire `arbora/a2a/authority.py` off agent-runtime internals
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire `arbora/a2a/authority.py` off agent-runtime internals.** Child slice of `ARBORA-HOST-R007.2`. Every retired harness-package import in `arbora/a2a/authority.py` other than a declared `meristem` public module is rewired. It moves to an Arbora-owned module, the connector SDK public interface, or a declared `meristem` public module. There is no allowlist entry. Caller chain: `arbora/api/ops/plans.py` imports `arbora.a2a.authority` and calls `WorkItemA2AAuthority._owner_ref`. The module imports no retired harness-package module today. Shape: `arbora/a2a/authority.py` holds `A2ATaskAuthority` and `WorkItemA2AAuthority`. The grep check reuses the census in `arbora/architecture/boundary_census.py`. | A focused test for the module passes and a grep of the module shows no retired harness-package import outside a declared `meristem` public module. Test: `tests/a2a/test_authority.py::test_selected_tool_subset_is_refused_before_durable_admission` exercises the module.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.2
Rewire `arbora/a2a/routing.py` off agent-runtime internals
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire `arbora/a2a/routing.py` off agent-runtime internals.** Child slice of `ARBORA-HOST-R007.2`. Every retired harness-package import in `arbora/a2a/routing.py` other than a declared `meristem` public module is rewired. It moves to an Arbora-owned module, the connector SDK public interface, or a declared `meristem` public module. There is no allowlist entry. Caller chain: tests build `OrchestratorA2ARouter` from `arbora/a2a/routing.py`. The module imports no retired harness-package module today. Shape: `A2ARouter` and `OrchestratorA2ARouter` in `arbora/a2a/routing.py`. The grep check reuses the census in `arbora/architecture/boundary_census.py`. | A focused test for the module passes and a grep of the module shows no retired harness-package import outside a declared `meristem` public module. Test: `tests/a2a/test_authority.py::test_router_routes_to_the_named_or_the_default_agent` exercises the module.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.3
Rewire `arbora/access/service.py` off agent-runtime internals
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire `arbora/access/service.py` off agent-runtime internals.** Child slice of `ARBORA-HOST-R007.2`. Every retired harness-package import in `arbora/access/service.py` other than a declared `meristem` public module is rewired. It moves to an Arbora-owned module, the connector SDK public interface, or a declared `meristem` public module. There is no allowlist entry. Caller chain: `arbora/api/ops/access.py` imports `sync_external_policy` and its siblings from `arbora/access/service.py`. The module imports no retired harness-package module today. Shape: `sync_external_policy` in `arbora/access/service.py`. The grep check reuses the census in `arbora/architecture/boundary_census.py`. | A focused test for the module passes and a grep of the module shows no retired harness-package import outside a declared `meristem` public module. Planned test, not yet in the tree: `tests/access/test_service_imports.py::test_service_imports_no_agent_runtime_module`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.4
Rewire `arbora/agent_host/__init__.py` to `meristem.graph`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire `arbora/agent_host/__init__.py` to `meristem.graph`.** Subsystem: standalone agent listener. Caller chain: `arbora/agent_host/__init__.py::start_agent_server` (the `agent-host` entry) → `execute_graph` and `create_graph_agent` at lines 72 and 392. Replace the retired harness graph module with `meristem.graph`; both names are in `PUBLIC_HOST_MODULES`. Remove the stale docstring that mentions the retired harness server factory. Refusal: unchanged. Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Shape: Edit `arbora/agent_host/__init__.py` only (imports at lines 72 and 392 and the module docstring); reuse the `meristem.graph` names `execute_graph` and `create_graph_agent`. Add the patch target to `tests/agent_host/test_start_admission.py`. | `tests/agent_host/test_start_admission.py::test_start_admits_and_runs_graph` (L3) patches `meristem.graph`, not the retired harness graph module.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.24
Make the doctor check the `meristem` distribution
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Make the doctor check the `meristem` distribution.** Subsystem: deployment doctor. Caller chain: console script `arbora-doctor` → `arbora/deployment/doctor.py::main` → `_check_python_env`. Use `importlib.metadata.version("meristem")`. Failure message `meristem not installed`, remediation `pip install meristem`. Python floor stays 3.12 (check `>= (3, 12)`). Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Shape: Edit `_check_python_env` in `arbora/deployment/doctor.py` (line 304) and add the two checks to `tests/deployment/test_doctor.py`; reuse `_result` and `_python_env_detail`. | `tests/deployment/test_doctor.py::test_python_env_reports_meristem_version` (L1) and `::test_python_env_fails_when_meristem_absent` (L1).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.35
Rename the child-policy entry-point group to `arbora.mcp_child_policies`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rename the child-policy entry-point group to `arbora.mcp_child_policies`.** Subsystem: fleet multiplexer. Caller chain: `arbora/fleet/multiplexer.py::MCPMultiplexer` child admission → `_RUNTIME_CHILD_POLICY_GROUP`. Set the constant to `arbora.mcp_child_policies` (line 271); the retired group name is read nowhere. No package in the five repos registers under the old group, so there is no provider migration. Rule: the group is read through `importlib.metadata.entry_points(group=...)`. Refusal: a policy that fails to load is logged and skipped, as today. Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Shape: Edit the constant `_RUNTIME_CHILD_POLICY_GROUP` in `arbora/fleet/multiplexer.py` (line 271); the entry-point read at line 1170 is reused unchanged. | `tests/fleet/test_child_policy_group.py::test_policies_load_from_arbora_group` (L2) registers a fake entry point under the new group.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.38
Own `data_dir` in `arbora.core.settings`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Own `data_dir` in `arbora.core.settings`.** Subsystem: gateway layout. Caller chain: gateway startup → `arbora/gateway/config.py::layout_path` (line 355). Add `data_dir() -> Path` to `arbora/core/settings.py`: `ARBORA_DATA_DIR` if set, else `platformdirs.user_data_path("arbora")`. The location equals the one the harness path helper returns today; the harness import in `arbora/gateway/config.py` is replaced. Config key `ARBORA_DATA_DIR`, default `~/.local/share/arbora`. Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Shape: Add `data_dir` to `arbora/core/settings.py` beside `config_dir` and `setting`; `arbora/gateway/config.py` (import at line 22) and `arbora/gateway/daemon.py` import it from there. | `tests/core/test_settings_data_dir.py::test_data_dir_env_override_and_default` (L1). `tests/gateway/test_config.py::test_layout_path_under_data_dir` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.39
Delete `drain_task_queue` from the gateway daemon
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Delete `drain_task_queue` from the gateway daemon.** Subsystem: gateway daemon. `arbora/gateway/daemon.py::drain_task_queue` removes `kg_task_queue.db`, a second local queue store. It has no production caller at origin/main, and the durable queue is the engine WorkItem queue. Delete the function and its `data_dir` import. The metric-prefix docstring prose belongs to `ARBORA-HOST-R007.3`. Hard cutover: no replacement. Refusal: none. Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Caller chain: Gateway daemon module `arbora/gateway/daemon.py` (function `drain_task_queue`, line 279) → no production caller; the test asserts the symbol is absent. Shape: Delete `drain_task_queue` and its local import from `arbora/gateway/daemon.py`; no replacement type. | `tests/gateway/test_daemon.py::test_daemon_has_no_local_task_queue_purge` (L1) asserts the symbol is absent.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.54
Emit run events through `meristem.host_ports`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Emit run events through `meristem.host_ports`.** Subsystem: MCP runtime. Caller chain: MCP `tools/call` → `arbora/mcp_server/runtime.py::_emit_native_intent_event` (line 467). Import `host_ports` from `meristem`. The event payload keys stay: `type`, `run_id`, `tool_name`, `op`, `server`, `tool`, `ok`, `error`. Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Shape: Edit the import inside `_emit_native_intent_event` in `arbora/mcp_server/runtime.py` (line 462 onward); reuse the existing event payload builder. | `tests/mcp_server/test_arbora_015_served_fixes.py::test_native_intent_event_emitted` (L3) reads the event from `meristem.host_ports`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.55
Rewire `arbora/mcp_server/server.py` off agent-runtime internals
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire `arbora/mcp_server/server.py` off agent-runtime internals.** Child slice of `ARBORA-HOST-R007.2`. Every retired harness-package import in `arbora/mcp_server/server.py` other than a declared `meristem` public module is rewired. It moves to an Arbora-owned module, the connector SDK public interface, or a declared `meristem` public module. There is no allowlist entry. Caller chain: console script `arbora` → `arbora.console:main` → `mcp_server` in `arbora/mcp_server/server.py`. The module imports no retired harness-package module today. Shape: `mcp_server` in `arbora/mcp_server/server.py`. The grep check reuses the census in `arbora/architecture/boundary_census.py`. | A focused test for the module passes and a grep of the module shows no retired harness-package import outside a declared `meristem` public module. Test: `tests/mcp_server/test_browser_composition.py::test_packaged_console_injects_exact_identity_factory` exercises the module.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.63
Rename the messaging entry-point groups to `arbora.messaging`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rename the messaging entry-point groups to `arbora.messaging`.** Subsystem: messaging backends. Caller chain: messaging service start → `arbora/messaging/registry.py::discover_backends` → `_ENTRY_POINT_GROUP` (line 43). The groups are `arbora.messaging` and `arbora.messaging.reach`, in both the constant and `pyproject.toml`. No other repo registers under these groups. Refusal: an unloadable backend is skipped with a warning. Reach lookup in `arbora/messaging/reach.py` reads the renamed group. Depends: `ARBORA-HOST-R007.2.69`. Child slice of `ARBORA-HOST-R007.2`. Shape: Edit `_ENTRY_POINT_GROUP` in `arbora/messaging/registry.py` (line 43), the two entry-point tables in `pyproject.toml` (lines 160 and 179) and the lookup in `arbora/messaging/reach.py`. | `tests/messaging/test_registry.py::test_backends_discovered_from_arbora_group` (L2) asserts all 17 backends and both reach entries load.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.68
Rewire `arbora/webui_host/webui_co_service.py` off agent-runtime internals
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rewire `arbora/webui_host/webui_co_service.py` off agent-runtime internals.** Child slice of `ARBORA-HOST-R007.2`. Every retired harness-package import in `arbora/webui_host/webui_co_service.py` other than a declared `meristem` public module is rewired. It moves to an Arbora-owned module, the connector SDK public interface, or a declared `meristem` public module. There is no allowlist entry. Caller chain: `arbora/mcp_server/composition.py` starts `run_web_ui` from `arbora/webui_host/` under `CoServiceSupervisor`. The module imports no retired harness-package module today. Shape: `arbora/webui_host/webui_co_service.py` holds `run_web_ui`. The grep check reuses the census in `arbora/architecture/boundary_census.py`. | A focused test for the module passes and a grep of the module shows no retired harness-package import outside a declared `meristem` public module. Test: `tests/mcp_server/test_composition.py::test_webui_co_service_uses_arbora_host` exercises the module.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.69
Gate every import with the declared-module fence test
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Gate every import with the declared-module fence test.** Subsystem: package boundary gate. Caller: CI fast gate and pre-commit run `tests/test_package_layout.py::test_arbora_imports_only_meristem_public_modules`. The test parses every `.py` under `arbora/` and `tests/` with `ast`. It collects `Import` and `ImportFrom` nodes plus literal arguments of `importlib.import_module`. Rule: fail on any retired harness-package module; fail on any `meristem` module not in `meristem.PUBLIC_HOST_MODULES` or its submodule. Allowlist is empty. Docstrings and comments are not scanned. This row absorbs the per-file census rows that have no violation. Refusal: none. Depends: `ARBORA-OPS-R879` of `ARBORA-HOST-R007`, `ARBORA-HOST-R007.2.70`. Child slice of `ARBORA-HOST-R007.2`. Caller chain: planned, not yet wired. CI fast gate and pre-commit → `tests/test_package_layout.py::test_arbora_imports_only_meristem_public_modules` (new) → an `ast` walk over `arbora/` and `tests/`. Shape: two new tests in `tests/test_package_layout.py`. They reuse the `ast` approach of `arbora/architecture/boundary_census.py`. The allowed module list comes from the installed `meristem` package. | Planned test, not yet in the tree. `tests/test_package_layout.py::test_arbora_imports_only_meristem_public_modules` (L1). `::test_fence_detects_planted_violation` (L1) proves it fails on a temp module.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008
Arbora hosts its boundary modules
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora hosts its boundary modules.** Entry: package import census. Caller chain: `arbora/mcp_server/server.py::mcp_server` imports each module. Code: security request-identity, error-surface and browser-auth modules; `arbora/observability/`; `arbora/core/` (`paths`, `config_admin.py`, `settings.py`); `arbora/deployment/` (`profile_guard.py`, `live_mount_guard.py`, `cli.py`); `arbora/ecosystem/` (`hook_installer.py`, `agent_manager_dashboard.py`); `arbora/fleet/`. Rule: every module is imported only from its `arbora` path. `meristem` declares no equivalent. Refusal: the census fails on a duplicate module. Children `.1000` to `.1008` bind startup and observability. Children `.2` to `.6` bind harness installation. Depends: `ARBORA-HOST-R001`. | Test: `tests/test_package_layout.py::test_arbora_imports_no_au_serving_packages` (unit census) finds each named module only under `arbora/` and no equivalent in `meristem`.
requirementARBORA-HOSTSPECIFIED776ceb15e7ba
a04f32a44865
a727c1536f27
b0cd6a8f01de
d3ef338ca1e3
ARBORA-HOST-R009
Arbora hosts the agent HTTP server and A2A endpoints
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora hosts the agent HTTP server and A2A endpoints.** Entry: `arbora/agent_host/__init__.py::create_agent_server` and the A2A mount. Caller chain: connector `agent_server.py` → `create_agent_server` → `arbora/a2a/application.py`. Code: `arbora/a2a/`, `arbora/webui_host/`, `arbora/agent_host/`. Rule: A2A task state has one owner, the engine, reached through `arbora/a2a/service.py` and `EgToolTaskRequestStore` in `arbora/a2a/tool_task_requests.py`. No broker or second task store exists. Arbora carries no editor protocol adapter. Remove the `**_unused_au_hosting_kwargs` parameter of `create_agent_server`: an unknown keyword raises `TypeError`. Children `.2` to `.8` cover terminal mode, logs and shutdown. Depends: none. | Tests: `tests/a2a/test_application.py` (served HTTP route and task lifecycle) and `tests/agent_host/test_create_agent_server.py::test_unknown_keyword_refused` (new, unit).
requirementARBORA-HOSTSPECIFIEDe5efd4f0ca33
ARBORA-HOST-R010
Arbora owns hosting and deployment configuration settings
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora owns hosting and deployment configuration settings.** Entry: `arbora/mcp_server/server.py::mcp_server` startup. Caller chain: bootstrap → `arbora/core/settings.py` and `arbora/core/config_admin.py`. Rule: hosting and deployment settings resolve from `arbora.core`. Connector base settings belong to `scion_sdk`. Agent and model settings belong to `meristem`. No import of a `meristem` configuration internal. Config root: `~/.config/arbora`. Children `.2` to `.8` cover the manifest and the launcher. Depends: `ARBORA-HOST-R001`. | Test: `tests/test_package_layout.py::test_arbora_imports_no_au_serving_packages` (unit) and the schema test `tests/deployment/test_config_migration.py` fail on a forbidden private import.
requirementARBORA-HOSTSPECIFIED396d8307596f
afc93c497524
tests/deployment/test_host_config.py:32
tests/deployment/test_host_config.py:43
ARBORA-HOST-R011
Arbora serves the messaging channel and routing layer
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora serves the messaging channel and routing layer.** Arbora serves the messaging channel adapters, listener, service, daemon, polling, reaper and host routing for the agent bus, while the graph engine remains the sole authority for durable message append, reads, cursors, dead letters and depth. Superseded-by: the supervision-lifecycle detail (states, transitions, health-gated start, restart backoff bounds, stop/drain, typed degraded state for a missing adapter) is specified in [`ARBORA-MESSAGING-001`](../messaging-channel-supervision/spec.md) (`ARBORA-MESSAGING-R001`–`R005`); this row's broader ownership claim is kept. Caller chain: Messaging backend event → `arbora/messaging/router.py` → `arbora/messaging/service.py::MessagingService` → engine append through the bound host engine. Shape: `arbora/messaging/service.py::MessagingService` and the backends under `arbora/messaging/backends/` hold the adapters; durable state stays in the engine, reusing `arbora/unique_records.py::create_record`. | A served test exercises a messaging action through Arbora and confirms the graph engine records the durable result exactly once. Test: `tests/messaging/test_service.py::test_inbound_inbox_uses_only_bound_host_engine` and `tests/test_host_bindings.py::test_outbound_mirror_records_one_node_per_message`.
requirementARBORA-HOSTVERIFIED63a66f60915a
afefd425c905
bc26d7b669bc
bc2b6941077e
c467b28d2385
tests/mcp_server/test_composition.py:92
ARBORA-HOST-R012
Component registry carries Arbora and SDK boundary entries
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Component registry carries Arbora and SDK boundary entries.** Arbora publishes boundary seed entries for itself and the connector SDK in the architecture component registry. Each names its owning modules and public import surface. Caller chain: CI runs `tests/test_component_registry_boundary_seeds.py`, which reads `architecture/component-registry-boundary-seeds.yml`. Shape: the seeds file `architecture/component-registry-boundary-seeds.yml`. The test needs no helper. | `tests/test_component_registry_boundary_seeds.py::test_arbora_and_connector_sdk_each_have_a_registry_entry` (L1), bound to this ID.
requirementARBORA-HOSTVERIFIED0e76eb8e9714
9760bef27075
d75db1ea42e8
e278fafd4073
tests/test_component_registry_boundary_seeds.py:17
ARBORA-HOST-R014
Agent runtime split into connector SDK, Arbora and engine
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Agent runtime split into connector SDK, Arbora and engine.** The former runtime is split into three repositories: connector SDK, Arbora, and graph engine. Each repository publishes an installable package. Arbora depends on the others only through public APIs. Caller chain: CI runs `tests/test_dependency_manifest.py`, which reads the dependency ranges in `pyproject.toml`. Shape: plain version ranges in `pyproject.toml` for `meristem`, `scion-sdk`, `medulla` and the web UI package. `[tool.uv.sources]` stays a local override. | Arbora's dependency manifest pins those published packages. It does not use paths into the former combined source tree. Test: `tests/test_dependency_manifest.py::test_manifest_declares_every_split_package_as_a_version_range`.
requirementARBORA-HOSTVERIFIED0062797e3c37
0e76eb8e9714
91c0d96adb17
f8d31551067c
tests/architecture/test_dependency_manifest_pins_published_packages.py:20
ARBORA-HOST-R015
Layered agent capability model with a harness abstraction
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Layered agent capability model with a harness abstraction.** Arbora defines a layered agent-capability model, from its lowest to its highest defined layer, implemented over the graph engine, together with a harness abstraction that lets a given layer run under different execution environments. Caller chain: Capability conformance test → `arbora/architecture/capability_layers.py::InProcessHarness` → `LayerRun` per `CapabilityLayer`. Shape: `arbora/architecture/capability_layers.py` holds `CapabilityLayer`, `LayerRun` and `InProcessHarness`; a second harness environment implements the same handler table. | A conformance test suite exercises each defined layer through the harness abstraction and confirms its expected behavior boundary. Test: `tests/architecture/test_capability_layers.py::test_every_layer_runs_through_any_harness_environment`.
requirementARBORA-HOSTVERIFIED0e76eb8e9714
1f575184e8da
tests/architecture/test_capability_layers.py:13
ARBORA-HOST-R017
Browser inventory lists native Arbora tools
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Browser inventory lists native Arbora tools.** The WebUI inventory helper lists the native `arbora` server from its registered tool surface. It never probes `arbora` as a catalog child. Caller chain: WebUI catalog request → `arbora/webui_host/mcp_delegation.py::_native_server_tools` (line 39) → the registered native tool surface. Shape: `_native_server_tools` in `arbora/webui_host/mcp_delegation.py` lists tools from the multiplexer's native surface and never calls the child probe path. | `tests/webui_host/test_native_mcp_delegation.py` lists the registered native tools and fails when a child probe runs. Test: `tests/webui_host/test_native_mcp_delegation.py::test_native_server_lists_registered_tools_without_a_child_probe`.
requirementARBORA-HOSTVERIFIED0e76eb8e9714
3b2c6ac9d864
a4928a7047e1
tests/webui_host/test_native_mcp_delegation.py:18
ARBORA-HOST-R018
Browser catalog reads run under the process authority
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Browser catalog reads run under the process authority.** The enhanced catalog binds the Arbora process session for each engine read. Its receipts name that process context. A failed read logs its cause before the masked 503. Caller chain: Browser catalog route → `arbora/gateway/enhanced_catalog_api.py::EnhancedCatalogAuthority` → the engine read under the process authority scope. Shape: `EnhancedCatalogAuthority` in `arbora/gateway/enhanced_catalog_api.py` binds `authority_scope` per read; the denial log line uses the module logger. | `tests/gateway/test_enhanced_catalog_api.py` proves the read runs inside the process scope and logs the denial cause. Test: `tests/gateway/test_enhanced_catalog_api.py::test_catalog_reads_run_under_the_configured_process_authority` and `::test_failed_catalog_read_logs_its_cause`.
requirementARBORA-HOSTVERIFIED3b2c6ac9d864
a4928a7047e1
bc26d7b669bc
tests/gateway/test_enhanced_catalog_api.py:291
ARBORA-HOST-R019
Arbora serves the service dashboard surface
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora serves the service dashboard surface.** Entry: HTTP `GET /api/dashboard/*` and WebSocket `/ws/dashboard`. Caller: gateway route registrar → `arbora/gateway/dashboard_api.py` handlers. Routes: `/api/dashboard/full`, `/health`, `/daemon/status`, `/daemon/shards`. Rule: the same identity and Overstory authorization middleware as other `/api` routes. The stream sends one snapshot, then updates every `dashboard.interval_s` (default 5, range [1, 300]) in `~/.config/arbora/config.json`. A `subscribe` message limits widgets. Refusals: HTTP 401 without identity, `DASHBOARD_WIDGET_UNKNOWN` for an unknown widget. Data is read from the engine through the operation registry. Writes: none. Depends: `ARBORA-HOST-R008.1006`. Caller chain: `register_graph_routes` in `arbora/gateway/graph_api.py` → `register_dashboard_routes` in `arbora/gateway/dashboard_api.py`. Shape: routes and the stream in `arbora/gateway/dashboard_api.py`; widgets through `Aggregator` from `arbora/gateway/aggregator.py`. | Test: `tests/gateway/test_dashboard_api.py::test_frontend_dashboard_paths_are_mounted` and `::test_websocket_streams_snapshot_then_scoped_update` (served HTTP and WebSocket) asserts the five paths, 401 and subscription scoping.
requirementARBORA-HOSTLANDED975596a67ed0
a504e36c3c7c
ARBORA-HOST-R020
Serving start binds the decide operations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Serving start binds the decide operations.** Entry: server bootstrap. Caller: `arbora/mcp_server/server.py::mcp_server` (line 413) → `arbora/mcp_server/decide_wiring.py::install_decide_consumers`. Rule: Arbora holds no assembler, planner or report. It binds three served operations to medulla methods. Assembly uses `AgentAssemble` (`MEDULLA-DECISION-ENGINE-R036`). Task planning uses `Decide` with `TaskPlan` through `arbora/api/ops/plans.py::engine_task_plan`. The cross-source report uses the federated query path (`MEDULLA-CQ-XSRC`). Replace each `not_served` stub in `decide_wiring.py` with the real binding or delete the stub. Each missing input logs `reason` and skips that binding. A fault never stops serving. Returns a dict of bound names. Depends: `MEDULLA-DECISION-ENGINE-R036`, `ARBORA-OPS-R880`. Caller chain: `mcp_server` in `arbora/mcp_server/server.py` (line 413) → `install_decide_consumers` in `arbora/mcp_server/decide_wiring.py`. Shape: `install_decide_consumers` and its `_install_*` helpers in `arbora/mcp_server/decide_wiring.py`. Task planning reuses `engine_task_plan` in `arbora/api/ops/plans.py`. | Planned test, not yet in the tree. Test: `tests/mcp_server/test_decide_wiring.py::test_all_three_bind_and_each_guarded_skip` (served over HTTP and MCP with a recorded medulla engine) asserts the bound set and skip reasons. It also asserts that serving continues.
requirementARBORA-HOSTLANDED91c0d96adb17
c4e7f7197b78
d7eb02776c45
e96c8e3a5360
ARBORA-HOST-R021
Serving start binds the assembler commit and publish contexts and the topology asker
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Serving start binds the assembler commit and publish contexts and the topology asker.** Entry: server bootstrap. Caller: `install_decide_consumers` → `arbora/mcp_server/decide_wiring.py::_commit_context`, `_publish_context`. Rule: `_mutation_context(session, purpose_id)` builds an `AgentLibraryMutationContext` from the verified bootstrap session identity and tenant. Purposes are `agent_library.assembly_commit` for `DecisionCommit` (`MEDULLA-DECISION-ENGINE-R047`) and `agent_library.assembly_publish` for `AgentGraph.publish` (`MEDULLA-DECISION-ENGINE-R051`). The engine replaces the policy fields with its owner digest. The topology asker uses the swarm-topology templates that `GraphSchema.attach` publishes (`MEDULLA-DECISION-ENGINE-R105`). Remove the `_published_templates` and `_install_topology` stubs that raise `not_served`. Missing input logs a reason and skips. Writes: the engine only. Depends: `ARBORA-HOST-R020`, `MEDULLA-DECISION-ENGINE-R105`. Caller chain: `install_decide_consumers` → `_install_assembler` → `_commit_context` and `_publish_context` in `arbora/mcp_server/decide_wiring.py`. Shape: `_mutation_context(session, purpose_id)` in `decide_wiring.py` builds the context from the bootstrap session. The stub `_published_templates` still exists. | Planned test, not yet in the tree. Test: `tests/mcp_server/test_decide_wiring.py::test_assembly_commits_and_publishes_with_session_context` (served, recorded engine) asserts the recorded commit and publish calls and the topology skip reason.
requirementARBORA-HOSTLANDED117301017944
e67f069a9ed4
ARBORA-HOST-R022
Serving start binds the planner capability search, guardrail and workflow lookups
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Serving start binds the planner capability search, guardrail and workflow lookups.** Entry: server bootstrap. Caller chain: `install_decide_consumers` → `decide_wiring.py::_capability_search`, `_guardrail_source`, `_workflow_lookup`. Rule: capability search queries registered A2A agent cards through `AgentComponentSearchRequest` (limit 64, `decide.capability_limit` in `~/.config/arbora/config.json`, range [1, 256]). The guardrail source returns one side-effect-free verdict per task from the gate `ActionPolicies.for_engine(engine)` of the host's `PolicyState` (`ARBORA-HOST-R039.3`), passed to `install_decide_consumers` by argument. The workflow lookup reads `WorkflowRegistry` `Read` (`MEDULLA-DECISION-ENGINE-R166.3`) and replaces the `not_served` stub. A failed lookup returns an empty list and logs the reason. Depends: `MEDULLA-DECISION-ENGINE-R166.3`, `ARBORA-HOST-R020`. | Test: `tests/mcp_server/test_decide_wiring.py::test_three_lookups_bound_and_planned_task_has_skills_and_tools` (planned) (served, recorded engine).
requirementARBORA-HOSTSPECIFIEDaf5f5c292007
e67f069a9ed4
ARBORA-HOST-R023
Arbora serves its eight-tool MCP intent surface from its own operation registry
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora serves its eight-tool MCP intent surface from its own operation registry.** Entry: MCP connection to `arbora/api/mcp/serving.py`. Caller chain: `register_intent_surface` registers `ask`, `find`, `why`, `write`, `act`, `manage`, `graph_task_progress_app` and `graph_trace_waterfall_app` from the registry built by `arbora/api/ops/registry_factory.py::get_registry`. `meristem` serves no MCP tool. It supplies only the registrar for both app launchers. Rule: ranking uses a deterministic tie-break on operation id. `find` merges fleet discovery. `act` routes fleet child calls through `fleet.call`. Natural-language `ask` runs the visible `query.nl` operation only when no operation matches, through the shared invocation pipeline in `arbora/api/invoke/pipeline.py`. No synthetic descriptor grants another path. Refusals follow the pipeline. Depends: `ARBORA-HOST-R024`. | Test: `tests/api/test_mcp_parity.py::test_eight_tools_and_nl_fallback_only_when_unmatched` (served over MCP) compares names and dispatches through the policy pipeline.
requirementARBORA-HOSTSPECIFIED51529da8abe6
c39349d16c53
e28e54dd74e5
tests/api/test_mcp_serving.py:236
ARBORA-HOST-R024
`arbora.mcp_server.server` registers Arbora's own intent surface, not the agent runtime's
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**`arbora.mcp_server.server` registers Arbora's own intent surface, not the agent runtime's.** Serving start calls `arbora.api.mcp.serving.register_intent_surface` instead of the agent runtime's registration path. Caller chain: Serving start → `arbora/mcp_server/runtime.py` (line 969) → `arbora/api/mcp/serving.py::register_intent_surface`. Shape: `register_intent_surface` in `arbora/api/mcp/serving.py` is the one registration path; the module docstring names the retired harness registration it replaced. | `python3 scripts/check_wiring.py unreachable` lists fewer unreached `arbora.api.{mcp,invoke,ops,policy}` modules after this change than before it; the exact before/after counts are recorded as PR evidence. Test: `tests/api/test_mcp_serving.py::test_register_intent_surface_matches_the_live_tool_contract`.
requirementARBORA-HOSTVERIFIED2646511870e7
ab0d4bed45c4
c39349d16c53
d5f69ae59c75
tests/test_real_boot.py:704
tests/test_real_boot.py:734
ARBORA-HOST-R026.4
Add the doctor check for A2A task persistence
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Add the doctor check for A2A task persistence.** Entry: `arbora-doctor` command. Caller: `arbora/deployment/doctor.py` check list → `arbora/deployment/doctor_a2a.py::check_a2a_persistence` (new). Rule: the check creates one probe task through `A2AService` with a unique id. It reads the task back through the engine, then cancels it. It reports `pass` when the engine returns the task. It reports `fail` with `A2A_STORE_UNBOUND` when no engine client is bound. It reports `fail` with `A2A_STORE_NOT_DURABLE` when the read-back differs. The probe task carries tenant `doctor`. Writes: one probe task node, removed by cancel. Depends: `ARBORA-HOST-R009`. Caller chain: planned, not yet wired. `arbora-doctor` (`arbora.deployment.doctor:main`) → `check_a2a_persistence` in `arbora/deployment/doctor_a2a.py` (new) → `A2AService` in `arbora/a2a/service.py`. Shape: new module `arbora/deployment/doctor_a2a.py`. It follows the split check modules such as `arbora/deployment/doctor_graph.py`. | Planned test, not yet in the tree. Test: `tests/deployment/test_doctor_a2a.py::test_a2a_persistence_pass_and_both_failures` (served, recorded engine) asserts the three outcomes.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R027
Loopback OIDC authority for skill certification
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Loopback OIDC authority for skill certification.** Rollup of `ARBORA-HOST-R027.1` to `.3`; unblocks `MERISTEM-BOUNDARY-R002.3.1`. | All child rows are verified.
requirementARBORA-HOSTVERIFIEDebe832a9cfb5
tests/certification/test_oidc.py:18
tests/certification/test_oidc.py:36
tests/certification/test_oidc_script.py:15
ARBORA-HOST-R027.1
Add the loopback OIDC authority owner module for skill certification
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Add the loopback OIDC authority owner module for skill certification.** Add `arbora/certification/oidc.py` serving loopback-only OIDC discovery, JWKS and token endpoint, replacing AU `deployment/certification_oidc.py`. Unblocks `MERISTEM-BOUNDARY-R002.3.1`. Caller chain: `scripts/certification_oidc.py` → `EphemeralLoopbackOidcAuthority` in `arbora/certification/oidc.py`. Shape: `arbora/certification/oidc.py` holds `_Authority` and `validated_token_ttl_seconds`. | A test confirms discovery and JWKS respond on loopback and the module refuses a non-loopback bind. Test: `tests/certification/test_oidc.py::test_discovery_and_jwks_are_loopback_only`.
requirementARBORA-HOSTVERIFIEDebe832a9cfb5
tests/certification/test_oidc.py:18
ARBORA-HOST-R027.2
Add the loopback OIDC authority test fixture
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Add the loopback OIDC authority test fixture.** Add a pytest fixture in `tests/certification/conftest.py` that starts and stops the authority and mints a signed token. Unblocks `MERISTEM-BOUNDARY-R002.3.1`. Caller chain: `pytest` loads the `certification_authority` fixture in `tests/certification/conftest.py`, which starts `EphemeralLoopbackOidcAuthority`. Shape: the fixture in `tests/certification/conftest.py` over `arbora/certification/oidc.py`. | A test uses the fixture to mint a token that verifies against the served JWKS. Test: `tests/certification/test_oidc.py::test_fixture_mints_token_verified_with_served_jwks`.
requirementARBORA-HOSTVERIFIEDebe832a9cfb5
tests/certification/test_oidc.py:36
ARBORA-HOST-R027.3
Add the loopback OIDC authority script
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Add the loopback OIDC authority script.** Add `scripts/certification_oidc.py` launching the owner module for skill certification runs. Unblocks `MERISTEM-BOUNDARY-R002.3.1`. Caller chain: an operator runs `scripts/certification_oidc.py` → `main` → `arbora/certification/oidc.py`. Shape: `scripts/certification_oidc.py::main` over `EphemeralLoopbackOidcAuthority`. | The script starts, serves discovery, and exits cleanly on signal in a test. Test: `tests/certification/test_oidc_script.py::test_script_serves_discovery_and_exits_on_signal`.
requirementARBORA-HOSTVERIFIEDebe832a9cfb5
tests/certification/test_oidc_script.py:15
ARBORA-HOST-R029
Tenant-bound native desktop actions
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Tenant-bound native desktop actions.** Entry: registered operation `browser.desktop_action` (new) through `arbora/api/invoke/pipeline.py::invoke`. Caller chain: `arbora/api/invoke/pipeline.py::invoke` → `arbora/api/invoke/executor.py::BoundOperationRuntime.dispatch` → the SDK desktop provider (`SCION-CONNECTOR-CONTROL-R909`). Shape: `operations()` in `arbora/api/ops/browser.py` registers `browser.desktop_action` with `build_write_op` from `arbora/api/ops/_common.py`; its handler refuses on the grant check before any provider call. Rule: require a verified caller and a tenant-bound sandbox grant. Background click, type and verify must not capture the cursor or the focus. Arbora keeps the operation unavailable (`not_served` with `SCION-CONNECTOR-CONTROL-R909`) until the SDK port is published. Refusals: `DESKTOP_GRANT_MISSING`, `DESKTOP_GRANT_REVOKED`, `DESKTOP_GRANT_CROSS_TENANT`, each before any provider call. Evidence: the invocation receipt with grant id. `SCION-CONNECTOR-CONTROL-R060` is the published provider contract. Depends: `SCION-CONNECTOR-CONTROL-R909`. | Test: `tests/api/test_agent_browser_ops.py::test_native_desktop_actions_require_verified_grant_without_focus_capture` (served HTTP and MCP) asserts valid grants reach a fake provider. It also asserts refusals make zero provider calls and focus is unchanged.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R030
Run-bound visual state
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Run-bound visual state.** Entry: registered operations `browser.observe` and `browser.act` through `invoke`. Caller: `invoke` → `BoundOperationRuntime.dispatch` → medulla visual-state records (`MEDULLA-DECISION-ENGINE-R816`). Rule: Arbora stores no local state. It passes `run_id`, tenant and the observation `(source, frame, revision)` to medulla and receives reusable state or a refusal. Refusals: `VISUAL_STATE_STALE` after expiry or source change, `VISUAL_STATE_CROSS_TENANT`, each before dispatch. `SCION-CONNECTOR-CONTROL-R052` is the observation producer. `SCION-CONNECTOR-CONTROL-R910` defines the typed observation. `MEDULLA-ORCH-VOCAB-R810` is the state contract. Evidence: provenance triple in the receipt. Depends: `MEDULLA-DECISION-ENGINE-R816`, `SCION-CONNECTOR-CONTROL-R910`, `SCION-CONNECTOR-CONTROL-R052`, `MEDULLA-ORCH-VOCAB-R810`. Caller chain: planned, not yet wired. `invoke` in `arbora/api/invoke/pipeline.py` → `BoundOperationRuntime.dispatch` in `arbora/api/invoke/executor.py`. The operations `browser.observe` and `browser.act` do not exist; `arbora/api/ops/browser.py` registers `browser.discover` and `browser.request_call`. Shape: new operations in `arbora/api/ops/browser.py` with the run, source and tenant fields. The medulla record contract is owned elsewhere. | Planned test, not yet in the tree. Test: `tests/api/test_agent_browser_ops.py::test_visual_state_is_run_source_and_tenant_bound` (served HTTP and MCP, recorded engine) asserts sequential reuse, invalidation and both refusals.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R031
Coding-agent discovery and sandbox handoff
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Coding-agent discovery and sandbox handoff.** Entry: registered operation `agents.coding_agent.discover` and the session-start flow. Caller chain: `arbora/mcp_server/server.py::mcp_server` → operation handler in `arbora/api/ops/agents.py`. Rule: discover executables named in the `coding_agents` list of `~/.config/arbora/config.json` on `PATH`, using `shutil.which`. The skill transformation comes from medulla (`MEDULLA-DECISION-ENGINE-R134.9` ranks skills). The `meristem` harness applies it (`MERISTEM-HARNESS-CYCLE-R059`). Generated artifacts render only in the Overstory sandboxed frame (`MERISTEM-HARNESS-CYCLE-R058`). Refusals: `CODING_AGENT_NOT_FOUND`, `OWNER_PORT_UNAVAILABLE` with no dispatch or rendering. `SCION-CONNECTOR-CONTROL-R051` provides the sandbox allocation. Depends: `MEDULLA-DECISION-ENGINE-R134.9`, `MERISTEM-HARNESS-CYCLE-R059`, `MERISTEM-HARNESS-CYCLE-R058`, `SCION-CONNECTOR-CONTROL-R051`. | Test: `tests/mcp_server/test_composition.py::test_coding_agent_flow_uses_owner_ports_and_sandbox` (served HTTP and MCP, recorded decision) asserts discovery, the harness receiving the transformation and the refusals.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.2
Declare every consumed environment name
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Declare every consumed environment name.** Entry: startup. Caller: `arbora/mcp_server/server.py::mcp_server` → `arbora/core/settings.py::load_environment_manifest` (new). Code: `HostEnvironmentManifest(schema_version, component, source_revision, declarations)` and `EnvironmentDeclaration(name, type, required_when, default, sensitive, call_sites)`. Rule: include indirect library reads. Compose the `scion_sdk` and `meristem` public declarations without copying their settings. Refusals: `ENV_UNDECLARED_READ`, `ENV_DECLARATION_CONFLICT`, `ENV_MANIFEST_UNAVAILABLE`. Evidence: manifest digest and missing names, never values. `ARBORA-HOST-R010.8` depends on this row for the owner exports. Depends: `ARBORA-HOST-R010.8`. Caller chain: planned, not yet wired. `arbora/mcp_server/server.py::mcp_server` → `load_environment_manifest` in `arbora/core/settings.py` (new). Shape: new frozen dataclasses `HostEnvironmentManifest` and `EnvironmentDeclaration`. `ArboraConfig` and `read_field` in `arbora/core/settings.py` already hold the settings. | Planned test, not yet in the tree. Test: `tests/test_environment_manifest.py::test_census_matches_declarations_and_dynamic_read_refuses` (unit) injects a dynamic undeclared read and asserts the named refusal.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.3
Validate before any service starts
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Validate before any service starts.** Entry: launcher. Caller: `arbora/mcp_server/server.py::mcp_server` runs `validate_startup` before `runtime._build_server` (`arbora/mcp_server/runtime.py`). Code: `HostStartupConfiguration(manifest_digest, components, settings)` in `arbora/core/settings.py`. Rule: resolve precedence once, then validate every enabled component before any listener or child process. Refusals: `CONFIG_REQUIRED_MISSING`, `CONFIG_MALFORMED`, `CONFIG_PROFILE_UNKNOWN`, each naming component and variable, never the value. Evidence: configuration digest. Zero listeners and children on refusal. Depends: `ARBORA-HOST-R010.2`. Caller chain: planned, not yet wired. the launcher → `arbora/mcp_server/server.py::mcp_server` → `validate_startup` (new in `arbora/core/settings.py`) → `runtime._build_server`. Today `mcp_server` calls only the anonymous-boundary `validate_startup(startup_args)` from `arbora/security/anonymous.py` (`server.py:242`). Shape: new `HostStartupConfiguration` in `arbora/core/settings.py`. It resolves values through `load_config` and `read_field`. | Planned test, not yet in the tree. Test: `tests/mcp_server/test_launch_configuration_served.py::test_refusals_start_nothing` (served HTTP via the launcher process).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.4
Keep conditional configuration precise
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Keep conditional configuration precise.** Entry: `validate_startup`. Caller: `arbora/core/settings.py::validate_startup`. Rule: each declaration is required, optional or conditionally required. A disabled component needs no credential. No ambient environment grants authority. An unresolved condition or invalid default refuses with `CONFIG_CONDITION_UNRESOLVED` or `CONFIG_DEFAULT_INVALID`. It never selects another profile. Evidence: selected condition and default ids. Depends: `ARBORA-HOST-R010.3`. Caller chain: planned, not yet wired. `validate_startup` (new in `arbora/core/settings.py`), called by `mcp_server` in `arbora/mcp_server/server.py`. Shape: extend `EnvironmentDeclaration` (new, `.2`) with the required, optional and conditional kinds. | Planned test, not yet in the tree. Test: `tests/test_environment_manifest.py::test_disabled_component_needs_no_credential` (unit) toggles a component and asserts both refusal codes.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.5
Bind environment guidance to declarations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Bind environment guidance to declarations.** Entry: documentation conformance gate. Caller: `ARBORA-DEPLOY-R010` guidance check → `arbora/core/settings.py::example_names`. Rule: generate example names from the manifest of `ARBORA-HOST-R010.2`. Document defaults and required conditions with secret placeholders. Refusal: `GUIDANCE_NAME_MISSING` when a consumed name is absent from the server configuration example or either transport example. Evidence: manifest and example digests, never live configuration. Depends: `ARBORA-HOST-R010.2`. Caller chain: planned, not yet wired. the documentation conformance gate → `example_names` in `arbora/core/settings.py` (new). Shape: `example_names` reads the manifest of `ARBORA-HOST-R010.2`. The example files are the transport examples named in `ARBORA-DEPLOY-R010`. | Planned test, not yet in the tree. Test: `tests/test_environment_manifest.py::test_documented_examples_cover_manifest` (unit) parses both transport examples and fails on an omitted name.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.6
Prove startup validation through the launcher
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Prove startup validation through the launcher.** Entry: the installed Arbora launcher in a subprocess. Caller: launcher → `validate_startup`. Code: new `tests/mcp_server/test_launch_configuration_served.py` with recorded socket, child-start and diagnostic counters. Cases: valid settings, then each refusal code of `ARBORA-HOST-R010.3`, then restart. Rule: a refused start opens zero listeners and starts zero children. A valid start serves a health probe. Evidence: source revision, manifest digest, exit code and redacted diagnostics. Depends: `ARBORA-HOST-R010.3`. Caller chain: planned, not yet wired. the installed `arbora` launcher in a subprocess → `validate_startup` (new). Shape: new test file `tests/mcp_server/test_launch_configuration_served.py` with socket and child-start counters. | Planned test, not yet in the tree. Test: `tests/mcp_server/test_launch_configuration_served.py::test_valid_and_invalid_launch_after_restart` (served HTTP) asserts the counters and redaction.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.2
Detect installed harnesses without effects
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Detect installed harnesses without effects.** Entry: console script `setup-config` subcommand `install-harnesses --dry-run`. Caller: `arbora/deployment/cli.py::main` → `arbora/ecosystem/harness_install.py::detect_harnesses` (new file). Code: frozen dataclass `HarnessInstallation(adapter_id, supported_version, executable, config_root, evidence)`. The adapter table is `AGENT_SURFACES` in `arbora/ecosystem/hook_installer.py`. Rule: detect by the surface `config_path` parent and a version file. Read only marker names and version strings. Never read file contents. An absent harness creates no file. Refusals: `HARNESS_ROOT_AMBIGUOUS`, `HARNESS_VERSION_UNSUPPORTED`, `HARNESS_ADAPTER_UNKNOWN`. Evidence: the returned set of installations and refusals, without private contents. Writes: none. Depends: none. Caller chain: planned, not yet wired. console script `setup-config` (`arbora.deployment.cli:main`) → `detect_harnesses` in `arbora/ecosystem/harness_install.py` (new). Shape: new frozen dataclass `HarnessInstallation` in `harness_install.py`. It reads the `AGENT_SURFACES` table in `arbora/ecosystem/hook_installer.py`. | Planned test, not yet in the tree. Test: `tests/ecosystem/test_harness_install.py::test_detect_mixed_present_absent_malformed` (unit) asserts the detected set, each refusal code and unchanged bytes. Served proof: `ARBORA-HOST-R008.5`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.3
Bind exact harness configuration changes
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Bind exact harness configuration changes.** Entry: `setup-config install-harnesses` without `--dry-run`. Caller: `arbora/deployment/cli.py::main` → `harness_install.py::prepare_changes` (new). Code: frozen dataclass `HarnessConfigurationChange(installation, before_digest, proposed_digest, managed_keys, destination)`. Each surface in `AGENT_SURFACES` supplies tool entries, an instruction section and its `hook_data`. Rule: digests are SHA-256 with 64 lowercase hex characters. Hook commands call the `arbora` console script, not `meristem`. A surface without pre-tool hook support lists `UNSUPPORTED_HOOK` in the change and writes no hook file. Refusals: `HARNESS_HOOK_UNSUPPORTED` (reported, not fatal), `HARNESS_DESTINATION_UNAUTHORIZED`. Evidence: the reviewable change lists each artifact and each unsupported capability. Writes: none. Depends: `ARBORA-HOST-R008.2`. Caller chain: planned, not yet wired. console script `setup-config` (`arbora.deployment.cli:main`) → `prepare_changes` in `arbora/ecosystem/harness_install.py` (new). Shape: new frozen dataclass `HarnessConfigurationChange` in `harness_install.py`. It reads `AGENT_SURFACES` in `arbora/ecosystem/hook_installer.py`. | Planned test, not yet in the tree. Test: `tests/ecosystem/test_harness_install.py::test_prepare_changes_parses_three_artifacts` (unit) parses tool entry, instruction and hook output. An unsupported hook reports its limitation without a hook file.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.4
Apply harness edits without overwriting unrelated content
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Apply harness edits without overwriting unrelated content.** Entry: `setup-config install-harnesses --apply`. Caller: `arbora/deployment/cli.py::main` → `harness_install.py::apply_changes` (new). Code: it reuses `HookInstaller` in `arbora/ecosystem/hook_installer.py` for the merge. Each managed artifact carries an ownership marker key `arbora_managed` and its original digest. Rule: validate every destination first. Replace only marked sections, using a temp file and `os.replace`. A repeated identical run changes no byte. Refusals: `HARNESS_BASE_CHANGED`, `HARNESS_SYMLINK_ESCAPE`, `HARNESS_CONFIG_MALFORMED`, `HARNESS_KEY_CONFLICT`. Each refusal leaves that artifact untouched. Evidence: record actual before and after digests, including the partial outcome of an interrupted multi-file apply. Writes: local configuration files only. Remote source changes stay SDK effects. Depends: `ARBORA-HOST-R008.3`. Caller chain: planned, not yet wired. console script `setup-config` (`arbora.deployment.cli:main`) → `apply_changes` in `arbora/ecosystem/harness_install.py` (new) → `HookInstaller` in `arbora/ecosystem/hook_installer.py`. Shape: `apply_changes` in `harness_install.py` reuses `HookInstaller` for the merge and adds the ownership marker key. | Planned test, not yet in the tree. Test: `tests/ecosystem/test_harness_install.py::test_apply_preserves_unrelated_and_is_idempotent` (unit) seeds unrelated keys. It asserts preservation, idempotence, each refusal code and honest partial-apply reporting.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.5
Prove detected-harness installation through the real command
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Prove detected-harness installation through the real command.** Entry: the installed `setup-config` console script in a subprocess with an isolated `HOME`. Caller: `arbora/deployment/cli.py::main` → `harness_install.py`. Code: new `tests/deployment/test_harness_install_served.py`. Fixture: two supported installations and one absent harness. Rule: after the command, parse each configuration with the harness parser. Invoke the hook command once. Discover the configured MCP tool through a real MCP client against a loopback Arbora. Evidence: detected versions, parsed configuration, hook observations and untouched-file digests. A file write alone is not proof. Depends: `ARBORA-HOST-R008.4`. Caller chain: planned, not yet wired. the installed `setup-config` script in a subprocess → `arbora.deployment.cli:main` → `arbora/ecosystem/harness_install.py` (new). Shape: new test file `tests/deployment/test_harness_install_served.py` with disposable home directories. It reuses `AGENT_SURFACES` for the fixtures. | Planned test, not yet in the tree. Test: `tests/deployment/test_harness_install_served.py::test_install_two_present_one_absent` (served over MCP) asserts valid tool entries, instruction text, hook dispatch and zero writes for the absent harness.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.7
Select terminal, web or combined start
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Select terminal, web or combined start.** Entry: `arbora` start command flags `--terminal` and `--web`. Caller chain: `arbora/agent_host/__init__.py::create_agent_server` → `arbora/agent_host/host_start.py`. Code: `HostLaunchRequest(schema_version, workspace, interfaces, web_logs)`. Rule: `--terminal` selects terminal, `--web` selects web, both select both. With neither, behaviour is unchanged. No `--cli` alias exists. `web_logs` resolves once, then goes into `HostLaunchReceipt` (`ARBORA-HOST-R009.5`). Refusals: `LAUNCH_MODE_UNKNOWN`, `LAUNCH_CLIENT_MISSING`, `LAUNCH_WORKSPACE_INVALID`, each before any start. Evidence: selected interfaces, host instance, workspace binding and client readiness. Depends: `ARBORA-HOST-R010.3`. | Test: `tests/agent_host/test_interface_refusal.py::test_unknown_mode_and_missing_client_refuse_before_start` (served HTTP) starts terminal, web and both through the real command.
requirementARBORA-HOSTVERIFIED906170980099
aee6cfa29204
d8f76638c57b
effb1096d829
tests/agent_host/test_native_start_grant.py:2
tests/agent_host/test_start_admission.py:113
tests/agent_host/test_start_admission.py:126
tests/agent_host/test_start_admission.py:158
tests/agent_host/test_start_admission.py:169
ARBORA-HOST-R010.7.1
Check injected startup admission
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Check injected startup admission.** Require an explicit host.start grant and a trusted owner attestation binding the exact GraphSession to current SessionState. Bind workspace, interfaces, preference, configuration digest, policy and expiry. Default missing owners deny. `MEDULLA-DURABLE-KERNEL-R030.1` provides the `host.start` grant, its scope and its refusal codes. Caller chain: Host start request → `arbora/agent_host/start_admission.py::check_host_start` → `HostStartGrantProvider` and `HostSessionBindingProvider` owners. Shape: `arbora/agent_host/start_admission.py` holds `HostStartRequest`, `HostStartGrant`, `HostSessionBinding` and `check_host_start`; reuse them. | Controlled owners admit matching facts. Mismatches, expiry and revocation refuse before graph construction or listeners. Successful admission still refuses absent client composition. Test: `tests/agent_host/test_start_admission.py::test_matching_owner_attestation_admits_exact_graph_session` and `::test_grant_mismatch_refuses_before_host_effects`.
requirementARBORA-HOSTVERIFIEDaee6cfa29204
d8f76638c57b
effb1096d829
tests/agent_host/test_native_start_grant.py:2
tests/agent_host/test_start_admission.py:113
tests/agent_host/test_start_admission.py:126
tests/agent_host/test_start_admission.py:158
tests/agent_host/test_start_admission.py:169
ARBORA-HOST-R010.7.2
Wire admitted interface startup
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Wire admitted interface startup.** Entry: `create_agent_server` with a selected interface. Caller chain: `create_agent_server` → `HostStartContext` (`arbora/agent_host/host_start.py`) → terminal factory and `run_web_ui` (`arbora/webui_host/webui_co_service.py`). Rule: both factories share one admitted authority and the same runtime bundle (`HostRuntimeResources`). The runtime configuration comes through its trusted owner. A missing client refuses with `LAUNCH_CLIENT_MISSING` before startup. Only the requested clients start. Depends: `ARBORA-HOST-R010.7`. | Test: `tests/agent_host/test_managed_web.py::test_real_terminal_web_and_combined_launches_expose_only_requested_clients` (served HTTP).
requirementARBORA-HOSTVERIFIED906170980099
tests/agent_host/test_start_admission.py:262
tests/agent_host/test_start_admission.py:303
tests/agent_host/test_start_admission.py:329
tests/agent_host/test_start_admission.py:345
tests/agent_host/test_start_admission.py:352
ARBORA-HOST-R010.7.2.1
Bind actual declarative startup inputs
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Bind actual declarative startup inputs.** Compare a canonical digest of actual builder, listener and metadata inputs before admission owners run. Refuse supplied runtime objects and unused hosting arguments on this path. Caller chain: Host start → `arbora/agent_host/start_configuration.py::check_start_configuration` → admission owners in `arbora/agent_host/start_admission.py`. Shape: `HostStartConfiguration` and `check_start_configuration` in `arbora/agent_host/start_configuration.py` hold the canonical digest; reuse them. | Deterministic input changes refuse with zero owner or startup calls; mapping order preserves the digest. Test: `tests/agent_host/test_runtime_binding.py::test_actual_configuration_change_precedes_owner_calls` and `::test_declarative_mutation_during_owner_await_refuses`.
requirementARBORA-HOSTVERIFIED906170980099
tests/agent_host/test_start_admission.py:262
tests/agent_host/test_start_admission.py:303
tests/agent_host/test_start_admission.py:329
tests/agent_host/test_start_admission.py:345
tests/agent_host/test_start_admission.py:352
ARBORA-HOST-R009.2
Run terminal-mode HTTP in a supervised background thread
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Run terminal-mode HTTP in a supervised background thread.** Entry: `create_agent_server(enable_terminal_ui=True)`. Caller: `arbora/agent_host/__init__.py::create_agent_server` → `arbora/mcp_server/composition.py::CoServiceSupervisor.start_service` → `arbora/webui_host/webui_co_service.py::run_web_ui`. Code: frozen dataclass `HostLaunchReceipt(host_instance, session_id, http_endpoint, interfaces, web_logs, generation, expires_at)`. Rule: HTTP serves in one named daemon thread `arbora-host-http`. Never start a second engine or multiplexer. A second start with the same `host_instance` refuses. Refusals: `HOST_BIND_FAILED`, `HOST_AUTHORITY_ABSENT`, `HOST_DUPLICATE_INSTANCE`. Evidence: thread id, readiness probe result and the single authority identity. Depends: `ARBORA-HOST-R010.7`. Caller chain: planned, not yet wired. `create_agent_server` in `arbora/agent_host/__init__.py` → `CoServiceSupervisor` in `arbora/mcp_server/composition.py` → `run_web_ui` in `arbora/webui_host/webui_co_service.py`. The thread name and `HostLaunchReceipt` do not exist yet. Shape: new frozen dataclass `HostLaunchReceipt`. `create_agent_server` already takes `enable_terminal_ui` and `enable_web_logs`. | Planned test, not yet in the tree. Test: `tests/agent_host/test_create_agent_server.py::test_terminal_mode_serves_http_in_distinct_thread` (served HTTP) probes a real port and asserts one engine authority and each refusal code.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R009.3
Project scoped workspace logs
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Project scoped workspace logs.** Entry: any authenticated host HTTP request. Caller: gateway middleware → `arbora/agent_host/log_sink.py` writer → `arbora/agent_host/log_access.py::HostLogAccess`. Code: `HostLogRecord(host, workspace, tenant, request_id, sequence, timestamp_ms, severity, message)` in `log_access.py`. Rule: write to `<workspace>/agent_data/logs/server.log`. Redact credentials before writing. Pass only a tenant-filtered stream or a tenant-exclusive descriptor to a client. Never share a descriptor. Refusals: `LOG_PATH_ESCAPE`, `LOG_TENANT_MISMATCH`, `LOG_UNSAFE_OWNERSHIP`, `LOG_DESTINATION_UNREADABLE`. Evidence: log reference id, rotation generation and delivery gaps. Never write raw request bodies. Writes: the log file only. Depends: `ARBORA-HOST-R009.2`. Caller chain: planned, not yet wired. gateway middleware → writer in `arbora/agent_host/log_sink.py` → `HostLogAccess` in `arbora/agent_host/log_access.py`. Today `register_host_log_routes` in `arbora/agent_host/log_routes.py` exposes the read. Shape: `HostLogRecord` already exists in `arbora/agent_host/log_access.py`. Add the tenant fields the row lists. Reuse `log_sink.py` for redaction and rotation. | Planned test, not yet in the tree. Test: `tests/agent_host/test_log_access.py::test_two_tenants_in_one_workspace_see_only_their_records` (served HTTP) asserts the correlated record, forged-reference refusal, shared-descriptor refusal and absent secrets.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R009.4
Bound log delivery and shutdown
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Bound log delivery and shutdown.** Entry: log write and host shutdown. Caller chain: `arbora/agent_host/log_sink.py` rotation → `CoServiceSupervisor.stop` in `arbora/mcp_server/composition.py`. Rule: a log reference holds `generation` and `sequence`. Rotate at `host_logs.max_bytes` (default 10485760, range [65536, 1073741824]), keeping `host_logs.keep_files` (default 5, range [1, 50]) in `~/.config/arbora/config.json`. Report an overwritten range as an explicit gap record. Drain on exit. Stop only threads this start created. A stalled reader never blocks serving. Refusal: `LOG_RANGE_NOT_RETAINED`. Evidence: last retained sequence and stopped thread id. Depends: `ARBORA-HOST-R009.3`. Child `.2` binds terminal shutdown. | Test: `tests/agent_host/test_log_sink.py::test_overflow_reports_gap_and_stalled_reader_does_not_block` (unit) asserts the gap and the serving continuity.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R009.4.1
Bound owned supervisor shutdown
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Bound owned supervisor shutdown.** Stop one named service without signaling siblings. Apply one monotonic deadline to all-service shutdown and retain live handles for retry. This prerequisite does not establish terminal startup, sink draining or restart recovery. Caller chain: Terminal exit or reload → `arbora/mcp_server/composition.py::CoServiceSupervisor.stop_service` and `stop_all` (lines 173 to 190). Shape: `CoServiceSupervisor` in `arbora/mcp_server/composition.py` keeps one stop event and thread per service; `stop_all` shares one monotonic deadline and `stop_service` stops one name. | Real loopback HTTP remains reachable on a borrowed sibling after targeted stop. Stalled threads consume one total deadline and cleanup succeeds on retry. Test: `tests/agent_host/test_log_sink_terminal_lifecycle.py::test_terminal_exit_stops_owned_thread_and_keeps_reused_services`.
requirementARBORA-HOSTVERIFIED6fa7e9832d48
tests/mcp_server/test_co_service_supervisor.py:106
tests/mcp_server/test_co_service_supervisor.py:56
tests/mcp_server/test_co_service_supervisor.py:75
ARBORA-HOST-R009.4.2
Integrate delivery and terminal shutdown
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Integrate delivery and terminal shutdown.** Entry: terminal exit in `create_agent_server`. Caller chain: `arbora/agent_host/__init__.py::create_agent_server` finally-block → `CoServiceSupervisor.stop` → `log_sink.drain`. Rule: launch ownership binds to the supervisor and the sink. Stop the owned HTTP thread. Leave reused services running. Report rotation gaps on reconnect. Depends: `ARBORA-HOST-R009.4`. Shape: `create_agent_server` in `arbora/agent_host/__init__.py` (line 268) holds the finally block; it calls `CoServiceSupervisor.stop_service` and the sink in `arbora/agent_host/log_sink.py`. | Test: `tests/agent_host/test_log_sink_terminal_lifecycle.py::test_terminal_exit_stops_owned_thread_and_keeps_reused_services` (served HTTP).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R009.5
Publish the terminal log-consumer handoff
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Publish the terminal log-consumer handoff.** Entry: terminal start. Caller: `create_agent_server` → `HostStartContext` in `arbora/agent_host/host_start.py` → the terminal client `HostLogReader.read` in `tuig`. The handoff is `HostLaunchReceipt` with `web_logs`, bound to host, workspace, tenant, principal and session, with `generation` and `expires_at`. Rule: only `web_logs=true` with a terminal interface allows reads. An invalid, disabled or expired handoff causes zero reads. The host sink and agent interaction stay available. Arbora implements no terminal widget. Consumer rows: `TUIG-RUNTIME-R002.2` to `TUIG-RUNTIME-R002.5`. Depends: `ARBORA-HOST-R009.3`. Caller chain: planned, not yet wired. `create_agent_server` in `arbora/agent_host/__init__.py` (takes `enable_web_logs`) → `HostStartContext` in `arbora/agent_host/start_configuration.py` → the terminal reader in the `tuig` repository. Shape: the handoff receipt type is new. Reuse `HostStartContext` and `NativeHostStartGrants` in `arbora/agent_host/host_start.py`. | Planned test, not yet in the tree. Test: `tests/agent_host/test_log_sink_terminal.py::test_disabled_or_expired_handoff_allows_zero_reads` (served HTTP). End-to-end proof is `ARBORA-HOST-R009.6`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R009.6
Prove start and logs through real processes
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Prove start and logs through real processes.** Entry: the real agent host process with the native terminal client from `tuig`. Caller: `create_agent_server` → HTTP request → log sink → `HostLogReader.read`. Code: new `tests/agent_host/test_terminal_host_served.py`. Fixture: a disposable workspace. Cases: terminal, web and both, each with `web_logs` true and false. Only terminal or both with true may read. Evidence: endpoint responses, thread ids, workspace digests, log sequences and engine start count (must be 1). Bind producer and consumer revisions. Depends: `ARBORA-HOST-R009.5`, `TUIG-RUNTIME-R002.6`. Caller chain: planned, not yet wired. the real agent host process → `create_agent_server` → HTTP request → `arbora/agent_host/log_sink.py` → the reader in `tuig`. Shape: new test file `tests/agent_host/test_terminal_host_served.py`. It reuses the native terminal helpers in `tests/agent_host/native_terminal.py`. | Planned test, not yet in the tree. Test: `tests/agent_host/test_terminal_host_served.py::test_combined_mode_serves_http_and_scoped_logs` (served HTTP + PTY) asserts zero unauthorized reads and a clean termination.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R006.1
Preserve the sole multiplexer owner
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Preserve the sole multiplexer owner.** Model: The original parent remains the complete contract. Behavior: Retain every original R006 ownership clause, including all additional hosted modules and the absence of duplicate multiplexers. Wiring: Reuse the original package-layout test and the single serving lifecycle. Refusal: New child evidence cannot replace any original acceptance obligation. Evidence: Retain the original parent receipts and require its complete acceptance. Caller chain: CI runs `tests/test_package_layout.py` and `tests/architecture/test_fleet_sole_multiplexer.py`. Both read the files under `arbora/` and look for a second multiplexer. Shape: the sole implementation is `arbora/fleet/multiplexer.py`. The checks are `test_serving_packages_do_not_import_legacy_au_multiplexer` and `test_no_multiplexer_class_is_defined_outside_arbora_fleet`. | The original full module census passes; transport conformance alone cannot establish module ownership. Tests: `tests/architecture/test_fleet_sole_multiplexer.py::test_no_multiplexer_class_is_defined_outside_arbora_fleet` and `tests/test_package_layout.py::test_serving_packages_do_not_import_legacy_au_multiplexer`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R006.2
Serve stdio and streamable HTTP from one entrypoint
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Serve stdio and streamable HTTP from one entrypoint.** Subsystem: MCP serving. Caller: console script `arbora` → `arbora/mcp_server/server.py::mcp_server` → `scion_sdk.mcp.network.build_network_serving_config(args)`. The SDK function owns transport, host, port and auth parsing; Arbora adds no second config type. Rule: `--transport stdio` or `streamable-http`; default `stdio`, host `127.0.0.1`, port `8000`, port range `1..65535`. One `MCPMultiplexer` instance serves both modes. Refusal: an unknown transport, a port outside the range, or a network transport without server-validated identity exits before serving. The exit code is `INVALID_REQUEST`. Diagnostics go to stderr, never stdout frames. Evidence: one startup log record with transport, tool digest and multiplexer instance count. Provider: `SCION-CONNECTOR-CONTROL-R025.3`. Depends: `ARBORA-HOST-R007.2.55`. Caller chain: console script `arbora` → `arbora.console:main` → `arbora/mcp_server/server.py::mcp_server` → `build_network_serving_config` from `scion_sdk.mcp.network` (called at `server.py:306`). Shape: the parser in `arbora/mcp_server/backing/server_factory.py::create_mcp_parser` and the SDK config type. The transport test file is new. | Planned test, not yet in the tree. `tests/mcp_server/test_transport_served.py::test_stdio_and_http_initialize_and_call_one_op` (L3) uses a real MCP client. `::test_bad_options_and_unauthenticated_http_refuse` (L3).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R023.2
Prove transport parity on the served surface
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Prove transport parity on the served surface.** Entry: HTTP and MCP clients against one running Arbora. Caller: `arbora/api/mcp/serving.py` and the HTTP registrar, both built from one registry generation. Rule: compare normalized tool names and schemas, then dispatch one scoped call and one unauthorized call per transport. Refusals: `PARITY_TOOL_MISSING`, `PARITY_SCHEMA_DIVERGED`. The unauthorized call is refused by the pipeline before any downstream effect. Evidence: both catalogs and the invocation receipts. Depends: `ARBORA-HOST-R023`. Caller chain: planned, not yet wired. HTTP and MCP clients → the HTTP registrar and `register_intent_surface` in `arbora/api/mcp/serving.py`, both built from `get_registry()`. Shape: new test file `tests/api/test_mcp_parity.py`. Reuse `register_intent_surface` and `get_registry`. | Planned test, not yet in the tree. Test: `tests/api/test_mcp_parity.py::test_transport_parity_and_unauthorized_refusal` (served HTTP and MCP) asserts eight equal tools and zero downstream effects on refusal.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.6
Bind the harness target and version matrix
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Bind the harness target and version matrix.** Entry: `setup-config install-harnesses`. Caller: `arbora/deployment/cli.py::main` → `harness_install.py::SUPPORTED_TARGETS` (new constant). Code: `SUPPORTED_TARGETS` maps each `AGENT_SURFACES` key in `arbora/ecosystem/hook_installer.py` to a minimum version, a parser name and an MCP entry format. The command, its skill entry and the matrix are one source. Rule: a target missing from the matrix is `HARNESS_ADAPTER_UNKNOWN`. Each supported target needs one configuration fixture, one parser check and one client check in `ARBORA-HOST-R008.5`. Evidence: the matrix is printed by `--list-targets`. This row replaces the AU:96 slice and duplicates nothing in `.2` to `.5`. Depends: `ARBORA-HOST-R008.2`. Caller chain: planned, not yet wired. console script `setup-config` (`arbora.deployment.cli:main`) → `SUPPORTED_TARGETS` in `arbora/ecosystem/harness_install.py` (new). Shape: new constant `SUPPORTED_TARGETS` keyed by the `AGENT_SURFACES` keys of `arbora/ecosystem/hook_installer.py`. | Planned test, not yet in the tree. Test: `tests/ecosystem/test_harness_install.py::test_every_surface_has_a_matrix_entry_and_fixture` (unit) fails when a surface lacks a matrix entry, parser or fixture.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R026.6
Primary-channel unavailability falls back to A2A team coordination
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Primary-channel unavailability falls back to A2A team coordination.** Scope: Primary-session-channel unavailability triggering A2A team coordination, plus graph-discoverable team records binding persisted task status and team members. Is not defined. Agent Library membership is not team membership. Arbora minimum action: Define the unavailable-channel fallback and team/member/task-status graph projection using existing A2A task persistence and library primitives. Require discovery and restart acceptance. Producer/consumer boundary: The harness coordinator -> Arbora A2A host/A2ATaskStore -> EG durable task state and Agent Library projection. Fallback and team-record projection contracts are missing. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `MEDULLA-ORCH-VOCAB-R003, MERISTEM-CONTROL-R027`. No implementation or runtime evidence is claimed. Caller chain: planned, not yet wired. the coordinator → the A2A host in `arbora/a2a/` and `WorkItemA2AAuthority` in `arbora/a2a/authority.py` → the engine task state. Shape: the fallback and team-record projection contracts are missing. Reuse `A2AService` in `arbora/a2a/service.py`. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `MEDULLA-ORCH-VOCAB-R003, MERISTEM-CONTROL-R027`. This definition does not assert these tests have run. Planned test, not yet in the tree: `tests/a2a/test_team_fallback.py::test_unavailable_channel_falls_back_to_team_coordination`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R022.1
Workflow registration lifecycle and lazy engine initialization
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Workflow registration lifecycle and lazy engine initialization.** Scope: Workflow registration lifecycle, lazy engine initialization on first use and invocation through that registry. Arbora minimum action: Extend the workflow registry owner with registration/read identity and first-use engine initialization. Then require registry-resolved invocation through the existing host/AU path. Test no eager initialization, one first-use initialization, registered invocation and unknown-workflow refusal. Producer/consumer boundary: Preserve ARBORA-HOST-R022 workflow_store semantic match and MERISTEM-CONTROL-R037.5 graph_orchestrate -> `execute_workflow`. Registration and lazy initialization contracts/edges remain absent. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `ARBORA-HOST-R022, MERISTEM-CONTROL-R037`. No implementation or runtime evidence is claimed. Caller chain: planned, not yet wired. `install_decide_consumers` → `_workflow_lookup` in `arbora/mcp_server/decide_wiring.py` → a workflow registry owner (new). Shape: extend `_workflow_lookup` in `decide_wiring.py`. The registry type is new. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `ARBORA-HOST-R022, MERISTEM-CONTROL-R037`. This definition does not assert these tests have run. Planned test, not yet in the tree: `tests/mcp_server/test_workflow_registry.py::test_first_use_initialization_and_unknown_workflow_refusal`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.8
Public environment declaration exports from SDK and Meristem
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Public environment declaration exports from SDK and Meristem.** Entry: `load_environment_manifest` in `ARBORA-HOST-R010.2`. Caller: `arbora/core/settings.py` calls `scion_sdk` and `meristem` declaration exports. Rule: each owner exports a versioned list of `EnvironmentDeclaration` entries, including indirect reads, for its enabled components. Arbora composes them and adds none. Refusal: `ENV_MANIFEST_UNAVAILABLE` when an enabled component exports nothing. Diagnostics hold names only. Producer rows: `SCION-CONNECTOR-CONTROL-R908` in `SCION-CONNECTOR-CONTROL`, `MERISTEM-HARNESS-CYCLE-R058` in `MERISTEM-HARNESS-CYCLE`. The producer rollups are `SCION-CONNECTOR-CONTROL-R053` and `MERISTEM-HARNESS-CYCLE-R083`. Depends: `SCION-CONNECTOR-CONTROL-R908`, `MERISTEM-HARNESS-CYCLE-R058`, `SCION-CONNECTOR-CONTROL-R053`, `MERISTEM-HARNESS-CYCLE-R083`. Caller chain: planned, not yet wired. `load_environment_manifest` (new, `.2`) in `arbora/core/settings.py` → the declaration exports of `scion_sdk` and `meristem`. Shape: compose the public exports without copying them. The producer rows are `SCION-CONNECTOR-CONTROL-R908` and `MERISTEM-HARNESS-CYCLE-R058`. | Planned test, not yet in the tree. Test: `tests/test_environment_manifest.py::test_unavailable_component_manifest_prevents_startup` (unit) with a fake export.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R032
Remote workbench compatibility manifest and admission
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Remote workbench compatibility manifest and admission.** Entry: registered operations `workbench.compatibility.get` and `workbench.extensions.admit`. Caller: operation registry (`arbora/api/ops/registry_factory.py`) → handlers in `arbora/api/ops/workbench.py` (new) → the embedded editor and context bridge. Code: closed models `WorkbenchCompatibility` and `ExtensionAdmission` (no version suffix; each carries `schema_version`). `WorkbenchCompatibility` holds editor protocol and version, and supported extension ids with version ranges and capabilities. It also holds keybinding profiles, workspace and session identity, focus rules and reserved shortcuts. `ExtensionAdmission` holds the extension id, version and an outcome of `admitted` or `refused`. Rule: require an authenticated workspace and session scope. Refusals: `WORKBENCH_PROTOCOL_INCOMPATIBLE`, `WORKBENCH_EXTENSION_INCOMPATIBLE`, `WORKBENCH_WORKSPACE_FORBIDDEN`. Never expose credentials. Arbora creates no editor and no ACP adapter. Writes: none. Consumer: `OVERSTORY-APPS-R001.4`. Caller chain: planned, not yet wired. `get_registry` in `arbora/api/ops/registry_factory.py` → handlers in `arbora/api/ops/workbench.py` (new). Shape: new closed models `WorkbenchCompatibility` and `ExtensionAdmission` in `arbora/api/ops/workbench.py`. The registration follows `arbora/api/ops/browser.py`. | Planned test, not yet in the tree. Test: `tests/api/test_workbench_ops.py::test_compatibility_admission_and_cross_workspace_refusal` (served HTTP and MCP) asserts declared extension, shortcut rules, each refusal code and absent credentials.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R033
Unique records are created, not upserted
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Unique records are created, not upserted.** Entry: every Arbora persisted write of a once-only record. Caller chain: `ActionPolicy._audit` (`arbora/access/action_policy.py`), the run-event sink, fleet events, error details, trace cursor checkpoints, configuration changes and message mirrors → `arbora/unique_records.py::create_record`. The served engine sends `CreateNodeIfAbsent`, idempotent by id (`MEDULLA-DURABLE-KERNEL`). `AddNode` remains only for in-place updates such as an inbox row status or a channel preference. Rule: `has_record_writer(engine)` is false when `create_node` is absent. Then `create_record` raises `RuntimeError` without calling `AddNode` or reading first. A refused create keeps the engine code and detail. Returns true when this call created the node. Children `.1` and `.3` hold the label model and shape rule. Depends: none. | Test: `tests/test_unique_records.py` (served engine, recorded) asserts an action-policy decision and approval use `create_node`, never `add_node`. It also asserts that the wire op is `CreateNodeIfAbsent`.
requirementARBORA-HOSTSPECIFIED3d0f79273e9d
f3580eb0f5d0
tests/messaging/test_inbox.py:129
tests/test_unique_records.py:114
tests/test_unique_records.py:133
tests/test_unique_records.py:37
tests/test_unique_records.py:67
ARBORA-HOST-R033.1
One label model and one writer per persisted record type
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**One label model and one writer per persisted record type.** Entry: any labelled node write. Caller: `ServedEngine.add_node` and `ServedEngine.create_node` → `arbora/unique_records.py::record_body(label, properties)`. Rule: `record_body` returns the given properties plus `type` and the engine label property `node_type`, both equal to the label. It is the only builder. An `ActionDecision` has one writer: `ActionPolicy._audit` calls `create_record` with `action_decision_record(decision)` (`arbora/access/action_policy.py:552`). Refusal: a second writer of a covered label fails the census. Writes: through `create_record`. Depends: `ARBORA-HOST-R033`. Caller chain: `ServedEngine.add_node` and `create_node` in `arbora/mcp_server/served_engine.py` → `record_body` in `arbora/unique_records.py`. `ActionPolicy._audit` → `create_record`. Shape: `record_body`, `create_record` and `action_decision_record` in `arbora/unique_records.py` and `arbora/access/action_policy.py`. | Test: `tests/test_persisted_shapes.py` (unit) asserts the audit write is one `ActionDecision` create with exactly the `action_decision_record` fields. It also asserts both served-engine writes send `record_body(label, properties)`.
requirementARBORA-HOSTSPECIFIEDtests/test_persisted_shapes.py:54
tests/test_persisted_shapes.py:75
ARBORA-HOST-R033.2
Versioned, idempotent data migrations run at serving start and are recorded
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Versioned, idempotent data migrations run at serving start and are recorded.** `arbora.data_migrations.DATA_MIGRATIONS` is an append-only, ordered list. Each entry names one label, the shape its writer produces after it runs and one step. `run_data_migrations` runs at serving start under the process session, after the base graphs exist and before fleet onboarding. A migration that completes with no rows left is recorded once as `DataMigration` node `data_migration:<id>` with its found, changed and remaining counts, the Arbora version and the time. A recorded migration is skipped. A migration that leaves rows is reported `incomplete` and is not recorded. A failure is reported with its error class. Neither one stops serving. Migration `0001-action-decision-node-type-label` repairs `ActionDecision` rows stored with `type` but without `node_type`. It sets only `node_type` through one engine compare-and-set per row, conditioned on `type` equal to the label and `node_type` absent. Every other field and timestamp is kept. A label or shape change ships its migration in the same change. Child slice of `ARBORA-HOST-R033`. Caller chain: serving start → `run_data_migrations` in `arbora/data_migrations.py`, after the base graphs exist and before fleet onboarding. Shape: `DATA_MIGRATIONS` and `run_data_migrations` in `arbora/data_migrations.py`; ledger nodes use `create_record`. | `tests/test_data_migrations.py` against the released native engine: type-only rows become readable by label with every original field unchanged, the record holds the counts, a second start reports `recorded` and changes nothing, and the step alone is idempotent. With doubles: leftover rows are `incomplete` and unrecorded, a failure is reported without raising, and an engine without compare-and-set runs nothing. Test: `tests/test_data_migrations.py::test_rows_left_behind_are_reported_and_not_recorded` and `::test_a_failing_migration_is_reported_and_never_raises`.
requirementARBORA-HOSTVERIFIEDe27376e52ab7
f3179c2af813
tests/test_data_migrations.py:30
ARBORA-HOST-R033.3
A persisted shape changes only with a migration
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**A persisted shape changes only with a migration.** Entry: unit gate and migration runner. Caller: `arbora/data_migrations.py::shape_digest(label, fields)` called by `_action_decision_shape`. Rule: the shape digest is SHA-256 with 64 lowercase hex characters. It covers the label and the sorted field names, including the `record_body` label fields. It must equal the `shape_digest` of the newest `DataMigration` for that label. Migration ids are unique and ordered. `ActionDecision` is covered. A new covered type ships with its first migration. Refusals: `SHAPE_DIGEST_MISMATCH`, `MIGRATION_ID_REPEATED`, `MIGRATION_ID_UNORDERED`. Depends: `ARBORA-HOST-R033.1`. Caller chain: `pytest` runs `tests/test_persisted_shapes.py`, which calls `shape_digest` in `arbora/data_migrations.py` through `_action_decision_shape`. Shape: `shape_digest(label, fields)` and `DATA_MIGRATIONS` in `arbora/data_migrations.py`. | Test: `tests/test_persisted_shapes.py` (unit) fails on a differing writer shape, repeated or unordered migration ids and a changed label model.
requirementARBORA-HOSTSPECIFIEDtests/test_persisted_shapes.py:27
ARBORA-HOST-R010.9
Refuse unsupported client interfaces before host effects
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Refuse unsupported client interfaces before host effects.** The connector host rejects enabled terminal, web or log options with client_unavailable. Reject non-boolean options with invalid_launch. Refuse before workspace initialization, graph construction or listener startup. Omitted and false options preserve ordinary HTTP hosting. This row covers refusal only. R009.2 through R009.6 and R010.7 retain their full served acceptance. Caller chain: `create_agent_server` in `arbora/agent_host/__init__.py` raises `invalid_launch` for a non-boolean flag and `HostInterfaceUnavailable` (`client_unavailable`) for an enabled `enable_terminal_ui`, `enable_web_ui` or `enable_web_logs`. Shape: `HostInterfaceUnavailable` in `arbora/agent_host/__init__.py`. The sentinel fixtures are in `tests/agent_host/test_interface_refusal.py`. | Sentinel tests observe zero constructor and listener calls for refused options. Default HTTP cases reach the existing server. Test: `tests/agent_host/test_interface_refusal.py::test_unavailable_interfaces_refuse_before_build_or_listen`, `::test_non_boolean_interface_flags_refuse_before_start` and `::test_default_http_host_still_reaches_existing_server`.
requirementARBORA-HOSTVERIFIED21bf942e9389
c18b2c507267
tests/agent_host/test_interface_refusal.py:3
ARBORA-HOST-R009.7
Injected host log authority
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Injected host log authority.** Resolve current identity through SessionAuthority and exact workspace grants through trusted composition. Deny absent owners. Bind opaque references to current session, tenant, principal, workspace, host, grant revision and expiry. Revalidate before and after each bounded source read. Wire the optional adapter into the existing host. Caller chain: `register_host_log_routes` in `arbora/agent_host/log_routes.py` → `HostLogAccess` in `arbora/agent_host/log_access.py` → `SessionAuthority` and the grant owners. Shape: `HostLogAccess` and `log_runtime.py` in `arbora/agent_host/`. The tests reuse the fixtures in `tests/agent_host/conftest.py`. | Controlled HTTP tests prove successful reads, isolation, expiry, revocation, mismatches and zero unauthorized source calls. This does not prove deployed grants or the full sink and terminal journey. Test: `tests/agent_host/test_log_access.py::test_success_isolation_reconnect_and_foreign_cursor`.
requirementARBORA-HOSTVERIFIED22534d1e5448
cdd77f05d30b
e30aad028a40
tests/agent_host/test_log_access.py:2
ARBORA-HOST-R009.8
Production host log sink
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Production host log sink.** Entry: every authenticated host request. Caller chain: gateway middleware → `arbora/agent_host/log_sink.py::HostLogSink.record`. Rule: owner-only mode 0600, rotating, redacted before write. Reject symlinks and group-writable directories. The sink stays active whatever the terminal preference. Per-tenant projections are private. Refusals: `LOG_UNSAFE_LINK`, `LOG_UNSAFE_MODE`. Writes: the log file. Depends: `ARBORA-HOST-R009.3`. | Test: `tests/agent_host/test_log_sink.py::test_rotation_redaction_modes_and_tenant_isolation` (served HTTP) asserts each refusal code.
requirementARBORA-HOSTSPECIFIED191af7948d99
28cc061c8f06
34077185335e
37f265dde58d
71227bbdf7f4
tests/agent_host/test_log_sink.py:2
ARBORA-HOST-R009.8.1
Admit exact source generations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Admit exact source generations.** Extend the existing workspace grant with a bounded immutable set of explicit source host IDs. Empty sets deny. Bind handles and cursors to that set. Refresh grants before and after source reads. Preserve original record host identity. Caller chain: Terminal log read → `arbora/agent_host/log_access.py::HostLogAccess` → `WorkspaceGrantProvider`. Shape: `WorkspaceLogGrant`, `valid_generations` and `HostLogAccess` in `arbora/agent_host/log_access.py` hold the grant; add the bounded source host ID set there. | HTTP tests prove generation refusal, change invalidation and fresh admission. This does not prove durable restart replay. Test: `tests/agent_host/test_log_access.py::test_grant_mismatches_never_read` and `::test_source_bounds_before_serialization`.
requirementARBORA-HOSTVERIFIED34077185335e
ee476c64b37f
tests/agent_host/test_log_access.py:498
tests/agent_host/test_log_access.py:513
tests/agent_host/test_log_access.py:540
tests/agent_host/test_log_sink.py:227
ARBORA-HOST-R009.8.2
Retain restart acceptance
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Retain restart acceptance.** Entry: host restart. Caller chain: `arbora/agent_host/log_replay.py::replay_source` at `create_agent_server` start. Rule: replay preserves the original generation, sequence, request id and timestamp. Cursors are HMAC-bound to tenant with the host key. A retention gap is explicit. Refusals: `LOG_CURSOR_INVALID`, `LOG_RANGE_NOT_RETAINED`. Writes: none. Depends: `ARBORA-HOST-R009.8`. | Test: `tests/agent_host/test_log_replay.py::test_restart_replays_original_metadata_and_reports_gap` (served HTTP across a real restart).
requirementARBORA-HOSTSPECIFIED28cc061c8f06
71227bbdf7f4
80f6b7b53f91
c7208d7d3822
ceaa3da1bbcc
ARBORA-HOST-R009.8.2.1
Replay retained host files after restart
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Replay retained host files after restart.** Reuse the owner-only rotating log files. Validate bounded records and preserve source host, sequence, request, timestamp and severity. Bind a durable resume cursor to tenant, workspace, exact generation set and record position with a private persisted integrity key. Fresh session and generation admission is required after restart. Missing cursor anchors refuse with an explicit retention gap. Caller chain: Host restart → `arbora/agent_host/log_replay.py::retained_records` → `ReplayCursor` → `arbora/agent_host/log_access.py::HostLogAccess`. Shape: `retained_records`, `decode_record`, `cursor_key` and `ReplayCursor` in `arbora/agent_host/log_replay.py` hold the replay; reuse the owner-only file helper `private_file`. | Real file close/reopen and HTTP fixtures resume authorized history, reject changed grants and forged cursors, and report rotated-away positions. No production grant issuer is supplied. Test: `tests/agent_host/test_log_replay.py::test_http_restart_requires_fresh_grant_and_retains_original_metadata`, `::test_rotated_anchor_returns_explicit_http_gap` and `::test_durable_cursor_rejects_tampering_and_scope_changes`.
requirementARBORA-HOSTVERIFIED80f6b7b53f91
c7208d7d3822
tests/agent_host/test_log_replay.py:2
ARBORA-HOST-R009.8.2.2
Complete consumer metadata presentation
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Complete consumer metadata presentation.** Entry: the native terminal reads a batch. Caller chain: `arbora/agent_host/log_routes.py` route → `HostLogBatch` with `schema_version`. The batch carries original record metadata and gap records. Consumer: `TUIG-RUNTIME-R002.5` renders both. Rule: a message-only batch is refused with `LOG_SCHEMA_UNSUPPORTED`. Depends: `ARBORA-HOST-R009.8.2`. | Test: `tests/agent_host/test_log_metadata.py::test_batch_carries_metadata_and_gap_records` (served HTTP). The `tuig` PTY test is the consumer proof.
requirementARBORA-HOSTSPECIFIED28cc061c8f06
71227bbdf7f4
b5a44c8a205b
ceaa3da1bbcc
tests/agent_host/test_log_metadata.py:2
tests/agent_host/test_log_sink_terminal.py:10
ARBORA-HOST-R009.8.2.2.1
Qualify the released native terminal
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Qualify the released native terminal.** Replace retired Python terminal acceptance with the pinned Tuig executable. Preserve delayed HTTP reads, revocation clearing, original restart metadata and retention-gap refusal through a real PTY and production sink. Caller chain: `tests/agent_host/test_log_sink_terminal_lifecycle.py` drives the production sink over HTTP into the installed native terminal through a PTY. Shape: helpers `tests/agent_host/native_terminal.py` and `native_terminal_trace.py`. Sink: `arbora/agent_host/log_sink.py`. | Four required Linux cases use the released wheel, real HTTP and files, with controlled grant owners. No missing-binary skip, copied consumer or reduced receipt shape can qualify this row. This does not qualify a deployed grant issuer or complete host startup. Test: `tests/agent_host/test_log_sink_terminal_lifecycle.py::test_production_sink_over_http_into_mounted_terminal` and `::test_restarted_source_metadata_and_rotation_gap_in_terminal`.
requirementARBORA-HOSTVERIFIED402aa8da8eeb
767541a29e56
954a94ff394b
c9be06d6eaf2
tests/agent_host/test_log_sink_terminal_lifecycle.py:2
ARBORA-HOST-R009.8.2.2.2
Retain Overstory metadata acceptance
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Retain Overstory metadata acceptance.** Entry: the browser journey against a real host. Caller: `arbora/agent_host/log_routes.py` → Overstory log view. Rule: the web client renders original host metadata and clears protected content on a retention gap. Native terminal evidence never closes this row. Consumer row: Overstory host-log view, named in `cross_edits`. Depends: `ARBORA-HOST-R009.8.2.2`. Caller chain: planned, not yet wired. `arbora/agent_host/log_routes.py` → the Overstory log view in the `overstory` repository. Shape: new test file `tests/agent_host/test_overstory_logs_served.py`. The routes come from `register_host_log_routes`. | Planned test, not yet in the tree. Test: `tests/agent_host/test_overstory_logs_served.py::test_retention_gap_clears_protected_content` (served HTTP + browser, new).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1000
Startup bindings for messaging, A2A and readiness
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Startup bindings for messaging, A2A and readiness.** Entry: server bootstrap. Caller chain: `arbora/mcp_server/server.py::mcp_server` → `arbora/host_bindings.py::bind_messaging_ports`, `bind_health_probes`, `mount_sdk_a2a`. The composition root binds the messaging ports and mounts the SDK A2A application for the fleet agent. It binds the readiness probes before serving. Rule: any failed bind aborts startup. Children `.1001` to `.1004` hold the model, behaviour, wiring and refusal. Depends: `ARBORA-HOST-R001.2`. Shape: `arbora/host_bindings.py` holds `bind_messaging_ports` (line 151), `bind_health_probes` (line 310) and `mount_sdk_a2a` (line 226); the server calls them in order. | Test: `tests/test_host_bindings.py::test_bind_messaging_ports_binds_all_four_ports` (unit) and the served probe in `.1004`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1001
Model of the send decision and the fleet agent
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Model of the send decision and the fleet agent.** Entry: bootstrap. Code: `SendDecision` in `arbora/host_bindings.py` holds the admission result of one send: `allowed`, `reason` and `session_id`. The fleet agent has one toolset, the `find` and `act` intent tools, so it reaches the multiplexer. Rule: the toolset has exactly two tools. Evidence: the decision is returned to the caller and is not persisted. Writes: none. Depends: `ARBORA-HOST-R008.1000`. Caller chain: Bootstrap → `arbora/host_bindings.py::SendDecision` (line 101) returned by the send gate. Shape: `SendDecision` in `arbora/host_bindings.py` is a frozen record of `allowed`, `reason` and `session_id`; the fleet toolset is built in the same module. | Test: `tests/test_host_bindings.py::test_send_gate_admits_only_a_session_with_a_send_scope` (unit) asserts the decision fields and the two-tool set.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1002
Behaviour of the turn handler and send gate
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Behaviour of the turn handler and send gate.** Entry: a messaging turn from a channel backend. Caller chain: `arbora/messaging/router.py` → `host_bindings.py` turn handler → the fleet agent. The turn handler runs one turn. The action gate admits a send only for a verified session with scope `messaging:send`. The outbound mirror writes one `OutboundMessage` node per sent message through `arbora.unique_records.create_record`. The runtime signal goes to a bounded buffer of 1024 entries, config key `messaging.signal_buffer` in `~/.config/arbora/config.json`, range [64, 65536]. Writes: the mirror only. Depends: `ARBORA-HOST-R033`. Shape: `arbora/host_bindings.py` holds the turn handler, the send gate and the outbound mirror; the mirror reuses `arbora/unique_records.py::create_record` (line 45). | Test: `tests/test_host_bindings.py::test_outbound_mirror_records_one_node_per_message` (unit) asserts one node per message and a dropped oldest signal at the bound.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1003
Wiring of messaging, readiness and A2A mounting
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Wiring of messaging, readiness and A2A mounting.** Entry: bootstrap. Caller chain: `arbora/mcp_server/server.py::mcp_server` calls `bind_messaging_ports()` and `bind_health_probes()`. The tool-surface registration calls `mount_sdk_a2a(mcp)`. That call mounts the admitted A2A application at `/a2a/agent`. It runs the task manager of that application as a server extension. Rule: mount only after admission is bound. Depends: `ARBORA-HOST-R008.1000`. Shape: `mount_sdk_a2a(mcp)` in `arbora/host_bindings.py` (line 226) wraps the SDK A2A application with the path prefix; `arbora/mcp_server/server.py::mcp_server` calls it. | Test: `tests/test_host_bindings.py::test_bind_messaging_ports_binds_all_four_ports` (unit). Served proof: an HTTP request to `/a2a/agent` in `.1004`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1004
Refusals of send, A2A and readiness
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Refusals of send, A2A and readiness.** Entry: a send, an A2A request and the readiness probe. Caller chain: `host_bindings.py` action gate, the A2A mount and `arbora/observability/gateway_health.py`. Refusals: the gate denies with `SEND_NO_SESSION` or `SEND_NO_SCOPE`. An A2A request without verified authority gets HTTP 401 before the application runs. An unbound mandatory probe makes the process not ready with reason `PROBE_UNBOUND`. Evidence: the denial reason is returned and audited as an `ActionDecision`. Depends: `ARBORA-HOST-R008.1003`. Shape: The gate lives in `arbora/host_bindings.py`, the A2A mount in `mount_sdk_a2a`, and the readiness probe in `arbora/observability/gateway_health.py`; no new type. | Test: `tests/observability/test_runtime_health.py::test_unbound_mandatory_probes_make_the_process_not_ready` (unit). Served test: `tests/test_host_bindings.py::test_a2a_without_authority_returns_401` (new, HTTP).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1005
Evidence
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Evidence.** Tests use fakes for the engine and the session. They check the gate table, the port bindings, the mirror and the A2A path prefix. Caller chain: `pytest tests/test_host_bindings.py` → fakes for the engine and session → `arbora/host_bindings.py`. Shape: The tests build fakes in `tests/test_host_bindings.py`; they add no production type and reuse the fakes in `tests/_eg_fakes.py`. | `tests/test_host_bindings.py::test_prefixed_app_strips_the_mount_path`
requirementARBORA-HOSTVERIFIEDe755549375e6
tests/test_host_bindings.py:68
ARBORA-HOST-R008.1006
Hosted observability, ecosystem and deployment modules
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Hosted observability, ecosystem and deployment modules.** Entry: bootstrap. Caller: `arbora/mcp_server/server.py::mcp_server`. Code: run correlation context, gateway metrics and runtime health core under `arbora/observability/`. Trace export setup, trace records and the error-detail sink. The ARD registry, federation and signing under `arbora/ecosystem/ard_*.py`. The hook installer, profile guard, mount guard and asset readers. The source catalogue under `arbora/ingest/`. Rule: none of these imports the `meristem` harness. Depends: `ARBORA-HOST-R008`. Caller chain: `mcp_server` in `arbora/mcp_server/server.py` → the modules under `arbora/observability/`, `arbora/ecosystem/` and `arbora/ingest/`. Shape: the modules the row lists, with `HookInstaller` in `arbora/ecosystem/hook_installer.py` and the guards in `arbora/deployment/profile_guard.py`. No new helper. | Tests (unit): `tests/observability/test_correlation.py`, `tests/observability/test_telemetry.py`, `tests/observability/test_trace_records.py`, `tests/ecosystem/test_ard.py`, `tests/ecosystem/test_hook_installer.py`, `tests/deployment/test_guards.py`, `tests/ingest/test_source_catalog.py`. Named tests: `tests/observability/test_correlation.py::test_inject_carries_one_correlation_id_and_the_identity`, `tests/ecosystem/test_hook_installer.py::test_install_merges_existing_settings_and_uninstall_removes_the_hooks` and `tests/ingest/test_source_catalog.py::test_catalogue_without_registry_lists_providers_as_unavailable`.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1007
Behaviour of correlation and probes
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Behaviour of correlation and probes.** Entry: every served request and the readiness probe. Caller chain: gateway middleware → `arbora/observability` correlation context. Correlation headers carry one run id, the session, the priority and the caller identity across processes. A probe that errors or exceeds `observability.probe_timeout_s` (default 5, range [1, 60]) reports unhealthy with its reason. Config file: `~/.config/arbora/config.json`. Depends: `ARBORA-HOST-R008.1006`. Shape: Correlation lives in `arbora/observability/`; probe timeout comes from the `observability.probe_timeout_s` setting and `arbora/observability/gateway_health.py` reports unhealthy. | Test: `tests/observability/test_runtime_health.py::test_a_failing_probe_is_unhealthy_with_its_reason` (unit) asserts the reason and the timeout case.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R008.1008
Refusals of trace export and asset reading
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Refusals of trace export and asset reading.** Entry: trace export setup and the asset reader at startup. Caller chain: `arbora/observability` telemetry setup and `arbora/deployment` asset readers. Refusals: `TRACE_EXPORT_CLEARTEXT_HOST` for a non-loopback cleartext host. `ASSET_TOO_LARGE` over `assets.max_bytes` (default 1048576, range [1024, 67108864]). `ASSET_DUPLICATE_KEY` for duplicate JSON keys. Writes: none. Depends: `ARBORA-HOST-R008.1006`. Shape: Trace export setup lives in `arbora/observability/`; the JSON reader guard lives in `arbora/deployment/` and is covered by `tests/deployment/test_guards.py`. | Test: `tests/deployment/test_guards.py::test_json_reader_rejects_duplicate_keys` (unit). Add `test_export_refuses_cleartext_nonloopback` and `test_asset_over_bound_refused` in the same file.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R010.7.2.2.1
Attest runtime ownership
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Attest runtime ownership.** Extend the existing session binding owner to attest exact borrowed resources, current configuration revision and actual declarative digest. Reject absent or changing attestations. Return checked resources for launcher consumption. Caller chain: `create_agent_server` (`arbora/agent_host/__init__.py` line 268) → `arbora/agent_host/managed_web.py::ManagedWebApplication.attest` → `HostRuntimeResources`. Shape: `ManagedWebApplication.attest` (line 116 of `arbora/agent_host/managed_web.py`) and `HostRuntimeResources` in `arbora/agent_host/start_configuration.py` (line 88) hold the attestation; reuse them. | Controlled owner tests prove exact resource binding, changed configuration refusal and session revalidation. No issuer or client listener is created. Test: `tests/agent_host/test_runtime_binding.py::test_exact_borrowed_runtime_is_returned_only_after_owner_admission` and `::test_replaced_resource_is_denied_even_with_equal_configuration`.
requirementARBORA-HOSTVERIFIEDbbc699652d50
f261d4f80861
tests/agent_host/test_runtime_binding.py:2
ARBORA-HOST-R010.7.2.2.2.1
Revalidate borrowed runtime at ASGI startup
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Revalidate borrowed runtime at ASGI startup.** Preserve checked startup facts and refresh existing admission before lifespan readiness. Reject expired or revoked authority, changed owner revision and replaced resources. Clear readiness on shutdown without closing borrowed resources. Caller chain: ASGI startup of the managed web application → `arbora/agent_host/managed_web.py::ManagedWebApplication` lifespan → owner revalidation in `arbora/agent_host/start_admission.py`. Shape: `ManagedWebApplication` in `arbora/agent_host/managed_web.py` holds the lifespan hook; reuse `check_host_start` for the refresh. | Real ASGI lifespan tests use controlled existing owners. They establish lifecycle wiring only, not native authority or client activation. Test: `tests/agent_host/test_runtime_lifespan.py::test_lifespan_revalidates_and_preserves_borrowed_ownership` and `::test_cancelled_lifespan_clears_readiness`.
requirementARBORA-HOSTVERIFIED01e3a4d8d835
929134f25886
bbeaf1147f83
d8f76638c57b
tests/agent_host/test_managed_web.py:2
tests/agent_host/test_runtime_lifespan.py:111
tests/agent_host/test_runtime_lifespan.py:142
tests/agent_host/test_runtime_lifespan.py:27
tests/agent_host/test_runtime_lifespan.py:45
ARBORA-HOST-R001.2.1.1
Shared TaskPlan evaluation admission
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Shared TaskPlan evaluation admission.** HostedInvocation accepts only untrusted tasks and output_task_id. It injects operator-owned limits and resident policy/schema references. It reuses current caller and operation policy admission and verifies only a direct configured-engine response. Evaluation returns immutable canonical content, never an execution grant. Older EG contracts explicitly require an upgrade. Caller chain: `HostedInvocation.evaluate_task_plan` (`arbora/mcp_server/hosted_invocation.py` line 40) → `arbora/mcp_server/task_plan.py::evaluate_task_plan` (line 125) → configured engine. Shape: `TaskPlanConfig` and `evaluate_task_plan` in `arbora/mcp_server/task_plan.py` hold the admission; `HostedInvocation` forwards to them. | Controlled shared-host tests prove policy denial, authority-field rejection, owner configuration, response binding and no execution or persistence claims. Test: `tests/mcp_server/test_task_plan.py::test_shared_host_uses_own_limits_and_direct_response` and `::test_existing_policy_and_scope_gate_precedes_engine`.
requirementARBORA-HOSTVERIFIED9bd22960a7ea
tests/mcp_server/test_task_plan.py:18
ARBORA-HOST-R001.2.1.2
Durable TaskPlan execution bridge
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Durable TaskPlan execution bridge.** Explicit trusted settings enable the normal serving root; malformed configuration refuses before authority minting. Receipt identity validation belongs to EG; public scaffolds omit executable prompts. Account for the natural-language planner call within host-owned run budgets, persist admitted canonical plans and edges through EG under live run ownership/fences, and map only durable admitted content to AU rolling execution. Explicit graph requests never silently use serial defaults. Caller chain: `agents.run` → `WorkItemA2AAuthority._run` → `arbora/agent_runs.py::AgentRunPort` → `agent_runs.decide_run` → the planned durable publication in `arbora/mcp_server/task_plan.py`. Shape: Extend `arbora/mcp_server/task_plan.py` with run-fenced publication and read-back through the engine plan store; reuse `configured_task_plan` (line 170). No second store. | Real configured-engine and runtime integration, restart, fencing, budget exhaustion and invalid-proposal refusal tests. The configured host invokes bounded model proposal generation, admitted evaluation, fenced native publication/readback and AU DependencyPlan execution. Native-engine restart/fencing acceptance remains required; controlled transport tests are not live proof. Test: Planned: `tests/mcp_server/test_task_plan.py::test_durable_plan_attachment_survives_engine_restart`.
requirementARBORA-HOSTVERIFIED9bd22960a7ea
e41d67a0bcca
tests/a2a/test_failed_usage.py:20
tests/mcp_server/test_task_plan_failure.py:18
tests/mcp_server/test_task_plan_runtime.py:31
tests/mcp_server/test_task_plan_settings.py:14
ARBORA-HOST-R001.2.5
Arbora binds the engine read and write methods to the decision port
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora binds the engine read and write methods to the decision port.** Caller chain: host bootstrap → `arbora/agent_runs.py::bind_run_ports` → `host_ports.register_engine_decision_port`. The bound port implements `read` and `write`. Each call invokes the served operation `eg.<service>.<Method>` through the registry `invoke`, with the run principal as caller. It rejects any method outside the allowlist of the meristem port row. It adds no tenant or principal field to the request. A refused operation returns its engine code unchanged. Depends: MERISTEM-HARNESS-CYCLE MERISTEM-HARNESS-CYCLE-R079 (the port extension row). Shape: `bind_run_ports` in `arbora/agent_runs.py` (line 613) registers the engine decision port; the port reuses the registry `invoke` call with the run principal. | Test: `tests/test_agent_runs_engine_port.py::test_bound_port_invokes_registry_with_run_principal` (L3). It runs over the registry with a recorded medulla engine and asserts a forbidden method is refused.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R005.2.9
Resolve legacy actions at the MCP dispatch and delete the unwired validator
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Resolve legacy actions at the MCP dispatch and delete the unwired validator.** Subsystem: MCP serving. Caller: MCP `tools/call` → `arbora/mcp_server/backing/tools/analysis_tools.py::_analysis_action_*` and `write_ingest_tools.py` dispatch → `legacy_action_mapping.resolve_legacy_action(action)` → registry `invoke`. Code: extend `ActionOperationMapping` with `retired_by: str | None`; exactly one of `operation` and `retired_by` is set. Add `resolve_legacy_action(action) -> ResolvedAction`. Delete `runtime.served_legacy_actions_within_approved_mapping`, which has no production caller. Keep `validate_served_actions` for the parity test. Rule: a mapped action calls `invoke(operation, params)`. A `retired_by` action raises `not_served(capability, retired_by)`. An unknown action raises `UnmappedActionError`, surfaced as `INVALID_REQUEST`. Refusal codes: `UNAVAILABLE` for `retired_by`, `INVALID_REQUEST` for unknown. Write path: none. Depends: `ARBORA-OPS-R007`. Child slice of `ARBORA-HOST-R005.2`. Caller chain: planned, not yet wired. MCP `tools/call` → `_analysis_action_*` in `arbora/mcp_server/backing/tools/analysis_tools.py` and the dispatch in `write_ingest_tools.py` → `resolve_legacy_action` (new) → registry `invoke`. Shape: extend `ActionOperationMapping` in `arbora/mcp_server/legacy_action_mapping.py` with `retired_by`. Add `resolve_legacy_action`. Delete `served_legacy_actions_within_approved_mapping` from `arbora/mcp_server/runtime.py`. | Planned test, not yet in the tree. `tests/mcp_server/test_legacy_action_served.py::test_mapped_and_retired_actions_over_mcp` (L3) calls one mapped and one retired action through a real MCP client.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.2.70
Rename the harness import from retired harness-package to `meristem` across `arbora/` and `tests/`
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Rename the harness import from retired harness-package to `meristem` across `arbora/` and `tests/`.** Subsystem: package boundary. Caller: every run, ACP and A2A entry that imports the harness. The entries are `arbora/agent_runs.py`, `arbora/acp/adapter.py`, `arbora/acp/local_runtime.py` and `arbora/acp/local_history.py`. More entries are `arbora/a2a/anonymous_send.py`, `arbora/api/ops/plans.py` and `arbora/api/contracts/agent_control_plane.py`. The last entries are `arbora/fleet/client_toolsets.py`, `arbora/mcp_server/harness_host.py` and `arbora/mcp_server/backing/tools/analysis_tools.py`. Rule: a mechanical codemod retired harness-package → `meristem` on import statements only, then every imported module must be in `PUBLIC_HOST_MODULES`. The `meristem.harness.constraint_engine` import in `analysis_tools.py` is not public; `check_constraints` becomes `retired_by` per `ARBORA-HOST-R005.2.1.3`. The 28 test files follow the same rule. Refusal: none. Depends: `ARBORA-OPS-R879` of `ARBORA-HOST-R007`. Child slice of `ARBORA-HOST-R007.2`. Caller chain: planned, not yet wired. the run, ACP and A2A entries named above import the harness → the codemod renames those imports. Files under `arbora/` and `tests/` still import retired harness-package today. Shape: a codemod over import statements only. The final check is the new test in `tests/test_package_layout.py`. | Planned test, not yet in the tree. `tests/test_package_layout.py::test_no_retired_harness_import_remains` (L1). The existing run tests `tests/test_agent_runs.py` and `tests/acp/test_adapter.py` pass unchanged (L3).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R007.3
Gateway metric series use the `arbora_` prefix
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Gateway metric series use the `arbora_` prefix.** Subsystem: observability. Caller chain: gateway HTTP middleware → `arbora/observability/gateway_metrics.py` metric definitions (for example the child-call counter) and `arbora/fleet/child_resilience.py`, `arbora/gateway/rate_limit.py` increments. Rule: every series is named `arbora_gateway_*` or `arbora_mcp_*`; labels are unchanged. Update the setting description in `arbora/core/settings.py:351` and the module docstrings. Hard cutover: no dual emission, and dashboards and alert rules read the `arbora_` names. Refusal: none. Depends: `ARBORA-HOST-R007`. Shape: Edit the metric definitions in `arbora/observability/gateway_metrics.py`, the counter increments in `arbora/fleet/child_resilience.py` and `arbora/gateway/rate_limit.py`, and the setting description in `arbora/core/settings.py`. | `tests/observability/test_gateway_metrics.py::test_no_series_uses_the_retired_prefix` (L1). `tests/gateway/test_rate_limit.py::test_rate_limit_counter_renamed` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R031.1
Admit and read back sandbox allocations
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Admit and read back sandbox allocations.** Caller chain: `agents.run` → `arbora/control_plane/runs/admission.py::NativeWorkItemAdmissionProtocol` → `fleet.call sandbox_provision`. Arbora checks the support matrix and capacity (`CapacityLedger`, `arbora/control_plane/runs/capacity.py`) before the call. It stores the `ProvisionResult` receipt in the run record. Consumer of SCION-CONNECTOR-CONTROL-R051.3. Shape: Edit `arbora/control_plane/runs/admission.py::NativeWorkItemAdmissionProtocol` and read `CapacityLedger` from `arbora/control_plane/runs/capacity.py`; the receipt joins the run record. | Test: `tests/control_plane/test_sandbox_admission_served.py::test_agents_run_admits_and_records_allocation` (L3).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R034
Specialist package install is transactional per provider root and registers catalog nodes
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Specialist package install is transactional per provider root and registers catalog nodes.** Subsystem: host composition. Caller chain: host bootstrap and the install operation → `arbora/host/specialists.py::install_package` (new module in a new `arbora/host/` package; the package does not exist today). A package install writes a new immutable generation directory under the provider root. The install verifies every provider asset SHA-256 against its marker. A bounded marker file (at most 4096 bytes) names the current generation. One atomic rename of the marker makes the generation current. A digest mismatch refuses with `ASSET_DIGEST_MISMATCH` and leaves the marker unchanged. An unbounded marker refuses with `MARKER_UNBOUNDED`. A successful install writes `cat:SpecialistPackage` and `cat:ProviderAsset` nodes through `AddTriples` (`MEDULLA MEDULLA-TYPED-PACKS-R108.1`). Discovery reads the catalog, never the filesystem. Depends: MEDULLA `MEDULLA-TYPED-PACKS-R108.1`, ARBORA-HOST-R006. Shape: Add `arbora/host/specialists.py::install_package` (planned) in a new `arbora/host/` package; reuse the atomic-rename helper pattern of `arbora/data_migrations.py` and the typed `AddTriples` client. | Test (planned): `tests/mcp_server/test_specialist_install.py::test_install_swaps_marker_atomically_and_registers_nodes` (L3, served install operation).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R035
Host registers the harness cycle providers and drives one tick per completed run
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Host registers the harness cycle providers and drives one tick per completed run.** Subsystem: host bootstrap and run completion. Caller chain: host bootstrap → `arbora/agent_runs.py::bind_run_ports` → `host_ports.register_harness_cycle_provider` and `host_ports.register_harness_probe_provider`. Add `arbora/agent_host/harness_cycle.py` with `HostProbeProvider` and `HostCycleProvider`. `HostProbeProvider` runs `meristem.graph.execute_graph` with `metadata.harness_probe`. It returns `run_id`, `status`, `steps`, `usage`, `error` and the conditions digest of the values it materialized. `AgentRunPort.execute_agent` may finish a run that is not a probe. If the run plan holds `candidate_slots` at or above `candidate_slots_min`, the host then calls `meristem.harness.harness_cycle.drive_cycle_tick` as a background task. The tick runs under the run's delegated principal and tenant through the bound engine port (ARBORA-OPS-R890 of the MERISTEM-HARNESS-CYCLE-R001 group). A tick failure logs and never changes the finished run result. The operator reads the outcome through `harness.evolution.report` (ARBORA-OPS-R068.3). Depends: MERISTEM-HARNESS-CYCLE-R001.3, MERISTEM-HARNESS-CYCLE-R001.5, MERISTEM-HARNESS-CYCLE-R001.11. Shape: `HostProbeProvider` and `HostCycleProvider` are new in `arbora/agent_host/harness_cycle.py`; `bind_run_ports` in `arbora/agent_runs.py` (line 613) registers them; reuse `AgentRunPort`. | Test: `tests/test_harness_cycle_host.py::test_completed_run_drives_one_tick_and_probes_drive_none` (L3). It runs over the registry with a loopback engine. It asserts one tick per run and none for a probe run. It also asserts an unchanged result on a tick failure.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R036
Attach run receipt nodes to the terminal commit
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Attach run receipt nodes to the terminal commit.** Subsystem: run completion. Caller chain: `arbora/agent_runs.py::AgentRunPort.execute_agent` → the terminal `CommitWorkItemResult` call of a hosted run. Read `receipt_nodes` from the harness result of MERISTEM-HARNESS-CYCLE-R016.2. Pass them in the `outcome_extension` of the terminal commit (MEDULLA-DECISION-ENGINE-R133.8). Engine refusals such as `RUN_TRACE_INVALID` pass through unchanged. A result with no `receipt_nodes` commits as before. Depends: MERISTEM-HARNESS-CYCLE-R016.2, MEDULLA-DECISION-ENGINE-R133.8. Shape: Edit the terminal commit in `arbora/agent_runs.py::AgentRunPort.execute_agent` (class at line 576) to pass `outcome_extension`; no new type. | Test: `tests/test_run_receipt_commit.py::test_terminal_commit_carries_run_trace_nodes` (L3). A loopback engine returns the stored `RunTrace` node. It asserts the node, the recursive node and a pass-through refusal.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R037
Connector runner composes the release lock
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Connector runner composes the release lock.** Subsystem: host bootstrap. Caller chain: arbora bootstrap → `arbora/connector_runner.py::ConnectorRunnerComposition.services`. It sets `RunnerSettings.release_lock` from config key `connector_runner.release_lock` in `~/.config/arbora/arbora.yml`, default `~/.config/arbora/connector-release.lock`, no bounds. A missing lock fails bootstrap with `RELEASE_LOCK_MISSING`. The lock is created by the operator with `create_release_key_lock`. Depends: SCION-CONNECTOR-CONTROL-R650.1.4. Shape: Edit `ConnectorRunnerComposition.services` in `arbora/connector_runner.py`; reuse `RunnerSettings` of the connector SDK. | Test: `tests/test_connector_runner.py::test_missing_release_lock_fails_bootstrap` (L3) asserts the code and that no client is created.
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038
Package units form a layered, acyclic import graph
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Package units form a layered, acyclic import graph.** Of 44 top-level units under `arbora/`, 30 form one import cycle group (`api`, `core`, `security`, `mcp_server`, `a2a`, `fleet`, `deployment` and others) through 99 imports that point against the layer order, 57 imports reach a private module or name of another unit, and seven modules exceed 2500 lines (`fleet/multiplexer.py` 7885) and sixteen exceed 1500. Target design: the `coupling` gate policy, `[[tool.pipelines_hooks.coupling.layers]]` in `pyproject.toml`, lists six layers in the measured order, most stable first: foundation (`core`, `content`, `unique_records`), security (`security`, `access`), services (`identity`, `observability`, `messaging`, `modality` and peers), operations (`api`, `work_items`, `agent_runs` and peers), subsystems (`fleet`, `gateway`, `deployment`, `a2a`, `browser_control` and peers) and host (`mcp_server`, the composition root, with `webui_host`, `host_bindings`, `console`); the file names every unit; a unit imports its own or an earlier layer and units of one layer form no cycle; a call from an earlier layer to a later one goes through a port declared in the earlier layer; no import of a leading-underscore path of another unit; a module holds one reason to change and stays under 1500 lines. Dependencies point toward the code that changes less, no caller reaches another unit's internals, and the check has no allowance list (constitution Articles XI and XXV). Subsystem: host composition. Caller chain: the `coupling` gate (`PIPE-GATES-R088`) reads that policy; until it ships, the bound test reads the same table. Shape: one policy table in `pyproject.toml` and the pre-commit hook; the order is measured, not assumed: `api` (the operation registry) sits below `fleet` and `mcp_server` because they import it about 150 times and it imports them 13; the cycle is broken by moving shared types down (`api/contracts/session.py` to `security`, `access/priority.py` to `core`), moving composition up (`core/agent_config_admin.py`, `api/mcp/registration.py` and `api/mcp/serving.py` to `mcp_server`), moving the shared outbound clients of `mcp_server/backing` to their lower owner, and binding the remaining upward calls through ports on the `HostContext` of `ARBORA-HOST-R039`; plan.md "2026-11-06 — R038 unit layers and ports" lists every edge and its resolution. Depends: `PIPE-GATES-R088`, `ARBORA-HOST-R001`. | Test: `tests/architecture/test_unit_layers.py::test_unit_imports_follow_layers_and_no_cycle_remains` (L2).
requirementARBORA-HOSTSPECIFIED25ad6b08b54b
4ee9dea796c8
5df7e4ba3b14
9638e8360800
9c36c754343b
tests/architecture/test_unit_layers.py:22
ARBORA-HOST-R039
Runtime state is created at the composition root
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Runtime state is created at the composition root.** 123 module-level mutable objects and `global` statements, 29 module containers written at run time (in `mcp_server`, `observability`, `gateway`, `security`, `fleet`) and 407 suppression comments hide state and order. Target design: the host builds one `HostContext` in `arbora/mcp_server/host_context.py` (`build_host_context`); registries, caches and clients are its fields and are passed down; no import has a side effect; a suppression comment is removed with the cause it hid, and the count falls to zero without an allowance list. Subsystem: host bootstrap. Caller chain: served process start -> `host_context.build_host_context` -> units. Shape: one frozen dataclass `HostContext` in `arbora/mcp_server/host_context.py`; each module-level registry becomes a typed field object that owns its lock, reached by argument and never through a module accessor; `ContextVar` keys stay; plan.md "2026-11-06 — R039 HostContext shape and migration order" maps every global to its field. Depends: `ARBORA-HOST-R038`. | Test: `tests/mcp_server/test_host_context.py::test_two_host_contexts_share_no_module_state` (L2).
requirementARBORA-HOSTSPECIFIED110ff252533a
tests/mcp_server/test_host_context.py:15
ARBORA-HOST-R038.1
Operation handlers reach subsystems through ports
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Operation handlers reach subsystems through ports.** Stage: layer repair, `api` handlers. The handlers in `api/ops/{fleet,capacity,research,ingest,browser,fleet_deploy_watch,plans,memory}.py`, `api/invoke/bootstrap.py` and `api/http/browser_auth.py` import 21 names from `fleet`, `ingest`, `browser_control`, `control_plane`, `a2a`, `gateway`, `deployment` and `mcp_server`. Add `arbora/api/ops/ports.py` with one `typing.Protocol` per callee: `FleetOperations` (catalog, call, deploy-watch, pack status), `IngestOperations` (jobs, sources, index), `BrowserOperations` (discover, request call), `PlanOperations` (run, publish), `RateLimiter` (gateway admission) and `SemanticProvisioning` (deployment). Add the frozen record `OperationPorts` with one field per protocol. `registry_factory.get_registry(ports: OperationPorts)` takes the record; each handler module receives the one port it uses as a constructor argument of its `operations(ports)` function, never the whole record. The composition root `mcp_server/host_context.py::build_host_context` builds `OperationPorts` from the `HostContext` fields of R039 and the subsystems implement the protocols. A handler never imports a subsystem. Caller chain: `server.mcp_server` -> `build_host_context` -> `get_registry(ports)` -> `operations(ports)` -> `make_endpoint`. Shape: one new module, edits to the eleven files named, no alias for the old imports. Depends: ARBORA-HOST-R038, ARBORA-HOST-R039.1. | Test: `tests/architecture/test_unit_layers.py::test_api_ops_import_no_subsystem` and `tests/api/test_operation_ports.py::test_registry_builds_from_fake_ports_and_serves_each_op_family` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.2
Fleet, gateway and deployment take host objects as arguments
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Fleet, gateway and deployment take host objects as arguments.** Stage: layer repair, host-reaching edges, group one. The modules `fleet/*`, `gateway/*` and `deployment/*` import `mcp_server.{runtime, served_engine, task_plan, task_plan_runtime, effect_journal, backing.engine_routing, backing.tools}` in 14 places. Each reached object is a `HostContext` field: the engine handle (`engine`), the tool table (`caches.registered_tools`), the task-plan runtime and the effect journal (`runs`). The caller receives the narrowest field, or a protocol declared in its own layer, as an argument of the function or constructor that uses it. Constructors that hold the field keep it on the instance. The import of the owner module is deleted in the same change. The two `fleet` imports of `deployment.config_generator` and `gateway.config._parse_mcp_servers` move into `fleet` (`fleet/catalog_parse.py`), so `deployment` and `gateway` import `fleet` and not the reverse. Caller chain: `build_host_context` -> `MCPMultiplexer(engine=..., tools=...)` -> `fleet` functions. Shape: signature edits in `fleet/multiplexer.py`, `fleet/shared_multiplexer.py`, `gateway/daemon.py`, `gateway/graph_api.py`, `deployment/self_deploy.py` and their callers; one new module `fleet/catalog_parse.py`. Depends: ARBORA-HOST-R039.2, ARBORA-HOST-R039.5, ARBORA-HOST-R039.8. | Test: `tests/architecture/test_unit_layers.py::test_fleet_gateway_deployment_do_not_import_mcp_server` and `tests/fleet/test_multiplexer_arguments.py::test_multiplexer_uses_only_the_engine_it_was_given` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.3
A2A, browser control and modality take host objects as arguments
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**A2A, browser control and modality take host objects as arguments.** Stage: layer repair, host-reaching edges, group two. The modules `a2a/*`, `browser_control*` and `modality/*` import the engine handle, the run state and the browser binding from `mcp_server` in 11 places. `a2a/authority.py`, `api/contracts/agent_control_plane.py` and `mcp_server/run_reader.py` each default-construct `AgentRunPort`; they receive `runs.run_port` instead. `browser_control_runtime` receives `browser.binding`. `modality.normalizer` receives `runs.normalizer`. Each import of `mcp_server` is deleted in the same change. Caller chain: `build_host_context` -> `WorkItemA2AAuthority(run_port=...)`, `BrowserControlService(binding=...)`. Shape: constructor edits in the files named and in the single registration call of each. Depends: ARBORA-HOST-R039.1, ARBORA-HOST-R039.6. | Test: `tests/architecture/test_unit_layers.py::test_a2a_browser_modality_do_not_import_mcp_server` and `tests/a2a/test_authority_uses_the_given_run_port.py::test_authority_never_default_constructs_a_run_port` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.4
Agent runs, plan publication and work items take host objects as arguments
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Agent runs, plan publication and work items take host objects as arguments.** Stage: layer repair, host-reaching edges, group three, plus five service-to-subsystem edges. `agent_runs`, `current_plan_publication` and `work_items` import 10 names from `mcp_server`. They receive the `runs` and `engine` fields as arguments. The five service edges close as follows. `observability.runtime_health` receives the live-mount check result from the composition root instead of importing `deployment.live_mount_guard`. `messaging.lease` takes the lease record type from `core`. `access/host_start.py` moves to `agent_host/host_start.py`, and its `identity.ports` import becomes a constructor argument. Caller chain: `build_host_context` -> `AgentRunPort(...)`, `PlanPublication(...)`, `WorkItemService(...)`. Shape: edits in the three units and the three moves named. Depends: ARBORA-HOST-R039.1, ARBORA-HOST-R039.8. | Test: `tests/architecture/test_unit_layers.py::test_runs_plans_work_items_and_services_import_no_host_or_subsystem` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.5
Composition modules move from api and identity to mcp_server
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Composition modules move from api and identity to mcp_server.** Stage: layer repair, composition placed low. `api/mcp/registration.py` and `api/mcp/serving.py` wire subsystems to the server, `api/http/browser_app.py` imports `webui_host`, and `identity/browser_composition.py` imports `api`. Move them to `mcp_server/registration.py`, `mcp_server/serving.py`, `mcp_server/browser_app.py` and `mcp_server/browser_composition.py`, and update the 9 importing modules. Leave no re-export in the old package. `api/mcp` keeps only verb constructors and descriptors that import `api` itself. Caller chain: `server.mcp_server` -> `mcp_server.registration.register_intent_surface` -> `api.mcp.verbs`. Shape: four `git mv` operations, import edits, no new logic. Depends: ARBORA-HOST-R038. | Test: `tests/architecture/test_unit_layers.py::test_api_and_identity_import_no_subsystem_or_host` and `tests/api/test_mcp_surface_registration.py::test_six_verbs_register_from_mcp_server` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.6
Task-plan configuration shape lives in core settings
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Task-plan configuration shape lives in core settings.** Stage: layer repair. `core/settings.py` imports `mcp_server.task_plan`, because `TaskPlanConfig` depends on `api.invoke.steps.freeze_claims`. Split the config shape from the runtime: `core/task_plan_config.py` holds the frozen `TaskPlanConfig` fields and its validator with no import above `core`; `freeze_claims` takes the validated fields as plain arguments in `api/invoke/steps.py`; `mcp_server/task_plan.py` imports `TaskPlanConfig` from `core`. `core/settings.py` imports `core/task_plan_config.py` only. Caller chain: `load_config` -> `core.settings` -> `core.task_plan_config.TaskPlanConfig`. Shape: one new module and three import edits. Depends: ARBORA-HOST-R038. | Test: `tests/core/test_task_plan_config.py::test_core_settings_load_without_importing_api_or_mcp_server` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.7
Cycles inside layers get one direction each
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Cycles inside layers get one direction each.** Stage: layer repair, intra-layer cycles. Direction rules. `api` is imported by `agent_runs`, `work_items`, `current_plan_publication` and `native_run_admission`; the registry never imports them, and they register through `OperationPorts` (R038.1). `deployment` and `gateway` import `fleet`; `fleet` imports neither. `mcp_server` is imported by no host peer; `host_bindings`, `webui_host` and `console` receive the context and may import `core` and `security` only. The three pair groups are separate changes. Caller chain: `build_host_context` -> peers with arguments. Shape: import edits and, where a peer still needs a type of the other, a move of that type into the earlier unit. Depends: ARBORA-HOST-R038.1, ARBORA-HOST-R038.2, ARBORA-HOST-R038.5. | Test: `tests/architecture/test_unit_layers.py::test_no_cycle_remains_between_units_of_one_layer` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.8
Remaining private reaches become public names or move
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Remaining private reaches become public names or move.** Stage: layer repair. After the earlier moves 22 imports still reach a leading-underscore module or name of another unit. For each reach: if two or more units use the name it becomes public in its owner (no underscore); if only the caller uses it, it moves to the caller. The scanner output of `tests/architecture/test_unit_layers.py::scan` is the work list; the PR body pastes it before and after. Caller chain: none; import edits only. Shape: renames inside the owner and updates in the importers; no alias. Depends: ARBORA-HOST-R038. | Test: `tests/architecture/test_unit_layers.py::test_no_unit_imports_another_units_private_name` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.9
The multiplexer splits into six collaborators
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The multiplexer splits into six collaborators.** Stage: module split. `fleet/multiplexer.py` has 7885 lines; `MCPMultiplexer` has 4964 of them. Extract one collaborator per PR with its own reason to change, each under 1500 lines, in this order: `fleet/child_transport.py` (spawn, environment, remote validation, transports), `fleet/task_forwarding.py`, `fleet/child_mounts.py` (mount, forwarders, tool lists), `fleet/proxied_calls.py` (admission, disclosure, OAuth-gated calls), `fleet/fleet_probe.py` (probe, harvest, cache) and `fleet/tool_discovery.py` (ranking, discovery, catalog listing). The multiplexer keeps construction, lifecycle and status and holds the collaborators as attributes built in `__init__`. A collaborator takes the data it needs, not the multiplexer (no back-reference, no mixin). `tool_discovery.py` is the module that `ARBORA-FLEET-R083` turns into a call to the ranking port. Caller chain: unchanged for callers; `MCPMultiplexer.discover_tools` -> `tool_discovery.discover`. Shape: six new modules; the moved functions keep their names; tests move beside them. Depends: ARBORA-HOST-R038.2. | Test: `tests/architecture/test_module_size.py::test_no_module_exceeds_the_line_bound` and `tests/fleet/test_multiplexer_collaborators.py::test_each_collaborator_is_built_without_a_multiplexer` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.10
Six modules over 2500 lines split by tool family
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Six modules over 2500 lines split by tool family.** Stage: module split. Targets: `mcp_server/backing/tools/engine_surface_tools.py` (3627; `register_engine_surface_tools` alone is 1537 lines) into one register function per family: `kv_cache_tools.py` (kv, kvcache, checkpoint), `trace_tools.py` (trace, waterfall, ocel), `viz_tools.py`, `deep_tools.py`, `mining_tools.py` (feature, mining, bundle); the old function calls the five register functions. `query_tools.py` (3510; `register_query_tools` 1160) into `graph_query_tools.py`, `uql_tools.py`, `catalog_query_tools.py` and `evidence_tools.py`. `deployment/venv_sync.py` (2918) into `venv_plan.py` (Workspace, SyncPlan), `venv_probes.py` (ImportProbe, ProcessActivityProbe), `venv_backup.py` (LockBackupStore) and `venv_cli.py` (`build_parser`, `cmd_*`). `mcp_server/backing/tools/intent_tools.py` (2821) into `intent_dispatch.py` (`dispatch_intent`), `intent_policy.py` and `intent_candidates.py`. `analysis_tools.py` (2670) into `analysis_configure.py` (48 `configure_*` functions) and `analysis_tools.py`. `mcp_server/backing/server_factory.py` (2572) into `server_parser.py` (`create_mcp_parser`), `server_auth.py` (`_configure_*`) and `server_factory.py`. One PR per module. Caller chain: unchanged. Shape: new modules by family; no mixin; no wrapper that re-exports the old names. Depends: ARBORA-HOST-R038.1. | Test: `tests/architecture/test_module_size.py::test_no_module_exceeds_the_line_bound` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.11
Nine modules between 1500 and 2500 lines split
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Nine modules between 1500 and 2500 lines split.** Stage: module split. Targets and cut lines: `deployment/doctor.py` (2433) by check family, one module per `doctor_*` family already imported by it; `mcp_server/backing/_arbora_action_manifest.py` (2242), a data module, into one table module per action family; `fleet/scaling/service_scale_units.py` (1850) into unit definitions and unit selection; `mcp_server/backing/tools/ontology_tools.py` (1785) into read and write tools; `gateway/registry_api.py` (1690) into read routes and write routes; `mcp_server/backing/tools/write_ingest_tools.py` (1688) into write tools and ingest tools; `security/request_identity.py` (1563) into resolution and system-session; `fleet/remote_oauth_broker.py` (1521) into broker and token store; `fleet/scaling/scaling_intent_reconciler.py` (1501) into planner and applier. One PR per module; each result is under 1500 lines. Caller chain: unchanged. Shape: new modules with a single reason to change each. Depends: ARBORA-HOST-R038.10. | Test: `tests/architecture/test_module_size.py::test_no_module_exceeds_the_line_bound` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R038.12
The unit-layer bound test lands and the local scanner goes
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The unit-layer bound test lands and the local scanner goes.** Stage: close. When R038.1 to R038.11 are merged, `tests/architecture/test_unit_layers.py::test_unit_imports_follow_layers_and_no_cycle_remains` runs with no `xfail`. In the same PR, `PIPE-GATES-R088.3` enables the `coupling` hook in `.pre-commit-config.yaml` and the scanner `scan` and its two tests are deleted. `tests/architecture/test_module_size.py` stays as the bound on module size (1500 lines), because the hook does not measure size. Caller chain: pre-push `coupling` hook -> `pipelines-hook coupling`. Shape: one config edit and deletions. Depends: ARBORA-HOST-R038.1, ARBORA-HOST-R038.2, ARBORA-HOST-R038.3, ARBORA-HOST-R038.4, ARBORA-HOST-R038.5, ARBORA-HOST-R038.6, ARBORA-HOST-R038.7, ARBORA-HOST-R038.8, ARBORA-HOST-R038.9, ARBORA-HOST-R038.10, ARBORA-HOST-R038.11, PIPE-GATES-R088.3. | Test: `tests/architecture/test_unit_layers.py::test_unit_imports_follow_layers_and_no_cycle_remains` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.1
The runs field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The runs field of the host context.** Stage: HostContext field `runs`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `runs: RunState`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `run_origin._runs` and its lock, `host_bindings._agent`, `a2a.mcp._SERVICE`, `a2a.authority._OUTPUTS`, `modality.normalizer._default`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. The first PR creates `arbora/mcp_server/host_context.py` with `build_host_context` and the bound test, and threads `RunOriginRegistry` through the three `AgentRunPort` construction sites (`a2a/authority.py`, `api/contracts/agent_control_plane.py`, `mcp_server/run_reader.py`) and `compose_agent_control_plane`. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `RunState` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039. | Test: `tests/mcp_server/test_host_context.py::test_two_host_contexts_share_no_module_state` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.2
The fleet field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The fleet field of the host context.** Stage: HostContext field `fleet`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `fleet: FleetState`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `multiplexer._LIVE_MULTIPLEXERS`, `_REMOTE_OAUTH_BROKERS` and its lock, `shared_multiplexer._served`, `declarations._DECLARATIONS`, `plan_confirmation._ARMED` and `_LOCKS`, `access_contracts._CATALOG`, `gateway_ops._CONFIRMING_TOOLS`, `remote_oauth_broker._TOKEN_LOCKS`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. Each registry becomes a class that owns its lock; the multiplexer takes `FleetState` in its constructor. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `FleetState` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/fleet/test_fleet_state.py::test_two_fleet_states_share_no_registry` (L2).
requirementARBORA-HOSTVERIFIED3e5792284ce3
40d03b173a2b
8aeec0df6da2
tests/fleet/test_fleet_state.py:23
ARBORA-HOST-R039.3
The policy field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The policy field of the host context.** Stage: HostContext field `policy`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `policy: PolicyState`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `action_policy._ports`, `_POLICY_CACHE`, `_NO_ENGINE_POLICY`, `external_policy_sync._DIRTY_TENANTS`, `approval._session_scope`, `anonymous._ACTIVE_MODE`, `messaging.host_ports._ports`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. The policy cache is the one object with an invalidation method; callers receive `PolicyState` or, narrowest, its `action_policies` (`ActionPolicies`, in `arbora/access/action_policy.py`), which replaces `get_action_policy` and `reset_action_policy_cache_for_tests`. Step one-shot processes: a CLI operation that is its own composition root (`production_ops` provisioning and fleet onboarding) builds its own `ActionPolicies`. Step ports: the trust-ramp reader and the operator notifier are an immutable `ActionPolicyPorts` given to `ActionPolicies(ports)` at construction and read by every gate it builds; `bind_action_policy_ports` is deleted. No arbora module implements either reader and no row owns one, so `build_host_context` passes unbound ports: a ramp never lifts an approval and a notice is logged. When a row adds a reader (the engine's earned-trust record, the messaging notifier), `build_host_context` binds it there and a served test proves a decision reads it. Step approvals: `PolicyState.approvals` is an `ApprovalDecisions` (in `arbora/access/approval.py`) that replaces `approval._session_scope`, `bind_approval_session` and `decide_action_approval`. `build_host_context` builds it with `verified_approval_session`, which admits the verified ambient `GraphSession` with scope `kg:write` and writes through the engine's compare-and-set; a decision with no verified session is refused. The `graph_governance` tool and the gateway route `/fleet/approvals/grant` (through `GatewayApplicationPort.decide_approval`) receive it by argument. The two gates with no production caller (`context_helpers.action_policy_gate`, `deployment.self_deploy.execute_redeploy`) take `action_policies` by argument and stay until a row deletes or calls them. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `PolicyState` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/access/test_policy_state.py::test_two_policy_states_do_not_share_a_cache` (L2).
requirementARBORA-HOSTVERIFIED6a27ea9ef513
d8cc9b8adcbf
tests/access/test_policy_state.py:12
ARBORA-HOST-R039.4
The observability field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The observability field of the host context.** Stage: HostContext field `observability`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `observability: Observability`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `telemetry._provider`, `langfuse_exporter._EXPORTER`, `trace_ontology` sequence and cursor, `subsystem_health` windows, `runtime_health` readiness authority, host probes, process lease and identity contract, `readiness._PROBES`, `runtime_signals` buffer, `gateway_health` history, buffer, evidence store and tasks, `gateway_metrics._SCRAPE_SAMPLERS`, `custom_observability` flags, `error_surface` detail store and sink, `client_contract._SUPERVISOR`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. 26 module objects in one unit; the field splits into five sub-objects (`telemetry`, `health`, `signals`, `errors`, `metrics`) so no sub-object exceeds seven members. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `Observability` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/observability/test_observability_state.py::test_two_instances_keep_separate_health_windows_and_buffers` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.5
The caches field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The caches field of the host context.** Stage: HostContext field `caches`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `caches: HostCaches`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `runtime.REGISTERED_TOOLS` (112 references), `security.auth._jwks_cache`, `oidc_discovery._cache`, the six `intent_tools` caches and `_APPROVALS`, `catalog_warmup._CURRENT`, `bootstrap._BUNDLED_SKILL_READINESS`, `runtime._FULL_TOOL_NAMES`, `engine_surface_tools._RAM_CHECKPOINT_STORE`, `analysis_tools._analysis_core_handler`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. `ensure_tools_registered` takes `HostCaches`; the callers without a context (`intent_tools`, `gateway.graph_api`) receive the field from their registration function. The `browser` field follows this one. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `HostCaches` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/mcp_server/test_host_caches.py::test_two_host_caches_register_independent_tool_tables` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.6
The browser field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The browser field of the host context.** Stage: HostContext field `browser`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `browser: BrowserState`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `browser_control_runtime._owner_loop`, `_service` and the binding lock; `browser_dispatch._capacity`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. Lands after `caches`: the browser tool closure lives in the tool table. The saved work-in-progress diff of the untangle lane is usable only after R039.5. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `BrowserState` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/browser_control/test_browser_state.py::test_two_browser_states_own_separate_owner_loops` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.7
The gateway field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The gateway field of the host context.** Stage: HostContext field `gateway`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `gateway: GatewayState`. The object owns its lock and changes state only through its own methods. It replaces these module objects: the routers (built by `build_<name>_router(host)` instead of at import), `remote_oauth_api._BROKER` and `_SCOPE_POLICY`, `gateway.registry._registry`, `dashboard_api._aggregator`, `graph_api._SPARQL_BRIDGE`, `enhanced_catalog_api._reader`, `gateway.fleet._AUTHORITIES`, `fleet_events` rate counters, `daemon` metrics flag, `gateway.ports._application`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. 22 objects in `gateway`; every router module exports a builder function and no module-level `APIRouter`. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `GatewayState` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/gateway/test_gateway_state.py::test_importing_the_gateway_creates_no_router_or_registry` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.8
The engine field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The engine field of the host context.** Stage: HostContext field `engine`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `engine: EngineHandles`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `served_engine._POOL`, `_ENGINE`, `_LOCK`; `runtime._ENGINE_LOCK`; `engine_tools._CLIENT_POOL` and lock; `gateway.daemon._engine`; `engine_routing` extraction manager, connection registry and tabular query service. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. Closes the engine-reaching imports of `ARBORA-HOST-R038.2` to `.4`. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `EngineHandles` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/mcp_server/test_engine_handles.py::test_two_engine_handles_hold_separate_pools` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.9
The authority field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The authority field of the host context.** Stage: HostContext field `authority`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `authority: ProcessAuthority`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `bootstrap` process session, refresh thread and stop event; `runtime._PROCESS_SESSION_REFRESH_LOCK`; `request_identity._system_write_session` and lock; `aggregator._SERVICE_SESSION`; `run_token._EPHEMERAL`; `ard_signing._EPHEMERAL_SEED`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. Deletes the `bootstrap.__dict__` injection in `mcp_server/runtime.py`. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `ProcessAuthority` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/security/test_process_authority.py::test_two_authorities_hold_separate_sessions_and_stop_events` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.10
The host_lock field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The host_lock field of the host context.** Stage: HostContext field `host_lock`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `host_lock: HostLock`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `deployment.host_lock._lock_fd` and `_effective_role`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. `ARBORA-DEPLOY-R600.3` deletes `host_lock.py`, which has no production caller; this field then has no members and is not added. The row closes by that deletion. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `HostLock` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/architecture/test_no_orphan_modules.py::test_no_host_lock_module` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.11
The config field of the host context
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The config field of the host context.** Stage: HostContext field `config`. The frozen slotted dataclass `HostContext` in `arbora/mcp_server/host_context.py` gains the field `config: RuntimeConfig`. The object owns its lock and changes state only through its own methods. It replaces these module objects: `core.settings.runtime_config` and `_write_lock`. Each replaced name is deleted in the same PR; no module accessor, alias or `current_host()` remains. Code reaches the field by argument, narrowest first; a route reads `request.app.state.host`; a tool is a closure over the field. Moves last because every unit reads it; readers receive `RuntimeConfig` as an argument. Suppressions that hid a replaced global go with it in the same PR (`noqa: PLW0603`, `type: ignore`, `pragma: no cover` on the global). Caller chain: `server.mcp_server` -> `build_host_context(config)` -> `RuntimeConfig` -> the units that held the globals. Shape: one class, edits in the owning units, one test. Depends: ARBORA-HOST-R039, ARBORA-HOST-R039.1. | Test: `tests/core/test_runtime_config.py::test_two_runtime_configs_do_not_share_state` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.12
Broad catches narrow to the exceptions the call raises
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Broad catches narrow to the exceptions the call raises.** Stage: suppression removal. 339 `noqa: BLE001` comments remain after the field PRs. An outbound call catches the transport and protocol errors of its client (`httpx.HTTPError`, `OSError`, the client's own typed errors). A supervisor loop that must survive any failure keeps `except Exception` and either re-raises or logs with its traceback, which `BLE001` accepts without a comment. One PR per unit in this order: `mcp_server`, `fleet`, `gateway`, `security`, `observability`, `deployment`, `a2a`, the rest. The remaining `pragma: no cover` lines get a test or are deleted as unreachable; the 10 `type: ignore` lines are fixed at their type. Caller chain: none. Shape: edits per unit; the count of suppressions is asserted. Depends: ARBORA-HOST-R039.11. | Test: `tests/architecture/test_no_suppressions.py::test_no_noqa_ble001_type_ignore_or_pragma_no_cover_remains` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R039.13
No import has a side effect: the final bound test
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**No import has a side effect: the final bound test.** Stage: close. `tests/mcp_server/test_host_context.py::test_import_of_every_unit_creates_no_mutable_module_state` imports every unit in a fresh interpreter and compares the set of module-level mutable objects (dict, list, set, deque, lock, client, thread) with the allowed set: `ContextVar` keys and immutable tables (`tuple`, `frozenset`, `MappingProxyType`). It also asserts that `fleet.protocol_compat` patches the MCP SDK inside `build_host_context`, not at import. Caller chain: pytest. Shape: one test module; no allowance list. Depends: ARBORA-HOST-R039.1, ARBORA-HOST-R039.2, ARBORA-HOST-R039.3, ARBORA-HOST-R039.4, ARBORA-HOST-R039.5, ARBORA-HOST-R039.6, ARBORA-HOST-R039.7, ARBORA-HOST-R039.8, ARBORA-HOST-R039.9, ARBORA-HOST-R039.11, ARBORA-HOST-R039.12. | Test: `tests/mcp_server/test_host_context.py::test_import_of_every_unit_creates_no_mutable_module_state` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R040
Arbora adopts the released harness and SDK paths (rollup)
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Arbora adopts the released harness and SDK paths (rollup).** Subsystem: dependency adoption. Arbora main pins `meristem>=4.2.0,<5.0.0` and `scion-sdk[a2a,mcp]>=0.5.9,<0.6.0` and still imports the package `agent_utilities` in 122 files (444 references). Release 6.0.0 of the harness (`MERISTEM-HARNESS-CYCLE-R089`) and release 0.10.0 of the SDK (`SCION-CENTRALIZED-CAPABILITIES-R046`) are hard cutovers. Children `.1` to `.4`. Caller chain: `pyproject.toml` -> resolver -> the imports below. Shape: no new module except `mcp_server/harness_ports.py` (R040.2). Depends: MERISTEM-HARNESS-CYCLE-R089, SCION-CENTRALIZED-CAPABILITIES-R046. | Test: Rollup closes when `.1` to `.4` pass. Root test: `tests/test_dependency_floors.py::test_pins_match_the_adopted_releases` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R040.1
Pins and the package rename
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Pins and the package rename.** Stage: pins. Set `meristem>=6.0.0,<7.0.0` and `scion-sdk[a2a,mcp]>=0.10.0,<0.11.0` in `pyproject.toml`, regenerate `uv.lock`, and replace every `agent_utilities` import by `meristem` in the 122 files (the top groups are `runtime` 6, `host_ports` 4, `graph` 4, `core.paths` 2, `rlm` 1, `harness.hosted_run` 1, `harness.constraint_engine` 1). Apply the moved-path map of the harness release: `harness.hosted_run` becomes `graph.hosted_run`. Run the rename as a one-off script that is not committed; commit only its result. No `agent_utilities` string stays in code, config or docs. Caller chain: every importer of the old package. Shape: one mechanical change. Depends: MERISTEM-HARNESS-CYCLE-R089.2. | Test: `tests/test_dependency_floors.py::test_no_agent_utilities_reference_remains` and `tests/test_dependency_floors.py::test_pins_match_the_adopted_releases` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R040.2
One HostPorts record replaces the register calls
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**One HostPorts record replaces the register calls.** Stage: harness binding. Add `arbora/mcp_server/harness_ports.py::build_host_ports(host: HostContext) -> HostPorts`. It sets: `decide` (`agent_runs.decide_run`), `models` (`agent_runs.resolve_model`), `events` (`agent_runs.record_run_event`), `scaffold_publication` (`current_plan_publication.publication_scope`), `native`, `fleet`, `remote`, `tool_client` and `keepalive` (from `mcp_server/harness_host.py`), and `run_history` (`acp/local_history`). The result is a field of `HostContext.runs` (R039.1). Delete `bind_run_ports` in `agent_runs.py` and `host_bindings.py`, `register_harness_host` and `unregister_harness_host` in `harness_host.py`, and the two `host_ports.register_*` calls in `acp/local_runtime.py`. Pass `ports=host.runs.ports` to `AgentRunExecutor` (`agent_runs.py:583`, `a2a/anonymous_send.py:491`), `execute_graph` (`agent_host/__init__.py:74`), `run_rlm` (`api/contracts/agent_control_plane.py:440`) and each `RunRequest(...)` (`api/ops/plans.py:480`, `acp/local_history.py:71`). Caller chain: `build_host_context` -> `build_host_ports` -> `RunRequest.ports`. Shape: one new module and the edits named. Depends: ARBORA-HOST-R040.1, ARBORA-HOST-R039.1. | Test: `tests/mcp_server/test_harness_ports.py::test_every_run_entry_point_receives_the_host_ports` and `tests/mcp_server/test_harness_ports.py::test_no_register_call_remains` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R040.3
HTTP client and proxy builders use the collapsed functions
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**HTTP client and proxy builders use the collapsed functions.** Stage: SDK paths. Replace `create_http_client` (18 uses) and `create_async_http_client` (15 uses) by `build_http_client(options, async_=...)`, and any `configure_oauth_proxy` or `configure_oidc_proxy` call by `configure_proxy(inputs, flow)`. The files are `core/transport.py`, `deployment/doctor_lakehouse.py`, `ecosystem/ard_federation.py`, `fleet/client_toolsets.py`, `fleet/multiplexer.py`, `fleet/remote_oauth_broker.py`, `gateway/widgets/base.py`, `gateway/widgets/ollama.py`, `mcp_server/backing/tools/engine_surface_tools.py`, `observability/gateway_metrics.py`, `security/oidc_discovery.py` and two tests. Apply the other moves of the SDK map to arbora imports (`scion_sdk.writeback.models`, `scion_sdk.http.support`, the private `_` modules). Caller chain: unchanged. Shape: import and call edits. Depends: ARBORA-HOST-R040.1. | Test: `tests/test_dependency_floors.py::test_every_scion_sdk_import_resolves_on_the_pinned_release` (L2).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R040.4
Fresh-install boot proof
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**Fresh-install boot proof.** Stage: proof. A CI job builds the wheel, installs it with the resolved pins in a fresh virtual environment and starts the served process with the loopback engine. It calls `ops.doctor`, one `find`, and one `fleet.status` and asserts success. Caller chain: release workflow `wheel-boot` -> `scripts/wheel_boot_check.py`. Shape: reuses the existing wheel boot gate; one added assertion list. Depends: ARBORA-HOST-R040.2, ARBORA-HOST-R040.3. | Test: `scripts/wheel_boot_check.py::main` through `tests/test_wheel_boot_check.py::test_boot_check_calls_doctor_find_and_status` (L3).
requirementARBORA-HOSTSPECIFIEDNo recorded commit/test evidence
ARBORA-HOST-R041
The shared state-machine census runs on Arbora in staged mode
Definition — ARBORA-HOST / ARBORA-HOST — Arbora host composition and ownership boundaryCanonical requirement and verification source
**The shared state-machine census runs on Arbora in staged mode.** Subsystem: gate adoption. `pyproject.toml` declares `[tool.pipelines_hooks.state_machine]` with `paths = ["arbora"]`, `exclude = ["**/fixtures/**"]`, `languages = ["python"]` and `mode = "staged"`, and `.pre-commit-config.yaml` enables the shared hooks `state-machine-shape` (pre-commit, pre-push) and `state-machine-census` (manual) from the pipelines repository at `main`. Mode `staged` prints the findings and exits 0; the mode becomes `blocking` in the PR that verifies the last Arbora state-machine row (`ARBORA-FLEET-R080`, `R081`, `R082`, `ARBORA-OPS-R900`, `ARBORA-IDENTITY-R027`). The first census run reported 4461 findings over 123 types. Refusal: a missing or malformed table is the shared hook's exit 2. Knob: none. Caller chain: `.pre-commit-config.yaml` -> `pipelines-hook state-machine-census` (`PIPE-GATES-R086.5`, `R086.7`). Shape: one `pyproject.toml` table, two hook entries and one wiring test. Depends: PIPE-GATES-R086.8. | Test: `tests/test_state_machine_census.py::test_census_exits_zero` (L2).
requirementARBORA-HOSTVERIFIED35a65e9b7483
tests/test_state_machine_census.py:32
ARBORA-OPS
ARBORA-OPS — Hosted API and intent operations
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R001
Native MCP/REST facade with A2A unary operations then streaming
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Native MCP/REST facade with A2A unary operations then streaming.** Arbora provides a native MCP and REST host. It fronts the engine and meristem services. It first exposes unary A2A operations: card, send, get, list, and cancel. It then adds durable streaming to those same handlers. Caller chain: `arbora/a2a/mcp.py:46::register_a2a_tools` mounts `POST /a2a` and the agent card route (`arbora/mcp_server/runtime.py:930`) -> `arbora/a2a/application.py:477::create_a2a_handlers` (`json_rpc`) -> `arbora/a2a/service.py:32::A2AService` (`send_message`, `get_task`, `list_tasks`, `cancel_task`) -> `arbora/a2a/authority.py:166::WorkItemA2AAuthority`. Shape: `arbora/a2a/application.py` (JSON-RPC handlers, `_unary_request`), `arbora/a2a/service.py` and `arbora/a2a/authority.py` implement the unary card/send/get/list/cancel methods; `tasks/resubscribe` and streaming are registered but refuse until a durable event cursor exists (`_resubscribe_stub`), so streaming is the follow-on slice on the same handlers. | Integration tests exercise the A2A unary endpoints against a fixture engine, followed by a separate test proving durable streaming delivery. Test: `tests/a2a/test_application.py::test_json_rpc_unary_methods_use_typed_shared_contract`.
requirementARBORA-OPSVERIFIED4ad0c4d2dd78
762c7f816fe3
83aefbad2157
86a439753d2d
9bd22960a7ea
tests/a2a/test_native_run_owner.py:19
tests/deployment/test_real_boot_fixture.py:19
tests/test_native_run_admission.py:12
tests/test_native_run_scope.py:16
tests/test_real_boot.py:1308
ARBORA-OPS-R002
Scoped A2A task routing and fleet tool exposure
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Scoped A2A task routing and fleet tool exposure.** Arbora routes inbound A2A tasks to the correct operation handler and exposes, through its assembled multiplexer, only the caller-authorized subset of fleet tools, including typed work-item retrieval and listing bound by control leases and read classifications. Caller chain: `arbora/a2a/mcp.py:46::register_a2a_tools` -> `arbora/a2a/application.py:477::create_a2a_handlers` -> `arbora/a2a/service.py:32::A2AService.send_message` -> `arbora/a2a/routing.py:44::OrchestratorA2ARouter.route`; fleet tool discovery: `arbora/api/mcp/verbs.py:317::dispatch_verb` (find) -> `arbora/mcp_server/fleet_composition.py:112::LateFleetGateway.fleet_search`. Shape: `OrchestratorA2ARouter` in `arbora/a2a/routing.py` picks the named or default agent from message metadata; `fleet_search` returns nothing without `mcp:discover` and only the caller's authorized tools; typed work-item list/get are `work.items.list` and `work.items.get` in `arbora/api/ops/work.py:94` (scope `work:read`). | Integration tests assert inbound A2A tasks resolve to the correct handler and that multiplexer tool listings are filtered per caller. Test: `tests/a2a/test_authority.py::test_router_routes_to_the_named_or_the_default_agent`.
requirementARBORA-OPSVERIFIED20f773df9ddd
4016e049e45e
tests/api/test_agent_browser_ops.py:38
tests/api/test_mcp_verbs.py:143
ARBORA-OPS-R003
Remove multiplexer skill/prompt harvest path
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Remove multiplexer skill/prompt harvest path.** Arbora removes the multiplexer's legacy skill and prompt harvesting and static hydration code path. Arbora sources skills and prompts only through the fleet discovery surface. Caller chain: Removal target is the harvest path in `arbora/fleet/multiplexer.py` (`_harvest_resource_bodies`, `_bounded_skill_catalog`, `_bounded_prompt_catalog`), reached from the multiplexer probe (`probe_server`); it is still present, so the removal is not yet done. Shape: Delete the harvest functions and the static skill/prompt hydration in `arbora/fleet/multiplexer.py`, and source skills and prompts only through `arbora/fleet/catalog_reader.py` and `arbora/fleet/local_skill_catalog.py`; `tests/fleet/test_harvest_inventory.py` pins the current call sites and must shrink to zero. | A regression test confirms the retired harvest module is absent and unimportable at runtime. Planned test: `tests/fleet/test_harvest_removed.py::test_multiplexer_has_no_skill_prompt_harvest_path`.
requirementARBORA-OPSVERIFIEDdeb2b45bf83d
tests/fleet/test_no_duplicate_skill_prompt_harvest.py:59
ARBORA-OPS-R004
FastMCP 4 bridge for the MCP server
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**FastMCP 4 bridge for the MCP server.** The Arbora MCP bridge declares and runs on FastMCP 4. It provides native WebMCP support and a single consolidated event loop. Its own probes already exercise this version. Caller chain: `pyproject.toml:67` declares `fastmcp>=4.1.0`; startup guard `arbora/mcp_server/server.py:263` calls `_preflight_mcp_sdk_floor` (`:80`) -> `arbora/fleet/protocol_compat.py:426::check_mcp_sdk_floor`; release check `arbora/deployment/release_canary.py:67::_served_fastmcp_matches_declared` via the `arbora-release-canary` script. Shape: The runtime floor lives in `pyproject.toml`; `check_mcp_sdk_floor` refuses start on a mismatched installed pair (`MCP_SDK_FLOOR_ENFORCE`), and `release_canary.py` compares the declared FastMCP major with the installed one and reports only aggregate booleans. | A semantic test suite plus a live probe confirm the deployed bridge reports FastMCP 4. Test: `tests/deployment/test_release_canary.py::test_served_fastmcp_matches_declared_true_on_matching_major`.
requirementARBORA-OPSVERIFIEDa7947166d00a
b5bf4ba58902
tests/deployment/test_release_canary.py:61
tests/deployment/test_release_canary.py:92
ARBORA-OPS-R005
Stable auth error codes from the engine contract
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Stable auth error codes from the engine contract.** Arbora consumes the engine's packaged error-code contract. This includes the stable AUTH_TENANT_MISMATCH, AUTH_AUDIENCE_MISMATCH, and AUTH_POLICY_VERSION_MISMATCH codes. Arbora refuses to start if the installed contract is missing or inconsistent with its generated bindings. Caller chain: `arbora/api/errors.py:490::to_envelope` -> `arbora/api/errors.py:112::_engine_error` -> `arbora/api/engine_errors.py::ENGINE_ERRORS` (holds `AUTH_TENANT_MISMATCH`, `AUTH_AUDIENCE_MISMATCH`, `AUTH_POLICY_VERSION_MISMATCH`); contract load at startup: `arbora/api/ops/registry_factory.py:95` -> `arbora/api/registry/eg_binding.py:370::load_eg_bindings`. Shape: `ENGINE_ERRORS` in `arbora/api/engine_errors.py` maps each engine code to (HTTP status, retryable); an unknown code raises `EgContractError` (`eg_binding.py:36`) so `to_envelope` fails closed, and `load_eg_bindings` raises the same error when the packaged contract is unreadable. | A contract test fails closed when the packaged engine error contract is absent or mismatched against the generated bindings. Test: `tests/api/test_errors.py::test_generated_engine_table_controls_envelope`.
requirementARBORA-OPSLANDED100d015ca012
b5bf4ba58902
ARBORA-OPS-R006
Consume the engine's packaged wire-callable contract
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Consume the engine's packaged wire-callable contract.** Arbora reads the installed engine package's contract files for methods, errors, scopes, and JSON schemas. It binds operations only for engine methods marked wire-callable in that contract. Caller chain: `arbora/api/ops/registry_factory.py:95` -> `arbora/api/registry/eg_binding.py:370::load_eg_bindings` (reads `methods.json`, scopes and schemas from the installed engine package) -> one generated op per wire-callable method. Shape: `load_eg_bindings` in `arbora/api/registry/eg_binding.py` builds ops only for rows with `is_wire_callable`, checks exact coverage with `_check_coverage` and `arbora/api/registry/eg_exclusions.yaml`, and takes scope and schema refs from the contract files. | A package-contract test confirms the generated registry excludes any method not marked wire-callable in the installed engine contract. Test: `tests/api/test_eg_binding.py::test_method_not_marked_wire_callable_is_not_bound`.
requirementARBORA-OPSVERIFIED100d015ca012
97061e59c412
tests/api/test_eg_binding.py:198
ARBORA-OPS-R007
Immutable operation registry with digest and authorization
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Immutable operation registry with digest and authorization.** Arbora defines one immutable OpSpec registry with typed enums for verb, surface, effect, and scope, producing a canonical form and a stable SHA-256 registry digest, and evaluates per-call authorization at find time. | Unit tests in tests/api/test_registry.py cover canonical-form stability, digest reproducibility, and authorized-evaluation outcomes.
requirementARBORA-OPSVERIFIED4b83c69e2b41
8c4eb38f06af
97061e59c412
tests/api/test_api_registry.py:130
tests/api/test_api_registry.py:64
tests/api/test_http_session_scope.py:31
tests/api/test_http_session_scope.py:68
ARBORA-OPS-R007.1
REST request authority
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**REST request authority.** Each `/api/v1` operation request runs under the verified session and actor that its own bearer resolved to. The REST surface binds that authority around the invocation chokepoint, as the MCP transport does per tool call. It never uses a process session or a synthesized one. An unauthenticated request answers 401 with `WWW-Authenticate: Bearer`. Proving test: `tests/api/test_http_session_scope.py`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` with the bearer's session bound by `arbora/api/http/routes.py:19::caller_session_scope` around the call; an unauthenticated request is refused in `routes.py:171::endpoint` as `UNAUTHENTICATED`. Shape: `caller_session_scope` in `arbora/api/http/routes.py` enters `use_actor` and `use_session` from `arbora/security/actor_context.py` and `arbora/security/session.py` for the verified caller; the 401 and `WWW-Authenticate: Bearer` come from the shared error envelope. Test: `tests/api/test_http_session_scope.py::test_rest_invoke_runs_under_the_callers_verified_session`.
requirementARBORA-OPSVERIFIED8c4eb38f06af
tests/api/test_http_session_scope.py:31
tests/api/test_http_session_scope.py:68
ARBORA-OPS-R009
Single invoke pipeline for authority, effect and audit
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Single invoke pipeline for authority, effect and audit.** Stage: every served operation. Caller: MCP (`arbora/api/mcp/serving.py`), HTTP (`arbora/api/http/routes.py`), A2A and `fleet.call` → `arbora/api/invoke/pipeline.py::invoke`. No other path reaches a handler. Order inside `invoke`, with the refusal code of each step: (1) registry lookup, `UNKNOWN_OP`. (2) `_static_refusal`: surface check `SURFACE_NOT_ALLOWED`, effect authority `UNAVAILABLE`. (3) `_arguments` through `validate_params` in `steps.py`, `INVALID_ARGUMENT`. (4) `_resolve` and `_bind_caller`: `authenticate` `UNAUTHENTICATED`, `principal_rule` `PRINCIPAL_NOT_ALLOWED`, `require_scopes` `SCOPE_REQUIRED`. (5) policy decision, `POLICY_DENIED` or `POLICY_UNAVAILABLE`. (6) subject read for service-executed ops, `SUBJECT_ACCESS_DENIED`. (7) `_confirmation_gate`: a destructive effect without `plan_ref` returns a preview. A plan bound to another operation, parameters, actor or policy revision returns `PLAN_MISMATCH`. A used or stale plan returns `PLAN_STALE`. A plan older than `PLAN_TTL_MS` (600000 ms, `Fixed`) returns `PLAN_EXPIRED`. (8) Admin and human-approval effects need a console session, a human principal and multi-factor authentication within `MFA_FRESH_SECONDS` (900 s, `Fixed`). Otherwise `STEP_UP_REQUIRED`. (9) audit reservation before the handler; a failed reservation stops the call. An outcome-link failure returns `INDETERMINATE` and keeps the reservation (`ARBORA-OPS-R036`). Service-bound operations run through `arbora/api/invoke/executor.py`. Writes: the audit reservation and the effect journal. Depends: `ARBORA-OPS-R036`, `ARBORA-A2A-R007`. | Test: `tests/api/test_invoke_served.py::test_allow_deny_plan_expiry_and_step_up` (L3) drives HTTP and MCP through `invoke`, with a loopback medulla engine. It asserts one code per step above and identical results on both transports. (planned: the named test file does not exist yet)
requirementARBORA-OPSSPECIFIED11e0187d9e70
5cd1a427c6a1
97061e59c412
deb2b45bf83d
tests/a2a/test_eg_dispatch.py:39
tests/api/test_invoke_bootstrap.py:161
tests/api/test_invoke_contract.py:240
tests/api/test_invoke_governance.py:193
tests/api/test_invoke_governance.py:250
ARBORA-OPS-R010
Closed error enum and one response envelope
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Closed error enum and one response envelope.** Arbora defines a closed error-code enum, including UNAUTHENTICATED, UNKNOWN_OP, NOT_FOUND, SCOPE_REQUIRED, and POLICY_DENIED, with a generated engine-error mapping. It converts every surface's response through one shared to_envelope function. Caller chain: Every surface renders failures through `arbora/api/errors.py:490::to_envelope`: HTTP `arbora/api/http/app.py:33::_outcome_response`, MCP `arbora/api/mcp/verbs.py:47::_envelope`, A2A `arbora/a2a/application.py:300::_application_error` (status via `errors.py:472::a2a_error_status`). Shape: `ArboraErrorCode` (`arbora/api/errors.py:16`) is the closed enum; `ENGINE_ERRORS` in `arbora/api/engine_errors.py` maps engine codes through `_engine_error`; `to_envelope` returns (status, envelope) and needs op, request id and registry digest. | Unit tests check envelope shape and error-code mapping, and a generator diff check compares output against the packaged engine contract. Test: `tests/api/test_errors.py::test_every_arbora_code_has_one_envelope`.
requirementARBORA-OPSVERIFIED4b83c69e2b41
f5c799c91830
tests/api/test_errors.py:380
ARBORA-OPS-R011
Six resident MCP verbs with typed discovery
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Six resident MCP verbs with typed discovery.** Arbora implements the six resident MCP verbs (find, ask, why, write, act, manage) through a shared verb constructor with typed input schemas, exposes registry entries as arbora:// resources, and includes the registry digest in the server's published instructions. Caller chain: `arbora/mcp_server/runtime.py:964::_register_served_intent_surface` -> `arbora/api/mcp/serving.py:29::register_intent_surface` -> `arbora/api/mcp/verbs.py:370::make_verb` (six verbs) -> `verbs.py:317::dispatch_verb` -> `arbora/api/invoke/pipeline.py:1021::invoke`. Shape: `make_verb` and `native_verb` in `arbora/api/mcp/verbs.py` share one `PARAMETERS` schema across `VERBS`; `arbora/api/mcp/resources.py:41::register_resources` exposes `arbora://registry` and `arbora://ops/{op_id}` filtered by caller; `verbs.py:450::mcp_instructions` embeds `registry_digest`. | Unit tests in tests/api/test_mcp_verbs.py cover verb schema validation, resource listing, and digest presence. Test: `tests/api/test_mcp_verbs.py::test_six_tools_share_one_schema_and_digest_in_instructions`.
requirementARBORA-OPSVERIFIED67987a735927
6b63aeb7ba03
ea736715b7fb
tests/api/test_mcp_verbs.py:25
ARBORA-OPS-R012
Bounded resolver for natural-language operation lookup
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bounded resolver for natural-language operation lookup.** Arbora resolves natural-language and partial queries to registry operations using combined lexical and semantic ranking over generated descriptors, a tenant- and policy-partitioned outcome moving average, and a bounded result cache, falling any unmatched ask call back to a read-only natural-language query preview rather than a direct mutation. Caller chain: `arbora/mcp_server/runtime.py:980` builds `IntentResolver()` -> `arbora/api/mcp/verbs.py:182::_resolve_op` -> `arbora/api/mcp/resolve.py:199::IntentResolver.resolve` -> `resolve.py:441::_ask_fallback`. Shape: `IntentResolver` in `arbora/api/mcp/resolve.py` ranks `Descriptor`s lexically and semantically (`rank`, `_score`), keeps an `OrderedDict` cache bounded by `_CACHE_LIMIT` (256, `_evict_oldest`), partitions outcome feedback by `scope_ref` (tenant and policy revision), and `_ask_fallback` routes an unmatched ask to the read-only `query.nl` preview. | Unit tests in tests/api/test_resolve.py cover ranking order, cache bounds, and the preview-only fallback behavior. Test: `tests/api/test_resolve.py::test_unmatched_ask_falls_back_to_read_only_nl_preview`.
requirementARBORA-OPSVERIFIED43db6b7ac49b
deb2b45bf83d
tests/api/test_resolve.py:103
tests/api/test_resolve.py:42
tests/api/test_resolve.py:54
tests/api/test_resolve.py:64
tests/api/test_resolve.py:73
ARBORA-OPS-R013
Generated HTTP API for every registry operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Generated HTTP API for every registry operation.** Arbora exposes each registry operation at POST /api/v1/ops/{op_id}. It also exposes generated resource routes on a dedicated sub-application. The sub-application has an authentication dependency and CSRF protection for cookie sessions. It also has cursor pagination, idempotency-key handling, and discovery endpoints for the registry and OpenAPI document. Caller chain: `arbora/mcp_server/hosted_invocation.py:60::HostedInvocation.http_application` and `arbora/mcp_server/composition.py:268` -> `arbora/api/http/app.py:58::create_api_application` -> `/ops/{op_id}` routes (`app.py:207`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `pipeline.py:1021::invoke`. Shape: `create_api_application` in `arbora/api/http/app.py` builds an isolated FastAPI sub-app with `/registry`, `/ops/{op_id}`, `/openapi.json` and `/docs` discovery routes plus generated resource routes from `op.http`; authentication is `arbora/api/http/auth.py`, cursor params merge in `routes.py:82::_merge_resource_params`, and the `Idempotency-Key` header is forwarded by `make_endpoint`. | Integration tests in tests/api/test_http_*.py cover routing, authentication, CSRF enforcement, and pagination and idempotency behavior. Test: `tests/api/test_http_projection.py::test_v1_subapp_mount_has_one_prefix`.
requirementARBORA-OPSVERIFIED1fb96633563e
a974d10c5d0c
ea736715b7fb
tests/api/test_http_projection.py:207
tests/api/test_http_projection.py:307
tests/api/test_http_projection.py:345
tests/api/test_http_projection.py:91
ARBORA-OPS-R017
Finance and markets operations with tenant isolation (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Finance and markets operations with tenant isolation (rollup).** Stage: served operations `markets.*`, `events.*`, `orders.*` and the position and paper-trading actions. Caller: MCP or HTTP → `invoke` → `arbora/api/ops/finance.py` handlers → `arbora/finance/markets.py::get_market_read` (provider port) and the medulla `Finance*` methods. Ownership split: Arbora serves the operations and holds approvals. Medulla computes every figure natively (`MEDULLA-FINANCE-PRIMITIVES`). `SCION-FINANCE-SOURCES` defines the source contract. `emerald-exchange` holds only venue calls and order routing. Reads: `ARBORA-OPS-R017.1` and `ARBORA-DATA-MARKET-R003`. Confirmed order and position changes: `ARBORA-DATA-MARKET-R007`. Subject ownership: `ARBORA-OPS-R017.2`. Writes: none by the rollup. Depends: R017.1, R017.2, `ARBORA-DATA-MARKET-R003`, `ARBORA-DATA-MARKET-R007`. | Root test: `tests/api/test_finance_served.py::test_two_tenants_never_cross` (L3) reads as two tenants over HTTP and MCP through `invoke`, with a loopback medulla engine. No cross-tenant data may appear.
requirementARBORA-OPSLANDED64a0c091b354
ARBORA-OPS-R017.1
Tenant-scoped market reads under finance:read
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Tenant-scoped market reads under finance:read.** Arbora executes market reads server-side through the service executor under the finance:read scope, refusing with zero provider calls on a missing or mismatched tenant/account binding. Caller chain: Planned: `arbora/api/ops/finance.py` (not yet registered) via `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/finance/markets.py:90::get_market_read`. Shape: `get_market_read`, `MarketReadRequest`, `AccountBinding` and the `MarketProvider` protocol in `arbora/finance/markets.py` already refuse with `UNAVAILABLE` before any provider call on a missing or mismatched binding; scope `FinanceScope.READ` is in `arbora/api/registry/scopes.py`; the served op wrapper is the remaining slice. | Tests confirm a matching binding reaches the provider and a missing or cross-tenant binding refuses before any provider call. Test: `tests/finance/test_markets.py::test_matched_binding_dispatches_through_the_provider`.
requirementARBORA-OPSVERIFIED64a0c091b354
tests/finance/test_markets.py:34
tests/finance/test_markets.py:68
ARBORA-OPS-R017.2
Position and paper-trading actions with subject ownership checks
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Position and paper-trading actions with subject ownership checks.** Stage: served write operations `positions.*` and `orders.paper_submit`. Caller: `invoke` → `arbora/api/invoke/executor.py::prepare_executor` → `runtime.check_subject_access(caller, subject)` → handler in `arbora/api/ops/finance.py`. Decision: the subject check already exists in the pipeline. The earlier block on a later engine contract is void. Rule: each operation declares `executor=Executor.SERVICE`, `principals=PrincipalRule.HUMAN_UNDELEGATED`, `subject=SubjectRef(source=SubjectSource.PARAM, path='params.account_id')`, scopes `finance:read` plus `finance:paper-trade` and `executor_scopes` `finance:paper-trade`. `prepare_executor` resolves the account id and asks `check_subject_access`. A caller who does not own the account gets `SUBJECT_ACCESS_DENIED`. A request that carries an owner field gets `INVALID_ARGUMENT` (`FORBIDDEN_OWNER`). Arbora calls the provider only after the check passes. A failed check makes zero provider calls and writes no audit effect. Config: none. Writes: the paper order through the venue tool and the audit reservation. Depends: `ARBORA-DATA-MARKET-R003.5`, `ARBORA-DATA-MARKET-R007`, `ARBORA-OPS-R009`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/invoke/executor.py:104::prepare_executor` -> `check_subject_access` (`executor.py:117`) -> planned handler in `arbora/api/ops/finance.py` (module not yet created). Shape: `arbora/api/ops/finance.py` (new) declares `positions.*` and `orders.paper_submit` with `Executor.SERVICE`, `PrincipalRule.HUMAN_UNDELEGATED` and `SubjectRef`; it reuses `prepare_executor` and the `FORBIDDEN_OWNER` check in `arbora/api/invoke/steps.py:20`, and `arbora/finance/markets.py` for the venue binding. | Test: `tests/api/test_finance_served.py::test_paper_action_requires_account_ownership` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine. It asserts the owner succeeds once. It asserts another tenant gets `SUBJECT_ACCESS_DENIED` and a controlled provider records zero calls.
requirementARBORA-OPSLANDED64a0c091b354
ARBORA-OPS-R018
Query, search, ontology and analytics operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Query, search, ontology and analytics operations (rollup).** Stage: served read operations over the caller's graph. Caller: MCP or HTTP → `invoke` → `EgMethod` binding → the hand-written medulla client under the caller's verified claims. Curated operations exist in `arbora/api/ops/query.py` (`query.uql`, `query.nl`), `query_engine.py` (`query.sparql`, `query.sql`, `ontology.inspect`, `ontology.schema.classes`, `ontology.validate`, `federation.sources.columns`) and `retrieval.py`. Every other engine method is served as the generated operation `eg.<service>.<Method>` (`load_eg_bindings`). Arbora adds no local ontology store and no local planner. Operations pass parameters as typed values; they never interpolate SQL text. Writes: none. Children: `.1` ontology and schema, `.2` query, search, indexes and series. Depends: `MEDULLA-FEDERATED-QUERY`, `ARBORA-OPS-R009`. | Root test: `tests/api/test_query_served.py::test_each_query_family_reaches_engine_with_tenant_and_budget` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R018.1
Sparql, schema and ontology operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Sparql, schema and ontology operations.** Stage: served read operations. Caller: `invoke` → `arbora/api/ops/query_engine.py::operations` bindings. Rule: the supported set is `query.sparql` (`Method::Sparql`), `ontology.inspect` (`OntologyInspect`), `ontology.schema.classes` (`GraphSchemaClasses`), `ontology.schema.graph` (`GraphSchema`), `ontology.schema.list` (`GraphSchemaList`) and `ontology.validate` (`ShaclValidate`). Add `ontology.schema.graph` and `ontology.schema.list` to `query_engine.py`, each with scope `owl:read`. SQL table and column discovery for the caller's graph is `ontology.schema.list`. A foreign source's columns stay `federation.sources.columns`. Decision: the ontology operations without an engine method are not curated. Loading triples is `eg.<service>.AddTriples`. Catalogue listing is `eg.<service>.CatalogList`. Export is `query.sparql` with a CONSTRUCT query. Linting is `ontology.validate`. Generation belongs to the SDK ontology pack generator (`SCION-CONNECTOR-CONTROL`), not Arbora. Each operation takes the graph from the verified session, never from the request. Config: none. Writes: none. Depends: `MEDULLA-FEDERATED-QUERY`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> engine call through the `EgMethod` bindings declared in `arbora/api/ops/query_engine.py:34::operations` (`query.sparql`, `ontology.inspect`, `ontology.schema.classes`, `ontology.validate`; `ontology.schema.graph` and `ontology.schema.list` are not yet declared). Shape: Add two `_read(...)` entries to `operations()` in `arbora/api/ops/query_engine.py` for `GraphSchema` and `GraphSchemaList` with scope `owl:read`, reusing the existing `_read` helper and the generated `EgSchemaRef` request and result paths; the graph comes from the verified session in the engine binding. | Test: `tests/api/test_query_ops.py::test_ontology_schema_graph_and_list_bind_engine_methods` (L1). Test: `tests/api/test_query_served.py::test_sparql_and_schema_routes_reach_engine` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED64a0c091b354
ARBORA-OPS-R018.2
Uql, sql, search, index and series operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Uql, sql, search, index and series operations.** Stage: served read operations. Caller: `invoke` → `EgMethod` binding or the retrieval port. Rule: `query.uql` binds `Uql`. `query.sql` binds `Sql`. `query.nl` binds `NlQuery`. Search is `retrieval.search` (`ARBORA-OPS-R021.2.1`). Index operations are the generated `eg.<service>.SemanticIndex` and `SemanticSearch`. Series operations are the generated `eg.<service>.TsRange`, `TsWindow` and `TsListSeries`. These need no curated declaration. Every operation runs under the caller's tenant. Arbora forwards the caller budget unchanged (R018.2.2). Config: none. Writes: none. Depends: `ARBORA-OPS-R018.2.2`, `MEDULLA-FEDERATED-QUERY`. | Test: `tests/api/test_query_served.py::test_uql_sql_series_and_index_ops_reach_engine` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIED64a0c091b354
ARBORA-OPS-R018.2.1
Distinct caller-bound query contracts
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Distinct caller-bound query contracts.** `query.uql` binds EG `Uql` under `query:unified`, using the provider inner request-parameter schema. `query.nl` binds EG `NlQuery` under `query:nl`, accepts text only, and obtains its graph from the current verified caller session. Both preserve provider result and refusal contracts. Missing NL feature/planner refuses at the provider; there is no local planner, scope substitution, or automatic grant. Caller chain: `arbora/api/ops/query.py:18::operations` declares `query.uql` (`EgMethod Uql`) and `query.nl` (`EgMethod NlQuery`); reached through `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` or MCP `ask` via `arbora/api/mcp/verbs.py:317::dispatch_verb`. Shape: `arbora/api/ops/query.py` binds two distinct ops with `EgSchemaRef` inner request schemas and scopes `query:unified` and `query:nl`; provider schema validation is `arbora/api/invoke/steps.py:148::_validate_provider`, and the NL result model is `NaturalLanguageResult` in `arbora/api/ops/query_federation.py:335`. | Binding, resolver and dispatch regressions prove distinct scopes, strict inputs, caller graph binding, and provider refusal propagation without deterministic fallback. Test: `tests/api/test_query_ops.py::test_query_bindings_match_actual_provider_authority_and_inner_schema`.
requirementARBORA-OPSVERIFIED3ea22258010e
51529da8abe6
99c7895b4e5d
a2f74cb9621d
tests/api/test_query_federation_served.py:214
tests/api/test_query_ops.py:58
ARBORA-OPS-R018.2.2
Query serving acceptance, budgets and planner refusal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Query serving acceptance, budgets and planner refusal.** Stage: served read operations, acceptance slice. Caller: `invoke` → `query.nl` handler `arbora/api/ops/query_federation.py::dispatch_federated_nl` and the `EgMethod` bindings. Rule: compose provider schema validation (`_validate_provider` in `steps.py`). Qualify caller-bound queries, tenant limits, scope checks and the unavailable planner refusal through both transports. Arbora forwards the caller's budget unchanged. It never clamps, defaults or widens it. The engine is the budget authority and clamps to the tenant ceiling (`MEDULLA-DECISION-ENGINE-R144.7`). Arbora returns the applied budget from the engine `CostReport` as served. Refusals: no composed planner returns `UNAVAILABLE` with no fallback to local SQL. A missing scope returns `SCOPE_REQUIRED` before any engine call. Declaration and dispatcher tests (R018.2.1) do not qualify this runtime behaviour. Writes: none. Depends: R018.2, `MEDULLA-DECISION-ENGINE-R144.7`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `query.nl` handler `arbora/api/ops/query_federation.py:491::dispatch_federated_nl` -> `NativeNlQueryPlanPlanner` (`query_federation.py:221`) / `EgMethod` `NlQuery`. Shape: `dispatch_federated_nl` in `arbora/api/ops/query_federation.py` forwards the engine plan and reuses `_validate_provider` (`arbora/api/invoke/steps.py:148`); budget handling and the unavailable-planner refusal are in the same module and `arbora/api/ops/query.py`, with no local SQL fallback. | Test: `tests/api/test_query_served.py::test_over_ceiling_budget_reaches_engine_unchanged` (L3) asserts the engine received the caller budget and the response shows the applied one. Test: `tests/api/test_query_served.py::test_unavailable_planner_refuses_without_fallback` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R019
Federation source operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Federation source operations (rollup).** Stage: served operations `federation.sources.*`. Caller: `invoke` → `arbora/api/ops/federation.py::handle_federation` → port `federation_sources` → medulla source catalog (`ForeignSourceCatalog`, `MEDULLA-UNIFIED-DATA-PLANE-R002`, `R612`). Decision: one engine, one record. The durable source record, its owner and its grantees live in medulla under the sharing enum of `MEDULLA-IDENTITY-R610`. Arbora holds no catalog. The port has no production composition today, so every operation returns `UNAVAILABLE`. R019.1 adds the composition. Registration is a governed write (`federation.sources.register`, `query_engine.py`). Probe results redact credentials. Children: `.1` register, list, get and probe. `.2` share and unshare. Depends: `MEDULLA-UNIFIED-DATA-PLANE-R765`, `MEDULLA-IDENTITY-R610`. | Root test: `tests/api/test_federation_served.py::test_share_probe_and_revoke_over_both_transports` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED64a0c091b354
ARBORA-OPS-R019.1
Federation source register, list, get and probe
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Federation source register, list, get and probe.** Stage: served operations. Caller: `invoke` → `handle_federation` → `EngineFederationCatalog` in new `arbora/federation/engine_catalog.py`, composed as service `federation_sources` in `arbora/mcp_server/server.py`. The adapter holds no state. It calls the medulla catalog methods added by the new row of R019 under the caller's claims. Rule: remove `_can_see` from `federation.py`; the engine enforces visibility. Keep `redact` as a second guard on every result. `federation.sources.register` stays the governed write in `query_engine.py` (`Effect.ADMIN`, idempotency key required, human principal). Refusals: an uncomposed adapter returns `UNAVAILABLE`. An invisible source returns `NOT_FOUND` with no hint of existence. Writes: registration through `RegisterForeignSource`. Depends: R019, `ARBORA-OPS-R009`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/federation.py:96::handle_federation` -> the `federation_sources` port (`federation.py:72::_port`); the engine-backed adapter `arbora/federation/engine_catalog.py` and its composition in `arbora/mcp_server/server.py` do not exist yet. Shape: New `EngineFederationCatalog` in `arbora/federation/engine_catalog.py` implements the existing port methods (`list`, `get`, `probe`, `grant`, `revoke`) used by `handle_federation`; remove `_can_see` (`federation.py:80`) and keep `redact` (`federation.py:58`); `federation.sources.register` stays in `arbora/api/ops/query_engine.py`. | Test: `tests/api/test_federation_ops.py::test_adapter_calls_engine_and_redacts` (L1). Test: `tests/api/test_federation_served.py::test_register_list_get_probe_redact_credentials` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED64a0c091b354
ARBORA-OPS-R019.2
Federation source share and unshare
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Federation source share and unshare.** Stage: served governed writes. Caller: `invoke` → `handle_federation` → `EngineFederationCatalog.grant` and `revoke` → `ShareForeignSource` and `UnshareForeignSource` (added by the new row of R019). Rule: both operations declare scope `federation:admin`, `Effect.ADMIN` and an idempotency key. The engine decides ownership; Arbora keeps no owner check. A replay with the same key returns the same receipt. Revocation takes effect for the grantee's next probe. Refusals: a non-owner gets `SOURCE_OWNER_REQUIRED`. A missing key gets `INVALID_ARGUMENT`. Writes: the grant edge in the engine. Depends: R019.1. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/federation.py:96::handle_federation` (share/unshare branch) -> the `federation_sources` port `grant`/`revoke` (planned `EngineFederationCatalog` in `arbora/federation/engine_catalog.py`). Shape: `handle_federation` already requires `Idempotency-Key` and calls `port.grant`/`port.revoke`; the owner check (`record.get('owner') != principal`) moves to the engine, and the ops are declared in `federation.py:135::operations` with scope `federation:admin` and `Effect.ADMIN`. | Test: `tests/api/test_federation_served.py::test_only_owner_shares_and_revocation_blocks_probe` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine. It asserts the stranger never sees the source.
requirementARBORA-OPSLANDED64a0c091b354
ARBORA-OPS-R020
Ingest operations through a typed runner facade (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Ingest operations through a typed runner facade (rollup).** Stage: served operations `ingest.*`. Caller: MCP or HTTP → `invoke` → `arbora/api/ops/ingest.py` → `arbora/ingest/service.py` handlers → port `ingest_runner`. The port is `ConnectorIngestRunner` in `arbora/ingest/connector_sources.py`. It reaches the SDK source runner and the medulla `SourceIngest` method. Operations: repository indexing, source sync, pack and job management, drift listing and repair with approval, embedding admission and re-embedding. Rule: handlers call only the typed port. A missing runner returns `UNAVAILABLE` and no operation falls back to a local path. A sync returns a durable job receipt. The WorkItem authority of the engine owns the idempotency of `ingest.sources.sync` (`NATIVE_IDEMPOTENCY`). Writes: jobs and receipts in the engine. Children: `.1` to `.3` and `.6` landed, `.4` drift, `.5` embeddings. Depends: `SCION-SOURCE-INGEST`, `MEDULLA-INGEST-WORKER`. | Root test: `tests/api/test_ingest_served.py::test_sync_returns_durable_receipt_and_absent_runner_fails_closed` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED06d8baf844a1
07d7b3ce0fe8
094c8adb6318
16c9b2bddda3
23be3a8e9dd6
ARBORA-OPS-R020.1
Typed ingest runner port and the source-sync entry point
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Typed ingest runner port and the source-sync entry point.** Arbora defines one typed port for all ingestion SDK calls. It exposes ingest.sources.sync. If no runner is composed, it fails closed with UNAVAILABLE. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:253::sync_source` -> `service.py:244::_bound_runner` (`context.services['ingest_runner']`) -> `arbora/ingest/connector_sources.py:293::ConnectorIngestRunner.sync_source`. Shape: `IngestRunner` protocol in `arbora/ingest/service.py:151` is the one typed port; `ingest.sources.sync` is declared in `arbora/api/ops/ingest.py:281::operations`; an unbound runner raises `OperationRefused('UNAVAILABLE')` in `_bound_runner`. | A test proves a durable job receipt on success and a typed UNAVAILABLE refusal when the runner is absent. Test: `tests/api/test_ingest_ops.py::test_sync_returns_a_durable_job_receipt`.
requirementARBORA-OPSVERIFIED4b69b27f1d76
5ffd23ca7883
822f55d5835d
a974d10c5d0c
cc90ee37583f
tests/api/test_ingest_ops.py:107
tests/api/test_ingest_ops.py:126
ARBORA-OPS-R020.2
Repository indexing and source inventory operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Repository indexing and source inventory operations.** Arbora exposes `ingest.repositories.index` and `ingest.sources.{list,status}` through the same typed runner port. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:268::index_repository`, `:282::list_sources`, `:291::get_source_status` -> `ConnectorIngestRunner` (`arbora/ingest/connector_sources.py:276,287,432`). Shape: The three ops are declared in `arbora/api/ops/ingest.py:281::operations` and call the same `IngestRunner` port; `ConnectorIngestRunner.index_repository` currently refuses with `UNAVAILABLE` (repository indexing is not composed). | Integration tests confirm each operation reaches the runner and fails closed with `UNAVAILABLE` when the runner is absent. Test: `tests/api/test_ingest_ops.py::test_index_returns_a_durable_job_receipt`.
requirementARBORA-OPSVERIFIED4b69b27f1d76
5ffd23ca7883
822f55d5835d
a974d10c5d0c
cc90ee37583f
tests/api/test_ingest_ops.py:148
tests/api/test_ingest_ops.py:164
tests/api/test_ingest_ops.py:178
tests/api/test_ingest_ops.py:191
tests/api/test_ingest_ops.py:201
ARBORA-OPS-R020.3
Pack and job management operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Pack and job management operations.** Arbora exposes `ingest.packs.*` and `ingest.jobs.*` through the same typed runner port. | Integration tests confirm pack and job operations reach the runner and report durable job state.
requirementARBORA-OPSVERIFIED16c9b2bddda3
634a344fade7
822f55d5835d
tests/api/test_ingest_ops.py:238
tests/api/test_ingest_ops.py:250
tests/api/test_ingest_ops.py:259
tests/api/test_ingest_ops.py:266
tests/api/test_ingest_ops.py:276
ARBORA-OPS-R020.3.1
Missing ingest.packs.* and ingest.jobs.* ops
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Missing ingest.packs.* and ingest.jobs.* ops.** This row rolls up ARBORA-OPS-R020.3.1.1 through ARBORA-OPS-R020.3.1.2. No ingest.packs.* or ingest.jobs.* operation exists through the typed runner port. | Integration tests confirm ingest.packs.* and ingest.jobs.* reach the runner and report durable job state. They also confirm UNAVAILABLE when the runner is absent.
requirementARBORA-OPSVERIFIED16c9b2bddda3
634a344fade7
tests/api/test_ingest_ops.py:238
tests/api/test_ingest_ops.py:250
tests/api/test_ingest_ops.py:259
tests/api/test_ingest_ops.py:266
tests/api/test_ingest_ops.py:276
ARBORA-OPS-R020.3.1.1
`ingest.packs.list` op
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`ingest.packs.list` op.** Arbora exposes `ingest.packs.list` as a read operation through the typed ingest runner port, listing this tenant's ingestion packs. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:302::list_packs` -> `arbora/ingest/connector_sources.py:437::ConnectorIngestRunner.list_packs`. Shape: `ingest.packs.list` is declared at `arbora/api/ops/ingest.py:332` with scope `ingest:read` and result `IngestPackListResult`; the handler passes `context.caller.tenant` to the runner port. | Tests confirm the operation reaches the runner with the caller's tenant and declares the existing `ingest:read` scope. They also require fail-closed `UNAVAILABLE` when the runner is absent. Test: `tests/api/test_ingest_ops.py::test_list_packs_returns_the_tenant_inventory`.
requirementARBORA-OPSVERIFIED16c9b2bddda3
tests/api/test_ingest_ops.py:238
tests/api/test_ingest_ops.py:250
tests/api/test_ingest_ops.py:259
ARBORA-OPS-R020.3.1.2
`ingest.jobs.status` op
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`ingest.jobs.status` op.** Arbora exposes `ingest.jobs.status` as a read operation through the typed ingest runner port. It reports the state of one durable job. Depends: `ARBORA-OPS-R020.3.1.1` for the shared pack/job port conventions. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:311::get_job_status` -> `arbora/ingest/connector_sources.py:572::ConnectorIngestRunner.get_job_status`. Shape: `ingest.jobs.status` is declared at `arbora/api/ops/ingest.py:343` with scope `ingest:read`; the handler passes tenant and `job_id` to the runner and returns `IngestJobRecord` from `arbora/ingest/service.py:101`. | Tests confirm the op reaches the runner, reports durable job state and declares `ingest:read`. It fails closed with `UNAVAILABLE` when the runner is absent. Test: `tests/api/test_ingest_ops.py::test_job_status_reports_durable_job_state`.
requirementARBORA-OPSVERIFIED634a344fade7
tests/api/test_ingest_ops.py:266
tests/api/test_ingest_ops.py:276
tests/api/test_ingest_ops.py:285
ARBORA-OPS-R020.4
Drift listing and repair-with-approval operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Drift listing and repair-with-approval operations.** Stage: served operations `ingest.drift.list`, `ingest.drift.get`, `ingest.drift.repair_propose` and `ingest.drift.repair_approve`. Caller: `invoke` → `arbora/ingest/service.py::{list_drift,get_drift,propose_repair,approve_repair}` → `ConnectorIngestRunner` methods of the same names → medulla `SchemaDriftList`, `SchemaDriftGet`, `SchemaRepairPropose` and `SchemaRepairApprove` (`MEDULLA-TYPED-PACKS-R806`). Drift detection and classification stay in the engine (`MEDULLA-TYPED-PACKS-R710`, `R714`). The SDK records the proposal and pauses the stream (`SCION-SOURCE-INGEST-R003`). Arbora serves and gates. Rule: `repair_propose` records a preview and applies nothing. `repair_approve` declares `Confirm.PLAN`, takes `plan_ref` and `approval_ref`, and applies only the previewed repair. The `approval_ref` is a two-person approval receipt from the Arbora approval flow (`ARBORA-OPS-R863` pattern). The proposer cannot approve. Refusals: `PLAN_MISMATCH` for a changed repair, `POLICY_DENIED` for a missing approval, `UNAVAILABLE` for an absent runner. Writes: the repair activation in the engine and the audit reservation. Depends: `ARBORA-OPS-R009`, `MEDULLA-TYPED-PACKS-R806`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:375::list_drift`, `:384::get_drift`, `:393::propose_repair`, `:405::approve_repair` -> the `ingest_runner` port; `ConnectorIngestRunner` (`arbora/ingest/connector_sources.py:197`) does not yet implement the drift methods. Shape: The four ops are declared in `arbora/api/ops/ingest.py:222::_drift_embedding_operations`; handlers in `arbora/ingest/service.py` call runner methods and require an idempotency key via `_require_key` (`service.py:369`); the runner methods that call the engine are the remaining slice. | Test: `tests/api/test_ingest_drift_embedding_ops.py::test_drift_ops_call_runner_with_tenant` (L1). Test: `tests/api/test_ingest_served.py::test_drift_repair_previews_then_applies_with_approval` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED822f55d5835d
ARBORA-OPS-R020.5
Embedding admission and re-embedding operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Embedding admission and re-embedding operations.** Stage: served operations `ingest.embedding.admit` and `ingest.embedding.reembed`. Caller: `invoke` → `arbora/ingest/service.py::{admit_embedding,reembed}` → `ConnectorIngestRunner.admit_embedding` and `reembed` → medulla `EmbeddingAdmit` and `Reembed` (`MEDULLA-FEDERATED-QUERY-R723`). Rule: the engine owns the one re-embed executor (`src/server/handlers/semantic_index/worker.rs`, `MEDULLA-FEDERATED-QUERY-R039.2`). Arbora starts a job and never embeds. Both operations declare `Effect.WRITE` and require an idempotency key. They return the durable job id and state. A re-embed names one source and one admitted model revision. An unadmitted model returns `EMBEDDING_MODEL_NOT_ADMITTED`. Refusals: `UNAVAILABLE` for an absent runner, `INVALID_ARGUMENT` for a missing key. Writes: the job record in the engine. Depends: `ARBORA-OPS-R020.4`, `MEDULLA-FEDERATED-QUERY-R723`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:427::admit_embedding` and `:440::reembed` -> the `ingest_runner` port (`ConnectorIngestRunner` has no embedding methods yet). Shape: Both ops are declared in `arbora/api/ops/ingest.py:222::_drift_embedding_operations` using `IngestEmbeddingAdmitParams` and `IngestReembedParams`; handlers require `Idempotency-Key` (`_require_key`) and return the runner's job receipt; the engine-calling runner methods are the remaining slice. | Test: `tests/api/test_ingest_drift_embedding_ops.py::test_embedding_ops_call_runner_and_return_job_state` (L1). Test: `tests/api/test_ingest_served.py::test_reembed_creates_one_durable_job_per_key` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED822f55d5835d
ARBORA-OPS-R020.6
Connector sources served through the composed SDK sync runner
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Connector sources served through the composed SDK sync runner.** Arbora composes the SDK source sync runner as the `ingest_runner` service. `ingest.sources.list`, `ingest.sources.sync` and `ingest.sources.status` then serve connector sources end to end. The SDK owns the declarations and the runner (SCION-SOURCE-INGEST-R004.19 through SCION-SOURCE-INGEST-R004.24). Delivered as the rollup of `ARBORA-OPS-R020.6.1` through `ARBORA-OPS-R020.6.7`. | The rollup closes when `ARBORA-OPS-R020.6.1` through `ARBORA-OPS-R020.6.7` pass their proving tests.
requirementARBORA-OPSVERIFIED06d8baf844a1
07d7b3ce0fe8
094c8adb6318
23be3a8e9dd6
2ad164bd5414
tests/fleet/test_child_large_results.py:16
tests/fleet/test_multiplexer_dynamic_gateway.py:1164
tests/ingest/test_connector_sources.py:190
tests/ingest/test_connector_sources.py:200
tests/ingest/test_connector_sources.py:230
ARBORA-OPS-R020.6.1
Model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Model.** `ConnectorIngestRunner` in `arbora/ingest/connector_sources.py` implements the ingest runner port for connector sources. A source ID is `<server>/<source>`. `IngestSourceRecord` adds the connector, record type, incremental flag, cursor, record count and last job ID. Caller chain: `arbora/mcp_server/served_invocation.py:236::_with_ingest_runner` constructs `ConnectorIngestRunner` (`arbora/ingest/connector_sources.py:197`) and binds it as `ingest_runner`; `ingest.sources.*` ops reach it through `arbora/ingest/service.py`. Shape: `ConnectorIngestRunner` takes `fleet`, `data_client` and `control_client`; `_split` (`connector_sources.py:149`) parses `<server>/<source>` and `IngestSourceRecord` (`arbora/ingest/service.py:56`) carries connector, record type, incremental flag, cursor, records and last job id. | `tests/ingest/test_connector_sources.py::test_source_record_shape` validates the record and refuses a malformed source ID.
requirementARBORA-OPSVERIFIED2ad164bd5414
tests/ingest/test_connector_sources.py:190
ARBORA-OPS-R020.6.2
Behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Behavior.** `ingest.sources.list` reads the fleet catalog servers and each server's `<prefix>_ingest_sources` declaration. It needs no engine listing method. `ingest.sources.sync` submits one engine WorkItem, claims it, runs the SDK runner and commits the outcome. `ingest.sources.status` reads the shared KV checkpoint. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:253,282,291` -> `ConnectorIngestRunner.sync_source` (`arbora/ingest/connector_sources.py:293`), `list_sources` (`:276`), `get_source_status` (`:287`). Shape: `_declarations` (`connector_sources.py:219`) reads each fleet server's declaration; `_run` (`:314`) submits, claims and commits the engine WorkItem via `arbora/work_items.py`; status reads the shared KV checkpoint. | `tests/ingest/test_connector_sources.py::test_list_sync_status_compose_runner` drives the three operations over a fake gateway and engine.
requirementARBORA-OPSVERIFIED23be3a8e9dd6
2ad164bd5414
tests/ingest/test_connector_sources.py:200
ARBORA-OPS-R020.6.3
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** `compose_served_invocation` (`arbora/mcp_server/served_invocation.py`) binds `ingest_runner` beside `fleet_gateway`. The runner calls connector tools through `LateFleetGateway.call` with the read effect. The handlers in `arbora/ingest/service.py` pass the verified caller to the runner. Caller chain: `arbora/mcp_server/served_invocation.py:595` (inside `compose_served_invocation`, `:550`) -> `served_invocation.py:236::_with_ingest_runner` -> `LateFleetGateway.call` (`arbora/mcp_server/fleet_composition.py`). Shape: `_with_ingest_runner` adds `ingest_runner` next to `fleet_gateway` in the runtime bindings; handlers in `arbora/ingest/service.py` pass `caller=context.caller` to the runner, which enters `_caller_session` (`connector_sources.py:91`). | `tests/ingest/test_connector_sources.py::test_served_invocation_binds_ingest_runner` finds the composed runner in the operation runtime bindings.
requirementARBORA-OPSVERIFIED06d8baf844a1
094c8adb6318
2ad164bd5414
tests/ingest/test_connector_sources.py:250
ARBORA-OPS-R020.6.4
Refusal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Refusal.** An undeclared source must answer `NOT_FOUND`. An unbound fleet gateway must answer `UNAVAILABLE`. A tool that the gateway does not admit must refuse the sync. A failed run must commit a failed WorkItem. The source status then reports `error`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:253::sync_source` -> `ConnectorIngestRunner._declared` (`arbora/ingest/connector_sources.py:248`) and `_run` (`:314`). Shape: Refusals are raised as `OperationRefused` (`NOT_FOUND`, `UNAVAILABLE`) in `connector_sources.py`; a failed run commits a failed WorkItem and `_record` (`:256`) reports state `error` from the stored `error_ref`. | `tests/ingest/test_connector_sources.py::test_refusals_fail_closed` covers each refusal and the failed WorkItem commit.
requirementARBORA-OPSVERIFIED2ad164bd5414
tests/ingest/test_connector_sources.py:262
ARBORA-OPS-R020.6.5
Evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evidence.** The sync receipt job ID is the engine WorkItem ID. The source status names the record count, cursor, last job ID and state. No receipt or status holds a credential or a record payload. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `ConnectorIngestRunner._run` (`arbora/ingest/connector_sources.py:314`) -> `_receipt` (`:411`) returning `IngestSyncReceipt` (`arbora/ingest/service.py:28`). Shape: `_receipt` sets `job_id` to the engine WorkItem id; `IngestSourceRecord` holds only count, cursor, last job id and state, and `IngestSyncReceipt` has no payload or credential fields (`extra='forbid'`). | `tests/ingest/test_connector_sources.py::test_receipt_binds_work_item` compares the receipt job ID with the committed WorkItem.
requirementARBORA-OPSVERIFIED23be3a8e9dd6
2ad164bd5414
ceb80658531e
tests/ingest/test_connector_sources.py:287
ARBORA-OPS-R020.6.6
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** `tests/test_real_boot.py::test_ingest_sources_list_sync_status` boots the engine binary, arbora and a fixture connector. It calls the three operations over HTTP. It reads the ingested nodes back with connector provenance. Caller chain: `tests/test_real_boot.py:1244::test_ingest_sources_list_sync_status` boots the engine binary and the served stack with `tests/_boot_ingest_connector.py`, then calls `ingest.sources.list`, `.sync` and `.status` over HTTP (`arbora/api/http/app.py:207` -> `pipeline.py:1021::invoke`). Shape: The test is in `tests/test_real_boot.py` and reuses the `stack` fixture and the fixture connector `tests/_boot_ingest_connector.py`; it reads the ingested nodes back from the engine. | The test observes the declared source, a succeeded WorkItem and the ingested nodes with provenance.
requirementARBORA-OPSVERIFIED32dbf63ade7f
423c0070bb30
afa759bc9a8a
c6fca2d86b50
dd8cbebf32c4
tests/fleet/test_multiplexer_dynamic_gateway.py:1164
tests/mcp_server/test_arbora_015_served_fixes.py:75
tests/test_real_boot.py:1245
ARBORA-OPS-R020.6.7
Pack inventory
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Pack inventory.** `ConnectorIngestRunner.list_packs` serves `ingest.packs.list` from the same declarations as `ingest.sources.list`. Each connector server that declares ingest sources is one pack, with the server name as `pack_id`. A pack is in `error` when any of its sources is in `error`, else `active`. Without a composed runner the operation fails closed with UNAVAILABLE. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/ingest/service.py:302::list_packs` -> `arbora/ingest/connector_sources.py:437::ConnectorIngestRunner.list_packs`. Shape: `list_packs` reuses `_declarations` and `_record`, builds one `IngestPackRecord` per declaring server (`pack_id` is the server name) and marks `error` when any source record state is `error`; no runner raises `UNAVAILABLE` from `_bound_runner`. | `tests/ingest/test_connector_sources.py::test_packs_list_serves_one_pack_per_declaring_connector` lists the fixture pack as `active`, then as `error` after a failed sync, and refuses an unbound runner as UNAVAILABLE.
requirementARBORA-OPSVERIFIED9052ea9458e5
tests/ingest/test_connector_sources.py:230
ARBORA-OPS-R020.6.8
A failed sync names its cause
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**A failed sync names its cause.** A failed source sync carries the SDK reason code and, for an engine refusal, the engine code. The sync receipt holds both, and the job's WorkItem stores them in `error_ref`. `ingest.jobs.status` reads them back. Arbora logs the source id, the reason, the engine code and the record count. No receipt, job or log line holds a record payload. A child result reaches arbora when one SSE event holds up to twice the delegated value bound. That bound is 4 MiB, so an event may hold 8 MiB. Validation run 2026-10-24 gap G13: two ServiceNow sources failed `tool_failed` with no stated reason. Each 50-record page exceeded the MCP client default event bound of 1 MiB. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `ConnectorIngestRunner.sync_source` (`arbora/ingest/connector_sources.py:293`) -> `_run` (`:314`) -> `_error_ref` (`:59`); read back by `get_job_status` (`:572`) via `_parse_error_ref` (`:66`); child result bound in `arbora/fleet/multiplexer.py::assert_bounded_delegated_value` (`:576`). Shape: `IngestSyncReceipt` (`arbora/ingest/service.py:28`) carries `reason` and `engine_code`; the failed WorkItem stores `ingest-source-error:<reason>[:<code>]` in `error_ref`; the child-result size bound is enforced in `arbora/fleet/multiplexer.py`. | `tests/ingest/test_connector_sources.py::test_a_failed_sync_carries_its_cause_to_the_receipt_and_job`; `::test_a_completed_sync_has_no_reason`. `tests/fleet/test_child_large_results.py::test_a_two_mib_child_result_reaches_arbora` reads a 2 MiB result from a real FastMCP child over HTTP.
requirementARBORA-OPSVERIFIED07d7b3ce0fe8
658958f17d11
96b68a9b5e5c
tests/fleet/test_child_large_results.py:16
tests/ingest/test_connector_sources.py:342
tests/ingest/test_connector_sources.py:362
ARBORA-OPS-R021
Decision, retrieval, runs and policy operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Decision, retrieval, runs and policy operations (rollup).** Stage: served operations `decide.commit`, `retrieval.*`, `runs.*`, `policy.read` and `swarm.topology.read`. Caller: MCP or HTTP → `invoke` → handlers in `arbora/api/ops/{decide,retrieval,runs,policy,swarm}.py` → the medulla client under the caller's claims. Rule: reads run with the caller's own authority. Commits run only under the service executor, so no human-scoped token can materialize an agent decision. Every result carries provenance (`op`, `tenant`, `principal`). Arbora keeps no local cache or aggregate. Writes: only `decide.commit`, through `DecisionCommit`. Children: `.1` decide, `.2` retrieval, `.3` policy and swarm reads, `.4` runs. Depends: `MEDULLA-DECISION-ENGINE`, `ARBORA-OPS-R009`. | Root test: `tests/api/test_decide_served.py::test_decision_commit_is_service_only_and_results_carry_provenance` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.1
Decide operations, service-executed commit
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Decide operations, service-executed commit.** Stage: served operation `decide.commit`. Caller chain: `invoke` → `arbora/api/invoke/executor.py::prepare_executor` → `arbora/api/ops/decide.py::handle_decide_commit` → medulla `DecisionCommit` through the client. Decision: the commit seam `decide_runner` (an `agent_utilities.decide` runner) is removed. The handler calls the engine client from the composition root. Evaluation (`Decide`, `AgentAssemble`) needs no curated operation; the generated `eg.<service>.Decide` reads run under the caller. Rule: the operation keeps `Executor.SERVICE`, `PrincipalRule.SERVICE_ONLY`, scope and `executor_scopes` `decide:commit`, `Effect.WRITE` and `AuditClass.EVENT`. When the pinned policy sets `approval_required`, the request carries the `RecommendationApproval` of `ARBORA-OPS-R863`, and the engine checks it (`MEDULLA-DECISION-ENGINE-R019.100.2`). The result holds `record_id`, `record_digest` and `provenance`. Refusals: a human-scoped caller gets `PRINCIPAL_NOT_ALLOWED`. An absent client returns `UNAVAILABLE`. Engine codes (`APPROVAL_MISSING`, `APPROVAL_STALE`) pass through unchanged. Writes: `DecisionCommit` only. Depends: `MEDULLA-DECISION-ENGINE-R019`, `ARBORA-OPS-R863`. Shape: `handle_decide_commit` in `arbora/api/ops/decide.py` calls the engine client of the composition root; no runner seam. | Test: `tests/api/test_decide_ops.py::test_commit_calls_engine_client_not_runner` (L1). Test: `tests/api/test_decide_served.py::test_human_cannot_commit_and_result_has_provenance` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSLANDED1ded59edd1a6
4016e049e45e
ARBORA-OPS-R021.2
Retrieval, context and freshness read operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval, context and freshness read operations (rollup).** Stage: served read operations `retrieval.search` and `retrieval.freshness`. Caller: `invoke` → `arbora/api/ops/retrieval.py` handlers → port `retriever` (`Retriever`) → `EngineRetriever` in new `arbora/retrieval/engine_retriever.py` → medulla. Rule: reads run under the caller's own authority and tenant. Arbora holds no cache that substitutes for the engine. The port had no production composition; `.2.1` adds it in `arbora/mcp_server/server.py`. Writes: none. Children: `.2.1` search, `.2.2` freshness. Depends: `MEDULLA-DECISION-ENGINE-R029`, `ARBORA-OPS-R009`. | Root test: `tests/api/test_retrieval_served.py::test_search_and_freshness_reach_engine_under_caller_authority` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSVERIFIEDe78a5e5b701e
f6f2177ab1e0
tests/api/test_retrieval_ops.py:43
tests/api/test_retrieval_ops.py:58
tests/api/test_retrieval_ops.py:68
tests/api/test_retrieval_ops.py:81
ARBORA-OPS-R021.2.1
The retrieval.search operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The retrieval.search operation.** Stage: served read operation `retrieval.search`. Caller: `invoke` → `handle_retrieval_search` (`arbora/api/ops/retrieval.py`) → `EngineRetriever.search(tenant, query, context_budget)` → medulla `Decide` with `QuestionKind::RetrievalPlan` (`MEDULLA-DECISION-ENGINE-R029`). Then it calls the retrieval method that the plan names (`Discover` or `IndexlessRetrieve`). Rule: `EngineRetriever` is stateless and is composed as service `retriever` next to `run_trace_reader` in `arbora/mcp_server/server.py`. It forwards `context_budget` unchanged. The engine applies the budget and the tenant ceiling (`MEDULLA-DECISION-ENGINE-R144.7`). The handler no longer truncates hits. It verifies that the summed hit tokens do not exceed the applied budget. On excess it returns `UNAVAILABLE` with reason `engine_over_budget`. Scope `memory:read` is unchanged. Refusals: an absent retriever returns `UNAVAILABLE`. Writes: none. Depends: `ARBORA-OPS-R864`, `MEDULLA-DECISION-ENGINE-R029`. | Test: `tests/api/test_retrieval_ops.py::test_search_forwards_budget_and_rejects_over_budget_outcome` (L1). Test: `tests/api/test_retrieval_served.py::test_search_returns_caller_tenant_hits_within_budget` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSVERIFIEDe78a5e5b701e
tests/api/test_retrieval_ops.py:43
tests/api/test_retrieval_ops.py:58
ARBORA-OPS-R021.2.2
`retrieval.freshness` op
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`retrieval.freshness` op.** Arbora exposes `retrieval.freshness` as a read operation through the same typed retriever port. It reports freshness of the caller's retrieval sources. Depends: `ARBORA-OPS-R021.2.1` for the shared retriever port. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/retrieval.py:100::handle_retrieval_freshness` -> the `retriever` port (`bound_service`, `arbora/api/ops/_common.py:70`) `.freshness`. Shape: `retrieval.freshness` is declared at `arbora/api/ops/retrieval.py:125` with `RetrievalFreshnessParams`/`RetrievalFreshnessOutcome` and the shared `Retriever` protocol (`:66`); the handler passes `context.caller.tenant`, and an unbound retriever raises `UNAVAILABLE`. | Tests confirm the op reaches the retriever with the caller's tenant and is read-only. They verify a closed failure with `UNAVAILABLE` when the retriever is absent. Test: `tests/api/test_retrieval_ops.py::test_freshness_reaches_engine_under_callers_tenant_read_only`.
requirementARBORA-OPSVERIFIEDf6f2177ab1e0
tests/api/test_retrieval_ops.py:68
tests/api/test_retrieval_ops.py:81
ARBORA-OPS-R021.3
Policy and swarm read operations — policy slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy and swarm read operations — policy slice.** Implements the policy portion of `ARBORA-OPS-R021`: `policy.*` and `swarm.*` read operations surfacing the active policy state and swarm topology to an authorized caller. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/policy.py:36::handle_policy_read` (`policy.read`) and `arbora/api/ops/swarm.py:35::handle_swarm_topology_read` (`swarm.topology.read`). Shape: Both modules declare read ops with `build_read_op` over `PolicyReader` / `SwarmTopologyReader` ports and `_common.TenantState`; the handler passes the caller's tenant and an unbound reader fails closed. | A test confirms policy and swarm reads are caller-scoped and read-only. Test: `tests/api/test_policy_swarm_ops.py::test_policy_operation_is_caller_scoped_and_read_only`.
requirementARBORA-OPSVERIFIED67987a735927
cc90ee37583f
tests/api/test_policy_swarm_ops.py:19
ARBORA-OPS-R021.4
Run read operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Run read operations (rollup).** Stage: served read operations `runs.get`, `runs.events`, `runs.execution_graph`, `runs.current_plan` and `runs.metrics`. Caller: `invoke` → `arbora/api/ops/runs.py` handlers → service `run_trace_reader` → `arbora/mcp_server/run_reader.py::NativeRunReader` → the medulla client. Rule: the reader reads under the caller's authority and holds no local aggregate. An absent reader returns `UNAVAILABLE` before dispatch. Another tenant's run reads as absent. Writes: none. Children: `.4.1` port, `.4.2` adapter, `.4.3` metric models, `.4.4` `runs.metrics`, `.4.5` current plan, `.4.6` registration, `.4.8` graph, `.4.9` node records. Depends: `MEDULLA-ORCH-VOCAB-R009`, `MEDULLA-ORCH-VOCAB-R010`. | Root test: `tests/api/test_runs_served.py::test_registered_rest_mcp_parity` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.1
The RunTraceReader port
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The RunTraceReader port.** Stage: served read operations `runs.*`. Caller: `invoke` → `handle_runs_get`, `handle_runs_events`, `handle_runs_execution_graph`, `handle_runs_metrics` in `arbora/api/ops/runs.py`. Model: add `RunTraceReader`, a `runtime_checkable` Protocol in `runs.py`, with async `get`, `events`, `execution_graph` and `metrics`. Each takes `context` and a typed request. Rule: each handler reads `context.services.get('run_trace_reader')`. The pipeline passes the verified caller through `context`. Refusal: an absent reader returns the typed `unavailable` value before any dispatch. Writes: none. Depends: `ARBORA-OPS-R009`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/runs.py:94::handle_runs_get`, `:116::handle_runs_events`, `:129::handle_runs_execution_graph` (`handle_runs_metrics` not yet written) reading `context.services.get('run_trace_reader')`. Shape: Handlers in `arbora/api/ops/runs.py` already read the `run_trace_reader` binding and return the `unavailable` value when absent; the `RunTraceReader` `runtime_checkable` Protocol (get, events, execution_graph, metrics) is not yet defined and goes in the same module, mirroring `CurrentPlanReader`. | Test: `tests/api/test_runs_ops.py::test_run_trace_reader_is_runtime_checkable_protocol` (L1). It is verified by the root slice test `tests/api/test_runs_served.py::test_registered_rest_mcp_parity`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.2
The engine run adapter
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The engine run adapter.** Stage: served read operations `runs.*`. Caller: `invoke` → handler → `NativeRunReader` (`arbora/mcp_server/run_reader.py`), composed as `run_trace_reader` in `arbora/mcp_server/server.py`. Rule: the adapter reads validated trace and decision facts through published medulla client reads. It keeps engine values and the caller's claims unchanged. Today it calls `engine.query_cypher`. Metrics call the new `RunMetrics` method (`MEDULLA-ORCH-VOCAB-R803`). Ownership of a run is checked in `_owned` before any payload read. Refusals: a missing client method returns `UNAVAILABLE`. Another tenant's run reads as absent, with no existence hint. Writes: none. Depends: R021.4.1, `MEDULLA-ORCH-VOCAB-R009.17`, `MEDULLA-ORCH-VOCAB-R803`. Caller chain: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/runs.py` handlers -> `arbora/mcp_server/run_reader.py:50::NativeRunReader`, composed as `run_trace_reader` at `arbora/mcp_server/server.py:182`. Shape: `NativeRunReader` reads trace facts through `engine.query_cypher` (`run_reader.py:150`) and checks ownership in `_owned` (`:56`) before payload reads; a `metrics` method calling `RunMetrics` is not yet present. | Test: `tests/api/test_runs_ops.py::test_adapter_calls_engine_wire_method` (L1). Test: `tests/api/test_runs_served.py::test_validated_trace_readback` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine after ingesting a trace.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.3
Run metric models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Run metric models.** Stage: served read operation `runs.metrics`, model slice. Code: `RunMetricsParams { query, group_by, window }` and `RunMetricsOutcome { query, groups, abstained }` in `arbora/api/ops/runs.py`. They mirror the Rust types of the `RunMetrics` method. Models use `extra='forbid'`. A group holds `key`, `value` and `trace_count`. `abstained` holds a code or null. Rule: the handler validates the engine outcome before returning it. It preserves the engine grouping and the zero-solved abstention. Refusals: unknown fields, negative costs, a window whose start follows its end, and non-finite numbers return `INVALID_ARGUMENT`. Writes: none. Depends: R021.4.2. Caller chain: Planned in `arbora/api/ops/runs.py` next to `handle_runs_execution_graph` (`:129`); reached via `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` once `runs.metrics` is registered. Shape: Add `RunMetricsParams` and `RunMetricsOutcome` as `Params` subclasses (`extra='forbid'`, from `arbora/api/ops/_common.py`) in `arbora/api/ops/runs.py`, following `ExecutionGraphParams`/`ExecutionGraphResult`; the handler validates the engine outcome. | Test: `tests/api/test_runs_ops.py::test_run_metrics_models_reject_unknown_fields` (L1). It is verified by the root slice test `tests/api/test_runs_served.py::test_metrics_grouping_and_abstention`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.4
The runs.metrics operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The runs.metrics operation.** Stage: served read operation `runs.metrics`. Caller: `invoke` → `arbora/api/ops/runs.py::handle_runs_metrics` → `run_trace_reader.metrics` → medulla `RunMetrics`. Rule: declare the operation with `build_read_op`, verb `ASK` and scope `telemetry:read`. The handler returns engine aggregates with no local arithmetic. Refusals: a denied scope stops the call before any engine dispatch. A zero-solved abstention is returned as abstained, never as zero cost. Writes: none. The `harness_best_config` answer of `MEDULLA-ORCH-VOCAB-R010.6` is served through the generated `eg.decide.Decide` operation. Arbora does no arithmetic on it. Depends: R021.4.3. Caller chain: Planned: `arbora/api/http/app.py:207` (`create_api_application`, route `/ops/{op_id}`) -> `arbora/api/http/routes.py:122::make_endpoint` -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/runs.py` `handle_runs_metrics` (new, beside `:129`) -> `run_trace_reader.metrics` on `arbora/mcp_server/run_reader.py:50::NativeRunReader` -> engine `RunMetrics`. Shape: Declare `runs.metrics` in `runs.py::operations` (`:140`) with `build_read_op` (`arbora/api/ops/_common.py:112`), verb ASK and scope `telemetry:read`; the handler returns engine aggregates unchanged. | Test: `tests/api/test_runs_ops.py::test_runs_metrics_passes_engine_values_through` (L1). Test: `tests/api/test_runs_served.py::test_metrics_authority` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.5
Per-run operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Per-run operation.** Model: `RunSummary` in `arbora/api/ops/runs.py` (planned), selected by `run_id`. Behavior: `runs.get` must return the field projection and snapshot contract below. Wiring: `handle_runs_get` must use `build_read_op` and existing `kg:read`. Refusal: Unknown runs and other tenants must be indistinguishable; missing fields must remain unavailable. | Evidence: planned `tests/api/test_runs_ops.py::test_runs_get_returns_termination_context_and_applied_config` plus the served cases in test-spec.md.
requirementARBORA-OPSVERIFIED2e9f4b8bc465
3c29d23cad88
5aed3058d14b
663cc8cad940
9f41ea82883d
tests/a2a/test_native_run_publication.py:18
tests/api/test_runs_ops.py:23
tests/mcp_server/test_current_plan_reader.py:25
tests/mcp_server/test_task_plan.py:311
tests/mcp_server/test_task_plan.py:318
ARBORA-OPS-R021.4.5.1
Current-plan read boundary
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Current-plan read boundary.** Model: SDK-owned `CurrentPlanRequest`, `PlanItem`, `CurrentPlanSnapshot` and `CurrentPlanRead` from `agent_connector_sdk.current_plan` (SCION-CONNECTOR-CONTROL-R070). Arbora imports these values from a published SDK distribution that includes that contract. Each model refuses unknown fields and cannot change. A snapshot holds the run ID and a revision of zero or more. It also holds UTC observation and expiry times and ordered items. Each item has a status of `pending`, `in_progress` or `done`. An available empty plan differs from an unavailable read. Behavior: `runs.current_plan` reads the plan of one run through the injected `current_plan_reader` port. It passes the admitted execution context to the port; the verified caller supplies tenant and principal. Arbora stores no plan and does not rebuild a plan from stored messages. Wiring: `handle_runs_current_plan` uses `build_read_op` and the existing `kg:read` scope. `arbora/api/ops/registry_factory.py` lists `runs`. `runs.get` reuses `read_current_plan` for its `current_plan` field. Refusal: An absent port, an unknown run or a run of another caller returns the same unavailable read. It holds no items. A malformed result, a result for a different run, a future observation time or an expired snapshot also return unavailable. Parameters cannot supply caller authority. | `tests/api/test_runs_ops.py` covers caller forwarding, item order, the absent port, malformed parameters, malformed snapshots and each fail-closed projection.
requirementARBORA-OPSVERIFIED2e9f4b8bc465
3c29d23cad88
5aed3058d14b
663cc8cad940
9f41ea82883d
tests/a2a/test_native_run_publication.py:18
tests/api/test_runs_ops.py:23
tests/mcp_server/test_current_plan_reader.py:25
tests/mcp_server/test_task_plan.py:311
tests/mcp_server/test_task_plan.py:318
ARBORA-OPS-R021.4.5.1.1
Native contextual reader composition
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Native contextual reader composition.** The served invocation root binds a stateless current-plan reader. Each read rechecks the admitted caller session, owner and graph, preserves `kg:read`, and sends generated EG `GetCurrentPlan` under the verified caller claims. EG still requires `work:read`; Arbora never widens scopes or substitutes service authority. Map native UTC milliseconds and ordered items into SDK values, retaining unavailable/future/expiry projection. An installed package without the method returns unavailable. No plan store or producer admission is introduced. Caller chain: `arbora/mcp_server/server.py:181` binds `NativeCurrentPlanReader` (`arbora/mcp_server/current_plan_reader.py:162`) -> `read_native_snapshot` (`:139`) -> `_native_read` (`:25`) generated `GetCurrentPlan`; consumed by `arbora/api/ops/runs.py:85::handle_runs_current_plan` (`runs.current_plan`). Shape: `NativeCurrentPlanReader` is stateless; `_project` (`current_plan_reader.py:112`) maps native UTC milliseconds and items into SDK `CurrentPlanRead`, `_owned_admission_graph` (`:84`) checks owner and graph, and a missing method returns unavailable. | Contextual reader and serving-root tests cover caller isolation, authority refusal, missing method, native null and malformed/expired snapshots. Installed native acceptance remains pending the published EG contract containing #663. Test: `tests/mcp_server/test_current_plan_reader.py::test_actual_serving_root_composes_stateless_reader`.
requirementARBORA-OPSVERIFIEDa33b4ad326fb
d850655d672c
f4ae1be895a1
tests/mcp_server/test_current_plan_reader.py:25
ARBORA-OPS-R021.4.5.1.2
Compose owner-bound A2A scaffold publication
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Compose owner-bound A2A scaffold publication.** On a native contract supporting run admission, submit the original run ID without a caller-selected WorkItem ID. Expose the returned native ID as the opaque task ID and preserve the separate run ID. Bind publication only after admission and a successful native claim. The binding uses the exact verified session, tenant and canonical control graph. It also uses the exact holder, epoch, fence and expiry. Publish actual AU revisions through EG and route host-managed current-plan reads to the same graph. Preserve legacy task lookup and do not synthesize ownership, leases or a HarnessConfig decision. Caller chain: A2A send: `arbora/a2a/application.py:477::create_a2a_handlers` -> `arbora/a2a/authority.py:617::WorkItemA2AAuthority.dispatch` -> `arbora/native_run_admission.py:61::submit` -> `arbora/current_plan_publication.py:170::bind_admitted_claim` / `:210::publication_scope`. Shape: `native_run_admission.submit` and `recover` submit the original run id and return the engine id; `bind_admitted_claim` validates holder, epoch, fence and expiry (`_validate_claim_*`) and `_Binding.publish` (`current_plan_publication.py:42`) writes AU revisions; legacy tasks stay on the existing get/cancel path. | Test admission mapping, exact fence/expiry, concurrent scope isolation, closure, task/run separation and legacy get/cancel. Candidate native lifecycle acceptance is separately labeled; mocks do not establish live delivery. Test: `tests/test_current_plan_publication.py::test_actual_au_revisions_use_exact_claim_and_close`.
requirementARBORA-OPSVERIFIED3c29d23cad88
5aed3058d14b
9f41ea82883d
a104142b3725
cb510b4bf880
tests/a2a/test_native_run_publication.py:18
tests/mcp_server/test_task_plan.py:311
tests/mcp_server/test_task_plan.py:318
tests/mcp_server/test_task_plan_runtime.py:632
tests/mcp_server/test_task_plan_runtime.py:713
ARBORA-OPS-R021.4.6
Run operation registration and served proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Run operation registration and served proof.** Stage: served read operations `runs.*`. Caller: host bootstrap → `arbora/api/ops/registry_factory.py::get_registry` lists `runs`; `arbora/mcp_server/server.py` binds `run_trace_reader` and `current_plan_reader`. Rule: REST and MCP reach the same reader through the registered operation pipeline. Refusals: an unregistered operation returns `UNKNOWN_OP`. A denied caller returns a typed refusal with zero engine calls. Writes: none. Depends: `ARBORA-OPS-R021.4.4`, `ARBORA-OPS-R025`. Caller chain: `arbora/mcp_server/server.py:181` binds `run_trace_reader` and `current_plan_reader` (line 180) in `_served_invocation` -> `arbora/api/ops/registry_factory.py:42` (`runs` module in `get_registry`) -> `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/runs.py`; the MCP verbs reach the same handlers through `register_intent_surface`. Shape: `arbora/api/ops/registry_factory.py::get_registry` loops over op modules including `runs`; `arbora/mcp_server/run_reader.py::NativeRunReader` and `current_plan_reader.py::NativeCurrentPlanReader` are the bound readers; no new type, the existing `invoke` pipeline is reused for both transports. | Test: `tests/api/test_runs_ops.py::test_runs_ops_registered_with_existing_scopes` (L1). Test: `tests/api/test_runs_served.py::test_registered_rest_mcp_parity` (L3) asserts equal results on both transports and no engine call for a denied caller.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022
Work and evolution loop operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Work and evolution loop operations (rollup).** Stage: served operations `work.*` and `evolution.*`. Caller: MCP or HTTP → `invoke` → `arbora/api/ops/work.py` handlers (work) and `arbora/api/ops/evolution.py` handlers (evolution, new) → typed ports → medulla. Rule: Arbora is a facade. Durable loop state lives in medulla. Loops are scheduled jobs of the durable scheduler. Proposals are revision challengers of `MEDULLA-DECISION-ENGINE-R805`. Run and pause need scope `loops:control`. Reads need `loops:read`. A repeated run with one idempotency key stays idempotent. Both scopes exist in `arbora/security/scope_registry.py`. Writes: only through the engine methods named in `.2.x`. Children: `.1` work, `.2` evolution. Depends: `ARBORA-OPS-R009`, `MEDULLA-DURABLE-KERNEL-R076`. | Root test: `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.1
Work-item and offer operations — work slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Work-item and offer operations — work slice.** Implements the work slice of ARBORA-OPS-R022. It exposes work.* operations for work-item and offer reads and writes. The same control leases bind them as fleet-facing listings. Caller chain: `arbora/api/invoke/pipeline.py::invoke` → `handle_work` in `arbora/api/ops/work.py`, which dispatches on `op.id` to the `work_runner` service bound in the context (`list_items`, `get_item`, `create_offer`). Shape: `operations()` in `arbora/api/ops/work.py` builds `work.items.list`, `work.items.get` and `work.offers.create` with `build_read_op` and `build_write_op` from `arbora/api/ops/_common.py`, with scopes `work:read` and `work:write`. | Test: `tests/api/test_work_ops.py::test_offer_write_needs_declared_scope_and_offers_stay_with_their_tenant`. A test confirms a work-item write requires the declared scope and that offers are visible only to their bound principal.
requirementARBORA-OPSLANDEDc4cc3e21b439
ARBORA-OPS-R022.2
Evolution loop, schedule and proposal operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evolution loop, schedule and proposal operations (rollup).** Stage: served operations `evolution.*`. Caller: `invoke` → `arbora/api/ops/evolution.py` → port `evolution_runner` (`EvolutionRunner`) → `EngineEvolutionRunner` in new `arbora/evolution/engine_runner.py` → medulla (`MEDULLA-DURABLE-KERNEL-R864`, `MEDULLA-DECISION-ENGINE-R817`). Rule: the daemon is a facade. Medulla keeps durable loop state. An uncomposed runner returns `UNAVAILABLE` for every child. Composition: `arbora/mcp_server/server.py` binds `evolution_runner` beside `run_trace_reader`. Writes: none by this row. Children: `.2.1` to `.2.5`. Depends: `ARBORA-OPS-R009`. | Root test: `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.1
The evolution.loops.status operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The evolution.loops.status operation.** Stage: served operation `evolution.loops.status`. Caller chain: `invoke` → `arbora/api/ops/evolution.py::handle_loops_status` → `EvolutionRunner.status` → medulla `LoopStatus`. Model: `EvolutionRunner` is a `runtime_checkable` Protocol in `evolution.py` with `status`, `schedules`, `proposals`, `run` and `pause`. Rule: the read reports one loop's state under the caller's tenant: `state`, `last_run_ms`, `next_run_ms`. The engine keeps durable state. Scope `loops:read` is registered in `arbora/security/scope_registry.py`. The earlier block on the engine scope file is void, and `work:read` is never substituted. Refusal: an absent runner returns `UNAVAILABLE`. An unknown loop returns `NOT_FOUND`. Writes: none. Depends: R022.2. Shape: reply `{ state, last_run_ms, next_run_ms }` from the `EvolutionRunner` Protocol in `arbora/api/ops/evolution.py`. | Test: `tests/api/test_evolution_ops.py::test_status_reaches_runner_with_tenant_and_declares_loops_read` (L1). It is verified by the root slice test `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.2
The evolution.schedules.list operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The evolution.schedules.list operation.** Stage: served operation `evolution.schedules.list`. Caller chain: `invoke` → `arbora/api/ops/evolution.py::handle_schedules_list` → `EvolutionRunner.schedules` → medulla `LoopSchedules`. Rule: list this tenant's loop schedules by next run, then id. Page by cursor with `limit` default 50, range [1, 100]. Scope `loops:read`. Refusal: an absent runner returns `UNAVAILABLE`. Writes: none. Depends: R022.2.1. Shape: reply `{ items[], next_cursor }` ordered by next run then id, from the `EvolutionRunner` Protocol in `arbora/api/ops/evolution.py`. | Test: `tests/api/test_evolution_ops.py::test_schedules_list_reaches_runner_with_tenant_and_fails_closed` (L1). It is verified by the root slice test `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.3
The evolution.proposals.list operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The evolution.proposals.list operation.** Stage: served operation `evolution.proposals.list`. Caller chain: `invoke` → `arbora/api/ops/evolution.py::handle_proposals_list` → `EvolutionRunner.proposals` → medulla `RevisionProposalList`. Rule: list this tenant's proposals with state and digest. Page by cursor with `limit` default 50, range [1, 100]. Scope `loops:read`. Refusal: an absent runner returns `UNAVAILABLE`. An invalid cursor returns `INVALID_ARGUMENT`. Writes: none. Depends: R022.2.1. Shape: reply `{ items[{ id, state, digest }], next_cursor }` from the `EvolutionRunner` Protocol in `arbora/api/ops/evolution.py`. | Test: `tests/api/test_evolution_ops.py::test_proposals_list_reaches_runner_with_tenant_and_fails_closed` (L1). It is verified by the root slice test `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.4
The evolution.loops.run operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The evolution.loops.run operation.** Stage: served operation `evolution.loops.run`. Caller chain: `invoke` → `arbora/api/ops/evolution.py::handle_loops_run` → `EvolutionRunner.run` → medulla `LoopRun`. Rule: a write that requests one loop run. It requires an idempotency key and scope `loops:control`, and declares `Effect.WRITE`. A repeated key returns the same job id and starts no second run. Refusals: a missing key returns `INVALID_ARGUMENT`. A caller with `loops:read` only returns `SCOPE_REQUIRED`. Writes: one scheduler job in the engine and the audit reservation. Depends: R022.2.1. Shape: request `{ loop_id, idempotency_key }`, reply `{ job_id }` in `arbora/api/ops/evolution.py`, reusing the idempotency helper of the registry. | Test: `tests/api/test_evolution_ops.py::test_run_requires_loops_control_and_key` (L1). Test: `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause` (L3) asserts one job for two calls with one key.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.5
The evolution.loops.pause operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The evolution.loops.pause operation.** Stage: served operation `evolution.loops.pause`. Caller chain: `invoke` → `arbora/api/ops/evolution.py::handle_loops_pause` → `EvolutionRunner.pause` → medulla `LoopPause`. Rule: a write that pauses one loop. It requires scope `loops:control` and declares `Effect.WRITE`. Pausing a paused loop is idempotent and returns the paused state. Refusals: a caller with `loops:read` only returns `SCOPE_REQUIRED`. An unknown loop returns `NOT_FOUND`. Writes: the loop state in the engine and the audit reservation. Depends: R022.2.4. Shape: request `{ loop_id }`, reply `{ state: paused }` in `arbora/api/ops/evolution.py`. | Test: `tests/api/test_evolution_ops.py::test_pause_requires_loops_control_and_is_idempotent` (L1). It is verified by the root slice test `tests/api/test_evolution_served.py::test_scopes_idempotent_run_and_pause`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R023
Agent, browser, RLM, and fleet call operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Agent, browser, RLM, and fleet call operations.** Arbora exposes agent, A2A task, RLM, browser, and fleet operations, including fleet.call, deriving each loaded tool's effect classification from its annotation so every call still passes through the invoke pipeline rather than bypassing it. Caller chain: `arbora/api/ops/fleet.py:245` (`fleet.call` OpSpec, `POST /api/v1/fleet/call`) -> `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/fleet.py:181` (`handle_fleet_call`) -> `arbora/fleet/gateway_ops.py` governed gateway call; MCP reaches it via `act(op='fleet.call')`. Shape: `arbora/fleet/gateway_ops.py:168` (`annotation_effect`) classifies each child tool as read, write or destructive from its annotations (unannotated = write) and `arbora/mcp_server/fleet_composition.py:104` (`LateFleetGateway.effect`) feeds it to `invoke`, so no child call bypasses the pipeline. | Integration tests confirm every loaded fleet tool call reaches the invoke pipeline and no direct child dispatch bypasses it. Test: `tests/fleet/test_gateway_ops.py::test_load_cap_lru_and_forwarder_invokes_governed_fleet_call`.
requirementARBORA-OPSVERIFIED4016e049e45e
e1d37ca10ef7
tests/api/test_agent_browser_ops.py:38
tests/api/test_agent_browser_ops.py:71
tests/api/test_fleet_effect.py:178
tests/fleet/test_gateway_ops.py:59
ARBORA-OPS-R024
Telemetry, security, usage, memory and admin operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Telemetry, security, usage, memory and admin operations (rollup).** Subsystem: arbora served operations. Children: `.1` telemetry, `.2` security, `.3` usage, `.4` memory, `.5` admin. Caller: `POST /api/v1/ops/<op_id>` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: the handler registered by `get_registry` in `arbora/api/ops/registry_factory.py`. Engine ports bind in `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`. Destructive `ops.backup` and `ops.restore` carry `Effect.ADMIN`. `invoke` answers `STEP_UP_REQUIRED` unless the caller holds console step-up, and every call writes one audit record through `EgAuditAdapter`. Tenant and principal come only from the verified session. Depends: ARBORA-OPS-R009, ARBORA-OPS-R025. | Root L3 journey: `tests/api/test_ops_admin_ops.py::test_backup_restore_require_step_up_and_audit` (L3). It rejects a plain confirmation and asserts the audit record.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.1
Telemetry read operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Telemetry read operation.** Stage: arbora served operation `telemetry.read`, scope `telemetry:read`. Caller: `POST /api/v1/ops/telemetry.read` or the MCP verb → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_telemetry_read` in `arbora/api/ops/telemetry.py` → `EngineTelemetryReader.read`. Code: add `EngineTelemetryReader` to `arbora/api/ops/telemetry.py`. It sends `Method::GetTelemetrySnapshot` (MEDULLA-ORCH-VOCAB-R804) under the caller's own session. Add `_with_telemetry_reader` in `arbora/mcp_server/served_invocation.py` and call it from `compose_served_invocation`. It binds `telemetry_reader`. Rule: the tenant comes from the verified caller. `TelemetrySnapshot.metrics` is the engine map, unchanged, with no local arithmetic. Refusals: `UNAVAILABLE` when no reader is bound or the engine lacks the method; `SCOPE_REQUIRED` without `telemetry:read`. Evidence: the audit record holds the tenant and the metric count. Writes: none. Depends: ARBORA-OPS-R009, MEDULLA-ORCH-VOCAB-R804. | Test: `tests/api/test_telemetry_served.py::test_telemetry_read_is_tenant_scoped_and_reaches_engine` (L3). It asserts the engine call, the tenant scope, both refusals and one cross-tenant negative case.
requirementARBORA-OPSSPECIFIED4b69b27f1d76
ARBORA-OPS-R024.2
Security operations — security slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security operations — security slice.** Implements the security portion of `ARBORA-OPS-R024`: `security.*` operations surfacing the current security posture to an authorized caller. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/security.py::handle_security_posture_read` (op `security.posture.read`, scope `security:read`, `arbora/api/ops/security.py:56`). Shape: `arbora/api/ops/security.py` defines `SecurityPostureReader` (Protocol) and `SecurityPosture`; the handler reuses `arbora/api/ops/_common.py::handle_tenant_read` and `build_tenant_read_op`. | A test confirms a security read requires its declared scope. Test: `tests/api/test_telemetry_security_usage_ops.py::test_security_operation_declares_the_read_scope`.
requirementARBORA-OPSVERIFIED4b69b27f1d76
67987a735927
tests/api/test_telemetry_security_usage_ops.py:84
ARBORA-OPS-R024.3
Usage operations rollup
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Usage operations rollup.** Stage: arbora served operation `usage.read`, scope `usage:read`. Children: `.1` session usage, `.2` measured timing. Caller: `POST /api/v1/ops/usage.read` or the MCP verb → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_usage_read` in `arbora/api/ops/usage.py` → `EngineUsageReader.read`. Code: add `EngineUsageReader` to `arbora/api/ops/usage.py`. With no context identifier it calls the tenant read of the usage ledger in MEDULLA-DECISION-ENGINE-R801 and returns `UsageSnapshot.totals` unchanged. Add `_with_usage_reader` in `arbora/mcp_server/served_invocation.py`, called from `compose_served_invocation`. It binds `usage_reader`. Arbora keeps no counter and performs no arithmetic. Refusals: `UNAVAILABLE` when no reader is bound; `SCOPE_REQUIRED` without `usage:read`. Evidence: audit record with tenant and total count. Writes: none. Depends: MEDULLA-DECISION-ENGINE-R801. | Root L3 journey: `tests/api/test_usage_served.py::test_usage_read_reaches_engine_ledger_for_the_caller_tenant` (L3). It asserts the engine call, both refusals and one cross-tenant negative case.
requirementARBORA-OPSSPECIFIED4b69b27f1d76
ARBORA-OPS-R024.3.1
Shared committed session usage
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Shared committed session usage.** Stage: arbora served operation `usage.read` with a context identifier. Caller: `POST /api/v1/ops/usage.read` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: `handle_usage_read`. Next call: `EngineUsageReader.read_session`. Next call: `Method::GetSessionUsage` (medulla repo, `crates/medulla-protocol-types/src/protocol/method/method_11.rs:13`). Code: add `context_id` (optional string, pattern `^[A-Za-z0-9._:-]{1,128}$`) to `UsageReadParams`. Rule: with `context_id`, forward `GetSessionUsage{tenant, context_id}` under the caller's own session. Return unique committed-run counts, per-counter coverage and the incomplete-inventory flag exactly as the engine reports them. Never aggregate locally and never invent prices. Without `context_id` the tenant totals of ARBORA-OPS-R024.3 stay unchanged. Refusals: `SCOPE_REQUIRED`, `INVALID_ARGUMENT` for a malformed identifier, and the engine's not-found answer for a foreign context. Evidence: audit record with the context digest. Writes: none. Depends: ARBORA-OPS-R024.3. Caller chain: `POST /api/v1/ops/usage.read` (`arbora/api/http/app.py:209` -> `make_endpoint`, `arbora/api/http/routes.py:122`) or the MCP verb -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/usage.py:35` (`handle_usage_read`, today tenant totals only); the session path (`EngineUsageReader.read_session` -> `GetSessionUsage`) is not yet built. Shape: Extend `arbora/api/ops/usage.py`: add `context_id` to `UsageReadParams` (built by `_common.read_op_models`) and a session branch in `handle_usage_read` beside the `UsageReader` Protocol; reuse `_common.handle_tenant_read` for the tenant path and the engine send helper pattern of `arbora/api/ops/memory.py::_send`. | Test (planned): `tests/api/test_usage_served.py::test_session_usage_forwards_caller_and_keeps_partial_coverage` (L3). It asserts forwarding, scope refusal, foreign-context refusal and preserved partial coverage.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.3.2
Shared measured request timing
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Shared measured request timing.** Stage: arbora served operation `usage.read` with a context identifier. Caller: `POST /api/v1/ops/usage.read` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: `EngineUsageReader.read_session`. Next call: the per-turn `timing` object of the `GetSessionUsage` result (MEDULLA-ORCH-VOCAB-R805). Code: add `TurnTiming{clock, request_elapsed_ms, run_elapsed_ms, turn_receipt_ref}` to `arbora/api/ops/usage.py`. Rule: `clock` is the closed value `client_monotonic`. Elapsed values are integers in `[0, 86400000]` ms. Configuration key `usage.max_elapsed_ms` in `~/.config/arbora/config.json`, default 86400000, bounds `[1000, 604800000]`. Each timing must name a `turn_receipt_ref` present in the same result. Arbora passes the observations through beside the usage receipt. Client elapsed time is not provider generation time, queue time or token rate. The schema holds no such field. Refusals: `UNAVAILABLE` with reason `TIMING_INVALID` for an out-of-range value or a missing receipt reference. The usage totals still return. Evidence: audit record with the timing count. Writes: none. Depends: ARBORA-OPS-R024.3.1, MEDULLA-ORCH-VOCAB-R805, MERISTEM-HARNESS-CYCLE-R061. Caller chain: `POST /api/v1/ops/usage.read` (`arbora/api/http/app.py:209`, `arbora/api/http/routes.py:122`) or the MCP verb -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/usage.py:35` (`handle_usage_read`) -> the planned session usage reader; timing validation is not yet built. Shape: Add `TurnTiming` (Pydantic model, extra fields forbidden) and the range/receipt-reference check to `arbora/api/ops/usage.py`, next to `UsageSnapshot`; the bounded setting follows the `runtime_config` pattern in `arbora/core/settings.py`. | Test: `tests/api/test_usage_served.py::test_timing_is_validated_and_correlated_to_turn_receipts` (L3). It asserts correlation, the range bounds, a missing receipt reference and absence of derived rate fields.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.4
Memory operations rollup
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Memory operations rollup.** Stage: arbora served operations `memory.read`, `memory.write`, `memory.list`, `memory.delete` over EG key-value methods, plus `memory.files.read`, `memory.files.list` and `memory.files.save`. Children: `.1` models, `.2` reads, `.3` saves, `.4` materialization, `.5` authority, `.6` registration and proof. ARBORA-OPS-R844 to R847 define the key-value operations. Caller: `POST /api/v1/ops/memory.*` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: the handlers in `arbora/api/ops/memory.py`, which send engine methods through `_send` under the caller's own session. Medulla owns content, versions and conflicts (MEDULLA-DURABLE-KERNEL-R085). Arbora owns hosted file materialization only. Depends: MEDULLA-DURABLE-KERNEL-R085, ARBORA-OPS-R844. | Root L3 journey: `tests/test_served_operation_api.py::test_served_memory_operations_round_trip_over_eg_kv` (L3) for the key-value operations; `tests/api/test_memory_files_served.py::test_complete_served_memory_file_journey` (L3) for the file operations.
requirementARBORA-OPSSPECIFIED383897ed5238
5f79be652726
5ffd23ca7883
8d1bc46ecbdb
94724be32c28
tests/api/test_registry_factory.py:357
ARBORA-OPS-R024.4.1
Memory file models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Memory file models.** Stage: arbora served operations `memory.files.*`. Caller: ARBORA-OPS-R024.4.6 registers them. This row adds the types they use. Code: new `arbora/api/ops/memory_files.py` with hand-written Pydantic models `MemorySnapshotRead`, `MemoryListCursor`, `MemorySyncRequest` and `MemorySyncOutcome`. The Rust serde types of MEDULLA-DURABLE-KERNEL-R085.1 are the only source of truth. Rule: `MemorySyncOutcome` is a tagged union. The accepted variant carries head fields. The refused variant carries none. Every model forbids extra fields. Digests are SHA-256 with 64 lowercase hex characters. Refusals: `INVALID_ARGUMENT` on a field-validation failure. Evidence: none. Writes: none. Depends: MEDULLA-DURABLE-KERNEL-R085.1. Caller chain: Types only; consumed by the memory file handlers registered through `arbora/api/ops/memory.py:264` (`operations`) once R024.4.6 lands, reached via `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). Shape: New `arbora/api/ops/memory_files.py` of Pydantic models subclassing `arbora/api/ops/_common.py::Params` (`_common.py:32`, extra fields forbidden); `arbora/api/ops/memory.py` does not yet contain these types. | Test: `tests/api/test_memory_files_served.py::test_models_round_trip_rust_vectors_and_refuse_invalid_fields` (L1). It loads the Rust round-trip vectors named in MEDULLA-DURABLE-KERNEL-R085.1. Verified by the root slice test `tests/api/test_memory_files_served.py::test_complete_served_memory_file_journey`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.4.2
Snapshot reads and listing
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Snapshot reads and listing.** Stage: arbora served operations `memory.files.read` and `memory.files.list`. Caller: `POST /api/v1/ops/memory.files.read` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: `handle_memory_files_read` in `arbora/api/ops/memory.py`. Next call: `_send`. Next call: `Method::ReadMemorySnapshot`. For `memory.files.list` the next call is `Method::ListMemorySnapshots`. Code: add both handlers and OpSpecs to `operations()` in `arbora/api/ops/memory.py`, built with `build_read_op`, scope `memory:read`. Rule: pass the cursor and filters through unchanged. The page size is the request value clamped to `[1, 200]`. Refusals: an expired or wrong-scope cursor returns the engine's `CURSOR_EXPIRED` or `SUBJECT_ACCESS_DENIED` unchanged. Other read and list refusals carry the engine `MEMSYNC_*` codes unchanged. Responses carry no hidden counts or identifiers. Evidence: audit record with the document identifier digest. Writes: none. Depends: MEDULLA-DURABLE-KERNEL-R085.2, ARBORA-OPS-R024.4.1. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> planned `handle_memory_files_read` and `handle_memory_files_list` in `arbora/api/ops/memory.py` (pattern of `handle_memory_read`, `memory.py:137`) -> `_send` (`memory.py:118`). Shape: Add two handlers and OpSpecs to `arbora/api/ops/memory.py::operations` using `arbora/api/ops/_common.py::build_read_op` (`_common.py:112`), scope `memory:read`, reusing the existing `_send` engine helper. | Test: `tests/api/test_memory_files_served.py::test_read_list_preserve_scope_and_cursor` (L3). It asserts scope, cursor binding, an expired cursor refusal and one cross-tenant negative case.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.4.3
Versioned saves and conflicts
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Versioned saves and conflicts.** Stage: arbora served operation `memory.files.save`. Caller: `POST /api/v1/ops/memory.files.save` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: `handle_memory_files_save` in `arbora/api/ops/memory.py`. Next call: `_send`. Next call: `Method::SyncMemorySnapshot` with action `submit` or `resolve`. Code: add the handler and a write OpSpec built with `build_write_op`, scope `memory:write`, idempotency `KEY_REQUIRED`. Rule: forward the base revision precondition, bytes, digest and idempotency key unchanged. Arbora never merges. A stale authorized save returns the engine's `conflict_retained` outcome with both versions kept. Refusals: a refused save returns the redacted variant with no head fields. Digest mismatch returns `INVALID_ARGUMENT` before dispatch. Evidence: audit record with request identity and content digest. Writes: through `SyncMemorySnapshot` only. The outcomes are `Accepted`, `ConflictRetained` and `Resolved` (`MEDULLA-DURABLE-KERNEL-R085.3`). `MEMSYNC_NOT_AVAILABLE` maps to the single denial `SUBJECT_ACCESS_DENIED`. Depends: MEDULLA-DURABLE-KERNEL-R085.3, ARBORA-OPS-R024.4.1. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> planned `handle_memory_files_save` in `arbora/api/ops/memory.py` (pattern of `handle_memory_write`, `memory.py:166`) -> `_send` (`memory.py:118`) -> `SyncMemorySnapshot`. Shape: Add a write OpSpec built with `arbora/api/ops/_common.py::build_write_op` (`_common.py:133`, idempotency key required) and the handler in `arbora/api/ops/memory.py`; models come from the planned `memory_files.py`. | Test: `tests/api/test_memory_files_served.py::test_competing_saves_preserve_both_versions` (L3). It asserts both versions kept, resolution once and a replay returning the first outcome.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.4.4
Hosted materialization
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hosted materialization.** Stage: arbora host bootstrap. Caller: `compose_served_invocation` in `arbora/mcp_server/served_invocation.py` → `MemoryMaterializer.start` → `materialize`. Code: new `MemoryMaterializer` in `arbora/api/ops/memory_files.py`, built beside `build_operation_runtime` in `arbora/api/invoke/bootstrap.py`. Rule: after the engine accepts a head, write the projection to the hosted directory. Then send the action `acknowledge` with the exact head revision, digest and observation generation. Configuration: key `memory.files_root` in `~/.config/arbora/config.json`, no default, required when `memory.files.*` is registered. Refusals: a failed file write sends no acknowledgment. A delayed acknowledgment for an older generation is ignored by the engine and never clears a newer observation or conflict. Evidence: acknowledgment carries head and generation. Writes: hosted files only. Engine state changes through `SyncMemorySnapshot`. Depends: MEDULLA-DURABLE-KERNEL-R085.6. Caller chain: `arbora/mcp_server/served_invocation.py:550` (`compose_served_invocation`) -> `arbora/api/invoke/bootstrap.py:267` (`build_operation_runtime`) -> planned `MemoryMaterializer.start`; called from `arbora/mcp_server/server.py::_served_invocation` (line 141). Shape: New `MemoryMaterializer` in the planned `arbora/api/ops/memory_files.py`, wired in `arbora/api/invoke/bootstrap.py` beside `build_operation_runtime`; the `memory.files_root` key is read through `arbora/core/settings.py` `runtime_config`. | Test: `tests/api/test_memory_files_served.py::test_materialization_ack_checks_generation` (L3). It asserts no acknowledgment after a failed write and no clearing by a stale acknowledgment.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.4.5
Authority and replay
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Authority and replay.** Stage: arbora served operations `memory.files.*`. Caller: `POST /api/v1/ops/memory.files.*` or the MCP verb. Next call: `make_endpoint` in `arbora/api/http/routes.py`. Next call: `invoke` in `arbora/api/invoke/pipeline.py`. Next call: authorization in `invoke` before any engine or hosted-file access (ARBORA-OPS-R009, ARBORA-OPS-R013). Code: `_effect` in `arbora/api/invoke/pipeline.py` already orders authority first. This row adds the memory file operations to `tests/api/authority_matrix.yaml`. Rule: a denied request for an existing document, an absent document and a creation attempt return one identical refusal. A replay with a changed body returns `IDEMPOTENCY_CONFLICT` with no effect. Refusals: `SUBJECT_ACCESS_DENIED` (identical in all three cases), `IDEMPOTENCY_CONFLICT`. Evidence: audit record without document existence. Writes: none beyond ARBORA-OPS-R024.4.3. Depends: MEDULLA-DURABLE-KERNEL-R085.5, ARBORA-OPS-R024.4.2. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `_effect` (`arbora/api/invoke/pipeline.py:258`) and the authority checks before dispatch; the fixture is `tests/api/authority_matrix.yaml`. Shape: Extend `tests/api/authority_matrix.yaml` (read by `tests/api/test_authority_parity.py`) with the memory file operations; no production code, `invoke` already orders authority before any engine access. | Test: `tests/api/test_memory_files_served.py::test_authority_and_replay_are_non_disclosing` (L3). It compares response bytes for the three denied cases and asserts zero effects on a changed-body replay.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.4.6
Registration and served proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Registration and served proof.** Stage: arbora registry. Code: register the three file operations in `arbora/api/ops/memory.py::operations`; `get_registry` in `arbora/api/ops/registry_factory.py` already includes the memory module. Schemas generate under ARBORA-OPS-R025. Rule: the operations stay unregistered until the engine reports the three methods. The registration check reads the engine method list and omits them otherwise. Real HTTP and MCP calls traverse `invoke` and durable engine dispatch. Refusals: `UNAVAILABLE` when a method is missing. No test replaces the host, gateway or engine transport. Evidence: the registry digest changes when the operations register. Writes: none. Depends: MEDULLA-DURABLE-KERNEL-R085.4, ARBORA-OPS-R024.4.1 to R024.4.5. Caller chain: `arbora/api/ops/registry_factory.py::get_registry` (`registry_factory.py:42`, module loop with `memory`) -> `arbora/api/ops/memory.py:264` (`operations`) -> `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). Shape: Append three OpSpecs to the tuple returned by `arbora/api/ops/memory.py::operations`; `get_registry` already iterates the `memory` module, and schemas generate from the OpSpec models; gating on the engine method list is new. | Test: `tests/api/test_memory_files_served.py::test_complete_served_memory_file_journey` (L3). It runs read, list, competing saves, resolution and acknowledgment over HTTP and MCP against a loopback engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R844
Served memory read and write over EG KV
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served memory read and write over EG KV.** Extends `ARBORA-OPS-R024.4`. `memory.read` maps to EG `KvGet` and `memory.write` to EG `KvPut`. A write with `expected_version` maps to EG `KvCas`; `0` means only when absent. Each call runs under the caller's verified session, so entries are per-principal by default. A key is stored at `memory/<namespace>/<key>`: EG namespace `memory`, EG key `<namespace>/<key>`, default namespace `default`. Every result returns the entry version. An absent key reads as `found: false`. A compare-and-set mismatch returns `swapped: false` with the current version. Writes need an idempotency key, which EG replays. Scopes: `kv:read` and `kv:write`. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `handle_memory_read` (`arbora/api/ops/memory.py:137`) and `handle_memory_write` (`:166`) -> `_send` (`:118`) -> engine `Kv*` methods. Shape: `arbora/api/ops/memory.py` with `MemoryKeyParams`, `MemoryWriteParams`, `MemoryListParams`, `MemoryResult`; OpSpecs built by `_common.build_read_op`/`build_write_op`; `_send` runs the engine call under the caller's session via `use_session`. | `tests/test_served_operation_api.py::test_served_memory_operations_round_trip_over_eg_kv`
requirementARBORA-OPSVERIFIED3e13de24a8be
5f79be652726
fc1dc0c29fce
tests/test_served_operation_api.py:258
tests/test_served_operation_api.py:388
tests/test_served_operation_api.py:425
ARBORA-OPS-R844.1
Persistence privacy masking on the served write path
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Persistence privacy masking on the served write path.** Extends `ARBORA-OPS-R844`. Every served operation that stores caller content applies the persistence privacy policy (`sanitize_for_persistence` of the connector SDK) to the persisted argument after schema validation and before the idempotency digest, the audit reservation and the engine call, so a secret-bearing payload is stored masked on every surface. Covered operations: `memory.write` (`value`) and `eg.graph.AddEdge` (`properties_msgpack`, decoded, masked and re-encoded; an undecodable payload is refused with `INVALID_ARGUMENT`). Caller chain: `arbora/api/http/routes.py::make_endpoint` -> `arbora/api/invoke/pipeline.py::invoke` -> `_arguments` -> `arbora/api/invoke/privacy.py::mask_persisted_arguments`. Shape: new `arbora/api/invoke/privacy.py` holding `PERSISTED_FIELDS` and `mask_persisted_arguments`; edits `_arguments` in `arbora/api/invoke/pipeline.py`. Another persisted write joins by one `PERSISTED_FIELDS` entry. Depends: `ARBORA-OPS-R844`. | `tests/test_served_operation_api.py::test_served_writes_mask_secret_bearing_payloads`
requirementARBORA-OPSVERIFIED3e13de24a8be
tests/test_served_operation_api.py:388
ARBORA-OPS-R844.2
Node writes join the persisted-field table
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Node writes join the persisted-field table.** Extends `ARBORA-OPS-R844.1`. The web interface writes nodes through `eg.graph.AddNode` and batches through `eg.graph.ApplyMutation`. Add two `PERSISTED_FIELDS` entries in `arbora/api/invoke/privacy.py`: `eg.graph.AddNode` (`properties_msgpack`, decoded, masked, re-encoded) and `eg.graph.ApplyMutation` (each node and edge property map of the batch). An undecodable payload is refused with `INVALID_ARGUMENT`, as R844.1 does. The web interface routes `POST /graph/memory`, `PUT /graph/memory/{id}` and `POST /graph/link` need no further masking step, because `memory.write` and `eg.graph.AddEdge` are covered by R844.1; the host calls to `sanitize_for_persistence` are deleted with those routes (`OVERSTORY-API-R012.2`). Caller chain: `make_endpoint` -> `invoke` -> `_arguments` -> `mask_persisted_arguments`. Shape: two table entries and the batch walker in `privacy.py`; no pipeline edit. Depends: `ARBORA-OPS-R844.1`. | Test: `tests/test_served_operation_api.py::test_node_and_batch_writes_mask_secret_bearing_properties` (L2).
requirementARBORA-OPSVERIFIEDfc1dc0c29fce
tests/test_served_operation_api.py:425
ARBORA-OPS-R845
Served memory list and delete
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served memory list and delete.** Extends `ARBORA-OPS-R024.4`. `memory.list` maps to EG `KvScan` over one namespace, with an optional key prefix, cursor and limit up to 200. Listed keys are returned without the namespace prefix. `memory.delete` maps to EG `KvDelete` and reports whether the entry existed. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `handle_memory_list` (`arbora/api/ops/memory.py:207`) and `handle_memory_delete` (`:243`) -> `_send` (`:118`) -> engine `Kv*` methods. Shape: `arbora/api/ops/memory.py` with `MemoryKeyParams`, `MemoryWriteParams`, `MemoryListParams`, `MemoryResult`; OpSpecs built by `_common.build_read_op`/`build_write_op`; `_send` runs the engine call under the caller's session via `use_session`. | `tests/test_served_operation_api.py::test_served_memory_operations_round_trip_over_eg_kv`
requirementARBORA-OPSVERIFIED5f79be652726
tests/test_served_operation_api.py:258
ARBORA-OPS-R846
Explicit shared memory scope
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Explicit shared memory scope.** Extends `ARBORA-OPS-R024.4`. `scope: "shared"` selects EG's shared KV namespace. A shared write or delete also needs `kv:shared:write`. Without it Arbora refuses with `SCOPE_REQUIRED` and names the missing scope, and sends nothing to EG. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/memory.py:85` (`_require_shared_write`) called from `handle_memory_write` (`:166`) and `handle_memory_delete` (`:243`) before `_send`. Shape: `_require_shared_write` and the `SHARED_WRITE_SCOPE` constant in `arbora/api/ops/memory.py` raise the scope refusal before any engine call; `_shared` (line 81) reads `scope`. | `tests/test_served_operation_api.py::test_served_memory_operations_round_trip_over_eg_kv`
requirementARBORA-OPSVERIFIED20d3cc8c9878
5f79be652726
tests/test_served_operation_api.py:258
ARBORA-OPS-R847
KV methods in the registry
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**KV methods in the registry.** Extends `ARBORA-OPS-R006`. Arbora requires EG 2.27.3 or later. The registry carries `eg.storage.KvGet`, `KvPut`, `KvScan`, `KvDelete` and `KvCas` from the installed contract, beside `memory.read`, `memory.write`, `memory.list` and `memory.delete`. The web UI's `memory.read`, `memory.write` and `memory.delete` calls resolve to these operations. Caller chain: `arbora/api/ops/registry_factory.py:95` (`load_eg_bindings` over the installed contract) plus the `memory` module loop (line 42) in `get_registry`, served through `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). Shape: `get_registry` composes curated ops (`arbora/api/ops/memory.py::operations`) with generated engine bindings from `arbora/api/registry/eg_binding.py::load_eg_bindings`, so `eg.storage.Kv*` come from the installed contract. | The in-code registry lists the KV and memory operations; `tests/test_served_operation_api.py` calls them over HTTP. Test: `tests/api/test_registry_factory.py::test_memory_and_kv_operations_are_registered`.
requirementARBORA-OPSVERIFIED5f79be652726
tests/api/test_registry_factory.py:357
ARBORA-OPS-R024.5
Operational admin operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Operational admin operations.** Stage: arbora served operations `ops.backup` and `ops.restore` (`Effect.ADMIN`, scope `ops:admin`); `ops.doctor`, `ops.config` and `ops.tenants` are reads. Caller: `POST /api/v1/ops/ops.backup` or the MCP verb → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_ops_backup` in `arbora/api/ops/ops.py`. Rule: `invoke` returns `STEP_UP_REQUIRED` (HTTP 428) unless the caller holds console step-up and an undelegated human session (`_admin_authority` in `arbora/api/ops/_common.py`). A plain confirmation never satisfies it. The pre-dispatch audit reservation of ARBORA-OPS-R036 precedes every effect. Tenant creation and suspension belong to ARBORA-IDENTITY. Graph, query and ontology administration belong to ARBORA-HOST-R026. Refusals: `STEP_UP_REQUIRED`, `SCOPE_REQUIRED`, `UNAVAILABLE` without a composed backup port. Evidence: audit record with principal, tenant, backup identifier and outcome. Writes: backup receipt through the composed port. Depends: ARBORA-OPS-R036. Caller chain: `POST /api/v1/ops/ops.backup` -> `arbora/api/http/app.py:209` -> `make_endpoint` (`arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`, step-up refusal at `pipeline.py:297`) -> `arbora/api/ops/ops.py:165` (`handle_ops_backup`). Shape: `arbora/api/ops/ops.py` handlers over the bound store; admin ops use `arbora/api/ops/_common.py::build_write_op`, whose `_admin_authority` (`_common.py:121`) sets `HUMAN_UNDELEGATED` and the console surface. | Test: `tests/api/test_ops_admin_ops.py::test_backup_restore_require_step_up_and_audit` (L3). It asserts the plain-confirmation refusal, the step-up success and the audit fields.
requirementARBORA-OPSVERIFIED4016e049e45e
8d1bc46ecbdb
b7aa0cfabc5e
tests/test_served_operation_api.py:349
ARBORA-OPS-R024.5.1
Model list read for ordinary users
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Model list read for ordinary users.** Extends `ARBORA-OPS-R024.5`. `models.list` (`kind`: `chat` or `embedding`, default `chat`) returns the deployment's configured models of that kind as identity rows (`id`, `name`, `provider`, `model`, `model_id`, `description`), so a model picker works without the admin `ops:read` scope that `ops.config` needs. The scope is the user-class `registry:read`; the engine scope registry owns scope names, so a dedicated models scope is an engine row. Endpoints, key references and headers are never projected. Caller chain: `POST /api/v1/ops/models.list` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/models.py::handle_models_list`. Shape: new `arbora/api/ops/models.py` (`ModelsListParams`, `handle_models_list`, `operations`), registered in `arbora/api/ops/registry_factory.py::get_registry`. Depends: `ARBORA-OPS-R024.5`. | `tests/test_served_operation_api.py::test_models_list_serves_identity_rows_without_the_admin_scope`
requirementARBORA-OPSVERIFIEDb7aa0cfabc5e
tests/test_served_operation_api.py:349
ARBORA-OPS-R025
Registry in code is the API contract
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Registry in code is the API contract.** The operation registry built by `arbora/api/ops/registry_factory.py` is the only source of operation IDs, schemas and the registry digest. OpenAPI is served live from it; the Python client reads it in-process; engine error codes live in `arbora/api/engine_errors.py`. No generator runs and no generated contract file is committed. | `tests/api/test_client_http.py` and the served-operation tests exercise the in-code registry directly.
requirementARBORA-OPSVERIFIED144fd029bf2e
166a7322d0e6
2117d4306d7c
43c5e4b631cb
4b83c69e2b41
tests/api/test_client_http.py:14
tests/api/test_client_http.py:15
ARBORA-OPS-R025.1
Python invocation boundary
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Python invocation boundary.** `arbora.client` checks operation membership against the in-code registry before transport and requires the response registry digest to match it for success and refusal envelopes. Matching envelopes pass through unchanged. Caller chain: `arbora/client/invoke.py:17` (`invoke`) -> `arbora/client/_models.py:25` (`schema_for`, registry membership) -> `Transport.invoke` (`arbora/client/http.py`) -> digest check against `registry_digest()` (`_models.py:21`). Shape: `arbora/client/invoke.py` and `_models.py` read the in-code registry (`get_registry`) once via `lru_cache`; membership check happens before the transport call, digest compare after. | Client tests prove unknown operations make zero calls and mismatched digests are refused. Planned test: `tests/api/test_client_invoke.py::test_unknown_operation_makes_zero_calls_and_digest_mismatch_is_refused`.
requirementARBORA-OPSVERIFIED144fd029bf2e
166a7322d0e6
2117d4306d7c
tests/api/test_client_http.py:15
ARBORA-OPS-R026
API surface and compatibility drift gates
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**API surface and compatibility drift gates.** Arbora enforces its API-surface and backward-compatibility drift gates as pre-commit hooks, each backed by a dedicated test. | Unit tests for each drift gate confirm it fails when its drift is introduced. The pre-commit hook runs them on every commit.
requirementARBORA-OPSVERIFIED20ec6b79a02b
4b9d181069e4
tests/api/test_backward_compat_drift_gate.py:42
tests/api/test_backward_compat_drift_gate.py:51
tests/api/test_backward_compat_drift_gate.py:60
tests/api/test_backward_compat_drift_gate.py:70
tests/api/test_backward_compat_drift_gate.py:79
ARBORA-OPS-R026.1
API-surface drift gate — api-surface slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**API-surface drift gate — api-surface slice.** This implements the api-surface portion of `ARBORA-OPS-R026`. A pre-commit hook fails if generated registry operation IDs, HTTP routes, or MCP verbs change without a reviewed baseline update. Caller chain: `scripts/check_api_surface.py:37` (`main`) -> `arbora/api/registry/surface_gate.py` (`public_surface`, `diff_public_surface`) over `get_registry()`; baseline `tests/api/surface_baseline.json`. Shape: Thin CLI in `scripts/check_api_surface.py` reusing `arbora.api.registry.surface_gate`; it holds no comparison logic. | A dedicated unit test confirms failure when an operation is added, removed, or changes public shape without a baseline update. Test: `tests/api/test_surface_drift_gate.py::test_gate_fails_when_an_operation_is_added_without_baseline_update`.
requirementARBORA-OPSVERIFIED4b9d181069e4
tests/api/test_surface_drift_gate.py:22
tests/api/test_surface_drift_gate.py:31
tests/api/test_surface_drift_gate.py:41
tests/api/test_surface_drift_gate.py:50
tests/api/test_surface_drift_gate.py:67
ARBORA-OPS-R026.2
Backward-compatibility drift gate — backward-compat slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Backward-compatibility drift gate — backward-compat slice.** Implements the backward-compat portion of `ARBORA-OPS-R026`: a pre-commit hook that fails when a previously published operation is removed or has a required field narrowed in an incompatible way. Caller chain: `scripts/check_api_compat.py:58` (`main`) -> `_current_ops` (`:45`) over `get_registry()` -> `arbora/api/registry/surface_gate.py` compatibility diff against a stored baseline. Shape: Thin CLI in `scripts/check_api_compat.py` reusing the shared surface-gate diff; baseline written on first run. | A dedicated unit test confirms the gate fails when a previously published operation's compatible shape is broken. Test: `tests/api/test_backward_compat_drift_gate.py::test_gate_fails_when_a_published_operation_is_removed`.
requirementARBORA-OPSVERIFIED20ec6b79a02b
4b9d181069e4
tests/api/test_backward_compat_drift_gate.py:42
tests/api/test_backward_compat_drift_gate.py:51
tests/api/test_backward_compat_drift_gate.py:60
tests/api/test_backward_compat_drift_gate.py:70
tests/api/test_backward_compat_drift_gate.py:79
ARBORA-OPS-R027
Authority-parity test across principals and surfaces
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Authority-parity test across principals and surfaces.** Arbora maintains an authority matrix fixture. It covers every combination of principal kind, operation and surface. A parity test asserts that the generated registry enforces the same allow/deny outcomes as the fixture. Caller chain: `tests/api/test_authority_parity.py:86` loads `tests/api/authority_matrix.yaml` (`MATRIX_PATH`, line 42) and drives the registry's authority check (`arbora/api/invoke/pipeline.py` effect/authority gates). Shape: YAML fixture of principal kind x op x surface rows plus one parametrized test; coverage tests assert every `PrincipalRule` and caller kind appears. | The authority-parity test suite runs against the authority matrix fixture and passes with no mismatches. Test: `tests/api/test_authority_parity.py::test_authority_matrix_row_matches_expected_outcome`.
requirementARBORA-OPSVERIFIED4b9d181069e4
tests/api/test_authority_parity.py:115
tests/api/test_authority_parity.py:121
ARBORA-OPS-R028
Exported domain scope classes
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Exported domain scope classes.** Arbora defines and exports its domain scope classes, including finance:read, fleet:read, fleet:control, loops:read, loops:control, ops:read, and ops:admin, for consumption by the engine's scope registry. Caller chain: `arbora/api/registry/__init__.py` re-exports `FinanceScope`, `FleetScope`, `LoopsScope`, `OpsScope` from `arbora/api/registry/scopes.py:14-28`, consumed by op modules and `scripts/gen_scope_registry.py` -> `arbora/security/scope_registry.py`. Shape: Four `StrEnum` classes plus `DOMAIN_SCOPE_CLASSES` tuple in `arbora/api/registry/scopes.py`. | Unit tests confirm each exported scope triple matches its declared class and is consumed without duplication. Test: `tests/api/test_registry_scopes.py::test_each_scope_triple_matches_its_declared_class`.
requirementARBORA-OPSVERIFIED4b83c69e2b41
67987a735927
b47b39eac0ae
tests/api/test_registry_scopes.py:17
ARBORA-OPS-R029
Single resident-tool server cutover
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Single resident-tool server cutover.** Arbora's server factory registers only the six resident MCP verbs plus find_tools, load_tools, unload_tools, and multiplexer_status. It mounts the generated /api/v1 sub-application and an explicit protocol-route table. The same change removes retired granular tool registrars, hand-written action-tool routes, and legacy fleet routes. Caller chain: `arbora/mcp_server/server.py:208` (`mcp_server`) -> `arbora/mcp_server/runtime.py:760` (`_build_server`) -> `_register_served_intent_surface` (`runtime.py:964`) -> `arbora/api/mcp/serving.py:29`; REST via `arbora/api/http/app.py:58` (`create_api_application`) and `arbora/api/http/protocol_routes.py:15` (`PROTOCOL_ROUTES`). Shape: Verbs in `arbora/api/mcp/verbs.py::VERBS`, fleet tools in `arbora/api/mcp/registration.py:29` (`FLEET_OPERATIONS`); route table is the tuple `PROTOCOL_ROUTES`. | A boot/integration test checks the running server exposes exactly the resident tool set and mounted routes. It confirms retired modules are absent. Test: `tests/api/test_resident_tool_surface.py::test_resident_tool_set_is_exactly_six_verbs_plus_four_fleet_tools`.
requirementARBORA-OPSVERIFIED5bc24c262ef0
tests/api/test_resident_tool_surface.py:33
tests/api/test_resident_tool_surface.py:43
tests/api/test_resident_tool_surface.py:56
ARBORA-OPS-R030
Accurate MCP server and API documentation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Accurate MCP server and API documentation.** Arbora keeps its MCP server, API, and status documentation accurate to the live six-verb MCP surface. It also documents the generated HTTP API. The docs replace outdated tool-count or endpoint descriptions. Caller chain: `docs/mcp-server.md` is read by the docs tests; live counts come from `arbora/api/mcp/verbs.py::VERBS` and `arbora/api/mcp/registration.py:29` (`FLEET_OPERATIONS`). Shape: Prose doc `docs/mcp-server.md` checked by `tests/docs/test_mcp_server_doc_accuracy.py` against the live constants; no new code. | A documentation-accuracy check confirms the documented verb and tool counts match the live registry. Test: `tests/docs/test_mcp_server_doc_accuracy.py::test_doc_states_resident_tool_total_matches_live_registry`.
requirementARBORA-OPSVERIFIED5bc24c262ef0
tests/docs/test_mcp_server_doc_accuracy.py:24
tests/docs/test_mcp_server_doc_accuracy.py:38
ARBORA-OPS-R031
Published tool-to-operation parity inventory
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Published tool-to-operation parity inventory.** Arbora publishes a complete parity inventory mapping every former hosted intent verb and tool to its destination operation or a documented intentional drop, so that a consuming agent project can remove its legacy intent-tool definitions only once that inventory and its generated client are published. | A parity-inventory test confirms full coverage of former tool names against the published mapping.
requirementARBORA-OPSVERIFIED5bc24c262ef0
tests/api/test_fleet_tool_parity_inventory.py:33
tests/api/test_fleet_tool_parity_inventory.py:42
ARBORA-OPS-R031.1
Fleet meta-tool parity mapping — resident fleet slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Fleet meta-tool parity mapping — resident fleet slice.** This row implements the resident-fleet-tool slice of `ARBORA-OPS-R031`. Arbora publishes the parity mapping in docs. The mapping names the destination operation of each resident fleet meta-tool: `find_tools`, `load_tools`, `unload_tools` and `multiplexer_status`. Caller chain: `docs/mcp-server.md` parity table, checked against `arbora/api/mcp/registration.py:29` (`FLEET_OPERATIONS`: `find_tools`, `load_tools`, `unload_tools`, `multiplexer_status`). Shape: Doc table plus `tests/api/test_fleet_tool_parity_inventory.py` comparing its keys and destination ids to `FLEET_OPERATIONS`. | A parity-inventory test confirms the published mapping's keys and values match the live `FLEET_OPERATIONS` registry exactly. Test: `tests/api/test_fleet_tool_parity_inventory.py::test_published_mapping_matches_live_fleet_operations_registry`.
requirementARBORA-OPSVERIFIED5bc24c262ef0
tests/api/test_fleet_tool_parity_inventory.py:33
tests/api/test_fleet_tool_parity_inventory.py:42
ARBORA-OPS-R032
Identity dependency inversion via ports (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Identity dependency inversion via ports (rollup).** Subsystem: arbora serving composition. The modules `arbora/webui_host` and `arbora/mcp_server` depend only on `arbora.identity.ports`. The concrete identity runtime is built once, in `configured_browser_boundary` (`arbora/identity/browser_composition.py`), through `build_engine_identity_ports`. The result reaches serving as a `BrowserBoundaryFactory` and a `WebUISessionBoundary`. Caller: `mcp_server()` in `arbora/mcp_server/server.py` → `start_composed_services` in `arbora/mcp_server/composition.py` → `run_web_ui` in `arbora/webui_host/webui_co_service.py`. Children: `.1` import gate, `.2` composition root, `.2.2` mcp_server, `.2.3` webui_host, `.2.4` single-runtime proof. Depends: ARBORA-OPS-R032.1. | Root L3 journey: `tests/architecture/test_identity_ports_boundary.py::test_serving_modules_depend_only_on_identity_ports` (L1) plus `tests/mcp_server/test_browser_composition.py::test_one_runtime_reaches_mcp_server_and_webui` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R032.1
Static identity-ports import boundary
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Static identity-ports import boundary.** Arbora enforces, as a standing regression guard, that its webui_host and mcp_server modules import only arbora.identity.ports and never the concrete identity runtime (arbora.identity.engine or any other arbora.identity submodule). Caller chain: Static check over `arbora/webui_host/**` and `arbora/mcp_server/**`, run as `tests/architecture/test_identity_ports_boundary.py:51`. Shape: AST import scan (`_identity_import_violations`, line 31) allowing only `arbora.identity.ports` (`ALLOWED_IDENTITY_MODULE`, line 22). | A static dependency-graph check over every module under arbora/webui_host and arbora/mcp_server confirms no import of a arbora.identity submodule other than arbora.identity.ports. Test: `tests/architecture/test_identity_ports_boundary.py::test_serving_modules_depend_only_on_identity_ports`.
requirementARBORA-OPSVERIFIED68c58c6e80df
b97b75e763ed
tests/architecture/test_identity_ports_boundary.py:51
tests/webui_host/test_session_boundary.py:162
ARBORA-OPS-R032.2
Injected composition root for identity ports
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Injected composition root for identity ports.** Stage: arbora host bootstrap. Caller: `mcp_server()` in `arbora/mcp_server/server.py` → `configured_browser_boundary` in `arbora/identity/browser_composition.py` → `build_engine_identity_ports` in `arbora/identity/composition.py`. Rule: the root calls `build_engine_identity_ports` exactly once per process and exposes only `IdentityPorts` (`credentials`, `sessions`). It injects the resulting boundary into `compose_served_invocation` through `browser_boundary_factory`, and into `start_composed_services` through `session_boundary`. No other module constructs `EngineSessionAuthority`. Refusals: `IdentityUnavailable` when authoritative sources are absent. Evidence: none. Writes: none. Depends: ARBORA-OPS-R032.2.1. | Test: `tests/mcp_server/test_browser_composition.py::test_root_builds_ports_once_and_injects_boundary` (L3). It counts constructor calls and asserts both consumers get port-typed objects.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R032.2.1
Identity runtime constructor in the composition root
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Identity runtime constructor in the composition root.** Arbora has one composition-root function that constructs the concrete identity runtime once and returns it typed only as arbora.identity.ports Protocol objects (CredentialAuthority, SessionAuthority). Edits arbora/identity and the composition root only, not arbora/api/ops/registry_factory.py. Caller chain: `arbora/identity/composition.py:61` (`build_engine_identity_ports`) -> `:48` (`build_identity_ports`), called from the process composition root. Shape: `build_identity_ports` builds the runtime once and returns `IdentityPorts(credentials, sessions)` typed as `arbora.identity.ports` Protocols; `EngineSessionAuthority` (`arbora/identity/engine_ports.py`) is the engine-backed owner. | A unit test confirms port-typed results and one runtime construction per root call. Missing authoritative facts cause IdentityUnavailable. Test: `tests/identity/test_identity_composition.py::test_builds_runtime_once_and_returns_ports`.
requirementARBORA-OPSVERIFIED3dc5a3607868
tests/identity/test_identity_composition.py:32
tests/identity/test_identity_composition.py:52
tests/identity/test_identity_composition.py:62
ARBORA-OPS-R032.2.2
Inject identity ports into mcp_server
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Inject identity ports into mcp_server.** Stage: arbora host bootstrap. Caller: `mcp_server()` in `arbora/mcp_server/server.py` → `_served_invocation`. Rule: `mcp_server` accepts identity only as a `BrowserBoundaryFactory` or a prebuilt `HostedInvocation`, both typed in `arbora.identity.ports`. With `enable_web_ui` set and `webui_auth_mode` equal to `eg`, a missing factory and a missing invocation stop startup with `RuntimeError('EG browser requires the process-root identity factory')`. Configuration: keys `enable_web_ui` and `webui_auth_mode` in `~/.config/arbora/config.json`. Refusals: that startup error. Evidence: none. Writes: none. Depends: ARBORA-OPS-R032.2.1, ARBORA-OPS-R032.1. Caller chain: `arbora/mcp_server/server.py:208` (`mcp_server`) -> startup guard at `server.py:237` -> `_served_invocation` (`server.py:141`) -> `served_invocation_from_settings` (`arbora/mcp_server/served_invocation.py:729`). Shape: `mcp_server` takes `browser_boundary_factory` or `invocation` (types in `arbora/identity/ports.py`) and raises `RuntimeError` when `runtime_config.enable_web_ui` and `webui_auth_mode == 'eg'` have neither. | Test: `tests/mcp_server/test_browser_composition.py::test_mcp_server_refuses_eg_browser_without_factory` (L3). It asserts the startup refusal and that a factory-bearing start succeeds.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R032.2.3
Inject identity into webui_host (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Inject identity into webui_host (rollup).** Stage: arbora host bootstrap. `run_web_ui` receives identity only as a `session_boundary` and maps it with `identity_factory_kwargs` in `arbora/webui_host/session_boundary.py`. `compose_web_application` takes no identity argument and mounts gateway routes only. Caller: `start_composed_services` → `run_web_ui`. Children: `.2.3.2` threading the boundary. ARBORA-OPS-R032.2.3.1 and ARBORA-OPS-R032.2.3.2.1 are retired because the boundary replaces an `IdentityPorts` argument. Depends: ARBORA-OPS-R032.2.2. | Root L3 journey: `tests/webui_host/test_session_boundary.py::test_eg_mode_requires_boundary_and_none_mode_refuses_one` (L2) plus the child proof.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R032.2.3.2
Thread the session boundary through start_composed_services
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Thread the session boundary through start_composed_services.** Stage: arbora host bootstrap. Caller: `mcp_server()` → `start_composed_services(session, engine, session_boundary=...)` in `arbora/mcp_server/composition.py` → `CoServiceSupervisor.start_service('agent-webui', runner)`. Rule: when a boundary exists, `start_composed_services` binds it with `functools.partial(run_web_ui, session_boundary=...)`. `mcp_server()` passes `invocation.browser_boundary`. Children: `.2.3.2.2`. Refusals: `IdentityUnavailable` from `identity_factory_kwargs` when mode `eg` has no boundary. Evidence: none. Writes: none. Depends: ARBORA-OPS-R032.2.3, ARBORA-OPS-R032.2.2. | Root L3 journey: `tests/mcp_server/test_browser_composition.py::test_supervisor_start_call_supplies_boundary` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R032.2.3.2.2
Supply the boundary from composition to the webui start call
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Supply the boundary from composition to the webui start call.** Stage: arbora host bootstrap. Caller: `mcp_server()` in `arbora/mcp_server/server.py` → `start_composed_services`. Code: the call at `co_service_supervisor = start_composed_services(...)` passes `session_boundary=invocation.browser_boundary if invocation else None`. Rule: the supplied boundary is the one built by the root of ARBORA-OPS-R032.2. No second boundary exists. Refusals: none added. Evidence: none. Writes: none. Depends: ARBORA-OPS-R032.2.3.2, ARBORA-OPS-R032.2.2. Caller chain: `arbora/mcp_server/server.py:442` (`start_composed_services(..., session_boundary=invocation.browser_boundary if invocation else None)`, line 447) inside `mcp_server`. Shape: One keyword argument at the existing `start_composed_services` call in `arbora/mcp_server/server.py`, forwarding `HostedInvocation.browser_boundary`; no second boundary is built. | Test: `tests/mcp_server/test_browser_composition.py::test_start_call_receives_the_root_boundary` (L3). It asserts the object passed to the supervisor is the root's boundary.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R032.2.4
Single injected identity runtime proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Single injected identity runtime proof.** Stage: arbora host bootstrap. Test builds the real composition root once and starts `mcp_server`, the served invocation and `run_web_ui` with a loopback engine. Rule: exactly one `build_engine_identity_ports` call occurs, and the same boundary object reaches the invocation and `run_web_ui`. The static gate of ARBORA-OPS-R032.1 shows no import of a concrete identity submodule in `arbora/webui_host` or `arbora/mcp_server`. Refusals: none. Evidence: constructor call count. Writes: none. Depends: ARBORA-OPS-R032.2.2, ARBORA-OPS-R032.2.3. Caller chain: `arbora/mcp_server/server.py:208` (`mcp_server`) -> `_served_invocation` (`:141`) and `start_composed_services` (`:442`) -> `run_web_ui`; one `arbora/identity/composition.py:61` (`build_engine_identity_ports`) call. Shape: Test-only proof in `tests/mcp_server/test_browser_composition.py` using a loopback engine and a call-count spy on `build_engine_identity_ports`; the static gate is `tests/architecture/test_identity_ports_boundary.py`. | Test: `tests/mcp_server/test_browser_composition.py::test_one_runtime_reaches_mcp_server_and_webui` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R033
Dynamic multiplexer discovery, load, and call
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Dynamic multiplexer discovery, load, and call.** Arbora implements find_tools (with browse=true replacing the former catalog listing), load_tools, unload_tools, and multiplexer_status over one per-caller-filtered catalog spanning fleet tools, prompts, resources, skills, and connector items, enforcing a default load cap of 64 (hard maximum 256), one-hour idle expiry, opt-in LRU eviction, and routing every loaded tool's body through a fleet call with the caller's delegated credential. Caller chain: MCP `find_tools`/`load_tools`/`unload_tools`/`multiplexer_status` (`arbora/api/mcp/registration.py:29`) or HTTP `fleet.*` ops (`arbora/api/ops/fleet.py:143` `handle_fleet_operation`, `:181` `handle_fleet_call`) -> `invoke` -> `arbora/fleet/gateway_ops.py` -> `arbora/fleet/multiplexer_ops.py:184`. Shape: `arbora/fleet/session_loads.py:46` (`SessionLoads`, cap 64, idle TTL 3600 s) holds per-session loads; `MultiplexerOps` (`multiplexer_ops.py`) is the shared catalog; loaded calls route through `fleet.call`. | Integration tests confirm the load cap, idle expiry, and that each loaded tool call is dispatched through the fleet-call path rather than directly. Test: `tests/fleet/test_governed_forwarders.py::test_hard_cap_and_one_hour_idle_expiry`.
requirementARBORA-OPSVERIFIED4016e049e45e
b9141334e1ba
tests/fleet/test_gateway_ops.py:59
tests/fleet/test_governed_forwarders.py:29
ARBORA-OPS-R034
Eunomia narrowing-only policy enforcement
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Eunomia narrowing-only policy enforcement.** Arbora applies its policy engine as a narrowing-only step at discovery, load, and every call, always leaving exact-scope filtering in place when policy is off, failing closed when policy is enabled but unreachable, defaulting to on for local and external deployments and off only for the none deployment mode, with its doctor check warning when policy is disabled. Caller chain: `arbora/api/invoke/bootstrap.py:311` (`build_invoke_services`, takes `policy_gate`) -> `arbora/api/policy/eunomia.py:174` (`PolicyGate`, `from_config`) applied at invoke, discovery and load; doctor check `arbora/deployment/doctor.py:1080` (`_check_eunomia`). Shape: `PolicyGate` with modes `none`, `embedded`, `remote`; base exact-scope check (`_base_authorized`, line 154) runs before the optional decision point, which can only narrow; `DecisionCache` in `arbora/api/policy/cache.py`. | Integration tests cover the off, on, and unreachable policy states. A doctor-check test confirms the warning fires when policy is off. Test: `tests/api/test_policy_eunomia.py::test_missing_pdp_fails_closed`.
requirementARBORA-OPSVERIFIED4016e049e45e
4b83c69e2b41
tests/api/test_policy_eunomia.py:137
tests/api/test_policy_eunomia.py:57
tests/api/test_policy_eunomia.py:77
tests/deployment/test_doctor.py:302
ARBORA-OPS-R035
Multiplexer registration reduced to four resident tools
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Multiplexer registration reduced to four resident tools.** Stage: arbora MCP surface. The resident surface is the six intent verbs plus `find_tools`, `load_tools`, `unload_tools` and `multiplexer_status`, mapped by `FLEET_OPERATIONS` in `arbora/api/mcp/registration.py`. Caller: `mcp_server()` → `create_mcp_server` in `arbora/mcp_server/backing/server_factory.py` → `register_mcp_tools` → `GovernedSessionVisibility`. Rule: the middleware only filters `on_list_tools` to resident names plus the caller's loaded items. It raises no denial. Authorization happens only in `invoke` in `arbora/api/invoke/pipeline.py`. Children: `.1` unit proof, `.2` live wiring. Depends: ARBORA-OPS-R029. | Root L3 journey: `tests/api/test_resident_tool_surface.py::test_running_server_lists_exactly_the_resident_tools` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R035.1
Four-tool meta-registration and routing-only visibility, unit-bound
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Four-tool meta-registration and routing-only visibility, unit-bound.** Arbora's prepared multiplexer registration module defines exactly the four resident fleet meta-tools (find_tools, load_tools, unload_tools, multiplexer_status), and its GovernedSessionVisibility middleware only routes the list-tools candidate set (resident names plus the caller's currently loaded items), raising no denial of its own. Caller chain: `arbora/api/mcp/registration.py:29` (`FLEET_OPERATIONS`) and `:194` (`GovernedSessionVisibility.on_list_tools`), attached by `register_mcp_tools` (`:233`). Shape: `FleetMCPBinding` plus `_attach_resident_tools`; the middleware filters the candidate list to resident names plus loaded items and raises nothing. | A test confirms FLEET_OPERATIONS is exactly the four named tools. GovernedSessionVisibility.on_list_tools filters a candidate tool list to resident-plus-loaded without raising. Test: `tests/api/mcp/test_registration_governed_visibility.py::test_multiplexer_meta_tool_registration_is_reduced_to_four_resident_tools`.
requirementARBORA-OPSVERIFIEDb97b75e763ed
tests/api/mcp/test_registration_governed_visibility.py:27
tests/api/mcp/test_registration_governed_visibility.py:58
ARBORA-OPS-R035.2
Registration wired into the live server
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Registration wired into the live server.** Stage: arbora MCP startup. Caller: `mcp_server()` in `arbora/mcp_server/server.py` → `create_mcp_server` → `register_mcp_tools(mcp, multiplexer, binding)` in `arbora/api/mcp/registration.py`. Today `register_intent_surface` in `arbora/api/mcp/serving.py` registers the six verbs and nothing calls `register_mcp_tools`. This row creates the call site. Rule: startup calls `register_mcp_tools` once, after the legacy tools are retired and live authorities validate. It replaces the `register_intent_surface` verb loop. The MCP Apps launchers stay registered. An attachment failure aborts startup. Refusals: `RuntimeError('MCP surface must be empty and unbound before registration')` when the surface is not empty. Evidence: none. Writes: none. Depends: ARBORA-OPS-R035.1. Caller chain: `arbora/mcp_server/server.py:208` (`mcp_server`) -> `runtime._build_server` (`runtime.py:760`) -> `_register_served_intent_surface` (`runtime.py:964`) -> `register_intent_surface` (`arbora/api/mcp/serving.py:29`); `register_mcp_tools` (`arbora/api/mcp/registration.py:233`) has no production caller yet, only tests. Shape: Replace the verb loop of `register_intent_surface` by one awaited `register_mcp_tools(mcp, multiplexer, binding)` call after `_attach_fleet_runtime` (`server.py:122`, used at `:292`); the middleware and `_require_unbound_surface` already exist. | Test: `tests/api/test_resident_tool_surface.py::test_running_server_lists_exactly_the_resident_tools` (L3). It boots the server and lists tools over MCP, then asserts the middleware denies nothing.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R036
Pre-dispatch audit reservation for governed effects
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Pre-dispatch audit reservation for governed effects.** Before any governed write or admin effect, Arbora reserves a tenant-scoped, idempotent pending audit record through the engine's audit-append operation using verified service claims, links the eventual outcome back to that reservation, and refuses dispatch when the operation has no declared audit class or the durable audit writer is unavailable. Caller chain: `arbora/api/http/app.py:209` (`/ops/{op.id}` route via `make_endpoint`, `arbora/api/http/routes.py:122`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/pipeline.py:782` (`_audit_preflight`) -> `services.audit_preflight` bound at `arbora/api/invoke/bootstrap.py:334` -> `arbora/api/invoke/eg_audit.py:22` (`EgAuditAdapter`). Shape: `EgAuditAdapter` appends the pending record through the engine and links the outcome (`_outcome_linked`, line 175); `audit_event` in `arbora/api/invoke/audit.py:13` builds events; `AuditClass.NONE` refuses dispatch. | Integration tests confirm a missing audit class or unreachable audit writer blocks dispatch and that a completed effect links to its reservation. Test: `tests/api/test_invoke_contract.py::test_audit_reservation_failure_prevents_dispatch`.
requirementARBORA-OPSVERIFIED4016e049e45e
a9025191159e
tests/api/test_api_registry.py:189
tests/api/test_invoke_contract.py:240
tests/api/test_invoke_contract.py:481
tests/api/test_invoke_governance.py:443
ARBORA-OPS-R037
Native first-party A2A facade
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Native first-party A2A facade.** Arbora exposes a first-party, natively hosted A2A facade rather than proxying through an external bridge, serving card, send, get, list, and cancel operations directly from its own server process. Caller chain: `arbora/a2a/composition.py:42` -> `arbora/a2a/application.py:513` (`create_a2a_application`) -> `_invoke_method` (`:262`) handling `message/send`, `tasks/get`, `tasks/list`, `tasks/cancel` -> `A2AService` (`arbora/a2a/service.py`). Shape: FastAPI app built in `arbora/a2a/application.py` over `A2AService` and `A2AAuthenticator`; the agent card is served by `_agent_card_request` (`:463`); no external bridge. | Integration tests exercise the native A2A endpoints without any external bridge dependency. Test: `tests/a2a/test_application.py::test_json_rpc_unary_methods_use_typed_shared_contract`.
requirementARBORA-OPSVERIFIED20f773df9ddd
d53165c2e72c
tests/a2a/test_application.py:66
tests/a2a/test_application.py:88
ARBORA-OPS-R038
Generated OpenAPI served through Swagger UI
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Generated OpenAPI served through Swagger UI.** Arbora generates an OpenAPI document from its operation registry and serves it through a browsable Swagger UI page. Caller chain: `arbora/api/http/app.py:181` (`openapi_route`, `/openapi.json`) and `:195` (`swagger_ui_route`, `/docs`) in `create_api_application` (`:58`). Shape: `arbora/api/http/openapi.py:17` (`document`) projects the caller-visible registry ops into an OpenAPI 3.1 document stamped with the registry digest; Swagger UI page via FastAPI `get_swagger_ui_html`. | An integration test confirms the served OpenAPI document matches the generated registry and renders through the Swagger UI endpoint. Test: `tests/api/test_http_projection.py::test_swagger_ui_renders_the_mounted_caller_filtered_openapi_document`.
requirementARBORA-OPSVERIFIED1fb96633563e
67987a735927
df02d933ffd9
ea736715b7fb
f13ce20b05dc
tests/api/test_http_projection.py:162
ARBORA-OPS-R039
Dashboard route parity (replaces MERISTEM-BOUNDARY-R001.2, commit 0eb67c99c)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Dashboard route parity (replaces MERISTEM-BOUNDARY-R001.2, commit 0eb67c99c).** Subsystem: arbora gateway REST. Every route of the removed dashboard router is served by `dashboard_router` in `arbora/gateway/dashboard_api.py`, mounted by `register_dashboard_routes`. Caller: `register_graph_routes` in `arbora/gateway/graph_api.py` → `register_dashboard_routes` → the route function. Routes exist today. This row adds proof and removes the unserved stubs. Children: `.1` route census, `.2` write capability, `.3` health, `.4` input refusals. Also `.5` daemon keys, `.6` shard topology, `.7` hydration, `.8` widgets and `.9` capability resolver. The dashboard REST routes mount only for authentication modes that keep `application_composer`. In `eg` mode the registry operations carry the same data. Depends: ARBORA-HOST-R019. | Root L3 journey: `tests/gateway/test_dashboard_route_census.py::test_dashboard_router_exposes_every_route` (L2) plus the child tests.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.1
Dashboard route census
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Dashboard route census.** Stage: arbora gateway REST. Caller: `register_dashboard_routes` → `dashboard_router` in `arbora/gateway/dashboard_api.py`. Code: new `tests/gateway/test_dashboard_route_census.py`. Rule: the test pins the exact set of method and path pairs of `dashboard_router`. GET and PUT `/layout`. GET `/data`, `/data/{service_id}`, `/full`, `/data-subset`, `/widgets`, `/health`, `/readiness`, `/discover`, `/daemon/status`, `/daemon/shards`, `/hydration-status`. POST `/daemon/start`, `/hydrate`, `/hydrate/{source}`. That is 16 pairs, plus the `/ws/dashboard` socket. Refusals: none. Evidence: none. Writes: none. Depends: none. Caller chain: `arbora/gateway/graph_api.py:317-319` imports and calls `register_dashboard_routes` -> `arbora/gateway/dashboard_api.py:402` mounts `dashboard_router` (`:102`) under `/api/dashboard` plus `/ws/dashboard`. Shape: New `tests/gateway/test_dashboard_route_census.py` reading `dashboard_router.routes` method and path pairs and comparing them to a pinned set; no production change. | Test: `tests/gateway/test_dashboard_route_census.py::test_dashboard_router_exposes_every_route` (L2). It fails when a pair is removed or added without editing the pinned set.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.2
Dashboard write capability
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Dashboard write capability.** Stage: arbora gateway REST. Caller: `PUT /api/dashboard/layout`, `POST /daemon/start`, `/hydrate` and `/hydrate/{source}` → `_require_dashboard_write` in `arbora/gateway/dashboard_api.py`. Rule: a caller holding only a read capability (`gateway:read`) gets HTTP 403 with detail `dashboard write capability required`. A caller with `gateway:write`, `gateway:admin` or `admin` passes. An API-key caller passes, as `_dashboard_capabilities` returns `None` for it. Refusals: 403. Evidence: none. Writes: none. Depends: ARBORA-OPS-R039.1. Caller chain: `PUT /api/dashboard/layout` (`arbora/gateway/dashboard_api.py:138` `save_layout`), `POST /api/dashboard/daemon/start` (`arbora/gateway/dashboard_api.py:266`), `POST /api/dashboard/hydrate` (`arbora/gateway/dashboard_api.py:305`) and `POST /api/dashboard/hydrate/{source}` (`arbora/gateway/dashboard_api.py:285`) -> `arbora/gateway/dashboard_api.py:94` `_require_dashboard_write` -> `arbora/gateway/dashboard_api.py:64` `_dashboard_capabilities`, mounted by `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`). Shape: One in-function check in `arbora/gateway/dashboard_api.py` over the `_WRITE_CAPABILITIES` frozenset (line 61) and the shared `_dashboard_capabilities` helper that also backs `_require_dashboard_read`; no new type. | Test: `tests/gateway/test_dashboard_api.py::test_write_routes_refuse_read_only_callers` (L3). It asserts 403 on four routes for a read caller and success for an API-key caller.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.3
Add one test in tests/gateway/test_dashboard_api.py asserting GET /health returns 200 without a capability and sets Cache-Control no-store. Caller chain: `GET /api/dashboard/health` (`arbora/gateway/dashboard_api.py:207` `health_check`), served by `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`); `arbora/gateway/dashboard_api.py:86` `_require_dashboard_read` returns early for paths ending in `/health`. Shape: Existing route in `arbora/gateway/dashboard_api.py` returning `JSONResponse` with header `Cache-Control: no-store` from `collect_health_async` in `arbora/observability/runtime_health.py`; nothing new beyond the test
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
Add one test in tests/gateway/test_dashboard_api.py asserting GET /health returns 200 without a capability and sets Cache-Control no-store. Caller chain: `GET /api/dashboard/health` (`arbora/gateway/dashboard_api.py:207` `health_check`), served by `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`); `arbora/gateway/dashboard_api.py:86` `_require_dashboard_read` returns early for paths ending in `/health`. Shape: Existing route in `arbora/gateway/dashboard_api.py` returning `JSONResponse` with header `Cache-Control: no-store` from `collect_health_async` in `arbora/observability/runtime_health.py`; nothing new beyond the test. | The test passes. Test: `tests/gateway/test_dashboard_api.py::test_health_is_served_without_capabilities`.
requirementARBORA-OPSVERIFIED527856a2832b
tests/gateway/test_dashboard_api.py:99
ARBORA-OPS-R039.4
Dashboard input refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Dashboard input refusals.** Stage: arbora gateway REST. Caller: `POST /api/dashboard/hydrate/{source}` and `GET /api/dashboard/data/{service_id}`. Rule: a source that does not match `_HYDRATION_SOURCE_RE` returns HTTP 422 with detail `invalid hydration source` before any engine access. An unknown `service_id` returns HTTP 404. Refusals: 422, 404. Evidence: none. Writes: none. Depends: ARBORA-OPS-R039.2. Caller chain: `POST /api/dashboard/hydrate/{source}` (`arbora/gateway/dashboard_api.py:285` `trigger_hydration`, regex check at `arbora/gateway/dashboard_api.py:289`) and `GET /api/dashboard/data/{service_id}` (`arbora/gateway/dashboard_api.py:152` `get_service_data`), mounted by `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`). Shape: `_HYDRATION_SOURCE_RE` (`arbora/gateway/dashboard_api.py:53`) checked with `fullmatch` before `_active_engine`; `get_service_data` raises HTTP 404 through the existing aggregator lookup; no new type. | Test: `tests/gateway/test_dashboard_api.py::test_malformed_source_is_422_and_unknown_service_is_404` (L3). It asserts both codes and zero engine calls on the 422.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.5
Daemon status key set
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Daemon status key set.** Stage: arbora gateway REST. Caller: `GET /api/dashboard/daemon/status` and `POST /daemon/start` → `daemon_status` in `arbora/gateway/daemon.py`. Rule: with no engine installed the body holds exactly `running` (false) and `role`. With an engine it holds the `unified_daemon_status()` result, which must include `running`, `role`, `threads`, `jobs` and `queue_depth`. The test pins both key sets with a stub engine. Refusals: none. Evidence: none. Writes: none. Depends: ARBORA-OPS-R039.1. Caller chain: `GET /api/dashboard/daemon/status` (`arbora/gateway/dashboard_api.py:252` `daemon_status`) and `POST /api/dashboard/daemon/start` (`arbora/gateway/dashboard_api.py:266`) -> `arbora/gateway/daemon.py:268` `daemon_status`. Shape: One function in `arbora/gateway/daemon.py` that returns `{running, role}` without an engine and otherwise the engine's `unified_daemon_status()` dict; the route wrapper in `arbora/gateway/dashboard_api.py` adds nothing. | Test: `tests/gateway/test_dashboard_api.py::test_daemon_status_key_sets_are_pinned` (L2). It fails when any of the five keys is dropped.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.6
Shard topology from the engine
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Shard topology from the engine.** Stage: arbora gateway REST. Caller: `GET /api/dashboard/daemon/shards` → `daemon_shards` in `arbora/gateway/dashboard_api.py`. Today `daemon_shards` raises `not_served('knowledge_graph.core.shard_topology', 'MEDULLA-PLACEMENT-R611')`. Code: replace it with the cluster-discovery call of MEDULLA-PLACEMENT-R611.2 on the engine returned by `gateway_application().engine()` in `arbora/gateway/ports.py`. Rule: return the engine's member list and per-shard reachability unchanged, with the snapshot epoch. Arbora computes no route. Refusals: HTTP 503 with `UNAVAILABLE` when the engine client lacks the method or no engine is installed. The engine `PLACEMENT_STALE` maps to 409. Evidence: none. Writes: none. Depends: MEDULLA-PLACEMENT-R611.3, ARBORA-HOST-R002. Caller chain: `GET /api/dashboard/daemon/shards` (`arbora/gateway/dashboard_api.py:260` `daemon_shards`) -> `gateway_application().engine()` (`arbora/gateway/ports.py:22` `GatewayApplicationPort`, accessor at line 53); today the handler raises `not_served`. Shape: Replace the `not_served` body of `daemon_shards` in `arbora/gateway/dashboard_api.py` with one call on the port's engine adapter and map its typed refusals to HTTP 503/409; no cluster logic in arbora, reusing `public_error_payload` already imported there. | Test: `tests/gateway/test_dashboard_api.py::test_daemon_shards_reads_engine_snapshot_and_refuses_when_absent` (L3). It asserts the snapshot body, both refusals and no import of `knowledge_graph` modules.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.7
Hydration through served ingest
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hydration through served ingest.** Stage: arbora gateway REST. Caller: `POST /api/dashboard/hydrate`, `/hydrate/{source}` and `GET /hydration-status` → `trigger_all_hydration`, `trigger_hydration`, `get_hydration_status`. Today `_active_engine` and `_hydration_manager` raise `not_served`. Code: replace both with calls to the served operations `ingest.sources.sync` and `ingest.sources.status` (ARBORA-OPS-R020.6) through `gateway_application().execute_tool` in `arbora/gateway/ports.py`. Rule: keep HTTP 500 for no engine, 400 for `ValueError`, 422 for a malformed source (ARBORA-OPS-R039.4). The status body keeps one entry per source with `configured` and `last_job_id`. Refusals: those three codes. Evidence: the sync receipt job identifier. Writes: through `ingest.sources.sync` only. Depends: ARBORA-OPS-R020.6, ARBORA-OPS-R039.4. Caller chain: `POST /api/dashboard/hydrate` (`arbora/gateway/dashboard_api.py:305` `trigger_all_hydration`), `POST /api/dashboard/hydrate/{source}` (`arbora/gateway/dashboard_api.py:285` `trigger_hydration`) and `GET /api/dashboard/hydration-status` (`arbora/gateway/dashboard_api.py:318` `get_hydration_status`) -> `_active_engine` (`arbora/gateway/dashboard_api.py:277`) / `_hydration_manager` (`arbora/gateway/dashboard_api.py:281`), both of which currently raise `not_served`. Shape: Rewrite the two helpers in `arbora/gateway/dashboard_api.py` to call `gateway_application().execute_tool` (`arbora/gateway/ports.py:22`) with the served `ingest.sources.sync` and `ingest.sources.status` operations, keeping the existing 500/400/422 mapping via `public_error_payload`. | Test: `tests/gateway/test_dashboard_api.py::test_hydration_routes_call_served_ingest_and_keep_refusal_codes` (L3). It asserts the job identifier, the three refusal codes and the status shape.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R039.8
Add one test in tests/gateway/test_registry.py asserting GET /widgets returns every widget type of the deleted registry module map except `genius_agent`, with the same field set. Caller chain: `GET /api/dashboard/widgets` (`arbora/gateway/dashboard_api.py:190` `list_available_widgets`) -> `get_registry().discover_all()` (`arbora/gateway/registry.py:201`) over `_BUILTIN_WIDGETS` (`arbora/gateway/registry.py:24`). Shape: Existing route in `arbora/gateway/dashboard_api.py` projecting each registration to `WidgetListItem` (six fields); the row only adds a pinned-list test, no new code
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
Add one test in tests/gateway/test_registry.py asserting GET /widgets returns every widget type of the deleted registry module map except `genius_agent`, with the same field set. Caller chain: `GET /api/dashboard/widgets` (`arbora/gateway/dashboard_api.py:190` `list_available_widgets`) -> `get_registry().discover_all()` (`arbora/gateway/registry.py:201`) over `_BUILTIN_WIDGETS` (`arbora/gateway/registry.py:24`). Shape: Existing route in `arbora/gateway/dashboard_api.py` projecting each registration to `WidgetListItem` (six fields); the row only adds a pinned-list test, no new code. | The test passes against the list recorded in the test. Test: `tests/gateway/test_registry.py::test_widgets_route_serves_every_builtin_widget_type`.
requirementARBORA-OPSVERIFIEDbb8060f1c1bf
tests/gateway/test_registry.py:40
ARBORA-OPS-R039.9
Replace the `agent_utilities.core.config` and `agent_utilities.security.identity` imports in `_dashboard_capabilities` in arbora/gateway/dashboard_api.py with a public `agent_utilities.api` capability resolver. Cross-repo prerequisite (owner: meristem): export it under `MERISTEM-BOUNDARY-R013`. Caller chain: dashboard routes → `_require_dashboard_read` or `_require_dashboard_write` in `arbora/gateway/dashboard_api.py` → `_dashboard_capabilities(request)` → `base_capabilities(normalize_identity(claims), ...)` from `arbora/security/identity.py` with `runtime_config.identity_group_capability_map`; the planned `agent_utilities.api` resolver call is not in the code. Shape: `_dashboard_capabilities(request) -> set[str]
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
Replace the `agent_utilities.core.config` and `agent_utilities.security.identity` imports in `_dashboard_capabilities` in arbora/gateway/dashboard_api.py with a public `agent_utilities.api` capability resolver. Cross-repo prerequisite (owner: meristem): export it under `MERISTEM-BOUNDARY-R013`. Caller chain: dashboard routes → `_require_dashboard_read` or `_require_dashboard_write` in `arbora/gateway/dashboard_api.py` → `_dashboard_capabilities(request)` → `base_capabilities(normalize_identity(claims), ...)` from `arbora/security/identity.py` with `runtime_config.identity_group_capability_map`; the planned `agent_utilities.api` resolver call is not in the code. Shape: `_dashboard_capabilities(request) -> set[str] | None` in `arbora/gateway/dashboard_api.py`, which today imports `arbora.core.settings` and `arbora.security.identity` lazily and raises 403 on any failure. | Test: `tests/gateway/test_dashboard_api.py::test_capabilities_use_public_resolver_and_403_unchanged` (new test in the existing file). tests/gateway/test_dashboard_api.py: 403 cases unchanged; an import census shows no Meristem-internal import.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040
Live Artifacts routes (replaces MERISTEM-BOUNDARY-R001.3, commit 902f906ca)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Live Artifacts routes (replaces MERISTEM-BOUNDARY-R001.3, commit 902f906ca).** arbora serves create, get and refresh for Live Artifacts over the meristem store. To build. | The artifact tests below pass and the routes are mounted by the host.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.1
Cross-repo prerequisite (owner: meristem)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Cross-repo prerequisite (owner: meristem).** Export the Live Artifact store getter, artifact model, refresh service and bounded-JSON error through a public meristem.api module. Caller chain: Cross-repo, no arbora entry point: the names are consumed by `register_artifact_routes` in `arbora/gateway/artifacts_api.py` (to be written), mounted from `register_graph_routes` (`arbora/gateway/graph_api.py:196`); the exports live in the meristem repo's public `api` module. Shape: Re-export the existing Live Artifact store getter, artifact model, refresh service and bounded-JSON error from one public meristem module; no new behaviour and no arbora file changes in this row. | An meristem test imports each name from the public module. Planned test: `tests/api/test_public_artifact_exports.py::test_public_module_exports_artifact_names`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.2
Create-artifact request model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Create-artifact request model.** Stage: arbora gateway REST. Caller: `POST /api/artifacts` → `create_artifact` → `CreateArtifactRequest`. Code: new `arbora/gateway/artifacts_api.py` with Pydantic `CreateArtifactRequest{template: str, data: dict, title: str or None}`. Rule: `template` is 1 to 262144 characters after trimming. The serialized `data` is at most 262144 bytes. Both limits are configuration keys `artifacts.max_template_chars` and `artifacts.max_data_bytes` in `~/.config/arbora/config.json`, bounds `[1024, 4194304]`. Refusals: HTTP 422 for an empty template or oversize data. Evidence: none. Writes: none. Depends: ARBORA-OPS-R040.1. Caller chain: `POST /api/artifacts` -> `create_artifact` in `arbora/gateway/artifacts_api.py` (to be written, mounted by `register_graph_routes` at `arbora/gateway/graph_api.py:196`) -> `CreateArtifactRequest` body validation by FastAPI. Shape: New Pydantic model in `arbora/gateway/artifacts_api.py` with `Field` length limits; limits read via the existing `~/.config/arbora/config.json` runtime settings in `arbora/core/settings.py` (`runtime_config`), as `_dashboard_capabilities` does at `arbora/gateway/dashboard_api.py:64`. | Test: `tests/gateway/test_artifacts_api.py::test_create_request_rejects_empty_template_and_oversize_data` (L1). Verified by the route test `test_create_and_refusal_cases`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.3
Artifact store and refresh ports
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Artifact store and refresh ports.** Stage: arbora gateway REST. Code: add `ArtifactStorePort`, `ArtifactRefreshPort` and the callable type `ArtifactResolver = Callable[[dict], Awaitable[dict]]` to `arbora/gateway/ports.py`, all `runtime_checkable` `Protocol` classes. `ArtifactStorePort` has `create`, `get`. `ArtifactRefreshPort` has `refresh`. The production implementations are the exports of ARBORA-OPS-R040.1. Arbora imports no other store module. Refusals: none. Evidence: none. Writes: none. Depends: ARBORA-OPS-R040.1. Caller chain: `register_artifact_routes` in `arbora/gateway/artifacts_api.py` (to be written) -> the ports in `arbora/gateway/ports.py` (existing `GatewayApplicationPort` at line 22, `configure_gateway_application` at line 44), configured at the composition root. Shape: Add three declarations beside `GatewayApplicationPort` in `arbora/gateway/ports.py`, using the same `@runtime_checkable` `Protocol` pattern and `__all__` export list; production adapters come from the meristem exports. | Test: `tests/gateway/test_ports.py::test_artifact_ports_are_runtime_protocols` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.4
Create artifact route
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Create artifact route.** Stage: arbora gateway REST. Caller: `POST /api/artifacts` → `create_artifact` in `arbora/gateway/artifacts_api.py` → `ArtifactStorePort.create` and `ArtifactRefreshPort.refresh`. Rule: validate with `CreateArtifactRequest`, create the artifact, render it once, and return `{id, rendered}` with HTTP 201. Refusals: HTTP 400 when the store raises the bounded-JSON error exported by ARBORA-OPS-R040.1; 422 for model failures. Evidence: none. Writes: one artifact record through the store. Depends: ARBORA-OPS-R040.2, ARBORA-OPS-R040.3, ARBORA-OPS-R040.7. Caller chain: `POST /api/artifacts` -> `create_artifact` in `arbora/gateway/artifacts_api.py` (to be written) -> `ArtifactStorePort.create` and `ArtifactRefreshPort.refresh` in `arbora/gateway/ports.py`; mounted from `register_graph_routes` (`arbora/gateway/graph_api.py:196`). Shape: One async route function in `arbora/gateway/artifacts_api.py` using `CreateArtifactRequest` and `public_error_payload` for the HTTP 400/422 bodies, the same error helper used in `arbora/gateway/dashboard_api.py:285`. | Test: `tests/gateway/test_artifacts_api.py::test_create_returns_id_and_rendered_and_refuses_bounded_json_error` (L3). It asserts 201, 400 and 422.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.5
Get artifact route
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Get artifact route.** Stage: arbora gateway REST. Caller: `GET /api/artifacts/{artifact_id}` → `get_artifact` in `arbora/gateway/artifacts_api.py` → `ArtifactStorePort.get`. Rule: return the stored artifact with its latest rendered output. Refusals: HTTP 404 when the identifier is absent. Evidence: none. Writes: none. Depends: ARBORA-OPS-R040.3, ARBORA-OPS-R040.7. Caller chain: `GET /api/artifacts/{artifact_id}` -> `get_artifact` in `arbora/gateway/artifacts_api.py` (to be written) -> `ArtifactStorePort.get`; mounted from `register_graph_routes` (`arbora/gateway/graph_api.py:196`). Shape: One async route function in `arbora/gateway/artifacts_api.py` that raises `HTTPException(404)` on absence, mirroring `get_service_data` at `arbora/gateway/dashboard_api.py:152`. | Test: `tests/gateway/test_artifacts_api.py::test_get_returns_artifact_and_404_when_absent` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.6
Refresh artifact route
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Refresh artifact route.** Stage: arbora gateway REST. Caller: `POST /api/artifacts/{artifact_id}/refresh` → `refresh_artifact` in `arbora/gateway/artifacts_api.py` → `ArtifactRefreshPort.refresh`. Rule: the body holds optional inline `data`. Without it the route calls the resolver of ARBORA-OPS-R040.8. A failed refresh keeps the prior rendered output and returns HTTP 502. Refusals: HTTP 404 when absent; 502 on refresh failure with the prior render intact. Evidence: none. Writes: the new render only on success. Depends: ARBORA-OPS-R040.3, ARBORA-OPS-R040.7. Caller chain: `POST /api/artifacts/{artifact_id}/refresh` -> `refresh_artifact` in `arbora/gateway/artifacts_api.py` (to be written) -> `ArtifactRefreshPort.refresh`; mounted from `register_graph_routes` (`arbora/gateway/graph_api.py:196`). Shape: One async route function in `arbora/gateway/artifacts_api.py` taking an optional inline-data body model and mapping a refresh exception to HTTP 502 without touching the stored render. | Test: `tests/gateway/test_artifacts_api.py::test_refresh_inline_resolver_404_and_failure_preserves_render` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.7
Mount the artifact routes
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Mount the artifact routes.** Stage: arbora gateway REST. Caller: `register_graph_routes` in `arbora/gateway/graph_api.py` → `register_artifact_routes(app, prefix, resolver)` in `arbora/gateway/artifacts_api.py`. Code: call it beside `register_schema_context_routes`. Reuse `_require_dashboard_read` on GET and `_require_dashboard_write` on POST from `arbora/gateway/dashboard_api.py`. These check gateway capabilities, not engine scopes. Rule: the routes mount in authentication modes that keep `application_composer`. In `eg` mode they do not mount; ARBORA-OPS-R881 serves the same behaviour as registry operations. Refusals: 403 from the capability checks. Evidence: none. Writes: none. Depends: ARBORA-OPS-R040.3. Caller chain: `register_graph_routes` (`arbora/gateway/graph_api.py:196`) -> `register_artifact_routes(app, prefix, resolver)` in `arbora/gateway/artifacts_api.py` (to be written), called beside `register_schema_context_routes` (`arbora/gateway/graph_api.py:295-297`). Shape: One new `register_*_routes` function in `arbora/gateway/artifacts_api.py` following `register_schema_context_routes` in `arbora/gateway/schema_context_api.py`, with `Depends(_require_dashboard_read)` / `Depends(_require_dashboard_write)` imported from `arbora/gateway/dashboard_api.py` (lines 86 and 94). | Test: `tests/gateway/test_artifacts_route_mount.py::test_routes_mount_with_capability_dependencies` (L3). It asserts the three routes and the 403 cases.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.8
Wire the source resolver
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wire the source resolver.** Stage: arbora gateway REST. Caller: `register_artifact_routes` → `refresh_artifact`. Code: `register_graph_routes` passes the `kg_source_resolver` exported under ARBORA-OPS-R040.1 as the resolver argument. Arbora holds no re-derivation of `source_query`. Rule: when the export is absent, the default resolver returns the prior data unchanged and the route reports `resolver: preserved`. Refusals: none added. Evidence: the response names the resolver used. Writes: none. Depends: ARBORA-OPS-R040.1, ARBORA-OPS-R040.6. Caller chain: `register_graph_routes` (`arbora/gateway/graph_api.py:196`) -> `register_artifact_routes` -> `refresh_artifact` in `arbora/gateway/artifacts_api.py` (to be written). Shape: `register_graph_routes` passes the meristem-exported resolver as the `resolver` argument; `arbora/gateway/artifacts_api.py` supplies a default coroutine returning the prior data, typed `ArtifactResolver` in `arbora/gateway/ports.py`. | Test: `tests/gateway/test_artifacts_api.py::test_refresh_uses_the_exported_resolver_and_defaults_to_preserve` (L3). It uses a fake resolver and the default.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.9
Cross-repo prerequisite (owner: meristem): add the proposed `MERISTEM-BOUNDARY-R013.<n>` row of plan.md D4 to specs/au-boundary-deconstruction/requirements.md. It is the concrete form of ARBORA-OPS-R040.1. Caller chain: Cross-repo specification change, no runtime entry point: edit `specs/au-boundary-deconstruction/requirements.md` in the meristem repo; consumed by the artifact routes registered from `register_graph_routes` (`arbora/gateway/graph_api.py:196`). Shape: Append one requirement row to the meristem boundary spec table, following its existing row format, and cite it from ARBORA-OPS-R040.1; documentation only
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
Cross-repo prerequisite (owner: meristem): add the proposed `MERISTEM-BOUNDARY-R013.<n>` row of plan.md D4 to specs/au-boundary-deconstruction/requirements.md. It is the concrete form of ARBORA-OPS-R040.1. Caller chain: Cross-repo specification change, no runtime entry point: edit `specs/au-boundary-deconstruction/requirements.md` in the meristem repo; consumed by the artifact routes registered from `register_graph_routes` (`arbora/gateway/graph_api.py:196`). Shape: Append one requirement row to the meristem boundary spec table, following its existing row format, and cite it from ARBORA-OPS-R040.1; documentation only. | The meristem row exists and ARBORA-OPS-R040.1 cites its ID. Test (planned): `tests/spec/test_boundary_row_cited.py::test_r040_1_cites_the_meristem_boundary_row`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R040.10
Artifact route capability matrix
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Artifact route capability matrix.** Stage: arbora gateway REST. Caller: the three artifact routes → `_require_dashboard_read` and `_require_dashboard_write`. Rule: a caller without `gateway:read` gets HTTP 403 on GET. A caller with only `gateway:read` gets 403 on both POST routes. An API-key caller passes on all three. Refusals: 403. Evidence: none. Writes: none. Depends: ARBORA-OPS-R040.7. Caller chain: `GET /api/artifacts/{artifact_id}`, `POST /api/artifacts`, `POST /api/artifacts/{artifact_id}/refresh` in `arbora/gateway/artifacts_api.py` (to be written) -> `arbora/gateway/dashboard_api.py:86` `_require_dashboard_read` and `arbora/gateway/dashboard_api.py:94` `_require_dashboard_write`. Shape: No new code: the matrix is the behaviour of the two existing dependency functions in `arbora/gateway/dashboard_api.py` (`_READ_CAPABILITIES`, `_WRITE_CAPABILITIES`) once mounted on the artifact routes. | Test: `tests/gateway/test_artifacts_route_mount.py::test_capability_matrix_on_artifact_routes` (L3). It asserts the 403 cases and the API-key pass.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R041
Agent summary widget dropped (replaces MERISTEM-BOUNDARY-R001.7, commit 7717d2e62)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Agent summary widget dropped (replaces MERISTEM-BOUNDARY-R001.7, commit 7717d2e62).** The widget is intentionally not carried over because it returned constant data. | The gate test passes.
requirementARBORA-OPSVERIFIED54771db54918
tests/gateway/test_registry.py:31
ARBORA-OPS-R041.1
Add one test in tests/gateway/test_registry.py asserting genius_agent is absent from the widget registry and no fixed-value widget is registered. Caller chain: `GET /api/dashboard/widgets` (`arbora/gateway/dashboard_api.py:190` `list_available_widgets`) -> `get_registry().discover_all()` (`arbora/gateway/registry.py:201`) over `_BUILTIN_WIDGETS` (`arbora/gateway/registry.py:24`). Shape: Existing registry map in `arbora/gateway/registry.py` simply omits the `genius_agent` and `agent_summary` types; the row adds a regression test, no new code
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
Add one test in tests/gateway/test_registry.py asserting genius_agent is absent from the widget registry and no fixed-value widget is registered. Caller chain: `GET /api/dashboard/widgets` (`arbora/gateway/dashboard_api.py:190` `list_available_widgets`) -> `get_registry().discover_all()` (`arbora/gateway/registry.py:201`) over `_BUILTIN_WIDGETS` (`arbora/gateway/registry.py:24`). Shape: Existing registry map in `arbora/gateway/registry.py` simply omits the `genius_agent` and `agent_summary` types; the row adds a regression test, no new code. | The test passes. Test: `tests/gateway/test_registry.py::test_genius_agent_is_absent_from_the_widget_registry`.
requirementARBORA-OPSVERIFIED54771db54918
tests/gateway/test_registry.py:31
ARBORA-OPS-R042
Served operations screen untrusted content and redact secrets (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served operations screen untrusted content and redact secrets (rollup).** Subsystem: arbora invoke pipeline. The host screens open-web content before a run reads it and redacts secrets from each response. Caller: `POST /api/v1/ops/{op_id}` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `screen_result` and `redact_result` in `arbora/api/invoke/screening.py`. Children: `.1` model, `.2` default rules and redactor, `.3` wiring, `.4` refusals, `.5` evidence, `.6` hot-path proof. Depends: ARBORA-OPS-R009, ARBORA-OPS-R010. | Root L3 journey: `tests/gateway/test_content_screening_hot_path.py::test_served_route_quarantines_hidden_instructions_and_masks_secrets` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R042.1
Screening model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Screening model.** Stage: arbora invoke pipeline. Code: new `arbora/api/invoke/screening.py`. `ContentScreenVerdict` is a `StrEnum` with `clean`, `flagged`, `quarantined`. `ScreenFinding{attack_class, start, end, rule_id}` is frozen, with `attack_class` one of `perception`, `reasoning`, `memory`, `action`, `multi_agent`, `overseer`. `ContentOrigin` is a `StrEnum` with `trusted`, `open_web`. Add field `content_origin: ContentOrigin = trusted` to `OpSpec` in `arbora/api/registry/spec.py`. The registry digest includes it. Mark `research.web` (ARBORA-OPS-R067) as `open_web`. Refusals: `INVALID_ARGUMENT` for an unknown value. Evidence: none. Writes: none. Depends: none. Caller chain: New module `arbora/api/invoke/screening.py`, imported by `_effect` (`arbora/api/invoke/pipeline.py:258`) which `invoke` (`arbora/api/invoke/pipeline.py:1021`) runs for every call from `make_endpoint` (`arbora/api/http/routes.py:122`); the `content_origin` field is read from `OpSpec` (`arbora/api/registry/spec.py:124`). Shape: New frozen Pydantic models and two `StrEnum` classes in `arbora/api/invoke/screening.py`; `OpSpec` in `arbora/api/registry/spec.py` gains one defaulted field and `research.web` in `arbora/api/ops/research.py` sets it. | Test: `tests/api/test_content_screening.py::test_closed_value_sets_and_opspec_origin` (L1). Verified by the root slice test.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R042.2
Default screen rules and output redactor
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Default screen rules and output redactor.** Stage: arbora invoke pipeline. Code: `arbora/api/invoke/screening.py` holds `default_screen_rules` and `default_output_redactor`, both registered by name in a `ScreenRegistry`. Rule: one default rule per attack class. Each matches hidden text (zero-width characters, CSS-hidden elements, HTML comments), rendered text instructions, or markup-embedded instructions aimed at that class. Findings in `memory`, `action`, `multi_agent` and `overseer` are `Fixed` quarantine classes. `perception` and `reasoning` findings are flagged and their spans removed. The redactor replaces these with `[REDACTED]`: bearer tokens, `sk-` style keys, cloud access keys and private-key blocks. It also masks values under keys named `password`, `secret` or `token`. Configuration: `content_screen.rules` and `content_screen.redactor` names in `~/.config/arbora/config.json`, defaults the two default names; `content_screen.max_scan_bytes` default 1048576, bounds `[4096, 16777216]`. Refusals: content above the scan limit is quarantined. Evidence: findings. Writes: none. Depends: ARBORA-OPS-R042.1. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `_effect` (`arbora/api/invoke/pipeline.py:258`) -> `screen_result` / `redact_result` in `arbora/api/invoke/screening.py` (to be written), selected by name from `ScreenRegistry`. Shape: Pure-function default rules and redactor in `arbora/api/invoke/screening.py`, registered by name; reuse the existing secret patterns of `arbora/security/log_redaction.py` where they match. | Test: `tests/api/test_content_screening.py::test_each_attack_class_and_masked_secret` (L1). It plants one case per class and one secret per pattern.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R042.3
Screening wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Screening wiring.** Stage: arbora invoke pipeline. Caller: `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py`. Code: `_effect` in `arbora/api/invoke/pipeline.py` calls `screen_result` on the result of an `open_web` operation before it returns. It calls `redact_result` on every result. For `memory.write` with `content_origin` set to `open_web` in its params, `invoke` calls `screen_params` before the effect. This row creates both call sites. Order: authority, screen of params, effect, screen of result, redaction, audit. Refusals: see ARBORA-OPS-R042.4. Evidence: see ARBORA-OPS-R042.5. Writes: none. Depends: ARBORA-OPS-R042.2. Caller chain: `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/api/invoke/pipeline.py:258` `_effect` -> `screen_result`, `redact_result` and `screen_params` in `arbora/api/invoke/screening.py` (to be written); `memory.write` is `handle_memory_write` (`arbora/api/ops/memory.py:166`). Shape: Two call sites added in the existing `invoke` / `_effect` functions of `arbora/api/invoke/pipeline.py`, with the screening functions imported from `arbora/api/invoke/screening.py`; order follows the existing authority, effect, record sequence. | Test: `tests/api/test_content_screening.py::test_invoke_calls_screen_then_redactor_in_order` (L3). It records call order through the served route.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R042.4
Screening refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Screening refusals.** Stage: arbora invoke pipeline. Code: add `CONTENT_QUARANTINED` (HTTP 422) and `UNSCREENED_MEMORY_WRITE` (HTTP 422) to `ArboraErrorCode` in `arbora/api/errors.py`. Rule: a `quarantined` verdict returns `OpResult(code='CONTENT_QUARANTINED')` with the finding classes and no content. A long-term memory write with `content_origin` `open_web` returns `UNSCREENED_MEMORY_WRITE` unless the screen ran and the verdict is `clean`. A `flagged` verdict also refuses. The body-size refusal in `_json_body_params` of `arbora/api/http/routes.py` stays HTTP 413. Evidence: see ARBORA-OPS-R042.5. Writes: none. Depends: ARBORA-OPS-R042.3. Caller chain: `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `_effect` (`arbora/api/invoke/pipeline.py:258`) returns `OpResult` with the new codes; body limit refusal at `arbora/api/http/routes.py:58` `_json_body_params` (413, lines 68 and 72). Shape: Two new members of `ArboraErrorCode` (`arbora/api/errors.py:16`) with entries in the HTTP status map beside `POLICY_DENIED` (line 57); refusals built with the existing `OpResult` / `OpError` types. | Test: `tests/api/test_content_screening.py::test_quarantine_and_unscreened_memory_write_refuse_with_zero_effects` (L3). It asserts both codes and no memory write.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R042.5
Screening evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Screening evidence.** Stage: arbora invoke pipeline. Code: the audit record of `EgAuditAdapter` gains `screen_verdict`, `finding_classes`, `rule_ids` and `redaction_count`. Rule: the record never holds matched text or a redacted value. Evidence is written for every screened call, including refusals. Writes: the audit record only. Depends: ARBORA-OPS-R042.3. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `_record` (`arbora/api/invoke/pipeline.py:589`) -> `EgAuditAdapter` (`arbora/api/invoke/eg_audit.py:22`); screening fields supplied by `arbora/api/invoke/screening.py` (to be written). Shape: Extend the audit event built by `audit_event` in `arbora/api/invoke/audit.py` and written by `EgAuditAdapter` with four optional fields; counts and identifiers only, never matched text. | Test: `tests/api/test_content_screening.py::test_audit_holds_fields_and_no_secret_text` (L3). It asserts the four fields and the absence of the planted secret.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R042.6
Screening hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Screening hot-path proof.** Stage: arbora invoke pipeline. Entry point: `POST /api/v1/ops/research.web` over the served route in `arbora/api/http/routes.py`. The test plants hidden instructions in a recorded page and a secret in a clean response. It runs over HTTP and MCP with a loopback engine. Rule: the planted page returns `CONTENT_QUARANTINED`. The clean response returns with the secret masked. Writes: none. Depends: ARBORA-OPS-R042.3, ARBORA-OPS-R042.4, ARBORA-OPS-R067. Caller chain: `POST /api/v1/ops/research.web` -> `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/api/ops/research.py:686` `handle_research_web`. Shape: New test module only, driving the served route with a recorded page and a loopback engine, reusing the fixtures of the existing served-route tests under `tests/gateway/`. | Test: `tests/gateway/test_content_screening_hot_path.py::test_served_route_quarantines_hidden_instructions_and_masks_secrets` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050
Policy lifecycle operations that guard plans (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy lifecycle operations that guard plans (rollup).** Subsystem: arbora served operations `policy.create`, `policy.update`, `policy.retire` and the plan guard. Medulla activates policy and decides violations (MEDULLA-ORCH-VOCAB-R012.7, MEDULLA-ORCH-VOCAB-R012.8, MEDULLA-IDENTITY-R008.5). The harness only applies engine decisions. Caller: `POST /api/v1/ops/policy.create` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_policy_change` in `arbora/api/ops/policy.py`. Plan guard: `plans.run` → `_admit_native_plan_run` in `arbora/api/ops/plans.py`. Children: `.1` model, `.2` behavior, `.3` wiring, `.4` refusal, `.5` evidence, `.6` hot-path proof. ARBORA-OPS-R050.2.1 is retired into ARBORA-OPS-R071. Depends: ARBORA-OPS-R071, MEDULLA-ORCH-VOCAB-R806. | Root L3 journey: `tests/api/test_policy_plan_guard_served.py::test_policy_create_then_violating_plan_is_refused` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.1
Policy lifecycle model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy lifecycle model.** Stage: arbora served operations. Code: add to `arbora/api/ops/policy.py` the frozen Pydantic models `PolicyChange` (a `StrEnum`), `ConstitutionSource{repository, path, commit, blob_digest}` and `PolicyEntity{policy_ref, version_digest, constitution_ref, clause_digest, state}` with `state` one of `active`, `retired`. Add `constitution_ref` and `state` to `PolicyVersion` in `arbora/control_plane/policy/models.py`. Digests are SHA-256, 64 lowercase hex characters. Refusals: `INVALID_ARGUMENT` on validation failure. Evidence: none. Writes: none. Depends: none. Caller chain: `operations()` in `arbora/api/ops/policy.py:47` (policy operations registered via `get_registry`, `arbora/api/ops/registry_factory.py:16`) -> new models in the same module; `PolicyVersion` is at `arbora/control_plane/policy/models.py:203`. Shape: Frozen Pydantic models in `arbora/api/ops/policy.py` built on the `_FrozenModel` base pattern of `arbora/control_plane/policy/models.py:76`; two fields added to the existing `PolicyVersion`. | Test: `tests/api/test_policy_models.py::test_models_validate_fields_and_closed_change_set` (L1). Verified by the root slice test `tests/api/test_policy_plan_guard_served.py::test_policy_create_then_violating_plan_is_refused`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.2
Policy change behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy change behavior.** Stage: arbora served operations. Caller: `handle_policy_change` → `PolicyActivationPort.activate`. Code: `PolicyActivationPort` in `arbora/api/ops/policy.py`. Its engine adapter sends `Method::PolicyActivation` (MEDULLA-ORCH-VOCAB-R806) with the `ConstitutionSource`, the change kind and the review receipt digest produced by ARBORA-OPS-R071. Rule: arbora never reads clause text. It publishes the returned `PolicyEntity` references with `PolicyAuthority.publish` in `arbora/control_plane/policy/repository.py`. A retired policy stays resolvable by version digest. Refusals: `UNAVAILABLE` until the engine reports the method. Evidence: the entity references. Writes: policy activation in the engine. Version record through `PolicyAuthority.publish`. Depends: MEDULLA-ORCH-VOCAB-R806, ARBORA-OPS-R071, MEDULLA-ORCH-VOCAB-R004.700. | Test: `tests/api/test_policy_convert.py::test_one_entity_per_clause_with_stable_digests` (L2). It asserts one entity per clause, stable digests and retired resolution.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.3
Policy wiring and plan guard
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy wiring and plan guard.** Stage: arbora served operations and plan admission. Code: register `policy.create`, `policy.update` and `policy.retire` in `operations()` of `arbora/api/ops/policy.py` beside `handle_policy_read`, with `Confirm.PLAN` and scope `policy:write`. Add `_with_policy_activation` in `arbora/mcp_server/served_invocation.py`, called from `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`, binding `policy_activation`. Plan guard: `_admit_native_plan_run` in `arbora/api/ops/plans.py` sends the plan to engine admission. The refusal `ScopeExceedsPolicy` of MEDULLA-IDENTITY-R008.5 maps to `POLICY_DENIED`. `PolicyAuthority.authorize` has no production caller and duplicates the engine decision, so delete it in the same change. Refusals: see ARBORA-OPS-R050.4. Evidence: see ARBORA-OPS-R050.5. Writes: none here. Depends: ARBORA-OPS-R050.2, MEDULLA-IDENTITY-R008.5. Caller chain: `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/api/invoke/pipeline.py:258` `_effect` -> handlers registered in `arbora/api/ops/policy.py:47` `operations`; binders composed in `arbora/mcp_server/served_invocation.py:550` `compose_served_invocation`; plan guard at `arbora/api/ops/plans.py:613` `_admit_native_plan_run`. Shape: Three new `OpSpec` entries beside `handle_policy_read` (`arbora/api/ops/policy.py:36`), a `_with_policy_activation` binder next to `_with_ingest_runner` (`arbora/mcp_server/served_invocation.py:236`), and a mapping of the engine refusal to `POLICY_DENIED` in `plans.py`. | Test: `tests/api/test_policy_wiring.py::test_served_policy_request_reaches_engine_port_and_absent_producer_refuses` (L3). It asserts the engine call and zero effects without a producer.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.4
Policy refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy refusals.** Stage: arbora served operations. Rule: a policy change without a verified approval receipt returns `POLICY_DENIED`. A plan that violates an active policy returns `POLICY_DENIED` with the policy reference. An unreachable engine decision returns `POLICY_UNAVAILABLE` (HTTP 503). A plan never runs after a refusal. Evidence: see ARBORA-OPS-R050.5. Writes: none. Depends: ARBORA-OPS-R050.3. Caller chain: `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> handlers of `arbora/api/ops/policy.py:47` `operations`; plan run refusal in `arbora/api/ops/plans.py:613` `_admit_native_plan_run`. Shape: Reuse `ArboraErrorCode.POLICY_DENIED` and `POLICY_UNAVAILABLE` (`arbora/api/errors.py:30-31`, HTTP statuses at lines 57-58); no new code member. | Test: `tests/api/test_policy_refusal.py::test_three_refusals_have_zero_effects` (L3). It asserts each code and no plan run or policy write.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.5
Policy evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy evidence.** Stage: arbora served operations. Rule: the audit record of each policy change holds the policy reference, version digest, approval reference and outcome. Each refused plan writes the same fields. It never holds clause text. Writes: the audit record through `EgAuditAdapter`. Depends: ARBORA-OPS-R050.3. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `_record` (`arbora/api/invoke/pipeline.py:589`) -> `EgAuditAdapter` (`arbora/api/invoke/eg_audit.py:22`) for `policy.*` operations and refused `plans.run` calls. Shape: Extend the audit event of `arbora/api/invoke/audit.py` (`audit_event`) with policy reference, version digest, approval reference and outcome; digests only, no clause text. | Test: `tests/api/test_policy_evidence.py::test_audit_record_fields_for_change_and_refused_plan` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.6
Policy hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Policy hot-path proof.** Stage: arbora served operations. Entry point: `POST /api/v1/ops/policy.create`, then `plans.run` through `invoke` in `arbora/api/invoke/pipeline.py`. The test creates a policy with approval against a loopback engine, submits a violating plan, and observes `POLICY_DENIED`. A missing producer contract stays typed `UNAVAILABLE`. No local policy substitute exists. Writes: none. Depends: ARBORA-OPS-R050.3, ARBORA-OPS-R050.4. Caller chain: `POST /api/v1/ops/policy.create` -> `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/api/ops/policy.py:47` handlers; then `plans.run` -> `arbora/api/ops/plans.py:613` `_admit_native_plan_run`. Shape: New test module only, using the served-route test harness and a loopback engine already used by other `tests/api/` served tests. | Test: `tests/api/test_policy_plan_guard_served.py::test_policy_create_then_violating_plan_is_refused` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051
Scoped security-evaluation operation (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Scoped security-evaluation operation (rollup).** Subsystem: arbora served operation `security.evaluate`. Medulla holds attack, transform and scorer records and returns probe verdicts (MEDULLA-DECISION-ENGINE-R138). It selects catalog entries from the goal (MEDULLA-DECISION-ENGINE-R818). The harness executes the selected probes (MERISTEM-SCM-R006). Arbora authorizes transport, enforces scope and returns findings. Caller: `POST /api/v1/ops/security.evaluate` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_security_evaluate` in `arbora/api/ops/security_eval.py`. Children: `.1` model to `.6` hot-path proof. Depends: MEDULLA-DECISION-ENGINE-R138, MEDULLA-DECISION-ENGINE-R818. | Root L3 journey: `tests/api/test_security_evaluate_served.py::test_in_scope_target_yields_findings_and_out_of_scope_refuses` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051.1
Security evaluation model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security evaluation model.** Stage: arbora served operations. Code: new `arbora/api/ops/security_eval.py` with frozen Pydantic models `EvaluationGoal{text: str(1..4096)}`, `EvaluationCatalog{entries: tuple[CatalogEntry]}`, `EvaluationScope{target_ids: tuple[str], max_probes: int}` and `Finding{probe_id, category, verdict, evidence_ref}`. `verdict` is the closed set `resisted`, `compromised`, `inconclusive` of MEDULLA-DECISION-ENGINE-R138.1. `SecurityPolicyMiddleware` in `arbora/security/security_policy_middleware.py` keeps its input jailbreak detection and is unrelated. Refusals: `INVALID_ARGUMENT`. Evidence: none. Writes: none. Depends: MEDULLA-DECISION-ENGINE-R138.1. Caller chain: `operations()` of `arbora/api/ops/security_eval.py` (new; sibling of `arbora/api/ops/security.py:36` `handle_security_posture_read`) listed in `get_registry` (`arbora/api/ops/registry_factory.py:16`) and reached through `invoke` (`arbora/api/invoke/pipeline.py:1021`). Shape: Frozen Pydantic models in a new `arbora/api/ops/security_eval.py` using the `_common` helpers of `arbora/api/ops/_common.py`; verdict enum mirrors the engine's closed set; `security_policy_middleware.py` is untouched. | Test: `tests/api/test_security_eval_models.py::test_models_validate_and_close_verdict_set` (L1). Verified by the root slice test.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051.2
Security evaluation behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security evaluation behavior.** Stage: arbora served operations. Caller: `handle_security_evaluate` → `SecurityEvaluationPort`. Rule: (1) validate the target against the caller's authorized scope. (2) ask the engine for catalog selection (`Decide`, MEDULLA-DECISION-ENGINE-R818). (3) send the selected probes to the harness through the `SecurityProbeRunner` port, whose production adapter submits the existing `agents.run` operation. (4) send each probe result to `Decide` with `QuestionKind::ProbeVerdict` (MEDULLA-DECISION-ENGINE-R138.3). (5) return the findings. The probe cap is the engine value `knob red_team.max_probes` (MEDULLA-DECISION-ENGINE-R133 quota). The fallback default when the decision is absent is 50. Arbora composes and scores nothing locally. Refusals: see ARBORA-OPS-R051.4. Evidence: see ARBORA-OPS-R051.5. Writes: none beyond the audit record. Depends: ARBORA-OPS-R051.1, MEDULLA-DECISION-ENGINE-R818. Caller chain: `POST /api/v1/ops/security.evaluate` -> `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `handle_security_evaluate` in `arbora/api/ops/security_eval.py` (to be written) -> `SecurityEvaluationPort`. Shape: Handler in `arbora/api/ops/security_eval.py` that only sequences port calls (engine `Decide`, probe runner submitting the existing `agents.run` handler in `arbora/api/ops/agents.py`); no local scoring. | Test: `tests/api/test_security_eval_select.py::test_only_declared_catalog_entries_are_selected_and_cap_applies` (L2). It asserts selection comes from the engine answer and the cap holds.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051.3
Security evaluation wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security evaluation wiring.** Stage: arbora served operations. Code: register `security.evaluate` in `operations()` of `arbora/api/ops/security_eval.py` with `Confirm.PLAN` and scope `security:evaluate`. List the module in the curated loop of `get_registry` in `arbora/api/ops/registry_factory.py`. Add `_with_security_evaluation` in `arbora/mcp_server/served_invocation.py`, called from `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`, binding `security_evaluation` and `security_probe_runner`. The call site is `_effect` in `arbora/api/invoke/pipeline.py`. Refusals: `UNAVAILABLE` without a bound port. Evidence: see ARBORA-OPS-R051.5. Writes: none. Depends: ARBORA-OPS-R051.2. Caller chain: `arbora/api/invoke/pipeline.py:258` `_effect` -> handler registered in `operations()` of `arbora/api/ops/security_eval.py` (to be written); `get_registry` (`arbora/api/ops/registry_factory.py:16`) lists the module; ports bound in `arbora/mcp_server/served_invocation.py:550` `compose_served_invocation`. Shape: One `OpSpec` plus one `_with_security_evaluation` binder modelled on `_with_ingest_runner` (`arbora/mcp_server/served_invocation.py:236`), and one added module name in the loop inside `get_registry`. | Test: `tests/api/test_security_eval_wiring.py::test_registry_lists_operation_and_binder_composes_ports` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051.4
Security evaluation refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security evaluation refusals.** Stage: arbora served operations. Rule: a target outside the caller's verified authorized scope returns `SUBJECT_ACCESS_DENIED` before any probe starts. A goal that selects no catalog entry returns `INVALID_ARGUMENT`. A request above the probe cap returns `LOAD_CAP_EXCEEDED`. Writes: none. Depends: ARBORA-OPS-R051.2. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `handle_security_evaluate` in `arbora/api/ops/security_eval.py` (to be written) returning `SUBJECT_ACCESS_DENIED`, `INVALID_ARGUMENT` or `LOAD_CAP_EXCEEDED`. Shape: Reuse existing members of `ArboraErrorCode` in `arbora/api/errors.py` (`SUBJECT_ACCESS_DENIED` line 22, `LOAD_CAP_EXCEEDED` line 32); refusal checks run before the runner port is called. | Test: `tests/api/test_security_eval_refusal.py::test_refusals_start_zero_probes` (L3). It asserts zero runner calls for each refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051.5
Security evaluation evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security evaluation evidence.** Stage: arbora served operations. Rule: the audit record holds the goal digest, selected catalog entry identifiers, target and scope references and the finding count. It holds no probe payload. Writes: the audit record. Depends: ARBORA-OPS-R051.3. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `_record` (`arbora/api/invoke/pipeline.py:589`) -> `EgAuditAdapter` (`arbora/api/invoke/eg_audit.py:22`) for `security.evaluate`. Shape: Extend the audit event of `arbora/api/invoke/audit.py` with goal digest, entry identifiers, scope references and finding count; no probe payload is passed to the audit adapter. | Test: `tests/api/test_security_eval_evidence.py::test_audit_record_fields` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R051.6
Security evaluation hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Security evaluation hot-path proof.** Stage: arbora served operations. Entry point: `POST /api/v1/ops/security.evaluate` with plan approval. The test runs an in-scope target against a loopback engine and a recorded probe runner, then an out-of-scope target. Missing producer contracts stay typed `UNAVAILABLE`. Writes: none. Depends: ARBORA-OPS-R051.3, ARBORA-OPS-R051.4. Caller chain: `POST /api/v1/ops/security.evaluate` -> `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `handle_security_evaluate` in `arbora/api/ops/security_eval.py` (to be written). Shape: New test module only, reusing the served-route harness and loopback engine of other `tests/api/` served tests with a recorded probe runner. | Test: `tests/api/test_security_evaluate_served.py::test_in_scope_target_yields_findings_and_out_of_scope_refuses` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R052
Authorization-segmented virtual schema projections (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Authorization-segmented virtual schema projections (rollup).** Subsystem: arbora served operation `query.projections`. The engine owns segmentation and boundary labels (MEDULLA-IDENTITY-R001, MEDULLA-FEDERATED-QUERY-R001, MEDULLA-FEDERATED-QUERY-R724). ARBORA-DATA-MARKET-R005 owns the `schema_context` surface. Caller: `POST /api/v1/ops/query.projections` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_query_projections` in `arbora/api/ops/projections.py`. A caller sees only the projections its verified grants cover. Children: `.1` model to `.6` hot-path proof. Depends: MEDULLA-FEDERATED-QUERY-R724. | Root L3 journey: `tests/api/test_projection_scope_served.py::test_two_scopes_see_different_projection_sets` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R052.1
Projection model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Projection model.** Stage: arbora served operations. Code: new `arbora/api/ops/projections.py` with frozen `SchemaProjection{boundary: str, required_scopes: tuple[str, ...], tables: tuple[str, ...], mapping_ref: str}` (1 to 16 required scopes and 1 to 1024 tables, the engine bounds). Existing `build_read_op` in `arbora/api/ops/_common.py` and the projection in `arbora/api/http/openapi.py` describe operations, not query results. This type describes a query result. Refusals: `INVALID_ARGUMENT`. Evidence: none. Writes: none. Depends: none. Caller chain: `operations()` of `arbora/api/ops/query.py:18` -> `query.projections` handler using the new `SchemaProjection` in `arbora/api/ops/projections.py` (to be written); reached through `invoke` (`arbora/api/invoke/pipeline.py:1021`). Shape: Frozen Pydantic model in a new `arbora/api/ops/projections.py`, distinct from `build_read_op` (`arbora/api/ops/_common.py:112`) which builds operation declarations. | Test: `tests/api/test_projection_models.py::test_fields_are_validated_and_frozen` (L1). Verified by the root slice test.
requirementARBORA-OPSVERIFIED99c7895b4e5d
tests/api/test_projection_models.py:12
ARBORA-OPS-R052.2
Projection scope behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Projection scope behavior.** Stage: arbora served operations. Caller: `handle_query_projections` → `scope_covers(grants, projection)`. Code: `scope_covers` is a named replaceable default in `arbora/api/ops/projections.py`. Rule: a projection is covered when every scope string it requires is in the caller's verified `effective_scopes`. The engine supplies the boundary labels and required scopes (MEDULLA-FEDERATED-QUERY-R724). Arbora infers none. Partial cover returns only the covered projections. Refusals: see ARBORA-OPS-R052.4. Writes: none. Depends: ARBORA-OPS-R052.1, MEDULLA-FEDERATED-QUERY-R724. Caller chain: `arbora/api/http/routes.py:122` `make_endpoint` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `handle_query_projections` (to be written in `arbora/api/ops/projections.py`) -> `scope_covers(grants, projection)`. Shape: Pure function `scope_covers` in `arbora/api/ops/projections.py` comparing sets of scope strings against the caller's verified scopes already carried in the request context; no engine knowledge in arbora. | Test: `tests/api/test_projection_scope.py::test_exact_cover_and_partial_cover` (L2).
requirementARBORA-OPSVERIFIED99c7895b4e5d
tests/api/test_projection_scope.py:17
ARBORA-OPS-R052.3
Projection wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Projection wiring.** Stage: arbora served operations. Code: register `query.projections` with `build_read_op`, scope `query:read`, beside the query operations in `arbora/api/ops/query.py`; the handler lives in `arbora/api/ops/projections.py` and is re-exported by `query.py`. Add `_with_projection_reader` in `arbora/mcp_server/served_invocation.py`, called from `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`. The adapter sends the method of MEDULLA-FEDERATED-QUERY-R724 under the caller's own session. Refusals: `UNAVAILABLE` without a bound reader. Writes: none. Depends: ARBORA-OPS-R052.2. Caller chain: `arbora/api/invoke/pipeline.py:258` `_effect` -> `query.projections` registered in `operations()` of `arbora/api/ops/query.py:18`; reader port bound in `arbora/mcp_server/served_invocation.py:550` `compose_served_invocation`. Shape: One `build_read_op` call (`arbora/api/ops/_common.py:112`) plus a `_with_projection_reader` binder modelled on `_with_ingest_runner` (`arbora/mcp_server/served_invocation.py:236`). | Test: `tests/api/test_projection_wiring.py::test_registry_lists_operation_and_binder_composes_reader` (L3).
requirementARBORA-OPSVERIFIED99c7895b4e5d
tests/api/test_projection_wiring.py:16
ARBORA-OPS-R052.4
Projection refusals and non-disclosure
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Projection refusals and non-disclosure.** Stage: arbora served operations. Rule: when no projection is covered, return `SUBJECT_ACCESS_DENIED`. When the engine returns no boundary labels, return `UNAVAILABLE`. An uncovered projection must not appear in any caller-visible response, count, refusal detail or trace field. It must not appear in any caller-readable audit view either. Writes: none. Depends: ARBORA-OPS-R052.2. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `handle_query_projections` in `arbora/api/ops/projections.py` (to be written) returning `SUBJECT_ACCESS_DENIED` or `UNAVAILABLE`; audit via `_record` (`arbora/api/invoke/pipeline.py:589`). Shape: Reuse existing `ArboraErrorCode` members (`arbora/api/errors.py:22`); the handler filters before building any count, refusal detail or audit field so hidden items never reach `OpResult`. | Test: `tests/api/test_projection_refusal.py::test_refusals_and_hidden_projection_counts_are_absent_everywhere` (L3). It asserts both codes and no hidden counts on any caller surface.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R052.5
Projection evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Projection evidence.** Stage: arbora served operations. Rule: the audit record holds the caller scope and the returned projection references. A withheld count goes only into the separately authorized operator audit, scope `audit:operator`. The denied caller cannot read it through responses, traces or any audit view. Writes: operator audit record. Depends: ARBORA-OPS-R052.3. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/pipeline.py:589` (`_record`) -> `arbora/api/invoke/audit.py:13` (`audit_event`) via `services.audit_write`; planned: the `query.projections` handler in `arbora/api/ops/query.py` (no projection-scoped operation exists yet) adds the caller scope and projection references to this event. Shape: Extend `audit_event` in `arbora/api/invoke/audit.py` with caller scope and projection references (digests only, like `plan_digest`); write the withheld count through the existing `audit_write` port under scope `audit:operator`, a separate record never returned by responses or traces. No `audit:operator` scope exists in code yet. | Test: `tests/api/test_projection_evidence.py::test_operator_reads_withheld_count_and_denied_caller_cannot` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R052.6
Projection hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Projection hot-path proof.** Stage: arbora served operations. Entry point: `POST /api/v1/ops/query.projections`. The test calls it with two scopes and observes different sets. It varies only hidden projections and asserts identical caller-visible contents, counts, refusal details and trace fields. A denied caller reading operator audit is refused without count leakage. Writes: none. Depends: ARBORA-OPS-R052.3, ARBORA-OPS-R052.4, ARBORA-OPS-R052.5. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> planned handler for `query.projections` in `arbora/api/ops/query.py` (`operations()` at line 18 registers only `query.uql` and `query.nl` today); MCP entry: `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`, `projection.invoke` at line 244) -> `arbora/api/invoke/pipeline.py:1021`. Shape: One new read operation built like `query.uql` in `arbora/api/ops/query.py`; the proof is a served test through the registry `invoke` over HTTP with two caller scopes, asserting equal response, count and trace fields. Reuses `make_endpoint` and `_error` in `arbora/api/http/routes.py`; no new transport code. | Test: `tests/api/test_projection_scope_served.py::test_two_scopes_see_different_projection_sets` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053
Bounded interaction space (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bounded interaction space (rollup).** Subsystem: arbora served operation `retrieval.space`. It returns a bounded interaction space, not ranked snippets. The corpus boundary is the union of the top-K hits of a multi-query lexical search, with one directory per query. Medulla owns ranking (MEDULLA-FEDERATED-QUERY-R001), retrieval-plan decisions (MEDULLA-DECISION-ENGINE-R029) and context budgets (MEDULLA-DECISION-ENGINE-R137). The harness executes the engine-directed exploration (MERISTEM-HARNESS-CYCLE-R031). Caller: `POST /api/v1/ops/retrieval.space` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_retrieval_space` in `arbora/api/ops/retrieval.py`. `retrieval.search` stays with ARBORA-OPS-R021.2. Children: `.1` model to `.6` hot-path proof. Indexless scans and line tables are served by MEDULLA-DECISION-ENGINE-R144 and MEDULLA-DECISION-ENGINE-R153 (ARBORA-OPS-R053.7 and R053.8 are retired). Depends: ARBORA-OPS-R021.2. | Root L3 journey: `tests/api/test_retrieval_space_served.py::test_two_queries_yield_boundary_and_two_directories` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053.1
Interaction space model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Interaction space model.** Stage: arbora served operations. Code: add to `arbora/api/ops/retrieval.py` the frozen models `CorpusBoundary{document_refs, top_k}`, `QueryDirectory{name, query, hit_refs, properties, commands, toc_digests}` and `InteractionSpace{space_id, boundary, directories}`. The `Retriever` port returns hits only. These models add the directory layout and the property documentation. `properties` maps each object property name to a one-line description; `commands` lists the navigation commands. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: none. Caller chain: Planned, not built: the models are imported by the `retrieval.space` handler (R053.2) in `arbora/api/ops/retrieval.py`; reached from `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` (`handler(context, params, op)`). Today `arbora/api/ops/retrieval.py` holds only `RetrievalHit` (line 36), `RetrievalSearchOutcome` and the `Retriever` port (line 66). Shape: Add three frozen pydantic models beside `RetrievalHit` in `arbora/api/ops/retrieval.py`, using the same `ConfigDict(frozen=True, extra="forbid")` as `RetrievalHit` and `RetrievalSearchOutcome`; `Field` bounds give the `INVALID_ARGUMENT` refusals. | Test: `tests/api/test_interaction_space_models.py::test_models_validate_fields` (L1). Verified by the root slice test.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053.2
Interaction space build
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Interaction space build.** Stage: arbora served operations. Caller: `handle_retrieval_space` → `build_space(outcomes, plan)` in `arbora/api/ops/retrieval.py`. Rule: the boundary is the union of the top-K hit references over all queries, in first-seen order. One directory per query is named `q01`, `q02` in query order. K and the query cap come from the retrieval-plan decision (MEDULLA-DECISION-ENGINE-R029): `knob retrieval_space.top_k` and `knob retrieval_space.max_queries`. The fallback defaults, used only when the decision is absent, are 20 and 8. The boundary size ceiling is the engine context budget (MEDULLA-DECISION-ENGINE-R137). Arbora ranks nothing. Refusals: see ARBORA-OPS-R053.4. Evidence: see ARBORA-OPS-R053.5. Writes: none. Depends: ARBORA-OPS-R053.1, MEDULLA-DECISION-ENGINE-R029. Caller chain: Planned: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` -> `handle_retrieval_space` (new, beside `handle_retrieval_search` at `arbora/api/ops/retrieval.py:76`) -> `build_space` (new, same file). MCP entry: `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`, `projection.invoke` at line 244) -> `arbora/api/invoke/pipeline.py:1021`. Shape: `build_space(outcomes, plan)` is a pure function in `arbora/api/ops/retrieval.py` over `RetrievalSearchOutcome` values (line 46) from the `Retriever.search` port; it unions refs in first-seen order and names `q01`, `q02`. K and the query cap are read from the decision, with the stated fallback only when it is absent. | Test: `tests/api/test_interaction_space_build.py::test_union_caps_and_directory_names` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053.3
Interaction space wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Interaction space wiring.** Stage: arbora served operations. Code: register `retrieval.space` beside `handle_retrieval_search` in `operations()` of `arbora/api/ops/retrieval.py`, built with `build_read_op`, scope `memory:read`. The handler calls `GovernedRetriever.retrieve` in `arbora/control_plane/retrieval/service.py`. No production constructor of `GovernedRetriever` exists. Add `_with_retriever` in `arbora/mcp_server/served_invocation.py`, called from `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`. It builds the engine-backed retriever and binds `retriever`, which `retrieval.search` also uses. Refusals: `UNAVAILABLE` when no retriever is bound. Writes: none. Depends: ARBORA-OPS-R053.2. Caller chain: Planned: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` -> `handle_retrieval_space` (new) -> `bound_service(context, "retriever")` (`arbora/api/ops/_common.py:70`). Binding: `arbora/mcp_server/served_invocation.py:550` (`compose_served_invocation`, bindings chain at line 595) gains `_with_retriever` beside `_with_ingest_runner` (line 236). No production code binds `retriever` today. Shape: Register a second `build_read_op` entry in `operations()` of `arbora/api/ops/retrieval.py` (like `retrieval.search`, scope `memory:read`). `_with_retriever` follows the shape of `_with_ingest_runner`: return `bindings` unchanged unless composable, else `{**bindings, "retriever": ...}`. `GovernedRetriever.retrieve` (`arbora/control_plane/retrieval/service.py:61`) is synchronous over `RetrievalRequest`, so an async adapter implementing the `Retriever` port is needed. | Test: `tests/api/test_interaction_space_wiring.py::test_served_request_reaches_composed_retriever_and_missing_producer_refuses` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053.4
Interaction space refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Interaction space refusals.** Stage: arbora served operations. Rule: a request whose boundary exceeds the engine document ceiling returns `LOAD_CAP_EXCEEDED`. An empty query list returns `INVALID_ARGUMENT`. A retriever that is not composed returns `UNAVAILABLE`. No retrieval runs after a refusal. Writes: none. Depends: ARBORA-OPS-R053.3. Caller chain: Planned: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` -> `handle_retrieval_space`; refusals raise `OperationRefused` (`arbora/api/invoke/pipeline.py:111`), which `_dispatch_outcome` (line 918) maps through `_typed_refusal` (line 985). `UNAVAILABLE` already comes from `bound_service` (`arbora/api/ops/_common.py:70`). Shape: Three guard checks at the top of `handle_retrieval_space` raising `OperationRefused` with `LOAD_CAP_EXCEEDED` (code in `arbora/api/errors.py:32`, public detail key `loaded_items` at line 294), `INVALID_ARGUMENT` and `UNAVAILABLE`, all before any `retriever` call; no new error plumbing. | Test: `tests/api/test_interaction_space_refusal.py::test_three_refusals_run_zero_queries` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053.5
Interaction space evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Interaction space evidence.** Stage: arbora served operations. Rule: the audit record holds the query count, the boundary size, the per-query hit counts and the context budget used. Writes: the audit record. Depends: ARBORA-OPS-R053.3. Caller chain: Planned: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/pipeline.py:589` (`_record`) -> `arbora/api/invoke/audit.py:13` (`audit_event`), fed by `handle_retrieval_space` in `arbora/api/ops/retrieval.py`. Shape: Extend the event built by `audit_event` in `arbora/api/invoke/audit.py` with counts only (query count, boundary size, per-query hit counts, budget used), as it already records a digest rather than values; written through `services.audit_write`. No new audit store. | Test: `tests/api/test_interaction_space_evidence.py::test_audit_record_fields` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R053.6
Interaction space hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Interaction space hot-path proof.** Stage: arbora served operations. Entry point: `POST /api/v1/ops/retrieval.space`. The test runs two queries against a loopback engine and observes the boundary and two directories. Missing producer contracts stay typed `UNAVAILABLE`. Writes: none. Depends: ARBORA-OPS-R053.3. Caller chain: Planned: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) (route `/ops/retrieval.space`, registered per registry entry at `arbora/api/http/app.py:204`) -> `handle_retrieval_space` (new) in `arbora/api/ops/retrieval.py`; MCP entry: `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`, `projection.invoke` at line 244) -> `arbora/api/invoke/pipeline.py:1021`. Shape: A served L3 test file `tests/api/test_retrieval_space_served.py` driving the registry `invoke` with a loopback engine and `retriever` composed through `_with_retriever`; reuses the `op_by_id` and served-invocation fixtures used by `tests/api/test_retrieval_ops.py`. No production code beyond R053.1 to R053.3. | Test: `tests/api/test_retrieval_space_served.py::test_two_queries_yield_boundary_and_two_directories` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R054
Technique-bound benchmark adoption (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Technique-bound benchmark adoption (rollup).** Subsystem: arbora served operation `serving.technique.activate` over the existing `decide.commit` write path. The five techniques are `paged_cache`, `prefix_reuse`, `fused_kernels`, `quantized_cache` and `expert_dispatch`. The harness emits benchmark receipts (MERISTEM-HARNESS-CYCLE-R062). Medulla decides activation from the receipts (MEDULLA-DECISION-ENGINE-R819). Arbora serves and applies only the committed verdict. `handle_rlm` in `arbora/api/ops/agents.py` serves `rlm.benchmark`, which is not technique evidence. Caller: `POST /api/v1/ops/serving.technique.activate` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_technique_activate` in new `arbora/api/ops/serving_techniques.py`. Children: `.1` model and behavior, `.2` wiring, refusals and proof. Depends: MEDULLA-DECISION-ENGINE-R819, MERISTEM-HARNESS-CYCLE-R062. | Root L3 journey: `tests/api/test_serving_technique_served.py::test_activation_requires_technique_bound_evidence` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R055
Run-bound process remediation (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Run-bound process remediation (rollup).** Subsystem: arbora served operations `ops.process.propose` (read) and `ops.process.terminate` (`Effect.ADMIN`, `Confirm.PLAN`). The harness emits liveness evidence and stops on request (MERISTEM-HARNESS-CYCLE-R063). Medulla decides zombie or hung status (MEDULLA-DECISION-ENGINE-R820). Quota is not authority. Caller: `POST /api/v1/ops/ops.process.propose` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_process_propose` in `arbora/api/ops/ops.py`. Children: `.1` proposal, `.2` stop and proof. Depends: MEDULLA-DECISION-ENGINE-R820, MERISTEM-HARNESS-CYCLE-R063. | Root L3 journey: `tests/api/test_ops_admin_ops.py::test_process_remediation_requires_run_bound_approval` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R061
Indexed token and cost projection (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Indexed token and cost projection (rollup).** Subsystem: arbora served operation `usage.index.query`. It forwards the trace usage query of MEDULLA-ORCH-VOCAB-R010.101. Arbora performs no token or cost arithmetic. Caller: `POST /api/v1/ops/usage.index.query` or MCP → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_usage_index_query` in `arbora/api/ops/usage.py` → `UsageIndexReader.query`. Consumer: OVERSTORY-APPS-R004.8.1 to R004.8.6 through `ObservabilityView.tsx`. Preserved: `runs.metrics` grouping (ARBORA-OPS-R021.4.3, ARBORA-OPS-R021.4.4); `usage.read` context peaks and budgets are not total usage. Children: `.1` models, `.2` forwarding, `.3` wiring, `.4` refusals and latency profile, `.5` proof. Producer: `MEDULLA-ORCH-VOCAB-R010.101`. The types `RunTraceUsageQuery` and `PriceTable` carry no version suffix. Depends: MEDULLA-ORCH-VOCAB-R010.101. | Root L3 journey: `tests/api/test_usage_index_served.py::test_browser_query_reconciles_with_independent_ledger` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R063
Retrieval evaluation and authorized context projection (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval evaluation and authorized context projection (rollup).** Subsystem: arbora served operations `retrieval.evaluation.compare` and `retrieval.context.search`. They forward `RetrievalRankingSubmit` (MEDULLA-DECISION-ENGINE-R100.100.2, served by `DecisionEval`) and `Method::RetrievalContextSearch` (MEDULLA-DECISION-ENGINE-R100.100.4). Arbora never computes `hits_at_k` and never treats local fusion as relevance truth. Caller: `POST /api/v1/ops/retrieval.evaluation.compare` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_retrieval_compare` in `arbora/api/ops/retrieval.py`. Consumer: OVERSTORY-APPS-R001.1.1 to R001.1.6 through `TryItPanel.tsx`. Children: `.1` models, `.2` evaluation, `.3` context search, `.4` refusals, `.5` proof. Depends: MEDULLA-DECISION-ENGINE-R100.100. | Root L3 journey: `tests/api/test_retrieval_evaluation_served.py::test_two_algorithms_match_independent_hits_at_k_ledger` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.1.1
AU:62 Arbora definition slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**AU:62 Arbora definition slice.** AU:62 primary-owner slice. Residual: combined platform-wide OpenTelemetry export, Prometheus export and structured JSON logging contract; opt-in native tracing backend activation. Selection and failure policy; aggregated signal detection linked to governed improvement proposals Arbora minimum action: Assign host telemetry. Activation/export to Arbora, connector instrumentation/transport to SDK and signal interpretation/proposal decisions to EG. Define exact formats, backend opt-in and proposal route with served export/readback and disabled/refused cases. Retain AU as emitter only. Producer/consumer boundary: AU default runtime capabilities and fleet instrumentation. Planned graph/tool span call sites feed the EG trace sink/BehaviourObservation, then Arbora telemetry.* read. A native backend selector and signal-to-improvement proposal route are not specified. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `MERISTEM-HARNESS-R024, MEDULLA-DECISION-ENGINE-R072, MEDULLA-DECISION-ENGINE-R125, ARBORA-OPS-R024.1`. Source record SHA-256: `33d4094e13a9495a18bd96ef13eead8fd9f7a3329a9b4bdc7dae593c0cbc77eb`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, epistemic-graph/specs/decision-engine/requirements.md:108#sha256=68781c902c5f626c2d03a20bb56b3b089deecae2ca1d188a3254b46678df2838, epistemic-graph/specs/decision-engine/requirements.md:109#sha256=de1a7850fa8d4c304f6a9bc1e60a58c9f0c7b5999065d9c24536e9efb89fa3bb, epistemic-graph/specs/decision-engine/requirements.md:216#sha256=a086df1a12ee777df04d6821dbf3e1fd0dbbef9ba913819ae48845355a749de1, arbora/specs/host-composition-boundary/plan.md:30#sha256=c9603705b9effe06c165ef12261887881a8195a0e319074bd02b7b0c973d637b, arbora/specs/hosted-api-operations/requirements.md:62#sha256=4f634d3780209eef02df6f7b814234f3c84f1d2a429d51158d47f1014368028a, meristem/specs/harness-evolution/requirements.md:125#sha256=283e9be2609f71397b08e55e5960966e76a1b338d4c25904fb49b8a073a23001, meristem/specs/harness-evolution/requirements.md:126#sha256=579bb8b23676bfeb8ccc59721017ce35807334835d2f2cd3e7c34669894f411d, meristem/specs/harness-evolution/requirements.md:127#sha256=bbcce6fe5bbbf092d19c62c4d950d2aefe179b02f54c99787d56257b95d21828, meristem/specs/harness-evolution/requirements.md:128#sha256=44ff52c0a8e197e4589651b907c8058a5522c4a2d9ae34f3a3d822d099be1611, meristem/specs/harness-evolution/requirements.md:129#sha256=4d076320e9f5b7b71d8ea35ce974ca741514857b7ff7fa34bc1bd3df5eb59280, meristem/specs/harness-evolution/requirements.md:130#sha256=2af680b8904c94372f39b1b3d78c125b4e338962879e8581d028b5cf5e317f80, meristem/specs/harness-evolution/requirements.md:131#sha256=20b74358c9698761d1be32f49362999f17a9bb12452b384daae86439df119f11, meristem/specs/harness-evolution/requirements.md:132#sha256=53c59abd59f6c8217da494fda6914927775d15e6771b74b5e730b42a7ea9d843`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/3`. No implementation or runtime evidence is claimed. Caller chain: Planned (no implementation): the served read is `telemetry.read` in `arbora/api/ops/telemetry.py:46` (`operations()`), handler `handle_telemetry_read` at line 35, reached from `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313`; the port is `TelemetryReader` (line 29). Shape: Extend `arbora/api/ops/telemetry.py` (`TelemetrySnapshot`, `TelemetryReader`) with export format and backend opt-in fields, reusing `_common.handle_tenant_read` and `build_tenant_read_op`; any signal-to-proposal route is a new operation beside it. No export or backend selector exists in code today. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `MERISTEM-HARNESS-R024, MEDULLA-DECISION-ENGINE-R072, MEDULLA-DECISION-ENGINE-R125, ARBORA-OPS-R024.1`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, epistemic-graph/specs/decision-engine/requirements.md:108#sha256=68781c902c5f626c2d03a20bb56b3b089deecae2ca1d188a3254b46678df2838, epistemic-graph/specs/decision-engine/requirements.md:109#sha256=de1a7850fa8d4c304f6a9bc1e60a58c9f0c7b5999065d9c24536e9efb89fa3bb, epistemic-graph/specs/decision-engine/requirements.md:216#sha256=a086df1a12ee777df04d6821dbf3e1fd0dbbef9ba913819ae48845355a749de1, arbora/specs/host-composition-boundary/plan.md:30#sha256=c9603705b9effe06c165ef12261887881a8195a0e319074bd02b7b0c973d637b, arbora/specs/hosted-api-operations/requirements.md:62#sha256=4f634d3780209eef02df6f7b814234f3c84f1d2a429d51158d47f1014368028a, meristem/specs/harness-evolution/requirements.md:125#sha256=283e9be2609f71397b08e55e5960966e76a1b338d4c25904fb49b8a073a23001, meristem/specs/harness-evolution/requirements.md:126#sha256=579bb8b23676bfeb8ccc59721017ce35807334835d2f2cd3e7c34669894f411d, meristem/specs/harness-evolution/requirements.md:127#sha256=bbcce6fe5bbbf092d19c62c4d950d2aefe179b02f54c99787d56257b95d21828, meristem/specs/harness-evolution/requirements.md:128#sha256=44ff52c0a8e197e4589651b907c8058a5522c4a2d9ae34f3a3d822d099be1611, meristem/specs/harness-evolution/requirements.md:129#sha256=4d076320e9f5b7b71d8ea35ce974ca741514857b7ff7fa34bc1bd3df5eb59280, meristem/specs/harness-evolution/requirements.md:130#sha256=2af680b8904c94372f39b1b3d78c125b4e338962879e8581d028b5cf5e317f80, meristem/specs/harness-evolution/requirements.md:131#sha256=20b74358c9698761d1be32f49362999f17a9bb12452b384daae86439df119f11, meristem/specs/harness-evolution/requirements.md:132#sha256=53c59abd59f6c8217da494fda6914927775d15e6771b74b5e730b42a7ea9d843`. This definition does not assert these tests have run. Planned test: `tests/api/test_telemetry_export_ops.py::test_export_formats_backend_opt_in_and_refused_cases`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R014.1
AU:95 Arbora definition slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**AU:95 Arbora definition slice.** AU:95 primary-owner slice. Residual: The reviewed matches do not define a shared provider interface for service and log operations across supported operating systems. Arbora minimum action: Define the shared typed service/log interface. List supported operating systems and map each operation to its native tooling with parity/refusal acceptance criteria in. Existing owner specs. Producer/consumer boundary: Arbora host-management consumer -> SDK provider interface -> supported operating-system service/log adapters. This is the required boundary, not a verified existing call path. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `none assigned in this packet`. Source record SHA-256: `90cd42367355a820345b8a129845920591a3e2e124de958afa49c8ffdd4fbd0e`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-24-owner-supplements.json, spec-audit/writer-queue-merged/agent-utilities.tsv:95, arbora/specs/hosted-api-operations/requirements.md:33#sha256=640c929055bc4d47314520e8ad4780754355583330b4a8bf26dfc81c943db249, arbora/specs/hosted-api-operations/requirements.md:18#sha256=8e936f3951b29728842a652daf987e88bfc3e336e58df05920fd7ada20d2ba8e, meristem/specs/agent-control-plane/requirements.md:5#sha256=2b9ea29650e8902ebd479598d718e15357149496d86724511cb6421b56a94a0f, epistemic-graph/specs/decision-engine/requirements.md:82#sha256=1c1999787a130f6c2e81e54ecc54064dfb149a443644939a6bd8185b06118f97`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/4`. No implementation or runtime evidence is claimed. Caller chain: Planned (no implementation): a new host-management operation module `arbora/api/ops/host_services.py` registered in `arbora/api/ops/registry_factory.py`, reached from `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` -> handler -> a bound provider port. No service or log provider interface exists in `arbora/api/ops/` today. Shape: One typed provider Protocol (as `TelemetryReader` in `arbora/api/ops/telemetry.py:29`), with params and result models from `arbora/api/ops/_common.py`; the per-OS adapters live in the connector SDK, not in arbora. Log reading reuses the redaction in `arbora/security/log_redaction.py`. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `none assigned in this packet`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-24-owner-supplements.json, spec-audit/writer-queue-merged/agent-utilities.tsv:95, arbora/specs/hosted-api-operations/requirements.md:33#sha256=640c929055bc4d47314520e8ad4780754355583330b4a8bf26dfc81c943db249, arbora/specs/hosted-api-operations/requirements.md:18#sha256=8e936f3951b29728842a652daf987e88bfc3e336e58df05920fd7ada20d2ba8e, meristem/specs/agent-control-plane/requirements.md:5#sha256=2b9ea29650e8902ebd479598d718e15357149496d86724511cb6421b56a94a0f, epistemic-graph/specs/decision-engine/requirements.md:82#sha256=1c1999787a130f6c2e81e54ecc54064dfb149a443644939a6bd8185b06118f97`. This definition does not assert these tests have run. Planned test: `tests/api/test_host_service_ops.py::test_service_and_log_operations_parity_and_refusal`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.3
AU:41 Arbora definition slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**AU:41 Arbora definition slice.** AU:41 cross-owner slice. Residual: the exact six-hour durable paper job and missed/retried run semantics. Per-paper summary and relevance score against BOTH platform goals and existing graph content. Explicit value/admission threshold that selects paper content/claims for EG ingestion. Distinct from proposal admission Arbora minimum action: Define the scheduled job and Medulla-owned relevance/admission contract. Then link SDK fetch/ingest receipts to each approved run. Require a served six-hour-clock fixture, dedupe/restart, relevance exclusions and durable selected-claim receipts. Do not use proposal publication as ingestion proof. Producer/consumer boundary: Arbora evolution schedule facade -> owning durable scheduler (specific six-hour job missing) -> SDK provider. Tools/runner.worker -> McpToolSourceAdapter.extract -> generated SourceIngest. AU study_compare/admit consume EG verdicts; study_intake explicitly stores locator/digest and forbids copying the body. So it is not the missing selected-content ingestion producer. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `SCION-SOURCE-INGEST-R005, SCION-SOURCE-INGEST-R005.1, SCION-SOURCE-INGEST-R005.2, SCION-SOURCE-INGEST-R005.3, SCION-SOURCE-INGEST-R005.4, SCION-SOURCE-INGEST-R005.5, SCION-SOURCE-INGEST-R005.6, MERISTEM-HARNESS-R019, MERISTEM-HARNESS-R019.1, MERISTEM-HARNESS-R019.2, MERISTEM-HARNESS-R019.3, MERISTEM-HARNESS-R019.4, MERISTEM-HARNESS-R019.5, MERISTEM-HARNESS-R019.6, MERISTEM-HARNESS-R019.7, MERISTEM-HARNESS-R019.8, MERISTEM-HARNESS-R019.9, MERISTEM-HARNESS-R019.10, MERISTEM-HARNESS-R019.11, MERISTEM-HARNESS-R019.12, MERISTEM-INTEGRATION-R022, ARBORA-OPS-R022, ARBORA-OPS-R022.1, ARBORA-OPS-R022.2, ARBORA-OPS-R022.2.1, ARBORA-OPS-R022.2.2, ARBORA-OPS-R022.2.3, ARBORA-OPS-R022.2.4, ARBORA-OPS-R022.2.5`. Source record SHA-256: `8c69b66d62c833b4da482e38a51efa624c3e3fc924d6fd6d3e2ef114378a8527`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, arbora/specs/hosted-api-operations/requirements.md:54#sha256=d8c69732119b9efd110bc34158c3782be3ac3914844a8564936c35fe22dcbe9f, arbora/specs/hosted-api-operations/requirements.md:55#sha256=44c3ad638e12350e6fe73a655035a083f2c25d36131778469c43d3c2eb06ce8d, arbora/specs/hosted-api-operations/requirements.md:56#sha256=b203871faa89f38d2cd13102fe1cb4d5e4e734d1e8f774af2b9d604f5c513db7, arbora/specs/hosted-api-operations/requirements.md:57#sha256=42459bd7420c8fdbf7cc60f54270ad0963dbc4b14296a6a5c5dd2eb70c0d0151, arbora/specs/hosted-api-operations/requirements.md:58#sha256=951c86d4839a7606a1e5167a9d60f76f41ef8e370c6ce3013f272f09b07dd173, arbora/specs/hosted-api-operations/requirements.md:59#sha256=1d35ac03b38b3a95e5e549207b4f6a162a2f51b408465c6bb4fb7f7551a81db1, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:9#sha256=f6d94debdbb42e057cfee8695a8e966995d97c89a6e1c3dc2231526d26d9c0ea, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:10#sha256=69f387c80a40bcbd9cf6b70146369b4c6b5f3d6c29a97cac877b682cc0682c52, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:11#sha256=2ed1afa41c9047b9934339edd8392d3788cc5fa680e738f6bdc74d6cb548e954, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:12#sha256=bc1ee535bc1e35792a22eb83dbb19e7aed481b3ccb2bb6c62a0662e3addd343d, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:13#sha256=50914a51f916217350b621e51d74be1faf45e9508bf204f2381adf53cff2e21f, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:14#sha256=0a9eaa55e6a32fb1a0dfe081e8438d2a38c25e18ee9831c5d768a4c7b41b4e29, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:15#sha256=52f2cfe67e8569ca58747b2ee1122f6cb141864b7873ce17be4e809ac4b54dd1, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:87#sha256=fcc7546cd4f02886ab91637944516673592df5e6ca479c5ba95095b33c2ebcf5, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:88#sha256=f2c3733a3455af35d163dc5135ce5abed3c45f028fba26fa9f38f2dcf15cc98c, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:89#sha256=063b0267d85d85c6d6f385dd991a5e0f175667ce4ac71bbd545a1dd0e6fceca2, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:90#sha256=3a12cbdab1fdd6f87980b4a8fe0b7a83fd91a5cb2a51cbc29747402a6af3d5d8, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:91#sha256=f42f20c28d9e8144b4b42ea1f8aaab926de2049e8baa8985b90896cd28e320cf, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:92#sha256=39535bd4d3917d5a4fef260753fbc4d1b4ac2cd96565cc62042562c3957d301d, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:98#sha256=7de9c5ec586b6c5ccfd8b5e0fca8560a9ac838c98cf062b7c62f1fbdc339a883, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:99#sha256=2b0bcb5943d5b6d81289b94cce41041614bc6a0b48e52ffbed730d364e7b09df, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:100#sha256=f01b5a242debf96ebf6807098eca0f99c0b40fc9c099c6256093041ed8ccb961, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:101#sha256=75462f1fb86e05f3d20789607f4328a0dcae9e58a48ba8a7cc0c5bc4aea439ef, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:102#sha256=5c51652288c886aaafb0508f6dbf9dc341782e35420931d91198330745aebd5b, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:103#sha256=3ee760d7979531e9bffb1ac5000efbb83d95cea760dcc2858a6988a68b74db61, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:109#sha256=536efcbc2ef4bb6b10d9a98b55a426ce15714667b1a3fb48274f81cc109426f5, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:110#sha256=060fbfbeee2381b829f2eae191b13e207cd4e0638614bf083a94c98d2d07326c, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:111#sha256=473ef97020feaa26f5b0c187a20927f5c0f494fc41e7623b2d35250f80432450, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:112#sha256=317a9259e61b918aa0613f3e5f930e19c0b88cda2f2d49b98dfaed3c557d5d45, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:113#sha256=5d5ff53b1ced9c99caab9fb2a7db5b8077004529cf2a7f12268735f046c14f3f, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:114#sha256=8156161d12158f9abae0220d7dd1c71ca4507a541d593882a3191a0f0b20577b, meristem/specs/au-integration-reliability/requirements.md:28#sha256=39b6562dd71932de65a9932e503ec4de7751a7d4be0290dd4ed3c6e6652aea99, meristem/specs/harness-evolution/requirements.md:78#sha256=2120d55236f5a2a34eaf8935326377dd202d8643d661a95e39bf13868fb1cf59, meristem/specs/harness-evolution/requirements.md:79#sha256=a8a7c4a61a0b0315de5cb294eef886621d6a919fa32bc09227101ecd8c42c63f, meristem/specs/harness-evolution/requirements.md:80#sha256=05c42e4beed57e532283525e61957f003c35de84cb58a3506b8f537cb3c54ba6, meristem/specs/harness-evolution/requirements.md:81#sha256=ffbfda6a61b94b4435bbcd37510c9234c7fb8ccc2de58604c39dcf6a2bd19dc3, meristem/specs/harness-evolution/requirements.md:82#sha256=f7ef7e6ef3f5b93aa4294dbb1371a21f1cf29ae7ec62c739a11deec7782d45c5, meristem/specs/harness-evolution/requirements.md:83#sha256=ee4cd7755f8396f563e9ed33c5c5871daca2d42d4b1adc15403cb817bdd730eb, meristem/specs/harness-evolution/requirements.md:84#sha256=1c927a677f7b84879703c0c1239477462cb2ffd3a21212ff3c49fbf8a4905cca, meristem/specs/harness-evolution/requirements.md:85#sha256=d78a3c773ac3dc764fc56c8e833b019fc52edf78df8c6dfe30cb35aefc00c857, meristem/specs/harness-evolution/requirements.md:86#sha256=9980f6739ed10aefaf5a5e973d3fec51866ccf8d851ad1be56a5f5bed3e87bc3, meristem/specs/harness-evolution/requirements.md:87#sha256=ea7d9534b77169253c6c5e2bf32b269dc53e2def9559875e3e533344e9501463, meristem/specs/harness-evolution/requirements.md:88#sha256=a5e27b14b1c6db7169c943e03e1ca82efe27d051cc6eb874589a70646df5bb1a, meristem/specs/harness-evolution/requirements.md:89#sha256=645fb034990cf006ef3d9e5c8db0b5bdf2a2f7e4bb9f8d987267d999cd05b9fe, meristem/specs/harness-evolution/requirements.md:90#sha256=a3c86d310180d2daf9536f3ae912e6958c08f057c98ed5aa8842325a9e89db71`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/18`. No implementation or runtime evidence is claimed. Caller chain: the planned `evolution.*` operations (`arbora/api/ops/evolution.py`, not yet present; see `ARBORA-OPS-R022.2.1` to `.5`) → a durable six-hour scheduler job that does not exist yet → SDK fetch and ingest → Medulla `SourceIngest` relevance and admission verdict. Shape: job record `{ run_id, window, paper_id, relevance_score, admitted, selected_claim_receipt }` carried by the new `evolution.*` handlers once `arbora/api/ops/evolution.py` exists. | Test: `tests/api/test_paper_ingest_schedule.py::test_six_hour_clock_dedupe_restart_and_exclusions`. Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `SCION-SOURCE-INGEST-R005, SCION-SOURCE-INGEST-R005.1, SCION-SOURCE-INGEST-R005.2, SCION-SOURCE-INGEST-R005.3, SCION-SOURCE-INGEST-R005.4, SCION-SOURCE-INGEST-R005.5, SCION-SOURCE-INGEST-R005.6, MERISTEM-HARNESS-R019, MERISTEM-HARNESS-R019.1, MERISTEM-HARNESS-R019.2, MERISTEM-HARNESS-R019.3, MERISTEM-HARNESS-R019.4, MERISTEM-HARNESS-R019.5, MERISTEM-HARNESS-R019.6, MERISTEM-HARNESS-R019.7, MERISTEM-HARNESS-R019.8, MERISTEM-HARNESS-R019.9, MERISTEM-HARNESS-R019.10, MERISTEM-HARNESS-R019.11, MERISTEM-HARNESS-R019.12, MERISTEM-INTEGRATION-R022, ARBORA-OPS-R022, ARBORA-OPS-R022.1, ARBORA-OPS-R022.2, ARBORA-OPS-R022.2.1, ARBORA-OPS-R022.2.2, ARBORA-OPS-R022.2.3, ARBORA-OPS-R022.2.4, ARBORA-OPS-R022.2.5`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/review-sdk-20261012.json, arbora/specs/hosted-api-operations/requirements.md:54#sha256=d8c69732119b9efd110bc34158c3782be3ac3914844a8564936c35fe22dcbe9f, arbora/specs/hosted-api-operations/requirements.md:55#sha256=44c3ad638e12350e6fe73a655035a083f2c25d36131778469c43d3c2eb06ce8d, arbora/specs/hosted-api-operations/requirements.md:56#sha256=b203871faa89f38d2cd13102fe1cb4d5e4e734d1e8f774af2b9d604f5c513db7, arbora/specs/hosted-api-operations/requirements.md:57#sha256=42459bd7420c8fdbf7cc60f54270ad0963dbc4b14296a6a5c5dd2eb70c0d0151, arbora/specs/hosted-api-operations/requirements.md:58#sha256=951c86d4839a7606a1e5167a9d60f76f41ef8e370c6ce3013f272f09b07dd173, arbora/specs/hosted-api-operations/requirements.md:59#sha256=1d35ac03b38b3a95e5e549207b4f6a162a2f51b408465c6bb4fb7f7551a81db1, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:9#sha256=f6d94debdbb42e057cfee8695a8e966995d97c89a6e1c3dc2231526d26d9c0ea, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:10#sha256=69f387c80a40bcbd9cf6b70146369b4c6b5f3d6c29a97cac877b682cc0682c52, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:11#sha256=2ed1afa41c9047b9934339edd8392d3788cc5fa680e738f6bdc74d6cb548e954, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:12#sha256=bc1ee535bc1e35792a22eb83dbb19e7aed481b3ccb2bb6c62a0662e3addd343d, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:13#sha256=50914a51f916217350b621e51d74be1faf45e9508bf204f2381adf53cff2e21f, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:14#sha256=0a9eaa55e6a32fb1a0dfe081e8438d2a38c25e18ee9831c5d768a4c7b41b4e29, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:15#sha256=52f2cfe67e8569ca58747b2ee1122f6cb141864b7873ce17be4e809ac4b54dd1, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:87#sha256=fcc7546cd4f02886ab91637944516673592df5e6ca479c5ba95095b33c2ebcf5, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:88#sha256=f2c3733a3455af35d163dc5135ce5abed3c45f028fba26fa9f38f2dcf15cc98c, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:89#sha256=063b0267d85d85c6d6f385dd991a5e0f175667ce4ac71bbd545a1dd0e6fceca2, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:90#sha256=3a12cbdab1fdd6f87980b4a8fe0b7a83fd91a5cb2a51cbc29747402a6af3d5d8, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:91#sha256=f42f20c28d9e8144b4b42ea1f8aaab926de2049e8baa8985b90896cd28e320cf, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:92#sha256=39535bd4d3917d5a4fef260753fbc4d1b4ac2cd96565cc62042562c3957d301d, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:98#sha256=7de9c5ec586b6c5ccfd8b5e0fca8560a9ac838c98cf062b7c62f1fbdc339a883, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:99#sha256=2b0bcb5943d5b6d81289b94cce41041614bc6a0b48e52ffbed730d364e7b09df, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:100#sha256=f01b5a242debf96ebf6807098eca0f99c0b40fc9c099c6256093041ed8ccb961, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:101#sha256=75462f1fb86e05f3d20789607f4328a0dcae9e58a48ba8a7cc0c5bc4aea439ef, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:102#sha256=5c51652288c886aaafb0508f6dbf9dc341782e35420931d91198330745aebd5b, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:103#sha256=3ee760d7979531e9bffb1ac5000efbb83d95cea760dcc2858a6988a68b74db61, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:109#sha256=536efcbc2ef4bb6b10d9a98b55a426ce15714667b1a3fb48274f81cc109426f5, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:110#sha256=060fbfbeee2381b829f2eae191b13e207cd4e0638614bf083a94c98d2d07326c, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:111#sha256=473ef97020feaa26f5b0c187a20927f5c0f494fc41e7623b2d35250f80432450, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:112#sha256=317a9259e61b918aa0613f3e5f930e19c0b88cda2f2d49b98dfaed3c557d5d45, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:113#sha256=5d5ff53b1ced9c99caab9fb2a7db5b8077004529cf2a7f12268735f046c14f3f, agent-connector-sdk/specs/SCION-SOURCE-INGEST/requirements.md:114#sha256=8156161d12158f9abae0220d7dd1c71ca4507a541d593882a3191a0f0b20577b, meristem/specs/au-integration-reliability/requirements.md:28#sha256=39b6562dd71932de65a9932e503ec4de7751a7d4be0290dd4ed3c6e6652aea99, meristem/specs/harness-evolution/requirements.md:78#sha256=2120d55236f5a2a34eaf8935326377dd202d8643d661a95e39bf13868fb1cf59, meristem/specs/harness-evolution/requirements.md:79#sha256=a8a7c4a61a0b0315de5cb294eef886621d6a919fa32bc09227101ecd8c42c63f, meristem/specs/harness-evolution/requirements.md:80#sha256=05c42e4beed57e532283525e61957f003c35de84cb58a3506b8f537cb3c54ba6, meristem/specs/harness-evolution/requirements.md:81#sha256=ffbfda6a61b94b4435bbcd37510c9234c7fb8ccc2de58604c39dcf6a2bd19dc3, meristem/specs/harness-evolution/requirements.md:82#sha256=f7ef7e6ef3f5b93aa4294dbb1371a21f1cf29ae7ec62c739a11deec7782d45c5, meristem/specs/harness-evolution/requirements.md:83#sha256=ee4cd7755f8396f563e9ed33c5c5871daca2d42d4b1adc15403cb817bdd730eb, meristem/specs/harness-evolution/requirements.md:84#sha256=1c927a677f7b84879703c0c1239477462cb2ffd3a21212ff3c49fbf8a4905cca, meristem/specs/harness-evolution/requirements.md:85#sha256=d78a3c773ac3dc764fc56c8e833b019fc52edf78df8c6dfe30cb35aefc00c857, meristem/specs/harness-evolution/requirements.md:86#sha256=9980f6739ed10aefaf5a5e973d3fec51866ccf8d851ad1be56a5f5bed3e87bc3, meristem/specs/harness-evolution/requirements.md:87#sha256=ea7d9534b77169253c6c5e2bf32b269dc53e2def9559875e3e533344e9501463, meristem/specs/harness-evolution/requirements.md:88#sha256=a5e27b14b1c6db7169c943e03e1ca82efe27d051cc6eb874589a70646df5bb1a, meristem/specs/harness-evolution/requirements.md:89#sha256=645fb034990cf006ef3d9e5c8db0b5bdf2a2f7e4bb9f8d987267d999cd05b9fe, meristem/specs/harness-evolution/requirements.md:90#sha256=a3c86d310180d2daf9536f3ae912e6958c08f057c98ed5aa8842325a9e89db71`. This definition does not assert these tests have run.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.4
AU:53 Arbora definition slice
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**AU:53 Arbora definition slice.** AU:53 cross-owner slice. Residual: The contract does not define grading every output or converting checker findings into the next instruction. It also omits durable continuation until no fixes remain or a bound is reached. A once-per-evaluation-round gate plus a run API does not establish that feedback loop. Arbora minimum action: Extend the existing runner/evaluation loop contract with every-output checker feedback, findings-to-next-instruction. Durable continuation and no-fixes/bound stopping rules; preserve R022 fail-closed scope/idempotency criteria. Producer/consumer boundary: AU triggered runner/output -> checker/evaluation report -> EG authority and durable state. Arbora exposes the loop status/run/pause facade. The report-to-next-instruction and stopping links remain undefined. External engine, SDK, AU, Pipelines or WebUI behavior remains owned there; this row specifies only Arbora. Current IDs: `ARBORA-OPS-R022, MERISTEM-HARNESS-R021, MERISTEM-HARNESS-R003`. Source record SHA-256: `3432e0278c2f92fce06790822ed67bd032678dcf58ab47c2a76934dfd9356199`. Reviewed evidence paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-24-owner-supplements.json, spec-audit/writer-queue-merged/agent-utilities.tsv:53, meristem/specs/harness-evolution/requirements.md:7#sha256=647388f1d7122d54ada7d05db4010abd8cd64d7677c5be11f5a4e2c4ddbcf85e, meristem/specs/harness-evolution/requirements.md:100#sha256=73eb8c3e4b8fa8e15715730c8a52dc5c6c48048eabb1bdb3f7ef422b2d895a65, arbora/specs/hosted-api-operations/requirements.md:52#sha256=00a3f51ddcde9bedb3edbbe07293f9b7610e10212e9be4f93df2b7809386f6b7, meristem/specs/harness-evolution/requirements.md:105#sha256=17fc83fc314533c54b52e10691f758e762c25ecdc14e5897ced05993520446ee, meristem/specs/harness-evolution/requirements.md:107#sha256=70526a562b833c993d0b0dd5888d871afd291a21ae6bdac4cb35a90669081ed8, arbora/specs/hosted-api-operations/requirements.md:54#sha256=d8c69732119b9efd110bc34158c3782be3ac3914844a8564936c35fe22dcbe9f`. Packet row: `spec-audit/reconciliation/repository-batches-20261012/arbora.json#/rows/21`. No implementation or runtime evidence is claimed. Caller chain: Planned for the loop continuation; the existing facade is `arbora/api/ops/work.py` (`handle_work` at line 55, ops `work.items.list`, `work.items.get`, `work.offers.create` at lines 94-113) and `arbora/api/ops/runs.py:142` (`operations()`), reached from `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). The checker-feedback and stopping links are not in code. Shape: Arbora adds only a typed status/run/pause surface in `arbora/api/ops/work.py` (service-bound runner facade, as `decide`); the checker findings, next instruction and stop rule live in the harness and engine, with Arbora keeping R022 fail-closed scope and idempotency. | Future Arbora tests must prove the owner behavior and cover every positive, refusal, and zero-effect case defined above. Retain all existing parent acceptance for IDs `ARBORA-OPS-R022, MERISTEM-HARNESS-R021, MERISTEM-HARNESS-R003`. Use the exact reviewed source paths: `spec-audit/reconciliation/fresh-validation-20261012/semantic-reviews/incoming-24-owner-supplements.json, spec-audit/writer-queue-merged/agent-utilities.tsv:53, meristem/specs/harness-evolution/requirements.md:7#sha256=647388f1d7122d54ada7d05db4010abd8cd64d7677c5be11f5a4e2c4ddbcf85e, meristem/specs/harness-evolution/requirements.md:100#sha256=73eb8c3e4b8fa8e15715730c8a52dc5c6c48048eabb1bdb3f7ef422b2d895a65, arbora/specs/hosted-api-operations/requirements.md:52#sha256=00a3f51ddcde9bedb3edbbe07293f9b7610e10212e9be4f93df2b7809386f6b7, meristem/specs/harness-evolution/requirements.md:105#sha256=17fc83fc314533c54b52e10691f758e762c25ecdc14e5897ced05993520446ee, meristem/specs/harness-evolution/requirements.md:107#sha256=70526a562b833c993d0b0dd5888d871afd291a21ae6bdac4cb35a90669081ed8, arbora/specs/hosted-api-operations/requirements.md:54#sha256=d8c69732119b9efd110bc34158c3782be3ac3914844a8564936c35fe22dcbe9f`. This definition does not assert these tests have run. Planned test: `tests/api/test_loop_feedback_ops.py::test_loop_status_run_pause_fail_closed_until_bound`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R050.2.1
Bind a reviewed policy source to the active policy
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bind a reviewed policy source to the active policy.** Subsystem: policy operations. Caller: `handle_policy_change` → `arbora/api/ops/policy.py::PolicyActivationPort.bind_source` (new) → served operation `eg.graph.PolicySourceBind`. After a human review, arbora sends `source_ref`, `source_revision`, `source_digest`, `policy_iri` and `approver`. The values come from the review receipt of `ARBORA-OPS-R071`. The engine side is `MEDULLA-SRC-AUTH-R801`. A rejected or stale review sends nothing. The engine refusals `POLICY_SOURCE_DIGEST_MISMATCH`, `POLICY_SOURCE_STALE` and `POLICY_SOURCE_UNREVIEWED` pass through unchanged. Each leaves the file and the active policy unchanged. Arbora never writes the source file. A source change uses governed write-back with approval. Writes: none in arbora. Depends: `MEDULLA-SRC-AUTH-R801`, `ARBORA-OPS-R071`, `ARBORA-OPS-R050.2`. Caller chain: Planned: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` -> `handle_policy_change` (new in `arbora/api/ops/policy.py`; today the module has only `handle_policy_read` at line 36) -> `PolicyActivationPort.bind_source` (new) -> engine operation `eg.graph.PolicySourceBind` dispatched at `arbora/api/invoke/executor.py:282` (`BoundOperationRuntime.dispatch`, `eg` binding). Shape: Add `PolicyActivationPort` as a Protocol beside `PolicyReader` in `arbora/api/ops/policy.py`; the write op uses `build_write_op` from `arbora/api/ops/_common.py` with the params named in the row. Engine refusals pass through `EngineRefusal` (`arbora/api/invoke/executor.py:287`) and `_typed_refusal`; arbora holds no source file. | Test: `tests/api/test_policy_source_bind_served.py::test_bind_sends_receipt_fields_and_stale_review_leaves_policy_unchanged` (L3). It calls the registry over HTTP and MCP with a recorded engine. It asserts the sent fields, the three refusals and zero source writes.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R009.2
Refusal causes are logged
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Refusal causes are logged.** The invoke pipeline and the error envelope must log the internal cause of an `UNAVAILABLE`, `INTERNAL` or `INDETERMINATE` outcome server-side. The log names the operation, the request ID and the exception. The client envelope stays redacted and carries the same request ID. A provider-schema refusal logs its first validation message, bounded to 300 characters. An engine refusal logs the engine code and its bounded diagnostic detail. Caller chain: `arbora/api/invoke/pipeline.py:918` (`_dispatch_outcome`, warning at line 946 for `INTERNAL`, timeout warning at line 935) and `arbora/api/errors.py:490` (`to_envelope`, warning at line 503 for `UNAVAILABLE`/`INTERNAL`) ; reached from `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). Engine refusals log at `arbora/api/invoke/executor.py:296`; provider-schema refusals at `arbora/api/invoke/steps.py:160`. Shape: Reuses module-level `_logger` calls in `pipeline.py`, `errors.py`, `executor.py` and `steps.py`; the engine detail is cut to 300 characters and the provider-schema message to `_LOG_DETAIL_CHARS = 300` (`arbora/api/invoke/steps.py:17`). The client envelope is built only from reviewed fields, so no log text reaches it. | `tests/api/test_refusal_causes.py::test_refusal_cause_is_logged_with_request_id` observes the logged cause and the redacted envelope.
requirementARBORA-OPSVERIFIED0884ed403bbf
38a3cbefd076
5b9f20060f40
9375e364cfde
tests/api/test_refusal_causes.py:26
tests/api/test_refusal_causes.py:54
tests/api/test_refusal_causes.py:76
ARBORA-OPS-R009.3
Declared replay owners
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Declared replay owners.** An ops module may export `NATIVE_IDEMPOTENCY`: operation ID to replay owner. The invoke pipeline must collect every module's declaration. A governed write without a declared owner or the effect journal answers `UNAVAILABLE` with reason `durable effect owner unavailable`. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`); the declaration lookup is `_declared_owners` at `arbora/api/invoke/pipeline.py:138` and `_with_owned_idempotency` at line 160; the refusal is raised in `_execution_refusal` at line 730 (return at line 740). Shape: `_declared_owners` walks `pkgutil.iter_modules(arbora.api.ops.__path__)` and merges each module's `NATIVE_IDEMPOTENCY` dict (e.g. `arbora/api/ops/agents.py:99`, `arbora/api/ops/memory.py:38`, `arbora/api/ops/research.py`); no per-module registration list. | `tests/api/test_refusal_causes.py::test_ops_modules_declare_replay_owners` finds `agents.run` and a test module's declaration.
requirementARBORA-OPSVERIFIED0884ed403bbf
tests/api/test_refusal_causes.py:43
ARBORA-OPS-R009.4
A typed refusal names its reason, never its input
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**A typed refusal names its reason, never its input.** An `INVALID_ARGUMENT` envelope keeps `field`, the field-name lists `fields`, `unexpected`, `missing`, `invalid` and `required`, and an Arbora-authored `reason`. Each value is bounded, and the envelope drops every other key. An input that misses its engine contract schema names its unexpected, missing and invalid fields, never a value. An engine refusal keeps its detail text in the operator log. The envelope gets only the first upper-snake reason code and its `at line:column` position. Arbora refuses a connector prompt call that omits a declared required argument. The `INVALID_ARGUMENT` refusal names the missing arguments, and arbora sends nothing to the child. A child that reports missing prompt arguments gets the same refusal. Any other child prompt failure is the child's own `CHILD_REFUSED` with its redacted detail, never `INTERNAL`. Validation run 2026-10-24 gaps G14 and G10: `query.uql` with `query` in place of `text` was refused with empty details. `create_branch_prompt` without arguments answered `INTERNAL`. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`, `invoke` call at line 160) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/pipeline.py:985` (`_typed_refusal`) -> `arbora/api/errors.py:490` (`to_envelope`) -> `_public_details` (line 280) -> `_argument_details` (line 228); provider-schema path `arbora/api/invoke/steps.py:148` (`_validate_provider`). Prompt path: `arbora/fleet/gateway_ops.py:475` (`prompts_get`) -> `_require_prompt_arguments` (line 47, called at line 487) and `_prompt_refusal` (line 66, called at line 497). Shape: `_argument_details` in `arbora/api/errors.py` keeps only the reviewed list keys (`_ARGUMENT_LISTS`, line 215) and a bounded `reason`; `engine_reason_details` (line 249) keeps the upper-snake code and position. Prompt refusals raise `OperationRefused` or `FleetRefusal(code="CHILD_REFUSED")`, reusing the existing typed refusal path. | `tests/api/test_typed_refusal_details.py` drives the production registry through the invoke pipeline and the envelope. `tests/fleet/test_relay_session_recovery.py::test_a_prompt_called_without_its_arguments_is_a_typed_refusal` renders a real FastMCP child prompt; `::test_declared_required_prompt_arguments_are_checked_before_the_child`.
requirementARBORA-OPSVERIFIED25c198540020
66869917498c
96b68a9b5e5c
ccf85099e9da
tests/api/test_typed_refusal_details.py:17
tests/fleet/test_relay_session_recovery.py:173
tests/fleet/test_relay_session_recovery.py:207
ARBORA-OPS-R009.5
Forward the approval reference to connector calls
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Forward the approval reference to connector calls.** Caller: registered destructive operation → `arbora/api/invoke/pipeline.py::invoke` → `arbora/api/invoke/executor.py::BoundOperationRuntime.dispatch`. After the approval check of ARBORA-OPS-R015, the pipeline sets `_meta["arbora/approval_ref"]` on the connector `tools/call`. It refuses denied, expired and wrong-operation approvals with the closed error enum before the call. Consumer: SCION-CONNECTOR-CONTROL-R050.4. Caller chain: Planned (not built; no `arbora/approval_ref` metadata exists in code): registered destructive operation -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `_dispatch` (line 489) -> `arbora/api/invoke/executor.py:282` (`BoundOperationRuntime.dispatch`) -> connector `tools/call` via `arbora/fleet/gateway_ops.py`. Shape: Carry the checked approval reference from the `_Call` (`arbora/api/invoke/pipeline.py:548`) through `ExecutionContext` into the connector call as `_meta`; refusals reuse `OperationRefused` and the closed `ArboraErrorCode` enum in `arbora/api/errors.py`. No new store. | Test: `tests/api/test_connector_approval_forward.py::test_destructive_call_carries_approval_ref` (L3) through the registry `invoke` over HTTP and MCP.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R009.6
Operator hook model and configuration
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Operator hook model and configuration.** Stage: invoke pipeline bootstrap. Caller: host bootstrap → `arbora/api/invoke/bootstrap.py` → `load_hooks` in new `arbora/api/invoke/hooks.py`. The new module is reached from `InvokeServices` in `arbora/api/invoke/pipeline.py`, which gains the field `hooks: HookChain`. Types: `HookPoint` (`input`, `output`), `HookSpec { name, point, op_ref }`, `HookDecision` (a closed union of `allow`, `redact { spans }` and `reject { code }`) and `Span { path, start, end }`. Configuration is the file `operator_hooks.json` under `config_dir()` of `arbora/core/settings.py`, key `hooks`: an ordered list of `HookSpec`. A hook is a reference to a registered operation. Arbora loads no code from the file. Bootstrap validation refuses a hook in three cases. Its `op_ref` is absent from the registry. Its operation has an effect other than `READ`. Its operation is another hook. A refusal stops the host start with the reason `hook_invalid`. Hooks run in declared order. Knob `operator_hooks.timeout_s` is `Fixed` at 2 seconds. Writes: none. Depends: `ARBORA-OPS-R009`. Shape: one new file `hooks.py` holding the types, `load_hooks` and `HookChain`; validate through one table of rules, and reuse `Registry.get`. Caller chain: Planned (not built; `arbora/api/invoke/hooks.py` does not exist): `arbora/api/invoke/bootstrap.py:311` (`build_invoke_services`) -> new `load_hooks` in `arbora/api/invoke/hooks.py` -> new field `hooks` on `InvokeServices` (`arbora/api/invoke/pipeline.py:175`); path from `arbora/core/settings.py:54` (`config_dir`). | Test: `tests/api/test_operator_hooks.py::test_bootstrap_refuses_absent_write_or_recursive_hook` (module test). Test: `tests/api/test_operator_hooks.py::test_hooks_load_in_declared_order` (module test). Hot-path proof: `ARBORA-OPS-R009.9`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R009.7
Input hook runs before the input is admitted
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Input hook runs before the input is admitted.** Stage: invoke pipeline, after `_resolve` and before `_confirmation_gate` in `invoke` (`arbora/api/invoke/pipeline.py`). Caller: the served route → `invoke` → `HookChain.run_input` in `arbora/api/invoke/hooks.py`. The chain calls each `input` hook with `{op_id, tenant, params}`. It invokes the hook operation through `invoke` itself with the host service principal, the flag `hooks_enabled` false and the same `request_id`. The hook sees the caller's tenant and never sees a credential. `allow` passes the params on. `redact` replaces each named span of a string param by the fixed text `[redacted]` and passes the result on. `reject` ends the call with `OpError(code)`, where `code` is the hook's code or `HOOK_REJECTED`. The next hook receives the output of the previous hook. A redacted param set must still pass `_arguments` validation. Writes: none. Depends: `ARBORA-OPS-R009.6`, `ARBORA-OPS-R042.3`. Shape: one method `run_input(request: HookRequest)` that dispatches through a table from decision kind to an apply function; reuse the span masker of `arbora/security/log_redaction.py`. Caller chain: Planned (not built): `arbora/api/http/routes.py:160` (`invoke`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`; the hook call goes after `_resolve` at line 642 and before `_confirmation_gate` at line 744) -> new `HookChain.run_input` in `arbora/api/invoke/hooks.py`. | Test: `tests/api/test_operator_hooks.py::test_input_hook_allow_redact_and_reject` (served: HTTP and MCP through the registry `invoke`) asserts the three decisions and the order of two hooks.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R009.8
Output hook runs before a response leaves
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Output hook runs before a response leaves.** Stage: invoke pipeline, in `_execute` after `_dispatch_outcome` and before `_record` (`arbora/api/invoke/pipeline.py`). Caller: the served route → `invoke` → `_execute` → `HookChain.run_output`. Each `output` hook receives `{op_id, tenant, result}`. The three decisions apply as in `ARBORA-OPS-R009.7`. The outcome after the hooks is the outcome that `_record` writes to the effect journal. A replay therefore returns the same response. A `reject` at the output point replaces the result by `OpError(code)`. The effect has already happened, and the audit record states this with `effect_applied` true. An `OpError` result passes the output hook only when the hook has the flag `include_errors`. The default is false. Writes: none. Depends: `ARBORA-OPS-R009.7`, `ARBORA-OPS-R042.3`. Shape: reuse the apply table of `run_input`; add the call as one line in `_execute`. Caller chain: Planned (not built): `arbora/api/http/routes.py:160` (`invoke`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `_execute` (line 998) -> after `_dispatch_outcome` (line 918) and before `_record` (line 589) -> new `HookChain.run_output` in `arbora/api/invoke/hooks.py`. | Test: `tests/api/test_operator_hooks.py::test_output_hook_redacts_and_rejects_and_replay_matches` (served: HTTP and MCP) asserts the replayed response equals the hooked response.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R009.9
Hooks fail closed and record their decisions
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hooks fail closed and record their decisions.** Stage: invoke pipeline. A hook that raises, returns an unknown decision or exceeds `operator_hooks.timeout_s` (`Fixed`, 2 seconds) rejects the call. The code is `HOOK_FAILED`. The envelope names the hook and holds no hook output. No later hook runs. The effect journal receives the rejection like any other outcome. `audit_event` in `arbora/api/invoke/audit.py` gains the field `hooks`, a list of `{name, point, decision, duration_ms}`. The list holds no matched text. The same list enters the run trace when the call belongs to a run: `arbora/api/ops/run_graph.py` reads it from the audit event. Add `HOOK_FAILED` and `HOOK_REJECTED` to `arbora/api/errors.py`. Writes: the audit event only. Depends: `ARBORA-OPS-R009.7`, `ARBORA-OPS-R009.8`. Shape: one `asyncio.wait_for` wrapper in `hooks.py`; reuse the `_typed_refusal` path for the envelope. Caller chain: Planned (not built): `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> new `HookChain` in `arbora/api/invoke/hooks.py`; the rejection is recorded by `_record` (`arbora/api/invoke/pipeline.py:589`) and `audit_event` (`arbora/api/invoke/audit.py:13`) gains `hooks`. | Test: `tests/api/test_operator_hooks.py::test_timeout_error_and_unknown_decision_reject_with_hook_failed` (served) and `::test_decisions_are_recorded_without_matched_text` (served). Hot-path proof: `tests/api/test_operator_hooks.py::test_two_hooks_through_http_and_mcp` enters through the HTTP route and the MCP tool.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R059
Proposal outcome projection (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Proposal outcome projection (rollup).** Subsystem: arbora served operation `evolution.proposals.metrics`. It joins an evolution proposal to stored trace metrics through `Method::EvolutionTraceMetrics` (MEDULLA-ORCH-VOCAB-R010.100). Caller: `POST /api/v1/ops/evolution.proposals.metrics` or MCP → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_evolution_metrics` in new `arbora/api/ops/evolution_metrics.py`. Consumer: OVERSTORY-APPS-R004.7. Medulla owns proposal, progress and trace facts. The harness supplies progress facts (MERISTEM-HARNESS-CYCLE-R064). Children: `.1` models, `.2` behavior and wiring, `.3` refusals, `.4` proof. Producer method: `MEDULLA-ORCH-VOCAB-R010.100`. Consumer: `OVERSTORY-APPS-R004.7`. Depends: MEDULLA-ORCH-VOCAB-R010.100, MERISTEM-HARNESS-CYCLE-R064. | Root L3 journey: `tests/api/test_evolution_metrics_served.py::test_dashboard_joins_proposal_to_trace_metrics` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R060
Supported-harness discovery and session projections (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Supported-harness discovery and session projections (rollup).** Subsystem: arbora served operations `harnesses.manifest`, `harnesses.discovery.status`, `sessions.browse`, `sessions.search`, `sessions.costs`. The SDK owns source discovery and submission (SCION-SOURCE-INGEST-R013). Medulla owns indexed search and cost facts (MEDULLA-ORCH-VOCAB-R807). Arbora builds no host index. Caller: `POST /api/v1/ops/sessions.browse` or MCP → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_sessions_browse` in new `arbora/api/ops/sessions.py`. Consumer: OVERSTORY-APPS-R006.4. Children: `.1` models, `.2` harness operations, `.3` session operations, `.4` refusals, `.5` proof. `harnesses.manifest` serves the manifest file that the SDK reads, `~/.config/arbora/harness-manifest.json`. Arbora keeps no second list. Depends: SCION-SOURCE-INGEST-R013, MEDULLA-ORCH-VOCAB-R807. | Root L3 journey: `tests/api/test_sessions_served.py::test_browser_discovers_browses_and_searches_every_harness` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R062
Authenticated graph-change feed and recovery (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Authenticated graph-change feed and recovery (rollup).** Subsystem: arbora served operations `graph.changes.subscribe` and `graph.snapshot.recover`, and the stream route `/ws/graph/changes`. Producers: `Method::OpenGraphSnapshot` and `Method::ReadGraphChanges` (MEDULLA-DURABLE-KERNEL-R043.100). Caller: `POST /api/v1/ops/graph.changes.subscribe` returns `{cursor, stream_path}`. The client then opens the WebSocket route mounted by `register_graph_routes` in `arbora/gateway/graph_api.py`. Consumer: OVERSTORY-APPS-R030.8. The browser owns layout and frame metrics. Children: `.1` models, `.2` subscribe and stream, `.3` recovery, `.4` revocation and refusals, `.5` proof. The provider rows are `MEDULLA-DURABLE-KERNEL-R043.100.1` to `.3`. The refusal codes are `CURSOR_EXPIRED`, `AUTHORIZATION_CHANGED` and `GRAPH_INCARNATION_STALE`. Depends: MEDULLA-DURABLE-KERNEL-R043.100. | Root L3 journey: `tests/api/test_graph_changes_served.py::test_two_browsers_converge_under_gaps_reconnect_and_revocation` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R064
Viewport bins and selection (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Viewport bins and selection (rollup).** Subsystem: arbora served operations `graph.viewport.bins` and `graph.selection.resolve`. The engine owns the binning formulas and extrema (MEDULLA-FEDERATED-QUERY-R725). Arbora transports engine results. It applies no generic pagination or finance decimation. Caller: `POST /api/v1/ops/graph.viewport.bins` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_viewport_bins` in new `arbora/api/ops/viewport.py`. Consumer: OVERSTORY-APPS-R001.2. Children: `.1` models, `.2` behavior and wiring, `.3` refusals, `.4` proof. Depends: MEDULLA-FEDERATED-QUERY-R725. | Root L3 journey: `tests/api/test_viewport_served.py::test_scatter_and_line_interaction_over_large_source` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R065
Live meeting transcript and summary provider operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Live meeting transcript and summary provider operations (rollup).** Subsystem: arbora served operations `meetings.transcript.subscribe`, `meetings.providers.list`, `meetings.summary.create`, `meetings.summary.get`, and the stream route `/ws/meetings/{meeting_id}/transcript`. The SDK owns transport (SCION-SOURCE-INGEST-R014). Medulla owns transcript, context and admission facts (MEDULLA-MEDIA-VOCAB-R001.101). Consumer: OVERSTORY-APPS-R001.5. Caller: `POST /api/v1/ops/meetings.summary.create` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_summary_create` in new `arbora/api/ops/meetings.py`. Children: `.1` models, `.2` transcript stream, `.3` providers and summary, `.4` egress refusals, `.5` proof. It calls the medulla methods `MeetingTranscriptRevision`, `MeetingSummaryContext` and `MeetingSummaryCommit`. The admission and receipt flow is `ARBORA-OPS-R884`. Depends: MEDULLA-MEDIA-VOCAB-R001.101, SCION-SOURCE-INGEST-R014, `ARBORA-OPS-R884`. | Root L3 journey: `tests/api/test_meetings_served.py::test_ordered_corrections_finalization_and_provider_routes` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R066
Bounded bookmark search, relationships and export (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bounded bookmark search, relationships and export (rollup).** Subsystem: arbora served operations `bookmarks.search`, `bookmarks.relationships`, `bookmarks.export`. Medulla owns the semantic index and relationships (MEDULLA-MEDIA-VOCAB-R001.102). Caller: `POST /api/v1/ops/bookmarks.search` → `make_endpoint` in `arbora/api/http/routes.py` → `invoke` in `arbora/api/invoke/pipeline.py` → `handle_bookmarks_search` in new `arbora/api/ops/bookmarks.py`. Consumer: OVERSTORY-APPS-R001.6. Children: `.1` models, `.2` search and relationships, `.3` export, `.4` refusals, `.5` proof. The producers are the medulla methods `BookmarkSemanticSearch` and `BookmarkRelations`. Depends: MEDULLA-MEDIA-VOCAB-R001.102. | Root L3 journey: `tests/api/test_bookmarks_served.py::test_ingest_to_browser_search_relationships_and_export` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067
Web research operation composes search, selection, fetch and ingest (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Web research operation composes search, selection, fetch and ingest (rollup).** Subsystem: research operations. Served operation `research.web`. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/research.py::handle_research_web`. The caller needs scopes `ingest:write` and `mcp:delegate`. The handler composes engine web search, the engine page-selection decision `MEDULLA-DECISION-ENGINE-R802`, connector fetch, `SourceIngest` and engine enrichment `MEDULLA-UNIFIED-DATA-PLANE-R651.7`. It runs under one engine work item. It returns Document IDs with citations. arbora computes no ranking and stores no page text. Children `.1` to `.10` deliver it. | Test: `tests/api/test_research_web_served.py::test_research_web_default_archivebox_and_fallback` (served, HTTP and MCP). It asserts cited Documents for the default, `archivebox` and fallback runs.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.1
Model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Model.** Subsystem: research operations. `ResearchWebParams` and `ResearchWebResult` live in `arbora/api/ops/research.py`. They are not moved. Params are `query`, `urls`, `max_pages`, `backend`, `freshness_window_s` and `deadline_s`. Result fields are `work_item_id`, `decision_id`, `state`, `documents`, `skipped`, `fallbacks`, `ingest` and `embedding`. Bounds: `max_pages` 1 to 32, default 5. `deadline_s` 1 to 300 s, default 60. `freshness_window_s` 0 to 31,536,000 s, default 86,400. `backend` is `webarchiver` or `archivebox`, default `webarchiver`. A call must name `query` or 1 to 32 `urls`. `state` is `complete`, `partial` or `enriching`. A document entry holds the Document IRI and one citation per chunk. A citation names the URL, retrieval time, content digest, backend, query and rank. Pydantic rejects extra fields. Depends: none. Caller chain: `arbora/api/http/app.py:208` (`/ops/research.web`) -> `arbora/api/http/routes.py:122` -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/invoke/executor.py:313` -> `arbora/api/ops/research.py:686` (`handle_research_web`); registered in `operations()` at line 801; MCP entry: `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`, `projection.invoke` at line 244) -> `arbora/api/invoke/pipeline.py:1021`. Shape: `ResearchWebParams` (`arbora/api/ops/research.py:83`) and `ResearchWebResult` (line 98) subclass `Params` from `arbora/api/ops/_common.py`; a `model_validator` (`_query_or_urls`) enforces query-or-urls, and `Field` bounds give the stated limits. The result is a `value` dict; `NATIVE_IDEMPOTENCY` names `SourceIngest` as replay owner. | Test: `tests/api/test_research_ops.py::test_params_and_result_round_trip` (unit). It asserts a round trip keeps every field and refuses 33 pages and a call with neither query nor URLs.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.2
Behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Behavior.** Subsystem: research operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/research.py::handle_research_web` → `EgEnrich.select`. Step 1: a `query` call asks the engine web metasearch for one `WebCandidateSet` (`MEDULLA-UNIFIED-DATA-PLANE-R038.7.7`). A `urls` call skips this step and uses the URLs as candidates, in order. Step 2: the handler submits one engine work item with `arbora.work_items.submit_work_item_atomic`. The kind is `research_web`. The idempotency key is the query digest plus caller tenant. Step 3: it sends the candidates to the served `SelectWebPages` method, operation `eg.query.SelectWebPages` (`MEDULLA-DECISION-ENGINE-R802.3`) and fetches only the selected URLs. Step 4: after `SourceIngest`, it calls engine enrichment, operation `eg.ingestion.EnrichDocument` (`MEDULLA-UNIFIED-DATA-PLANE-R651.7`), for each stored Document. The work item commits with `arbora.work_items.commit_result` when every selected page has settled. Stop fetching at `deadline_s`. Remaining pages become skips with reason `deadline` and `state` is `partial`. `state` is `enriching` only when enrichment has not finished at the deadline. The caller then reads the work item through `ingest.jobs.status` (`ARBORA-OPS-R020.3.1.2`). Delete `InterimEnrich` and its stand-ins. `EgEnrich` binds to the engine client only. Depends: `ARBORA-OPS-R067.1`, `MEDULLA-DECISION-ENGINE-R802.3`, `MEDULLA-UNIFIED-DATA-PLANE-R651.7.1`, MEDULLA-UNIFIED-DATA-PLANE-R766. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::handle_research_web` (line 686) -> `EgEnrich.select` (`arbora/api/ops/research.py:638`), today bound to `InterimEnrich` (line 648) until the engine methods are wired. Shape: One handler in `arbora/api/ops/research.py`; reuses `FleetCaller` (line 326) for the search and `EgEnrich` (a Protocol) as the seam. The planned change replaces `InterimEnrich` with an engine-client adapter and adds the work-item submit and commit calls. | Test: `tests/api/test_research_ops.py::test_composes_four_steps_in_order` (served). The recording engine sees the search, the work item, the selection and the enrichment in that order. `test_deadline_returns_partial_or_enriching` asserts both states.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.3
Backend choice and fallback
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Backend choice and fallback.** `webarchiver` is the primary backend. `archivebox` is the secondary backend. A caller may select it explicitly with `backend=archivebox`. When the chosen backend refuses a page with `upstream_failed`, is unreachable or times out (`ARBORA-OPS-R067.9`), arbora must fetch that page once more with the other backend. arbora must not fall back after a policy refusal such as `robots_disallowed` or `policy_refused`. Both backends must produce identical ingest output: `SourceIngest`, then engine enrichment (`MEDULLA-UNIFIED-DATA-PLANE-R651.7`), then citations. Each citation and each provenance record must name the backend that produced the page. Proving tests: `tests/api/test_research_web_backends.py::test_explicit_archivebox_run` and `tests/api/test_research_web_backends.py::test_forced_fallback_run`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::handle_research_web` (line 686) -> `arbora/api/ops/research.py::fetch_page` (line 447) -> `fetch_webarchiver` (line 423) or `fetch_archivebox` (line 431) -> `_fetch_web_source` (line 368). Shape: Backend selection and one-shot fallback live in `fetch_page` of `arbora/api/ops/research.py`; failures are typed by `FetchFailed` (line 105) and `FALLBACK_REASONS`; both backends share the one `_fetch_web_source` path so ingest output is identical. | A `backend=archivebox` run and a forced-fallback run each return Documents equal to the primary run, except for the recorded backend.
requirementARBORA-OPSVERIFIED0b2c1da6bdb6
1a451cf70043
1c39905dafb3
42084de67928
5170b8a8edde
tests/api/test_client_http.py:31
tests/api/test_client_http.py:50
tests/api/test_research_ops.py:19
tests/api/test_research_ops.py:59
tests/api/test_research_ops.py:67
ARBORA-OPS-R067.4
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: research operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/research.py::operations`. `operations()` already registers `research.web` and the curated module loop of `arbora/api/ops/registry_factory.py::get_registry` already loads the module. Keep both. The handler reads the ingest writer from `context.services['web_ingest']` (port `WebIngest`, default `SourceIngestWriter`) and the engine from `context.client`. An absent engine client refuses `UNAVAILABLE`. Titles and snippets in the result pass the open-web screen that `invoke` runs (`ARBORA-OPS-R042.3`). The handler adds no screen of its own. The operation `research.web` declares `content_origin` `open_web` in its OpSpec. Depends: `ARBORA-OPS-R067.2`, `ARBORA-OPS-R042.3`, `ARBORA-OPS-R020.1`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::operations` (line 801), loaded by the curated module loop of `arbora/api/ops/registry_factory.py::get_registry` (line 16). Shape: `research.web` is one `OpSpec` with a `Composite` binding to `handle_research_web`; the handler reads services through `context.services` and the shared `bound_service` convention of `arbora/api/ops/_common.py`. The open-web screen stays in the invoke pipeline. | Test: `tests/api/test_research_web_served.py::test_served_invoke_reaches_handler` (served). A served call reaches the handler, the ingest writer and the screen in that order.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.5
Refusal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Refusal.** Subsystem: research operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `handle_research_web`. Refusals use the closed Arbora codes of `ArboraErrorCode`. A caller without `ingest:write` receives `SCOPE_REQUIRED`. An engine abstention from `SelectWebPages` passes through with its code (`WEB_SELECTION_QUERY_MISSING`, `WEB_SELECTION_NO_CANDIDATES`, `WEB_SELECTION_TOO_MANY_CANDIDATES`, `WEB_SELECTION_BUDGET_INVALID`). It enqueues no fetch. An unreachable engine returns `UNAVAILABLE` with reason `decision_unavailable`. An unknown backend returns `INVALID_ARGUMENT` with field `backend`. An absent ingest writer returns `UNAVAILABLE` with reason `ingest_unavailable`. Arbora never ranks, fetches or ingests on its own after a refusal. Depends: `ARBORA-OPS-R067.2`, `MEDULLA-DECISION-ENGINE-R802.4`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::handle_research_web` (line 686). Shape: Refusals are raised from `handle_research_web` and mapped to `ArboraErrorCode` (`arbora/api/errors.py:16`) by the invoke pipeline; scope enforcement comes from the `OpSpec.scopes` in `operations()` and engine abstentions pass through unchanged. | Test: `tests/api/test_research_ops.py::test_research_web_refusals` (served). Each case returns its code and leaves zero fetches and zero ingest calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.6
Evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evidence.** Subsystem: research operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `handle_research_web` → audit event of `arbora/api/invoke/audit.py::audit_event`. The operation has `AuditClass.EVENT`. The audit event must record the query digest, the `SelectWebPages` decision ID and the work item ID. It must record the backend of each page, the fallback count and the Document IDs. It must not record page text, titles or snippets. The write path is the existing invoke audit writer. Depends: `ARBORA-OPS-R067.2`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::handle_research_web` (line 686); the audit event is built by `audit_event` (`arbora/api/invoke/audit.py:13`), called from the pipeline at `arbora/api/invoke/pipeline.py:789`. Shape: `research.web` declares `AuditClass.EVENT` in `operations()` (`arbora/api/ops/research.py:814`); the decision ID, work item ID, backends and fallback count are added to the existing audit event, with no new writer. | Test: `tests/api/test_research_ops.py::test_trace_names_decision_and_backends` (served). The audit event holds every named field and no page text.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.7
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: research operations. Caller: the served `research.web` operation over MCP and HTTP → `handle_research_web`. Fixtures: the `searxng`, `webarchiver` and `archivebox` fakes of `tests/api/_research_fakes.py` and a recording engine client. Three calls run: the default, `backend=archivebox`, and a forced fallback where the `webarchiver` fake fails with `upstream_failed`. Depends: `ARBORA-OPS-R067.2`, `ARBORA-OPS-R067.4`. Caller chain: MCP tool registration (`arbora/api/mcp/registration.py::register_mcp_tools`, line 233) and HTTP (`arbora/api/http/routes.py:160`) -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/research.py::handle_research_web` (line 686). Shape: One test module drives the served operation on both surfaces using the fakes in `tests/api/_research_fakes.py` and a recording engine client; no production code beyond `handle_research_web` changes. | Test: `tests/api/test_research_web_served.py::test_research_web_default_archivebox_and_fallback` (served, HTTP and MCP). Each call returns Document IDs with citations naming the source URL and the backend. The stored Documents for one page are equal across the three calls, except the backend.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R067.8
Web-source contract
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Web-source contract.** Both backends fetch through the connector SDK web-source contract tool `web_extract`. The argument is `{"request": WebFetchRequest}`. A `kind: page` answer becomes the page, with its `text_markdown` as the text. A `kind: refusal` answer becomes a skip with its reason. A flat `{"url": ...}` argument is not sent. Proving test: `tests/api/test_research_web_backends.py::test_backends_use_the_sdk_web_source_contract`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::handle_research_web` (line 686) -> `arbora/api/ops/research.py::fetch_page` (line 447) -> `_fetch_web_source` (line 368) -> `FleetCaller.call` (line 351) with tool `web_extract` (`WEB_EXTRACT`, line 57). Shape: `_fetch_web_source` in `arbora/api/ops/research.py` builds the `{"request": WebFetchRequest}` argument and maps the `page` or `refusal` answer to a page or a skip; both backend wrappers reuse it.
requirementARBORA-OPSVERIFIEDcef41e50fd0d
tests/api/test_research_web_backends.py:135
ARBORA-OPS-R067.9
Bounded page fetch
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bounded page fetch.** Each `web_extract` call has a bound of `PAGE_TIMEOUT_S` (30 s). The bound never runs past the operation `deadline_s`. A backend that does not answer within the bound fails the page with reason `timeout`. That reason is fallback-eligible under `ARBORA-OPS-R067.3`. When both backends time out, the page is a `timeout` skip, and the operation still answers within its deadline. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::handle_research_web` (line 686) -> `arbora/api/ops/research.py::fetch_page` (line 447) -> `_page_timeout` (line 439) -> `_fetch_web_source` (line 368). Shape: `PAGE_TIMEOUT_S` (line 78) is applied with `asyncio` timeouts in `_fetch_web_source`; `_page_timeout` caps it at the remaining operation deadline, and a `timeout` reason is in the fallback-eligible set used by `fetch_page`. | `tests/api/test_research_web_backends.py::test_hanging_archivebox_times_out_and_falls_back` returns a webarchiver page with `fallback_from: timeout` when archivebox never answers. `test_both_backends_hanging_skip_within_the_bound` returns a `timeout` skip. `test_page_timeout_never_passes_the_deadline` caps the bound at the remaining deadline.
requirementARBORA-OPSVERIFIED0b2c1da6bdb6
tests/api/test_research_web_backends.py:173
tests/api/test_research_web_backends.py:190
tests/api/test_research_web_backends.py:206
ARBORA-OPS-R067.10
Admit revision-bound web-source conformance
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Admit revision-bound web-source conformance.** Subsystem: fleet admission. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/research.py::fetch_page` → `FleetCaller.call` → new `arbora/fleet/conformance.py::require_current_evidence`. Before each `web_extract` call, `require_current_evidence` reads the engine conformance evidence record for the connector (MEDULLA-TYPED-PACKS-R807). It compares five fields: tenant, connector, deployed immutable revision, pack digest and both live tool fingerprints. The deployed revision and fingerprints come from fleet onboarding (`arbora/fleet/onboarding.py`). Missing, expired, revoked or mismatched evidence refuses `POLICY_DENIED` with reason `conformance_evidence_missing`, `conformance_evidence_expired`, `conformance_evidence_revoked` or `conformance_evidence_mismatch`. A refusal happens before any backend call. The check reads the engine and writes nothing. No operator flag grants admission. Depends: MEDULLA-TYPED-PACKS-R807, SCION-CENTRALIZED-CAPABILITIES-R041, `ARBORA-OPS-R067.9`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/research.py::fetch_page` (line 447) -> `FleetCaller.call` (line 351) -> new `arbora/fleet/conformance.py::require_current_evidence` (file not yet present). Shape: New module `arbora/fleet/conformance.py` with one async function that reads the engine evidence record through the caller-bound client and compares five fields; the deployed revision and fingerprints are read from `arbora/fleet/onboarding.py`. `FleetCaller.call` invokes it before the dispatch. | Test: `tests/api/test_research_web_served.py::test_web_conformance_admission` (served). It makes one permitted dispatch with current evidence. Each missing, expired, revoked, changed or cross-tenant case makes zero backend calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R068
Served harness component and improvement library operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served harness component and improvement library operations (rollup).** Subsystem: harness operations. Operations `harness.components.list`, `harness.components.get`, `harness.lessons.retrieve`, `harness.evolution.report` and `harness.evolution.adopt`, all in new `arbora/api/ops/harness.py`. Reads bind to engine queries of `MEDULLA-ORCH-VOCAB-R801` and `MEDULLA-ORCH-VOCAB-R802`. The adoption binds to the decision record of `MEDULLA-DECISION-ENGINE-R803`. The consumer is the harness cycle `MERISTEM-HARNESS-CYCLE-R001`. arbora computes no ranking and stores no harness content. Children `.1` to `.4` deliver it. | Test: `tests/api/test_harness_ops_served.py::test_list_retrieve_report_and_adopt_served` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R068.1
Component reads
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Component reads.** Subsystem: harness operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/harness.py::handle_components_list` and `handle_components_get`. Register both in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry` with `Effect.READ` and scope `kg:read`. Each calls the engine `Uql` method with the named query `current_harness_component(component_id, as_of)` of `MEDULLA-ORCH-VOCAB-R801.2` under the caller-bound path. The list is cursor-paged with page size 50 (maximum 200) and scoped to the caller's readable objects. A result holds `component_id`, `kind`, `content_digest`, `valid_from`, `valid_to`, `confidence` and `evidence_run_id`. An absent engine client refuses `UNAVAILABLE`. An unknown `component_id` refuses `NOT_FOUND`. Writes nothing. Depends: `MEDULLA-ORCH-VOCAB-R801.2`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/harness.py::handle_components_list` and `handle_components_get` (module not yet present), registered in the curated loop of `arbora/api/ops/registry_factory.py::get_registry` (line 51). Shape: New `arbora/api/ops/harness.py` modelled on the read-op builders in `arbora/api/ops/_common.py` and `arbora/api/ops/source.py::_read_op` (line 351); engine `Uql` calls go through the caller-bound client. Unbuilt; gated by `ARBORA-OPS-R068.5`. | Test: `tests/api/test_harness_ops_served.py::test_components_list_and_get_served` (served). It returns versions with digests and intervals. An absent client returns `UNAVAILABLE`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R068.2
Lesson query
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Lesson query.** Subsystem: harness operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/harness.py::handle_lessons_retrieve`. Scope `kg:read`, `Effect.READ`. The handler calls the engine named query `retrieve_lessons(task_class, deficiency, trajectory_features)` (`MEDULLA-ORCH-VOCAB-R802.3`) through `Uql`. The engine orders hits by confidence. arbora keeps that order and does not re-sort. Each hit carries its evidence run IDs. An engine `NoLessons` answer returns an abstention that names that reason. Params: `task_class`, `deficiency` and 0 to 16 `trajectory_features`. Writes nothing. Depends: `MEDULLA-ORCH-VOCAB-R802.3`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/harness.py::handle_lessons_retrieve` (module not yet present). Shape: Handler in the new `arbora/api/ops/harness.py` reusing the read-op pattern of `arbora/api/ops/source.py::_read_op` (line 351); it forwards the engine named query and keeps the engine order. Unbuilt. | Test: `tests/api/test_harness_ops_served.py::test_lessons_retrieve_ranks_by_confidence` (served). The order equals the engine order. An empty answer abstains with `NoLessons`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R068.3
Evolution report
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evolution report.** Subsystem: harness operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/harness.py::handle_evolution_report`. Scope `kg:read`, `Effect.READ`. The handler reads one task's `HarnessContrast` (`MEDULLA-ORCH-VOCAB-R802.1`) and the `HarnessContrastDecision` record (`MEDULLA-DECISION-ENGINE-R803.1`) through the caller-bound engine path. Policy is checked on both reads. A caller denied on either read receives `SUBJECT_ACCESS_DENIED` and neither payload. The report holds the decision ID, the contrast digest and the adopted version reference. Writes nothing. Depends: `MEDULLA-DECISION-ENGINE-R803.1`, `MEDULLA-ORCH-VOCAB-R802.1`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/harness.py::handle_evolution_report` (module not yet present). Shape: Handler in the new `arbora/api/ops/harness.py`; two caller-bound engine reads, both policy-checked, with a single refusal path. Unbuilt. | Test: `tests/api/test_harness_ops_served.py::test_evolution_report_denial_hides_both` (served). The allowed caller sees both. The denied caller sees only the refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R068.4
Adoption (service-only)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Adoption (service-only).** Subsystem: harness operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/harness.py::handle_evolution_adopt`. Beside `decide.commit` (`arbora/api/ops/decide.py`, `ARBORA-OPS-R021.1`): `Executor.SERVICE`, `PrincipalRule.SERVICE_ONLY`, `executor_scopes` `decide:commit`, `subject` `SubjectSource.CALLER_TENANT`, `AuditClass.EVENT`, `Idempotency.KEY_REQUIRED`. The handler commits only a `HarnessContrastDecision` record that names `MEDULLA-DECISION-ENGINE-R803` and an adopted version reference. It forwards the record to the engine `DecisionCommit` method. The engine writes the adopted harness (`MEDULLA-ORCH-VOCAB-R802.1`). A human-scoped token is refused `PRINCIPAL_NOT_ALLOWED`. A record that does not name `R803` is refused `INVALID_ARGUMENT` with field `decision_kind`. The caller read check on the subject runs before the commit. `harness.evolution.adopt` binds to the `DecisionLog` op `HarnessAdoption` (`MEDULLA-DECISION-ENGINE-R803.8`). It carries the evaluated revision of `Definition { HarnessBundle, <agent_ref>:<task_class> }` (`MEDULLA-DECISION-ENGINE-R805.10`). Depends: `ARBORA-OPS-R021.1`, `MEDULLA-DECISION-ENGINE-R803.3`, `MEDULLA-DECISION-ENGINE-R803.8`, `MEDULLA-DECISION-ENGINE-R805.10`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/harness.py::handle_evolution_adopt` (module not yet present), declared beside `decide.commit` (`arbora/api/ops/decide.py:64`, handler `handle_decide_commit` line 43). Shape: Copies the `OpSpec` shape of `decide.commit` in `arbora/api/ops/decide.py` (service-only executor, key-required idempotency) and forwards one record to the engine `DecisionCommit` method. Unbuilt. | Test: `tests/api/test_harness_ops_served.py::test_adopt_refuses_human_token` (served). A service call stores one adoption with one audit event.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R068.5
Registration gate
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Registration gate.** The `harness.*` operations of ARBORA-OPS-R068.1-.4 stay unregistered (absent from the served catalog, `find` and the OpenAPI contract) until a published medulla release carries the generated wire senders for MEDULLA-ORCH-VOCAB-R801, MEDULLA-ORCH-VOCAB-R802 and MEDULLA-DECISION-ENGINE-R803. A served operation whose every call can only answer `UNAVAILABLE` must not be listed. Proving test: `tests/api/test_registry_factory.py::test_harness_operations_unregistered_until_engine_senders`. Caller chain: `arbora/api/ops/registry_factory.py::get_registry` (line 16) -> the curated module loop (line 51), which lists no `harness` module today. Shape: The gate is the absence of `harness` from the module tuples in `get_registry`; adding it is a one-line change once the engine senders are generated by `arbora/api/registry/eg_binding.py::load_eg_bindings` (line 370).
requirementARBORA-OPSVERIFIEDa11292f08cb2
d673cd573c77
tests/api/test_registry_factory.py:366
ARBORA-OPS-R700
Readiness snapshot joins independent probes
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Readiness snapshot joins independent probes.** `arbora/observability/readiness.py` exposes `collect_readiness_snapshot(probes, required, deadline_s, now)` returning the `arbora.readiness.v1` envelope. Probes run concurrently on a pool sized to the probe count; a probe that raises, overruns its deadline or returns an unknown state reports `unavailable`, never `ready`. A failed or missing required check (`engine`, `catalog`, `synthetic_query` by default) makes the snapshot `unavailable`; any other non-ready check makes it `degraded`. Identity is `ready` only for a session whose actor is authenticated. Every call re-probes; nothing is cached. `GET /dashboard/readiness` serves the snapshot from the engine probe and the probes added with `register_probe`. Budget: rollup under 1 ms for 16 probes, memory under 2 MiB beyond probe cost; wall time is bounded by the deadline. Caller chain: HTTP `GET /dashboard/readiness` (`arbora/gateway/dashboard_api.py:226`, `readiness_check`) -> `arbora/observability/readiness.py::collect_readiness_snapshot` (line 74). Shape: One module `arbora/observability/readiness.py` with the snapshot collector, `register_probe` (line 109) and `check`; `_engine_probe` in `arbora/gateway/dashboard_api.py` is the default required probe. | `tests/observability/test_readiness.py` covers all-ready, each failure mode, optional degradation, missing required checks and the identity rule. Test: `tests/observability/test_readiness.py::test_all_ready`.
requirementARBORA-OPSVERIFIED0978f146c1dc
fb0bc5b69328
tests/observability/test_readiness.py:31
tests/observability/test_readiness.py:47
tests/observability/test_readiness.py:54
tests/observability/test_readiness.py:68
ARBORA-OPS-R843
Served engine operations replace the in-run meristem tool wrappers
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served engine operations replace the in-run meristem tool wrappers.** The meristem modules `tools/kg_tools.py`, `tools/knowledge_tools.py`, `tools/code_intelligence_tools.py` and the session-admission part of `protocols/acp_adapter.py` wrap engine calls. arbora serves the same behaviour as generated `eg.<domain>.<Method>` operations and `ARBORA-ACP-R001`, so the wrappers have no remaining job. Split into `ARBORA-OPS-R843.1` (the delivered part) and `ARBORA-OPS-R843.2` (the modules that are not engine wrappers). | Closes when both children close.
requirementARBORA-OPSVERIFIED379bfc44c56b
975af1a48a26
a78249aec3fd
tests/api/test_au_tool_parity.py:56
tests/api/test_au_tool_parity.py:69
ARBORA-OPS-R843.1
Delivered wrapper behaviour
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Delivered wrapper behaviour.** Hybrid search, recall and read-only structured query (`kg_tools`), search, code impact, memory create/read/update/delete and node links (`knowledge_tools`), definition, callers, call graph, impacted tests and dependencies (`code_intelligence_tools`) are served by `eg.query.UnifiedQuery`, `eg.query.Uql`, `eg.ingestion.SemanticSearch`, `eg.graph.GetSubgraph`, `eg.graph.GetNeighbors`, `eg.compute.GetBlastRadius`, `eg.ingestion.IndexRepository`, `eg.graph.AddNode`, `eg.graph.AddEdge` and `eg.graph.CompareAndSetNodeFields`. The read tools map only to non-mutating methods; the read-only Cypher guard in `kg_tools` maps to `eg.query.Uql`, which is read-only, and not to `eg.query.CypherQuery`, which may write. ACP session admission is `ARBORA-ACP-R001.1`. Caller chain: Generated engine operations from `arbora/api/registry/eg_binding.py::load_eg_bindings` (line 370), appended to the registry by `arbora/api/ops/registry_factory.py::get_registry` (line 95), then served by `arbora/api/invoke/pipeline.py::invoke`. Shape: No hand-written wrappers: each method is a generated `eg.*` operation; reads keep `Effect.READ` and write methods keep a mutating effect, checked by the table in `tests/api/test_au_tool_parity.py`. | `tests/api/test_au_tool_parity.py::test_replaced_wrapper_methods_are_served` (5 cases) with `tests/acp/test_session_policy.py` (`ARBORA-ACP-R001.1`).
requirementARBORA-OPSVERIFIED379bfc44c56b
tests/api/test_au_tool_parity.py:56
ARBORA-OPS-R843.2
Modules that are not engine wrappers
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Modules that are not engine wrappers.** Per module disposition. Composed operations: `agent_tools` list and library reads to `composed operation 810`; `team_tools` to `composed operation 819`; `sdd_tools` to `composed operation 809`; `scheduler_tools` to `composed operation 818`; `self_improvement_tools` and `kg_evolution_tools` to `composed operation 824`; `kg_share_tools` to `composed operation 830`; `a2a_tools` peer registry to `composed operation 817`; `codebase_map_tools` to `composed operation 802` and `composed operation 807`; `media_tools` transcription to the served `eg.ingestion.Asr` method (generation has no engine method and stays with the connector that provides it); `knowledge_tools` client/user creation, heartbeat and feature sync to `ARBORA-FLEET-R024`. Harness-retained in meristem, with no served equivalent: `memory_tools` (reads workspace instructions), `tool_filtering`, `tool_registry`, `versioning`, `pattern_tools`, `onboarding_tools` and `eval_harness` (in-run scorers). Caller chain: `arbora/api/invoke/pipeline.py::invoke` → `BoundOperationRuntime.dispatch` in `arbora/api/invoke/executor.py` → the generated `eg.ingestion.Asr` operation for the media transcription disposition. Shape: the engine-method operations come from `load_eg_bindings` in `arbora/api/registry/eg_binding.py`; the composed rows own the other dispositions, and no new module is added. Each module's disposition names an existing row or the harness, and the row closes when the meristem importers are re-pointed. | Test: `tests/api/test_au_tool_parity.py::test_media_transcription_is_served_by_the_engine_asr_method`.
requirementARBORA-OPSVERIFIED975af1a48a26
a78249aec3fd
tests/api/test_au_tool_parity.py:69
ARBORA-OPS-R848
`source.*` served operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`source.*` served operations (rollup).** Subsystem: source operations in `arbora/api/ops/source.py`. Operations: reads `source.tree`, `source.blob`, `source.diff`, `source.history`, `source.blame`. Writes `source.commit`, `source.land`, `source.revert`, `source.edit_symbol`. Each is one typed tool with read-only or destructive hints. Admission is per principal and per path ACL (`MEDULLA-SCM-R007`). The consumer on the development side is the repository-manager connector, which calls these operations through arbora. Children `.1` to `.4` deliver it. | Test: `tests/api/test_source_ops.py::test_source_operations_served_round_trip` (served, HTTP and MCP). It covers one read and one write per child.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R848.1
Source reads
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Source reads.** Serve `source.tree`, `source.blob`, `source.history` and `source.blame` as one typed read-only tool each. Each reads the engine's branch-aware source projection: one repository's `Branch` node, its live `FileVersion` memberships and their `Blob` content. Admission is per principal, with the exact engine scopes the read uses. Tree, history and blame use `node:read` and `edge:read`. Blob adds `blob:read`. Path admission uses the engine's row-level visibility under the caller's own claims. The stateless native reader composes at the serving root. An uncomposed reader fails closed with a typed `UNAVAILABLE`. The reader serves only what the substrate stores. Directories derive from the `FileVersion` path prefixes. The projection stores no directory nodes. `source.blame` reports the membership edge's per-file last touch. Its `line_level` is always `false`. `source.history` lists the last touch per live ref, without a commit DAG. Proving test: `tests/api/test_source_ops.py::test_source_reads_served` with `tests/mcp_server/test_source_reader.py`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `arbora/api/ops/source.py::handle_source_tree` (line 296), `handle_source_blob` (line 310), `handle_source_history` (line 324), `handle_source_blame` (line 337) -> the `SourceReader` port (line 251) bound as `source_reader` by `_reader` (line 286). Shape: Four read `OpSpec`s built by `_read_op` (line 351) in `arbora/api/ops/source.py` from typed `Params` and outcome models; one port, no direct engine calls in the handlers. | A served round trip returns the engine content under the caller's path ACL. A denied engine read propagates its engine code. A missing scope refuses with `SCOPE_REQUIRED` and an uncomposed reader returns `UNAVAILABLE`.
requirementARBORA-OPSVERIFIED38d29856a38a
54ff076e19e1
e337b2c2ef83
fc8440890094
tests/api/test_source_ops.py:33
tests/mcp_server/test_source_reader.py:33
ARBORA-OPS-R848.2
Source writes
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Source writes.** Subsystem: source operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/source.py``::handle_source_commit`, `handle_source_land`, `handle_source_revert`. Register three ops in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry` (module `source` is loaded). `source.commit` calls the engine `SubmitChangeset` method (`MEDULLA-SCM-R002`). `source.land` runs the landing policy of `ARBORA-OPS-R849`. `source.revert` calls the engine revert decision path of `MEDULLA-SCM-R009`. All three use `Effect.DESTRUCTIVE`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED` and `AuditClass.IDENTITY_CHAIN`. Scope `blob:write` and `node:write`. A call without an approved plan refuses `CONFIRMATION_REQUIRED` with zero engine calls. A path without a write grant refuses `SUBJECT_ACCESS_DENIED`. Engine refusals pass through unchanged. The ops stay unregistered until the engine publishes `SubmitChangeset`. A registry test asserts they are absent before then. Depends: `MEDULLA-SCM-R002`, `MEDULLA-SCM-R007`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/source.py::handle_source_commit`, `handle_source_land`, `handle_source_revert` (handlers not yet present; module `source` is already loaded by `arbora/api/ops/registry_factory.py::get_registry`). Shape: Three destructive `OpSpec`s added to `operations()` (line 377) in `arbora/api/ops/source.py`, reusing the plan-confirmation and idempotency machinery of the pipeline; held back until the engine publishes the sender. | Test: `tests/api/test_source_ops.py::test_commit_land_revert_round_trip_and_unapproved_refusal` (served). A destructive call without an approved plan refuses with zero engine calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R848.3
Source diff reads
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Source diff reads.** Subsystem: source operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/source.py``::handle_source_diff`. Register `source.diff` beside `source.tree` with `Effect.READ` and scopes `node:read`, `edge:read` and `blob:read`. Params: `repository`, `base_ref`, `head_ref` and optional `path` prefix (portable relative path, at most 4096 bytes). The handler reads the engine tree diff of two refs through the `SourceReader` port. Entries holding paths without a read grant are removed, and the result names the removed count. Output cap: 1000 entries per page, cursor-paged. An uncomposed reader refuses `UNAVAILABLE`. Writes nothing. Depends: `MEDULLA-SCM-R004`, `MEDULLA-SCM-R007`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/source.py::handle_source_diff` (not yet present) -> the `SourceReader` port (line 251). Shape: Adds a `diff` method to the `SourceReader` Protocol and one read `OpSpec` built with `_read_op` (line 351) in `arbora/api/ops/source.py`; denied-path filtering reuses the per-entry admission of the tree handler. | Test: `tests/api/test_source_ops.py::test_source_diff_served_under_path_acl` (served). It returns the engine diff and drops a denied path.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R848.4
Graph-native symbol edits
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Graph-native symbol edits.** Subsystem: source operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/source.py::handle_source_edit_symbol`. Register `source.edit_symbol` with `Effect.DESTRUCTIVE`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`. It maps to the engine `SubmitSymbolEdit` method (`MEDULLA-SCM-R013.4`). Params are `SymbolEdit` fields of `MEDULLA-SCM-R013.1`: `repo`, `branch`, `base_rev`, `ops`, `message`, `run_trace_id`. Admission applies the path ACL of `MEDULLA-SCM-R007` to every file that the ops touch, resolved through the `SourceReader` port. The tool returns the accept, the rebase receipt or the engine refusal unchanged (`EDIT_BASE_STALE`, `EDIT_OPS_OVERLAP`, `EDIT_UNPARSEABLE`, `EDIT_ROUNDTRIP_MISMATCH`). The edit contract is `MEDULLA-SCM-R013`. The path ACL is `MEDULLA-SCM-R007`. Depends: `MEDULLA-SCM-R013.4`, `MEDULLA-SCM-R013.5`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/source.py::handle_source_edit_symbol` (not yet present) -> the `SourceReader` port (line 251) for path resolution. Shape: One destructive `OpSpec` in `arbora/api/ops/source.py` with a `SymbolEdit` params model; the path ACL check reuses the reader port and engine refusals pass through unchanged. | Test: `tests/api/test_source_ops.py::test_edit_symbol_admitted_and_refusals_pass_through` (served). It lands one edit and passes `EDIT_ROUNDTRIP_MISMATCH` through unchanged.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R849
Server-side landing policy
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Server-side landing policy.** Subsystem: source landing. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `source.land` → new `arbora/api/ops/source_landing.py::land_changeset`. Step 1: the handler materializes the changeset tree through the engine `Tree` read. Step 2: the `GateRunner` port runs the fast gates against that tree: format, hygiene, secrets, types and tests-fast. The default runner calls the repository-manager connector's gate tool through `fleet.call`. Each gate verdict writes to the engine as a `GateVerdict` record (`MEDULLA-SCM-R008`). Step 3: if all verdicts pass, the handler asks the engine to accept the changeset. A failing gate refuses `POLICY_DENIED` with reason `fast_gate_failed` and the gate id. Nothing lands. Step 4: after landing, the full suite runs asynchronously through the same port. On failure the engine records the bisect and revert decision (`MEDULLA-SCM-R009`). arbora keeps no merge queue and decides no revert. Config: `source.land.fast_gate_timeout_s` in `~/.config/arbora/config.yaml`, default 300, range 30 to 3600. A timeout counts as a failed gate. Depends: `ARBORA-OPS-R848.2`, `MEDULLA-SCM-R008`, `MEDULLA-SCM-R009`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> `source.land` (planned handler in `arbora/api/ops/source.py`) -> new `arbora/api/ops/source_landing.py::land_changeset` (file not yet present). Shape: New `arbora/api/ops/source_landing.py` with a `GateRunner` Protocol and a default runner that calls the repository-manager connector through `arbora/api/ops/fleet.py::handle_fleet_call` (line 181)'s authority; verdicts are written to the engine, and arbora keeps no queue. | Test: `tests/api/test_source_landing_served.py::test_fast_gates_run_before_landing_and_failure_has_zero_effect` (served). A post-landing failure records the engine bisect and revert decision.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R850
Virtual checkout endpoint
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Virtual checkout endpoint.** The endpoint serves a virtual checkout as a stream. It resolves directories, then blobs. Resolution is recursive and resumable. A resumed fetch continues from the last acknowledged entry. Clients fetch only what they need. The stream honors the caller's path ACL. Caller chain: `arbora/api/http/app.py:255` (route `/source/checkout`, built by `make_checkout_endpoint`) -> `arbora/api/http/checkout.py::make_checkout_endpoint` (line 215) -> the `invoke` chokepoint -> `arbora/api/ops/source.py::handle_source_tree` (line 296). Shape: The stream is a plain HTTP endpoint in `arbora/api/http/checkout.py` driving admitted `source.tree` calls, emitting directories then files as NDJSON frames (`_file_frame`, `_end_frame`) with a resume cursor validated by `_valid_cursor`. | A checkout test streams directories before blobs. A resumed fetch continues from the last acknowledged entry. A denied path refuses before content is sent. Test: `tests/api/test_source_checkout.py::test_checkout_stream_resumable`.
requirementARBORA-OPSVERIFIED3b92b3c8c215
54ff076e19e1
e337b2c2ef83
fc8440890094
tests/api/test_source_checkout.py:156
tests/api/test_source_checkout.py:26
ARBORA-OPS-R851
Git bridge
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Git bridge.** Subsystem: HTTP routes. Caller: the HTTP app (`arbora/api/http/app.py`) → new `arbora/api/http/git_bridge.py::mount_git_bridge`. `mount_git_bridge` adds two read routes: `GET /git/{repository}/info/refs?service=git-upload-pack` and `POST /git/{repository}/git-upload-pack`. Both authenticate through the existing HTTP auth (`arbora/api/http/auth.py`) and use the same admission as `source.tree`. The handler asks the engine for a git export of the requested wants (`MEDULLA-SCM-R010`, MEDULLA-SCM-R014) and streams the pack. A principal lacking a read grant on any path of the requested tree gets HTTP 403 for the whole request. `git-receive-pack` returns HTTP 403 with reason `push_not_served`. Mirror push to public hosting belongs to the repository-manager connector, not arbora. Config: `git_bridge.max_pack_bytes` in `~/.config/arbora/config.yaml`, default 2,147,483,648, range 1,048,576 to 17,179,869,184. Depends: `MEDULLA-SCM-R010`, `MEDULLA-SCM-R007`, MEDULLA-SCM-R014. Caller chain: `arbora/api/http/app.py::create_api_application` (line 58) -> new `arbora/api/http/git_bridge.py::mount_git_bridge` (file not yet present). Shape: New `arbora/api/http/git_bridge.py` mounting two routes on the app, modelled on `arbora/api/http/checkout.py::make_checkout_endpoint`: authenticate through the shared HTTP auth, admit via the same `source.tree` chokepoint, then stream the engine export. | Test: `tests/api/test_git_bridge_served.py::test_clone_fetch_and_denied_path_over_smart_http` (served over HTTP). It clones and fetches against a recording engine and asserts HTTP 403 for a denied path and for push.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R853
Lifecycle operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Lifecycle operations (rollup).** Subsystem: lifecycle operations in new `arbora/api/ops/lifecycle.py`. Operations: `defect.file`, `defect.triage`, `defect.transition`, `release.record`, `deployment.record`, `spec.status` and `lifecycle.trace`. They serve the engine methods of `MEDULLA-SDLC-R001` to `MEDULLA-SDLC-R006`. Reads are read-only tools. Writes need the scope `lifecycle:write`. The deploy operations of `ARBORA-DEPLOY-POLICY` call `deployment.record` after each rollout. Children `.1` and `.2` deliver it. | Test: `tests/api/test_lifecycle_ops_served.py::test_defect_to_deployment_trace` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R853.1
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: lifecycle operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/lifecycle.py::handle_*` (one per operation). Register `arbora/api/ops/lifecycle.py` in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. Each handler calls its engine lifecycle method under the caller-bound path. `lifecycle.trace` calls the `LifecycleTrace` method with a `LifecycleTraceRequest{anchor, depth, kinds}` (medulla repo, `crates/medulla-source-types/src/lifecycle.rs`). Reads use `Effect.READ` and scope `kg:read`. Writes use `Effect.WRITE`, scope `lifecycle:write`, `Idempotency.KEY_REQUIRED` and `AuditClass.EVENT`. `defect.transition` and `release.record` refuse a caller without the scope `SCOPE_REQUIRED`. The deploy path calls `deployment.record` through `invoke`, not through a private client. `defect.triage` calls `eg.lifecycle.TriageDefect`. It passes the `DEFECT_UNKNOWN` and `DEFECT_CLOSED` codes through unchanged. Depends: `MEDULLA-SDLC-R002`, `MEDULLA-SDLC-R003`, `MEDULLA-SDLC-R004`, `MEDULLA-SDLC-R006`, `MEDULLA-SDLC-R004.3`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/lifecycle.py::handle_*` (module not yet present), added to the module tuples of `arbora/api/ops/registry_factory.py::get_registry` (line 51). Shape: New `arbora/api/ops/lifecycle.py` with seven `OpSpec`s (reads and writes) on the pattern of `arbora/api/ops/decide.py`; each handler calls its engine method under the caller-bound path. | Test (planned): `tests/api/test_lifecycle_ops_served.py::test_registry_lists_lifecycle_operations` (unit) lists the seven operations with their hints.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R853.2
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: lifecycle operations. Caller: served `invoke` over HTTP and MCP → `arbora/api/ops/lifecycle.py``::handle_*`. The test files a defect from a failed verdict and triages it. It records a release and a deployment. It then walks `lifecycle.trace` from the requirement to the deployment. A write without `lifecycle:write` refuses. The engine side is a recording client with the answers of `MEDULLA-SDLC-R006`. Depends: `ARBORA-OPS-R853.1`. Caller chain: HTTP (`arbora/api/http/routes.py:160`) and MCP (`arbora/api/mcp/registration.py::register_mcp_tools`, line 233) -> `arbora/api/invoke/pipeline.py::invoke` -> new `arbora/api/ops/lifecycle.py::handle_*`. Shape: A single served test module with a recording engine client; no production code beyond the lifecycle handlers of `ARBORA-OPS-R853.1`. | Test: `tests/api/test_lifecycle_ops_served.py::test_defect_to_deployment_trace` (served). It asserts the call order, the trace records and the scope refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R854
Context engine operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Context engine operations (rollup).** Subsystem: retrieval operations in `arbora/api/ops/retrieval.py`. Operations `retrieval.feedback` (over `MEDULLA-FEDERATED-QUERY-R705`) and `agent.knowledge_scope.set` (over `MEDULLA-FEDERATED-QUERY-R704`). A scope edit needs the scope `agent:admin`. Feedback carries the caller identity from admission, never from the request body. The consumer of retrieval ranking is `ARBORA-OPS-R021.2.1`. Children `.1` and `.2` deliver it. | Test: `tests/api/test_retrieval_ops.py::test_scope_and_feedback_served` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R854.1
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: retrieval operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/retrieval.py``::handle_retrieval_feedback` and `handle_agent_knowledge_scope_set`. Add both handlers and list them in `operations()` of `arbora/api/ops/retrieval.py` (the module is already loaded). `retrieval.feedback` is `Effect.WRITE`, scope `memory:write`, `Idempotency.NATURAL`, `AuditClass.EVENT`. Params: `document_id`, `kind` (`explicit_up`, `explicit_down`, `implicit_click`, `implicit_skip`) and optional `query_digest`. The handler sets `principal` from `context.caller` and sends the engine feedback method of `MEDULLA-FEDERATED-QUERY-R705`. A body field named `principal` refuses `INVALID_ARGUMENT`. `agent.knowledge_scope.set` is `Effect.WRITE`, scope `agent:admin`, `AuditClass.IDENTITY_CHAIN`. It sends the scope record of `MEDULLA-FEDERATED-QUERY-R704` and refuses a scope that widens the caller's access with the engine code. Depends: `MEDULLA-FEDERATED-QUERY-R704`, `MEDULLA-FEDERATED-QUERY-R705`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py::invoke` (line 1021) -> new `arbora/api/ops/retrieval.py::handle_retrieval_feedback` and `handle_agent_knowledge_scope_set` (not yet present); `operations()` is at line 111 and `handle_retrieval_search` at line 76 shows the pattern. Shape: Two handlers and two `OpSpec`s added to `arbora/api/ops/retrieval.py`, reusing the `Retriever`-style port and `Params` models; principal comes from `context.caller`, never from the body. | Test: `tests/api/test_retrieval_ops.py::test_feedback_and_scope_operations_listed` (unit) lists both operations. `test_feedback_principal_comes_from_admission` (served) asserts a body principal is refused.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R854.2
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: retrieval operations. Caller: served `invoke` over HTTP and MCP → `arbora/api/ops/retrieval.py``::handle_retrieval_search`. The test sets a scope for one agent, searches as that agent and gets hits only from the scope. One feedback event then changes the rank of its document in the recorded engine answer. arbora reorders nothing. Depends: `ARBORA-OPS-R854.1`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/retrieval.py:76::handle_retrieval_search` (registered by `operations` at `arbora/api/ops/retrieval.py:111`). Shape: Extends `arbora/api/ops/retrieval.py` (`Retriever` port at line 66, `RetrievalHit` at line 25) with scope and feedback handlers that forward to the engine retriever port; the budget trim in `handle_retrieval_search` is the only local logic and ranking stays in the engine. | Test: `tests/api/test_retrieval_ops.py::test_scope_and_feedback_served` (served). It asserts scope-only hits and the engine-provided rank change.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R855
Catalog and governance reads are intent-routed graph queries (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Catalog and governance reads are intent-routed graph queries (rollup).** Subsystem: intent routing and governance in `arbora/api/ops/governance.py`. The engine models the catalog, glossary, stewardship, lineage, system-prompt candidates and virtual-graph sources as graph entities. The engine rows are `MEDULLA-TYPED-PACKS-R106`, `MEDULLA-TYPED-PACKS-R108`, `MEDULLA-TYPED-PACKS-R801`, `MEDULLA-TYPED-PACKS-R802`, `MEDULLA-TYPED-PACKS-R805`, `MEDULLA-DECISION-ENGINE-R814` and `MEDULLA-FEDERATED-QUERY-R722`. Arbora serves no bespoke read operation for them. It serves no `catalog.lineage`, `catalog.prompt_candidates` or `query.sources`. Catalog search is the engine method `CatalogSearch` (`MEDULLA-UNIFIED-DATA-PLANE-R764.3`), reached by `ask` routing. Glossary and stewardship use the engine methods `eg.glossary.*` (`MEDULLA-TYPED-PACKS-R801.3`) and `eg.stewardship.*` (`MEDULLA-TYPED-PACKS-R802.3`). `ask` routes the question to `query.nl`. Programmatic clients use `query.uql`. Arbora admits each approval against the steward and owner roles that the engine returns. Arbora holds no role table. Children `.1` to `.6` deliver it. | Test: `tests/api/test_governance_ops.py::test_term_review_and_search` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R855.1
Routing
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Routing.** A catalog, glossary, stewardship, lineage, prompt-candidate or virtual-graph source question put to `ask` resolves to the served `query.nl` operation ahead of capability ranking (`arbora/api/mcp/resolve.py`). The text goes through unchanged. arbora adds no operation and no engine adapter for these reads. Caller chain: `arbora/api/mcp/verbs.py:217` -> `arbora/api/mcp/resolve.py:199::resolve` -> `arbora/api/mcp/resolve.py:417::_graph_question_route`, reached from `ask` before capability ranking is used (`resolve.py:233`). Shape: One `_GRAPH_QUESTION` pattern (`arbora/api/mcp/resolve.py:36`) selects the route and `_graph_question_route` returns a `Resolution` for `query.nl` with the text unchanged; no new operation or engine adapter is added. | `tests/api/test_resolve.py::test_catalog_class_ask_routes_to_the_engine_planner_ahead_of_ranking`.
requirementARBORA-OPSVERIFIEDc135fd8a6f4a
e755549375e6
tests/api/test_resolve.py:191
ARBORA-OPS-R855.2
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: governance. Caller: served `invoke` over HTTP and MCP → `curation.proposals.review` → `arbora/api/ops/governance.py::handle_curation_proposals_review`. The test proposes a glossary term through the engine proposal write of `MEDULLA-TYPED-PACKS-R801`. It approves the term as a steward through `curation.proposals.review`. It then finds the term with `ask` routed to `query.nl`. An approval by a non-steward refuses `SUBJECT_ACCESS_DENIED` with zero engine writes. The steward role comes from the engine answer, never from an arbora table. The query path for catalog questions is the search function of `MEDULLA-TYPED-PACKS-R108.16`. Depends: `ARBORA-OPS-R855.3`, `MEDULLA-TYPED-PACKS-R801`, `MEDULLA-TYPED-PACKS-R802`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `curation.proposals.review` -> `arbora/api/ops/governance.py::handle_curation_proposals_review` (new module, not yet in `arbora/api/ops/registry_factory.py:52` module loop). Shape: New `arbora/api/ops/governance.py` with a Pydantic params model and a handler built on the shared helpers in `arbora/api/ops/_common.py`; the steward check and term write are engine calls, and the term search reuses the routed `query.nl` (`arbora/api/ops/query.py:33`). | Test: `tests/api/test_governance_ops.py::test_term_review_and_search` (served). It asserts the approve, the search hit and the non-steward refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R855.3
Trust flag, curation review and query workspace operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Trust flag, curation review and query workspace operations.** Subsystem: governance. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/governance.py::handle_*`. Add handlers and list them in `operations()` of `arbora/api/ops/governance.py` (new module, registered in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`). Operations: `catalog.trust_flag.set` (`MEDULLA-TYPED-PACKS-R802.7`, scope `kg:write`), `curation.proposals.list` (read), `curation.proposals.review` (`MEDULLA-TYPED-PACKS-R801.7`, `MEDULLA-TYPED-PACKS-R805.7`, `MEDULLA-UNIFIED-DATA-PLANE-R762.7`; `Confirm.PLAN` off, steward check on), `catalog.usage` (`MEDULLA-UNIFIED-DATA-PLANE-R764.7`, `MEDULLA-UNIFIED-DATA-PLANE-R764.8`. Read) and `query.workspace.save`, `query.workspace.get`, `query.workspace.list`, `query.workspace.delete` (`MEDULLA-FEDERATED-QUERY-R708.7`). A review needs the steward role that the engine returns. A caller without it gets `SUBJECT_ACCESS_DENIED`. A trust flag takes `endorsement`, `warning` or `deprecation` with a reason of 1 to 500 characters. `catalog.usage` calls `Method::CatalogUsage` (`MEDULLA-UNIFIED-DATA-PLANE-R764.8`) behind the scope `catalog:usage:principals`. Writes use `AuditClass.EVENT`. Depends: the listed engine rows. | Test: `tests/api/test_governance_ops.py::test_trust_flag_and_proposal_review` (served). It deprecates a table, reviews one proposal and reads the rank change from the recorded engine answer.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R855.4
Ask answers from the graph
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Ask answers from the graph.** The engine planner answers the routed question over its ontology and returns rows with provenance. `query.nl` runs under the verified session: the caller's tenant and graph, the `query:nl` scope and the engine row caps and redaction. The request cannot name another tenant. `query.uql` serves the same questions to programmatic clients and needs `query:unified`. Caller chain: `arbora/api/mcp/verbs.py:217` -> `arbora/api/mcp/resolve.py:199::resolve` -> `arbora/api/mcp/resolve.py:417::_graph_question_route` -> served `query.nl` (`arbora/api/ops/query.py:33`, scope `query:nl`) -> `arbora/api/invoke/pipeline.py:1021::invoke`. Shape: `query.nl` is an `OpSpec` bound to the engine `NlQuery` method with scope `query:nl`; `query.uql` (scope `query:unified`) sits beside it in `arbora/api/ops/query.py`. The caller session carries tenant and graph, and the request params carry no tenant field. | `tests/api/test_resolve.py::test_catalog_class_ask_routes_to_the_engine_planner_ahead_of_ranking`.
requirementARBORA-OPSVERIFIEDc135fd8a6f4a
tests/api/test_resolve.py:192
ARBORA-OPS-R855.5
Find surfaces catalog assets
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Find surfaces catalog assets.** `find` with a catalog-class intent lists `query.nl` and `query.uql` first among its discovery results, so a caller reaches catalog assets through the graph query path. `find` executes nothing. Caller chain: `arbora/api/mcp/verbs.py:217` -> `arbora/api/mcp/resolve.py:199::resolve` -> `find` branch in `arbora/api/mcp/resolve.py:221-232` (`_GRAPH_OPS` at line 41). Shape: The `find` branch moves `query.nl` and `query.uql` to the front of the ranked ids when `_GRAPH_QUESTION` matches and the ops are visible, and returns a `Resolution` with no op, so nothing executes. | `tests/api/test_resolve.py::test_find_for_catalog_assets_points_at_the_graph_query_ops_first`.
requirementARBORA-OPSVERIFIEDc135fd8a6f4a
e755549375e6
tests/api/test_resolve.py:217
ARBORA-OPS-R855.6
Governed routing only
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Governed routing only.** The route applies only to the descriptors the caller is authorized to see. A caller without `query:nl` gets no route and no fallback to another operation or a local answer. arbora never reads a catalog or lineage store of its own. Caller chain: `arbora/api/mcp/verbs.py:217` -> `arbora/api/mcp/resolve.py:199::resolve` -> `arbora/api/mcp/resolve.py:417::_graph_question_route`, fed only the descriptors the caller may see (`arbora/api/mcp/verbs.py:206` `visible_ops`). Shape: `_graph_question_route` returns `None` unless `query.nl` is among the visible descriptors, and `_ask_fallback` (`resolve.py:441`) returns an op-less `Resolution` in that case, so there is no local answer path. | `tests/api/test_resolve.py::test_catalog_question_is_not_routed_without_a_visible_nl_planner`.
requirementARBORA-OPSVERIFIEDc135fd8a6f4a
tests/api/test_resolve.py:230
ARBORA-OPS-R856
Quality and lineage operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Quality and lineage operations (rollup).** Subsystem: governance operations in `arbora/api/ops/governance.py`. Operations `quality.rule.put`, `quality.evaluate`, `quality.scores`, `profile.run` and `lineage.columns` over `MEDULLA-UNIFIED-DATA-PLANE-R761`, `MEDULLA-UNIFIED-DATA-PLANE-R762` and `MEDULLA-UNIFIED-DATA-PLANE-R763`. `profile.run` submits `AnalyticsJob` with `JobKind::DatasetProfile`. `quality.evaluate` submits `JobKind::QualityEvaluate`. `quality.rule.put` calls `eg.<domain>.QualityRulePut`. Children `.1` and `.2` deliver it. | Test: `tests/api/test_governance_ops.py::test_quality_incident_served` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R856.1
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: governance operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/governance.py::handle_quality_rule_put`, `handle_quality_evaluate`, `handle_quality_scores`, `handle_profile_run`, `handle_lineage_columns`. Register `arbora/api/ops/governance.py` in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. `quality.rule.put` is `Effect.WRITE`, scope `kg:write`. `quality.evaluate` and `profile.run` are `Effect.WRITE` with `Idempotency.KEY_REQUIRED`. `quality.scores` and `lineage.columns` are `Effect.READ`, scope `kg:read`. Each handler calls its engine method under the caller-bound path and passes engine refusals through. Arbora keeps no rule table and computes no score. Depends: `MEDULLA-UNIFIED-DATA-PLANE-R761`, `MEDULLA-UNIFIED-DATA-PLANE-R762`, `MEDULLA-UNIFIED-DATA-PLANE-R763`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/governance.py::handle_quality_rule_put`, `handle_quality_evaluate`, `handle_quality_scores`, `handle_profile_run`, `handle_lineage_columns` (new module). Shape: New `arbora/api/ops/governance.py` with an `operations()` function listed in the module loop at `arbora/api/ops/registry_factory.py:52`, following the shape of `arbora/api/ops/retrieval.py` (`operations` at line 111, `Composite` handler bindings); each handler is a thin engine call. | Test: `tests/api/test_governance_ops.py::test_registry_lists_quality_operations` (unit) lists the five operations with hints.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R856.2
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: governance operations. Caller: served `invoke` over HTTP and MCP → `arbora/api/ops/governance.py``::handle_quality_evaluate`. The test puts a failing rule, evaluates it three times and reads the quality incident through `quality.scores`. The incident open and count come from the recording engine. arbora opens no incident itself. Depends: `ARBORA-OPS-R856.1`, `MEDULLA-UNIFIED-DATA-PLANE-R762`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/governance.py::handle_quality_evaluate` (new). Shape: Test-only proof over the handlers of ARBORA-OPS-R856.1 using the recording engine fixtures in `tests/api/_ops_support.py`; no production code beyond R856.1. | Test: `tests/api/test_governance_ops.py::test_quality_incident_served` (served). It asserts three evaluations, one incident and zero arbora-side incident writes.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R857
SPARQL 1.1 protocol endpoint (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**SPARQL 1.1 protocol endpoint (rollup).** Subsystem: HTTP routes. arbora serves the SPARQL 1.1 Protocol for query and update at `/sparql`. It serves the Graph Store HTTP Protocol at `/sparql/graphs`. It negotiates the standard result formats (JSON, XML, CSV, TSV). Admission and caller scope apply to every request. Update calls the served method of `MEDULLA-FEDERATED-QUERY-R707.3`. The old local endpoint `/api/sparql` in `arbora/gateway/graph_api.py` is removed in the same change. Children `.1` and `.2` deliver it. | Test: `tests/api/test_sparql_protocol.py::test_protocol_query_and_update` (served over HTTP).
requirementARBORA-OPSVERIFIED4c59a1f28c26
tests/api/test_sparql_protocol.py:154
tests/api/test_sparql_protocol.py:162
tests/api/test_sparql_protocol.py:173
tests/api/test_sparql_protocol.py:201
tests/api/test_sparql_protocol.py:266
ARBORA-OPS-R857.1
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: HTTP routes. Caller: the HTTP app in `arbora/api/http/app.py` → new `arbora/api/http/sparql.py::mount_sparql_protocol`. `mount_sparql_protocol` adds `GET` and `POST /sparql` and `GET`, `PUT`, `POST`, `DELETE /sparql/graphs`. Each route authenticates through `arbora/api/http/auth.py` and drives a registered operation through `invoke`. A query runs `query.sparql` (engine `Sparql`). An update and each graph-store write run `eg.graph.ApplyMutation` with the engine SPARQL update event of `MEDULLA-FEDERATED-QUERY-R707`. The effect journal holds each write once per idempotency key. Admission and scope are those operations' own: query needs `sparql:read`, and update and graph-store writes need `graph:write` and refuse HTTP 403 without it, with no engine call. The graph store addresses the caller's graph (`?default`) and takes N-Triples. Content negotiation follows the `Accept` header. An unsupported type returns HTTP 406. Delete `_mount_sparql_route` and `_get_sparql_bridge` from `arbora/gateway/graph_api.py`. Config: `SPARQL_MAX_RESULT_BYTES` in the Arbora configuration, default 67,108,864, range 65,536 to 1,073,741,824; a larger answer refuses `LOAD_CAP_EXCEEDED`. Depends: `MEDULLA-FEDERATED-QUERY-R707`. Caller chain: `arbora/api/http/app.py:58::create_api_application` -> new `arbora/api/http/sparql.py::mount_sparql_protocol`; replaces `arbora/gateway/graph_api.py:47::_mount_sparql_route` and `:37::_get_sparql_bridge`. Shape: New `arbora/api/http/sparql.py` reusing `authenticate` and the `caller_session_scope` helper of `arbora/api/http/routes.py:19` plus the `_error` envelope; routes are added with `app.add_api_route` as in `app.py:205`. | Test: `tests/api/test_sparql_protocol.py::test_routes_registered` (unit) lists both routes. `test_old_api_sparql_route_is_gone` asserts the removed route.
requirementARBORA-OPSVERIFIED4c59a1f28c26
tests/api/test_sparql_protocol.py:154
tests/api/test_sparql_protocol.py:162
tests/api/test_sparql_protocol.py:173
ARBORA-OPS-R857.2
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: HTTP routes. Caller: the HTTP app → `mount_sparql_protocol`. A standard protocol client sends a query and an update to the endpoint. The recording engine returns the result and the commit receipt. An update without the write scope returns HTTP 403 and makes zero engine calls. Depends: `ARBORA-OPS-R857.1`. Caller chain: `arbora/api/http/app.py:58::create_api_application` -> `arbora/api/http/sparql.py::mount_sparql_protocol` (new). Shape: Test-only proof over the routes of ARBORA-OPS-R857.1 using a recording engine fixture and a token without `kg:write`. | Test: `tests/api/test_sparql_protocol.py::test_protocol_query_and_update` (served over HTTP). It asserts the engine calls and the 403.
requirementARBORA-OPSVERIFIED4c59a1f28c26
tests/api/test_sparql_protocol.py:201
tests/api/test_sparql_protocol.py:266
ARBORA-OPS-R858
Outside SQL client identities for the engine wire front end (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Outside SQL client identities for the engine wire front end (rollup).** Subsystem: wire access in new `arbora/api/ops/wire_access.py`. arbora issues one wire login per outside identity. The engine maps the login to one engine principal and applies its row security (`MEDULLA-ENGINE-PARITY-R007`). Revoking the identity refuses new logins within 60 s. Operations `wire_access.grant` and `wire_access.revoke`. Children `.1` and `.2` deliver it. | Test: `tests/api/test_wire_access_ops.py::test_grant_read_revoke` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R858.1
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: wire access. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/wire_access.py::handle_wire_access_grant` and `handle_wire_access_revoke`. Register `arbora/api/ops/wire_access.py` in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. `wire_access.grant` is `Effect.ADMIN`, `Confirm.CONSOLE`, `AuditClass.IDENTITY_CHAIN`, scope `access:admin`. Params: `identity` and `principal_ref`. The handler generates a 32-byte random password. It stores only the salted hash in the engine through the wire-login method of `MEDULLA-ENGINE-PARITY-R007`. It writes the cleartext to the platform secret store under `wire_access/<identity>`. It returns the secret reference and never the password. `wire_access.revoke` marks the identity revoked in the engine and deletes the secret. Revocation takes effect for new logins within 60 s. `wire_access.grant` calls `eg.security.WireLoginGrant`. `wire_access.revoke` calls `eg.security.WireLoginRevoke`. The credential verifier goes to the engine. The secret goes to the platform secret store. Depends: `MEDULLA-ENGINE-PARITY-R007`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/wire_access.py::handle_wire_access_grant`, `handle_wire_access_revoke` (new module). Shape: New `arbora/api/ops/wire_access.py` with an `operations()` function added to the module loop at `arbora/api/ops/registry_factory.py:52`; handlers call the engine security methods and the platform secret store through services bound with `bound_service` as in `arbora/api/ops/retrieval.py:80`. | Test: `tests/api/test_wire_access_ops.py::test_registry_lists_wire_access_operations` (unit) lists both operations. `test_grant_returns_reference_not_password` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R858.2
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: wire access. Caller: served `invoke` over HTTP and MCP → `arbora/api/ops/wire_access.py``::handle_wire_access_grant`. The test grants a login and reads a table through the engine wire front end under row security. It then revokes the identity. A new login must be refused within 60 s. The engine side is a loopback wire listener. Depends: `ARBORA-OPS-R858.1`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/wire_access.py::handle_wire_access_grant` (new). Shape: Test-only proof over the handlers of ARBORA-OPS-R858.1 with a loopback wire listener fixture. | Test: `tests/api/test_wire_access_ops.py::test_grant_read_revoke` (served). It asserts row-filtered rows and the refusal after revoke.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860
Served program optimization and revision promotion and rollback operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served program optimization and revision promotion and rollback operations (rollup).** Subsystem: revision operations in new `arbora/api/ops/program.py`. Operations: `program.optimize`, `revision.promote` and `revision.rollback`. One family serves every subject kind of `MEDULLA-DECISION-ENGINE-R805.7`: `decision_head`, `program`, `knob_set` and `model_policy`. It replaces the retired `ARBORA-OPS-R852`. arbora computes no score, no promotion verdict and no rollback rule. Promote and rollback need an approved plan. Children `.1` to `.6` deliver it. `revision.promote` and `revision.rollback` also accept the `Definition` kinds `HarnessComponent` and `HarnessBundle` (`MEDULLA-DECISION-ENGINE-R805.10`). Consumer: operators and the harness cycle `MERISTEM-HARNESS-CYCLE-R001`. | Test: `tests/api/test_program_ops_served.py::test_optimize_promote_rollback_served` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860.1
Model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Model.** Subsystem: revision operations. In `arbora/api/ops/program.py` add three frozen Pydantic models with `extra=forbid`. `ProgramOptimizeParams{signature_ref, corpus_ref, optimizer, budget}`: `optimizer` is one of the 13 `OptimizerKind` names of `MEDULLA-DECISION-ENGINE-R810.1`; `budget` holds `max_candidates` (1 to 128) and `seed` (integer). `RevisionPromoteParams{subject, receipt_digest}`: `subject` is `{kind, ref}` with `kind` in `decision_head`, `program`, `knob_set`, `model_policy`; `receipt_digest` is SHA-256, 64 lowercase hex characters. `RevisionRollbackParams{subject, expected_champion_ref}`. Result models hold `job_id` for optimize and `pointer_event_id`, `from_ref`, `to_ref` for promote and rollback. No name carries a version suffix. Depends: `MEDULLA-DECISION-ENGINE-R805.7`, `MEDULLA-DECISION-ENGINE-R810.1`. Caller chain: Imported by `arbora/api/ops/program.py::operations` (new), which `arbora/api/ops/registry_factory.py:52::get_registry` loads; models validate params inside `handle_program_optimize`, `handle_revision_promote` and `handle_revision_rollback`. Shape: New `arbora/api/ops/program.py` with frozen `Params` subclasses (`extra=forbid`) following the pattern of `RetrievalSearchParams` in `arbora/api/ops/retrieval.py:20`. | Test: `tests/api/test_program_ops_served.py::test_params_round_trip_and_reject_unknown_fields` (unit). It also rejects a 129-candidate budget and an uppercase digest.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860.2
Behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Behavior.** Subsystem: revision operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/program.py::handle_program_optimize`, `handle_revision_promote`, `handle_revision_rollback`. `program.optimize` submits the engine `AnalyticsJob` (`eg.coordination.AnalyticsJob`) of kind `ProgramOptimize` (`MEDULLA-DECISION-ENGINE-R810.3`) and returns its job id. `revision.promote` runs in two phases. The plan preview calls `eg.query.Decide` kind `Promotion` with `mode=promote`, `subject` and `receipt_digest` (`MEDULLA-DECISION-ENGINE-R805.3`) and shows the verdict. After approval, execution commits through `eg.coordination.DecisionLog` `learn` `MovePointer`, citing the committed `Promote` record. `revision.rollback` pins `expected_champion_ref` and calls `DecisionLog` `learn` `MovePointer` to the parent in the pointer stack. Arbora computes no score and no verdict. The approving operator becomes the pointer event principal (`MEDULLA-DECISION-ENGINE-R805.5`). Depends: `MEDULLA-DECISION-ENGINE-R805.3`, `MEDULLA-DECISION-ENGINE-R810.3`, `ARBORA-OPS-R860.1`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/program.py::handle_program_optimize`, `handle_revision_promote`, `handle_revision_rollback` (new). Shape: New `arbora/api/ops/program.py`; handlers use `bound_service` for the engine port and the plan-confirmation gate of `arbora/api/invoke/pipeline.py:744::_confirmation_gate`, and compute no verdict locally. | Test: `tests/api/test_program_ops_served.py::test_engine_calls_and_no_local_verdict` (served). It asserts the engine call order and that a hold verdict never reaches `MovePointer`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860.3
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: revision operations. Caller: registry build in `get_registry` → `arbora/api/ops/program.py``::operations`. Add `program` to the import list and the module loop of `arbora/api/ops/registry_factory.py::get_registry`. `program.optimize`: `Effect.WRITE`, `Idempotency.KEY_REQUIRED`, `AuditClass.EVENT`, scope `program:optimize`. `revision.promote` and `revision.rollback`: `Effect.DESTRUCTIVE`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`, scope `revision:admin`. Each is reachable through `invoke` over HTTP and MCP. Depends: `ARBORA-OPS-R860.2`. Caller chain: `arbora/api/ops/registry_factory.py:16::get_registry` module loop (line 52) -> `arbora/api/ops/program.py::operations` (new). Shape: Add `program` to the import list at `registry_factory.py:24` and the loop at line 52; `operations()` returns `OpSpec` values like `arbora/api/ops/retrieval.py:111` with the stated effect, confirm and audit fields. | Test: `tests/api/test_program_ops_served.py::test_registry_lists_three_operations_with_hints` (unit). `test_each_operation_reaches_its_handler` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860.4
Refusal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Refusal.** Subsystem: revision operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/program.py``::handle_revision_promote`. Promote or rollback without an approved plan refuses `CONFIRMATION_REQUIRED`. A vetoed plan refuses `POLICY_DENIED` with reason `approval_vetoed`. A caller without `revision:admin` refuses `SCOPE_REQUIRED`. Engine refusals pass through with their own codes: `PROMOTION_UNEVALUATED`, `PROMOTION_NO_BASELINE`, `PROMOTION_EVAL_TOO_SMALL`, `EVAL_SET_NOT_INDEPENDENT`, `PROMOTION_CAS_CONFLICT`, `PROMOTION_RECEIPT_MISMATCH`, `ROLLBACK_NO_PARENT` and the `PROGRAM_*` job codes. Every refusal leaves the pointer unchanged and makes zero `MovePointer` calls. Depends: `ARBORA-OPS-R860.2`, `MEDULLA-DECISION-ENGINE-R805.4`, `MEDULLA-DECISION-ENGINE-R810.4`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/program.py::handle_revision_promote` (new), plan gate at `arbora/api/invoke/pipeline.py:744::_confirmation_gate`. Shape: Gate refusals come from the existing pipeline (`OperationRefused` at `pipeline.py:111`, `_typed_refusal` at line 985); engine codes pass through `EngineRefusal` unchanged. | Test: `tests/api/test_program_ops_served.py::test_refusal_codes_and_no_engine_commit` (served). It asserts each code and zero `MovePointer` calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860.5
Evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evidence.** Subsystem: revision operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/program.py``::handle_revision_promote` → `arbora/api/invoke/audit.py::audit_event`. Each call writes one audit event. The event holds the principal, the subject and both revisions. It also holds the approval id, which is the plan id. Optimize writes the job id instead of the revisions. The event never holds corpus content. The write path is the invoke audit writer with `AuditClass.IDENTITY_CHAIN`. Depends: `ARBORA-OPS-R860.3`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/program.py::handle_revision_promote` (new) -> `arbora/api/invoke/audit.py:13::audit_event`. Shape: Reuses `audit_event` and the `AuditClass.IDENTITY_CHAIN` writer already driven by `pipeline.py:782::_audit_preflight`; the handler only adds subject and revision fields to its result. | Test: `tests/api/test_program_ops_served.py::test_audit_event_names_principal_revisions_and_approval` (served) reads the audit event.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R860.6
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: revision operations. Caller: served `invoke` over HTTP and MCP → `arbora/api/ops/program.py``::handle_program_optimize`. The test optimizes one fixture program against a recording engine. It promotes the challenger under an approved plan. It then rolls the promotion back. The engine fixture answers `Decide` with a `Promote` verdict and `MovePointer` with the pointer events. Depends: `ARBORA-OPS-R860.3`, `ARBORA-OPS-R860.4`, `ARBORA-OPS-R860.5`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/program.py::handle_program_optimize` (new). Shape: Test-only proof over R860.2 to R860.5 with a recording engine fixture answering `Decide` and `MovePointer`. | Test: `tests/api/test_program_ops_served.py::test_optimize_promote_rollback_served` (served). It asserts job id, promoted champion and restored parent.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.7
Durable, public run replay
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Durable, public run replay.** `runs.events` and `runs.get` use the admitted caller and canonical WorkItem owner before reading EG RunEvents. AU assigns stable event IDs and increasing per-run sequence. Arbora persists and projects them without creating events or inferring hidden thoughts. Bounded exclusive `after` cursors preserve gaps as unavailable. A bounded metadata census validates the full history before any payload page. Earlier gaps, duplicates and post-terminal events remain unavailable. Histories over the census bound remain unavailable too. Native owner and event-query refusals retain their engine codes on both transports. Public projections distinguish execution traces from explicit public summaries. They preserve source vocabulary and mark terminal events explicitly. Legacy HTTP reads invoke the same registry operation. Unknown, foreign, malformed and legacy unordered runs expose no event body. The operation carries the `RunTraceExportPage` of `MEDULLA-ORCH-VOCAB-R009.100` unchanged. Arbora creates no events. Caller chain: Over HTTP `arbora/api/http/app.py:271::create_run_compatibility_application` (and the `/ops/runs.events` route at `app.py:205`) -> `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021::invoke`; over MCP `arbora/api/mcp/verbs.py:244` -> `invoke` -> `arbora/api/ops/runs.py:116::handle_runs_events` and `:94::handle_runs_get` -> `arbora/mcp_server/run_reader.py:103::NativeRunReader.events`. Shape: `NativeRunReader` (`arbora/mcp_server/run_reader.py:50`, composed as `run_trace_reader` at `arbora/mcp_server/server.py:182`) checks the owner with `_owned`, then `_page` hydrates rows and `arbora/api/ops/run_replay.py:144::project_page` projects the bounded page; `validate_history` (line 192) enforces the census. | `tests/api/test_run_replay.py` proves owner-first reads, bounded cursor validation, terminal vocabulary, privacy allowlists and malformed/legacy/gap refusal. REST and MCP use the registered invoke path. Test: `tests/api/test_run_replay.py::test_http_and_mcp_use_same_registered_run_handler`.
requirementARBORA-OPSVERIFIED5aed3058d14b
9bd22960a7ea
tests/api/test_run_replay.py:14
tests/test_real_boot_read_assertions.py:7
ARBORA-OPS-R861
Served dashboard operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served dashboard operations (rollup).** Subsystem: dashboard operations in new `arbora/api/ops/dashboard.py`. Operations `dashboard.save`, `dashboard.get`, `dashboard.list`, `dashboard.delete` and `dashboard.share`. The engine stores each dashboard as a catalog asset (`MEDULLA-TYPED-PACKS-R109`). arbora holds no asset store. Consumer: `OVERSTORY-DASH-R010`. Children `.1` to `.9` deliver it. | Test: `tests/api/test_dashboard_ops_served.py::test_save_share_list_conflict_delete_served` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.1
Model
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Model.** Subsystem: dashboard operations. In `arbora/api/ops/dashboard.py` add `DashboardDocument{schema_version, id, title, revision, params, panels}` as a frozen Pydantic model with `extra=forbid`. `schema_version` is the integer 1. `id` is a UUID string. `title` is 1 to 200 characters. `revision` is a non-negative integer. `params` holds 0 to 32 named parameters. `panels` holds 0 to 64 panels. Each panel holds `id`, `title`, `viz`, `query` and `layout`. `query` is text or a stored-query reference of `MEDULLA-FEDERATED-QUERY-R708`. A panel without a query is invalid. Depends: `MEDULLA-TYPED-PACKS-R109.1`. Caller chain: Imported by `arbora/api/ops/dashboard.py::operations` (new), loaded by `arbora/api/ops/registry_factory.py:52::get_registry`; validated inside `handle_dashboard_save`. Shape: New `arbora/api/ops/dashboard.py` with a frozen Pydantic `DashboardDocument` (`extra=forbid`) following `Params` usage in `arbora/api/ops/retrieval.py:20`. | Test: `tests/api/test_dashboard_ops_served.py::test_document_round_trip_and_rejects_unknown_field` (unit). It also rejects a panel without a query.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.2
Save
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Save.** Subsystem: dashboard operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/dashboard.py``::handle_dashboard_save`. `Effect.WRITE`, scope `kg:write`, `Idempotency.KEY_REQUIRED`, `AuditClass.EVENT`. A save with no `id` creates a dashboard at revision 1. A save with `id` must carry `expected_revision`. The handler sends the save to the engine catalog projector (`MEDULLA-TYPED-PACKS-R109.2`). A stale revision comes back as the engine code `DASHBOARD_REVISION_CONFLICT` with the current revision. Arbora passes both through and overwrites nothing. A successful save returns the new revision. Depends: `ARBORA-OPS-R861.1`, `MEDULLA-TYPED-PACKS-R109.4`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_save` (new). Shape: Write handler in new `arbora/api/ops/dashboard.py` using `bound_service` for the engine catalog port; idempotency and audit come from the existing `invoke` pipeline. | Test: `tests/api/test_dashboard_ops_served.py::test_save_update_and_stale_revision_conflict` (served). It asserts the new revision and the pass-through conflict.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.3
Validation and size cap
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Validation and size cap.** Subsystem: dashboard operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/dashboard.py``::handle_dashboard_save`. Validation runs before any engine write. The handler validates the document against `DashboardDocument`. It refuses a document above the byte cap with `INVALID_ARGUMENT`, field `document`, reason `payload_too_large`. Config: `dashboard.max_document_bytes` in `~/.config/arbora/config.yaml`, default 1,048,576, range 4,096 to 16,777,216. It stores panel queries and never executes them. Engine refusal `DASHBOARD_BODY_INVALID` passes through. Depends: `ARBORA-OPS-R861.1`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_save` (new). Shape: Validation runs first in `handle_dashboard_save` through `DashboardDocument.model_validate`, with the byte cap read from `dashboard.max_document_bytes`; refusals use `OperationRefused` (`arbora/api/invoke/pipeline.py:111`). | Test: `tests/api/test_dashboard_ops_served.py::test_validation_and_size_cap_make_no_engine_write` (served). It asserts each refusal, zero engine writes and zero query executions.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.4
Read
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Read.** Subsystem: dashboard operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/dashboard.py``::handle_dashboard_get` and `handle_dashboard_list`. Both are `Effect.READ`, scope `kg:read`. `dashboard.get` returns one document by id for the owner or a grantee. `dashboard.list` returns the caller's owned dashboards and those shared with the caller. Each entry has the role `owner`, `edit` or `view`. Pages hold 50 entries (maximum 200) and use a cursor. Both read through the engine catalog projector (`MEDULLA-TYPED-PACKS-R109.3`). A get raises the engine usage count. Depends: `ARBORA-OPS-R861.1`, `MEDULLA-TYPED-PACKS-R109.3`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_get`, `handle_dashboard_list` (new). Shape: Read handlers in new `arbora/api/ops/dashboard.py` over the engine catalog port, paged with a cursor like other list reads in `arbora/api/ops`. | Test: `tests/api/test_dashboard_ops_served.py::test_list_owned_and_shared_and_get_by_id` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.5
Delete
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Delete.** Subsystem: dashboard operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/dashboard.py``::handle_dashboard_delete`. `Effect.DESTRUCTIVE`, `Confirm.PLAN`, `AuditClass.IDENTITY_CHAIN`, scope `kg:write`. The preview returns the dashboard title, revision and grants. Execution needs an approved plan and the matching `expected_revision`. The engine soft-deletes and keeps the asset for its retention period (`MEDULLA-TYPED-PACKS-R109.2`). Only the owner may delete. Without a plan the call refuses `CONFIRMATION_REQUIRED` with zero engine writes. Depends: `ARBORA-OPS-R861.4`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_delete` (new). Shape: Destructive handler in new `arbora/api/ops/dashboard.py`; the plan requirement is enforced by `arbora/api/invoke/pipeline.py:744::_confirmation_gate` through `Confirm.PLAN`. | Test: `tests/api/test_dashboard_ops_served.py::test_delete_preview_plan_required_and_effect` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.6
Share
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Share.** Subsystem: dashboard operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/dashboard.py``::handle_dashboard_share`. `Effect.WRITE`, scope `kg:write`, `AuditClass.EVENT`. Params: `id`, `principal` or `group`, `role` (`view` or `edit`) and `action` (`grant` or `revoke`). The owner and `edit` grantees may call it. An `edit` grantee must not change the owner or any `edit` grant. The engine refuses with `DASHBOARD_NOT_GRANTED`. A `view` caller refuses `SUBJECT_ACCESS_DENIED`. Grants are stored by the engine only. Depends: `ARBORA-OPS-R861.4`, `MEDULLA-TYPED-PACKS-R109.4`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_share` (new). Shape: Write handler in new `arbora/api/ops/dashboard.py`; grants live in the engine only, and the engine refusal codes pass through `EngineRefusal`. | Test: `tests/api/test_dashboard_ops_served.py::test_share_grant_revoke_and_view_caller_refused` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.7
Scope and audit
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Scope and audit.** Subsystem: dashboard operations. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `invoke` → `arbora/api/ops/dashboard.py``::handle_dashboard_*`. Every operation runs under the caller principal and tenant. A caller without a grant gets the same `NOT_FOUND` refusal as for an absent id. The response never names the owner or the grants of a hidden dashboard. Each call writes one audit event with the principal, the operation, the dashboard id and the revision. Cross-tenant ids resolve as absent. Depends: `ARBORA-OPS-R861.2`, `ARBORA-OPS-R861.4`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_save`, `handle_dashboard_get`, `handle_dashboard_list`, `handle_dashboard_delete`, `handle_dashboard_share` (new). Shape: All handlers read tenant and principal from `context.caller` as in `arbora/api/ops/retrieval.py:89`; audit comes from `arbora/api/invoke/audit.py:13::audit_event`, and an absent id and a hidden id map to one `NOT_FOUND` refusal. | Test: `tests/api/test_dashboard_ops_served.py::test_cross_tenant_non_disclosure_and_audit` (served). It compares the two refusals byte for byte.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.8
Wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring.** Subsystem: dashboard operations. Caller: registry build in `get_registry` → `arbora/api/ops/dashboard.py::operations`. Add `dashboard` to the import list and the module loop of `arbora/api/ops/registry_factory.py::get_registry`. The handlers call the engine catalog asset operations of `MEDULLA-TYPED-PACKS-R109.3` and hold no asset store. Declare each engine read and write in the ops-to-engine table of `specs/hosted-api-operations/plan.md`. Each handler is reachable through `invoke` over HTTP and MCP. The handlers call the `DashboardAsset` ops `Save`, `Share`, `Delete` and `Restore` (`MEDULLA-TYPED-PACKS-R109.3`). `DASHBOARD_REVISION_CONFLICT` maps to `REVISION_CONFLICT`. Reads use `query.uql`. Depends: `MEDULLA-TYPED-PACKS-R109.3`. Caller chain: `arbora/api/ops/registry_factory.py:16::get_registry` module loop (line 52) -> `arbora/api/ops/dashboard.py::operations` (new). Shape: Add `dashboard` to the import list at `registry_factory.py:24` and the loop; `operations()` mirrors `arbora/api/ops/retrieval.py:111`, and the ops-to-engine table in `specs/hosted-api-operations/plan.md` lists the engine calls. | Test: `tests/api/test_dashboard_ops_served.py::test_each_operation_reaches_its_handler` (served, HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R861.9
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Subsystem: dashboard operations. Caller: served `invoke` over HTTP and MCP → `arbora/api/ops/dashboard.py``::handle_dashboard_save`. The test saves a fixture dashboard and shares it. It lists the dashboard as the grantee and updates it with a stale revision. It then deletes the dashboard under an approved plan. The engine side is a recording catalog projector. Depends: `ARBORA-OPS-R861.2` to `ARBORA-OPS-R861.8`. Caller chain: served `invoke` (`arbora/api/http/routes.py:160` over HTTP, `arbora/api/mcp/verbs.py:244` over MCP) -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/dashboard.py::handle_dashboard_save` (new). Shape: Test-only proof over R861.2 to R861.8 with a recording catalog projector fixture. | Test: `tests/api/test_dashboard_ops_served.py::test_save_share_list_conflict_delete_served` (served). It asserts each step and the engine call order.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.8
Project an admitted execution graph
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Project an admitted execution graph.** Stage: served read operation `runs.execution_graph`. Caller: `invoke` → `handle_runs_execution_graph` → `NativeRunReader.execution_graph` → `arbora/api/ops/run_graph.py::project_graph`. Rule: keep replay semantics and decoder invariants. A new projection is versioned (`SCHEMA` in `run_replay.py`); an unsupported version refuses and never reinterprets event task ids. Return a bounded snapshot and ordered updates from the same owner-checked plan and `RunEvent` rows. Keep the root work item, the run and the run-local step as distinct identities. Node keys are `step_key(run_id, task_id)`. Edges are `spawned_child` or `depends_on`, never both implied. Dependencies never imply parentage. Only producer-declared lineage appears. The snapshot binds root, schema version, covered event cursor and completeness. Updates keep native event ids and sequence. Config: `runs_graph_max_nodes` default 500 and `runs_graph_max_edges` default 2000 in `~/.config/arbora/config.yml`, ranges [10, 5000] and [10, 20000]. Past a bound the snapshot is `partial`. Refusals: a gap, a conflicting identity or missing lineage returns an explicit `unavailable` or `partial` state. Arbora invents no edge. Writes: none. Depends: R021.4.1, R021.4.2. | Test: `tests/api/test_execution_graph.py::test_snapshot_plus_updates_equals_fresh_snapshot` (L1) asserts equality at one cursor. Test: `tests/api/test_runs_served.py::test_fan_out_fan_in_reconnect_and_foreign_owner` (L3) covers repeated step names, bounded pages and foreign-owner refusal before any payload read.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.9
Project permitted node records and capabilities
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Project permitted node records and capabilities.** Stage: served read operation `runs.node` beside `runs.execution_graph`. Caller: `invoke` → `arbora/api/ops/runs.py::handle_runs_node` (new) → `NativeRunReader.node`. Rule: authorize each selected node through its explicit owner binding before any transcript or execution read. Keep public summaries, model text, tool records and transcript as distinct fields, each with provenance, visibility, redaction and availability. Return four capabilities: `can_read_events`, `can_read_transcript`, `can_message_active` and `can_continue_completed`. Each is a boolean with a typed unavailable reason; unknown defaults to unavailable. Only an owner-issued target binding enables interaction. A trace id, step id, span name or readable event never grants chat authority. Writes recheck authority. Refusals: a forged node-owner pair returns `SUBJECT_ACCESS_DENIED`. Private reasoning and secrets never appear. An absent transcript differs from an empty one. Writes: none. Depends: R021.4.8. Caller chain: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `arbora/api/ops/runs.py::handle_runs_node` (new, beside `handle_runs_execution_graph` at line 129; `operations` at line 142) -> `arbora/mcp_server/run_reader.py::NativeRunReader.node` (new, beside `execution_graph` at line 112). Shape: Add a `node` method to `NativeRunReader` that calls `_owned` (line 58) first, then a `runs.node` `OpSpec` in `arbora/api/ops/runs.py` built like `runs.execution_graph`; capability fields default to unavailable. | Test: `tests/api/test_runs_ops.py::test_node_capabilities_default_unavailable` (L1). Test: `tests/api/test_runs_served.py::test_node_records_owner_scoped_on_both_transports` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine. It rejects forged pairs and keeps interaction disabled for a flat replay.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R021.4.8.1
Negotiated flat execution snapshot
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Negotiated flat execution snapshot.** Serve `runs.execution_graph` with required `schema_version=arbora-execution-graph-v1`, preserving the default `runs.get` and `runs.events` payloads and replay v1 decoder. Reuse canonical root WorkItem/run admission before native current-plan or event reads. Project only declared task IDs, dependencies and plan digest, with stable run-qualified step keys and predecessor-to-dependent edges. Recheck the plan binding after collecting events. Use a bounded, contiguous ordered event prefix for evidenced lifecycle only; absent step evidence remains unobserved. Separate complete declared topology from explicitly incomplete lifecycle. No prompt, output, conversation, spawn edge or interaction authority is projected. Unsupported schemas, unavailable or expired plans, changed plan bindings, malformed histories, and histories beyond the census bound fail closed. Caller chain: Over HTTP `arbora/api/http/app.py:205` route loop -> `arbora/api/http/routes.py:160`, over MCP `arbora/api/mcp/verbs.py:244`, both -> `arbora/api/invoke/pipeline.py:1021::invoke` -> `arbora/api/ops/runs.py:129::handle_runs_execution_graph` -> `arbora/mcp_server/run_reader.py:112::NativeRunReader.execution_graph`. Shape: `NativeRunReader.execution_graph` checks the owner with `_owned`, reads the native snapshot twice around a bounded `_page` collection, and projects with `arbora/api/ops/run_graph.py:143::project_graph` (`declared_topology` at line 103, `unavailable_graph` at line 84). | Pure and served-source tests in `tests/api/test_execution_graph.py` cover fan-out/fan-in, repeated local IDs across runs, private-field omission, exact root/run/plan binding, owner-first refusal, immutable replay v1 behavior and event/byte bounds. Registry HTTP and MCP invoke the same native reader seam. These source tests do not establish installed native-service or nested execution acceptance; R021.4.8 and R021.4.9 remain open. Test: `tests/api/test_execution_graph.py::test_http_and_mcp_share_native_owner_checked_projection`.
requirementARBORA-OPSVERIFIED2e09ba70eba9
5aed3058d14b
6057bc34d842
6268c79436c9
951e55158d8a
tests/api/test_execution_graph.py:28
ARBORA-OPS-R021.4.8.2
Nested lineage and snapshot reconciliation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Nested lineage and snapshot reconciliation.** Stage: served read operation `runs.execution_graph`, nested slice. Caller: as R021.4.8, with a producer that declares child runs. Producer: the harness emits `spawned_child` events with `parent_run_id` and `child_run_id` (`MERISTEM-HARNESS-CYCLE-R060`). Medulla stores them as `RunEvent` facts (`MEDULLA-ORCH-VOCAB-R009.100`). Rule: serve only producer-declared child and grandchild identities, each with its own authorized run binding. Distinguish `spawned_child` edges from `depends_on` edges. Reconcile a snapshot plus ordered updates to a fresh snapshot at the same cursor. Keep event identity across reconnect. Bound each page, run census, node set and depth with `runs_graph_max_depth` default 4, range [1, 8]. After truncation the snapshot says `partial`. A flat plan step never supplies a child conversation or interaction target. Refusals: conflicting duplicates, gaps, cross-run payloads and missing lineage return typed states. Writes: none. Depends: R021.4.8, `MERISTEM-HARNESS-CYCLE-R060`. Caller chain: As R021.4.8: `invoke` (`arbora/api/invoke/pipeline.py:1021`) -> `arbora/api/ops/runs.py:129::handle_runs_execution_graph` -> `arbora/mcp_server/run_reader.py:112::NativeRunReader.execution_graph`, extended to follow `spawned_child` events. Shape: Extend `arbora/api/ops/run_graph.py` (`ExecutionGraphRead.supports_spawned_children` is `Literal[False]` at line 63 today) with child edges and the `runs_graph_max_depth` bound, and make `NativeRunReader` authorize each child run through `_owned`. | Test: `tests/api/test_runs_served.py::test_root_child_grandchild_over_both_transports` (L3) runs HTTP and MCP through `invoke`, with a loopback medulla engine with a recorded producer trace. It covers restart, reconnect, duplicate and gap handling and foreign-owner refusal. Source tests of R021.4.8.1 do not satisfy this row.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R024.6
Derivation status read
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Derivation status read.** Stage: served read. Operation `participant.derivation.status` (verb `ask`, effect `READ`, scope `participant:read`) in new `arbora/api/ops/participants.py`. Caller: the registry `invoke` → `handle_derivation_status` → `send_engine("ParticipantRead", {op: "status", scope_id, session_id, subject})`. The result lists `DerivationStatus` rows: `pending` and `oldest_pending_age_ms` for each scope, session and subject. The result is tenant-scoped through the caller's own session. Refusals follow `ARBORA-OPS-R897.7`. Engine owner: `MEDULLA-DECISION-ENGINE-R655.4`. Writes: none. Depends: `ARBORA-OPS-R897.1`. Shape: one handler that builds the params and maps the engine answer into the result model. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/participants.py::handle_derivation_status`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/participants.py::handle_derivation_status`. (module not yet built). | Test: `tests/api/test_participant_ops_served.py::test_derivation_status_reaches_the_engine` (served: HTTP and MCP, loopback engine).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R054.1
Technique activation model and behavior
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Technique activation model and behavior.** Stage: arbora served operations. Code: `TechniqueActivationRequest{technique, model_ref, configuration_digest}` and `TechniqueActivation{technique, model_ref, configuration_digest, receipt_digests, verdict}` in `arbora/api/ops/serving_techniques.py`; `technique` is the closed set above. Rule: the handler sends `Decide` with `QuestionKind::ServingTechniqueActivation` (MEDULLA-DECISION-ENGINE-R819) and commits the sealed record with `DecisionCommit` only for the verdict `activate`. Each receipt must bind the same technique, model and configuration digest. Arbora invents no threshold. The engine knob `serving.max_regression` decides. Refusals: engine codes `TECHNIQUE_EVIDENCE_MISSING`, `TECHNIQUE_EVIDENCE_MISMATCH` and `TECHNIQUE_REGRESSED` pass through with zero serving effect. Evidence: the sealed record digest. Writes: `DecisionCommit` on `activate` only. Depends: MEDULLA-DECISION-ENGINE-R819. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/serving_techniques.py::handle_technique_activate`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/serving_techniques.py::handle_technique_activate`. (module not yet built). Shape: New `arbora/api/ops/serving_techniques.py` with frozen `Params`/`TenantState` models from `arbora/api/ops/_common.py`; the commit leg reuses `handle_decide_commit` (`arbora/api/ops/decide.py:43`) through the `decide_runner` service. | Test: `tests/api/test_serving_technique_served.py::test_missing_mismatched_or_regressing_evidence_refuses` (L3). It asserts each code and no commit.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R054.2
Technique activation wiring and proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Technique activation wiring and proof.** Stage: arbora served operations. Code: register the operation in `operations()` of `arbora/api/ops/serving_techniques.py` with `Confirm.PLAN`, scope `serving:admin`. Add the module to `get_registry` in `arbora/api/ops/registry_factory.py`. The write path reuses `handle_decide_commit` in `arbora/api/ops/decide.py`. The operation stays unregistered until the engine reports `ServingTechniqueActivation`. Entry point for the proof: the served operation over HTTP and MCP. The engine is a loopback engine with recorded receipts for all five techniques. Writes: none beyond the commit. Depends: ARBORA-OPS-R054.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/serving_techniques.py::handle_technique_activate`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/serving_techniques.py::handle_technique_activate`. Registered via `get_registry` (`arbora/api/ops/registry_factory.py:16`). Shape: `operations()` in `arbora/api/ops/serving_techniques.py` returns an `OpSpec` with `Confirm.PLAN`; the module is added to the import tuple in `arbora/api/ops/registry_factory.py:16`, mirroring `arbora/api/ops/decide.py`. | Test: `tests/api/test_serving_technique_served.py::test_activation_requires_technique_bound_evidence` (L3). It activates all five techniques and refuses one regressed receipt.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R055.1
Process remediation proposal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process remediation proposal.** Stage: arbora served operations. Code: `ProcessProposal{run_id, process_id, evidence_digest, verdict}` in `arbora/api/ops/ops.py`. Scope `ops:read`. Rule: the handler sends `Decide` with `QuestionKind::ProcessRemediation` (MEDULLA-DECISION-ENGINE-R820). It attaches the liveness evidence for the named run and process, and returns the proposal only. The verdict distinguishes `zombie`, `hung` and `progressing`. Arbora stops nothing here. Refusals: `UNAVAILABLE` until the engine reports the question. Engine code `LIVENESS_EVIDENCE_STALE` or `LIVENESS_EVIDENCE_MISMATCH` passes through. Evidence: evidence digest. Writes: none. Depends: MEDULLA-DECISION-ENGINE-R820. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/ops.py::handle_process_proposal`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/ops.py::handle_process_proposal`. (handler not yet built; sibling `handle_ops_doctor` is at `arbora/api/ops/ops.py:134`). Shape: `ProcessProposal` model and handler added beside the existing `ops.*` handlers in `arbora/api/ops/ops.py:134-195`; Declared with `build_read_op` (`arbora/api/ops/_common.py:112`), listed through `get_registry` (`arbora/api/ops/registry_factory.py:16`); engine calls reuse `dispatch_eg_method` (`arbora/api/invoke/bootstrap.py:194`). | Test: `tests/api/test_ops_admin_ops.py::test_process_proposal_is_proposal_only` (L3). It asserts the verdicts and zero process effects.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R055.2
Process termination bound to approval
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process termination bound to approval.** Stage: arbora served operations. Code: `handle_process_terminate` in `arbora/api/ops/ops.py` with `Confirm.PLAN`, scope `ops:admin`, console step-up. The approval binds the exact `run_id`, `process_id` and `evidence_digest`. Rule: apply once through the `ProcessTerminator` port, bound as `process_terminator` by `_with_process_terminator` in `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`. Its adapter calls the harness termination of MERISTEM-HARNESS-CYCLE-R063. Refusals: a missing, stale or mismatched approval or evidence returns `POLICY_DENIED` with zero process effects; `STEP_UP_REQUIRED` without step-up. Evidence: audit record with run, process and approval reference. Writes: one termination. Depends: ARBORA-OPS-R055.1, MERISTEM-HARNESS-CYCLE-R063. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/ops.py::handle_process_terminate`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/ops.py::handle_process_terminate`. The `process_terminator` port is bound in `compose_served_invocation` (`arbora/mcp_server/served_invocation.py:550`) (binder not yet built). Shape: Handler beside `handle_ops_backup`/`handle_ops_restore` (`arbora/api/ops/ops.py:165-195`, scope `ops:admin`); a `ProcessTerminator` Protocol and a `_with_process_terminator` binder following the `_with_ingest_runner` pattern (`arbora/mcp_server/served_invocation.py:236`). | Test: `tests/api/test_ops_admin_ops.py::test_process_remediation_requires_run_bound_approval` (L3). It asserts one application after approval and zero effects on mismatch.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R059.1
Evolution metrics models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evolution metrics models.** Stage: arbora served operations. Code: frozen Pydantic models in `arbora/api/ops/evolution_metrics.py`. `EvolutionMetricsQuery{schema_version, proposal_id, proposal_revision, prompt_version_id, prompt_revision, prompt_digest, metric_window_id, metric_window_revision, metric_window_digest}`. `EvolutionMetricsProjection{schema_version, trace_refs, missing_ids, query_digest, coverage, state, metrics}` with `state` in `complete`, `partial`. Each metric holds `metric_id`, `name`, `value`, `unit`, `numerator`, `denominator`, `observed_at_ms`, `state` (`measured`, `unknown`). Both mirror the Rust types of MEDULLA-ORCH-VOCAB-R010.100. Arbora tests them against its round-trip vectors. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-ORCH-VOCAB-R010.100. Caller chain: Models are consumed by the handler reached through `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics`. (module not yet built). Shape: Frozen Pydantic models in new `arbora/api/ops/evolution_metrics.py`, built on the `Params`/`FrozenState` bases of `arbora/api/ops/_common.py`; same pattern as `RetrievalHit` in `arbora/api/ops/retrieval.py:25`. | Test: `tests/api/test_evolution_metrics_served.py::test_models_round_trip_rust_vectors` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R059.2
Evolution metrics behavior and wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evolution metrics behavior and wiring.** Stage: arbora served operations. Code: `operations()` in `arbora/api/ops/evolution_metrics.py` registers the read operation with `build_read_op`, scope `evolution:read`; `get_registry` lists the module. Rule: derive tenant and project scope from the verified caller only. Forward the query unchanged under the caller's own session. Return progress, ordered trace references and metrics as the engine returns them. A missing known trace stays partial, never zero. `runs.get` and `runs.metrics` do not satisfy this join. Refusals: see `.3`. Evidence: audit record with the query digest. Writes: none. Depends: ARBORA-OPS-R059.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics`. (module not yet built). Shape: One handler in `arbora/api/ops/evolution_metrics.py` forwards the query through a typed engine port bound as a service, as `handle_retrieval_search` does (`arbora/api/ops/retrieval.py:76`) with `bound_service` (`arbora/api/ops/_common.py:70`); Declared with `build_read_op` (`arbora/api/ops/_common.py:112`), listed through `get_registry` (`arbora/api/ops/registry_factory.py:16`); engine calls reuse `dispatch_eg_method` (`arbora/api/invoke/bootstrap.py:194`). | Test: `tests/api/test_evolution_metrics_served.py::test_projection_forwards_caller_scope_and_keeps_partial_state` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R059.3
Evolution metrics refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evolution metrics refusals.** Stage: arbora served operations. Rule: a cross-scope or incomplete identity returns `SUBJECT_ACCESS_DENIED` or `INVALID_ARGUMENT` before any engine read, and discloses no progress or metrics. A stale window or digest mismatch from the engine passes through as `STALE_REVISION`. An engine without the method returns `UNAVAILABLE`. Writes: none. Depends: ARBORA-OPS-R059.2. Caller chain: Refusals are raised by `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics` inside the pipeline at `arbora/api/invoke/pipeline.py:1021`, which maps `OperationRefused` (`arbora/api/invoke/pipeline.py:111`) to typed errors (module not yet built). Shape: Checks run in the handler before the engine port call; engine codes pass through the `EngineRefusal` mapping in `arbora/api/errors.py` and `_typed_refusal` (`arbora/api/invoke/pipeline.py:985`). | Test: `tests/api/test_evolution_metrics_served.py::test_denied_or_incomplete_requests_read_nothing` (L3). It asserts zero engine calls on the first two refusals.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R059.4
Evolution metrics hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Evolution metrics hot-path proof.** Stage: arbora served operations. Entry point: the served operation from the evolution dashboard path over HTTP and MCP. The test stores a proposal, two pinned traces and metrics through ingest, then reads the join. A denied trace reveals neither progress nor metrics. Writes: none. Depends: ARBORA-OPS-R059.2, ARBORA-OPS-R059.3. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/evolution_metrics.py::handle_evolution_metrics`. The browser path enters at `POST /api/v1/ops/evolution.metrics`. Shape: Test-only proof over the HTTP app built by `create_api_application` (`arbora/api/http/app.py:58`) and the MCP surface, with a loopback engine; no new production code. | Test: `tests/api/test_evolution_metrics_served.py::test_dashboard_joins_proposal_to_trace_metrics` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R060.1
Session and harness models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Session and harness models.** Stage: arbora served operations. Code: frozen models in `arbora/api/ops/sessions.py`: `HarnessManifest{schema_version, harnesses: tuple[HarnessEntry]}` with `HarnessEntry{harness_id, version, source_coverage_revision}`; `DiscoveryProgress{schema_version, harness_id, state, indexed_session_revision}`; `SessionQuery{schema_version, text, harness_id, cursor, page_size}`; `SessionPage{schema_version, sessions, next_cursor, partial, denied_sources}`; `SessionCostSummary{schema_version, amount, currency, unit, coverage}`. `page_size` is in `[1, 100]`, default 25. Models mirror the Rust types of MEDULLA-ORCH-VOCAB-R807. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-ORCH-VOCAB-R807. Caller chain: Models are consumed by handlers reached through `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/sessions.py::handle_sessions_browse`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/sessions.py::handle_sessions_browse`. (module not yet built). Shape: Frozen Pydantic models in new `arbora/api/ops/sessions.py` on the `_common` bases (`arbora/api/ops/_common.py`); `page_size` bounded with `Field(ge=1, le=100)`. | Test: `tests/api/test_sessions_served.py::test_models_round_trip_rust_vectors_and_bound_page_size` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R060.2
Harness manifest and discovery status operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Harness manifest and discovery status operations.** Stage: arbora served operations. Caller: `handle_harness_manifest` and `handle_discovery_status` in `arbora/api/ops/sessions.py`. Rule: `harnesses.manifest` reads the approved harness manifest through the fleet catalog entries of the connector sync (SCION-SOURCE-INGEST-R013). `harnesses.discovery.status` reads the sync job status through `ingest.jobs.status` (ARBORA-OPS-R020.3.1.2) and joins the indexed-session revision from the engine. Scopes: `sessions:read`. Refusals: `UNAVAILABLE` without the fleet catalog. Writes: none. Depends: ARBORA-OPS-R020.3.1.2, SCION-SOURCE-INGEST-R013. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/sessions.py::handle_harness_manifest`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/sessions.py::handle_harness_manifest`. and the same chain to `handle_discovery_status` (module not yet built). Shape: Two handlers in `arbora/api/ops/sessions.py` using `bound_service` (`arbora/api/ops/_common.py:70`) for the fleet catalog and the ingest job status reader; Declared with `build_read_op` (`arbora/api/ops/_common.py:112`), listed through `get_registry` (`arbora/api/ops/registry_factory.py:16`); engine calls reuse `dispatch_eg_method` (`arbora/api/invoke/bootstrap.py:194`). | Test: `tests/api/test_sessions_served.py::test_manifest_and_discovery_status_name_every_declared_harness` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R060.3
Session browse, search and cost operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Session browse, search and cost operations.** Stage: arbora served operations. Caller: `handle_sessions_browse`, `handle_sessions_search`, `handle_sessions_costs` → `Method::SessionQuery` (MEDULLA-ORCH-VOCAB-R807) under the caller's own session. Rule: forward the bounded page and cursor. A denied source returns as a typed partial outcome with no hidden session metadata. Costs return amount, currency, unit and coverage. Unknown stays unknown. Registered with `build_read_op`, scope `sessions:read`. Refusals: see `.4`. Writes: none. Depends: ARBORA-OPS-R060.1, MEDULLA-ORCH-VOCAB-R807. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/sessions.py::handle_sessions_browse`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/sessions.py::handle_sessions_browse`. (also `handle_sessions_search`, `handle_sessions_costs`; module not yet built). Shape: Three handlers in `arbora/api/ops/sessions.py` sharing one engine port call; Declared with `build_read_op` (`arbora/api/ops/_common.py:112`), listed through `get_registry` (`arbora/api/ops/registry_factory.py:16`); engine calls reuse `dispatch_eg_method` (`arbora/api/invoke/bootstrap.py:194`). | Test: `tests/api/test_sessions_served.py::test_denied_sources_are_partial_without_metadata` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R060.4
Session operation refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Session operation refusals.** Stage: arbora served operations. Rule: a stale cursor returns `STALE_CURSOR`. An unknown harness identifier returns `INVALID_ARGUMENT`. Missing tenant scope returns `SCOPE_REQUIRED`. A missing engine method returns `UNAVAILABLE`. No refusal advances a cursor or exposes another tenant's sessions. Writes: none. Depends: ARBORA-OPS-R060.3. Caller chain: Refusals are raised by the handlers in `arbora/api/ops/sessions.py` under `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`); typed through `_typed_refusal` (`arbora/api/invoke/pipeline.py:985`). Shape: Validation in the `sessions.py` handlers before the port call; engine codes mapped by `arbora/api/errors.py`. | Test: `tests/api/test_sessions_served.py::test_refusals_expose_no_cross_tenant_sessions` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R060.5
Session projection hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Session projection hot-path proof.** Stage: arbora served operations. Entry point: the five served operations over HTTP and MCP. The test syncs fixture sessions through the connector path, restarts the engine, and repeats browse and search. Source identities and cursors must stay stable. Writes: none. Depends: ARBORA-OPS-R060.2, ARBORA-OPS-R060.3. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/sessions.py::handle_sessions_browse`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/sessions.py::handle_sessions_browse`. The five operations are the sessions handlers. Shape: Test-only proof over `create_api_application` (`arbora/api/http/app.py:58`) and the MCP intent surface with a loopback engine; no new production code. | Test: `tests/api/test_sessions_served.py::test_browser_discovers_browses_and_searches_every_harness` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R061.1
Usage index models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Usage index models.** Stage: arbora served operations. Code: frozen models in `arbora/api/ops/usage.py`. `UsageIndexQuery{schema_version, window_start_ms, window_end_ms, model, project, agent, group_by, currency, page_size, cursor}`, with `page_size` in `[1, 1000]`. `UsageIndexProjection{schema_version, groups, counters, amount, currency, minor_unit, accounting_revision, price_table_revision, currency_revision, coverage, index_watermark, cursor, latency_profile}`. `counters` holds the four disjoint integer counters `uncached_input`, `cached_input`, `nonreasoning_output`, `reasoning_output`, plus producer-derived `input_total` and `output_total`. `latency_profile` holds `profile_revision`, `p95_bound_ms`, `unit`, `boundary`, `workload`, `indexed_dataset_size`, `data_revision`, `index_revision`, `cache_policy_revision`. Unknown attribution, price or currency carries a reason and coverage, never zero. Models mirror the Rust types of MEDULLA-ORCH-VOCAB-R010.101. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-ORCH-VOCAB-R010.101. Caller chain: Models are consumed by `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/usage.py::handle_usage_index_query`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/usage.py::handle_usage_index_query`. (handler not yet built; `arbora/api/ops/usage.py:35` holds the existing `handle_usage_read`). Shape: Frozen models added to `arbora/api/ops/usage.py` beside `UsageSnapshot` (`arbora/api/ops/usage.py:22`), on the `_common` bases; counters as non-negative integers. | Test: `tests/api/test_usage_index_served.py::test_models_round_trip_rust_vectors_and_unknown_stays_unknown` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R061.2
Usage index forwarding
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Usage index forwarding.** Stage: arbora served operations. Caller: `handle_usage_index_query` → `UsageIndexReader.query` → the trace usage query method of MEDULLA-ORCH-VOCAB-R010.101. Rule: derive the tenant only from the verified caller. Forward the query unchanged. Return the engine's exact-rational aggregates, which round half-even once per final group and category. Arbora recomputes none. Currencies stay separate unless the engine supplies a pinned conversion revision. The caller cannot select bounds: the schema has no field for the p95 bound or workload. Refusals: see `.4`. Writes: none. Depends: ARBORA-OPS-R061.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/usage.py::handle_usage_index_query`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/usage.py::handle_usage_index_query`. -> `UsageIndexReader.query` (handler and port not yet built). Shape: Handler and `UsageIndexReader` Protocol in `arbora/api/ops/usage.py`, modelled on `UsageReader` (`arbora/api/ops/usage.py:29`) and `handle_usage_read` (`arbora/api/ops/usage.py:35`) via `bound_service`. | Test: `tests/api/test_usage_index_served.py::test_projection_is_engine_aggregate_without_local_arithmetic` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R061.3
Usage index wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Usage index wiring.** Stage: arbora served operations. Code: register `usage.index.query` in `operations()` of `arbora/api/ops/usage.py`, distinct from `usage.read`, with `build_read_op` and scope `usage:read`. Add `_with_usage_index_reader` in `arbora/mcp_server/served_invocation.py`, called from `compose_served_invocation` in `arbora/mcp_server/served_invocation.py`. Registration flows through `get_registry` and the shared invoke path. Refusals: `UNAVAILABLE` without a bound reader. Writes: none. Depends: ARBORA-OPS-R061.2. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/usage.py::handle_usage_index_query`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/usage.py::handle_usage_index_query`. The reader is bound in `compose_served_invocation` (`arbora/mcp_server/served_invocation.py:550`). Shape: `operations()` (`arbora/api/ops/usage.py:46`) gains a second `build_read_op`; `_with_usage_index_reader` follows `_with_ingest_runner` (`arbora/mcp_server/served_invocation.py:236`). | Test: `tests/api/test_usage_index_served.py::test_registry_lists_operation_and_binder_composes_reader` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R061.4
Usage index refusals and latency profile
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Usage index refusals and latency profile.** Stage: arbora served operations. Rule: authorize and bind the tenant before engine dispatch. A denied or foreign scope, a stale cursor or a revision mismatch returns an error and exposes no rows. The producer p95 profile is 500 ms. It is measured from authenticated-handler entry to the serialized response. The workload is 1000000 indexed traces, 32 readers and 1000 fixed-window queries. Absent, invalid or exceeded latency evidence returns `UNAVAILABLE` with no aggregates. Configuration: key `usage_index.p95_bound_ms` in `~/.config/arbora/config.json`, default 500, bounds `[50, 5000]`. Writes: none. Depends: ARBORA-OPS-R061.2. Caller chain: Refusals come from `arbora/api/ops/usage.py::handle_usage_index_query` under `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). Shape: Checks in the handler before the reader call; the p95 bound is read from `~/.config/arbora/config.json` through the existing config reader and refusals surface via `OperationRefused` (`arbora/api/invoke/pipeline.py:111`). | Test: `tests/api/test_usage_index_served.py::test_denied_stale_and_unproven_latency_expose_no_rows` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R061.5
Usage index hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Usage index hot-path proof.** Stage: arbora served operations. Entry point: `POST /api/v1/ops/usage.index.query` from the browser path. The test ingests traces, queries each grouping, and reconciles each against an independent ledger read. It records the bound, units, boundary, workload, measured p95 and the data, index and cache-policy revisions. Writes: none. Depends: ARBORA-OPS-R061.3, ARBORA-OPS-R061.4. Caller chain: `POST /api/v1/ops/usage.index.query` -> `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/usage.py::handle_usage_index_query`. Shape: Test-only proof over `create_api_application` (`arbora/api/http/app.py:58`); no new production code. | Test: `tests/api/test_usage_index_served.py::test_browser_query_reconciles_with_independent_ledger` (L3). It checks the four counters, rounding, minor units, watermark, cursor and unknown reasons.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R062.1
Graph change models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Graph change models.** Stage: arbora served operations. Code: frozen models in new `arbora/api/ops/graph_changes.py`. `GraphChangeEvent{schema_version, graph_incarnation, committed_revision, event_id, cursor, change_kind, subject_id, tombstone}`. `GraphSnapshotRecovery{schema_version, graph_incarnation, snapshot_revision, cursor, nodes_digest}`. Models mirror the Rust types of MEDULLA-DURABLE-KERNEL-R043.100. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-DURABLE-KERNEL-R043.100. Caller chain: Models are consumed by `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/graph_changes.py::handle_graph_changes_subscribe`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/graph_changes.py::handle_graph_changes_subscribe`. (module not yet built). Shape: Frozen models in new `arbora/api/ops/graph_changes.py` on the `_common` bases (`arbora/api/ops/_common.py`). | Test: `tests/api/test_graph_changes_served.py::test_models_round_trip_rust_vectors` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R062.2
Subscribe and stream
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Subscribe and stream.** Stage: arbora served operations and gateway stream. Caller: `handle_graph_changes_subscribe` in `arbora/api/ops/graph_changes.py`, then the route `graph_changes_websocket` in new `arbora/gateway/graph_changes_ws.py`, patterned on `dashboard_websocket`. Rule: every connection and every reconnect re-verifies the bearer through `verified_bearer_session_for_request` and reads `ReadGraphChanges` from the cursor. Frames carry events in cursor order. The client deduplicates by `event_id`. Configuration: key `graph_changes.max_batch` default 500, bounds `[1, 5000]` events per frame. Scope `graph:read`. Refusals: see `.4`. Writes: none. Depends: ARBORA-OPS-R062.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/graph_changes.py::handle_graph_changes_subscribe`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/graph_changes.py::handle_graph_changes_subscribe`. The stream route is registered like `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`) with `add_api_websocket_route`; modules not yet built. Shape: New `arbora/gateway/graph_changes_ws.py` patterned on `dashboard_websocket` (`arbora/gateway/dashboard_api.py:391`), re-verifying with `verified_bearer_session_for_request` (`arbora/api/http/auth.py:137`). | Test: `tests/api/test_graph_changes_served.py::test_stream_orders_events_and_reauthorizes_on_reconnect` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R062.3
Snapshot recovery
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Snapshot recovery.** Stage: arbora served operations. Caller: `handle_graph_snapshot_recover` → `Method::OpenGraphSnapshot`. Rule: an expired or stale cursor returns a typed recovery result `{state: recover, snapshot}` with the new cursor, never a silent gap. The client replaces its protected state with the snapshot. Writes: none. Depends: ARBORA-OPS-R062.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/graph_changes.py::handle_graph_snapshot_recover`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/graph_changes.py::handle_graph_snapshot_recover`. (module not yet built). Shape: Handler in `arbora/api/ops/graph_changes.py` calling the snapshot method through the engine dispatcher; Declared with `build_read_op` (`arbora/api/ops/_common.py:112`), listed through `get_registry` (`arbora/api/ops/registry_factory.py:16`); engine calls reuse `dispatch_eg_method` (`arbora/api/invoke/bootstrap.py:194`). | Test: `tests/api/test_graph_changes_served.py::test_expired_cursor_returns_typed_recovery` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R062.4
Revocation, refusals and visibility limit
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Revocation, refusals and visibility limit.** Stage: arbora gateway stream. Rule: on session revocation the route stops delivery within one poll interval and closes with code 4401. The client clears protected state. A stale incarnation returns `STALE_CURSOR`. Missing scope returns `SCOPE_REQUIRED`. The commit-to-visible limit is configuration `graph_changes.commit_to_visible_p95_ms`, default 2000, bounds `[100, 60000]`. The browser measures it over workload W-chg. W-chg is 50 committed changes per second for 60 seconds, 16 subscribers and a 10000-node graph. Writes: none. Depends: ARBORA-OPS-R062.2. Caller chain: The route `graph_changes_websocket` in `arbora/gateway/graph_changes_ws.py`, mounted next to `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`); cursor refusals come from `arbora/api/ops/graph_changes.py::handle_graph_changes_subscribe` (not yet built). Shape: Poll loop in the new websocket module modelled on `_stream_dashboard` (`arbora/gateway/dashboard_api.py`), re-checking the session each interval and closing with code 4401; limits are config keys read once at route setup. | Test: `tests/api/test_graph_changes_served.py::test_revocation_stops_delivery_and_limit_is_measured` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R062.5
Graph change hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Graph change hot-path proof.** Stage: arbora served operations and stream. Entry point: two served browser clients over HTTP and WebSocket against a loopback engine. They apply concurrent edits with duplicate, delayed and reordered events, a gap, a reconnect and a revocation. Both converge durably without refresh. Writes: none. Depends: ARBORA-OPS-R062.2 to R062.4. Caller chain: Browser clients enter at the ops route (`arbora/api/http/app.py:208`) and the websocket route `graph_changes_websocket` in `arbora/gateway/graph_changes_ws.py` (not yet built). Shape: Test-only proof using `create_api_application` (`arbora/api/http/app.py:58`) plus the gateway websocket and a loopback engine; no new production code. | Test: `tests/api/test_graph_changes_served.py::test_two_browsers_converge_under_gaps_reconnect_and_revocation` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R063.1
Retrieval evaluation and context models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval evaluation and context models.** Stage: arbora served operations. Code: frozen models in `arbora/api/ops/retrieval.py`. `RetrievalEvaluationQuery{schema_version, corpus_ref, corpus_revision, corpus_digest, label_set_ref, label_set_revision, label_set_digest, query_set_ref, query_set_revision, query_set_digest, evaluator_revision, k, algorithms}`, with `k` in `[1, 1000]` and at least two `algorithms`, each `{algorithm_id, version, settings_digest}`. `RetrievalComparison{schema_version, results}` with per-algorithm `numerator`, `denominator`, `metric`, `input_digest`, `result_digest`. `RetrievalContext{schema_version, document_id, document_revision, text_digest, byte_start, byte_end, query_revision, index_revision, authorization_revision, cursor}`. Offsets are half-open UTF-8 byte offsets into the original stored text. Models mirror the Rust types of MEDULLA-DECISION-ENGINE-R100.100. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-DECISION-ENGINE-R100.100.1, R100.100.3. Caller chain: Models are consumed by `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/retrieval.py::handle_retrieval_compare`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/retrieval.py::handle_retrieval_compare`. (not yet built; existing handlers at `arbora/api/ops/retrieval.py:76` and `:100`). Shape: Frozen models added to `arbora/api/ops/retrieval.py` beside `RetrievalHit` (`arbora/api/ops/retrieval.py:25`); `k` bounded with `Field(ge=1, le=1000)` and a minimum-two validator on `algorithms`. | Test: `tests/api/test_retrieval_evaluation_served.py::test_models_round_trip_rust_vectors` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R063.2
Retrieval evaluation forwarding
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval evaluation forwarding.** Stage: arbora served operations. Caller: `handle_retrieval_compare` → `RetrievalEvaluator.compare` → `RetrievalRankingSubmit`. Rule: all algorithms share the corpus, the label-set revision and digest, the query-set identity, the evaluator revision and `k`. They also share the query inputs. Each algorithm's settings digest is checked against its registered configuration and preserved in the result. For `hits_at_k` the denominator is the complete identically labeled query set. The numerator counts queries with a relevant result in the top `k`. Registered with `build_read_op`, scope `memory:read`. Refusals: see `.4`. Writes: none. Depends: ARBORA-OPS-R063.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/retrieval.py::handle_retrieval_compare`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/retrieval.py::handle_retrieval_compare`. -> `RetrievalEvaluator.compare` (handler and port not yet built). Shape: Handler and `RetrievalEvaluator` Protocol in `arbora/api/ops/retrieval.py`, modelled on `Retriever` (`arbora/api/ops/retrieval.py:66`) and `handle_retrieval_search` (`arbora/api/ops/retrieval.py:76`); added to `operations()` (`arbora/api/ops/retrieval.py:111`) with `build_read_op`. | Test: `tests/api/test_retrieval_evaluation_served.py::test_two_algorithms_match_independent_hits_at_k_ledger` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R063.3
Authorized context search forwarding
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Authorized context search forwarding.** Stage: arbora served operations. Caller: `handle_retrieval_context_search` → `Method::RetrievalContextSearch`. Rule: each response holds at most 100 spans of at most 8192 bytes. Cursors bind to the snapshot. When indexing normalizes text, keep a separate NFC digest and the producer index digest, and validate the normalized-to-original byte map. Public offsets address the stored-text digest. The UI escapes hostile source before highlighting. Arbora returns original spans. Scope `memory:read`. Refusals: see `.4`. Writes: none. Depends: ARBORA-OPS-R063.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/retrieval.py::handle_retrieval_context_search`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/retrieval.py::handle_retrieval_context_search`. (handler not yet built). Shape: Handler and spans model in `arbora/api/ops/retrieval.py`, registered in `operations()` (`arbora/api/ops/retrieval.py:111`) with `build_read_op` scope `memory:read`; engine call via `bound_service`. | Test: `tests/api/test_retrieval_evaluation_served.py::test_context_spans_slice_original_bytes_with_unicode` (L3). It uses composed and decomposed Unicode and multibyte text.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R063.4
Retrieval evaluation refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval evaluation refusals.** Stage: arbora served operations. Rule: denied scope refuses before dispatch. Missing labels, an incomplete query set or a zero denominator returns `INVALID_ARGUMENT`. A mismatched corpus, label set, evaluator or query input returns `STALE_REVISION`. A missing or mismatched settings digest, a stale cursor, an invalid byte map and a bound violation each refuse. A cross-tenant reference returns `SUBJECT_ACCESS_DENIED` without disclosure. Writes: none. Depends: ARBORA-OPS-R063.2, ARBORA-OPS-R063.3. Caller chain: Refusals come from the retrieval handlers under `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`); typed through `_typed_refusal` (`arbora/api/invoke/pipeline.py:985`). Shape: Validation in the `arbora/api/ops/retrieval.py` handlers before the port call; engine codes mapped by `arbora/api/errors.py`. | Test: `tests/api/test_retrieval_evaluation_served.py::test_every_refusal_returns_before_any_result` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R063.5
Retrieval evaluation hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval evaluation hot-path proof.** Stage: arbora served operations. Entry point: both operations over HTTP and MCP against a loopback engine with a fixed corpus. The test compares two registered algorithms with an independent `hits_at_k` ledger on the same labeled query set. Writes: none. Depends: ARBORA-OPS-R063.2, ARBORA-OPS-R063.3, ARBORA-OPS-R063.4. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/retrieval.py::handle_retrieval_compare`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/retrieval.py::handle_retrieval_compare`. and the same chain to `handle_retrieval_context_search`. Shape: Test-only proof over `create_api_application` (`arbora/api/http/app.py:58`) and the MCP surface with a loopback engine; no new production code. | Test: `tests/api/test_retrieval_evaluation_served.py::test_two_algorithms_match_independent_hits_at_k_ledger` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R064.1
Viewport models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Viewport models.** Stage: arbora served operations. Code: frozen models in `arbora/api/ops/viewport.py`. `ViewportBinsQuery{schema_version, source_ref, source_revision, viewport_token, variant, width_px, height_px, max_bytes, max_bins}`, with `variant` in `scatter`, `line`. `ViewportBins{schema_version, formula_revision, source_revision, viewport_revision, bins, extrema, line_gaps, selection_token, byte_size}`. `GraphSelection{schema_version, selection_token, subject_ids}`. Models mirror the Rust types of MEDULLA-FEDERATED-QUERY-R725. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-FEDERATED-QUERY-R725. Caller chain: Models are consumed by `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/viewport.py::handle_viewport_bins`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/viewport.py::handle_viewport_bins`. (module not yet built). Shape: Frozen models in new `arbora/api/ops/viewport.py` on the `_common` bases; `variant` as a closed `Literal`. | Test: `tests/api/test_viewport_served.py::test_models_round_trip_rust_vectors` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R064.2
Viewport behavior and wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Viewport behavior and wiring.** Stage: arbora served operations. Caller: `handle_viewport_bins`, `handle_selection_resolve` → `Method::ViewportBins`, `Method::GraphSelectionResolve` (MEDULLA-FEDERATED-QUERY-R725). Rule: require an authenticated scope `graph:read` and positive finite limits before dispatch. Limits are configuration keys `viewport.max_bytes` default 1048576, bounds `[4096, 16777216]`, and `viewport.max_bins` default 4096, bounds `[16, 65536]`. The request may lower them, never raise them. Register with `build_read_op` in `arbora/api/ops/viewport.py` and list the module in `get_registry`. Refusals: see `.3`. Writes: none. Depends: ARBORA-OPS-R064.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/viewport.py::handle_viewport_bins`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/viewport.py::handle_viewport_bins`. and the same chain to `handle_selection_resolve` (module not yet built). Shape: Two handlers in new `arbora/api/ops/viewport.py` that clamp limits to the config ceilings before dispatch; Declared with `build_read_op` (`arbora/api/ops/_common.py:112`), listed through `get_registry` (`arbora/api/ops/registry_factory.py:16`); engine calls reuse `dispatch_eg_method` (`arbora/api/invoke/bootstrap.py:194`). Module added to `arbora/api/ops/registry_factory.py:16`. | Test: `tests/api/test_viewport_served.py::test_limits_are_enforced_before_dispatch` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R064.3
Viewport refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Viewport refusals.** Stage: arbora served operations. Rule: a stale source or viewport token returns `STALE_REVISION`. A missing, non-positive or over-ceiling limit returns `INVALID_ARGUMENT`. A response above the byte or bin limit returns `LOAD_CAP_EXCEEDED` and no bins. Writes: none. Depends: ARBORA-OPS-R064.2. Caller chain: Refusals come from `arbora/api/ops/viewport.py::handle_viewport_bins` under `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`). Shape: Limit checks in the handler before dispatch and a response-size check after; refusals via `OperationRefused` (`arbora/api/invoke/pipeline.py:111`). | Test: `tests/api/test_viewport_served.py::test_stale_tokens_and_bad_limits_return_no_usable_result` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R064.4
Viewport hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Viewport hot-path proof.** Stage: arbora served operations. Entry point: both operations over HTTP and MCP against a loopback engine holding a one-billion-point source. The test performs pan, zoom and selection for scatter and line variants and measures response bytes independently. Writes: none. Depends: ARBORA-OPS-R064.2, ARBORA-OPS-R064.3. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/viewport.py::handle_viewport_bins`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/viewport.py::handle_viewport_bins`. and the same chain to `handle_selection_resolve`. Shape: Test-only proof over `create_api_application` (`arbora/api/http/app.py:58`) and the MCP surface with a loopback engine; no new production code. | Test: `tests/api/test_viewport_served.py::test_scatter_and_line_interaction_over_large_source` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R065.1
Meeting models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Meeting models.** Stage: arbora served operations. Code: frozen models in `arbora/api/ops/meetings.py`. `TranscriptEvent{schema_version, meeting_id, segment_id, sequence, correction_revision, state, start_ms, end_ms, text, source_id, model_id}`, with `state` in `partial`, `final`, `finalized`. `ProviderChoice{provider_id, execution_class, model_id}`, with `execution_class` in `local`, `hosted`. `SummaryRequest{schema_version, meeting_id, transcript_revision, provider_id, context_revision}`. `SummaryResult{schema_version, summary_id, text, provenance, state}`. Models mirror SCION-SOURCE-INGEST-R014.1 and MEDULLA-MEDIA-VOCAB-R001.101. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: SCION-SOURCE-INGEST-R014.1. Caller chain: Models are consumed by `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/meetings.py::handle_transcript_subscribe`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/meetings.py::handle_transcript_subscribe`. (module not yet built). Shape: Frozen models in new `arbora/api/ops/meetings.py` on the `_common` bases; `state` and `execution_class` as closed `Literal` types. | Test: `tests/api/test_meetings_served.py::test_models_round_trip_vectors` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R065.2
Transcript stream
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Transcript stream.** Stage: arbora served operations and gateway stream. Caller: `handle_transcript_subscribe` returns `{cursor, stream_path}`. The route `meeting_transcript_websocket` in new `arbora/gateway/meetings_ws.py` streams events read through `Method::MeetingTranscriptRevision` with `GetFinal`. Rule: order by `sequence`. A correction carries a higher `correction_revision` for the same `segment_id`; `finalized` appears only when the contiguous sequence is complete. A missing sequence is reported as `gap`, distinct from `unavailable`. Scope `meetings:read`. Reverify on reconnect. Refusals: `STALE_CURSOR`, `SCOPE_REQUIRED`. Writes: none. Depends: ARBORA-OPS-R065.1. Caller chain: `arbora/api/http/app.py:208` -> `arbora/api/http/routes.py:122` (`make_endpoint`) -> `arbora/api/invoke/pipeline.py:1021` (`invoke`) -> `arbora/api/ops/meetings.py::handle_transcript_subscribe`; over MCP, `arbora/api/mcp/serving.py:29` (`register_intent_surface`) -> `arbora/api/mcp/verbs.py:230` (`_invoke_and_render`) -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/ops/meetings.py::handle_transcript_subscribe`. The stream route `meeting_transcript_websocket` in `arbora/gateway/meetings_ws.py` is mounted like `register_dashboard_routes` (`arbora/gateway/dashboard_api.py:402`); modules not yet built. Shape: New `arbora/gateway/meetings_ws.py` patterned on `dashboard_websocket` (`arbora/gateway/dashboard_api.py:391`) with `verified_bearer_session_for_request` (`arbora/api/http/auth.py:137`) on reconnect; handler in `arbora/api/ops/meetings.py`. | Test: `tests/api/test_meetings_served.py::test_corrections_gaps_and_finalization_are_ordered` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R065.3
Providers and summary operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Providers and summary operations.** Stage: arbora served operations. Caller: `handle_providers_list` reads fleet catalog entries that declare capability `meeting_summary` and returns `ProviderChoice` entries with explicit execution class. `handle_summary_create` uses `Confirm.PLAN` for `hosted` providers and no confirmation for `local`. It dispatches only after the exact finalized transcript receipt exists. Then it calls the chosen provider through `fleet.call`. `handle_summary_get` reads the stored `SummaryResult`. Provenance names provider, model, context revision and transcript revision. Writes: summary record through the engine. Depends: ARBORA-OPS-R065.2. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` (or MCP `arbora/api/mcp/verbs.py:244`) -> `arbora/api/ops/meetings.py::handle_providers_list` (new), `handle_summary_create`, `handle_summary_get`; `handle_summary_create` -> `fleet.call` via `arbora/api/ops/fleet.py:181` (`handle_fleet_call`). Shape: New `arbora/api/ops/meetings.py` with an `operations()` tuple of `OpSpec` (registered in the curated module loop of `arbora/api/ops/registry_factory.py:16` (`get_registry`)), params as `Params` subclasses from `arbora/api/ops/_common.py`; provider choices come from the fleet catalog (`arbora/fleet/catalog_items.py::FleetCatalog.search`), `Confirm.PLAN` reuses the plan flow in `arbora/api/invoke/plan.py`, and the summary record goes through the engine client bound as a service. | Test: `tests/api/test_meetings_served.py::test_each_local_and_hosted_route_records_provenance` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R065.4
Meeting egress refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Meeting egress refusals.** Stage: arbora served operations. Rule: enforce capture and egress authority before dispatch. A hosted summary without egress approval returns `POLICY_DENIED`. A stale transcript revision returns `STALE_REVISION`. A missing provider returns `UNAVAILABLE`. Each refusal has zero provider calls. Writes: none. Depends: ARBORA-OPS-R065.3. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` (or MCP `arbora/api/mcp/verbs.py:244`) -> `arbora/api/ops/meetings.py::handle_summary_create` (new) refusals raised before the `fleet.call` dispatch (`arbora/api/ops/fleet.py:181`). Shape: Refusals are `OpError` codes (`POLICY_DENIED`, `STALE_REVISION`, `UNAVAILABLE`) raised in `arbora/api/ops/meetings.py` ahead of the provider call, using the `OpError` type from `arbora/api/invoke/pipeline.py`; no new helper beyond the shared egress check. | Test: `tests/api/test_meetings_served.py::test_denied_egress_and_stale_revision_make_zero_provider_calls` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R065.5
Meeting hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Meeting hot-path proof.** Stage: arbora served operations and stream. Entry point: a served browser client over HTTP and WebSocket. The test streams partial segments, corrections and finalization, then requests a local and a hosted summary. Writes: none. Depends: ARBORA-OPS-R065.2 to R065.4. Caller chain: A served browser client: HTTP `arbora/api/http/routes.py:160` and the WebSocket stream in `arbora/api/http/browser_app.py` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/meetings.py` handlers (new). Shape: Proof test only: drives the meeting operations over the browser app (`arbora/api/http/browser_app.py`) using the served-API fixtures in `tests/api/_support.py`; adds no production code. | Test: `tests/api/test_meetings_served.py::test_ordered_corrections_finalization_and_provider_routes` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R066.1
Bookmark models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bookmark models.** Stage: arbora served operations. Code: frozen models in `arbora/api/ops/bookmarks.py`: `BookmarkQuery`, `BookmarkPage`, `BookmarkRelationships`, `BookmarkExport`, each with `schema_version`, `snapshot_id`, `index_revision`, `query_revision`, bounded `cursor` and `schema_digest`. `schema_digest` is the SHA-256 of the model's JSON schema with 64 lowercase hex characters. Records preserve `source_id`, `bookmark_id`, ingestion provenance and unknown metadata. `page_size` is in `[1, 200]`. Refusals: `INVALID_ARGUMENT`. Writes: none. Depends: MEDULLA-MEDIA-VOCAB-R001.102. Caller chain: Imported by the bookmark handlers: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/bookmarks.py::handle_bookmarks_search` (new), which validates params with `BookmarkQuery`. Shape: Frozen pydantic models (`ConfigDict(frozen=True)`) in new `arbora/api/ops/bookmarks.py`, built on `Params` from `arbora/api/ops/_common.py`; `schema_digest` is `hashlib.sha256` over the canonical `model_json_schema()` JSON. | Test: `tests/api/test_bookmarks_served.py::test_models_round_trip_and_schema_digests_are_stable` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R066.2
Bookmark search and relationships
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bookmark search and relationships.** Stage: arbora served operations. Caller: `handle_bookmarks_search`, `handle_bookmarks_relationships` → the semantic search and relation projection of MEDULLA-MEDIA-VOCAB-R001.102 under the caller's own session. Rule: search and relationships read one authorized engine query snapshot, so they use identical scope. Arbora fetches no imported URL and executes no imported instruction. Scope `memory:read`. Refusals: see `.4`. Writes: none. Depends: ARBORA-OPS-R066.1. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` (or MCP `arbora/api/mcp/verbs.py:244`) -> `arbora/api/ops/bookmarks.py::handle_bookmarks_search` (new) and `handle_bookmarks_relationships`, reading the engine under the caller session (`arbora/api/http/routes.py::caller_session_scope`). Shape: New `arbora/api/ops/bookmarks.py` with an `operations()` tuple of `OpSpec` (registered in the curated module loop of `arbora/api/ops/registry_factory.py:16` (`get_registry`)), params as `Params` subclasses from `arbora/api/ops/_common.py`; both handlers read one engine query snapshot id through the bound engine client and share it; scope `memory:read`, built with `build_read_op` from `arbora/api/ops/_common.py`. | Test: `tests/api/test_bookmarks_served.py::test_search_and_relationships_share_one_snapshot_scope` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R066.3
Bookmark export
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bookmark export.** Stage: arbora served operations. Caller: `handle_bookmarks_export` reads the same snapshot and serializes CSV or JSON, format revision named in the result. Rule: a CSV cell that starts with `=`, `+`, `-`, `@`, tab or carriage return gets a leading single quote. Unknown metadata is preserved in JSON and in a `metadata_json` CSV column. Result size is at most `bookmarks.max_export_rows`, a configuration key, default 50000, bounds `[100, 1000000]`. Writes: none. Depends: ARBORA-OPS-R066.2. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` (or MCP `arbora/api/mcp/verbs.py:244`) -> `arbora/api/ops/bookmarks.py::handle_bookmarks_export` (new). Shape: Handler in `arbora/api/ops/bookmarks.py` reads the same snapshot as search, serializes with stdlib `csv`/`json`, and prefixes a single quote on cells starting with `=`, `+`, `-`, `@`, tab or CR; row cap comes from the `bookmarks.max_export_rows` config key. | Test: `tests/api/test_bookmarks_served.py::test_csv_escapes_formula_cells_and_json_preserves_unknown_metadata` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R066.4
Bookmark refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bookmark refusals.** Stage: arbora served operations. Rule: a stale cursor or index revision returns `STALE_CURSOR`. A denied scope returns `SUBJECT_ACCESS_DENIED` before dispatch. An export above the row limit returns `LOAD_CAP_EXCEEDED`. Writes: none. Depends: ARBORA-OPS-R066.3. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` (or MCP `arbora/api/mcp/verbs.py:244`) -> `arbora/api/ops/bookmarks.py::handle_bookmarks_search` (new) and the export handler; scope refusal comes earlier from the pipeline authority check in `arbora/api/invoke/pipeline.py::invoke`. Shape: `OpError` codes `STALE_CURSOR`, `SUBJECT_ACCESS_DENIED`, `LOAD_CAP_EXCEEDED` returned from the `arbora/api/ops/bookmarks.py` handlers before engine data is read; the scope check reuses the existing pipeline refusal. | Test: `tests/api/test_bookmarks_served.py::test_refusals_return_before_any_data` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R066.5
Bookmark hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bookmark hot-path proof.** Stage: arbora served operations. Entry point: the three operations over HTTP and MCP. The test ingests an offline bookmark import through the connector path. Then it runs semantic search, reads relationships and downloads CSV and JSON. An independent record of the download must match the engine snapshot. Writes: none. Depends: ARBORA-OPS-R066.2 to R066.4. Caller chain: HTTP `arbora/api/http/routes.py:160` and MCP `arbora/api/mcp/verbs.py:244` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/bookmarks.py` search, relationships and export handlers (new). Shape: Proof test only: ingests an offline import through the connector ingest path (`arbora/ingest/service.py`), then calls the three operations over both surfaces using `tests/api/_support.py` fixtures; no production code. | Test: `tests/api/test_bookmarks_served.py::test_ingest_to_browser_search_relationships_and_export` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R069
No local incident authority; call the served incident methods
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**No local incident authority; call the served incident methods.** Subsystem: operation registry. Companion of `MEDULLA-UNIFIED-DATA-PLANE-R760.1`. Incident and `HealthAnomaly` authority is the engine stream service. Caller: registry build in `get_registry` → `arbora/api/registry/registry.py::Registry`. Arbora registers no operation and no fleet tool that opens, closes, scores or writes an `Incident` or `HealthAnomaly`. Reads and transitions use the engine methods served as `eg.stream.*` under the caller-bound path, discovered from the registry's engine bindings. `arbora/gateway/fleet_events.py` stays an observation ingress and decides no incident state. The served methods are `IncidentRecordAnomaly`, `IncidentCorrelate`, `IncidentEvidence`, `IncidentRelatedClaims` and `IncidentSetStatus`. A failed engine call refuses `UNAVAILABLE` with reason `incident_engine_unavailable`. A registry test enforces the rule. Depends: `MEDULLA-UNIFIED-DATA-PLANE-R760.1`. Caller chain: Registry build `arbora/api/ops/registry_factory.py:16` (`get_registry`) -> `arbora/api/registry/registry.py:73` (`Registry`), scanned by the registry test; engine methods are reached through `arbora/api/registry/eg_binding.py::load_eg_bindings`. Shape: Rule enforced by a registry scan test over `get_registry()` operation ids and fleet tool names; incident reads use the engine bindings already loaded by `load_eg_bindings`, and `arbora/gateway/fleet_events.py` (`FleetEvent`, `normalize_payload`) stays observation only. | Test: `tests/api/test_registry_incident_authority.py::test_no_local_incident_writer` (unit, registry scan). `tests/api/test_incident_read_served.py::test_incident_read_under_caller_authority` (served) reads one incident and asserts `incident_engine_unavailable` when the engine fails.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R070
Order-proposal confirmation operation and receipt
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Order-proposal confirmation operation and receipt.** Subsystem: finance approvals. Companion of `MEDULLA-FINANCE-PRIMITIVES-R015.1`. Operation `order.proposal.confirm` in new `arbora/api/ops/finance_orders.py`, registered in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `finance_orders.py::handle_order_proposal_confirm`. `Executor.SERVICE`, `PrincipalRule.SERVICE_ONLY`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`. Params: `proposal_id`, `admission_digest` (SHA-256, 64 lowercase hex) and `approver_set_digest`. The handler reads the engine admission receipt. It compares the digest and the checked actor. It then issues a confirmation receipt that binds those fields. It routes no order and calls no provider. Order routing stays in the emerald-exchange tools (EMERALD-OPS-R006). A stale or mismatched digest refuses `PLAN_STALE` with no receipt. The operation stays unregistered until the engine publishes the receipt type. Until then `get_registry` omits it and a registry test asserts the absence. Depends: `MEDULLA-FINANCE-PRIMITIVES-R015.1`, EMERALD-OPS-R006. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/finance_orders.py::handle_order_proposal_confirm` (new, unregistered until the engine receipt type exists). Shape: New `arbora/api/ops/finance_orders.py` with an `operations()` tuple of `OpSpec` (registered in the curated module loop of `arbora/api/ops/registry_factory.py:16` (`get_registry`)), params as `Params` subclasses from `arbora/api/ops/_common.py`; `OpSpec` with `Executor.SERVICE`, `PrincipalRule.SERVICE_ONLY`, `Confirm.PLAN`; digests compared with a 64-hex SHA-256 check and the plan flow of `arbora/api/invoke/plan.py`; `PLAN_STALE` is an existing `OpError` code. | Test: `tests/api/test_finance_orders_served.py::test_confirmation_binds_digest_and_refuses_stale` (served). It asserts a receipt on match, `PLAN_STALE` on a mismatched digest, and zero provider calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R071
Review-receipt producer for reviewed repository policy
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Review-receipt producer for reviewed repository policy.** Subsystem: approvals. Companion of `MEDULLA-ORCH-VOCAB-R012.7` and `MEDULLA-ORCH-VOCAB-R012.8`. Operation `policy.review.approve` in new `arbora/api/ops/policy_review.py`, registered in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `policy_review.py::handle_policy_review_approve`. `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`, scope `policy:review`. The receipt binds nine fields: repository, path, commit, blob digest, candidate-set digest and invariant generation. It also binds the expected active-policy revision, the reviewing actor and the receipt digest (SHA-256, 64 lowercase hex). The handler reads the current candidate set and invariant generation from the engine. A stale value refuses `PLAN_STALE`. Otherwise it returns the receipt. A rejected review returns no receipt. A source-file change uses governed write-back plus approval (`arbora/api/ops/write_back.py`). arbora holds no policy, grammar or activation authority. The engine validates the receipt. Depends: `MEDULLA-ORCH-VOCAB-R012.7`, `MEDULLA-ORCH-VOCAB-R012.8`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/policy_review.py::handle_policy_review_approve` (new; `arbora/api/ops/policy.py` exists as a neighbour module). Shape: New `arbora/api/ops/policy_review.py` with an `operations()` tuple of `OpSpec` (registered in the curated module loop of `arbora/api/ops/registry_factory.py:16` (`get_registry`)), params as `Params` subclasses from `arbora/api/ops/_common.py`; the handler reads candidate set and invariant generation from the bound engine client, builds a frozen receipt model with the nine bound fields and a SHA-256 digest, and refuses `PLAN_STALE` on mismatch; source edits stay in `arbora/api/ops/write_back.py`. | Test: `tests/api/test_policy_review_served.py::test_receipt_binds_every_field_and_refuses_stale` (served). A rejected review yields no receipt.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R072
Paper-shortfall maintenance operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Paper-shortfall maintenance operation.** Subsystem: maintenance operations. Companion of `MEDULLA-REPO-INGEST-R006.1`. Operation `maintenance.paper_shortfall.run` in new `arbora/api/ops/maintenance.py`, registered in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `maintenance.py::handle_paper_shortfall_run`. `Executor.SERVICE`, `Effect.DESTRUCTIVE`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`. Params: `owner_authorization_ref`, `expected_revision`, `cost_ceiling` (integer cents, 0 to 1,000,000) and `admission_verdict_ref`. The handler refuses before any effect in three cases. A missing authorization refuses `SCOPE_REQUIRED`. A stale revision refuses `PLAN_STALE`. A cost above the ceiling refuses `POLICY_DENIED` with reason `cost_over_ceiling`. It calls the engine maintenance method named in `MEDULLA-REPO-INGEST-R006.1` and returns the result receipt the engine reads back. It purges nothing that is leased, authoritative or the last source copy. The engine enforces this and arbora passes its refusal through. The dispatch target is the scholarx tool `paper_maintenance_apply` (`CONN-SCHOLARX-API-COVERAGE-R002`). The request carries the `PaperMaintenanceOrder` fields defined there. Depends: `MEDULLA-REPO-INGEST-R006.1`, `CONN-SCHOLARX-API-COVERAGE-R002`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/maintenance.py::handle_paper_shortfall_run` (new) -> engine maintenance method, dispatch via `fleet.call` (`arbora/api/ops/fleet.py:181`) to the scholarx tool. Shape: New `arbora/api/ops/maintenance.py` with an `operations()` tuple of `OpSpec` (registered in the curated module loop of `arbora/api/ops/registry_factory.py:16` (`get_registry`)), params as `Params` subclasses from `arbora/api/ops/_common.py`; `Effect.DESTRUCTIVE` with `Confirm.PLAN`; pre-effect checks (`SCOPE_REQUIRED`, `PLAN_STALE`, `POLICY_DENIED` reason `cost_over_ceiling`) run before the single engine call, and the engine refusal is passed through. | Test: `tests/api/test_maintenance_served.py::test_shortfall_receipt_and_zero_effect_refusals` (served). It asserts a receipt on success and zero engine effects on each refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R073
Host resource-grant binding for incremental indexing
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Host resource-grant binding for incremental indexing.** Subsystem: admission. Companion of `MEDULLA-REPO-INGEST-R006.4`. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/ingest.py::handle_repositories_index` (`ingest.repositories.index`) → new `arbora/api/ops/_grants.py::ResourceGrantLedger.admit`. The ledger keys grants by caller tenant. The grant limit is the config key `resource_grants.max_working_bytes` in `~/.config/arbora/config.yaml` (default 8,589,934,592 bytes, range 1,048,576 to 1,099,511,627,776). `admit` records the positive `max_working_bytes` of the job at admission. An over-grant request refuses `LOAD_CAP_EXCEEDED` before the job is admitted. `release` runs on success, cancellation and failure, including a failed admission. The engine keeps allocation accounting. Depends: `MEDULLA-REPO-INGEST-R006.4`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/ingest.py:297` (`ingest.repositories.index`) -> `arbora/ingest/service.py:268` (`index_repository`) -> `arbora/api/ops/_grants.py::ResourceGrantLedger.admit` (new). Shape: New `arbora/api/ops/_grants.py` holds a per-tenant ledger with `admit` and `release` (released in a `finally`), limit read from config key `resource_grants.max_working_bytes`; over-grant raises `OpError("LOAD_CAP_EXCEEDED")` before the job is admitted. | Test: `tests/api/test_ingest_grants_served.py::test_grant_recorded_refused_and_released` (served). It asserts baseline return after success, cancel and failure.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R855.3.1
arbora consumes catalog trust-flag events and notifies stored-query owners
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**arbora consumes catalog trust-flag events and notifies stored-query owners.** Subsystem: notifications. Caller: scheduled outbox consumer (`arbora/fleet/outbox_consumer.py`, new) → medulla outbox topic `catalog.trust_flag` → notification channel. For each event Arbora asks the engine (`query.uql`) for principals whose stored query reads the asset. It then sends one notice per principal. It holds no subscription table. Depends: MEDULLA `MEDULLA-TYPED-PACKS-R802.7`, ARBORA-OPS-R855.3. Caller chain: Scheduled consumer `arbora/fleet/outbox_consumer.py` (new) started from the serving bootstrap (`arbora/api/invoke/bootstrap.py`), reading outbox topic `catalog.trust_flag` and sending notices via `arbora/messaging/action_dispatch.py`. Shape: New consumer module in `arbora/fleet/`; per event it issues the `query.uql` engine call through the bound engine client and sends one notice per returned principal; no subscription table, no state beyond the outbox cursor. | `tests/api/test_trust_flag_notice.py::test_deprecation_event_notifies_reading_principals` (L3, loopback engine).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R862
Surface a recommendation only after a passing safety-bound verdict
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Surface a recommendation only after a passing safety-bound verdict.** Subsystem: result gate on engine `Decide` answers. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) result stage for `eg.query.Decide` and `eg.query.DecideText` → `arbora/api/invoke/recommendation_gate.py::gate_recommendation`. `gate_recommendation` reads the `SafetyVerdict` field of the sealed `Decide` record (`MEDULLA-DECISION-ENGINE-R001.100`). `Pass` surfaces the recommendation. `Withheld` returns `POLICY_DENIED` with reason `recommendation_withheld` and the withheld bound id. An absent verdict returns `POLICY_DENIED` with reason `safety_verdict_absent`. The gate sits at the one result chokepoint so MCP, HTTP and A2A all pass it. It reads the record and writes nothing. Depends: `MEDULLA-DECISION-ENGINE-R001.100`. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` result stage -> `arbora/api/invoke/recommendation_gate.py::gate_recommendation` (new); reached from HTTP `arbora/api/http/routes.py:160`, MCP `arbora/api/mcp/verbs.py:244` and the A2A authority. Shape: New `arbora/api/invoke/recommendation_gate.py` with one pure function over the sealed Decide record dict returning the record or an `OpError("POLICY_DENIED", {"reason": ...})`; called once at the shared result chokepoint in `arbora/api/invoke/pipeline.py`. | Test: `tests/api/test_recommendation_gate_served.py::test_pass_surfaces_withheld_and_absent_block` (served, HTTP and MCP). It asserts one surfaced record and two blocked records.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R863
Issue a recommendation approval receipt bound to a record digest
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Issue a recommendation approval receipt bound to a record digest.** Subsystem: approvals. Caller chain: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/decide.py::handle_recommendation_approve`. Operation `decide.recommendation.approve`: `PrincipalRule.HUMAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`, scope `recommendation:approve`. Params: `record_id` and `record_digest` (SHA-256, 64 lowercase hex). The handler checks the scope first and makes no engine call on failure. It reads the committed record, compares the digest, and builds `RecommendationApproval{record_id, record_digest, reviewer_principal, approved_at_ms, approval_revision}` of `MEDULLA-DECISION-ENGINE-R019.100.2`. The reviewer is the verified caller. It passes the receipt to the service-executed `decide.commit` (`ARBORA-OPS-R021.1`), which sends it to `DecisionCommit` or `DecisionLog` `Commit`. A digest mismatch refuses `PLAN_MISMATCH`. Depends: `MEDULLA-DECISION-ENGINE-R019.100.2`. `decide.commit` (`ARBORA-OPS-R021.1`) is the caller that passes the receipt to `DecisionCommit`, `MEDULLA-DECISION-ENGINE-R019.100.1`. The evidence streams are those of `MEDULLA-DECISION-ENGINE-R019.100.1`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Shape: `handle_recommendation_approve` in `arbora/api/ops/decide.py` reuses the scope check and the idempotency store of the invoke pipeline; no new receipt store. | Test: `tests/api/test_decide_ops.py::test_approval_commits_once_and_scope_refusal_precedes_engine` (served). A reviewer outside scope makes zero engine calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R864
Execute only the bound retrieval provider
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Execute only the bound retrieval provider.** Subsystem: retrieval. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/retrieval.py::handle_retrieval_search` → `RetrieverPort.search`. Extends `ARBORA-OPS-R021.2.1`. Params gain `decision_record_id`. The handler reads `retrieval_binding` (`RetrievalProviderBinding{provider, config_digest, request_digest, tenant_id, reasoning_model}`) from the committed record (`MEDULLA-DECISION-ENGINE-R029.1`). It selects exactly the provider with that id from the composed retriever registry and compares its `config_digest`. The reasoning model varies independently of the provider. An absent provider returns `UNAVAILABLE` with reason `bound_provider_unavailable`. A digest mismatch returns `POLICY_DENIED` with reason `bound_provider_mismatch`. Neither case calls any other provider. A record without a binding returns `INVALID_ARGUMENT` with field `decision_record_id`. `EngineRetriever` (planned, new module `arbora/retrieval/engine_retriever.py`; `arbora/retrieval/` does not exist yet) is the executor. The served test asserts zero alternate-provider calls. Depends: `MEDULLA-DECISION-ENGINE-R029.1`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/retrieval.py:76` (`handle_retrieval_search`) -> `Retriever.search` (`arbora/api/ops/retrieval.py:66`); executor `arbora/retrieval/engine_retriever.py::EngineRetriever` (new). Shape: Extends `RetrievalSearchParams` in `arbora/api/ops/retrieval.py` with `decision_record_id`; the handler resolves the bound provider from the composed retriever registry (service bound via `bound_service` in `arbora/api/ops/_common.py`) and compares config digest before calling `search`. | Test (planned): `tests/api/test_retrieval_ops.py::test_bound_provider_only_and_zero_alternate_calls_on_refusal` (served; the file exists, the test does not). It varies provider and reasoning model independently.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R865
Approve queued write-back proposals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Approve queued write-back proposals.** Subsystem: write-back approvals. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/write_back.py::handle_write_back_proposal_approve`. Add `write_back` to the import list and module loop of the curated module loop of `arbora/api/ops/registry_factory.py::get_registry` with `operations()` in `arbora/api/ops/write_back.py`. `write_back.proposals.list` is a read of the queued proposals through `DecisionLog` `Writeback` (`MEDULLA-DECISION-ENGINE-R615.3`). `write_back.proposal.approve` is `PrincipalRule.HUMAN`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED`, `AuditClass.IDENTITY_CHAIN`, scope `writeback:approve`. It shows the proposal in the plan preview and records the decision through `DecisionLog` `Writeback` `Approve` with the approver principal. An approver without the scope refuses `SCOPE_REQUIRED` with zero engine writes. Release of the change set stays with the engine. Depends: `MEDULLA-DECISION-ENGINE-R615.3`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/write_back.py::handle_write_back_proposal_approve` (new; `arbora/api/ops/write_back.py:50` `preview_write_back` exists today). Shape: Add `operations()` to `arbora/api/ops/write_back.py` and `write_back` to the import tuple and module loop in `arbora/api/ops/registry_factory.py:16`; approve is `PrincipalRule.HUMAN`, `Confirm.PLAN`, scope `writeback:approve`, and records the decision through the engine Writeback log. | Test: `tests/api/test_write_back_served.py::test_approve_one_proposal_and_refuse_without_scope` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R866
Serve tool search from the Medulla tool ranking
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Serve tool search from the Medulla tool ranking.** Subsystem: multiplexer tool search. Caller: the MCP multiplexer `find` intent tool → `arbora/fleet/multiplexer_ops.py::find_tools` → `FleetCatalog.search`. For a `query` search, `find_tools` calls `eg.query.Decide` with `QuestionKind::ToolRelevance`, passing the caller's task text, role IRI and `context_budget_tokens` unchanged. It orders the items by the sealed ranking. It ranks nothing locally. Browse mode without a `query` keeps catalog order. A failed engine call returns `UNAVAILABLE` with reason `tool_ranking_unavailable`, not a local ranking. The disclosure gate is coordinated with `MERISTEM-HARNESS-CYCLE-R045.1`. A tool outside the disclosed set refuses before the tool call. Depends: `MEDULLA-DECISION-ENGINE-R134.110.6`. Caller chain: MCP `find` intent -> `arbora/fleet/multiplexer_ops.py:234` (`MultiplexerOps.find_tools`) -> `arbora/fleet/catalog_items.py:134` (`FleetCatalog.search`). Shape: Edit `find_tools` in `arbora/fleet/multiplexer_ops.py`: for a `query` search it calls the engine Decide method (ToolRelevance) and orders `FleetCatalog.search` items by the sealed ranking; browse keeps catalog order; engine failure returns `UNAVAILABLE` reason `tool_ranking_unavailable`. | Test: `tests/fleet/test_tool_search_served.py::test_order_equals_sealed_record` (served over MCP). It asserts search order equals the record order and `UNAVAILABLE` on engine failure. Disclosure gate: `tests/fleet/test_tool_disclosure_gate_served.py::test_disclosed_tool_runs_and_undisclosed_tool_refuses_before_call` (served). The positive case runs a disclosed tool. The negative case asserts a refusal before the tool call.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R867
Block an action until approval when medulla requires confirmation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Block an action until approval when medulla requires confirmation.** Subsystem: invoke admission. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) before the effect of any non-read operation → `arbora/api/invoke/autonomy.py::require_autonomy_clearance`. The step calls `eg.query.Decide` with `QuestionKind::AutonomyVerdict` and `action_class` equal to the operation id (`MEDULLA-DECISION-ENGINE-R752.755`). `Allow` continues. `RequireConfirmation` refuses `CONFIRMATION_REQUIRED` until an approved plan for that action id exists, even when the operation declares `Confirm.NONE`. Arbora treats the verdict as a minimum and never lowers an operation's own `confirm`. An unavailable engine refuses `UNAVAILABLE` with reason `autonomy_verdict_unavailable`. The gate fails closed. The existing plan approval flow (`arbora/api/invoke/plan.py`) is the only approval path. This gate is `Fixed`, with no knob. Depends: `MEDULLA-DECISION-ENGINE-R752.755`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` before any non-read effect -> `arbora/api/invoke/autonomy.py::require_autonomy_clearance` (new). Shape: New `arbora/api/invoke/autonomy.py` called next to the confirm checks in `arbora/api/invoke/pipeline.py`; it queries the engine verdict and, on `RequireConfirmation`, reuses the approved-plan lookup of `arbora/api/invoke/plan.py` (`PlanStore.validate`/`consume`); fails closed with `UNAVAILABLE`. | Test: `tests/test_autonomy_confirmation.py::test_irreversible_action_waits_for_approval` (served). The call is refused before approval and runs after it.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R868
Carry the table-of-contents identity in space directory listings
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Carry the table-of-contents identity in space directory listings.** Subsystem: retrieval. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/retrieval.py::handle_retrieval_documents_list` and `handle_retrieval_span_read`. Add two reads to `arbora/api/ops/retrieval.py`: `retrieval.documents.list` and `retrieval.span.read`, scope `kg:read`. Each listing entry for a source document carries `toc_digest`, copied from the engine `ReadSpan` response (`MEDULLA-DECISION-ENGINE-R153`). `retrieval.span.read` requires `toc_digest` on every call and forwards it to `ReadSpan`. The engine refuses a stale digest and arbora passes that refusal through. arbora computes no table of contents. Depends: `MEDULLA-DECISION-ENGINE-R153`. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/retrieval.py::handle_retrieval_documents_list` and `handle_retrieval_span_read` (new, beside `handle_retrieval_search` at line 76). Shape: Two `build_read_op` entries added to `operations()` in `arbora/api/ops/retrieval.py` (scope `kg:read`); `toc_digest` is copied from the engine ReadSpan response and forwarded unchanged, no table of contents computed locally. | Test: `tests/api/test_retrieval_ops.py::test_listing_toc_digest_equals_read_span_digest` (served). It asserts digest equality and the pass-through refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R869
Gate generated-code materialization on a committed admission record
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Gate generated-code materialization on a committed admission record.** Subsystem: source writes. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/source.py::handle_source_commit` and `handle_source_edit_symbol` → `require_admission_record`. A changeset from an agent principal (`MEDULLA-SCM-R012`) must cite `admission_record_digest`. `require_admission_record` reads the committed `Decide` record of kind `GeneratedCodeAdmission` (`MEDULLA-DECISION-ENGINE-R138.100`). It checks three things. The verdict is admit. The tenant equals the caller tenant. The artifact digest equals the digest of the proposed changeset content. Any other case refuses `POLICY_DENIED` with reason `admission_record_missing` or `admission_artifact_mismatch`, with zero engine writes. Arbora keeps materialization authority. Depends: `MEDULLA-DECISION-ENGINE-R138.100`, `ARBORA-OPS-R848.2`. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/source.py::handle_source_commit` and `handle_source_edit_symbol` (new write handlers; read handlers exist at `arbora/api/ops/source.py:296`) -> `require_admission_record` (new). Shape: New helper `require_admission_record` in `arbora/api/ops/source.py` reading the committed Decide record through the bound engine client and comparing verdict, tenant and artifact SHA-256; refusals are `OpError("POLICY_DENIED", {"reason": ...})` before any write. | Test: `tests/api/test_generated_code_admission_gate.py::test_write_refuses_without_matching_admission` (served). It asserts both refusals and one admitted commit.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R870
Serve authenticated changeset review and call medulla Decide
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Serve authenticated changeset review and call medulla Decide.** Subsystem: review. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → new `arbora/api/ops/review.py::handle_review_changeset`. Register `review` in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. Operation `review.changeset`: `Effect.WRITE` (it commits no record), scope `kg:read`, `Idempotency.NATURAL`, `AuditClass.EVENT`. Params: `repository`, `base_rev`, `head_rev`. The handler reads the diff through the `SourceReader` port. It runs the `ReviewProducer` port to build finding options. The default producer is the repository-manager connector's review tool through `fleet.call`. It then calls `eg.query.Decide` with `QuestionKind::ChangesetReview` (`MEDULLA-DECISION-ENGINE-R138.101`). It returns the sealed record digest and nothing else the engine owns. An absent producer refuses `UNAVAILABLE`. Each review result binds to the exact `base_rev` and `head_rev`. Each finding class needs evidence-backed findings. The declared low-impact filter applies. Depends: `MEDULLA-DECISION-ENGINE-R138.101`, `ARBORA-OPS-R848.3`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/http/routes.py:160` -> `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/review.py::handle_review_changeset` (new). Shape: New `arbora/api/ops/review.py` with an `operations()` tuple of `OpSpec` (registered in the curated module loop of `arbora/api/ops/registry_factory.py:16` (`get_registry`)), params as `Params` subclasses from `arbora/api/ops/_common.py`; reads the diff through the `SourceReader` port used by `arbora/api/ops/source.py:286` (`_reader`), builds findings via a `ReviewProducer` port defaulting to a `fleet.call` of the repository-manager review tool, then calls engine Decide (ChangesetReview) and returns only the record digest. | Test: `tests/api/test_changeset_review_op.py::test_op_calls_decide_and_returns_the_record_digest` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R871
Accept a playbook write step only with a committed Decide record
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Accept a playbook write step only with a committed Decide record.** Subsystem: governed actions. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) for `fleet.call` → `arbora/api/ops/fleet.py::handle_fleet_call` → `require_step_decision`. A `fleet.call` that carries `playbook_step_id` and targets a tool classified as a write must also carry `decision_record_digest`. `require_step_decision` reads the committed record of kind `ConnectorWriteBack` (`MEDULLA-DECISION-ENGINE-R704.3`, `MEDULLA-DECISION-ENGINE-R043`). It checks that the record names the same step and the same caller tenant. A missing or mismatched record refuses `POLICY_DENIED` with reason `step_decision_missing` or `step_decision_mismatch`, with zero connector calls. arbora keeps execution authority. The engine only proposes. Depends: `MEDULLA-DECISION-ENGINE-R704.3`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` for `fleet.call` -> `arbora/api/ops/fleet.py:181` (`handle_fleet_call`) -> `require_step_decision` (new, same module). Shape: New helper `require_step_decision` in `arbora/api/ops/fleet.py` invoked before `_gateway_call`; reads the committed ConnectorWriteBack record through the bound engine client and checks step id and tenant; refuses `POLICY_DENIED` with zero connector calls. | Test (planned): `tests/api/test_playbook_step_requires_decision.py::test_action_refuses_without_a_committed_record` (served). It also runs one admitted step.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R872
Check the certification attestation before workflow invocation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Check the certification attestation before workflow invocation.** Subsystem: invocation admission. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/agents.py::handle_agent` (`agents.run`) and `arbora/api/ops/plans.py` (`agents.plan_run`) → new `arbora/api/invoke/certification_gate.py::require_attestation`. The gate reads the `LocalCertificationAttestation` (`MEDULLA-DECISION-ENGINE-R142.100`) for each atomic skill of the workflow. It compares skill id, revision and digest. A missing, stale or mismatched attestation refuses `POLICY_DENIED` with reason `attestation_missing`, `attestation_stale` or `attestation_mismatch`, before any run effect. A certification-mode run needs the scope `certification:run` and uses a separate operation `agents.certify`, never the normal invocation path. Depends: `MEDULLA-DECISION-ENGINE-R142.100`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/agents.py:43` (`handle_agent`, `agents.run`) and `arbora/api/ops/plans.py:934` (`handle_plan_run`, `agents.plan_run`) -> `arbora/api/invoke/certification_gate.py::require_attestation` (new). Shape: New `arbora/api/invoke/certification_gate.py` called before run effects in both handlers; reads `LocalCertificationAttestation` per atomic skill through the bound engine client and compares id, revision, digest; certification runs use a separate `agents.certify` op. | Test: `tests/api/test_certification_gate_served.py::test_each_attestation_case_refuses_without_effect` (served). The exact current attestation admits the run.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R873
Start the workflow engine lazily on first invocation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Start the workflow engine lazily on first invocation.** Subsystem: workflow host. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/agents.py::handle_agent` → `arbora/control_plane/workflows/repository.py` registry host → `WorkflowHost.engine()`. Registration creates no engine. `WorkflowHost.engine()` starts the engine once, on the first invocation, under a lock, and reuses it. An unknown workflow id refuses before any start with the engine code `WORKFLOW_IDENTITY_UNKNOWN` (`MEDULLA-DECISION-ENGINE-R166.4`). Each invocation receipt records the resolved `WorkflowIdentity` and one start event. Depends: `MEDULLA-DECISION-ENGINE-R166.4`. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/agents.py:43` (`handle_agent`) -> `arbora/control_plane/workflows/repository.py:116` (`WorkflowRepository` registry host) -> `WorkflowHost.engine()` (new). Shape: New `WorkflowHost` in `arbora/control_plane/workflows/` holding a lock-guarded, lazily built engine; registration constructs nothing; unknown workflow id is refused before `engine()` is called. | Test: `tests/control_plane/test_workflow_host_lazy_start.py::test_start_counter_zero_then_one` (served). Counter is 0 before first use, 1 after repeats, 0 after an unknown id.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R874
Return registry identities from the host semantic workflow match
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Return registry identities from the host semantic workflow match.** Subsystem: workflow host. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/ops/agents.py::handle_agent` → `arbora/control_plane/workflows/repository.py::WorkflowRepository.match`. `match` returns the engine registry identity: id, version and content digest (`WorkflowIdentity`). The `agents.run` path passes that identity to the engine `WorkflowRegistry` read (`MEDULLA-DECISION-ENGINE-R166.6`) and runs only the registered record. An unknown workflow refuses with `WORKFLOW_IDENTITY_UNKNOWN` and starts no engine. Depends: `MEDULLA-DECISION-ENGINE-R166.6`, `ARBORA-OPS-R873`. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/ops/agents.py:43` (`handle_agent`) -> `arbora/control_plane/workflows/repository.py::WorkflowRepository.match` (new method on the Protocol at line 116). Shape: Add `match` to `WorkflowRepository` returning a frozen `WorkflowIdentity` (id, version, content digest) defined in `arbora/control_plane/workflows/domain.py`; `handle_agent` passes it to the engine registry read and refuses unknown ids with `WORKFLOW_IDENTITY_UNKNOWN`. | Test: `tests/control_plane/test_workflow_match_identity.py::test_entry_resolves_registered_record_and_unknown_refuses` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R875
Run the upgrade admission before the invoke certification step
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Run the upgrade admission before the invoke certification step.** Subsystem: skill upgrade admission. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/api/invoke/certification_gate.py::require_upgrade_admission` before `require_attestation`. On every skill upgrade, the gate calls `eg.query.Decide` with `QuestionKind::SkillUpgrade` (`MEDULLA-DECISION-ENGINE-R167.3`) and reads the `SkillUpgradeReceipt`. An abstention refuses `POLICY_DENIED` with reason `upgrade_not_admitted` before certification dispatch. A compatible or declared-migration upgrade continues. arbora adds no compatibility wrapper. Depends: `MEDULLA-DECISION-ENGINE-R167.3`, `ARBORA-OPS-R872`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/invoke/pipeline.py:1021` -> `arbora/api/invoke/pipeline.py::invoke` -> `arbora/api/invoke/certification_gate.py::require_upgrade_admission` (new), run before `require_attestation`. Shape: Second function in the new `arbora/api/invoke/certification_gate.py`; calls engine Decide (SkillUpgrade) through the bound engine client and maps abstention to `OpError("POLICY_DENIED", {"reason": "upgrade_not_admitted"})`; no compatibility wrapper. | Test: `tests/api/test_skill_upgrade_gate_served.py::test_breaking_stops_and_compatible_and_migrated_dispatch` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R876
Report the loop continuation from the latest committed record
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Report the loop continuation from the latest committed record.** Subsystem: loop facade. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/mcp_server/legacy_action_mapping.py` loop actions (`graph_loops` status, run, pause) → new `arbora/api/ops/loops.py::handle_loops_status`. Register `loops` in the curated module loop of `arbora/api/ops/registry_factory.py::get_registry`. `loops.status`, `loops.run` and `loops.pause` read the continuation through the engine record read. The source is the latest committed `FeedbackLoop` record for the loop id (`MEDULLA-DECISION-ENGINE-R169.3`). The existing scope and idempotency checks still fail closed. arbora keeps no continuation state in memory. Depends: `MEDULLA-DECISION-ENGINE-R169.3`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/mcp_server/legacy_action_mapping.py:39` `build_approved_action_mapping` loop actions -> new `arbora/api/ops/loops.py::handle_loops_status`, registered in the module loop at `arbora/api/ops/registry_factory.py:52`. Shape: New `arbora/api/ops/loops.py` with an `operations()` tuple built by `build_read_op` from `arbora/api/ops/_common.py:112`; the handler sends the engine record read through the shared engine send helper and holds no state; `loops` is added to the module import and tuple in `get_registry`. | Test: `tests/api/test_loops_continuation_served.py::test_same_continuation_after_host_restart` (served). The host restarts between two reads.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R877
Write team records and apply the coordination decision
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Write team records and apply the coordination decision.** Subsystem: team coordination. Caller: served `invoke` (`arbora/api/invoke/pipeline.py::invoke`) → `arbora/a2a/authority.py::WorkItemA2AAuthority.dispatch` → new `arbora/a2a/team.py::TeamCoordinator.coordinate`. The coordinator writes `:Team`, `:TeamMember` and `:TeamTask` nodes through the engine graph write path, including each task status. It calls `eg.query.Decide` with `QuestionKind::TeamCoordination` and the observed channel signal with its time (`MEDULLA-DECISION-ENGINE-R170.2`). It applies the returned option: `primary_channel` keeps the normal path and `team_coordination` starts the team path. Task status survives a restart because it lives only in the engine. Depends: `MEDULLA-DECISION-ENGINE-R170.2`. Register it only when the pinned engine contract publishes the named method. Until then `get_registry` omits it. A registry test asserts the absence. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/a2a/authority.py:617` `WorkItemA2AAuthority.dispatch` -> new `arbora/a2a/team.py::TeamCoordinator.coordinate`. Shape: New `arbora/a2a/team.py` holding `TeamCoordinator`; it calls the engine through the same caller-session send used by `arbora/api/ops/memory.py:118` `_send`, and `WorkItemA2AAuthority.dispatch` at `arbora/a2a/authority.py:617` delegates to it; no team state lives in arbora. | Test: `tests/a2a/test_team_coordination_served.py::test_unavailable_starts_team_available_keeps_primary_and_status_survives_restart` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897
Participant memory, scopes, profiles and document sets are served operations (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Participant memory, scopes, profiles and document sets are served operations (rollup).** Stage: served operations. Arbora serves the engine participant memory through the one registry, so HTTP, MCP, A2A and clients follow from it. Operations: `participant.put`, `participant.get`, `participant.list`, `participant.member.add`, `participant.scope.put`, `participant.observation.set`, `participant.turn.append`, `participant.ask`, `participant.card`, `participant.derivation.status` (`ARBORA-OPS-R024.6`), `assistant.profile.put`, `assistant.profile.get`, `assistant.profile.list`, `assistant.document_set.put`, `assistant.document_set.get` and `assistant.document_set.list`. Children `.1` to `.8` deliver them. Arbora decides nothing about memory. The engine owns every fact, rule and refusal (`MEDULLA-DECISION-ENGINE-R655`, `MEDULLA-DECISION-ENGINE-R656`). Depends: `ARBORA-OPS-R009`, `MEDULLA-DECISION-ENGINE-R617.9`, `MEDULLA-DECISION-ENGINE-R655.4`, `MEDULLA-DECISION-ENGINE-R656.2`. | Satisfied only when every child is satisfied. Root journey: `tests/api/test_participant_ops_served.py::test_participant_memory_journey` (served: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R878
Read operation `models.list` lists the model profiles a caller may prefer
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Read operation `models.list` lists the model profiles a caller may prefer.** Entry point: the registered served operation `models.list` (read scope `kg:read`) in `arbora/api/ops/models.py::handle_models_list`, registered through the operation registry. It queries the engine for `ModelProfile` components visible to the verified caller, as `MEDULLA-DECISION-ENGINE-R128.8` does. It returns `id`, `display_name` and `provider` for each. It returns at most 200 rows and a `next_cursor`. It filters nothing itself. Refusal: `UNAVAILABLE` when the engine is unreachable. Evidence: none written. Depends: `ARBORA-OPS-R001`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/models.py::handle_models_list`, registered by `arbora/api/ops/registry_factory.py:16` `get_registry` (module loop at `arbora/api/ops/registry_factory.py:52`); HTTP route `/ops/models.list` is mounted per op at `arbora/api/http/app.py:207`. Shape: New `arbora/api/ops/models.py` with `operations()` returning one `build_read_op` spec (`arbora/api/ops/_common.py:112`, scope `kg:read`); result model extends `Params` (`arbora/api/ops/_common.py:32`); the engine query runs under the caller's session like `arbora/api/ops/memory.py:137` `handle_memory_read`. | Test: `tests/api/ops/test_models_list.py::test_lists_only_visible_profiles_over_http_and_mcp` (L3) runs through the registry `invoke` and asserts a cross-tenant profile is absent.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.1
Model and the shared engine send helper
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Model and the shared engine send helper.** Stage: served operations. Add the param and result models for each operation in the two new modules `arbora/api/ops/participants.py` and `arbora/api/ops/assistants.py`. Every model extends `Params` of `arbora/api/ops/_common.py`. Each model mirrors the engine serde type by hand: `Participant`, `ParticipantQuestion`, `ParticipantAnswer`, `ParticipantCard`, `MemoryScope`, `ObservationConfig`, `AssistantProfile` and `DocumentSet`. A round-trip test against the vectors that `MEDULLA-DECISION-ENGINE-R655.1` publishes keeps the mirror honest. There is no generated contract. Promote `_send` of `arbora/api/ops/memory.py` to `send_engine(context, method, params, key)` in new `arbora/api/ops/_engine.py`. `memory.py` and the two new modules call it. The helper keeps the behavior: the caller's own verified session, and `UNAVAILABLE` when the engine is not bound. Writes: none. Depends: `ARBORA-OPS-R024.4`, `MEDULLA-DECISION-ENGINE-R655.1`. Shape: one extraction, no copy; `memory.py` imports `send_engine` and keeps its handlers. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `arbora/api/ops/memory.py:137` `handle_memory_read` / `:166` `handle_memory_write` -> `arbora/api/ops/memory.py:118` `_send` (to become `send_engine` in new `arbora/api/ops/_engine.py`); the new `participants.py` and `assistants.py` handlers call it the same way. | Test: `tests/api/test_participant_models.py::test_models_round_trip_engine_vectors` (module test). Test: `tests/api/test_memory_ops.py::test_memory_ops_still_round_trip_after_send_extraction` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.2
Participant and membership operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Participant and membership operations.** Stage: served operations. `participant.put` (verb `write`, scope `participant:write`) sends engine `Participant` op `Put`. `participant.member.add` sends op `AddMember`. `participant.get` and `participant.list` (verbs `ask` and `find`, scope `participant:read`) send `ParticipantRead` ops `Get` and `List`. Writes need an idempotency key (`Idempotency.KEY_REQUIRED`, `AuditClass.EVENT`). The module exports `NATIVE_IDEMPOTENCY` for both writes with the owner `epistemic_graph:Participant` (`ARBORA-OPS-R009.3`). Caller: registry `invoke` → `handle_participant_put` → `send_engine`. Engine owner: `MEDULLA-DECISION-ENGINE-R617.9`. Refusals pass through from the engine: `PARTICIPANT_KIND_INVALID`, `MEMBERSHIP_SESSION_UNKNOWN`. Writes: none in arbora. The engine writes through its mutation path. Depends: `ARBORA-OPS-R897.1`, `MEDULLA-DECISION-ENGINE-R617.9`. Shape: one handler per operation built by `build_write_op` and `build_read_op`; no per-op branching. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/participants.py::handle_participant_put` -> `arbora/api/ops/_engine.py::send_engine`; the module is registered by `arbora/api/ops/registry_factory.py:16` `get_registry`. | Test: `tests/api/test_participant_ops_served.py::test_participant_put_and_member_add_round_trip` (served: HTTP and MCP) asserts replay by idempotency key and both refusal codes.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.3
Scope and observation operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Scope and observation operations.** Stage: served operations. `participant.scope.put` sends engine op `PutScope`. `participant.observation.set` sends op `SetObservation`. Both are verb `write` with scope `participant:write`. The observation operation also needs the scope `participant:observe`. Arbora checks the scope before it sends. The engine checks that the caller may act as the participant. Caller: registry `invoke` → `handle_scope_put` → `send_engine`. Engine owner: `MEDULLA-DECISION-ENGINE-R651.9`, `MEDULLA-DECISION-ENGINE-R651.10`. Refusals pass through: `SCOPE_NOT_FOUND`, `SCOPE_NOT_VISIBLE`, `SCOPE_SESSION_LIMIT`, `OBSERVER_NOT_PERMITTED`. Writes: none in arbora. Depends: `ARBORA-OPS-R897.2`. Shape: reuse the builders of `ARBORA-OPS-R897.2`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/participants.py::handle_scope_put` -> `arbora/api/ops/_engine.py::send_engine`; scope check happens in `arbora/api/invoke/pipeline.py:1021` `invoke` before the handler. | Test: `tests/api/test_participant_ops_served.py::test_scope_and_observation_round_trip_with_refusals` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.4
Turn append operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Turn append operation.** Stage: served operations. `participant.turn.append` (verb `write`, scope `participant:write`) takes `{session_id, speaker, text, timestamp_ms}`. It sends engine `MemoryRemember` with one `ConversationTurn` record whose `speaker` is a participant id. The engine enqueues the derive job (`MEDULLA-DECISION-ENGINE-R651.11`). Arbora never derives. The idempotency key is required. Caller: registry `invoke` → `handle_turn_append` → `send_engine`. Engine owner: `MEDULLA-DECISION-ENGINE-R651.3`, `MEDULLA-DECISION-ENGINE-R617.8`. Refusals pass through: `MEMORY_TENANT_REQUIRED`, `PARTICIPANT_NOT_VISIBLE`, `DERIVE_BACKLOG_FULL`. A backlog refusal never loses the turn, and the result states `turn_committed` true. Writes: none in arbora. Depends: `ARBORA-OPS-R897.2`, `MEDULLA-DECISION-ENGINE-R651.11`. Shape: one handler of at most 35 statements; reuse `send_engine`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/participants.py::handle_turn_append` -> `arbora/api/ops/_engine.py::send_engine` (engine `MemoryRemember`). | Test: `tests/api/test_participant_ops_served.py::test_turn_append_commits_and_enqueues` (served, loopback engine) and `::test_backlog_refusal_keeps_the_turn`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.5
Ask and card operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Ask and card operations.** Stage: served operations. `participant.ask` (verb `ask`, scope `participant:read`) sends `ParticipantRead` op `Ask` with `{subject, observer, question, memory_scope}`. `participant.card` sends op `Card`. The result of `ask` holds the text, the claim citations and the turn citations, or the abstention code. Arbora adds no ranking and no text. Caller: registry `invoke` → `handle_participant_ask` → `send_engine`. Engine owner: `MEDULLA-DECISION-ENGINE-R655.2`, `MEDULLA-DECISION-ENGINE-R655.3`. Refusals pass through: `PARTICIPANT_NOT_VISIBLE`, `OBSERVER_NOT_PERMITTED`, `NO_GROUNDED_CLAIMS`, `CARD_ABSENT`. Writes: none. Depends: `ARBORA-OPS-R897.2`. Shape: two handlers that share one result mapper. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/participants.py::handle_participant_ask` -> `arbora/api/ops/_engine.py::send_engine`; `participant.card` uses the sibling handler in the same module. | Test: `tests/api/test_participant_ops_served.py::test_ask_and_card_return_citations_or_typed_refusals` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.6
Assistant profile and document set operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Assistant profile and document set operations.** Stage: served operations. Module `arbora/api/ops/assistants.py`. `assistant.profile.put`, `assistant.profile.get`, `assistant.profile.list`, `assistant.document_set.put`, `assistant.document_set.get` and `assistant.document_set.list` map to engine `AssistantProfile` ops. Writes use scope `assistant:write` and need an idempotency key. Reads use `assistant:read`. The param `expected_revision` maps to the engine compare-and-set. `agents.run` in `arbora/api/ops/agents.py` and the `decide` operations gain the optional param `assistant_profile_ref`. Arbora passes it to the engine without reading it. A profile never bypasses admission: the invoke pipeline authorizes first, and the engine checks the profile-use grant. Caller: registry `invoke` → `handle_profile_put` → `send_engine`. Engine owner: `MEDULLA-DECISION-ENGINE-R656.2`, `MEDULLA-DECISION-ENGINE-R128.16`, `MEDULLA-DECISION-ENGINE-R036.107`. Refusals pass through: `PROFILE_NOT_FOUND`, `PROFILE_NOT_VISIBLE`, `PROFILE_REVISION_CONFLICT`, `PROFILE_TOOL_NOT_ALLOWED`, `DOCUMENT_SET_NOT_FOUND`, `DOCUMENT_SET_QUERY_NOT_READ_ONLY`. Writes: none in arbora. Depends: `ARBORA-OPS-R897.1`, `MEDULLA-DECISION-ENGINE-R656.2`. Shape: one table from operation id to engine op name; no branching per operation. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/assistants.py::handle_profile_put` -> `arbora/api/ops/_engine.py::send_engine`; `agents.run` is served by `arbora/api/ops/agents.py:43` `handle_agent`, which gains the passthrough param. | Test: `tests/api/test_assistant_ops_served.py::test_profile_and_document_set_round_trip_and_run_reference` (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.7
Registration and error mapping
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Registration and error mapping.** Stage: host bootstrap. Add `participants` and `assistants` to the module tuple in `get_registry` of `arbora/api/ops/registry_factory.py`, beside `memory`. Register the scopes `participant:read`, `participant:write`, `participant:observe`, `assistant:read` and `assistant:write` in `arbora/security/scope_registry.py` through `scripts/gen_scope_registry.py`. Add each engine code of `MEDULLA-DECISION-ENGINE-R010.100.4` to `ENGINE_ERRORS` in `arbora/api/engine_errors.py`: `PARTICIPANT_NOT_VISIBLE`, `OBSERVER_NOT_PERMITTED`, `SCOPE_NOT_FOUND`, `SCOPE_NOT_VISIBLE` and `PROFILE_NOT_VISIBLE` map to 403 and not retryable. `NO_GROUNDED_CLAIMS`, `CARD_ABSENT`, `PROFILE_NOT_FOUND`, `DOCUMENT_SET_NOT_FOUND` and `MEMBERSHIP_SESSION_UNKNOWN` map to 404. `DERIVE_BACKLOG_FULL` maps to 429 and retryable. The remaining codes map to 400. The surface gate `scripts/check_api_surface.py` accepts the added operations. Writes: none. Depends: `ARBORA-OPS-R897.2` to `ARBORA-OPS-R897.6`. Shape: one tuple edit, one table edit and one scope list. Caller chain: Host start builds `arbora/api/ops/registry_factory.py:16` `get_registry` (module loop at `arbora/api/ops/registry_factory.py:52`, where `participants` and `assistants` join `memory`); error mapping is read from `arbora/api/engine_errors.py:5` `ENGINE_ERRORS`; scopes come from `arbora/security/scope_registry.py` generated by `scripts/gen_scope_registry.py`; the gate is `scripts/check_api_surface.py`. | Test: `tests/api/test_participant_registration.py::test_registry_lists_every_operation_and_scope_is_registered` (module test). Test: `tests/api/test_participant_registration.py::test_engine_codes_map_to_status` (module test).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R897.8
Hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof.** Stage: served operations. The served journey runs over HTTP and over MCP with a loopback engine. It puts two participants and adds both to a session. It appends turns and reads the status. It asks, reads the card and saves a profile. Then it runs `agents.run` with the profile. It then repeats the ask as a second tenant and asserts the non-disclosing refusal. Depends: `ARBORA-OPS-R897.7`, `MEDULLA-DECISION-ENGINE-R655.6`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> `participant.*`, `assistant.*` and `agents.run` handlers (`arbora/api/ops/participants.py`, `arbora/api/ops/assistants.py`, `arbora/api/ops/agents.py:43`); the journey is a test driver only. Shape: One served test module `tests/api/test_participant_ops_served.py` reusing the loopback engine and HTTP/MCP drivers of the existing served API tests; no production code is added by this row. | Test: `tests/api/test_participant_ops_served.py::test_participant_memory_journey` (served: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R879
Serve hook install and uninstall as registry operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Serve hook install and uninstall as registry operations.** Subsystem: hosted operations. Caller: registry `invoke` over HTTP and MCP → `arbora/api/ops/ops.py::hooks_install` and `hooks_uninstall` → `arbora/ecosystem/hook_installer.py::install` and `uninstall`. Add operations `ops.hooks.install` and `ops.hooks.uninstall`, both previewed then executed through `plan_ref`. Rule: idempotent; they touch only the managed block. Refusal: `PERMISSION_DENIED` without the `ops.admin` grant. Write path: the managed hook block only; one `invoke` audit record. Depends: `ARBORA-OPS-R007`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `hooks_install` and `hooks_uninstall` handlers in `arbora/api/ops/ops.py` (operations tuple at `arbora/api/ops/ops.py:195`) -> `arbora/ecosystem/hook_installer.py:214` `HookInstaller.install` and `:262` `HookInstaller.uninstall`. Shape: Two new handlers and two `build_write_op` specs (`arbora/api/ops/_common.py:133`) added beside `ops.backup`/`ops.restore` in `arbora/api/ops/ops.py`; the existing `HookInstaller` class (`arbora/ecosystem/hook_installer.py:203`) is reused unchanged; the same actions are mapped at `arbora/mcp_server/legacy_action_mapping.py:121`. | `tests/api/test_ops_hooks_served.py::test_hooks_install_uninstall_over_http_and_mcp` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R880
Serve the cross-source report as a registered operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Serve the cross-source report as a registered operation.** Entry: registry operation `query.cross_source_report`. Caller: `arbora/api/ops/query_federation.py` handler → medulla federated query for `MEDULLA-CQ-XSRC-R006`. Arbora holds no report logic. The result is the typed `SupplyChainImpactReport` of `MEDULLA-CQ-XSRC-R006.1`. Refusal: `not_served` with the medulla row id when the engine lacks the method. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `query.cross_source_report` spec in `arbora/api/ops/query_federation.py` (federated dispatch at `arbora/api/ops/query_federation.py:491` `dispatch_federated_nl`) -> medulla federated query method. Shape: One new `build_read_op` spec (`arbora/api/ops/_common.py:112`) and handler in `arbora/api/ops/query_federation.py` that forwards to the engine method and returns its typed result unchanged; a missing method yields the `not_served` refusal; no report logic in arbora. | Test: `tests/api/test_query_federation.py::test_cross_source_report_served` (served HTTP and MCP, recorded engine).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R881
Artifact operations in the registry for eg authentication mode
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Artifact operations in the registry for eg authentication mode.** Stage: arbora served operations `artifact.create`, `artifact.get`, `artifact.refresh`. Caller: `POST /api/v1/ops/artifact.create` and the MCP verbs → `invoke` → handlers in new `arbora/api/ops/artifacts.py`, registered by `get_registry`. The handlers call the ports of ARBORA-OPS-R040.3 and reuse the models of ARBORA-OPS-R040.2. Scopes: `artifact:read` for get, `artifact:write` for create and refresh. Refresh and create use `build_write_op` with `Idempotency.KEY_REQUIRED`. Refusals: `INVALID_ARGUMENT`, `NOT_FOUND`, `SCOPE_REQUIRED`, `UNAVAILABLE` when the store export is absent. Evidence: audit record with the artifact identifier. Writes: one artifact record. Depends: ARBORA-OPS-R040.1, ARBORA-OPS-R040.3. Caller chain: `/ops/artifact.create` mounted per op at `arbora/api/http/app.py:207` and the MCP verbs at `arbora/api/mcp/verbs.py:244` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new handlers in `arbora/api/ops/artifacts.py`, registered by `arbora/api/ops/registry_factory.py:16` `get_registry`. Shape: New `arbora/api/ops/artifacts.py` with `build_read_op` for get and `build_write_op` for create and refresh (`arbora/api/ops/_common.py:112,133`); param and result models extend `Params` (`arbora/api/ops/_common.py:32`); handlers call the ports and models named by ARBORA-OPS-R040.2 and R040.3. | Test: `tests/api/test_artifact_ops_served.py::test_artifact_operations_serve_over_http_and_mcp` (L3). It creates, gets and refreshes an artifact and asserts each refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R882
Agent bus operations over medulla topic, roster and work-item methods
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Agent bus operations over medulla topic, roster and work-item methods.** Stage: registered served operations `bus.register`, `bus.heartbeat`, `bus.roster`, `bus.send`, `bus.receive`, `bus.dispatch`. Caller: the operation registry `invoke` over HTTP and MCP. Mapping: register, heartbeat and roster call `eg.graph.BusRegister`, `BusHeartbeat` and `BusRoster` (`MEDULLA-DURABLE-KERNEL-R095.1002`). Send and receive call `topic.append` and `topic.read` (`MEDULLA-DURABLE-KERNEL-R850.3`). Dispatch calls `SubmitWorkItem` with the objective. The operation checks that sender and recipient belong to the caller's tenant before any call. Refusals: `BUS_RECIPIENT_UNKNOWN`, `BUS_RECIPIENT_FOREIGN`. Writes: medulla calls only. Depends: `MEDULLA-DURABLE-KERNEL-R095.1002`, `MEDULLA-DURABLE-KERNEL-R850.3`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/bus.py` handlers for `bus.register`, `bus.heartbeat`, `bus.roster`, `bus.send`, `bus.receive`, `bus.dispatch`, registered by `arbora/api/ops/registry_factory.py:16` `get_registry`. Shape: New `arbora/api/ops/bus.py`: read ops via `build_read_op` and write ops via `build_write_op` (`arbora/api/ops/_common.py:112,133`); each handler sends one engine method under the caller session as `arbora/api/ops/memory.py:118` `_send` does, after a same-tenant check of sender and recipient. | Test: `tests/api/test_agent_bus_served.py::test_send_receive_dispatch_over_medulla` runs `invoke` over HTTP and MCP with a loopback medulla engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R883
Retrieval operations carry the verified agent reference
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Retrieval operations carry the verified agent reference.** Stage: operations. Caller: the registry of `arbora/api/ops/registry_factory.py`, built from the engine contract by `ARBORA-OPS-R006`. The operations for `Discover`, `ContextCompile`, `CorpusRetrieve`, `CodeContext`, `Diagnose` and `RetrievalFeedbackRecord` are bound. For agent callers the handler sets `agent_ref` from the verified agent identity and never from caller params. A human caller sends none. Refusal: `AGENT_REF_FORGED` when params carry an `agent_ref` that differs from the verified agent. Depends: MEDULLA-FEDERATED-QUERY-R650.3, MEDULLA-FEDERATED-QUERY-R704.3. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> retrieval operations built by `arbora/api/ops/registry_factory.py:16` `get_registry` from the engine contract (`load_eg_bindings`, `arbora/api/ops/registry_factory.py:95`) and the curated specs in `arbora/api/ops/retrieval.py:111` `operations`. Shape: One shared param-injection step applied to the six bound retrieval operations: the verified agent identity from the request caller overwrites `agent_ref`, and a differing caller value refuses `AGENT_REF_FORGED`; extends `arbora/api/ops/retrieval.py` rather than adding handlers per op. | Test: `tests/api/test_retrieval_ops.py::test_agent_ref_is_taken_from_identity` calls the operations over HTTP and MCP against a recorded engine (served).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R884
Meeting summary orchestration with provider admission
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Meeting summary orchestration with provider admission.** Subsystem: arbora served operations. Caller: registered operation `meetings.summary.create` (ARBORA-OPS-R065). Arbora admits the provider and model against policy and builds the admission ref `{provider, model, policy_revision, admission_id, admission_digest}`. It calls medulla `MeetingSummaryContext` with that ref and a limit policy. It hands the context to the harness and receives the receipt. It then calls `MeetingSummaryCommit`. A disabled or denied provider refuses before any medulla call. Retry and attempt accounting live here, and one invocation needs one receipt. Depends: MEDULLA-MEDIA-VOCAB-R001.101.4, MEDULLA-MEDIA-VOCAB-R001.101.5. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `meetings.summary.create` handler in new `arbora/api/ops/meetings.py`, registered by `arbora/api/ops/registry_factory.py:16` `get_registry` -> engine `MeetingSummaryContext` then `MeetingSummaryCommit`. Shape: New `arbora/api/ops/meetings.py` with one `build_write_op` spec (`arbora/api/ops/_common.py:133`); provider admission runs before any engine call, then context, harness hand-off through `arbora/agent_runs.py` run ports, then commit; engine calls use the caller session like `arbora/api/ops/memory.py:118` `_send`. | Test: `tests/api/test_meetings_ops.py::test_summary_create_admits_context_and_commit` (L3) runs through the registry `invoke` with a loopback medulla and a recorded harness receipt. It asserts the denied-provider refusal makes zero medulla calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R885
Review a policy revision and return a review approval
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Review a policy revision and return a review approval.** Register the operation `policy.review` in `arbora/api/ops/policy.py` through `registry_factory.py`. It takes the repository, the candidate-set digest, the source blob digest and the invariant generation. A reviewer other than the author approves. It returns a `ReviewApproval` record bound to those digests and the reviewer principal. Medulla stores the record as the receipt of MEDULLA-ORCH-VOCAB-R012.7.3. Refusals: `POLICY_DENIED` without a verified approval. Depends: ARBORA-OPS-R050.2 and ARBORA-OPS-R050.4. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `policy.review` handler in `arbora/api/ops/policy.py` (operations tuple at `arbora/api/ops/policy.py:47`, read handler pattern at `:36` `handle_policy_read`), registered via `arbora/api/ops/registry_factory.py:16` `get_registry`. Shape: One new `build_write_op` spec (`arbora/api/ops/_common.py:133`) and handler in `arbora/api/ops/policy.py` returning a `ReviewApproval` model that extends `Params`; the reviewer principal is taken from `context.caller`; a self-approval refuses `POLICY_DENIED`. | A served test invokes the operation through the registry over HTTP and MCP with a loopback engine. It asserts the receipt digests. A self-approval refuses. Planned test: `tests/api/test_policy_review_served.py::test_policy_review_returns_bound_receipt_and_refuses_self_approval`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R886
Admitted ingest maintenance operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Admitted ingest maintenance operation.** Arbora serves `ingest.maintenance.run`. It calls `MeasureIngestThroughput`, then `Decide` with `QuestionKind::IngestShortfall`, then applies each admitted action with owner authorization, expected revision and cost ceiling. A missing authorization refuses before any effect. Depends: `MEDULLA-REPO-INGEST-R006.1`. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `ingest.maintenance.run` handler in `arbora/api/ops/ingest.py` (operations at `arbora/api/ops/ingest.py:281`) -> engine `MeasureIngestThroughput`, `Decide`, then each admitted action. Shape: One new spec built through `_ingest_op` (`arbora/api/ops/ingest.py:197`) and a handler that sends the engine methods under the caller session; owner authorization, expected revision and cost ceiling are checked before each effect; arbora keeps no maintenance state. | Test (planned): `tests/api/test_ingest_maintenance_served.py::test_maintenance_run_refuses_without_authorization_and_applies_admitted_actions` (L3, through the operation registry's `invoke` over HTTP and MCP with a recorded medulla engine).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R887
Served operation entity.approve_link
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Served operation entity.approve_link.** Caller: the operation registry (`arbora/api/ops/registry_factory.py`, verify the current registry) → `arbora/api/ops/entity.py::approve_link` (new) → EG `Method::ApproveEntityLink { decision_record_digest, pair_index, approver }`. The operation is a destructive write with an approval step. It returns the engine receipt or the typed refusal unchanged. Admission requires the approving principal to hold the engine scope that `MEDULLA-UNIFIED-DATA-PLANE-R030` names. The operation never approves in its own name. Refusals pass through: `LINK_NOT_APPROVABLE`, `LINK_APPROVER_MISSING`, `LINK_PROPOSAL_UNKNOWN`. Depends: MEDULLA-UNIFIED-DATA-PLANE-R030. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `arbora/api/ops/entity.py::approve_link`, registered by `arbora/api/ops/registry_factory.py:16` `get_registry` (module loop at `arbora/api/ops/registry_factory.py:52`) -> engine `ApproveEntityLink`. Shape: New `arbora/api/ops/entity.py` with one destructive `build_write_op` spec (`arbora/api/ops/_common.py:133`) with an approval step; the handler forwards the engine receipt or typed refusal unchanged under the caller session. | A served test calls the registry `invoke` over HTTP and MCP against a recorded medulla engine. It approves one proposal. It asserts the refusal passthrough for a missing approver.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R888
Admit data-product access requests against the steward role
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Admit data-product access requests against the steward role.** Subsystem: arbora approvals. Caller: registered served operation `eg.access_request.Decide` in `arbora/api/ops/registry_factory.py`. Arbora must read the steward and owner roles that medulla returns for the product (MEDULLA-TYPED-PACKS-R802.1). It admits the approval only for a principal holding one of them. Arbora holds no role table. Arbora forwards the decision to medulla method `AccessRequestDecide` (MEDULLA-TYPED-PACKS-R805.3). Refusal `STEWARD_ROLE_MISSING` leaves zero effects. Depends: ARBORA-OPS-R855, MEDULLA-TYPED-PACKS-R805.3. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> registered operation `eg.access_request.Decide` (engine binding loaded by `arbora/api/ops/registry_factory.py:95` `load_eg_bindings`) with a curated wrapper in new `arbora/api/ops/governance.py` -> engine `AccessRequestDecide`. Shape: New `arbora/api/ops/governance.py` handler: reads the steward and owner roles from the engine, admits only a principal holding one, then forwards the decision; built with `build_write_op` (`arbora/api/ops/_common.py:133`); no role table in arbora. | Test: `tests/api/test_governance_ops.py::test_access_request_approval_needs_steward` (L3) runs through the registry `invoke` over HTTP and MCP against a loopback medulla engine. It asserts the grant after a steward approval and zero effects after a non-steward approval.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R889
Serve an OpenLineage-compatible run-event route that calls `LineageIngest`
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Serve an OpenLineage-compatible run-event route that calls `LineageIngest`.** Companion of `MEDULLA-UNIFIED-DATA-PLANE-R702.3`. Entry: HTTP `POST /api/v1/lineage` in `arbora/api/http/app.py`. Caller: the route → admission and the `ingest:write` scope → generated `eg.<domain>.LineageIngest`. The route accepts one run event or an array of at most `knob lineage.drain_batch` events. It maps the wire shape to `LineageEvent` and forwards under the caller's tenant. Arbora stores nothing and decides nothing. Refusals: 400 for a non-array body; 413 above the batch size; 403 without the scope. Write path: none in arbora. Caller chain: HTTP `POST /api/v1/lineage` mounted in `arbora/api/http/app.py:58` `create_api_application` next to the per-op routes at `arbora/api/http/app.py:207` -> `arbora/api/http/routes.py:122` `make_endpoint` admission -> `arbora/api/invoke/pipeline.py:1021` `invoke` with scope `ingest:write` -> generated `eg.<domain>.LineageIngest`. Shape: One new route function in `arbora/api/http/app.py` that maps the wire event(s) to `LineageEvent` and calls the generated engine operation through `invoke`, reusing the `make_endpoint` admission and `_error` mapping of `arbora/api/http/routes.py`; no storage in arbora. | Test: `tests/api/test_lineage_route.py::test_run_event_reaches_engine_under_caller_tenant` posts one event and reads the edge through `ask`.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R890
Bind the engine decision port at host start
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Bind the engine decision port at host start.** Subsystem: host bootstrap. Caller: `arbora/agent_runs.py::bind_run_ports`. Add `arbora/agent_host/engine_decisions.py::ArboraEngineDecisionPort` and register it with `host_ports.register_engine_decision_port` (MERISTEM-SCM MERISTEM-SCM-R008). `decide` invokes the registered operation `eg.query.Decide`, `assemble` invokes `eg.storage.AgentAssemble`, `log` invokes `eg.coordination.DecisionLog` and `put_blob` invokes the engine blob upload. Each call runs under the run's delegated principal and tenant through the operation registry `invoke`, never a service principal. The port projects the engine outcome into `EngineAnswer` and passes refusal codes through unchanged. Depends: MERISTEM-SCM MERISTEM-SCM-R008. Caller chain: `arbora/agent_runs.py:613` `bind_run_ports` -> `host_ports.register_engine_decision_port` -> new `arbora/agent_host/engine_decisions.py::ArboraEngineDecisionPort` -> registry `invoke` (`arbora/api/invoke/pipeline.py:1021`). Shape: New `arbora/agent_host/engine_decisions.py` class with four methods that each call `invoke` for one registered operation under the run's delegated principal; registered beside the existing `register_run_decision_provider` and `register_run_event_sink` calls in `bind_run_ports`. | Test: `tests/agent_host/test_engine_decision_port_served.py::test_port_calls_registered_ops_under_the_run_principal` (L3). A loopback engine records the principal, tenant and operation id for each of the four calls.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R891
Step usage events reach the usage ledger
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Step usage events reach the usage ledger.** Subsystem: host bootstrap and run event sink. Caller: `arbora/agent_runs.py::record_run_event`, registered by `bind_run_ports` → `arbora/agent_host/usage_ledger.py::forward_step_usage`. Add `forward_step_usage` and `flush_usage(run_id)`. The sink buffers each `step_usage` event of MERISTEM-HARNESS-CYCLE-R003.1 per run. At run end it sends the buffer as `Usage` `Append` batches (MEDULLA-DECISION-ENGINE-R801.8), each at most the engine `usage.max_batch`. The append goes through the service executor, because `usage:write` is service-only (MEDULLA-DECISION-ENGINE-R801.3). The tenant comes from the run context, never from an event field. Engine refusals pass through to the log; a refusal never fails the run and never drops the other batches. Depends: MEDULLA-DECISION-ENGINE-R801.8, MERISTEM-HARNESS-CYCLE-R003.1. Caller chain: `arbora/agent_runs.py:483` `record_run_event` (registered at `arbora/agent_runs.py:619` by `bind_run_ports`) -> new `arbora/agent_host/usage_ledger.py::forward_step_usage`, with `flush_usage(run_id)` at run end. Shape: New `arbora/agent_host/usage_ledger.py` holding a per-run buffer; `record_run_event` forwards `step_usage` events to it; flush sends batches through the service executor to the engine `Usage` `Append`; failures are logged and never raised, as `record_run_event` already does for trace writes. | Test: `tests/test_usage_forwarding.py::test_step_usage_events_append_once_per_run` (L3). A loopback engine records the principal, tenant and batches. It asserts the field set and the batch split. It also asserts that a refusal leaves the run result unchanged.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R893
arbora serves the credential access authority port to the SDK
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**arbora serves the credential access authority port to the SDK.** Subsystem: admission and grants. Code: `arbora/gateway/credential_authority.py::CredentialAuthority.verify(binding_request)`. It returns a `CredentialAccessBinding` of `SCION-CONNECTOR-CONTROL-R035.1` only for the exact current grant. The grant belongs to the verified tenant, the requesting client and the trusted connector admission. It refuses with `scope_denied`, `binding_mismatch`, `grant_expired`, `revoked` or `authority_unavailable`. It writes a receipt per decision. Caller: the multiplexer's child call path (`arbora/fleet/multiplexer.py`) injects the verified binding into each child tool call. Provider of `SCION-CONNECTOR-CONTROL-R035.3`. Depends: none. Caller chain: `arbora/fleet/multiplexer.py:3049` `_call_service_child_once` (child tool call path) -> new `arbora/gateway/credential_authority.py::CredentialAuthority.verify`. Shape: New `arbora/gateway/credential_authority.py` class returning the binding model only for an exact current grant, writing a receipt per decision; the multiplexer child call path calls it before each credentialed child call and injects the result; refusals map to the five named codes. | Test: `tests/gateway/test_credential_authority.py::test_exact_grant_only_and_refusals_write_receipts` (L3) over MCP through the multiplexer.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R894
Register the changeset submitter and gate runner at host start
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Register the changeset submitter and gate runner at host start.** Subsystem: host bootstrap. Caller: `arbora/agent_runs.py::bind_run_ports`. Register a `ChangesetSubmitter` whose `submit` invokes `source.commit` then `source.land` (ARBORA-OPS-R848.2) and whose `materialize` starts `SourceMount` from `scion_sdk.source.mount` (SCION-SCM-R002.3). Register a `SandboxGateRunner` bound to the same workspace and to the isolated sandbox backend. Return `SOURCE_CONFLICT{paths}` unchanged for the rebase in MERISTEM-SCM-R001. Refuse registration when the sandbox boundary cannot be verified. Depends: ARBORA-OPS-R848.2, SCION-SCM-R002.3. Caller chain: `arbora/agent_runs.py:613` `bind_run_ports` -> new `arbora/agent_host/changeset.py::ChangesetSubmitter.submit` -> registry `invoke` (`arbora/api/invoke/pipeline.py:1021`) for `source.commit` then `source.land`. Shape: New `arbora/agent_host/changeset.py` with `ChangesetSubmitter` and `SandboxGateRunner`, registered from `bind_run_ports`; `submit` calls `invoke` under the run principal and returns `SOURCE_CONFLICT{paths}` unchanged; registration refuses when the sandbox boundary is unverified; source reads reuse `arbora/api/ops/source.py:377` operations. | Test: `tests/agent_host/test_changeset_submitter_served.py::test_materialize_commit_land_and_conflict_through_invoke` (L3). A loopback engine returns one conflict then accepts the retry.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R895
Summarize a finalized meeting under an admitted provider
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Summarize a finalized meeting under an admitted provider.** Subsystem: served operations. Add the operation `meeting.summarize` in `arbora/api/ops/meeting.py`, registered in `arbora/api/ops/registry_factory.py`. Steps: read the finalized receipt through the `audio-transcriber` tool `meeting_get_final` and call `scion_sdk.meeting.require_finalized`. Then read the bounded summary context from `Method::MeetingTranscriptRevision` and admit the provider for the caller. Admission refuses `CAPTURE_DENIED`, `EGRESS_DENIED`, `TENANT_DENIED` or `PROVIDER_UNAVAILABLE`. Meristem invokes the admitted provider once and returns an invocation receipt. Arbora commits the summary with that receipt through the engine. A local binding never executes hosted. Depends: SCION-SOURCE-INGEST-R014.2, MEDULLA-MEDIA-VOCAB-R001.101. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> new `meeting.summarize` handler in new `arbora/api/ops/meeting.py`, registered by `arbora/api/ops/registry_factory.py:16` `get_registry` -> `scion_sdk.meeting.require_finalized` -> engine `MeetingTranscriptRevision`, then the admitted provider run via `arbora/agent_runs.py:613` run ports, then engine commit. Shape: New `arbora/api/ops/meeting.py` with one `build_write_op` spec (`arbora/api/ops/_common.py:133`); admission runs first and refuses with the four named codes before any provider call; the commit carries the invocation receipt; engine calls use the caller session like `arbora/api/ops/memory.py:118` `_send`. | Test: `tests/api/test_meeting_summarize_served.py::test_summary_needs_final_receipt_and_admitted_provider` (L3). It asserts zero provider calls before finalization and for each admission refusal.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896
Development surface over MCP
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Development surface over MCP.** Arbora serves the graph-native development operations as intent tools: `source.read_tree`, `source.submit_changeset`, `source.gate`, `spec.query`, `spec.next_slice` and `lifecycle.trace`. Caller: the MCP multiplexer. Each tool calls the medulla method of `MEDULLA-SDLC-R012` (`ReadTree`, `SubmitChangeset`, `UnifiedQuery`, `Decide` `TaskPlan`). Coding harnesses, including local-model lanes, connect through this surface and never through raw git. Writes need the `source:write` scope. | Test: `tests/api/test_development_surface_served.py::test_harness_reads_plans_and_submits_a_changeset_over_mcp` (L4) runs against a loopback engine.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.1
Artifact-graph reads resolve to registered engine competency queries
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Artifact-graph reads resolve to registered engine competency queries.** The `ask` and `find` intent tools must answer these questions from the engine: next unblocked task for phase P, task context, plan section, contract, seam routing, and the plan to reach goal G or phase P. Caller chain: MCP `ask` → `invoke` → `arbora/api/ops/development.py::handle_artifact_query` → engine `UnifiedQuery` with a registered competency query ID. Provider rows: `MEDULLA-SDLC-R014.6` and `MEDULLA-SDLC-R014.7`. Contract: the medulla contract `specs/development-lifecycle/contracts/spec-artifact-graph.md`. Arbora must hold no per-question operation, no ranking and no cache of answers. Engine refusals pass through unchanged. Shape: `handle_artifact_query(question, scope) -> QueryResult` in `arbora/api/ops/development.py`, reusing the engine client adapter and no new operation ID. Depends: `ARBORA-OPS-R896`, `MEDULLA-SDLC-R014.6`. | Test: `tests/api/test_development_surface_served.py::test_artifact_questions_reach_registered_queries` (L3: HTTP and MCP, loopback engine). It asserts one engine call per question and no new operation ID.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.2
Project mode is read and changed through served operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Project mode is read and changed through served operations.** `project.mode.get` (verb `ask`) returns the ProjectMode of one repository: `reference`, `development` or `evolving`. `project.mode.set` (verb `manage`) changes it. Both call the engine rows of `MEDULLA-SDLC-R012.8`. A change to `evolving` must return a preview first and then need operator approval through the approval path. Arbora must not change the approval rule and must not set the mode from a run or a proposal. The engine owns the Fixed safety knob. Caller chain: `invoke` → `arbora/api/ops/development.py::handle_project_mode`. Refusal `MODE_APPROVAL_REQUIRED` passes through from the engine. Shape: `handle_project_mode(repository, mode=None) -> ProjectModeResult` in `arbora/api/ops/development.py`, reusing the approval path of the manage verb. Depends: `ARBORA-OPS-R896`, `MEDULLA-SDLC-R012.8`. | Test: `tests/api/test_development_surface_served.py::test_evolving_mode_needs_operator_approval` (L3: HTTP and MCP). It asserts that no approval leaves the mode unchanged.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.3
An orchestrated implementation run starts through a served act operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**An orchestrated implementation run starts through a served act operation.** `development.run.start` (verb `act`, scope `source:write`) takes the repository, the phase and an optional task ID. It needs an idempotency key. It sends the engine dispatch decision of `MEDULLA-SDLC-R015` and returns the run ID. The engine picks the unblocked tasks. Meristem executes each task run under `MERISTEM-SCM-R011.2`. Arbora admits, audits and returns the run ID. It must not choose tasks. A run in a repository with mode `reference` is refused with `PROJECT_MODE_REFERENCE`. Caller chain: `invoke` → `arbora/api/ops/development.py::handle_run_start`. Shape: `handle_run_start(repository, phase, task_id=None, idempotency_key) -> RunId` in `arbora/api/ops/development.py`, reusing the idempotency store of the act verb. Depends: `ARBORA-OPS-R896.2`, `MEDULLA-SDLC-R015`. | Test: `tests/api/test_development_surface_served.py::test_run_start_returns_run_id_and_refuses_reference_mode` (L3: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.4
An implementation run is observed through a served ask operation
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**An implementation run is observed through a served ask operation.** `development.run.status` (verb `ask`, scope `source:read`) takes a run ID. It returns the run state, the task lines done and open, the evidence digests and the gate verdicts. Arbora reads these from the engine run records of `MEDULLA-SDLC-R015.5`. It must add no state of its own. A run ID of another tenant returns the non-disclosing refusal `RUN_NOT_FOUND`. Caller chain: `invoke` → `arbora/api/ops/development.py::handle_run_status`. Shape: `handle_run_status(run_id) -> RunStatus` in `arbora/api/ops/development.py`, a read of engine run records with no local state. Depends: `ARBORA-OPS-R896.3`, `MEDULLA-SDLC-R015.5`. | Test: `tests/api/test_development_surface_served.py::test_run_status_reports_evidence_and_hides_other_tenants` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.5
Proposals are listed and reviewed through served operations and land only as pull requests
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Proposals are listed and reviewed through served operations and land only as pull requests.** `development.proposal.list` (verb `find`) returns the typed proposals of `MEDULLA-SDLC-R017` with kind, target, evidence and state. `development.proposal.review` (verb `act`) records an accept or a reject. An accept asks the engine to open a pull request that runs the gates. Arbora must never write a file under `specs/` and must never merge. A direct write request returns `PROPOSAL_DIRECT_WRITE_REFUSED`. Contract: the medulla contract `specs/development-lifecycle/contracts/proposal-review.md`. Caller chain: `invoke` → `arbora/api/ops/development.py::handle_proposal_review`. Shape: `handle_proposal_review(proposal_id, decision) -> ProposalState` in `arbora/api/ops/development.py`, reusing the engine pull-request open call. Depends: `ARBORA-OPS-R896.2`, `MEDULLA-SDLC-R017`. | Test: `tests/api/test_development_surface_served.py::test_accept_opens_a_pull_request_and_never_writes_specs` (L3: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.6
Hot-path proof: the artifact graph drives a run over MCP
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof: the artifact graph drives a run over MCP.** The L4 journey runs over MCP against a loopback engine. It asks for the next unblocked task of a phase. It sets the mode to `development`. It starts a run and reads its status. It lists proposals and accepts one. It asserts one pull-request request and zero writes under `specs/`. Depends: `ARBORA-OPS-R896.1`, `ARBORA-OPS-R896.3`, `ARBORA-OPS-R896.4`, `ARBORA-OPS-R896.5`. Caller chain: MCP verbs at `arbora/api/mcp/verbs.py:244` -> `arbora/api/invoke/pipeline.py:1021` `invoke` -> the development-surface operations of ARBORA-OPS-R896.1 to R896.5 (`agents.run` at `arbora/api/ops/agents.py:43`); the journey is a test driver only. Shape: One served L4 test module `tests/api/test_development_surface_served.py` driving the MCP surface against a loopback engine; no production code is added by this row. | Test: `tests/api/test_development_surface_served.py::test_artifact_graph_drives_a_run_over_mcp` (L4).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.7
Autonomous deliveries are listed, read and steered through served operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Autonomous deliveries are listed, read and steered through served operations.** Arbora serves five operations over the delivery methods of `MEDULLA-SDLC-R019.14`. `development.delivery.list` (verb `find`, scope `source:read`) lists deliveries by repository and stage. `development.delivery.status` (verb `ask`, scope `source:read`) returns the derived stage, the mandate, the proposals and the open question. `development.delivery.stop` (verb `act`, scope `source:write`, `PrincipalRule.HUMAN`) ends a delivery as `stopped`. `development.delivery.retry` (verb `act`, scope `source:write`) starts a new assignment for a blocked or failed delivery. `development.delivery.answer` (verb `write`, scope `source:write`, `PrincipalRule.HUMAN`) answers the open question as a person's input. Arbora holds no delivery state and no stage logic. A delivery of another tenant returns the non-disclosing refusal `DELIVERY_NOT_FOUND`. A stop or answer from a non-human principal refuses with `PRINCIPAL_NOT_HUMAN`. Caller chain: MCP intent verb → `arbora/api/invoke/pipeline.py::invoke` → new `arbora/api/ops/development.py::handle_delivery_list`, `handle_delivery_status`, `handle_delivery_stop`, `handle_delivery_retry` and `handle_delivery_answer` → the engine client. Shape: Five handlers beside `handle_run_status` in `arbora/api/ops/development.py`. The curated module loop of `arbora/api/ops/registry_factory.py::get_registry` registers them. They reuse the idempotency store of the act verb. Depends: `ARBORA-OPS-R896.4`, `MEDULLA-SDLC-R019.14`. | Test: `tests/api/test_delivery_ops_served.py::test_delivery_ops_read_and_steer_without_local_state` (L3: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.8
Code-host events reach the engine as delivery feedback
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Code-host events reach the engine as delivery feedback.** Arbora serves `POST /api/v1/development/scm-events/{connector}` for signed code-host webhooks. The route calls the connector's event normalizer of `SCION-SCM-R003.2` through `fleet.call`. It passes each normalized `ScmFeedbackEvent` to `DeliveryFeedback` (`MEDULLA-SDLC-R019.5`). The signature check uses the shared verifier of `SCION-SCM-R003.2` and the secret reference of the connector. A bad signature refuses with `SCM_SIGNATURE_INVALID` and writes nothing. A polling fallback runs per followed proposal when no webhook arrived for `development.scm_poll_interval_s` (starts at 120 s). It calls the connector list tools with a stored cursor. Arbora stores only the cursor. Caller chain: HTTP route in `arbora/gateway/graph_api.py` → new `arbora/development/scm_intake.py::handle_scm_event` → `fleet.call` normalizer → engine `DeliveryFeedback`. Shape: New `arbora/development/scm_intake.py` (planned; `arbora/development/` does not exist yet) that reuses the signed-ingress pattern of `arbora/messaging/alert_intake.py` and the fleet client of `arbora/api/ops/fleet.py`. Depends: `ARBORA-MESSAGING-R008.1`, `SCION-SCM-R003.2`, `MEDULLA-SDLC-R019.5`. | Test (planned): `tests/development/test_scm_intake_served.py::test_signed_event_reaches_delivery_feedback_and_bad_signature_refuses` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.9
Feedback admission stamps the acting principal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Feedback admission stamps the acting principal.** Before arbora forwards a person's event, it maps the code-host actor to an arbora principal. The mapping reads the identity links of the access registry. The event carries `admitted_principal` only when that principal holds `source:write` on the repository. Otherwise the event goes on as context with no principal. A bot, an automated reviewer or a check event never carries a principal. Quoted text in an event never changes a scope or a policy. The engine uses the stamp for mandate revalidation (`MEDULLA-SDLC-R019.6`). Caller chain: `handle_scm_event` (`ARBORA-OPS-R896.8`) → new `arbora/development/scm_intake.py::admit_actor` → `check_access` in `arbora/access/service.py:115`. Shape: One function `admit_actor(event, repository) -> str | None` in `scm_intake.py` that reuses the existing scope check; no new identity store. Depends: `ARBORA-OPS-R896.8`. | Test (planned): `tests/development/test_scm_intake_served.py::test_only_principals_with_source_write_are_stamped` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.10
Merge arming runs only on an owner approval of the head commit
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Merge arming runs only on an owner approval of the head commit.** `development.delivery.arm` (verb `act`, scope `source:write`) asks `Decide` with `MergeArming` (`MEDULLA-SDLC-R019.10`). On `arm` it calls the connector arm tool with the expected head commit and the approval reference. The arm tools belong to the code-host connector rows that `MEDULLA-SDLC-R019` lists. On `disarm` it calls the matching disarm tool. On `hold` it calls nothing. The approval is a receipt of `ARBORA-OPS-R863` bound to the head commit digest and issued to a human owner principal. The registry denies every merge tool and every arm tool to the platform principal without that receipt. Refusals: `MERGE_APPROVAL_REQUIRED`, `MERGE_HEAD_MISMATCH`, `MERGE_BY_PLATFORM_REFUSED`. Arbora never merges a proposal itself. Caller chain: `invoke` → new `arbora/api/ops/development.py::handle_delivery_arm` → engine `Decide` → `fleet.call` arm tool. Shape: One handler beside `handle_run_start` that reuses the receipt check of `handle_recommendation_approve` in `arbora/api/ops/decide.py`. Depends: `ARBORA-OPS-R863`, `ARBORA-OPS-R896.7`, `MEDULLA-SDLC-R019.10`. | Test: `tests/api/test_delivery_ops_served.py::test_arm_needs_owner_receipt_on_head_and_platform_never_merges` (L3: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.11
Delivery writes to the code host are governed effects
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Delivery writes to the code host are governed effects.** Every outside write of a delivery goes through the governed write-back path. The writes are push, open, comment, thread reply, thread resolve, close, arm and disarm. Each write carries an idempotency key of delivery ID, assignment ID and step. Each write records a receipt. After a restart an effect without a receipt is `uncertain`. Arbora reconciles it with a read before any retry (`SCION-GOVERNED-WRITEBACK-R004.11`, `SCION-GOVERNED-WRITEBACK-R004.14`). A retry of an uncertain effect without reconciliation refuses with `EFFECT_UNCERTAIN`. Caller chain: meristem host fleet port → `invoke` → `arbora/api/ops/write_back.py::preview_write_back` → governed apply → `fleet.call`. Shape: Extend `preview_write_back` with the delivery idempotency key and reuse the existing receipt reservation; no second effect log. Depends: `ARBORA-OPS-R896.7`, `SCION-GOVERNED-WRITEBACK-R004.11`. | Test: `tests/api/test_delivery_ops_served.py::test_delivery_writes_are_idempotent_and_uncertain_effects_reconcile` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.12
A delivery assignment starts on a reserved development lane
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**A delivery assignment starts on a reserved development lane.** For each pending assignment of `MEDULLA-SDLC-R019.3`, arbora reserves a development lane through the engine lane methods. It then starts one meristem run with the delivery context of `MERISTEM-SCM-R012.1`. It delivers new inputs at the next step boundary through the host input port. The lane quota caps parallel assignments at `development.delivery.max_parallel` (starts at 4). One extra slot stays for a person's input, so new work never blocks a person. A run that loses its lane lease ends its assignment, and the engine recovers it (`MEDULLA-SDLC-R019.13`). A start without a free slot queues and refuses nothing. Caller chain: `handle_run_start` (`ARBORA-OPS-R896.3`) → new `arbora/development/assignments.py::start_assignment` → `arbora/fleet/scaling/development_lane.py::EngineNativeDevelopmentLaneTransport.reserve` → meristem run start. Shape: New `arbora/development/assignments.py` (planned) that reuses `EngineNativeDevelopmentLaneTransport` and the run start path of `arbora/api/ops/runs.py`. Depends: `ARBORA-OPS-R896.3`, `MEDULLA-SDLC-R019.3`, `MERISTEM-SCM-R012.1`. | Test (planned): `tests/development/test_assignments_served.py::test_assignments_reserve_lanes_and_keep_a_person_slot` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R896.13
Hot-path proof: a delivery runs from slice to merge over MCP
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Hot-path proof: a delivery runs from slice to merge over MCP.** Caller chain: MCP `act` `development.run.start` → `handle_run_start` → `start_assignment` → recorded meristem run → `handle_scm_event` → `handle_delivery_arm`. The L4 journey uses a loopback engine and recorded code-host events. It starts a run, and the engine opens a delivery. A failed check event reaches the delivery. A pushed revision gives `disarm`. An owner receipt on the new head gives `arm`, and arbora calls the arm tool once. A merge event ends the delivery. The journey asserts zero merge calls by the platform principal. Shape: New `tests/api/test_delivery_surface_served.py` that reuses the fixtures of `tests/api/test_development_surface_served.py`. Depends: `ARBORA-OPS-R896.7` to `ARBORA-OPS-R896.12`. | Test: `tests/api/test_delivery_surface_served.py::test_delivery_runs_from_slice_to_merge_over_mcp` (L4).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.6
schedules.create and schedules.update ops
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**schedules.create and schedules.update ops.** Write operations that create or change one owned schedule: cron-like expression, target operation, per-schedule budget of seconds and tokens. Each requires `loops:control` and an idempotency key. Arbora must forward the caller's tenant and principal to `MEDULLA-PLACEMENT-R751.754` and `MEDULLA-PLACEMENT-R751.755`, and hold no schedule state. Depends: `ARBORA-OPS-R022.2.1`. Caller chain: MCP `act` → invoke pipeline → `handle_schedules_create` → engine schedule port. Shape: new `arbora/api/ops/schedules.py` reusing the evolution runner port of R022.2.1. | Tests confirm `loops:control` is required, a repeated call with one key stays idempotent, and an absent engine fails closed with `UNAVAILABLE`. Test: `tests/api/test_schedule_ops.py::test_create_requires_loops_control_key_and_forwards_owner` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.7
`schedules.delete` op
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`schedules.delete` op.** Write operation that deletes one owned schedule, requiring `loops:control` and console step-up. Arbora must refuse a schedule that the caller does not own, using the engine refusal of `MEDULLA-PLACEMENT-R751.754`. Depends: `ARBORA-OPS-R022.2.6`. Caller chain: MCP `act` → invoke pipeline → `handle_schedules_delete` → engine schedule port. Shape: handler in `arbora/api/ops/schedules.py` reusing the step-up check of the admin operations. | Tests confirm step-up is required and a foreign schedule is refused. Test: `tests/api/test_schedule_ops.py::test_delete_requires_step_up_and_owner` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.8
`schedules.pause` and `schedules.resume` ops
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`schedules.pause` and `schedules.resume` ops.** Write operations that pause or resume one owned schedule through `MEDULLA-PLACEMENT-R751.756`. Each requires `loops:control` and is idempotent. Depends: `ARBORA-OPS-R022.2.6`. Caller chain: MCP `act` → invoke pipeline → `handle_schedules_pause` and `handle_schedules_resume` → engine schedule port. Shape: two handlers in `arbora/api/ops/schedules.py` sharing one params model. | Tests confirm `loops:control` is required and a repeated pause or resume changes nothing. Test: `tests/api/test_schedule_ops.py::test_pause_and_resume_are_scoped_and_idempotent` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.9
`schedules.runs` read op
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**`schedules.runs` read op.** Read operation that returns the tick history of one schedule: outcome, reason, window, budget used and linked work-item ID. It reads `MEDULLA-PLACEMENT-R751.758` and does no local arithmetic. It requires `loops:read`. Depends: `ARBORA-OPS-R022.2.2`. Caller chain: MCP `ask` → invoke pipeline → `handle_schedules_runs` → engine tick-history read. Shape: handler in `arbora/api/ops/schedules.py` modelled on `handle_runs_get`. | Tests confirm `loops:read` is required and the engine projection is returned unchanged. Test: `tests/api/test_schedule_ops.py::test_runs_returns_engine_tick_history_unchanged` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.10
Wiring and hot-path proof: a scheduled agent run over MCP
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Wiring and hot-path proof: a scheduled agent run over MCP.** Caller chain: MCP `act` op `schedules.create` → invoke pipeline → engine schedule write → engine tick → work item run through `agents.run` → MCP `ask` op `schedules.runs`. Arbora adds no scheduler loop. Shape: new `tests/api/test_schedule_served.py`. Depends: `ARBORA-OPS-R022.2.6` to `ARBORA-OPS-R022.2.9`, and `MEDULLA-PLACEMENT-R751.759`. | Test confirms one created schedule fires, can pause and resume, and reports each outcome over the served surface. Test: `tests/api/test_schedule_served.py::test_scheduled_agent_run_fires_pauses_and_reports_over_mcp` (L4).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R022.2.11
Schedules carry an exclusion group and minimum spacing
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Schedules carry an exclusion group and minimum spacing.** `schedules.create` and `schedules.update` (`ARBORA-OPS-R022.2.6`) accept optional `exclusion_group` (text, 1 to 64 characters) and `min_spacing_s` (integer seconds, 0 to 604,800, default 0) and forward them unchanged to `MEDULLA-PLACEMENT-R751.760`, so heavy role-agent schedules never run at once and fire at least `min_spacing_s` apart. Arbora validates only the parameter shape, holds no schedule state and runs no group check; the engine decides and records the `group_active` and `group_spacing` skips, which `schedules.runs` (`ARBORA-OPS-R022.2.9`) returns. An engine refusal (`SCHEDULE_INVALID`) is returned as a typed refusal and nothing is written. Caller chain: MCP `act` op `schedules.create` or `schedules.update` → invoke pipeline → `handle_schedules_create` / `handle_schedules_update` → engine schedule port. Shape: two optional fields on the existing params model in `arbora/api/ops/schedules.py` (R022.2.6); no new module. Depends: `ARBORA-OPS-R022.2.6`, `MEDULLA-PLACEMENT-R751.760`. | Test: `tests/api/test_schedule_ops.py::test_exclusion_group_and_spacing_are_forwarded_and_engine_refusal_is_typed` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898
Process models run as governed agent DAGs (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process models run as governed agent DAGs (rollup).** Stage: served operations. Arbora serves a stored process workflow as one governed agent run. The engine decides the plan: `Decide` with `QuestionKind::ProcessPlan` (`MEDULLA-CQ-ORCH-R704`) binds each task to a tool, a prompt, a decision or an approval. Arbora builds each agent step from its bound prompt and runs the plan through the meristem run loop (`MERISTEM-RUN-R018`). Arbora binds the ports that the run needs: the tool caller, the decision port and the approval waiter. A human task waits for a served approval. Operations: `process.plan`, `process.run`, `process.approvals.list` and `process.approval.decide`. Arbora decides nothing about bindings or branches. The engine methods for BPMN, DMN and ArchiMate exchange and sync are generated `eg.*` operations and need no row here. Children `.1` to `.8`. Depends: `ARBORA-OPS-R897.1`, `ARBORA-RELEASE-R003.4.6`, `MEDULLA-CQ-ORCH-R704.5`, `MEDULLA-DECISION-ENGINE-R180.4`, `MERISTEM-RUN-R018.5`. | Rollup closes when `.1` to `.8` are verified. Root test: `tests/api/test_process_ops_served.py::test_process_run_waits_for_approval_and_follows_branch` (L4).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.1
Process operation models
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process operation models.** Stage: served operations. Add the module `arbora/api/ops/processes.py` with the param and result models. Every model extends `Params` of `arbora/api/ops/_common.py`. `ProcessPlanParams { workflow_id, version }`. `ProcessRunParams { workflow_id, version, inputs }`. `ProcessApprovalListParams { run_id }`. `ProcessApprovalDecideParams { run_id, step_id, verdict, comment }` with `verdict` closed to `approve` and `reject`. The models mirror the engine `ProcessPlanRequest` and `StepBinding` by hand; a round-trip test against the engine vectors keeps the mirror honest. Caller chain: registry `invoke` → the handlers of `.2` to `.5`. Writes: none. Depends: `ARBORA-OPS-R897.1`. Shape: one new module. | Test: `tests/api/test_process_ops.py::test_models_round_trip_engine_vectors` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.2
process.plan reads the engine decision
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**process.plan reads the engine decision.** Stage: served operation `process.plan` (verb `ask`, scope `process:read`). Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) → `arbora/api/invoke/pipeline.py:1035` `invoke` → `handle_process_plan` in `arbora/api/ops/processes.py` → `send_engine` (`arbora/api/ops/_engine.py`, `ARBORA-OPS-R897.1`) → engine `Decide` with `QuestionKind::ProcessPlan`. Rule: the result is the sealed plan, its digest and the bindings, unchanged. Arbora adds no binding and no ranking. Engine refusals pass through. Writes: none. Depends: `ARBORA-OPS-R898.1`. Shape: one handler of at most 35 statements. | Test: `tests/api/test_process_ops.py::test_plan_returns_engine_plan_unchanged` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.3
Build agent steps from bound prompts
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Build agent steps from bound prompts.** Stage: served operation `process.run`, plan mapping. Add `arbora/processes/run_plan.py::map_process_plan(plan, prompts) -> RunPlan`. Rule: an agent step takes its prompt text from the bound prompt IRI and its agent kind from the binding. A tool step keeps its call through the `_map_plan_to_run_plan` helper of `ARBORA-RELEASE-R003.4.6`. Branch, join, decision and approval steps pass through as meristem step kinds (`MERISTEM-RUN-R018.1`). A prompt that does not resolve refuses `PROCESS_PROMPT_UNRESOLVED` before the run starts. Caller chain: `handle_process_run` (`.5`) → `map_process_plan`. Writes: none. Depends: `ARBORA-OPS-R898.2`. Shape: one new module; prompt text reads through `send_engine`. | Test: `tests/processes/test_run_plan.py::test_agent_steps_take_bound_prompt_text` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.4
Approval waiter and approval operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Approval waiter and approval operations.** Stage: served operations `process.approvals.list` (verb `find`, scope `process:read`) and `process.approval.decide` (verb `act`). Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) → `arbora/api/invoke/pipeline.py:1035` `invoke` → `handle_approval_decide` in `arbora/api/ops/processes.py` → `arbora/processes/approvals.py::ApprovalBroker.resolve`. Rule: the broker implements the meristem `ApprovalWaiter` port. A wait creates one pending record keyed by run id and step id. `process.approval.decide` is `PrincipalRule.HUMAN`, `Confirm.PLAN`, `Idempotency.KEY_REQUIRED` and `AuditClass.IDENTITY_CHAIN`. It needs scope `process:approve` and the step's approver role as a group claim. MCP and A2A callers get the console step-up of HO-03. Writes: the approval record in the run journal. Depends: `ARBORA-OPS-R898.1`. Shape: one broker module and two handlers. | Test: `tests/processes/test_approvals.py::test_decide_resolves_one_pending_wait_once` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.5
process.run wiring
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**process.run wiring.** Stage: served operation `process.run` (verb `act`, scope `process:run`, `Idempotency.KEY_REQUIRED`). Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) → `arbora/api/invoke/pipeline.py:1035` `invoke` → `handle_process_run` → `handle_process_plan` (`.2`) → `map_process_plan` (`.3`) → workflow admission (`ARBORA-FLEET-R034.3`) → `execute_task_plan` (`arbora/api/ops/plans.py:470`) → meristem `iterate_run`. Rule: before the run, bind the tool caller, the decision port and the `ApprovalBroker` in `arbora/agent_runs.py::bind_run_ports` (:613). The decision port sends `Decide` `BranchSelect` and `DecisionTableEval` to the engine. Add `processes` to the module tuple of `get_registry` (`arbora/api/ops/registry_factory.py:16`). Register `process:read`, `process:run` and `process:approve` through `scripts/gen_scope_registry.py`. Writes: the run journal. Depends: `ARBORA-OPS-R898.3`, `ARBORA-OPS-R898.4`. Shape: one handler; the port binding reuses `bind_run_ports`. | Test: `tests/api/test_process_ops.py::test_run_binds_ports_and_starts_admitted_plan` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.6
Process operation refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process operation refusals.** Stage: served operations. Add the engine codes of `MEDULLA-CQ-ORCH-R704.6` and `MEDULLA-DECISION-ENGINE-R180.5` to `ENGINE_ERRORS` in `arbora/api/engine_errors.py`. `WORKFLOW_UNKNOWN` maps to 404. `PROCESS_STEP_UNBOUND`, `PROCESS_PLAN_LOOP` and `BRANCH_NO_ARM` map to 422. Arbora codes: `APPROVAL_NOT_PENDING` (409), `APPROVER_NOT_IN_ROLE` (403) and `PROCESS_PROMPT_UNRESOLVED` (422). A refusal before the run starts no step. Caller chain: the handlers of `.2` to `.5` → the common error envelope. Writes: none. Depends: `ARBORA-OPS-R898.5`. Shape: table entries only. | Test: `tests/api/test_process_ops.py::test_refusals_map_to_stable_codes` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.7
Process run evidence
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process run evidence.** Stage: run journal. The journal records the plan digest, the workflow id and version, and each binding source. It records each branch verdict record id, each decision record id and each approval with approver principal, time and verdict. `process.approvals.list` reads pending and decided approvals from it. Caller chain: `handle_process_run` and `ApprovalBroker.resolve` append to the journal. Writes: journal entries only. Depends: `ARBORA-OPS-R898.5`. Shape: entry types beside the existing run journal entries. | Test: `tests/processes/test_approvals.py::test_journal_cites_plan_verdicts_and_approver` (L1).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R898.8
Process run hot-path proof
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Process run hot-path proof.** Stage: served operations over HTTP and MCP with a loopback engine. Caller chain: `arbora/api/http/app.py:207` (HTTP) and `arbora/api/mcp/verbs.py:244` (MCP) → `arbora/api/invoke/pipeline.py:1035` `invoke` → `process.plan` → `process.run` → `process.approval.decide`. The fixture workflow has a tool task, an approval task and an exclusive gateway. The run waits at the approval; an approve resumes it and the branch verdict picks one arm. A reject ends the run as rejected and skips the dependents. A second tenant gets `WORKFLOW_UNKNOWN`. Writes: as `.5`. Depends: `ARBORA-OPS-R898.5`. Companion engine proof: `MEDULLA-CQ-ORCH-R704.8`. Shape: one served test module `tests/api/test_process_ops_served.py`. | Test: `tests/api/test_process_ops_served.py::test_process_run_waits_for_approval_and_follows_branch` (L4).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R899
Audio and other media prompt the harness through one modality seam (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Audio and other media prompt the harness through one modality seam (rollup).** Stage: every prompt entry point. A prompt may carry audio, image, video or document parts, not only text. Each entry point hands its non-text parts to the one `ModalityNormalizer` in `arbora/modality/normalizer.py`. A registered handler turns each part into text: audio goes to the fleet's `speech-to-text` capability through `fleet.call`. The harness runs on that text. The original is kept as an attachment record, and the derived text links to it by digest. Entry points: chat channels (Telegram, Mattermost and every backend that fills `Message.attachments`), A2A `message/send`, `agents.run` over MCP and HTTP (the web and TUI upload path), the SDK A2A application for the fleet agent, and WebUI dictation. The connector owns transcription: `TRANSCRIBE-R002` (audio-transcriber `transcribe_speech`). Children `.1` to `.7`. Depends: `TRANSCRIBE-R002`. | Root test: `tests/messaging/test_voice_prompts.py::test_voice_note_turn_runs_on_the_transcript` (L2), and every child binds its test.
requirementARBORA-OPSSPECIFIED7618eca9e350
da29fe34fc64
e8b147f703fa
tests/messaging/test_voice_prompts.py:89
ARBORA-OPS-R899.1
One seam, many modalities
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**One seam, many modalities.** Stage: `arbora/modality/models.py` and `arbora/modality/normalizer.py`. `MediaPart{media_type, data, filename, source}` classifies by MIME type (`modality_of`: audio, image, video, document). `ModalityNormalizer.normalize(text, parts)` returns `NormalizedPrompt{text, attachments, derivations}`. Handlers are registered per modality (`register`); audio is one handler, not a special case, and a vision or document handler plugs in the same way. A part with no handler is kept and named in the text (`on_unsupported="note"`); a prompt left with no text at all refuses `MODALITY_UNSUPPORTED`; `on_unsupported="refuse"` refuses at once. Caller chain: each entry point of `.4`, `.5` and `.7` → `ModalityNormalizer.normalize` → the registered handler. Shape: new package `arbora/modality/`; `default_normalizer` builds the process seam. | Test: `tests/modality/test_modality_seam.py::test_other_modalities_plug_into_the_same_seam` (L1), `tests/modality/test_modality_seam.py::test_text_and_audio_compose_and_the_provider_is_cached` (L1).
requirementARBORA-OPSSPECIFIEDtests/modality/test_modality_seam.py:146
tests/modality/test_modality_seam.py:74
ARBORA-OPS-R899.2
Audio goes to the fleet's speech-to-text capability, found by contract
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Audio goes to the fleet's speech-to-text capability, found by contract.** Stage: `arbora/modality/speech.py::SpeechHandler` and `arbora/modality/fleet_port.py::NativeIntentFleet`. Discovery: `find op=fleet.catalog.search` for `speech-to-text`; a tool qualifies when its input schema takes `artifact_b64`, `digest` and `media_type`, takes no `action`, and names the capability. No server name is hard-coded. The call is `act op=fleet.call` through the in-process intent verbs, so it runs under the current verified session with the same admission and audit as an MCP client. The result is the typed `speech-transcript/1` payload of `TRANSCRIBE-R002.1`. Discovery is cached for five minutes and dropped after a failed call. Caller chain: `ModalityNormalizer.normalize` → `SpeechHandler.derive` → `NativeIntentFleet.search` / `.call` → `runtime.NATIVE_INTENT_TOOLS['find'|'act']` → `invoke` → `handle_fleet_operation` / `handle_fleet_call` in `arbora/api/ops/fleet.py`. Shape: new `arbora/modality/speech.py` (`SpeechHandler`, `is_speech_tool`, `wav_duration_s`) and `arbora/modality/fleet_port.py` (`FleetPort`, `NativeIntentFleet`, `catalog_items`, `find_payload`); it reuses the served intent verbs in `runtime.NATIVE_INTENT_TOOLS` and adds no fleet client. | Test: `tests/modality/test_modality_seam.py::test_audio_is_transcribed_by_the_capability_found_by_contract` (L1), `tests/modality/test_modality_seam.py::test_capability_discovery_is_by_contract_not_server_name` (L1), `tests/modality/test_modality_seam.py::test_native_fleet_uses_the_governed_find_and_act_verbs` (L2).
requirementARBORA-OPSSPECIFIEDtests/modality/test_modality_seam.py:201
tests/modality/test_modality_seam.py:44
tests/modality/test_modality_seam.py:65
ARBORA-OPS-R899.3
Typed refusals and size and duration limits
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Typed refusals and size and duration limits.** Stage: the seam and each transport. Codes: `TRANSCRIPTION_UNAVAILABLE` (no capability in the catalog, catalog refused, or the call failed), `TRANSCRIPTION_REFUSED` (no transcript or empty speech), `MEDIA_TOO_LARGE`, `MEDIA_TOO_LONG`, `MEDIA_UNREADABLE`, `MODALITY_UNSUPPORTED`. Limits: `ARBORA_MEDIA_MAX_BYTES` (default 25 MiB) bounds every part, checked from the declared size before download, while streaming the download, and before any handler; `ARBORA_AUDIO_MAX_DURATION_S` (default 600) bounds WAV length before the call and the reported duration after it. A refusal runs no turn and fabricates no text. Projection: `agents.run` raises `OperationRefused` with `UNAVAILABLE` or `INVALID_ARGUMENT` and `details.modality_refusal`; A2A JSON-RPC answers `-32015` with HTTP 503 or 422; a chat channel gets a short reply naming the code. Caller chain: `arbora/api/ops/agents.py::handle_agent` and `arbora/a2a/application.py::_application_error` map `ModalityRefused` from `arbora/modality/models.py`. Shape: `ModalityRefused` and `ARBORA_CODE` in `arbora/modality/models.py`; the projections reuse `OperationRefused` from `arbora/api/invoke/pipeline.py` and `_error` in `arbora/a2a/application.py`. | Test: `tests/modality/test_modality_seam.py::test_unreachable_or_refusing_capability_is_a_typed_refusal` (L1), `tests/modality/test_modality_seam.py::test_size_and_duration_limits_refuse_before_any_fleet_call` (L1), `tests/modality/test_entry_points.py::test_a2a_jsonrpc_error_names_the_modality_refusal` (L1), `tests/modality/test_entry_points.py::test_agents_run_maps_a_modality_refusal_to_a_typed_operation_refusal` (L1).
requirementARBORA-OPSSPECIFIEDtests/modality/test_entry_points.py:102
tests/modality/test_entry_points.py:118
tests/modality/test_modality_seam.py:105
tests/modality/test_modality_seam.py:117
ARBORA-OPS-R899.4
Chat voice notes and audio attachments
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Chat voice notes and audio attachments.** Stage: messaging intake. `arbora/messaging/planner_handler.py` admits the sender first, then hands a message with attachments to `arbora/messaging/media.py::normalize_inbound`, which downloads each attachment with the backend's own auth header (bounded by `.3`) and normalises it with the bound `prompt_normalizer` host port. The burst turn runs on the normalised text. Telegram attachments now carry `mime_type` and `size_bytes`; Mattermost already did. Unbound port with audio refuses `TRANSCRIPTION_UNAVAILABLE`; an unlisted sender's attachment is never downloaded. Caller chain: `MessagingRouter._dispatch` → `planner_handler` → `normalize_inbound` → `ModalityNormalizer.normalize`; bound by `arbora/host_bindings.py::bind_messaging_ports` with `prompt_normalizer()`. Shape: new `arbora/messaging/media.py` (`normalize_inbound`, `fetch_attachment`, `attachment_media_type`); a `prompt_normalizer` field on `MessagingHostPorts` in `arbora/messaging/host_ports.py`; it reuses `MediaAttachment` and the backends' `auth_header`. | Test: `tests/messaging/test_voice_prompts.py::test_voice_note_turn_runs_on_the_transcript` (L2), `tests/messaging/test_voice_prompts.py::test_voice_note_without_a_transcriber_gets_a_typed_reply` (L2), `tests/messaging/test_voice_prompts.py::test_declared_size_over_the_limit_refuses_before_download` (L1), `tests/messaging/test_voice_prompts.py::test_unlisted_sender_audio_is_never_downloaded` (L2).
requirementARBORA-OPSSPECIFIEDtests/messaging/test_voice_prompts.py:115
tests/messaging/test_voice_prompts.py:144
tests/messaging/test_voice_prompts.py:152
tests/messaging/test_voice_prompts.py:90
ARBORA-OPS-R899.5
A2A, agents.run and the fleet agent accept media parts
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**A2A, agents.run and the fleet agent accept media parts.** Stage: `arbora/a2a/models.py`, `arbora/a2a/service.py`, `arbora/modality/agent_input.py`. `A2AFilePart` takes `A2AInlineMediaFile` (audio, image, video or application MIME types, up to 25 MiB decoded) beside the text-only file; the 64 KiB bound still holds for text files. `A2AService.send_message` normalises media parts before routing and dispatch and replaces the parts with the one normalised text part; `metadata.arboraAttachments` names each kept original (id, digest, type, size, source, derivation). `agents.run` over MCP and HTTP reaches the same service, which is the web and TUI upload path. The SDK A2A application for the fleet agent is mounted on `MediaNormalizingAgent`, which replaces `BinaryContent` media in the prompt history with the seam's text before the model runs. A2A and `agents.run` refuse a part no handler reads with `MODALITY_UNSUPPORTED` (`on_unsupported="refuse"`), so a machine caller never has an attachment ignored. The agent card advertises `audio/*`. Caller chain: `message/send` → `_send_message` → `A2AService.send_message` → `_normalize_media`; `agents.run` → `handle_agent` → `A2AService.send_message`; `/a2a/agent` → fasta2a `AgentWorker.run_task` → `MediaNormalizingAgent.run`. Shape: `A2AInlineMediaFile`, `media_files` and `with_normalized_text` in `arbora/a2a/models.py`; `A2AService.modality` and `_normalize_media` in `arbora/a2a/service.py`; new `arbora/modality/agent_input.py::MediaNormalizingAgent`, mounted by `mount_sdk_a2a` in `arbora/host_bindings.py`. | Test: `tests/modality/test_entry_points.py::test_a2a_audio_part_runs_the_harness_on_the_transcript` (L2), `tests/modality/test_entry_points.py::test_a2a_audio_without_a_capability_refuses_typed_before_dispatch` (L2), `tests/modality/test_entry_points.py::test_a2a_message_model_keeps_text_bounds_and_takes_media` (L1), `tests/modality/test_entry_points.py::test_a2a_refuses_a_part_no_handler_reads` (L2), `tests/modality/test_entry_points.py::test_fleet_agent_history_media_becomes_transcript_text` (L2).
requirementARBORA-OPSSPECIFIEDtests/modality/test_entry_points.py:148
tests/modality/test_entry_points.py:181
tests/modality/test_entry_points.py:243
tests/modality/test_entry_points.py:57
tests/modality/test_entry_points.py:86
ARBORA-OPS-R899.6
The transcript links to its audio
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The transcript links to its audio.** Stage: `arbora/modality/provenance.py`. Each kept original becomes one `MediaAttachment` record `media:<sha256>` (digest, type, modality, size, filename, entry-point source; no bytes). Each derivation becomes one `Transcript` record `transcript:<sha256>` (or `MediaDerivation`) whose `transcribedFrom` names the attachment record, with language, duration and the provider server and tool. Writes are create-if-absent through `create_record`, best effort: a failed write is logged and never drops the prompt. Caller chain: `ModalityNormalizer.normalize` → recorder from `engine_recorder(served_engine)` bound in `arbora/host_bindings.py::prompt_normalizer` → `record_provenance` → `arbora/unique_records.py::create_record`. Shape: new `arbora/modality/provenance.py` (`provenance_records`, `record_provenance`, `engine_recorder`); it reuses `create_record` and `has_record_writer` from `arbora/unique_records.py`. | Test: `tests/modality/test_modality_seam.py::test_provenance_links_the_transcript_to_its_audio` (L1).
requirementARBORA-OPSSPECIFIEDtests/modality/test_modality_seam.py:176
ARBORA-OPS-R899.7
WebUI dictation transcribes through the seam
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**WebUI dictation transcribes through the seam.** Stage: `arbora/webui_host/voice_delegation.py::_transcribe_voice`, the `transcribe_voice` workspace helper, which answered `not_served` before. It now normalises the clip with the process seam with `record=False` (a dictation clip becomes chat-box text, not graph evidence) and returns `{text, language, transcript_id}`; every refusal of `.3` applies. Caller chain: WebUI `POST /voice/transcribe` → `get_helper('transcribe_voice')` → `_transcribe_voice` → `ModalityNormalizer.normalize`. Shape: `_transcribe_voice` in `arbora/webui_host/voice_delegation.py` reuses `prompt_normalizer` from `arbora/host_bindings.py` and `MediaPart`; no new module. | Test: `tests/modality/test_entry_points.py::test_webui_dictation_transcribes_through_the_seam_without_provenance` (L2).
requirementARBORA-OPSSPECIFIEDtests/modality/test_entry_points.py:219
ARBORA-OPS-R900
Agent run status reads the canonical run state
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Agent run status reads the canonical run state.** Subsystem: agent runs. Caller chain: run event handling in `arbora/agent_runs.py` (the status tuple at `:442-447`) and the failed-status check at `:565` read the canonical state. Rule: arbora owns no run machine and no second status vocabulary. The closed state set is the harness run status of `MERISTEM-HARNESS-CYCLE-R084`: `Pending`, `Running`, `Completed`, `Stopped` and `Failed`. `Completed`, `Stopped` and `Failed` are terminal. `Stopped` carries a typed reason. The persisted run record is owned by medulla (`MEDULLA-ORCH-VOCAB-R812`, pending: medulla branch only). The transition function is `meristem/graph/state.py::transition` in meristem; arbora never writes a run status. Illegal transitions are refused by the owner as a typed `TransitionRefused` with `machine`, `from` and `event`. Arbora refuses an event status outside the set with the typed error `UnknownRunStatus` (code `RUN_STATUS_UNKNOWN`, fields `machine` (`agent_run`), `from_state` (the last known status) and `event` (the offending value)), defined in `arbora/agent_runs.py`. Arbora deletes its literal tuple of statuses. The ontology classes belong to the owners, so arbora declares none. Depends: `MERISTEM-HARNESS-CYCLE-R084`, `MEDULLA-ORCH-VOCAB-R811`, `MEDULLA-ORCH-VOCAB-R812` (both pending: medulla branch only). Shape: the changed event handler and result mapper in `arbora/agent_runs.py`, importing the status type of the harness run machine. | Test: `tests/agent_runs/test_run_status_canonical.py::test_status_comes_from_the_canonical_state_and_unknown_is_refused` (L2, planned). `::test_each_canonical_status_is_accepted` (L1, planned) has parameter ids `pending`, `running`, `completed`, `stopped` and `failed`. `::test_no_literal_status_tuple_remains` (L1, planned) is the source search.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R901
The plan lease is one machine with distinct consumed and expired refusals
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The plan lease is one machine with distinct consumed and expired refusals.** Subsystem: preview and confirm. Caller chain: `arbora/api/invoke/plan.py` issue and consume (`:186-191`) -> `_live_lease_refusal` (`:194`) -> `arbora/fleet/plan_confirmation.py` (`answer_elicitation`, `:101`) -> `transition`. Rule: the closed states are `Issued`, `Consumed`, `Executing`, `Done`, `Failed` and `Expired`; `Done`, `Failed` and `Expired` are terminal. The closed events are `consume`, `begin`, `finish_ok`, `finish_err` and `expire`. Guard: `before_hard_expiry`. Transition table, 6 legal edges: `Issued` to `Consumed` on `consume` when `before_hard_expiry`, by the existing compare-and-set; `Consumed` to `Executing` on `begin`; `Executing` to `Done` on `finish_ok`; `Executing` to `Failed` on `finish_err`; `Consumed` to `Failed` on `finish_err`; `Issued` to `Expired` on `expire`. The machine refuses every other pair (24 pairs). A refused `consume` on a non-`Issued` state other than `Expired` returns `PLAN_CONSUMED`, and on `Expired` returns `PLAN_EXPIRED`. The persisted field is the plan lease `status` stored by the engine (read at `plan.py:201`, consumed at `:186`), mapped to `PlanState`; the `_Armed.used` flag (`plan_confirmation.py:49`) is deleted. The engine lease vocabulary for `Executing`, `Done` and `Failed` is pending confirmation with the medulla lease kind. One function, `transition` in `arbora/api/invoke/plan.py`, decides every edge. Other illegal pairs raise `IllegalPlanTransition` with the code `PLAN_TRANSITION_ILLEGAL` and the fields `machine` (`plan_lease`), `from_state` and `event`, defined in `plan.py`; `PLAN_CONSUMED` is added to `arbora/api/errors.py` beside `PLAN_EXPIRED` (`:27`, status map `:55`, JSON-RPC map `:520`). Depends: `ARBORA-OPS-R009`. Shape: `PlanState`, `PlanEvent`, `transition` and the error in `arbora/api/invoke/plan.py`. | Test: `tests/api/test_plan_lease_machine.py::test_legal_edge` (L1, planned), one parameter id per edge: `issued-consume-consumed`, `consumed-begin-executing`, `executing-finish_ok-done`, `executing-finish_err-failed`, `consumed-finish_err-failed`, `issued-expire-expired`. `::test_every_illegal_pair_is_refused` (L1, planned) covers the other 24 pairs. `::test_second_confirm_is_plan_consumed_and_late_confirm_is_plan_expired` (L2, planned) asserts both codes. `::test_served_preview_confirm_runs_through_the_machine` (L3, planned) is the hot-path proof.
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R902
Work item commit uses the medulla state enum and typed refusal end to end
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Work item commit uses the medulla state enum and typed refusal end to end.** Subsystem: work items. Caller chain: `commit_result` (`arbora/work_items.py:285`) and `defer_work_item` (`:324`) call the engine commit. Rule: arbora owns no work item machine. The closed state set is the work item status of `MEDULLA-ORCH-VOCAB-R812` (pending: medulla branch only): `Submitted`, `Ready`, `Leased`, `Running`, `Succeeded`, `Failed`, `Cancelled` and `DeadLetter`. `Succeeded`, `Failed`, `Cancelled` and `DeadLetter` are terminal. The transition function is `WorkItemStatus::apply` in medulla; arbora never writes the status. Arbora passes the status enum, not a string. An engine refusal of an illegal transition reaches the caller as the typed `TransitionRefused` error with `machine`, `from` and `event`. Arbora no longer maps every outcome onto the engine string at `:313`. The result `noop` for an already terminal item stays, derived from the refusal. Arbora declares no ontology classes, because the owner does. Depends: `MEDULLA-ORCH-VOCAB-R812`, `MEDULLA-ORCH-VOCAB-R811` (both pending: medulla branch only). Shape: the changed `commit_result` in `arbora/work_items.py`, using the status type and the refusal type of the medulla work item machine. | Test: `tests/work_items/test_commit_refusal.py::test_illegal_commit_surfaces_the_typed_refusal` (L2, planned). `::test_commit_outcome_maps_to_the_enum` (L1, planned) has parameter ids `succeeded`, `failed`, `cancelled` and `dead_letter`. `::test_terminal_item_commit_is_noop_derived_from_refusal` (L2, planned).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R903
The plan lease machine is described in the ontology
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The plan lease machine is described in the ontology.** Subsystem: preview and confirm, ontology. Caller chain: the ontology pack loader reads `arbora/ontology/state_machines.ttl`, and a check compares it with `PlanState` and `PlanEvent` in `arbora/api/invoke/plan.py`. Rule: the pack file `arbora/ontology/state_machines.ttl` declares the machine `arbora:PlanLeaseMachine`, the state classes `arbora:PlanIssued`, `arbora:PlanConsumed`, `arbora:PlanExecuting`, `arbora:PlanDone`, `arbora:PlanFailed` and `arbora:PlanExpired`, one `arbora:PlanTransition` class per edge of `ARBORA-OPS-R901`, the event classes, the guard class `arbora:BeforeHardExpiry`, and `arbora:PlanTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `Transition`, `Event` and `Guard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class. The file uses no `owl:imports`. The machine class is an instance of `StateMachine`, and each terminal state also extends `TerminalState`. Depends: `MEDULLA-ORCH-VOCAB-R811` (pending: it exists only on the medulla branch for explicit state machines), `ARBORA-OPS-R901`. Shape: the Turtle classes in `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_plan_lease_description.py::test_classes_roll_up_to_the_core_classes` (L2, planned).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R904
Browser graph reads use existing engine-bound operations and query.uql; there is no graph.query and no Cypher text (rollup)
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Browser graph reads use existing engine-bound operations and query.uql; there is no graph.query and no Cypher text (rollup).** Subsystem: served operations for the web interface. Owner ruling (2026-11-07): the host route `POST /graph/query` and the 38 routes that the host answers `unavailable("graph.query")` do not get a generic `graph.query` operation, and no operation accepts Cypher text. Each route maps to one existing operation or to a UQL text sent through `query.uql`. Route map: `GET /graph/nodes` -> `eg.graph.GetNodesByLabel` (scope `node:read`); `GET /graph/relationships` -> `eg.graph.GetEdgesPage` (`edge:read`); `GET /graph/stats` -> `eg.graph.NodeCount`, `eg.graph.EdgeCount` and `eg.graph.Metrics`; `GET /graph/graph3d/clusters` -> `eg.compute.ClusterHierarchyClusters`; `GET /graph/graph3d/expand` -> `eg.compute.ClusterHierarchyExpand`; `GET /graph/graph3d` and `/graph3d/scope` and `/graph3d/refresh` -> `eg.graph.GetSubgraph`; `GET /graph/impact/{symbol}` -> `eg.compute.GetBlastRadius`; `GET /graph/node-types` -> `query.uql` with the aggregate of `MEDULLA-FEDERATED-QUERY-R733`; `GET /graph/search` -> `retrieval.search`; `POST /graph/viz/render` and `/viz/capabilities` -> `eg.ingestion.Viz`; `POST /graph/query` -> `query.uql` with UQL text typed by the user (the REPL becomes a UQL REPL, and the read-only Cypher validator in the host is deleted). The same map applies to `/ontology/*` reads, `/agent-library/*` reads and `/prompts/graph*` reads (their rows are in `OVERSTORY-API-R012.4` and `.7`). The union of commons and tenant graphs is the engine's read behaviour for the caller's scope; the web interface sends no graph name. Children `.1` and `.2`. Caller chain: browser -> `POST /api/v1/ops/{op_id}` -> `invoke` -> the bound handler. Shape: no new Arbora module; this row owns the map and the missing-construct list. Depends: ARBORA-OPS-R018.2, MEDULLA-FEDERATED-QUERY-R733. | Test: Rollup closes when `.1` and `.2` pass. Root test: `tests/api/test_browser_graph_map.py::test_every_mapped_operation_exists_in_the_registry_with_the_scope_named` (L2).
requirementARBORA-OPSSPECIFIED1e770b5318ef
tests/api/test_browser_graph_map.py:55
ARBORA-OPS-R904.1
Graph reads: result shape and degraded graphs
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Graph reads: result shape and degraded graphs.** Stage: response contract. Each operation of R904 answers the engine's result unchanged. When one graph of the union cannot be read, the engine marks it in the result field `degraded_graphs` (array of graph names); Arbora passes it through and does not hide it. A page request carries `limit` (1 to 1000, default 100) and an opaque `cursor`; a response carries `truncated` (boolean) and `next_cursor`. `query.uql` also answers `rows`, `truncated` and `degraded_graphs`. Refusals: `SCOPE_REQUIRED`, `UQL_PARSE_ERROR` with the engine's expected-token list, `BUDGET_EXCEEDED`. Caller chain: `invoke` -> `EgMethod` binding -> result projection in `arbora/api/ops/query_engine.py`. Shape: a projection test over the registry; no new module. Depends: ARBORA-OPS-R904. | Test: `tests/api/test_browser_graph_map.py::test_degraded_graphs_and_truncation_pass_through` and `tests/api/test_browser_graph_map.py::test_uql_parse_error_lists_expected_tokens` (L2).
requirementARBORA-OPSSPECIFIEDtests/api/test_browser_graph_map.py:93
ARBORA-OPS-R904.2
UQL equivalents of the three Cypher callers
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**UQL equivalents of the three Cypher callers.** Stage: consumer text. The three callers (GraphView, TemporalGraphView, CypherReplView) send Cypher today. Each gets a UQL text in `src/lib/arbora-api/uql-views.ts` (overstory) that returns the same columns: nodes `MATCH (:Label) |> LIMIT n`; edges through `TRAVERSE -[:rel]->`; temporal views through `AS OF ts`. A column the UQL form cannot produce today is listed here and becomes the MEDULLA row it names: per-label counts and degrees (`MEDULLA-FEDERATED-QUERY-R733`, aggregate), stable paging (`MEDULLA-FEDERATED-QUERY-R734`, order and skip) and edge rows (`MEDULLA-FEDERATED-QUERY-R735`, edge source). Caller chain: GraphView -> `query.uql`. Shape: a consumer-side table of view names, UQL text and expected columns, checked by a contract test against a recorded engine fixture. Depends: MEDULLA-FEDERATED-QUERY-R733, MEDULLA-FEDERATED-QUERY-R734, MEDULLA-FEDERATED-QUERY-R735. | Test: `tests/api/test_browser_graph_map.py::test_each_view_text_parses_with_the_engine_grammar_and_returns_the_expected_columns` (L3).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R906
Specification documents and knowledge-base articles are read operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Specification documents and knowledge-base articles are read operations.** Subsystem: documents for the web interface. `sdd.documents.read`: params `{kind: constitution|spec|plan|task, id?: string, repository?: string}`; result `{documents: [{id, kind, title, body, path, revision, updated_at}], truncated}`; scope `source:read`; `Effect.READ`. It reads the spec files through the existing `source.tree` and `source.blob` operations of the configured specification repository; it does not read the host disk. The write routes (`POST /sdd/constitution`, `POST /sdd/spec`, `POST /sdd/sync`) retire: specifications change by pull request, so the web interface is read-only for them. `kb.articles.read`: params `{article_id?: string, query?: string, limit?: int}`; result `{articles: [{id, title, summary, body, tags, updated_at}], truncated}`; scope `kb:read`. A list or get is `eg.graph.GetNodesByLabel` with the label `KbArticle`; a query is `retrieval.search` restricted to that label. The routes `/kb/ingest` and `/kb/update` map to `ingest.submissions.create` and `memory.write`; `/kb/health` maps to `ingest.drift.list`. Refusals: `NOT_FOUND`, `SCOPE_REQUIRED`, `UNAVAILABLE` without a configured repository. Caller chain: browser -> `invoke` -> `handle_sdd_documents` in new `arbora/api/ops/documents.py`. Shape: one new module with two handlers, reusing `source.py` ports. Depends: ARBORA-OPS-R904. | Test: `tests/api/test_documents_ops.py::test_sdd_documents_read_through_source_operations`, `tests/api/test_documents_ops.py::test_sdd_never_reads_the_host_disk` and `tests/api/test_documents_ops.py::test_kb_articles_list_get_and_search` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R907
Settings write, model lists and configuration views
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Settings write, model lists and configuration views.** Subsystem: settings for the web interface. `ops.config.set`: params `{key: string, value: json}`; result `{settings, restart_required: bool}`; `Effect.ADMIN`, scope `ops:admin`, console step-up as `ARBORA-OPS-R024.5`; refusal `UNKNOWN_SETTING`, `INVALID_VALUE`, `STEP_UP_REQUIRED`. It serves `PUT /config`, `PUT /config/backend`, `PUT /llm/models` and `PUT /llm/embedding-models` (the model keys are settings). `ops.config` gains the param `view: values|groups|schema|secret_status` (default `values`); `secret_status` returns `{name, present: bool}` only and never a value. `models.list`: params `{kind: chat|embedding}`; result `{models: [{id, label, provider, default: bool}]}`; scope `models:read`, granted to every human session, so the chat model picker works for non-admin users. The handler reads the same setting as `ops.config`. `POST /reload` maps to `ops.config.set` with key `reload` (admin). Caller chain: browser -> `invoke` -> `handle_ops_config_set` in `arbora/api/ops/ops.py`. Shape: one handler, one param, and `models.list` in `arbora/api/ops/models.py`. Depends: ARBORA-OPS-R024.5. | Test: `tests/api/test_ops_config_set.py::test_set_needs_step_up_and_audits`, `tests/api/test_ops_config_set.py::test_secret_status_returns_presence_only` and `tests/api/test_models_list.py::test_non_admin_session_lists_chat_models` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R908
Ontology object sets, actions and edits are served operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Ontology object sets, actions and edits are served operations.** Subsystem: ontology objects. Browser adapter operations that exist: `ontology.classes.list|get` and `ontology.properties.list` (census names). New operations, all scope `kg:read` unless noted. `ontology.objects.search`: `{object_type, filter?: object, limit?, cursor?}` -> `{objects[], truncated, next_cursor}`; compiled to a UQL `MATCH (:Type) WHERE ...` text by the handler. `ontology.objects.search_around`: `{object_ids[], link_type, hops?: 1..3}` -> `{objects[]}` (UQL `TRAVERSE`). `ontology.objects.pivot`: `{object_set_id|object_ids[], link_type}` -> `{objects[]}`. `ontology.objects.aggregate`: `{object_type, group_by[], metrics[{op: count|sum|min|max|avg, field}]}` -> `{groups[]}`; needs `MEDULLA-FEDERATED-QUERY-R733`. `ontology.object_sets.save|list|delete`: `{name, definition}` -> `{id, revision}` (records in the caller's graph, scope `kg:write` for save and delete). `ontology.objects.get`: `{object_id}` -> `{object, links[]}`. `ontology.objects.edit`: `{object_id, changes: object, reason}` -> `{change_id, state}` and `ontology.objects.revert`: `{change_id}` -> `{change_id, state}`, scope `kg:write`, both governed changes (`MEDULLA-IDENTITY-R720`), never a direct write. `ontology.actions.list` -> `{actions[{name, params_schema}]}` and `ontology.actions.apply`: `{action, object_ids[], params}` -> `{results[]}` (`Effect.WRITE`, plan confirmation). `ontology.functions.invoke`: `{function, args}` -> `{result}` through `eg.compute.*` named functions only. `ontology.derive`: `{object_type, expression}` -> `{preview}`. `ontology.document.process`: `{blob_ref}` -> `{job_id}` via `eg.ingestion.EnrichDocument`. `ontology.object_views.get|put`: `{object_type}` -> `{layout}`. Refusals: `NOT_FOUND`, `SCOPE_REQUIRED`, `TRANSITION_REFUSED` for an edit in a terminal change. Caller chain: browser -> `invoke` -> `arbora/api/ops/ontology_objects.py`. Shape: one new module of thin handlers over UQL and existing bindings; each handler is under 60 lines. Depends: ARBORA-OPS-R018.1, MEDULLA-FEDERATED-QUERY-R733, MEDULLA-IDENTITY-R720. | Test: `tests/api/test_ontology_object_ops.py::test_search_compiles_to_uql_and_returns_objects`, `tests/api/test_ontology_object_ops.py::test_edit_and_revert_go_through_governed_change` and `tests/api/test_ontology_object_ops.py::test_apply_action_requires_plan_confirmation` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R909
Chat history operations scoped to the caller
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Chat history operations scoped to the caller.** Subsystem: chats. `chats.list` -> `{chats[{id, title, updated_at}], next_cursor}`; `chats.get`: `{chat_id}` -> `{chat{id, title, messages[], updated_at, revision}}`; `chats.create`: `{title?, messages?}` -> `{chat}`; `chats.update`: `{chat_id, title?, messages?, expected_revision}` -> `{chat}`; `chats.delete`: `{chat_id}` -> `{deleted: true}`. Scope `chats:own`: a row belongs to the verified subject and tenant; the request never names an owner. Storage: the versioned memory files of `ARBORA-OPS-R024.4` under the key `chats/<subject>/<chat_id>`, so the engine key-value store holds the facts and arbora keeps none. A stale `expected_revision` refuses `REVISION_CONFLICT`. Another subject's id answers `NOT_FOUND`, never `FORBIDDEN`. Message body max 256 KiB; list page max 100. Caller chain: browser -> `invoke` -> `handle_chats` in new `arbora/api/ops/chats.py` -> the memory port. Shape: one module, five thin handlers. Depends: ARBORA-OPS-R024.4. | Test: `tests/api/test_chats_ops.py::test_chat_rows_are_scoped_to_the_caller`, `tests/api/test_chats_ops.py::test_stale_revision_is_refused` and `tests/api/test_chats_ops.py::test_other_subject_chat_is_not_found` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R910
Workspace file operations with path-escape refusal
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Workspace file operations with path-escape refusal.** Subsystem: workspace files. `workspace.files.list`: `{path?: string}` -> `{entries[{name, kind, size, modified_at}]}`; `workspace.files.read`: `{path}` -> `{content_base64, size, media_type}`; `workspace.files.write`: `{path, content_base64, expected_modified_at?}` -> `{path, size}`; `workspace.files.delete`: `{path}` -> `{deleted: true}`. Scope `workspace:read` for list and read, `workspace:write` for write and delete (`Effect.WRITE`, idempotent by path and digest). The root is the setting `workspace.root`; a path is resolved with symlinks and must stay under it, else `PATH_ESCAPE`. Limits: file 16 MiB, list 1000 entries. `/upload` maps to `write`, `/download` to `read`, `/config-files` to `list` on the setting `workspace.config_dir`. Caller chain: browser -> `invoke` -> `arbora/api/ops/workspace_files.py`. Shape: one module with `resolve_under_root(root, path)` as the only path function; it reuses `arbora/core/paths`. Depends: ARBORA-OPS-R009. | Test: `tests/api/test_workspace_files.py::test_dotdot_and_symlink_escape_are_refused`, `tests/api/test_workspace_files.py::test_write_conflict_on_stale_modified_at` and `tests/api/test_workspace_files.py::test_size_limit_is_refused` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R911
Atlas source connections and mapping operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Atlas source connections and mapping operations.** Subsystem: Atlas, over the existing `ingest.sources.list|status|sync` and `ingest.submissions.create`. New operations: `ingest.sources.providers.list` -> `{providers[{id, label, auth_kinds}]}`; `ingest.sources.connections.list|get`; `ingest.sources.connections.create`: `{provider, label, settings, credential_ref}` -> `{connection_id, state}`; `ingest.sources.connections.delete`: `{connection_id}`; `ingest.sources.discover`: `{connection_id}` -> `{job_id}`; `ingest.sources.mapping.get`: `{connection_id}` -> `{mapping, state}`; `ingest.sources.mapping.propose`: `{connection_id}` -> `{mapping, state: proposed}`; `ingest.sources.mapping.approve`: `{connection_id, mapping_digest}` -> `{state: approved}`; `ingest.sources.sync.preview`: `{connection_id}` -> `{changes[], counts}`; `ingest.sources.runs.get|cancel`. Credentials are secret references, never values. A mapping is `proposed` then `approved`; approve with a stale digest refuses `MAPPING_CHANGED`; approve is `Effect.ADMIN` with plan confirmation. Scopes: `ingest:read`, `ingest:write`, `ingest:admin` for approve and delete. The connection state is a machine of the connector control plane (`ARBORA-FLEET-R082`), not a flag. Caller chain: browser -> `invoke` -> `arbora/api/ops/atlas.py` -> the ingest port and the connector pack port. Shape: one module; the census names 20 routes, 12 are covered by these 12 operations and 8 by the existing ones. Depends: ARBORA-FLEET-R082. | Test: `tests/api/test_atlas_ops.py::test_mapping_approve_needs_current_digest_and_plan_confirmation`, `tests/api/test_atlas_ops.py::test_credentials_are_references_only` and `tests/api/test_atlas_ops.py::test_discover_returns_a_job_id` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R912
Agent library, prompts and goal operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Agent library, prompts and goal operations.** Subsystem: agent library. The tenant Agent Library is in medulla (`ARBORA-DEPLOY-R601` publishes into it). Operations: `agents.library.list|get`: `{id?, kind?: agent|tool|suggestion}` -> `{items[]}`; `agents.library.create|update`: `{item, expected_revision?}` -> `{item, revision}`; `agents.library.delete`: `{id}`; `agents.library.a2a`: `{id}` -> `{agent_card}`; `agents.library.summary` -> `{counts}` (the config summary). `prompts.list|get|create|update`: `{name|id}`; `prompts.versions`: `{id}` -> `{versions[{version_id, created_at, author}]}`; `prompts.rollback`: `{id, version_id}`; `prompts.diff`: `{id, a, b}` -> `{diff}`. Prompt versions are append-only records; rollback writes a new version that copies the old one. `agents.goals.run|list|iterations|cancel`: `{goal_id}`. A goal is a run of `ARBORA-OPS-R042` family and uses the run state machine, not a flag. Scopes `agents:read`, `agents:write`, `prompts:read`, `prompts:write`, `runs:control`. Refusals: `NOT_FOUND`, `REVISION_CONFLICT`, `SCOPE_REQUIRED`. Caller chain: browser -> `invoke` -> `arbora/api/ops/agent_library.py`, `prompts.py`, `goals.py`. Shape: three modules over the library port, the memory port and the run port. Depends: ARBORA-DEPLOY-R601. | Test: `tests/api/test_agent_library_ops.py::test_create_update_delete_with_revision_conflict`, `tests/api/test_prompt_ops.py::test_rollback_appends_a_version_and_diff_matches` and `tests/api/test_goal_ops.py::test_cancel_goal_uses_the_run_machine` (L2).
requirementARBORA-OPSVERIFIED31a167cd519a
tests/api/test_prompt_ops.py:16
ARBORA-OPS-R913
Fleet management, schedule, maintenance, workflow, code, command and resource operations
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Fleet management, schedule, maintenance, workflow, code, command and resource operations.** Subsystem: operator operations for the web interface. `fleet.servers.register|update|remove` (`{name, config}`, `Effect.ADMIN`, scope `fleet:admin`, plan confirmation) and `fleet.servers.config.get` (`{name}` -> secrets as references); `fleet.skills.toggle` and `fleet.tools.toggle` (`{id, enabled}`) over the existing pin operations; `schedule.tasks.read`: `{from, to}` -> `{entries[], logs[]}` (calendar and logs, scope `ops:read`); `ops.maintenance.status|run` over `eg.graph.Maintain` (`run` is `Effect.ADMIN`); `ingest.pipeline.status|run` as thin names over `ingest.jobs.list|status` and `ingest.submissions.create`; `workflows.list|create|run`: `{workflow_id, inputs}` -> `{run_id}` served through the business-process connector by `fleet.call`, state in the run machine; `code.context.read`: `{action: nav|instances, symbol?}` -> `{items[]}` over `source.*` and the code index; `commands.execute`: `{command, args}` -> `{result}` and `commands.autocomplete`: `{prefix}` -> `{commands[]}` from the registry of served operations only (a command is an operation id; the host has no second list); `resources.list` and `resources.spawn` over `capacity.throttle.status` and `agents.run`. Scopes `fleet:admin`, `ops:read`, `ops:admin`, `workflows:run`, `code:read`. Caller chain: browser -> `invoke` -> `arbora/api/ops/fleet_admin.py`, `schedule.py`, `workflows.py`, `commands.py`. Shape: four modules; every handler delegates and holds no state. Depends: ARBORA-OPS-R904. | Test: `tests/api/test_fleet_admin_ops.py::test_register_server_needs_plan_confirmation_and_hides_secret_values`, `tests/api/test_command_ops.py::test_commands_are_exactly_the_served_operations` and `tests/api/test_workflow_ops.py::test_run_returns_a_run_id_in_the_run_machine` (L2).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R914
Ecosystem widgets and media transcription
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Ecosystem widgets and media transcription.** Subsystem: ecosystem views. `ecosystem.widgets.read`: params `{widget: <a widget name the ecosystem widget registry serves>, params?: object}`; result `{rows[], source, degraded: bool, fetched_at}`; scope `ecosystem:read`. Each widget is a projection class in `arbora/gateway/widgets/` (the package already holds `base.py` and `ollama.py`) that calls its connector through `fleet.call` under the caller's identity and projects rows. `services` reads `fleet.status` and reads `children`, not `servers`. A connector that is down gives `degraded: true` and the cached rows; it does not fail the call. `media.transcribe`: params `{blob_ref|content_base64 (max 25 MiB), language?}`; result `{text, segments[]}`; scope `media:write`; bound to `eg.ingestion.Asr`; the browser uploads the audio as a blob first (`workspace.files.write`) and passes `blob_ref`. Caller chain: browser -> `invoke` -> `handle_widget_read` in `arbora/api/ops/ecosystem.py`. Shape: one op module and one class per widget in the existing package. Depends: ARBORA-OPS-R009. | Test: `tests/api/test_ecosystem_widget_ops.py::test_each_widget_projects_rows_from_its_connector_call`, `tests/api/test_ecosystem_widget_ops.py::test_down_connector_gives_degraded_cached_rows` and `tests/api/test_media_transcribe.py::test_blob_ref_goes_to_asr` (L2). (planned: the named test file does not exist yet)
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R915
Agent presence is served on one channel with a bounded update rate
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**Agent presence is served on one channel with a bounded update rate.** Stage: served operations. Arbora serves agent presence for the tenant's runs through one served operation: a snapshot read, not a stream of per-frame positions. The snapshot interval is explicit: presence is computed at a fixed interval (`presence.snapshot_interval_s`, default 5) and the read returns the last snapshot with its interval and its computed-at time. The update rate is bounded: a consumer polling faster than the interval receives the same snapshot flagged `fresh: false`, not a new computation. Per-frame movement is never durable: the engine stores run-trace facts, not positions at arbitrary times, and interpolation between snapshots is a presentation concern of the consumer, never an arbora or engine fact. Caller chain: `invoke` -> (planned) `arbora/api/ops/presence.py::handle_presence_snapshot` -> the engine run-trace read (`MEDULLA-ORCH-VOCAB-R803`) mapped into the presence shape; over MCP, the `ask` verb reaches the same handler. Shape: one handler and one result model; no position store. Refusals: `UNAVAILABLE` when the engine is not bound; an unknown run or a foreign tenant is a subject-read refusal per the registry caller chain. Writes: none. Depends on: `MEDULLA-ORCH-VOCAB-R803`. | Test (planned): `tests/api/test_presence_ops_served.py::test_presence_serves_one_snapshot_at_a_bounded_interval` (L3: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-OPS-R916
The activity stream is served from run-trace provenance
Definition — ARBORA-OPS / ARBORA-OPS — Hosted API and intent operationsCanonical requirement and verification source
**The activity stream is served from run-trace provenance.** Stage: served operations. Arbora serves the tenant's agent activity as the engine's run-trace facts, not as a synthesized feed. The stream is a cursor-paged read over run-trace step records (`MEDULLA-ORCH-VOCAB-R803`); each entry carries the run, the step, the request, argument and result digests, and the provenance of the trace. An event the engine has not recorded is not served, and arbora invents no activity. Caller chain: `invoke` -> (planned) `arbora/api/ops/activity.py::handle_activity_stream` -> the engine run-trace read; over MCP, the `ask` verb reaches the same handler. The read is tenant-scoped through the caller's verified session; a caller without run read access on the tenant's runs gets a subject-read refusal per the registry caller chain. Shape: one handler (planned) `arbora/api/ops/activity.py::handle_activity_stream` mapping run-trace step records into the activity result model; cursor pagination reuses the registry cursor envelope. Refusals: `UNAVAILABLE` when the engine is not bound; an unknown or foreign run is a subject-read refusal; a malformed cursor is `INVALID_ARGUMENT`. Depends on: `MEDULLA-ORCH-VOCAB-R803`. | Test (planned): `tests/api/test_activity_ops_served.py::test_activity_serves_run_trace_facts_with_cursor_and_refuses_unrecorded` (L3: HTTP and MCP).
requirementARBORA-OPSSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY
ARBORA-IDENTITY — ACCESS — identity, authorization, and access operations
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R001
Elevation request, approve and revoke operations on every surface
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Elevation request, approve and revoke operations on every surface.** Subsystem: access. Caller chain: the four `access.elevation.*` operations in `arbora/api/ops/access.py`, on the MCP, HTTP, A2A and CONSOLE surfaces. Next call: `arbora/access/service.py::request_elevation`, `approve_elevation`, `revoke_elevation`. Next call: the engine `Method::RbacElevation` (medulla `method_04.rs`). Arbora decides nothing: the engine access service holds policy and approval rules. The web console, the A2A boundary and chat tooling reach the same operations through the registry. No surface has its own path. Refusals pass through unchanged: self-approval and delegated approval return the engine `ACCESS_DENIED`. Scopes are the registry scopes of each operation. Writes: engine elevation ledger only. Depends: `MEDULLA-IDENTITY-R023.13`. Shape: `arbora/api/ops/access.py` declares the request models (`arbora/api/ops/access.py::ElevationAsk` (line 63)) and the operation table (`arbora/api/ops/access.py::operations` (line 151)); `arbora/access/service.py` holds the handlers (`arbora/access/service.py::request_elevation` (line 64), `arbora/access/service.py::approve_elevation` (line 79), `arbora/access/service.py::revoke_elevation` (line 74)) that forward to the engine elevation service through `_elevations`; no new module. | Test: `tests/api/test_access_ops.py::test_elevation_ops_reach_engine_on_http_and_mcp` (L3) and `::test_self_and_delegated_approval_denied` (L3), both through the registry `invoke` with a loopback medulla engine.
requirementARBORA-IDENTITYLANDED4a3410afa6de
ARBORA-IDENTITY-R002
Domain scopes consume the generated scope registry
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Domain scopes consume the generated scope registry.** Arbora's own domain scopes use the shared scope classes (user, domain, service-only, approver, admin). They stay consistent with the one generated scope registry, not a separate list. | Verified by a registry property test asserting every scope Arbora advertises matches the generated registry's name and class.
requirementARBORA-IDENTITYSPECIFIED9e7f6499d96f
a2212420d6c6
d497f656144a
tests/api/test_domain_scopes.py:47
ARBORA-IDENTITY-R002.1
Arbora owns the scope registry read from the engine
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Arbora owns the scope registry read from the engine.** `arbora/security/scope_registry.py` renders its scopes from the `scopes` of the engine's run-time method catalog, `medulla.engine.method_catalog()` (`MEDULLA-CONTRACT-R057`). It reads no `scopes.json` file. The session allowlist is exactly the registry. Child slice of `ARBORA-IDENTITY-R002`. Caller chain: every request enters `arbora/security/request_identity.py` (imports `SESSION_SCOPES`, line 89) and `arbora/api/policy/domain_scopes.py` (imports the module) -> `arbora/security/scope_registry.py` constants `arbora/security/scope_registry.py::SCOPE_CLASSES` (line 15) and `SESSION_SCOPES`; the module is generated by `scripts/gen_scope_registry.py` from `medulla.engine.method_catalog()`, and `ARBORA-IDENTITY-R002.2` replaces that source with the served handshake scopes. Shape: `arbora/security/scope_registry.py` keeps the one scope-to-class map and the session allowlist derived from it; `arbora/api/policy/domain_scopes.py` stays the consumer. | `tests/security/test_scope_registry.py::test_the_generated_module_is_the_installed_eg_registry` compares the module with the installed engine's catalog scopes.
requirementARBORA-IDENTITYVERIFIED9e7f6499d96f
a78249aec3fd
tests/security/test_scope_registry.py:26
tests/security/test_scope_registry.py:35
tests/security/test_scope_registry.py:45
ARBORA-IDENTITY-R002.2
The scope registry is ingested from the handshake
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The scope registry is ingested from the handshake.** The one scope registry of `ARBORA-IDENTITY-R002` is the scope set the engine and each connector serve in their handshake (`SCION-CONNECTOR-CONTROL-R045.12`, `MEDULLA-CONTRACT-R054`), held in arbora's operation registry. No module is rendered from a packaged `scopes.json` and none is committed; this replaces the file source of `ARBORA-IDENTITY-R002.1`. A served scope whose name is already registered with a different class refuses onboarding of that server. Child slice of `ARBORA-IDENTITY-R002`. Caller chain: server onboarding in `arbora/fleet` (the handshake that registers an engine or connector, planned hook) -> new `register_served_scopes` in `arbora/security/scope_registry.py` -> `SCOPE_CLASSES` and `SESSION_SCOPES` read by `arbora/security/request_identity.py` and `arbora/api/policy/domain_scopes.py` (planned). Shape: replace the generated constants in `arbora/security/scope_registry.py` with a registry object filled from the handshake scope list (name -> class), refusing a class conflict with `OnboardingRefused`; delete `scripts/gen_scope_registry.py` and reuse the existing `tests/security/test_scope_registry.py` fixtures. | A test onboards a fixture engine and connector and asserts the session allowlist equals the union of served scopes with their classes. A test refuses a class conflict. A source scan finds no `scopes.json` read. Test: `tests/security/test_scope_registry.py::test_handshake_scopes_form_the_session_allowlist` (planned, listed in test-spec.md).
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R003
Persistent local token issuer with secret-backed key
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Persistent local token issuer with secret-backed key.** Subsystem: identity. Caller chain: host bootstrap → `arbora/identity/issuer.py::LocalIssuer` (with `IssuerSettings`) → routes in `arbora/api/http/protocol_routes.py` (`/.well-known/openid-configuration`, `/.well-known/jwks.json`). The signing key is stored as a secret reference, never as inline material: config key `identity.issuer.key_ref` in `~/.config/arbora/arbora.yml`. Rotation overlap is config `identity.issuer.rotation_overlap_s`, default 86,400, range [60, 604,800], unit seconds. During overlap the JWKS lists both keys; after it only the new key. The token exchange accepts an external IdP token or a local authenticator result. It returns a token with a stable `sub` for the same principal. Refusal: `ISSUER_KEY_UNAVAILABLE` when the reference cannot be read, and the issuer then refuses to start. Writes: key version record in the identity store. Depends: `MEDULLA-IDENTITY-R001`. Shape: `arbora/identity/issuer.py` holds `arbora/identity/issuer.py::IssuerSettings` (line 23), `arbora/identity/issuer.py::LocalIssuer` (line 103) with `_sign` and `issue`, and the claim builders `claims_for` and `identity_claims`; discovery and JWKS are served from the `/.well-known/*` entries of `PROTOCOL_ROUTES` in `arbora/api/http/protocol_routes.py`; the secret reference reuses the `SigningKeyStore` protocol of `arbora/identity/ports.py`. | Test: `tests/identity/test_issuer.py::test_discovery_jwks_stable_subject_and_bounded_overlap_rotation` (L3) over HTTP.
requirementARBORA-IDENTITYLANDED9a8cbf921748
c4c9cb1fac8f
ARBORA-IDENTITY-R004
Tokenless local serving (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Tokenless local serving (rollup).** Subsystem: admission, mode `none`. Entry: host bootstrap with `ARBORA_AUTH_MODE=none`, then `arbora/security/anonymous.py::validate_startup`. Children `.1` to `.9` deliver it, and `ARBORA-IDENTITY-R004.3` fixes the serving rules. Requests keep anonymous provenance and pass ordinary operation policy and scope checks. Arbora refuses every non-loopback bind, every browser Origin header and every credential header. The unsecured-mode indicators in `.2` are mandatory. The engine side is `MEDULLA-IDENTITY-R003.1`. No token-minting bootstrap exists. Depends: `ARBORA-IDENTITY-R004.3`, `MEDULLA-IDENTITY-R003.1`. | Root journey: `tests/identity/test_anonymous_none_mode_served.py::test_none_mode_serves_loopback_only` (L3). It sends HTTP and MCP requests and asserts loopback success plus each refusal. All children pass.
requirementARBORA-IDENTITYSPECIFIED4a3410afa6de
ARBORA-IDENTITY-R004.1
Typed bootstrap-principal model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed bootstrap-principal model.** `LoopbackBootstrapPrincipal` refuses construction for a non-loopback bind host, always. No exposure acknowledgment escape exists. It also refuses an empty bind host. Delete `arbora/identity/bootstrap.py::resolve_bootstrap_access`. Caller chain: host bootstrap in none mode (`ARBORA_AUTH_MODE=none`) -> `arbora/security/anonymous.py::validate_startup` -> the bind host is checked as loopback; `LoopbackBootstrapPrincipal` in `arbora/identity/bootstrap.py` has no production caller today and is the typed model that `validate_startup` will construct (planned wiring). Shape: `arbora/identity/bootstrap.py::LoopbackBootstrapPrincipal` (line 18) with `__post_init__` refusing a non-loopback or empty host; delete `arbora/identity/bootstrap.py::resolve_bootstrap_access` (line 39) and the exposure-acknowledgment path; reuse the loopback check of `arbora/security/anonymous.py`. | Verified by refusal unit tests in `tests/identity/test_bootstrap_mfa_admin_console_models.py`. A non-loopback host refuses in every case.
requirementARBORA-IDENTITYVERIFIED2763cd78b6bc
cd652df8f6c8
d497f656144a
tests/identity/test_bootstrap_mfa_admin_console_models.py:15
tests/identity/test_bootstrap_mfa_admin_console_models.py:28
ARBORA-IDENTITY-R004.2
Unsecured-mode indicators
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Unsecured-mode indicators.** Subsystem: admission, mode `none`. Caller chain: MCP `initialize` → the `instructions=` argument built in `arbora/mcp_server/runtime.py` → `arbora/security/anonymous.py::indicator`. Caller chain: served `ops.doctor` → `arbora/deployment/doctor.py::_check_auth` → `indicator`. Shape: add `indicator() -> dict[str, str]` to `arbora/security/anonymous.py`. Delete `arbora/identity/bootstrap.py::resolve_bootstrap_access` and `unsecured_mode_banner`. `anonymous.validate_request` already owns the Host and Origin checks. Rule: `indicator` returns keys `mode` (`anonymous_local`), `principal` (`anonymous`), `banner` and `doctor_check`. The banner text is `Arbora is running in unsecured loopback mode.` `doctor_check` is `fail` when `ARBORA_AUTH_NONE_EXPOSE` is set and `warn` otherwise. `indicator` returns an empty dict outside none mode. Refusals: none, the read has no failure path. Writes: none. Config (Fixed safety): env `ARBORA_AUTH_MODE`, `ARBORA_AUTH_NONE_EXPOSE`. Depends: `ARBORA-IDENTITY-R004.3`. | Test: `tests/identity/test_anonymous_none_mode_served.py::test_indicators_appear_in_initialize_and_doctor` (L3). It asserts the banner in the MCP initialize reply and the `ops.doctor` result, and its absence in authenticated mode.
requirementARBORA-IDENTITYLANDED4a3410afa6de
ARBORA-IDENTITY-R004.3
Explicit tokenless local mode
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Explicit tokenless local mode.** `ARBORA_AUTH_MODE=none` explicitly selects anonymous local serving, with `--auth-type none`. Unset mode retains existing credential requirements. Anonymous actors/callers remain `authenticated=False` and use the Medulla-owned anonymous transport without secrets or signed envelopes. They never impersonate a human or verified service. Literal loopback bind/peer/Host, no browser Origin, and no conflicting credential configuration are mandatory. The matching EG none-mode store remains isolated from authenticated stores. Caller chain: `ARBORA_AUTH_MODE=none` (`runtime_config.arbora_auth_mode` in `arbora/core/settings.py`) or CLI `--auth-type none` (`create_mcp_parser` in `arbora/mcp_server/backing/server_factory.py`) → `validate_startup` in `arbora/security/anonymous.py`, called from `arbora/mcp_server/server.py`; per request `validate_request` in `anonymous.py`, called from the ASGI middleware in `arbora/security/request_identity.py` and from `_credential_kind` in `arbora/api/http/auth.py` → `anonymous.session()`. Shape: `enabled()`, `loopback()`, `validate_startup(args)`, `validate_request(scope)` and `session()` in `arbora/security/anonymous.py`; the module-level active mode refuses a change in a running process, and the session actor is `ActorContext(actor_type=ANONYMOUS, authenticated=False, authority_mode="none")`. | Test: `tests/security/test_anonymous_mode.py::test_nonliteral_or_remote_bind_refused`, `tests/security/test_anonymous_mode.py::test_credentials_and_browser_origins_refused` and `tests/test_real_anonymous_boot.py::test_real_tokenless_read_and_http_admission`. Real tokenless MCP/REST/A2A requests reach real EG reads/writes and a simulated model. Omitted mode, remote bind, forged Host, Origin, credentials, and cross-mode store reuse refuse. Existing authenticated tests still pass.
requirementARBORA-IDENTITYVERIFIED08385f86486e
2763cd78b6bc
450b841e85a2
4faeec842add
5e42e0ab38ce
tests/mcp_server/test_current_plan_reader.py:215
tests/mcp_server/test_source_reader_anonymous.py:17
tests/security/test_anonymous_discovery.py:28
tests/security/test_anonymous_mode.py:12
tests/test_real_anonymous_boot.py:25
ARBORA-IDENTITY-R005
Local account lifecycle with server-side sessions (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Local account lifecycle with server-side sessions (rollup).** Subsystem: admission, mode `local`. Entry: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response`. Routes: `/auth/login`, `/auth/logout`, `/auth/register`, `/auth/password/change`, `/auth/password/reset/request`, `/auth/password/reset/confirm`. Sessions are opaque server-side tokens held by the engine `Identity` method. Cookie requests need the CSRF token from `arbora/identity/browser.py::csrf_token_for`. Login and privilege change issue a new session token and revoke the old one. Every failed login returns status 401 with `{"error": "Invalid credentials"}`, whether the account is unknown or the password is wrong. Children: `.1` the record consumer (`BrowserAuthApplication.login` and `logout`) and `.2` the remaining ceremonies and served proof. Depends: `MEDULLA-TYPED-PACKS-R085.1`. | Root journey: `tests/identity/test_account_lifecycle_served.py::test_register_login_change_reset_logout` (L3). Children `.1` and `.2` pass.
requirementARBORA-IDENTITYSPECIFIED9a8cbf921748
ARBORA-IDENTITY-R005.1
Consume exact persisted session facts
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Consume exact persisted session facts.** The existing identity composition binds an injected trusted engine client to SessionAuthority. Use the existing session resolve operation and its atomic optional session_record projection under `MEDULLA-IDENTITY-R708`. Correlate persisted principal and tenant with the strict resolution. Retain the earlier expiry bound. Refuse missing evidence, bootstrap, incomplete MFA, expiry or malformed records. Do not issue credentials, infer session references, cache authority or add a second resolver. Caller chain: host start admission (`arbora/agent_host/host_start.py`, `arbora/agent_host/start_admission.py`) and the MCP served invocation (`arbora/mcp_server/served_invocation.py`) -> `SessionAuthority.resolve_session` of `arbora/identity/ports.py` -> `arbora/identity/composition.py::build_engine_identity_ports` (the `_CheckedRuntime` wrapper) -> engine session resolve with the `session_record` projection parsed by `SessionRecord` in `arbora/identity/engine.py`. Shape: `arbora/identity/engine.py::SessionRecord` (line 94) and `Resolution` in `arbora/identity/engine.py` carry the strict correlation; `arbora/identity/composition.py::build_engine_identity_ports` (line 61) is the one binding point, and no second resolver is added. | Focused transport and parser tests cover exact correlation and refusals. Real persisted producer and admitted startup evidence remain required for served qualification. Test: `tests/identity/test_engine_session_authority.py::test_consumer_refuses_unqualified_records`
requirementARBORA-IDENTITYVERIFIED6e1cda364e4d
753803845a64
82a546bed3d3
tests/identity/test_engine_session_authority.py:13
ARBORA-IDENTITY-R005.2
Account ceremonies and throttling
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Account ceremonies and throttling.** Subsystem: admission, mode `local`. Caller chain: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` → new handlers `_register`, `_password_change`, `_reset_request`, `_reset_confirm` in `arbora/identity/browser_runtime.py`. These replace the current refusal of unsupported ceremonies. Each handler calls the engine `Identity` method and keeps no account store in Arbora. Rule: login throttling counts failures per (peer prefix, username digest). Config in `~/.config/arbora/config.json`: `identity.throttle.login_attempts` default 5, range [1, 100], unit attempts; `identity.throttle.window_seconds` default 300, range [10, 3600], unit seconds. A throttled login returns the same 401 body as a wrong password, after a delay-free response path. Password change and reset revoke every other session of that user. Refusals: `CSRF_INVALID` (403), `PASSWORD_POLICY_FAILED` (422), `RESET_TOKEN_INVALID` (400, one body for unknown, expired and used tokens). Evidence: one audit event per ceremony with user id digest, no password and no token text. Writes: engine `Identity` calls only. Depends: `ARBORA-IDENTITY-R005.1`, `ARBORA-IDENTITY-R016.2`. Shape: add the handlers `_register`, `_password_change`, `_reset_request`, `_reset_confirm` to `arbora/identity/browser_runtime.py::BrowserAuthApplication` (line 73) next to `_login` and `_logout`, a small throttle helper in the same module keyed by `_peer_prefix` and a username digest, and extend the allowed-path set in `_response`; each handler calls the existing engine `Identity` client built in `arbora/identity/browser_composition.py::_IdentityClient`. | Test: `tests/identity/test_account_lifecycle_served.py::test_register_login_change_reset_logout` (L3). It asserts CSRF refusal, rotation on login and privilege change, uniform errors, throttling and revocation. A browser run `tests/qualification/browser/browser_login.mjs` adds L6.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R006
Optional MFA with TOTP, WebAuthn and recovery codes (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Optional MFA with TOTP, WebAuthn and recovery codes (rollup).** Subsystem: admission, mode `local`. Entry: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response`. The ceremonies are TOTP, WebAuthn and one-use recovery codes. Enrollment is optional by default. An administrator can require MFA for a configured group through the engine group policy. Children: `.1` the model (`arbora/identity/mfa.py`) and `.2` the ceremonies. Depends: `ARBORA-IDENTITY-R005.2`. | Root journey: `tests/identity/test_mfa_ceremonies_served.py::test_totp_webauthn_recovery_and_enforced_enrollment` (L3). Children pass.
requirementARBORA-IDENTITYLANDED4a3410afa6de
a78ebe49afc9
cd652df8f6c8
ARBORA-IDENTITY-R006.1
Typed MFA enrollment model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed MFA enrollment model.** `MfaEnrollment` refuses an unknown MFA method and refuses a required-group enrollment with zero methods. Caller chain: `/auth/mfa/*` handlers of `BrowserAuthApplication._response` (`arbora/identity/browser_runtime.py::BrowserAuthApplication` (line 73), planned in `ARBORA-IDENTITY-R006.2`) -> `arbora/identity/mfa.py::MfaEnrollment`; the model has no production caller yet. Shape: `arbora/identity/mfa.py::MfaEnrollment` (line 17) frozen dataclass whose `__post_init__` refuses an unknown method and a required-group enrollment with no methods; reused by `enforce_group_requirement` in the same module. | Verified by refusal unit tests in `tests/identity/test_bootstrap_mfa_admin_console_models.py`. Test: `tests/identity/test_bootstrap_mfa_admin_console_models.py::test_mfa_enrollment_refuses_unknown_method`
requirementARBORA-IDENTITYVERIFIEDa78ebe49afc9
cd652df8f6c8
tests/identity/test_bootstrap_mfa_admin_console_models.py:34
tests/identity/test_bootstrap_mfa_admin_console_models.py:40
tests/identity/test_bootstrap_mfa_admin_console_models.py:46
ARBORA-IDENTITY-R006.2
MFA ceremonies
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**MFA ceremonies.** Subsystem: admission, mode `local`. Caller chain: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` → `/auth/mfa/totp/verify`, `/auth/mfa/webauthn/finish`, `/auth/mfa/recovery` handlers → `arbora/identity/mfa.py::verify_totp_step`, `consume_recovery_code`, `enforce_group_requirement`. Rule: TOTP uses 30 s steps, 6 digits and a window of 1 step either side. A used step is rejected for the rest of its window. WebAuthn checks the origin against `identity.public_origin` (rendered from `PublicIngressProfile.public_origin`), verifies the signature and requires a strictly rising signature counter. Recovery codes are 10 codes of 10 characters per user, each valid once, stored as hashes by the engine. A login for a member of a required group stays incomplete until MFA passes, and the interim cookie grants nothing. Refusals: `MFA_CODE_INVALID`, `MFA_CODE_REPLAYED`, `WEBAUTHN_ORIGIN_MISMATCH`, `WEBAUTHN_COUNTER_REGRESSED`, `RECOVERY_CODE_USED`, `MFA_ENROLLMENT_REQUIRED`. Evidence: audit event per ceremony with method and outcome. Writes: engine `Identity` calls only. Depends: `ARBORA-IDENTITY-R005.2`, `ARBORA-INGRESS-R001.2`. Shape: new handlers for `/auth/mfa/totp/verify`, `/auth/mfa/webauthn/finish` and `/auth/mfa/recovery` in `arbora/identity/browser_runtime.py::BrowserAuthApplication` (line 73), calling the existing pure helpers `arbora/identity/mfa.py::verify_totp_step` (line 36), `arbora/identity/mfa.py::consume_recovery_code` (line 52) and `arbora/identity/mfa.py::enforce_group_requirement` (line 65); secrets and hashes stay in the engine. | Test: `tests/identity/test_mfa_ceremonies_served.py::test_totp_webauthn_recovery_and_enforced_enrollment` (L3). It asserts valid and replayed TOTP codes, WebAuthn origin and counter checks, single-use recovery codes and enforced enrollment.
requirementARBORA-IDENTITYLANDED4a3410afa6de
ARBORA-IDENTITY-R007
Admin console tabs with mapping dry-run and mode wizard (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Admin console tabs with mapping dry-run and mode wizard (rollup).** Subsystem: admission, console. Entry: the console identity tabs for users, sessions, providers and policy, served through the `identity.*` operations of `ARBORA-IDENTITY-R018`. A dry-run view previews the roles that a provider mapping rule assigns, and a guided wizard switches the authentication mode. Children: `.1` the tab model (`arbora/identity/admin_console.py`) and `.2` the behaviour. Depends: `ARBORA-IDENTITY-R018`. | Root journey: `tests/identity/test_admin_console_served.py::test_tabs_dry_run_and_mode_transition` (L3). Children pass. The console UI proof belongs to the console repository and consumes these operations.
requirementARBORA-IDENTITYLANDED4a3410afa6de
a78ebe49afc9
cd652df8f6c8
ARBORA-IDENTITY-R007.1
Typed admin-console tab model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed admin-console tab model.** `AdminConsoleTab` refuses a name outside the fixed `users`/`sessions`/`providers`/`policy` set. Caller chain: console operations `identity.providers.mapping_dry_run` and `identity.mode.transition_step` (planned, `ARBORA-IDENTITY-R018.4` and `.5`) -> `arbora/identity/admin_console.py::AdminConsoleTab`; the model has no production caller yet. Shape: `arbora/identity/admin_console.py::AdminConsoleTab` (line 17) frozen dataclass whose `__post_init__` accepts only `users`, `sessions`, `providers` and `policy`; consumed by `dry_run_mapping` and `transition_mode_step` in the same module. | Verified by refusal unit tests in `tests/identity/test_bootstrap_mfa_admin_console_models.py`. Test: `tests/identity/test_bootstrap_mfa_admin_console_models.py::test_admin_console_tab_refuses_unknown_name`
requirementARBORA-IDENTITYVERIFIEDa78ebe49afc9
cd652df8f6c8
tests/identity/test_bootstrap_mfa_admin_console_models.py:52
tests/identity/test_bootstrap_mfa_admin_console_models.py:57
ARBORA-IDENTITY-R007.2
Mapping dry-run and mode-transition behaviour
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Mapping dry-run and mode-transition behaviour.** Subsystem: admission, console. Caller chain: operations `identity.providers.mapping_dry_run` and `identity.mode.transition_step` (`ARBORA-IDENTITY-R018.4` and `.5`) → `arbora/identity/admin_console.py::dry_run_mapping`, `transition_mode_step`. Rule: the dry run evaluates the ordered rules of `arbora/identity/oidc.py::select_mapping_rule` against sample claims. It returns the roles and the matched rule index. It writes nothing. The wizard has fixed steps in order: `plan`, `backup_confirmed`, `link_migration_dry_run`, `transition`, `verify`. A step needs the previous step's receipt. The transition step requires zero ownership changes in the dry run. Refusals: `MAPPING_RULE_INVALID`, `STEP_OUT_OF_ORDER`, `OWNERSHIP_CHANGES_PRESENT`. Evidence: audit event per step. Writes: the transition step calls the engine mode compare-and-set of `MEDULLA-IDENTITY-R003`. Depends: `ARBORA-IDENTITY-R018.4`, `ARBORA-IDENTITY-R018.5`, `MEDULLA-IDENTITY-R003`. Shape: extend `arbora/identity/admin_console.py::dry_run_mapping` (line 29) to call `select_mapping_rule` of `arbora/identity/oidc.py` and return the roles with the matched rule index, and `arbora/identity/admin_console.py::transition_mode_step` (line 48) to enforce the fixed step order with per-step receipts; the two operations are registered in a new `arbora/api/ops/identity.py` following the pattern of `arbora/api/ops/access.py::operations`. | Test: `tests/identity/test_admin_console_served.py::test_tabs_dry_run_and_mode_transition` (L3). It asserts the dry-run roles, the zero-write dry run, the step order and each refusal.
requirementARBORA-IDENTITYLANDED4a3410afa6de
ARBORA-IDENTITY-R008
API keys and service accounts replace static MCP tokens
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**API keys and service accounts replace static MCP tokens.** Arbora issues expiring API keys and service accounts in place of static MCP tokens. It intersects a key's effective scopes with its current owner's scopes on every use. It rejects approver-class scopes on keys. It denies a revoked or expired key immediately, with no static-token compatibility path. | Verified by an API-key contract test asserting scope intersection at use time. It also asserts immediate denial of a revoked, expired, or approver-scoped key.
requirementARBORA-IDENTITYVERIFIED8b0005ee65dd
d45ad779b80c
e74110bb69b5
tests/identity/test_api_key_grant.py:20
tests/identity/test_api_key_grant.py:26
tests/identity/test_api_key_grant.py:9
tests/identity/test_api_key_use_time.py:22
tests/identity/test_api_key_use_time.py:31
ARBORA-IDENTITY-R009
Multi-provider OIDC with mapping rules and JIT policy (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Multi-provider OIDC with mapping rules and JIT policy (rollup).** Subsystem: admission, mode `external`. Entry: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` for `/auth/oidc/{idp_id}/login` and `/auth/oidc/{idp_id}/callback`. Arbora authenticates through more than one provider. Each flow checks PKCE, state and nonce. Ordered mapping rules assign roles. Just-in-time user creation is allowed or denied per provider. A preset covers `Keycloak`. Existing identity links migrate idempotently, and logout sends an id token hint where the provider supports it. Children: `.2` the flow, delivered by `.2.1` to `.2.3`. Live probe: `ARBORA-IDENTITY-R024`. Depends: `MEDULLA-IDENTITY-R001`. | Root journey: `tests/identity/test_oidc_callback_served.py::test_pkce_state_nonce_mapping_and_hinted_logout` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIED4a3410afa6de
e74110bb69b5
ARBORA-IDENTITY-R010
LDAPS bind with nested group sync (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**LDAPS bind with nested group sync (rollup).** Subsystem: admission, mode `external`. Entry: scheduled job `identity.directory_sync` registered at host bootstrap. Arbora binds to a directory over LDAPS and escapes search filters. It resolves nested groups with a bounded depth and deprovisions disabled accounts. Children: `.2` delivered by `.2.1` to `.2.3` with the live probe in `.2.4`. Depends: `MEDULLA-IDENTITY-R001`. | Root journey: `tests/identity/test_directory_sync_served.py::test_scheduled_sync_deprovisions_disabled_account` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIEDe74110bb69b5
ARBORA-IDENTITY-R008.1
Typed API-key grant model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed API-key grant model.** `ApiKeyGrant` refuses an approver-class scope and refuses an empty owner principal id. Caller chain: MCP and HTTP credential admission (`arbora/api/mcp/caller.py`, `arbora/api/http/auth.py`) -> API-key lookup (planned) -> `arbora/identity/api_keys.py::ApiKeyGrant`; the grant model has no production caller yet. Shape: `arbora/identity/api_keys.py::ApiKeyGrant` (line 19) frozen dataclass whose `__post_init__` refuses approver-class scopes and an empty owner or key id; the approver set `_APPROVER_SCOPES` is reused by `effective_scopes` in the same module. | Verified by refusal unit tests in `tests/identity/test_api_key_grant.py`. Test: `tests/identity/test_api_key_grant.py::test_api_key_refuses_every_approver_class_scope`
requirementARBORA-IDENTITYVERIFIED8b0005ee65dd
tests/identity/test_api_key_grant.py:20
tests/identity/test_api_key_grant.py:26
tests/identity/test_api_key_grant.py:9
ARBORA-IDENTITY-R008.2
Scope intersection and revocation
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Scope intersection and revocation.** Intersect effective scopes with the owner's current scopes at use time; deny a revoked or expired key immediately. Caller chain: MCP and HTTP credential admission (`arbora/api/mcp/caller.py`, `arbora/api/http/auth.py`) -> API-key use path (planned) -> `arbora/identity/api_keys.py::effective_scopes`; no production caller yet. Shape: `arbora/identity/api_keys.py::effective_scopes` (line 39) intersects `grant.scopes` with the owner's current scopes, removes approver scopes and raises `IdentityUnavailable` for a revoked or expired key; reuse it unchanged at the admission seam. | An API-key contract test asserts scope intersection at use time. It also asserts immediate denial of a revoked, expired, or approver-scoped key. Test: `tests/identity/test_api_key_use_time.py::test_scopes_are_intersected_with_current_owner_scopes`
requirementARBORA-IDENTITYVERIFIEDd45ad779b80c
tests/identity/test_api_key_use_time.py:22
tests/identity/test_api_key_use_time.py:31
tests/identity/test_api_key_use_time.py:39
tests/identity/test_api_key_use_time.py:49
ARBORA-IDENTITY-R009.1
Typed OIDC mapping-rule model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed OIDC mapping-rule model.** `OidcMappingRule` refuses an unknown JIT policy and refuses a negative rule order. Caller chain: OIDC callback handler `_oidc_callback` of `BrowserAuthApplication` (planned, `ARBORA-IDENTITY-R009.2.3`) -> `arbora/identity/oidc.py::select_mapping_rule` over `OidcMappingRule` records; the model has no production caller yet. Shape: `arbora/identity/oidc.py::OidcMappingRule` (line 23) frozen dataclass whose `__post_init__` refuses an unknown JIT policy and a negative or non-integer order; consumed by `select_mapping_rule` in the same module. | Verified by refusal unit tests in `tests/identity/test_api_keys_oidc_ldap_models.py`. Test: `tests/identity/test_oidc_mapping_rule.py::test_rule_refuses_unknown_jit_policy`
requirementARBORA-IDENTITYVERIFIED6c3a92eb849a
tests/identity/test_oidc_mapping_rule.py:23
tests/identity/test_oidc_mapping_rule.py:29
tests/identity/test_oidc_mapping_rule.py:36
tests/identity/test_oidc_mapping_rule.py:43
ARBORA-IDENTITY-R009.2
OIDC authentication flow (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**OIDC authentication flow (rollup).** Subsystem: admission, mode `external`. Entry: `/auth/oidc/{idp_id}/login` and `/callback`. Children: `.2.1` ordered rule evaluation, `.2.2` ID-token validation, `.2.3` callback wiring. The live provider probe is `ARBORA-IDENTITY-R024`, which absorbs the former `.2.4`. | Root journey: `tests/identity/test_oidc_callback_served.py::test_pkce_state_nonce_mapping_and_hinted_logout` (L3). Children `.2.1` to `.2.3` pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R009.2.1
Ordered claim-to-rule evaluation
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Ordered claim-to-rule evaluation.** `select_mapping_rule` returns the lowest-order matching `OidcMappingRule` for a provider and refuses no match, duplicate order, or malformed match. Caller chain: OIDC callback handler `_oidc_callback` (planned, `ARBORA-IDENTITY-R009.2.3`) and the console operation `identity.providers.mapping_dry_run` (planned) -> `arbora/identity/oidc.py::select_mapping_rule`; no production caller yet. Shape: `arbora/identity/oidc.py::select_mapping_rule` (line 63) with the private `_claim_matches`; returns the lowest-order rule of the provider and raises `IdentityUnavailable` for no match, a duplicate order or a malformed match. | Verified by unit tests in `tests/identity/test_oidc_rule_selection.py`. Test: `tests/identity/test_oidc_rule_selection.py::test_lowest_order_matching_rule_wins`
requirementARBORA-IDENTITYVERIFIED0714a7bf6f8e
tests/identity/test_oidc_rule_selection.py:17
tests/identity/test_oidc_rule_selection.py:24
tests/identity/test_oidc_rule_selection.py:30
tests/identity/test_oidc_rule_selection.py:37
tests/identity/test_oidc_rule_selection.py:43
ARBORA-IDENTITY-R009.2.2
ID-token validation inputs and typed refusal
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**ID-token validation inputs and typed refusal.** Pure PKCE/state/nonce/audience/expiry checks over decoded token claims, refusing any mismatch. Caller chain: OIDC callback handler `_oidc_callback` (planned, `ARBORA-IDENTITY-R009.2.3`) -> `arbora/identity/oidc.py::check_id_token_claims`; no production caller yet. Shape: `arbora/identity/oidc.py::check_id_token_claims` (line 102) with `_check_audience` and `_check_expiry`, raising `OidcTokenRefused` with an `OidcRefusalReason`; pure over decoded claims, no network. | Verified by refusal unit tests. Test: `tests/identity/test_oidc_id_token_claims.py::test_wrong_or_missing_audience_refused`
requirementARBORA-IDENTITYVERIFIED4ecc19a9f4e8
tests/identity/test_oidc_id_token_claims.py:41
tests/identity/test_oidc_id_token_claims.py:47
tests/identity/test_oidc_id_token_claims.py:52
tests/identity/test_oidc_id_token_claims.py:58
tests/identity/test_oidc_id_token_claims.py:66
ARBORA-IDENTITY-R009.2.3
OIDC callback wiring
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**OIDC callback wiring.** Subsystem: admission, mode `external`. Caller chain: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` → `_oidc_login` and `_oidc_callback` handlers → `arbora/identity/oidc.py::check_id_token_claims`, `select_mapping_rule`. Rule: login creates a random 64-character PKCE verifier, an S256 challenge, a state and a nonce. The server holds them for 600 s under the browser session id. The callback exchanges the code and validates the ID token claims. It selects the first matching rule, then applies the provider's JIT policy `create` or `deny`. An existing identity link migrates once. The logout handler adds `id_token_hint` and `post_logout_redirect_uri` from the stored provider metadata. Config in `~/.config/arbora/config.json`: `identity.oidc.providers[].{id, issuer, client_id, secret_ref, jit, rules}`. Secrets use `env://` or `openbao://` references only. Refusals: `OIDC_STATE_MISMATCH`, `OIDC_NONCE_MISMATCH`, `OIDC_TOKEN_INVALID`, `OIDC_JIT_DENIED`, `OIDC_NO_RULE_MATCH`. Evidence: audit event with provider id, matched rule index and outcome. Writes: engine `Identity` calls for the link and the session. Depends: `ARBORA-IDENTITY-R009.2.1`, `ARBORA-IDENTITY-R009.2.2`, `MEDULLA-IDENTITY-R001`. Shape: add `_oidc_login` and `_oidc_callback` handlers to `arbora/identity/browser_runtime.py::BrowserAuthApplication` (line 73) (state held 600 s under the browser session id), reuse `check_id_token_claims` and `select_mapping_rule` of `arbora/identity/oidc.py`, and read provider settings from `identity.oidc.providers`. | Test: `tests/identity/test_oidc_callback_served.py::test_pkce_state_nonce_mapping_and_hinted_logout` (L3). A mock issuer drives each refusal code, the idempotent link migration and the hinted logout.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R010.1
Typed LDAPS bind-config model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed LDAPS bind-config model.** `LdapBindConfig` refuses a non-`ldaps` scheme and refuses an invalid port. Caller chain: scheduled job `identity.directory_sync` (planned, `ARBORA-IDENTITY-R010.2.3.2`) and the LDAP login path -> `arbora/identity/ldap.py::bind_directory` over `LdapBindConfig`; no production caller yet. Shape: `arbora/identity/ldap.py::LdapBindConfig` (line 17) frozen dataclass whose `__post_init__` refuses a non-`ldaps` scheme and an invalid port; consumed by `DirectoryPort.bind` and `bind_directory`. | Verified by refusal unit tests in `tests/identity/test_api_keys_oidc_ldap_models.py`. Test: `tests/identity/test_ldap_bind_config.py::test_non_ldaps_scheme_is_refused`
requirementARBORA-IDENTITYVERIFIED02d2a6e84ec7
tests/identity/test_ldap_bind_config.py:11
tests/identity/test_ldap_bind_config.py:18
tests/identity/test_ldap_bind_config.py:25
ARBORA-IDENTITY-R010.2
Directory bind and group sync (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Directory bind and group sync (rollup).** Subsystem: admission, mode `external`. Entry: the scheduled job of `.2.3.2`. Children: `.2.1` bind, `.2.2` filter escaping and role mapping, `.2.3` nested resolution and scheduled sync, `.2.4` live probe. Code: `arbora/identity/ldap.py` (`bind_directory`, `escape_filter_value`, `map_groups_to_roles`, `plan_directory_sync`). | Root journey: `tests/identity/test_directory_sync_served.py::test_scheduled_sync_deprovisions_disabled_account` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIED9fc4eae0f299
ARBORA-IDENTITY-R010.2.1
Group-DN-to-role mapping evaluation
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Group-DN-to-role mapping evaluation.** `map_groups_to_roles()` maps a directory user's group DNs (DN-normalized, case-insensitive) to roles through an explicit mapping. It refuses with `IdentityUnavailable` when no group matches. Caller chain: LDAP login and scheduled sync (planned, `ARBORA-IDENTITY-R010.2.3.2`) -> `arbora/identity/ldap.py::map_groups_to_roles`; no production caller yet. Shape: `arbora/identity/ldap.py::map_groups_to_roles` (line 51) using `_normalize_dn` for case-insensitive DN comparison; raises `IdentityUnavailable` when no group matches. | Verified by unit tests in `tests/identity/test_ldap_group_roles.py`. Test: `tests/identity/test_ldap_group_roles.py::test_matching_groups_union_their_roles`
requirementARBORA-IDENTITYVERIFIED9fc4eae0f299
tests/identity/test_ldap_group_roles.py:13
tests/identity/test_ldap_group_roles.py:19
tests/identity/test_ldap_group_roles.py:25
tests/identity/test_ldap_group_roles.py:32
ARBORA-IDENTITY-R010.2.2
Bind through an injected directory port
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bind through an injected directory port.** Bind and search via an injected directory port with typed `IdentityUnavailable` refusal when the directory is unavailable, plus search-filter escaping. Caller chain: LDAP login and scheduled sync (planned, `ARBORA-IDENTITY-R010.2.3.2`) -> `arbora/identity/ldap.py::bind_directory` -> injected `DirectoryPort`; no production caller yet. Shape: `arbora/identity/ldap.py::bind_directory` (line 84) over the `arbora/identity/ldap.py::DirectoryPort` (line 69) protocol, with `escape_filter_value` for RFC 4515 escaping; the concrete LDAP client is injected, none lives in this module. | Verified by unit tests using a fake directory port. Test: `tests/identity/test_ldap_bind.py::test_bind_goes_through_port`
requirementARBORA-IDENTITYVERIFIED57c4aff42c64
tests/identity/test_ldap_bind.py:22
tests/identity/test_ldap_bind.py:29
tests/identity/test_ldap_bind.py:35
tests/identity/test_ldap_bind.py:41
ARBORA-IDENTITY-R010.2.3
Scheduled group sync (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Scheduled group sync (rollup).** Subsystem: admission, mode `external`. Children: `.2.3.1` bounded nested-group resolution in `plan_directory_sync`, and `.2.3.2` the scheduled apply. Rule: nesting depth stops at `identity.ldap.max_depth` (default 8, range [1, 20], unit levels). A cycle ends the walk without error. Depends: `ARBORA-IDENTITY-R010.2.2`. | Root journey: `tests/identity/test_directory_sync_served.py::test_scheduled_sync_deprovisions_disabled_account` (L3). Both children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R010.2.3.1
Pure sync plan
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Pure sync plan.** `plan_directory_sync()` turns a directory snapshot (users with group DNs and a disabled flag) into a typed `SyncPlan` of role assignments per user and users to deprovision, listing enabled users with no mapped role as unmapped, and refuses an empty snapshot with `IdentityUnavailable`. Caller chain: scheduled job `identity.directory_sync` (planned, `ARBORA-IDENTITY-R010.2.3.2`) -> new `run_sync` in `arbora/identity/directory_sync.py` -> `arbora/identity/ldap.py::plan_directory_sync`; no production caller yet. Shape: `arbora/identity/ldap.py::plan_directory_sync` (line 117) over `DirectoryUser` records returning a `SyncPlan`; pure, reuses `map_groups_to_roles`. | Verified by unit tests in `tests/identity/test_ldap_sync_plan.py`. Test: `tests/identity/test_ldap_sync_plan.py::test_plan_assigns_roles_and_deprovisions_disabled`
requirementARBORA-IDENTITYVERIFIED937d3788413d
tests/identity/test_ldap_sync_plan.py:12
tests/identity/test_ldap_sync_plan.py:27
ARBORA-IDENTITY-R010.2.3.2
Scheduled directory sync apply
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Scheduled directory sync apply.** Subsystem: admission, mode `external`. Caller chain: host bootstrap registers job `identity.directory_sync` in the scheduler of `arbora/control_plane`. Next call: new `arbora/identity/directory_sync.py::run_sync`. Next call: `ldap.plan_directory_sync`. Next call: the identity port of `arbora/identity/ports.py`. Rule: the job runs every `identity.ldap.sync_interval_seconds` (default 900, range [60, 86400], unit seconds). Apply order: create, update, then deprovision. A disabled directory account loses its sessions and its role set through the engine, and keeps owned data. A bind failure skips the run and keeps the prior state. A plan that deprovisions more than `identity.ldap.max_deprovision_fraction` of users (default 0.2, range [0, 1]) refuses. Refusals: `DIRECTORY_BIND_FAILED`, `DEPROVISION_FRACTION_EXCEEDED`. Evidence: one audit event per run with counts. Writes: engine `RegisterIdentity` and `RbacAdmin` calls through the identity port. The engine `RegisterIdentity` replaces the role set, so the plan carries the full intended set. Depends: `ARBORA-IDENTITY-R010.2.3.1`. Shape: new `arbora/identity/directory_sync.py::run_sync(ports, directory, config)` that binds with `bind_directory`, builds the plan with `plan_directory_sync`, applies create, update and deprovision through the identity port, and enforces `identity.ldap.max_deprovision_fraction`; registered as a job by the scheduler in `arbora/control_plane`. | Test: `tests/identity/test_directory_sync_served.py::test_scheduled_sync_deprovisions_disabled_account` (L3). A fake TLS directory and a recorded engine assert the deprovision, the fraction refusal and the bind-failure skip.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R010.2.4
Live directory probe
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Live directory probe.** Subsystem: admission, release qualification. Caller chain: `tests/qualification/identity/test_live_ldaps.py` runs `directory_sync.run_sync` against the deployed LDAPS directory with a dedicated test OU. Rule: the probe creates a user and a nested group, then runs one sync and checks the role set. It disables the user, runs again and checks deprovisioning. It deletes its fixtures. Credentials come from `openbao://` references. The probe prints no credentials. Depends: `ARBORA-IDENTITY-R010.2.3.2`. Shape: new qualification test module `tests/qualification/identity/test_live_ldaps.py` using the fixture style of the existing `tests/qualification/` modules, calling `directory_sync.run_sync` with `openbao://` credential references; no production code. | Test: `tests/qualification/identity/test_live_ldaps.py::test_live_directory_sync_round_trip` (L6). It asserts the role set and the deprovision against the live directory.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R011
SCIM 2.0 provisioning server (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SCIM 2.0 provisioning server (rollup).** Subsystem: admission, mode `external`. Entry: HTTP `/scim/v2/Users` and `/scim/v2/Groups` (protocol route in `arbora/api/http/protocol_routes.py`). Arbora serves SCIM 2.0 behind a provider-specific service credential. It provisions and deprovisions users and groups. Deprovisioning keeps owned data. Children: `.2` delivered by `.2.1` to `.2.4`. Depends: `ARBORA-IDENTITY-R018`. | Root journey: `tests/identity/test_scim_served.py::test_create_update_patch_deactivate_and_foreign_token` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIED117ad5b56bc6
ARBORA-IDENTITY-R012
Native SAML service provider (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Native SAML service provider (rollup).** Subsystem: admission, mode `external`. Entry: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` for `/auth/saml/{idp_id}/login` and `/auth/saml/{idp_id}/acs`. Arbora is a SAML 2.0 service provider. It accepts an assertion only when four checks pass. The checks are the configured certificate signature, audience and recipient match, current validity window, and no replayed assertion id. A SAML sign-in resolves to the same stable principal and narrowed scopes as every other login method. Brokering through OIDC remains an alternative. Children: `.2` delivered by `.2.1` to `.2.4`. Depends: `MEDULLA-IDENTITY-R001`. | Root journey: `tests/identity/test_saml_acs_served.py::test_signed_assertion_yields_principal_and_each_attack_is_refused` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIED117ad5b56bc6
ARBORA-IDENTITY-R011.1
Typed SCIM service-credential model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed SCIM service-credential model.** `ScimServiceCredential` refuses an empty provider id and exposes `authorizes()` refusing a mismatched provider. Caller chain: SCIM requests on `/scim/v2` (`PROTOCOL_ROUTES` in `arbora/api/http/protocol_routes.py`, route app planned in `ARBORA-IDENTITY-R011.2.4`) -> `arbora/identity/scim.py::check_scim_credential` over `ScimServiceCredential`; no production caller yet. Shape: `arbora/identity/scim.py::ScimServiceCredential` (line 17) frozen dataclass with `authorizes(requested_provider_id)` and an `__post_init__` refusing an empty provider id. | Verified by refusal unit tests in `tests/identity/test_scim_saml_models.py`. Test: `tests/identity/test_scim_saml_models.py::test_scim_credential_refuses_mismatched_provider`
requirementARBORA-IDENTITYVERIFIED95e2a2ed3519
tests/identity/test_scim_credential.py:11
tests/identity/test_scim_credential.py:17
tests/identity/test_scim_credential.py:23
tests/identity/test_scim_credential.py:31
ARBORA-IDENTITY-R011.2
SCIM server surface (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SCIM server surface (rollup).** Subsystem: admission, mode `external`. Entry: `/scim/v2/*`. Children: `.2.1` credential, `.2.2` user model, `.2.3` handlers in `arbora/identity/scim.py` (`scim_create_user`, `scim_patch_user`, `scim_deactivate_user`), `.2.4` route registration. The flows are create, update, patch and deactivate. Deactivation never deletes owned data. | Root journey: `tests/identity/test_scim_served.py::test_create_update_patch_deactivate_and_foreign_token` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R011.2.1
Typed SCIM User resource model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed SCIM User resource model.** `ScimUser` validates a SCIM 2.0 User payload (schema URN, non-empty userName, boolean active) and refuses a malformed one. Caller chain: SCIM `Users` routes (planned, `ARBORA-IDENTITY-R011.2.4`) -> `arbora/identity/scim.py::scim_create_user` and `scim_patch_user` -> `ScimUser.from_payload`; no production caller yet. Shape: `arbora/identity/scim.py::ScimUser` (line 38) frozen dataclass with `from_payload` validating the schema URN, userName and the boolean `active`. | Verified by refusal unit tests in `tests/identity/test_scim_user.py`. Test: `tests/identity/test_scim_user.py::test_scim_user_refuses_missing_schema`
requirementARBORA-IDENTITYVERIFIEDe92d812eb39d
tests/identity/test_scim_user.py:15
tests/identity/test_scim_user.py:21
tests/identity/test_scim_user.py:26
tests/identity/test_scim_user.py:32
tests/identity/test_scim_user.py:40
ARBORA-IDENTITY-R011.2.2
SCIM credential check
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SCIM credential check.** Gate every SCIM request on `ScimServiceCredential.authorizes` and refuse a token scoped to a different provider. Caller chain: every SCIM route (planned, `ARBORA-IDENTITY-R011.2.4`) -> `arbora/identity/scim.py::check_scim_credential`; no production caller yet. Shape: `arbora/identity/scim.py::check_scim_credential` (line 77) raising `ScimCredentialRefused` for a missing, unknown or wrong-provider credential; reuses `ScimServiceCredential.authorizes`. | Verified by a cross-provider rejection unit test. Test: `tests/identity/test_scim_credential_check.py::test_wrong_provider_credential_refused`
requirementARBORA-IDENTITYVERIFIED966dc25b5493
tests/identity/test_scim_credential_check.py:17
tests/identity/test_scim_credential_check.py:22
tests/identity/test_scim_credential_check.py:29
tests/identity/test_scim_credential_check.py:35
ARBORA-IDENTITY-R011.2.3
SCIM create/patch/deactivate handlers
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SCIM create/patch/deactivate handlers.** Handlers create, patch and deactivate users through an injected identity port; deactivation never deletes owned data. Caller chain: SCIM `Users` routes (planned, `ARBORA-IDENTITY-R011.2.4`) -> `arbora/identity/scim.py::scim_create_user`, `scim_patch_user`, `scim_deactivate_user` -> injected `ScimIdentityPort`; no production caller yet. Shape: `arbora/identity/scim.py::scim_create_user` (line 114), `arbora/identity/scim.py::scim_patch_user` (line 122) and `arbora/identity/scim.py::scim_deactivate_user` (line 130) over the `ScimIdentityPort` protocol; `_require_port` refuses a missing port, and deactivation calls only `deactivate_user`. | Verified by a SCIM contract test over a fake identity port. Test: `tests/identity/test_scim_handlers.py::test_deactivate_calls_port`
requirementARBORA-IDENTITYVERIFIEDe848425636e4
tests/identity/test_scim_handlers.py:33
tests/identity/test_scim_handlers.py:40
tests/identity/test_scim_handlers.py:47
tests/identity/test_scim_handlers.py:54
tests/identity/test_scim_handlers.py:64
ARBORA-IDENTITY-R011.2.4
SCIM route registration
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SCIM route registration.** Subsystem: admission, mode `external`. Caller chain: `arbora/api/http/app.py::create_api_application` mounts new `arbora/identity/scim_routes.py::scim_app(ports)` at `/scim/v2`. The path is already declared in `PROTOCOL_ROUTES`. Rule: routes the SCIM `Users` resource: `POST` on the collection, and `PUT`, `PATCH` and `DELETE` on one user by id (deactivate) call `scim_create_user`, `scim_update_user`, `scim_patch_user`, `scim_deactivate_user`. Each request passes `check_scim_credential` first. The credential binds one provider id, and a token for another provider returns 403. Config in `~/.config/arbora/config.json`: `identity.scim.providers[].{id, token_ref}` with `env://` or `openbao://` references. Refusals: `SCIM_CREDENTIAL_INVALID` (401), `SCIM_PROVIDER_MISMATCH` (403), `SCIM_USER_INVALID` (400). Responses use the SCIM error schema. Evidence: audit event per call with provider id and user id digest. Writes: engine `RegisterIdentity` calls through `ScimIdentityPort`. Depends: `ARBORA-IDENTITY-R011.2.3`. Shape: new `arbora/identity/scim_routes.py::scim_app(ports)` Starlette app mounted by `arbora/api/http/app.py::create_api_application` (line 58) at the `PROTOCOL_ROUTES` path `/scim/v2`, calling the existing handlers of `arbora/identity/scim.py` after `check_scim_credential`. | Test: `tests/identity/test_scim_served.py::test_create_update_patch_deactivate_and_foreign_token` (L3). It calls the mounted routes and asserts each flow, each refusal and kept owned data.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R012.1
Typed SAML service-provider model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed SAML service-provider model.** `SamlServiceProvider` refuses a non-URL ACS endpoint and refuses a missing IdP certificate. Caller chain: SAML sign-in handler `_saml_acs` of `BrowserAuthApplication` (planned, `ARBORA-IDENTITY-R012.2.3.2`) -> `arbora/identity/saml.py::SamlServiceProvider`; no production caller yet. Shape: `arbora/identity/saml.py::SamlServiceProvider` (line 20) frozen dataclass whose `__post_init__` refuses a non-URL ACS endpoint and a missing IdP certificate; its certificate is passed to `verify_assertion` in the same module. | Verified by refusal unit tests in `tests/identity/test_saml_models.py`. Test: `tests/identity/test_saml_models.py::test_saml_service_provider_accepts_valid_config`
requirementARBORA-IDENTITYVERIFIED66b447b6f3f3
tests/identity/test_saml_models.py:11
tests/identity/test_saml_models.py:21
tests/identity/test_saml_models.py:29
ARBORA-IDENTITY-R012.2
SAML assertion verification and sign-in (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SAML assertion verification and sign-in (rollup).** Subsystem: admission, mode `external`. Entry: `/auth/saml/{idp_id}/acs`. Children: `.2.1` signature (`verify_assertion`), `.2.2` audience, recipient and window (`check_assertion_conditions`), `.2.3` replay and sign-in wiring, `.2.4` live probe. Code: `arbora/identity/saml.py`. | Root journey: `tests/identity/test_saml_acs_served.py::test_signed_assertion_yields_principal_and_each_attack_is_refused` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R012.2.1
Typed parsed-assertion model and condition checks
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Typed parsed-assertion model and condition checks.** `ParsedSamlAssertion` refuses malformed claims, and `check_assertion_conditions()` refuses a wrong audience, wrong recipient, not-yet-valid or expired assertion with a typed `SamlRefusalReason`. Caller chain: `_saml_acs` handler (planned, `ARBORA-IDENTITY-R012.2.3.2`) -> `arbora/identity/saml.py::verify_assertion` -> `check_assertion_conditions`; no production caller yet. Shape: `arbora/identity/saml.py::ParsedSamlAssertion` (line 66) and `arbora/identity/saml.py::check_assertion_conditions` (line 102) raising `SamlAssertionRefused` with a `SamlRefusalReason`; helpers `_require_text` and `_require_aware` validate the fields. | Verified by refusal unit tests in `tests/identity/test_saml_assertion_conditions.py`. Test: `tests/identity/test_saml_assertion_conditions.py::test_valid_assertion_passes`
requirementARBORA-IDENTITYVERIFIEDfdbaebdb795a
tests/identity/test_saml_assertion_conditions.py:37
tests/identity/test_saml_assertion_conditions.py:42
tests/identity/test_saml_assertion_conditions.py:64
tests/identity/test_saml_assertion_conditions.py:74
tests/identity/test_saml_assertion_conditions.py:89
ARBORA-IDENTITY-R012.2.2
Signature verification through an injected verifier port
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Signature verification through an injected verifier port.** Define a `SamlSignatureVerifier` port and refuse unsigned, wrongly signed and signature-wrapped assertions; no crypto or XML implementation lives in arbora. Caller chain: `_saml_acs` handler (planned, `ARBORA-IDENTITY-R012.2.3.2`) -> `arbora/identity/saml.py::verify_assertion` -> injected `SamlSignatureVerifier`; no production caller yet. Shape: `arbora/identity/saml.py::SamlSignatureVerifier` (line 128) protocol and `arbora/identity/saml.py::verify_assertion` (line 136), which refuses an absent verifier and an invalid signature before the condition check; the XML/crypto implementation is injected, none lives in arbora. | Verified by unit tests with a fake verifier port covering unsigned, wrongly signed and wrapped assertions. Test: `tests/identity/test_saml_signature_verification.py::test_absent_verifier_is_refused`
requirementARBORA-IDENTITYVERIFIED2eaa6baaabc5
tests/identity/test_saml_signature_verification.py:47
tests/identity/test_saml_signature_verification.py:54
tests/identity/test_saml_signature_verification.py:63
ARBORA-IDENTITY-R012.2.3
SAML replay check and sign-in wiring (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SAML replay check and sign-in wiring (rollup).** Subsystem: admission, mode `external`. Children: `.2.3.1` replay check through `check_assertion_replay` with an engine-backed `SamlReplayStore`, and `.2.3.2` the sign-in handler. The store keeps each assertion id until the assertion expiry plus 300 s. Depends: `ARBORA-IDENTITY-R012.2.2`. | Root journey: `tests/identity/test_saml_acs_served.py::test_signed_assertion_yields_principal_and_each_attack_is_refused` (L3). Both children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R012.2.3.1
Replay check through a seen-assertion-id store port
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Replay check through a seen-assertion-id store port.** Define a `SamlReplayStore` `Protocol` and `check_assertion_replay`, which, after `verify_assertion`, refuses a repeated `assertion_id` with the typed reason `REPLAYED`. Caller chain: `_saml_acs` handler (planned, `ARBORA-IDENTITY-R012.2.3.2`) -> `arbora/identity/saml.py::check_assertion_replay` -> injected `SamlReplayStore`; no production caller yet. Shape: `arbora/identity/saml.py::SamlReplayStore` (line 156) protocol (`register(assertion_id, expires_at)`) and `arbora/identity/saml.py::check_assertion_replay` (line 164), which fails closed on a missing store and raises `SamlAssertionRefused` with reason `REPLAYED`. | Unit tests use an in-memory fake store. They accept a first assertion and refuse a repeated assertion ID with `REPLAYED`. Test: `tests/identity/test_saml_replay.py::test_first_assertion_is_accepted_and_recorded`
requirementARBORA-IDENTITYVERIFIED7f5cd8d1fe7d
tests/identity/test_saml_replay.py:41
tests/identity/test_saml_replay.py:48
tests/identity/test_saml_replay.py:57
tests/identity/test_saml_replay.py:64
ARBORA-IDENTITY-R012.2.3.2
SAML sign-in handler
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SAML sign-in handler.** Subsystem: admission, mode `external`. Caller chain: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` → new `_saml_acs` handler in `arbora/identity/browser_runtime.py`. The handler calls `saml.verify_assertion`, `check_assertion_conditions` and `check_assertion_replay`. Rule: the handler applies the four checks in this order: signature, conditions, replay, mapping. It rejects an assertion with `SAML_SIGNATURE_WRAPPING` in two cases. The cases are more than one `Signature` element, or a signed element that is not the one read. An accepted assertion resolves to the stable principal through the provider's mapping rules. It then issues a session with narrowed scopes like every other login. Config in `~/.config/arbora/config.json`: `identity.saml.providers[].{id, entity_id, acs_url, idp_certificate_ref, rules}`. Refusals: `SAML_UNSIGNED`, `SAML_SIGNATURE_INVALID`, `SAML_SIGNATURE_WRAPPING`, `SAML_AUDIENCE_MISMATCH`, `SAML_EXPIRED`, `SAML_REPLAYED`. The public body is the uniform 401. Evidence: audit event with provider id, assertion id digest and outcome. Writes: engine `Identity` calls for the replay entry and the session. Depends: `ARBORA-IDENTITY-R012.2.3.1`, `ARBORA-IDENTITY-R005.2`. Shape: add `_saml_acs` to `arbora/identity/browser_runtime.py::BrowserAuthApplication` (line 73), applying `verify_assertion`, `check_assertion_conditions`, `check_assertion_replay` of `arbora/identity/saml.py` and then `select_mapping_rule` of `arbora/identity/oidc.py`; the injected verifier and replay store are built in `arbora/identity/browser_composition.py::build_browser_boundary`. | Test: `tests/identity/test_saml_acs_served.py::test_signed_assertion_yields_principal_and_each_attack_is_refused` (L3). It asserts the stable principal and each refusal code.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R012.2.4
Live SAML provider sign-in probe
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Live SAML provider sign-in probe.** Subsystem: admission, release qualification. Caller chain: the committed probe `scripts/identity_probe.py --protocol saml` (shared with `ARBORA-IDENTITY-R024`) signs in through a real SAML provider realm. Rule: it checks `/auth/session` for the expected principal and role. Output holds no cookie, assertion or credential. Depends: `ARBORA-IDENTITY-R012.2.3.2`, `ARBORA-IDENTITY-R024`. Shape: new `tests/qualification/identity/test_live_saml.py` plus a `--protocol saml` option on the committed `scripts/identity_probe.py` (owned by `ARBORA-IDENTITY-R024`); no production code. | Test: `tests/qualification/identity/test_live_saml.py::test_live_saml_sign_in` (L6). It asserts the authenticated session against the deployed provider.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R013
Identity CLI commands and doctor diagnostics (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Identity CLI commands and doctor diagnostics (rollup).** Subsystem: operator tooling. Entry: console script `arbora-identity` (new `[project.scripts]` entry in `pyproject.toml` → `arbora/identity/cli.py::main`) and `setup-config doctor`. Commands: `claim`, `link-claim`, `transition`, `reset-admin`, `rotate`. Defaults come from the `setup-config` profile (`arbora/deployment/profile_guard.py`). Children: `.1` CLI skeleton with `claim` and `link-claim`, `.2` `transition`, `reset-admin` and `rotate`, `.3` doctor diagnostics. The CLI prompts for passwords and codes and never accepts them as arguments. Depends: `MEDULLA-IDENTITY-R003`. | Root journey: `tests/identity/test_identity_cli.py::test_each_command_returns_typed_result` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIED4a3410afa6de
ARBORA-IDENTITY-R014
Shared RBAC decision oracle across identity modes
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Shared RBAC decision oracle across identity modes.** Subsystem: admission test oracle. Caller: the served `access.check` operation (`arbora/api/ops/access.py`) over HTTP and MCP, in modes `none`, `local` and `external`. Rule: `tests/identity/oracle_table.py` holds one decision table of principal × scope × action × resource rows, at least 40 rows. Every mode must return the same allow or deny and the same reason code for each principal. The claims digest must match too (SHA-256 over canonical claim JSON, 64 lowercase hex). The external mode uses mock OIDC and LDAP providers. A full mode round trip `none → local → external → none` through `MEDULLA-IDENTITY-R003` repeats the table. Refusals: the table includes denials with codes `SCOPE_MISSING`, `RESOURCE_FORBIDDEN`, `TENANT_MISMATCH`. Writes: the transitions only. The mode-transition mechanism of the round trip is `MEDULLA-IDENTITY-R003.7` and the operation `identity.mode_transition`. Depends: `MEDULLA-DURABLE-KERNEL-R026`, `MEDULLA-IDENTITY-R003`. | Test: `tests/identity/test_rbac_oracle_served.py::test_decisions_identical_across_modes_and_round_trip` (L3). It asserts equal outcomes, codes and digests in all three modes and after the round trip.
requirementARBORA-IDENTITYSPECIFIED4a3410afa6de
ARBORA-IDENTITY-R015
Identity operations documentation and cutover runbook
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Identity operations documentation and cutover runbook.** Subsystem: documentation. Document: `docs/identity.md` and `arbora/skills/arbora-deployment/references/identity-and-access.md`. No runtime caller exists. `ops.doctor` messages cite the document sections. Rule: the runbook moves a deployment between modes with these ordered steps: backup, doctor, dry-run, transition, browser probe, audit export. The verification step runs `scripts/identity_probe.py` of `ARBORA-IDENTITY-R024`. Every command, environment name and configuration key in the document must exist in code. Depends: `ARBORA-IDENTITY-R013`, `ARBORA-IDENTITY-R024`. Caller chain: no runtime caller; `arbora/deployment/doctor.py::_check_auth` (reached from the served `ops.doctor`) cites the document sections in its messages, and the document is read by operators and by `tests/docs/test_identity_runbook.py` (planned). Shape: new `docs/identity.md` and the reference `arbora/skills/arbora-deployment/references/identity-and-access.md`; the planned test parses both documents and checks every command, environment name and configuration key against the code, reusing the parsing style of the existing tests under `tests/docs/`. | Test: `tests/docs/test_identity_runbook.py::test_documented_commands_and_settings_exist` (L1) parses the document and asserts each name. `tests/qualification/identity/test_runbook_cutover.py::test_runbook_end_to_end` (L6) follows the steps on a test deployment.
requirementARBORA-IDENTITYLANDED765e4c3a46fe
ARBORA-IDENTITY-R016
Optional SMTP adapter for identity email
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Optional SMTP adapter for identity email.** Subsystem: admission, notification. Caller: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` → `_reset_request` → `arbora/identity/mail_capability.py::email_affordances(settings)`. The same function feeds the `capabilities.email` field of `identity.self.get` (`ARBORA-IDENTITY-R018.2`). Rule: with `identity.smtp` absent, `password_reset_by_email`, `email_verification` and `email_invitation` are false. The console hides them. Administrator reset and recovery codes stay available. A reset request without an adapter returns the same 202 body as with one, and sends nothing. Config in `~/.config/arbora/config.json`: `identity.smtp`, validated by `SmtpAdapterSettings`. Refusals: `MailAdapterRefused` at start-up for an unusable adapter. Writes: none. Depends: `ARBORA-IDENTITY-R016.2`. | Test: `tests/identity/test_mail_capability.py::test_affordances_follow_adapter_and_reset_body_is_uniform` (L3). It asserts hidden options without an adapter and the identical reset response in both cases.
requirementARBORA-IDENTITYSPECIFIEDadf48206cdff
tests/identity/test_mail_capability.py:15
tests/identity/test_mail_capability.py:31
tests/identity/test_mail_capability.py:47
ARBORA-IDENTITY-R016.1
Arbora-side mail capability model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Arbora-side mail capability model.** A typed `SmtpAdapterSettings` model refuses an unusable adapter (missing host, out-of-range port, invalid `mail_from`), and `email_affordances()` hides every email-only UI affordance while keeping the administrator-issued reset and recovery-code paths available when no adapter is configured. Caller chain: the browser auth handlers `_reset_request`, `_register` and `_invite` of `BrowserAuthApplication` (planned, `ARBORA-IDENTITY-R005.2`) -> `arbora/identity/mail_capability.py::email_affordances` over `SmtpAdapterSettings`; no production caller yet. Shape: `arbora/identity/mail_capability.py::SmtpAdapterSettings` (line 34) whose `__post_init__` refuses an unusable adapter, and `arbora/identity/mail_capability.py::email_affordances` (line 76) returning `EmailAffordances`; failures raise `MailAdapterRefused`. | Verified by refusal and capability-flag unit tests in `tests/identity/test_mail_capability.py`. Test: `tests/identity/test_mail_capability.py::test_email_affordances_hidden_without_adapter`
requirementARBORA-IDENTITYVERIFIEDa78ebe49afc9
adf48206cdff
tests/identity/test_mail_capability.py:16
tests/identity/test_mail_capability.py:32
tests/identity/test_mail_capability.py:48
ARBORA-IDENTITY-R016.2
SMTP send transport for identity email
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**SMTP send transport for identity email.** Subsystem: admission, notification. Caller chain: ASGI `/auth/*` → `arbora/identity/browser_composition.py::build_browser_boundary` → `arbora/identity/browser_runtime.py::BrowserAuthApplication.__call__` → `BrowserAuthApplication._response` → `_reset_request`, `_register`, `_invite` handlers → new `arbora/identity/mail_sender.py::send_identity_mail(settings, kind, to, link)`. Rule: one transport only, SMTP through `smtplib.SMTP` with STARTTLS. A relay such as a transactional mail service is configured as the SMTP host. There is no separate connector call. `kind` is `reset`, `verify` or `invite`. The link carries a 32-byte URL-safe token valid `identity.reset.token_ttl_seconds` (default 1800, range [300, 86400], unit seconds) and usable once. The send runs in a worker thread with a 10 s timeout. Config in `~/.config/arbora/config.json`: `identity.smtp.{host, port, mail_from, username, password_ref, starttls}`. The password uses an `env://` or `openbao://` reference. Refusals: `MAIL_SEND_FAILED` is logged and the public reply stays uniform. Evidence: audit event with kind and recipient digest, no token. Writes: the engine stores the token hash. Depends: none. The earlier engine pin note no longer applies, because the pin is `medulla>=2.27.10`. Shape: new `arbora/identity/mail_sender.py::send_identity_mail(settings, kind, to, link)` using `smtplib.SMTP` with STARTTLS in a worker thread, taking `SmtpAdapterSettings` from `arbora/identity/mail_capability.py`; called by the new `_reset_request`, `_register` and `_invite` handlers of `BrowserAuthApplication`. | Test: `tests/identity/test_mail_sender_served.py::test_reset_request_sends_one_use_email` (L3). A loopback SMTP sink asserts one message, a working single-use link and a replay refusal.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017
Remove the unauthenticated opt-out (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Remove the unauthenticated opt-out (rollup).** Subsystem: admission, client paths. Entry: every client path listed in `arbora/identity/client_entry_points.py::ClientEntryPoint` (bootstrap, REST, MCP, A2A, CLI, background). Each path carries a verified local-issuer or service token on every engine call. Arbora then stops relying on the engine's unauthenticated opt-out, and the engine refuses any unsigned request. Children: `.2` opt-out removal, `.3` model, `.4` behaviour, `.5` wiring, `.6` refusal, `.7` evidence, `.8` hot-path proof. Explicit none mode is separate (`ARBORA-IDENTITY-R004`). Depends: `MEDULLA-IDENTITY-R003.1`. | Root journey: `tests/identity/test_bearer_tenant_ingress.py::test_served_stateless_bearer_requires_tenant` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIEDadf48206cdff
tests/identity/test_client_entry_points.py:14
tests/identity/test_client_entry_points.py:22
ARBORA-IDENTITY-R017.1
Client entry-point token audit registry
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Client entry-point token audit registry.** `CLIENT_TOKEN_REQUIREMENTS` enumerates every Arbora client path (bootstrap, REST, MCP, A2A, CLI, background service) and records that each one carries a verified local-issuer or permitted service token, with `entry_points_without_verified_tokens()` empty -- the audited precondition for removing reliance on the engine's opt-out. Caller chain: host bootstrap -> `arbora/identity/client_entry_points.py::entry_points_without_verified_tokens` (called at start-up per `ARBORA-IDENTITY-R017.2`, planned) over `CLIENT_TOKEN_REQUIREMENTS`; today only the unit tests call it. Shape: `arbora/identity/client_entry_points.py::ClientEntryPoint` (line 27) enum, frozen `TokenRequirement`, the tuple `arbora/identity/client_entry_points.py::CLIENT_TOKEN_REQUIREMENTS` (line 49) and `arbora/identity/client_entry_points.py::entry_points_without_verified_tokens` (line 59). | Verified by registry-completeness and token-requirement unit tests in `tests/identity/test_client_entry_points.py`. Test: `tests/identity/test_client_entry_points.py::test_every_client_entry_point_is_registered`
requirementARBORA-IDENTITYVERIFIEDa78ebe49afc9
adf48206cdff
tests/identity/test_client_entry_points.py:15
tests/identity/test_client_entry_points.py:23
ARBORA-IDENTITY-R017.2
Engine opt-out removal
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Engine opt-out removal.** Subsystem: admission, client paths. Caller chain: host bootstrap → `arbora/identity/client_entry_points.py::entry_points_without_verified_tokens` at start-up. Shape: delete the loopback-bootstrap reliance noted in `client_entry_points.py`. Remove every start-up path that starts or connects to an engine without a signed token. The one exception is explicit none mode of `MEDULLA-IDENTITY-R003.1`. Rule: `entry_points_without_verified_tokens()` returns an empty tuple, and the host refuses to start when it does not. Refusals: the engine's own denial of an unsigned request, surfaced as HTTP 401 or MCP error `unauthenticated`. No unsigned retry exists. Writes: none. The old engine-pin text is obsolete, because the pin is `medulla>=2.27.10`. Depends: `ARBORA-IDENTITY-R017.1`, `MEDULLA-IDENTITY-R003.1`. | Test: `tests/identity/test_bearer_tenant_ingress.py::test_every_entry_point_is_denied_without_valid_token` (L3). It asserts a denial for a missing, expired and wrong-audience token on each entry point, and no unsigned retry.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017.3
Bearer model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bearer model.** Subsystem: admission, client paths. Shape: new `arbora/security/bearer.py` with frozen `BearerVerificationProfile{issuer, audience, algorithms, key_authority, tenant_claim, max_lifetime_seconds}` and `VerifiedBearer{subject, tenant, client, scopes, expires_at, evidence}`. Rule: `algorithms` is `["RS256"]`. `max_lifetime_seconds` is at most `ACCESS_TOKEN_MAX_SECONDS` (300). `tenant_claim` names a required nonempty signed claim that maps to the internal `tenant_id`. Headers, cookies, process identity and defaults never fill an absent tenant. Config in `~/.config/arbora/config.json`: `identity.bearer.{issuer, audience}`. Refusals: `BEARER_PROFILE_INVALID` at construction. Writes: none. Depends: `ARBORA-IDENTITY-R003`. Caller chain: REST `arbora/api/http/auth.py::verify_local_bearer_request` (line 207) and MCP `arbora/api/mcp/caller.py::VerifiedMCPCaller` (line 161) -> new `arbora/security/bearer.py` profile and verified-bearer types (planned) -> `arbora/security/request_identity.py::verify_local_bearer_token`. | Test: `tests/identity/test_bearer_model.py::test_profile_and_verified_bearer_round_trip_and_refuse_blank_tenant` (L1). Verified by the root slice test `tests/identity/test_bearer_tenant_ingress.py::test_served_stateless_bearer_requires_tenant`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017.4
Bearer verification behaviour
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bearer verification behaviour.** Subsystem: admission, client paths. Caller chain: REST `arbora/api/http/auth.py::verify_local_bearer_request` and MCP `arbora/api/mcp/caller.py::VerifiedMCPCaller.caller_for_request` → new `arbora/security/bearer.py::verify_bearer(token, profile, now)`. Rule: verify signature, issuer, audience, expiry, not-before and the required tenant claim, in that order. Then resolve current engine authority for the subject. Stateless verification never skips revocation, delegation or current authorization checks. Clock skew allowed is 30 s (Fixed). A valid browser cookie never rescues an invalid bearer and never creates an API principal. Refusals: see `.6`. Evidence: see `.7`. Writes: none. Depends: `ARBORA-IDENTITY-R017.3`. Shape: new `arbora/security/bearer.py::verify_bearer(token, profile, now)` composing the signature/issuer/audience/expiry/tenant checks in order, followed by the existing engine authority resolution in `arbora/security/request_identity.py::verify_local_bearer_token` (line 1080); the profile type is the one of `ARBORA-IDENTITY-R017.3`. | Test: `tests/identity/test_bearer_verification.py::test_check_order_and_cookie_cannot_rescue_bearer` (L2). Verified by the root slice test `tests/identity/test_bearer_tenant_ingress.py::test_served_stateless_bearer_requires_tenant`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017.5
Bearer ingress wiring
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bearer ingress wiring.** Subsystem: admission, client paths. Caller chain: REST request → `arbora/api/http/auth.py::verify_local_bearer_request`; MCP `tools/call` → `arbora/api/mcp/caller.py::caller_from_session` → `VerifiedMCPCaller.caller_for_request`. Both call `arbora/security/bearer.py::verify_bearer` and then the engine authority resolver of `arbora/security/request_identity.py::verify_local_bearer_token`. Rule: a missing key authority, tenant validation or engine resolution keeps the ingress unavailable. Decoded-claims helpers alone never admit a bearer. Refusals: `AUTHORITY_UNAVAILABLE`. Writes: none. Depends: `ARBORA-IDENTITY-R017.4`. Shape: edit `arbora/api/http/auth.py::verify_local_bearer_request` (line 207) and `arbora/api/mcp/caller.py::VerifiedMCPCaller.caller_for_request` (line 183) to call `verify_bearer` before `verify_local_bearer_token`; no new module beyond `arbora/security/bearer.py`. | Test: `tests/identity/test_bearer_tenant_ingress.py::test_served_stateless_bearer_requires_tenant` (L3). It asserts both entry points call `verify_bearer` and refuse when the authority is down.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017.6
Bearer refusals
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bearer refusals.** Subsystem: admission, client paths. Caller chain: `verify_bearer` in the REST and MCP chains of `.5`. Rule: codes are `BEARER_MISSING`, `BEARER_DUPLICATE_HEADER`, `BEARER_SIGNATURE_INVALID`, `BEARER_ISSUER_UNKNOWN`, `BEARER_AUDIENCE_MISMATCH`, `BEARER_TENANT_MISSING`, `BEARER_EXPIRED`, `BEARER_NOT_YET_VALID`, `BEARER_REVOKED`, `TENANT_MISMATCH` and `AUTHORITY_UNAVAILABLE`. The first ten map to a uniform 401 body and `AUTHORITY_UNAVAILABLE` maps to 503. A tenant mismatch refuses before discovery, dispatch or source access. A cached positive authorization never outlives its validity. Evidence: see `.7`. Writes: none. Depends: `ARBORA-IDENTITY-R017.4`. Shape: a `BearerRefusal` code enum and its status mapping in `arbora/security/bearer.py`, raised by `verify_bearer` and translated by the existing error surface `arbora/security/error_surface.py` into the uniform 401 body or 503. | Test: `tests/identity/test_bearer_tenant_ingress.py::test_served_stateless_bearer_requires_tenant` (L3). It asserts each code and zero handler calls.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017.7
Bearer evidence
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bearer evidence.** Subsystem: admission, client paths. Caller chain: `verify_bearer` and its refusal path emit through `arbora/api/invoke/audit.py`. Rule: the audit event holds request id, verified tenant, principal and client. It also holds issuer profile id, key id, policy revision and refusal code. It never holds raw bearer text or a reversible token encoding. Bearer events carry `source=bearer`. Browser-session events carry `source=session` and never imply bearer validation. Writes: the audit sink only. Depends: `ARBORA-IDENTITY-R017.4`. Shape: call `arbora/api/invoke/audit.py::audit_event` (line 13) from `verify_bearer` and its refusal path with the field set of the row and `source=bearer`; the redaction helper is `arbora/security/log_redaction.py`. | Test: `tests/identity/test_bearer_evidence.py::test_audit_event_fields_and_no_token_text` (L3). It asserts the fields, the source tag and the absence of token text.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R017.8
Bearer hot-path proof
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bearer hot-path proof.** Subsystem: admission, client paths. Caller chain: MCP `tools/call` and REST with local issuer tokens. Rule: an empty browser-session store must not block a valid bearer. A missing tenant, expired token, wrong audience, duplicate header and forged signature cause zero handler calls. Restart, revoked authority and cross-tenant calls keep the refusal. Depends: `ARBORA-IDENTITY-R017.2` to `.7`. Shape: new served test `tests/identity/test_bearer_tenant_ingress.py` driving `arbora/api/http/auth.py::verify_local_bearer_request` (line 207) and the MCP caller through the served invocation with the fixture style of `tests/identity/test_console_admission.py`; no production code. | Test: `tests/identity/test_bearer_tenant_ingress.py::test_served_stateless_bearer_requires_tenant` (L3). It runs the cases above through the served invocation.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018
Identity administration operations (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Identity administration operations (rollup).** Subsystem: served operations, identity. Entry: registered operations `identity.*` in new `arbora/api/ops/identity.py`, composed by `arbora/api/ops/registry_factory.py::get_registry` (`ARBORA-IDENTITY-R025`). They cover the caller's own record. They also cover administrator management of users, sessions, API keys, service accounts, roles and groups. Providers (with mapping dry run), policy, mode, issuer, audit and SCIM clients complete the set. Handlers use an `IdentityAdminPort` injected through `arbora/identity/ports.py` (`ARBORA-OPS-R032`). Children: `.1` module, `.2` self, `.3` users and keys, `.4` roles and providers. Children: `.5` policy and audit, `.6` gate, `.7` served proof. Depends: `ARBORA-IDENTITY-R025`, `MEDULLA-IDENTITY-R007`. | Root journey: `tests/identity/test_identity_ops_served.py::test_each_identity_operation_and_admin_gate` (L3). Children pass. The module is `arbora/api/ops/identity.py`. The tests are `tests/api/test_identity_ops.py` and `tests/api/test_identity_served.py`.
requirementARBORA-IDENTITYSPECIFIED2c70abad2b68
336f9faf3f21
ARBORA-IDENTITY-R019
Access operations for elevation and approval decisions (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Access operations for elevation and approval decisions (rollup).** Subsystem: served operations, access. Entry: registered operations `access.elevation.request|list|revoke|approve`, `access.leases.list|get`, `access.check` and `access.explain_policy` in `arbora/api/ops/access.py`, plus `approvals.list|get|grant|deny` (`.7`). All decisions come from the engine access authority (`RbacElevation`, `CheckAccess`). Arbora keeps no local approval or lease record. Children: `.1` to `.6` protocol resource grants, `.7` approvals registration. The share operations (`ARBORA-IDENTITY-R651`) consume `MEDULLA-IDENTITY-R023.13.3`. The ownership operations (`ARBORA-IDENTITY-R652`) consume `MEDULLA-IDENTITY-R700.3`. Depends: `MEDULLA-IDENTITY-R007`, `MEDULLA-IDENTITY-R023.13.3`, `MEDULLA-IDENTITY-R700.3`. | Root journey: `tests/api/test_access_ops.py::test_rest_and_mcp_return_identical_decisions_and_deny_self_approval` (L3). Children pass. Served test: `tests/api/test_access_served.py::test_surfaces_agree_and_self_approval_denied` (L3) covers the REST and MCP parity case.
requirementARBORA-IDENTITYSPECIFIEDd467b8f6c708
f0432f0a0cef
f22badda8f35
ARBORA-IDENTITY-R019.1
Resource access model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Resource access model.** Subsystem: admission, resource grants. Shape: new `arbora/access/resource_grants.py` with frozen `ResourceAccessRequest{tenant, principal, client, resource_ref, protocol, operation, constraints}` and `ResourceGrant{engine_decision_ref, subject (user or role), resource_ref, resource_version, scope_ceiling, expires_at, revocation_revision}`. Rule: `protocol` is one of `web`, `ssh`, `rdp`, `database`. `constraints` is an immutable tuple of key-value pairs. An unknown resource, protocol or operation has no implicit grant. Refusals: `RESOURCE_REQUEST_INVALID` at construction. Writes: none. Depends: `MEDULLA-IDENTITY-R704`. Caller chain: served `fleet.call` -> `arbora/api/invoke/pipeline.py::_policy` (line 238) -> new `arbora/access/resource_gate.py::require_resource_grant` (planned, `.3`) -> new `arbora/access/resource_grants.py` request and grant types. | Test: `tests/access/test_resource_grants.py::test_models_round_trip_and_refuse_unknown_protocol` (L1). Verified by the root slice test `tests/identity/test_resource_protocol_access.py::test_served_protocol_grants_default_deny`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R019.2
Resource grant evaluation
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Resource grant evaluation.** Subsystem: admission, resource grants. Shape: `arbora/access/resource_grants.py::evaluate(request, grant, now_ms, revocation_revision) -> GrantDecision`. Rule: allow only when subject, tenant, `resource_ref` with `resource_version`, protocol and operation all match. The grant must be unexpired. Its revocation revision must equal the current one. A grant never covers a whole host or network by proximity. Each new operation is evaluated again. An expired or revoked grant ends open access within `access.resource.recheck_seconds` (default 5, range [1, 60], unit seconds). Refusals: see `.4`. Writes: none. Depends: `ARBORA-IDENTITY-R019.1`. Caller chain: served `fleet.call` -> `arbora/api/invoke/pipeline.py::_policy` (line 238) -> new `require_resource_grant` (planned, `.3`) -> new `arbora/access/resource_grants.py::evaluate`. | Test: `tests/access/test_resource_grants.py::test_evaluate_matches_all_dimensions_and_expires` (L2). Verified by the root slice test `tests/identity/test_resource_protocol_access.py::test_served_protocol_grants_default_deny`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R019.3
Resource gate wiring at fleet.call
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Resource gate wiring at fleet.call.** Subsystem: admission, resource grants. Caller chain: served `fleet.call` → `arbora/api/invoke/pipeline.py::_policy` → new `arbora/access/resource_gate.py::require_resource_grant` → forward in `arbora/fleet/multiplexer.py`. Rule: a connector tool that declares `resource_protocol` and `resource_param` (`SCION-CONNECTOR-CONTROL-R911`) triggers the gate. The gate builds a `ResourceAccessRequest`, asks the engine `CheckResourceAccess` for the decision (`MEDULLA-IDENTITY-R704`), and runs `evaluate`. Protocol enforcement is the connector call itself: `tunnel-manager` for `ssh`, `sql-mcp` for `database`, web connectors for `web`. No `rdp` connector declares enforcement, so `rdp` refuses. A tool without the declaration is not a resource tool and skips the gate. The shared invoke policy path stays mandatory. Refusals: see `.4`. Writes: none. Depends: `ARBORA-IDENTITY-R019.2`, `MEDULLA-IDENTITY-R704`, `SCION-CONNECTOR-CONTROL-R911`. Shape: new `arbora/access/resource_gate.py::require_resource_grant`, called from `arbora/api/invoke/pipeline.py::_policy` (line 238) for tools whose catalog entry declares `resource_protocol` and `resource_param`; it uses `evaluate` of `resource_grants.py` and an engine decision client built like the one in `arbora/access/service.py`. | Test: `tests/identity/test_resource_protocol_access.py::test_served_protocol_grants_default_deny` (L3). Fixture connectors record connection attempts and the test asserts zero attempts on each refusal.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R019.4
Resource gate refusals
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Resource gate refusals.** Subsystem: admission, resource grants. Caller chain: `require_resource_grant` of `.3`. Rule: default deny. Codes are `RESOURCE_GRANT_MISSING`, `RESOURCE_UNKNOWN`, `ROLE_UNTRUSTED`, `POLICY_STALE`, `GRANT_EXPIRED`, `TENANT_MISMATCH`, `AUTHORITY_UNAVAILABLE` and `UNSUPPORTED_ENFORCEMENT`. `UNSUPPORTED_ENFORCEMENT` applies when no connector enforces the granted operation and constraints. Opaque tunnelling is never operation-scoped authorization. Denied and unknown resources share the public code `RESOURCE_ACCESS_DENIED`. The refusal happens before any upstream connection. Writes: none. Depends: `ARBORA-IDENTITY-R019.3`. Shape: a `ResourceRefusal` code enum in `arbora/access/resource_gate.py` raised by `require_resource_grant` and mapped to the shared public code `RESOURCE_ACCESS_DENIED` through `arbora/security/error_surface.py`. | Test: `tests/identity/test_resource_protocol_access.py::test_served_protocol_grants_default_deny` (L3). It asserts each internal code, the shared public code and zero upstream connections.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R019.5
Resource access evidence
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Resource access evidence.** Subsystem: admission, resource grants. Caller chain: `require_resource_grant` and the connector forward emit through `arbora/api/invoke/audit.py`. Rule: the event joins request id, principal, client, tenant, `resource_ref`, `resource_version`, protocol, operation, engine decision ref and enforcement outcome. It records grant expiry, the revocation observation and channel termination. It never records credentials, database payloads or private destination details. Evidence must come from the connector boundary, not from an access preview. Writes: the audit sink. Depends: `ARBORA-IDENTITY-R019.3`. Shape: `require_resource_grant` and the connector forward call `arbora/api/invoke/audit.py::audit_event` (line 13) with the joined decision and enforcement fields; redaction reuses `arbora/security/log_redaction.py`. | Test: `tests/identity/test_resource_protocol_access.py::test_evidence_joins_decision_and_enforcement` (L3). It asserts the joined fields and the absence of payloads.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R019.6
Resource access hot-path proof
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Resource access hot-path proof.** Subsystem: admission, resource grants. Caller chain: served `fleet.call` over HTTP and MCP with fixture connectors for `web`, `ssh`, `rdp` and `database` that record connection attempts. Rule: explicit user and role grants permit only their exact resources. Unrelated resources, revoked grants and `rdp` cause zero connections. Depends: `ARBORA-IDENTITY-R019.3` to `.5`. Shape: new served test `tests/identity/test_resource_protocol_access.py` using fixture connectors that record connection attempts, in the style of `tests/fleet/test_multiplexer_dynamic_gateway.py`; no production code. | Test: `tests/identity/test_resource_protocol_access.py::test_served_protocol_grants_default_deny` (L3). It asserts the permitted attempts and zero attempts for each refusal.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R020
Domain scope registry covers finance, fleet, loops and ops
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Domain scope registry covers finance, fleet, loops and ops.** Subsystem: admission, scopes. Caller chain: `arbora/api/ops/registry_factory.py::get_registry` → `_load_scopes` checks every operation scope against `arbora/security/scope_registry.py`. Shape: `scope_registry.py`, read from the engine `DescribeContract` answer (`ARBORA-IDENTITY-R002.1`). Rule: Arbora exports exactly these domain scopes with these classes. Classes: `finance:read` domain, `fleet:read` user, `fleet:control` admin, `loops:read` user, `loops:control` admin, `ops:read` admin, `ops:admin` admin. No separate scope list exists. Refusals: `EgContractError` for an unregistered scope. Writes: none. Depends: `ARBORA-IDENTITY-R002.1`, `MEDULLA-IDENTITY-R007`. | Test: `tests/security/test_scope_registry.py::test_exported_domain_scopes_match_the_registry` (L1) asserts each name and class. `tests/api/test_registry_factory.py::test_unapproved_provider_scope_is_not_inferred` (L3) asserts the registry refusal.
requirementARBORA-IDENTITYLANDEDa2212420d6c6
ARBORA-IDENTITY-R021
Identity wiring depends only on identity ports
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Identity wiring depends only on identity ports.** Arbora's web host, web co-service, and MCP server packages depend only on the identity ports protocols and DTOs for identity behavior, with the concrete issuer, session, and authority implementations built once in the serving composition root and injected, removing the prior direct dependencies between these packages. Caller chain: serving composition root `arbora/identity/composition.py::build_engine_identity_ports` builds the ports once -> injected into `arbora/webui_host/session_boundary.py`, `arbora/mcp_server/server.py` and `arbora/agent_host/host_start.py`, which import only `arbora/identity/ports.py`. Shape: `arbora/identity/ports.py::CredentialAuthority` (line 60) and `SessionAuthority` protocols with DTOs in `ports.py`, `arbora/identity/composition.py::IdentityPorts` (line 22) and `build_identity_ports` as the single construction point; enforced by the import-graph test. | Verified by an import-graph and composition test asserting a single built implementation per port, no import cycle, and compliance with the configured dependency-count threshold. Test: `tests/identity/test_identity_ports_boundary.py::test_served_package_depends_only_on_identity_ports`
requirementARBORA-IDENTITYVERIFIED2c70abad2b68
336f9faf3f21
68c58c6e80df
tests/identity/test_identity_ports_boundary.py:105
tests/identity/test_identity_ports_boundary.py:77
ARBORA-IDENTITY-R022
Fleet authorization fails closed on exact scopes
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Fleet authorization fails closed on exact scopes.** Arbora's fleet capability check accepts only the exact fleet scope for a requested operation rather than treating a general admin or cluster-admin scope as sufficient, applies the same check to local stdio transport as to any other transport, denies dispatch of an unrecognized native tool rather than allowing it by default, and enforces this filtering on every served MCP request regardless of which code path built the server. Caller chain: every served MCP request -> multiplexer dynamic gateway in `arbora/fleet/multiplexer.py` and `arbora/fleet/gateway_ops.py` -> fleet capability check requiring the exact fleet scope; stdio uses the same path. Shape: the scope check and tool-dispatchability helpers in `arbora/fleet/multiplexer.py` and `arbora/fleet/access_contracts.py`, with exact scope names from `arbora/security/scope_registry.py`; no new module. | Verified by positive and negative tests asserting an admin-only or cluster-admin-only caller is denied fleet access, an unknown tool is denied, and stdio-transport requests are checked identically to networked requests. Test: `tests/fleet/test_multiplexer_dynamic_gateway.py::test_tool_dispatchable_false_for_unknown_name_on_a_serving_instance`
requirementARBORA-IDENTITYVERIFIED2c70abad2b68
76d418e32221
tests/fleet/test_multiplexer_dynamic_gateway.py:1576
tests/fleet/test_multiplexer_dynamic_gateway.py:1787
tests/fleet/test_multiplexer_dynamic_gateway.py:1832
tests/fleet/test_multiplexer_dynamic_gateway.py:1850
ARBORA-IDENTITY-R023
Native self-refreshing credentials for MCP clients (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Native self-refreshing credentials for MCP clients (rollup).** Subsystem: admission, credentials. Entry: MCP client `initialize` and `tools/call` against the arbora MCP server. Arbora issues and refreshes service-account and API-key tokens in process and serves them to IDE and agent clients. No external refresh process and no file-based token cache exist. Children: `.1` to `.6` deliver scoped credential reuse with PKCE. Depends: `ARBORA-IDENTITY-R003`. | Root journey: `tests/identity/test_scoped_credential_reuse.py::test_served_pkce_reuse_and_refusal` (L3). Children pass. A client run asserts automatic renewal without a cache file.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R023.1
Credential reuse model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Credential reuse model.** Subsystem: admission, credentials. Shape: new `arbora/access/credential_use.py` with frozen `CredentialUseRequest{tenant, owner_principal, requesting_principal, client, connector, provider, audience, scopes, resource, operation}`, `CredentialUseGrant{request, engine_decision_ref, vault_ref, expires_at, revocation_revision, token_profile}` and `AuthorizationChallenge{request, issuer, client_id, callback, state, nonce, pkce_challenge, attempt, deadline}`. Rule: `token_profile` is `jwt_oidc` or `opaque`. No shared-host identity and no supplied actor field grants reuse. Refusals: `CREDENTIAL_REQUEST_INVALID`. Writes: none. Depends: `SCION-CONNECTOR-CONTROL-R046.1`. Caller chain: served `fleet.call` -> `arbora/fleet/remote_oauth_broker.py::RemoteOAuthBroker` (line 1177) -> new `arbora/access/credential_use.py` request, grant and challenge types (planned). | Test: `tests/access/test_credential_use.py::test_models_round_trip_and_refuse_supplied_actor` (L1). Verified by the root slice test `tests/identity/test_scoped_credential_reuse.py::test_served_pkce_reuse_and_refusal`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R023.2
Credential reuse behaviour
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Credential reuse behaviour.** Subsystem: admission, credentials. Caller chain: served `fleet.call` → `arbora/fleet/remote_oauth_broker.py::RemoteOAuthBroker.bearer_headers_for` → new `arbora/access/credential_use.py::resolve_credential`. Rule: resolve only an explicit reuse grant for the exact requesting agent, admitted connector and purpose. Derive the connector from trusted admission, never from a request field. Validate provider tokens under the declared JWT/OIDC or opaque profile. A missing credential starts one admitted inline PKCE challenge with a 120 s deadline. Persist acquired tokens through the host vault before reporting ready. Resume only the unchanged waiting operation after fresh engine authorization. Expiry, revocation and concurrent refresh keep the same narrowed authority; one refresh runs at a time per grant. Refusals: see `.4`. Writes: the host vault, via the broker. Depends: `ARBORA-IDENTITY-R023.1`, `SCION-CONNECTOR-CONTROL-R046.2`. Shape: new `arbora/access/credential_use.py::resolve_credential`, called from `arbora/fleet/remote_oauth_broker.py::RemoteOAuthBroker.bearer_headers_for` (line 1497) before it builds provider headers; it reuses the broker's PKCE and vault code and the engine decision client. | Test: `tests/access/test_credential_use.py::test_resolve_scoped_reuse_and_single_refresh` (L2). Verified by the root slice test `tests/identity/test_scoped_credential_reuse.py::test_served_pkce_reuse_and_refusal`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R023.3
Credential reuse wiring
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Credential reuse wiring.** Subsystem: admission, credentials. Caller chain: `/oauth/{provider_id}/authorize` and `/oauth/callback` → `arbora/gateway/remote_oauth_api.py::authorize` and `oauth_callback` → `arbora/fleet/remote_oauth_broker.py` → `arbora/access/credential_use.py`. Shape: `arbora/identity/composition.py::build_identity_ports` injects the identity authorities. The PKCE transport comes from `SCION-CONNECTOR-CONTROL-R046`, and credential references from `SCION-CONNECTOR-CONTROL-R035`. Rule: scoped reuse, the vault receipt and inline operation continuation hang off the existing broker boundary. Refusals: see `.4`. Writes: vault receipt. Depends: `ARBORA-IDENTITY-R023.2`. | Test: `tests/identity/test_scoped_credential_reuse.py::test_served_pkce_reuse_and_refusal` (L3). It asserts the call chain through `authorize` and `oauth_callback`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R023.4
Credential reuse refusals
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Credential reuse refusals.** Subsystem: admission, credentials. Caller chain: `resolve_credential` and the OAuth handlers. Rule: codes are `CREDENTIAL_MISSING`, `REUSE_DENIED`, `BROWSER_LAUNCH_FAILED`, `CALLBACK_UNAVAILABLE`, `INPUT_TIMEOUT`, `STATE_MISMATCH`, `INSECURE_REDIRECT`, `PROVIDER_UNAVAILABLE`, `PERSISTENCE_FAILED`, `CREDENTIAL_REVOKED` and `CREDENTIAL_EXPIRED`. An unavailable interactive channel returns `INTERACTION_REQUIRED` at once. Errors contain no code, verifier or token. A refused ceremony never dispatches the waiting operation and leaves no usable grant. Writes: none. Depends: `ARBORA-IDENTITY-R023.2`. Shape: a `CredentialRefusal` code enum in `arbora/access/credential_use.py` raised by `resolve_credential`; messages are built without code, verifier or token and mapped through `arbora/security/error_surface.py`. | Test: `tests/identity/test_scoped_credential_reuse.py::test_served_pkce_reuse_and_refusal` (L3). It asserts each code, the clean error text and zero backend effect.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R023.5
Credential reuse evidence
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Credential reuse evidence.** Subsystem: admission, credentials. Caller chain: `resolve_credential` emits through `arbora/api/invoke/audit.py`. Rule: the event records tenant, requesting principal, client and provider. It adds granted scopes, resource, operation, challenge reference, engine decision ref and vault receipt. It also records issuance, refresh, revocation and expiry references. It redacts codes, verifiers, tokens, cookies and credential values. Cross-agent use is recorded on its own event. Process or host identity never substitutes for caller provenance. Writes: the audit sink. Depends: `ARBORA-IDENTITY-R023.2`. Shape: `resolve_credential` calls `arbora/api/invoke/audit.py::audit_event` (line 13) with the field set of the row; redaction reuses `arbora/security/log_redaction.py`. | Test: `tests/identity/test_scoped_credential_reuse.py::test_evidence_fields_and_redaction` (L3). It asserts the fields and the absence of secrets.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R023.6
Credential reuse hot-path proof
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Credential reuse hot-path proof.** Subsystem: admission, credentials. Caller chain: served `fleet.call` over REST and MCP `tools/call` with a local OIDC provider and a real callback. Rule: PKCE and vault persistence complete. A granted second client succeeds. Unrelated clients and mismatched connectors fail before token use. JWT and opaque fixtures prove each profile. A browser-start failure, timed-out input, replay and failed persistence cause no backend effect. Depends: `ARBORA-IDENTITY-R023.3` to `.5`. Shape: new served test `tests/identity/test_scoped_credential_reuse.py` with a local OIDC provider fixture driving `fleet.call` through the registry `invoke` path, in the style of `tests/fleet/test_multiplexer_dynamic_gateway.py`; no production code. | Test: `tests/identity/test_scoped_credential_reuse.py::test_served_pkce_reuse_and_refusal` (L3). It asserts the cases above through the served invocation.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R024
Committed browser and SSO provider probe
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Committed browser and SSO provider probe.** Subsystem: release qualification. Caller chain: release qualification runs `scripts/identity_probe.py --protocol oidc|saml --base-url <url> --realm <realm>` (new). Rule: the script drives a real browser through the helpers of `tests/qualification/browser/browser_login.mjs`. It opens the sign-in, follows the provider redirect and completes the callback. Then it reads `/auth/session` with the `__Host-arbora_session` cookie. It asserts the expected principal and server-resolved role. Credentials come from `openbao://` references. Output holds no cookie, token or credential. Exit 0 on success, 2 on failure. This row absorbs the former live OIDC probe `ARBORA-IDENTITY-R009.2.4`. Depends: `ARBORA-IDENTITY-R009.2.3`, `ARBORA-IDENTITY-R012.2.3.2`. Shape: new `scripts/identity_probe.py` beside the existing `scripts/certification_oidc.py`, reusing the browser helpers in `tests/qualification/browser/browser_login.mjs` and `browser_csrf.mjs`; secrets come from `openbao://` references resolved by `arbora/security/secrets.py`. | Test: `tests/qualification/identity/test_live_oidc.py::test_live_oidc_sign_in` (L6) runs the script against a test realm and asserts exit 0 and the session principal. `tests/identity/test_identity_probe_script.py::test_script_output_holds_no_secret` (L1) asserts redaction.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R025
Register identity operations in the registry
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Register identity operations in the registry.** Subsystem: served operations, registry. Caller chain: `arbora/api/ops/registry_factory.py::get_registry` imports `arbora/api/ops/identity.py` and adds it to the module tuple. Rule: the engine contract lists `identity:admin` today (`MEDULLA-IDENTITY-R007`; pin `medulla>=2.27.10`), so registration is unconditional. A missing scope raises the existing `EgContractError`. The skip path and its doctor warning do not exist. Depends: `ARBORA-IDENTITY-R018.1`. Shape: new `arbora/api/ops/identity.py` exposing `operations()` like `arbora/api/ops/access.py::operations` (line 151), added to the module tuple of `arbora/api/ops/registry_factory.py`; the missing-scope error is the existing `EgContractError`. | Test: `tests/api/test_registry_factory.py::test_identity_operations_are_registered` (L3). It asserts the registered ids and that a contract without `identity:admin` raises `EgContractError`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026
Hosted sessions are attributed to a client and segmented by principal (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Hosted sessions are attributed to a client and segmented by principal (rollup).** Subsystem: admission, hosted sessions. Entry: MCP session open on the arbora MCP server, then served `agents.run` and `identity.clients.list`. Arbora attributes every streamable-http session, agent run and audit event to a verified client principal. It shows each caller only its own. Children: `.1` record, `.2` open, `.3` runs, `.4` audit, `.5` listing, `.6` parity, `.7` uniform denial, `.8` inbox. The record vocabulary is `MEDULLA-IDENTITY-R705`. Depends: `MEDULLA-IDENTITY-R705`, `ARBORA-IDENTITY-R017`. | Root journey: `tests/identity/test_client_attribution_served.py::test_two_principals_see_only_their_own_clients` (L3). Two principals show no cross-client visibility and all children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.1
Client session record
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Client session record.** Subsystem: admission, hosted sessions. Shape: new `arbora/identity/client_session.py::ClientSession{principal, tenant, session_id, client, started_at_ms}` with `from_verified_caller(caller)`. The record persists as an engine node with label `ClientSession` (`MEDULLA-IDENTITY-R705`) under the id `client_session:<tenant>:<session_id>`. Refusals: `CLIENT_SESSION_UNSIGNED_PRINCIPAL` for a principal without verified claims; `CLIENT_SESSION_FIELD_MISSING`. Writes: none in this row. Depends: `MEDULLA-IDENTITY-R705`. Caller chain: MCP `initialize` -> `ActorContextMiddleware` in `arbora/mcp_server/backing/middlewares.py` (hook planned in `.2`) -> new `arbora/identity/client_session.py::ClientSession.from_verified_caller` (planned). | Test: `tests/identity/test_client_session.py::test_fields_required_and_unsigned_principal_rejected` (L1). Verified by the root slice test `tests/identity/test_client_attribution_served.py::test_two_principals_see_only_their_own_clients`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.2
Record at session open
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Record at session open.** Subsystem: admission, hosted sessions. Caller chain: MCP `initialize` → new `on_initialize` hook of `arbora/mcp_server/backing/middlewares.py::ActorContextMiddleware` → `arbora/identity/client_session.py::record_session_open`. Rule: the hook builds the record from the verified caller and writes it once, idempotent on the session id. Repeated `initialize` on one session writes nothing new. The write goes through the engine client of `arbora/mcp_server/runtime.py::_get_engine`, as a node write with the caller's tenant. Refusals: an unverified caller opens no session. Evidence: the node itself. Depends: `ARBORA-IDENTITY-R026.1`. Shape: a new `on_initialize` hook on `arbora/mcp_server/backing/middlewares.py::ActorContextMiddleware` (line 112) calling new `arbora/identity/client_session.py::record_session_open`, which writes one `ClientSession` node through the engine client of `arbora/mcp_server/runtime.py`. | Test: `tests/identity/test_client_session_open.py::test_open_stores_one_record_per_session` (L3). It opens a session through the served MCP server and reads one node for the caller.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.3
Runs carry the session id
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Runs carry the session id.** Subsystem: admission, hosted sessions. Caller chain: served `agents.run` → `arbora/api/ops/agents.py::handle_agent` → `A2AService.send_message` in `arbora/a2a/authority.py`. Rule: `handle_agent` passes `client_session_id` and `principal` from the verified caller, and the work item property `client_session_id` stores them. A caller without a session id refuses with `CLIENT_SESSION_MISSING`. Writes: the run work item through the existing submit path. Depends: `ARBORA-IDENTITY-R026.2`. Shape: edit `arbora/api/ops/agents.py::handle_agent` (line 43) to pass `client_session_id` and `principal` into `arbora/a2a/service.py::A2AService.send_message` (line 37), which stores them as the work item property `client_session_id`; the missing-session refusal reuses the error types of `arbora/api/errors.py`. | Test: `tests/identity/test_run_attribution.py::test_run_record_shows_opening_session_id` (L3). It runs `agents.run` over HTTP and MCP and reads the work item property.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.4
Audit event per run
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Audit event per run.** Subsystem: admission, hosted sessions. Caller chain: `handle_agent` → new `arbora/api/invoke/audit.py::run_audit_event(run, caller)`. Rule: exactly one event per orchestrated run, with keys `trace_id`, `principal`, `session_id`, `run_id`, `tenant`. A run that fails still emits its one event with `result_status`. The event holds no prompt text. Writes: the audit sink. Depends: `ARBORA-IDENTITY-R026.3`. Shape: new `run_audit_event(run, caller)` in `arbora/api/invoke/audit.py` beside `arbora/api/invoke/audit.py::audit_event` (line 13), called once from `handle_agent` in `arbora/api/ops/agents.py` when the run ends. | Test: `tests/identity/test_run_audit.py::test_one_event_per_run_with_all_fields` (L3). It runs two runs and asserts two events with the required keys.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.5
Caller-scoped client listing
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Caller-scoped client listing.** Subsystem: served operations, hosted sessions. Caller chain: registry `invoke` → operation `identity.clients.list` in `arbora/api/ops/identity.py`. Rule: scope `identity:self` returns only the caller's own sessions and runs. The exact scope `identity:admin` returns all rows of the tenant. A reader scope without admin stays limited. Reads engine nodes `ClientSession` and run work items filtered by principal. Refusals: none for an empty result. Writes: none. Depends: `ARBORA-IDENTITY-R018.1`, `ARBORA-IDENTITY-R026.3`. Shape: the `identity.clients.list` operation in `arbora/api/ops/identity.py` (new, `ARBORA-IDENTITY-R025`), reading `ClientSession` nodes and run work items through the engine query client used by `arbora/api/ops/query.py`, filtered by the caller principal unless the caller holds exact `identity:admin`. | Test: `tests/identity/test_list_clients.py::test_user_sees_own_admin_sees_all` (L3). It asserts own rows, all rows for the administrator and the limit for a reader.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.6
User and service account parity
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**User and service account parity.** Subsystem: admission, hosted sessions. Caller chain: `find` discovery in `arbora/api/mcp/discovery.py` and graph reads through the served `ask` operations. Rule: catalog filtering and row visibility depend on scopes and tenant only. They never branch on principal kind (`user` or `service`). Refusals: none. Writes: none. Depends: `ARBORA-IDENTITY-R017.4`. Shape: no new module; the catalog filter in `arbora/api/mcp/discovery.py` and the served `ask` reads must take scopes and tenant only, which the test asserts by comparing a user and a service account with equal grants. | Test: `tests/identity/test_principal_parity.py::test_equal_catalog_and_visible_rows` (L3). A user and a service account with equal grants see equal catalogs and equal visible-row counts.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.7
Cross-client denial is uniform
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Cross-client denial is uniform.** Subsystem: admission, hosted sessions. Caller chain: operation `identity.clients.get` in `arbora/api/ops/identity.py`. Rule: a read of another principal's session returns `CLIENT_NOT_FOUND`. A read of an unknown session id returns the same structured denial, status and body. Timing differences are not part of the contract. Refusals: `CLIENT_NOT_FOUND`. Writes: none. Depends: `ARBORA-IDENTITY-R026.5`. Shape: the `identity.clients.get` operation in `arbora/api/ops/identity.py` (new, `ARBORA-IDENTITY-R025`) returning the same `CLIENT_NOT_FOUND` structured denial for foreign and unknown ids, built with the helpers of `arbora/api/errors.py`. | Test: `tests/identity/test_cross_client_denial.py::test_foreign_and_unknown_return_identical_denials` (L3). It compares both responses byte for byte.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R026.8
Authenticated session inbox operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Authenticated session inbox operations.** Subsystem: served operations, messaging. Caller chain: registered operations `messaging.inbox.send` and `messaging.inbox.read` in `arbora/api/ops/messaging.py` → handlers → engine bus methods `bus.send` and `bus.receive` (`MEDULLA-DURABLE-KERNEL-R095.1002`). Rule: the handler authenticates the sender from the verified caller. It resolves the recipient session from the `ClientSession` nodes of `.1`. It authorizes sender to recipient before the engine call. An unknown target session or an unauthorized recipient refuses with `INBOX_RECIPIENT_UNKNOWN` or `INBOX_SEND_DENIED` and enqueues nothing. A read returns only the caller's own inbox. Evidence: audit event with sender, recipient and delivery id. Writes: the engine bus enqueue only. `MEDULLA-DURABLE-KERNEL-R850.3` provides the durable append and the scoped read. `get_registry` in `arbora/api/ops/registry_factory.py` registers both operations. Depends: `ARBORA-IDENTITY-R026.2`, `MEDULLA-DURABLE-KERNEL-R095.2`, `MEDULLA-DURABLE-KERNEL-R095.1002`, `MEDULLA-DURABLE-KERNEL-R850.3`. Shape: handlers behind `messaging.inbox.send` and `messaging.inbox.read` in `arbora/api/ops/messaging.py` that resolve `ClientSession` nodes from `arbora/identity/client_session.py` and call the engine bus methods through the engine client, with sender and recipient authorization before the engine call. | Test: `tests/identity/test_session_inbox_served.py::test_authorized_delivery_and_zero_enqueue_on_refusal` (L3). It asserts durable delivery, scoped read and zero engine enqueue for each refusal. The test enters the registry `invoke` over HTTP and MCP.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R650
External policy sync renders the engine's row-visibility bundle and fails closed
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**External policy sync renders the engine's row-visibility bundle and fails closed.** `arbora.access.external_policy_sync` fetches the engine's per-tenant policy bundle and renders it into Trino file rules, OpenSearch document-level-security roles and Lakekeeper tuple sets, then applies each idempotently (an unchanged payload makes no downstream call). A fetch or decode failure, or a bundle governing anything but row visibility, denies every target. A caller without a marking role gets a per-subject rule, never a catch-all, and subjects are regex-escaped. Applying is off unless `EXTERNAL_POLICY_SYNC_ENABLED` is set. `sync_external_policy` in `arbora.access.service` runs one fetch-and-apply cycle. Caller chain: operator or scheduled call of the served policy-sync operation -> `arbora/access/service.py::sync_external_policy` (line 31) -> `arbora/access/external_policy_sync.py` fetch (`BundleFetcher`) and render/apply per target, gated by `EXTERNAL_POLICY_SYNC_ENABLED`. Shape: `arbora/access/external_policy_sync.py::BundleFetcher` (line 274), `PolicyBundle`, the renderers `_render_dls_query` and `_render_dls_query_for_role`, and `_exact_user_pattern` for regex escaping; one idempotent apply per target with deny-all on fetch or decode failure. | `tests/access/test_external_policy_sync.py` covers decoding, per-target rendering, escaping, idempotent re-apply and deny-all. Test: `tests/access/test_external_policy_sync.py::test_applier_denies_all_when_bundle_unusable`
requirementARBORA-IDENTITYVERIFIEDbe63023340ec
bf0256771979
tests/access/test_external_policy_sync.py:3
ARBORA-IDENTITY-R027
The process authority renews for the life of the process
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The process authority renews for the life of the process.** The served process renews its own client-credentials authority before every lease expiry, indefinitely. A renewed token must keep the same actor, actor type, tenant, authentication and groups. Roles compare as a set. A reordered or additively granted role set renews. The running session keeps its original roles until restart. A revoked role, a changed identity, a failed token acquisition or a too-short lease fails closed. The lease is an explicit state machine (children `.1` to `.7`). Renewal starts at 50% of the token lifetime. A transient acquisition failure moves the lease to `Degraded` and retries with jittered exponential backoff. An expired lease recovers to `Live` when the identity provider answers again and the identity is unchanged. Confirmed identity, group or role loss moves the lease to `Revoked`, which is terminal. Only a revoked lease cannot renew. Each failure logs its code, message and cause with token-like text masked, and `/health/ready` reports `reason: process_authority_<code>` from a closed vocabulary while it persists. Caller chain: served process start -> client-credentials authority (`arbora/security/client_credentials.py`) -> process lease renewer in `arbora/security/run_authority.py` (`RunRenewalPolicy`, `keep_run_authority_current`) which renews before each expiry. Shape: the renewal loop and identity-equality check in `arbora/security/client_credentials.py` and `arbora/security/run_authority.py`; roles compare as a frozenset, and `CredentialLease` is the existing lease type reused. | `tests/mcp_server/test_process_authority_renewal.py` renews 300-second tokens across twelve hours with reordered and added roles, refuses a revoked role and a changed identity, and checks the logged cause, the masking and the readiness reason. The deploy acceptance soak (`deploy.sh --soak`) requires at least one renewal while the pod stays ready. Test: `tests/mcp_server/test_process_authority_renewal.py::test_authority_renews_across_many_token_lifetimes`. Children `.1` to `.7` own the state machine, its recovery test and its wiring. Depends: `ARBORA-IDENTITY-R027.1`, `ARBORA-IDENTITY-R027.2`, `ARBORA-IDENTITY-R027.3`, `ARBORA-IDENTITY-R027.4`, `ARBORA-IDENTITY-R027.5`, `ARBORA-IDENTITY-R027.6`, `ARBORA-IDENTITY-R027.7`.
requirementARBORA-IDENTITYVERIFIED0910caeb7e0b
2c9e265a4378
8edba320397f
9f18b818196e
aef3f9286cf8
tests/mcp_server/test_process_authority_renewal.py:108
tests/mcp_server/test_process_authority_renewal.py:131
tests/mcp_server/test_process_authority_renewal.py:171
tests/mcp_server/test_process_authority_renewal.py:188
tests/mcp_server/test_process_authority_renewal.py:207
ARBORA-IDENTITY-R029
A run renews its caller's authority while it is active (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**A run renews its caller's authority while it is active (rollup).** Subsystem: admission, run authority. Entry: run start in `arbora/mcp_server/bootstrap.py` (`CALLER_REVOCATIONS.register`, `keep_run_authority_current`). A run with a live caller session renews that caller's credential before expiry. Renewal continues while the run is active and the session is not revoked. Renewal is bounded by a maximum run lifetime and audited. It stops at once on run end, cancellation or revocation. A fan-out child inherits renewal from its parent run. No token is printed or logged. Session facts (expiry, revocation) belong to `MEDULLA-IDENTITY-R708`, and arbora consumes them through the session authority port. The process authority is `ARBORA-IDENTITY-R027`. Children `.1` to `.6` deliver it. Depends: `MEDULLA-IDENTITY-R708`, `MEDULLA-IDENTITY-R709`. | Root journey: `tests/mcp_server/test_caller_run_authority.py::test_renewal_stops_on_revocation_and_engine_failure` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIEDfc207e2a1847
ARBORA-IDENTITY-R029.1
Run lease renewal
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Run lease renewal.** `arbora/security/run_authority.py` defines `RunCredentialLease`, a run-scoped in-memory lease seeded from the verified bearer expiry. `authority_keepalive_scope` in `arbora/mcp_server/bootstrap.py` gives a caller session with no lease a run lease and makes it the ambient session for the run. The renewer extends the lease before expiry by at most the 300 s access-token ceiling and never past the run deadline (`ARBORA_RUN_MAX_LIFETIME_SECONDS`, default 4 h). An expired lease never renews. The process-authority renewal path refuses a run lease with `not_renewable` and never reacquires the process identity for a caller. Caller chain: MCP request -> `arbora/mcp_server/bootstrap.py::authority_keepalive_scope` (line 361) -> `arbora/security/run_authority.py::open_run_lease` -> `keep_run_authority_current` renewer. Shape: `arbora/security/run_authority.py::RunCredentialLease` (line 65), `RunRenewalPolicy` from `run_renewal_policy`, `open_run_lease` and `keep_run_authority_current` in `arbora/security/run_authority.py`; `caller_run_renewable` gates which actors get a lease. | `tests/mcp_server/test_caller_run_authority.py`: with a fake clock a run spanning 4x the 300 s TTL stays authorized; the same run without renewal fails after one TTL; process renewal never touches a run lease. Test: `tests/mcp_server/test_caller_run_authority.py::test_run_longer_than_three_ttls_stays_authorized`
requirementARBORA-IDENTITYVERIFIEDfc207e2a1847
tests/mcp_server/test_caller_run_authority.py:120
tests/mcp_server/test_caller_run_authority.py:140
tests/mcp_server/test_caller_run_authority.py:306
ARBORA-IDENTITY-R029.2
Stop conditions
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Stop conditions.** Leaving the run scope (run end or cancellation) stops the renewer and revokes the run lease at once. `CallerRevocations.revoke_caller` revokes every live run lease of that caller at once, and a registered revocation check that reports a reason revokes the lease. Renewal stops when the next extension would pass the run deadline. A failing revocation check never renews. Caller chain: end or cancellation of the run scope in `arbora/mcp_server/bootstrap.py::authority_keepalive_scope` (line 361) -> renewer stop and lease revoke in `arbora/security/run_authority.py`; caller revocation enters through `CALLER_REVOCATIONS.revoke_caller`. Shape: `arbora/security/run_authority.py::CallerRevocations` (line 132) (`revoke_caller`, `add_check`) and the module singleton `CALLER_REVOCATIONS`; the renewer in `keep_run_authority_current` stops at the run deadline. | `tests/mcp_server/test_caller_run_authority.py`: revocation and a revocation check stop renewal; cancellation stops renewal and closes the lease; renewal stops at the maximum run lifetime. Test: `tests/mcp_server/test_caller_run_authority.py::test_revoking_the_caller_stops_renewal_at_once`
requirementARBORA-IDENTITYVERIFIEDfc207e2a1847
tests/mcp_server/test_caller_run_authority.py:177
tests/mcp_server/test_caller_run_authority.py:201
tests/mcp_server/test_caller_run_authority.py:230
tests/mcp_server/test_caller_run_authority.py:259
ARBORA-IDENTITY-R029.3
Inheritance and audit
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Inheritance and audit.** Fan-out children created inside a run inherit the run session and its lease; a nested scope starts no second renewer. Each start, renewal, revocation, lifetime stop and end writes one `arbora.audit.run_authority` record with event, principal, tenant, run reference, expiry and renewal count from a closed vocabulary. The lease and records hold no token material. Caller chain: fan-out children started inside the run scope of `arbora/mcp_server/bootstrap.py::authority_keepalive_scope` (line 361) inherit the ambient session -> `arbora/security/run_authority.py::keep_run_authority_current`; records go through `audit_record` and `log_audit`. Shape: `arbora/security/run_authority.py::audit_record` (line 235) builds the closed-vocabulary record and `log_audit` writes it to the logger `arbora.audit.run_authority`; no token material is stored on `RunCredentialLease`. | `tests/mcp_server/test_caller_run_authority.py`: three children share the parent lease across 3 TTLs; audit records name the caller and carry no token text. Test: `tests/mcp_server/test_caller_run_authority.py::test_fan_out_children_inherit_the_parent_run_renewal`
requirementARBORA-IDENTITYVERIFIEDfc207e2a1847
tests/mcp_server/test_caller_run_authority.py:153
tests/mcp_server/test_caller_run_authority.py:282
ARBORA-IDENTITY-R029.4
Issued bearers carry the session reference
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Issued bearers carry the session reference.** Subsystem: admission, run authority. Caller chain: token issue in `arbora/identity/issuer.py::claims_for` and `LocalIssuer`. Rule: a bearer for a session-backed caller carries claim `session_ref`, the opaque reference of `MEDULLA-IDENTITY-R708`. The claim never holds token material. A bearer for an API-key or external-identity caller has no such claim. The verified bearer (`arbora/security/bearer.py::VerifiedBearer.session_ref`) hands the reference to `arbora/security/run_authority.py::open_run_lease`. Refusals: none. Writes: none. Depends: `MEDULLA-IDENTITY-R708`, `ARBORA-IDENTITY-R017.3`. Shape: add `session_ref` to the claims built by `arbora/identity/issuer.py::claims_for` (line 37) and `LocalIssuer.issue`, carry it on the new `VerifiedBearer` of `arbora/security/bearer.py`, and pass it to `arbora/security/run_authority.py::open_run_lease` (line 216). | Test: `tests/security/test_session_reference_claim.py::test_claim_present_for_session_absent_for_api_key` (L1). It asserts the claim, the absence of token text and the lease hand-off. Verified by the root slice test `tests/mcp_server/test_caller_run_authority.py::test_renewal_stops_on_revocation_and_engine_failure`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R029.5
Logout and session revocation
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Logout and session revocation.** Subsystem: admission, run authority. Caller chain: `/auth/logout` → `BrowserAuthApplication._response` and operation `identity.sessions.revoke` (`ARBORA-IDENTITY-R018.3`) → `arbora/security/run_authority.py::CALLER_REVOCATIONS.revoke_caller(tenant, principal, reason)`. Rule: logout revokes only the caller's own session. The operation revokes a named session and needs `identity:admin`. Both stop every live run lease of that caller at once and write one audit event. Refusals: `SESSION_NOT_OWNED`, `SCOPE_MISSING`. Writes: engine session revocation and the audit sink. Depends: `ARBORA-IDENTITY-R018.3`. Shape: add `/auth/logout` revocation hook in `arbora/identity/browser_runtime.py::BrowserAuthApplication` (line 73) (`_logout`) and the `identity.sessions.revoke` operation in `arbora/api/ops/identity.py`, both calling `arbora/security/run_authority.py::CallerRevocations.revoke_caller` (line 175). | Test: `tests/api/test_session_revocation_routes.py::test_logout_and_revocation_stop_leases` (L3). It asserts lease stop, the administrator scope, the refusal for another session and both audit events.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R029.6
Renewal consults engine session liveness
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Renewal consults engine session liveness.** Subsystem: admission, run authority. Caller chain: `arbora/mcp_server/bootstrap.py` run start → `CALLER_REVOCATIONS.add_check` → new `arbora/security/run_authority.py::engine_session_check(client)`. Rule: for a lease with a `session_ref`, the check calls the served session-liveness operation of `MEDULLA-IDENTITY-R709`. It reports a reason for `revoked` or `expired`. `not_session_bound` and a missing claim register no check. An engine failure never renews (`ARBORA-IDENTITY-R029.2`). Refusals: `SESSION_REVOKED`, `SESSION_EXPIRED`, `LIVENESS_UNAVAILABLE`. Writes: none. Depends: `ARBORA-IDENTITY-R029.4`, `MEDULLA-IDENTITY-R709`. Shape: new `engine_session_check(client)` in `arbora/security/run_authority.py` registered by `authority_keepalive_scope` through `CALLER_REVOCATIONS.add_check`; it uses the engine client of `arbora/mcp_server/runtime.py`. | Test: `tests/mcp_server/test_caller_run_authority.py::test_renewal_stops_on_revocation_and_engine_failure` (L3). It asserts a revoked session stops the next renewal, `not_session_bound` renews to lease end, and an engine failure refuses renewal.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028
Delegated identity for connector calls (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Delegated identity for connector calls (rollup).** Subsystem: served operations, fleet. Entry: served `fleet.call`. A connector tool may require an acting user (`requires_actor`, `SCION-CONNECTOR-CONTROL-R902.1`). Arbora then forwards a delegated identity for the verified caller, and a process credential alone never satisfies such a tool. Children `.1` to `.6` deliver it. The connector side is `SCION-CONNECTOR-CONTROL-R902.2` to `.6`. Depends: `ARBORA-IDENTITY-R017`. | Root journey: `tests/fleet/test_delegated_identity_served.py::test_actor_required_tools_succeed_for_a_user` (L3). Children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028.1
Delegated identity model
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Delegated identity model.** Subsystem: served operations, fleet. Shape: new `arbora/access/delegation.py::DelegatedIdentity{subject, tenant, audience, scopes, expires_at, exchange_id}`. This type is distinct from `SpawnDelegation` in `arbora/security/delegation.py`. The fleet catalog entry of each tool carries `requires_actor`. The flag comes from the `tools/list` `_meta` key `team.knuckles/requires_actor`, never from a connector manifest. `SCION-CONNECTOR-CONTROL-R902.1` defines the key. Default false. Refusals: `DELEGATION_FIELD_INVALID`. Writes: none. Depends: `SCION-CONNECTOR-CONTROL-R902.1`. Caller chain: served `fleet.call` -> `arbora/api/ops/fleet.py` -> `arbora/fleet/multiplexer.py` forward -> new `arbora/access/delegation.py::DelegatedIdentity` (planned); the `requires_actor` flag is read from the catalog entry in `arbora/fleet/catalog_items.py`. | Test: `tests/access/test_delegation.py::test_model_round_trip_and_actor_flag_from_tools_list_meta` (L1). Verified by the root slice test `tests/fleet/test_delegated_identity_served.py::test_actor_required_tools_succeed_for_a_user`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028.2
Token exchange behaviour
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Token exchange behaviour.** Subsystem: served operations, fleet. Shape: `arbora/access/delegation.py::exchange_for_actor(caller, connector_client_id)` calling new `arbora/identity/issuer.py::LocalIssuer.exchange(claims, audience)`. Rule: the exchange follows the token-exchange grant of RFC 8693, in process. The subject token is the verified caller token. The audience is the connector client id. The new token lifetime is the smaller of 300 s and the remaining caller lifetime. `exchange_id` is a random 16-byte hex value. Tools without `requires_actor` keep the process credential. Refusals: see `.4`. Writes: none. Depends: `ARBORA-IDENTITY-R028.1`. Caller chain: `arbora/fleet/multiplexer.py` forward (`_resolve_actor_exchange_bearer`, planned in `.3`) -> new `arbora/access/delegation.py::exchange_for_actor` -> new `LocalIssuer.exchange` in `arbora/identity/issuer.py` (planned). | Test: `tests/access/test_delegation.py::test_exchange_lifetime_audience_and_expired_caller` (L2). Verified by the root slice test `tests/fleet/test_delegated_identity_served.py::test_actor_required_tools_succeed_for_a_user`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028.3
Delegation wiring in fleet.call
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Delegation wiring in fleet.call.** Subsystem: served operations, fleet. Caller chain: served `fleet.call` → `arbora/api/ops/fleet.py` → `arbora/fleet/multiplexer.py` forward → new `_resolve_actor_exchange_bearer(cfg, tool)` beside `_resolve_remote_oauth_bearer`. Rule: for an actor-required tool, the function reads `current_actor()` from `arbora/security/actor_context.py`. It calls `exchange_for_actor` and sets the `Authorization` header of the forward. The connector then binds the subject through the SDK transport (`SCION-CONNECTOR-CONTROL-R902.3`). The multiplexer holds the only exchange call site. Writes: none. Depends: `ARBORA-IDENTITY-R028.2`, `SCION-CONNECTOR-CONTROL-R902.3`. Shape: new `_resolve_actor_exchange_bearer` in `arbora/fleet/multiplexer.py` beside `arbora/fleet/multiplexer.py::_resolve_remote_oauth_bearer` (line 1980), reading `arbora/security/actor_context.py::current_actor` (line 150) and calling `exchange_for_actor` of `arbora/access/delegation.py`. | Test: `tests/fleet/test_delegated_identity_served.py::test_actor_required_tools_succeed_for_a_user` (L3). A fixture connector reports the bound subject.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028.4
Delegation refusals
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Delegation refusals.** Subsystem: served operations, fleet. Caller chain: `_resolve_actor_exchange_bearer`. Rule: an actor-required call without a verified user caller refuses with `IDENTITY_DELEGATION_REQUIRED`. A failed exchange refuses with `IDENTITY_EXCHANGE_FAILED`. A refusal makes no connector call. The connector-side code `IDENTITY_AUDIENCE_MISMATCH` (`SCION-CONNECTOR-CONTROL-R902.4`) surfaces unchanged. Writes: none. Depends: `ARBORA-IDENTITY-R028.3`. Shape: refusal codes `IDENTITY_DELEGATION_REQUIRED` and `IDENTITY_EXCHANGE_FAILED` raised by `_resolve_actor_exchange_bearer` in `arbora/fleet/multiplexer.py` and mapped by `arbora/security/error_surface.py`. | Test: `tests/fleet/test_delegated_identity_served.py::test_refusals_make_no_connector_call` (L3). It asserts each code and a zero connector-call count.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028.5
Delegation evidence
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Delegation evidence.** Subsystem: served operations, fleet. Caller chain: `_resolve_actor_exchange_bearer` emits through `arbora/api/invoke/audit.py`. Rule: the event names caller subject, audience, `exchange_id` and `server/tool`. It holds no token text. Writes: the audit sink. Depends: `ARBORA-IDENTITY-R028.3`. Shape: `_resolve_actor_exchange_bearer` calls `arbora/api/invoke/audit.py::audit_event` (line 13) with caller subject, audience, `exchange_id` and `server/tool`; no token text is passed. | Test: `tests/fleet/test_delegated_identity_served.py::test_audit_event_names_exchange_and_holds_no_token` (L3). It reads the event and asserts the fields.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R028.6
Delegation hot-path proof
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Delegation hot-path proof.** Subsystem: served operations, fleet. Caller chain: served `fleet.call`. The test signs in a fixture user and calls a read-only tool of `keycloak-agent` and of `vector-mcp`. Rule: both calls succeed. The exchange adds under 50 ms p99, measured over 200 calls. Depends: `ARBORA-IDENTITY-R028.3` to `.5`. Shape: new served test `tests/fleet/test_delegated_identity_served.py` with a latency probe of 200 calls through the registry `invoke` path, in the style of `tests/fleet/test_multiplexer_dynamic_gateway.py`; no production code. | Test: `tests/fleet/test_delegated_identity_served.py::test_actor_required_tools_succeed_for_a_user` (L3). It asserts both successes and the p99 bound.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.7
Explicit WebUI identity-mode composition
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Explicit WebUI identity-mode composition.** Subsystem: admission, host composition. Caller: host bootstrap → `arbora/webui_host/webui_co_service.py` → `arbora/webui_host/session_boundary.py::identity_factory_kwargs(config.webui_auth_mode, boundary, factory=)`. Rule: the host selects `none`, `eg` or `oidc` through `runtime_config.webui_auth_mode` (env `WEBUI_AUTH_MODE`). The compatibility value `required` keeps the verifier-required path. Three cases raise `IdentityUnavailable` before the listener starts. They are an unknown mode, two owners for one mode and a missing engine session admission. A failed authenticated start never falls back to no-auth. Refusals: `IdentityUnavailable` with messages that name the mode only. Writes: none. Depends: `ARBORA-IDENTITY-R004.7.1`, `ARBORA-OPS-R032.2`. | Test: `tests/identity/test_identity_mode_composition.py::test_mode_selection_fails_closed` (L3). It builds the co-service in all four modes, asserts each refusal and asserts no fallback to `none`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.4
Host browser-session adapter
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Host browser-session adapter.** Subsystem: admission, mode `eg`. Caller: ASGI `/auth/*` and canonical data routes → `arbora/webui_host/session_boundary.py::CanonicalWebUIBoundaryMiddleware` → `WebUISessionBoundary` → `arbora/identity/admission.py::BrowserAdmission`. Rule: `/auth/*` goes to the configured host owner. The cookie-to-caller binding stays live for the whole HTTP invocation and is released on completion, error or cancellation. An expired, revoked or unavailable session refuses before any forward. The body is `{"error": "Authentication required"}` with status 401, or `{"error": "Identity unavailable"}` with status 503. The body never names the cause. A WebSocket upgrade closes with code 4401 and is never relabelled as HTTP. Refusals: `SESSION_EXPIRED`, `SESSION_REVOKED`, `IDENTITY_UNAVAILABLE` are internal reason codes in the audit event only. Evidence: one audit event per refusal with the reason code and no cookie text. Writes: none. Depends: `MEDULLA-TYPED-PACKS-R085.1`, `ARBORA-OPS-R032`. | Test: `tests/identity/test_browser_session_adapter_served.py::test_revoked_session_refuses_before_forwarding` (L3). It asserts cleanup on cancellation, rotation, concurrent isolation, the WebSocket close and a zero-forward count.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.5
Same-owner HTTP dispatch fence
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Same-owner HTTP dispatch fence.** Subsystem: admission, mode `eg`. Caller: ASGI request → `CanonicalWebUIBoundaryMiddleware` → `arbora/identity/admission.py::BrowserAdmission` → `arbora/api/invoke/pipeline.py` (`_policy`, `_effect`). Rule: one host authority instance resolves the browser caller and revalidates it at use time. The binding ties the exact caller to the exact request and asyncio task for one invocation. Arbora refuses a substituted caller, a second use and a task hop. After each await on the body or on visibility policy, it revalidates session liveness, scopes, rotation and MFA age. Native parameter validation, policy, compare-and-set and effect journals run unchanged. An error after invocation starts never becomes a pre-dispatch refusal. Refusals (internal reason codes): `CALLER_SUBSTITUTED`, `CALLER_REUSED`, `TASK_HOP`, `SESSION_REVOKED`, `SCOPE_CHANGED`, `SESSION_ROTATED`, `MFA_STALE`. The public body stays uniform as in `.4`. Evidence: the audit event holds the reason code, request id and caller id. Writes: none. Depends: `ARBORA-IDENTITY-R004.4`, `MEDULLA-TYPED-PACKS-R085.3`. | Test: `tests/identity/test_dispatch_fence_served.py::test_each_authority_change_refuses_before_dispatch` (L3). It asserts one case per reason code, positive dispatch, registry visibility, cancellation and cleanup.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.6
Explicit anonymous effect migration
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Explicit anonymous effect migration.** Subsystem: admission, mode `none`. Caller chain: anonymous HTTP or MCP request → `arbora/api/invoke/pipeline.py::_policy` → `arbora/security/anonymous.py::admit_effect`. Shape: add `admit_effect(op_id, target, action_digest)` to `anonymous.py`. It reads the operator list `identity.anonymous_effect_policy` from `~/.config/arbora/config.json`. The default is an empty list, which denies every effect. Each entry holds `op_id`, `target` and `action_digest` (SHA-256, 64 lowercase hex). Rule: an effect runs only when an entry matches the canonical operation, the validated parameters, the target and the digest. The shared dispatcher then applies containment and confirmation where the operation requires them. An anonymous actor never gains grants, identity, MFA or attended proof, and a route allowlist never creates them. Direct WebUI filesystem and configuration handlers stay denied. Refusals: `ANONYMOUS_EFFECT_NOT_ADMITTED`, `ANONYMOUS_DIRECT_EFFECT_DENIED`. Evidence: the effect journal records the matched entry digest. Writes: the effect journal through the shared dispatcher only. Depends: `ARBORA-IDENTITY-R004.3`. | Test: `tests/identity/test_anonymous_effects_served.py::test_effect_needs_operator_policy_entry` (L3). It asserts the direct-handler refusal, an admitted effect, a digest mismatch, consume-once replay and UI versus MCP equivalence.
requirementARBORA-IDENTITYSPECIFIEDtests/access/test_action_policy_source.py:9
tests/access/test_action_policy_source_async.py:11
tests/browser_control/test_local_attended_contract_guards.py:21
tests/browser_control/test_local_browser_boundary_contract.py:9
tests/browser_control/test_local_browser_channel.py:13
ARBORA-IDENTITY-R004.7.1
Host mode configuration source contract
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Host mode configuration source contract.** Host settings select required, none, eg or oidc without silent fallback. Missing or incompatible host owners refuse before startup. Caller chain: host start -> `arbora/webui_host/webui_co_service.py` -> `arbora/webui_host/session_boundary.py` mode selection. Shape: typed mode settings and factory arguments in `arbora/webui_host/session_boundary.py` selecting required, none, eg or oidc with no fallback; the incompatible-factory refusal is raised before startup. | Source tests exercise typed settings, factory arguments and refusal with an older incompatible WebUI factory. Test: `tests/webui_host/test_session_boundary.py::test_explicit_mode_composition_never_falls_back`
requirementARBORA-IDENTITYVERIFIEDd4ae6fb9949c
tests/webui_host/test_session_boundary.py:18
tests/webui_host/test_session_boundary.py:193
tests/webui_host/test_session_boundary.py:204
tests/webui_host/test_session_boundary.py:31
tests/webui_host/test_webui_contact_delivery.py:43
ARBORA-IDENTITY-R004.7.2
Installed identity-mode startup qualification
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Installed identity-mode startup qualification.** Subsystem: admission, release qualification. Caller chain: `tests/qualification/identity/test_installed_modes.py` installs the wheel and starts the co-service in modes `required`, `none`, `eg` and `oidc` with matching providers. Rule: each start serves its own sign-in path. A provider failure at start exits non-zero. A mode change needs a restart and revokes live sessions. Source configuration tests never satisfy this row. Depends: `ARBORA-IDENTITY-R004.7`. Shape: new `tests/qualification/identity/test_installed_modes.py` in the style of `tests/qualification/browser/test_installed_native_browser.py`, starting the installed co-service in each mode; no production code. | Test: `tests/qualification/identity/test_installed_modes.py::test_each_mode_starts_or_fails_closed` (L6). It asserts the start result and the exit code per mode and provider failure.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.4.1
Bound HTTP adapter source contract
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Bound HTTP adapter source contract.** The adapter preserves host-owned auth routing and exact request admission lifetime. Synthetic revocation, unavailable authority and unsupported cookie WebSockets refuse safely. Caller chain: browser request -> `arbora/webui_host/session_boundary.py` bound HTTP adapter -> host-owned auth routing -> `arbora/identity/browser_runtime.py::BrowserAuthApplication`. Shape: the adapter in `arbora/webui_host/session_boundary.py`, which keeps the `/auth` namespace with the host and forwards admitted requests with exact admission lifetime; refusals use redacted error bodies. | Source fixtures prove routing, cleanup, redaction and refusal; they do not prove deployed login. Test: `tests/webui_host/test_session_boundary.py::test_admission_failure_does_not_forward_or_reflect_details`
requirementARBORA-IDENTITYVERIFIED68c58c6e80df
6e1cda364e4d
d4ae6fb9949c
tests/identity/test_browser_runtime.py:25
tests/webui_host/test_session_boundary.py:110
tests/webui_host/test_session_boundary.py:150
tests/webui_host/test_session_boundary.py:161
tests/webui_host/test_session_boundary.py:48
ARBORA-IDENTITY-R004.4.2
Installed browser identity lifecycle qualification
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Installed browser identity lifecycle qualification.** Subsystem: admission, release qualification. Caller chain: `tests/qualification/identity/test_installed_browser_lifecycle.py` installs the built wheel, starts `arbora/webui_host/webui_co_service.py` in mode `eg`, and drives `tests/qualification/browser/browser_login.mjs`. Steps: login, read `/auth/session`, renew, rotate the session, log out, revoke from the administrator route, then attempt a WebSocket upgrade. Rule: each step asserts the expected status and the `__Host-arbora_session` cookie state. The upgrade must close with code 4401. The probe prints no cookie, token or credential. The run belongs to the release qualification in `docs/release-qualification-runbook.md`. Depends: `ARBORA-IDENTITY-R004.4`, `ARBORA-IDENTITY-R005.2`, `MEDULLA-TYPED-PACKS-R085.1`. Shape: new `tests/qualification/identity/test_installed_browser_lifecycle.py` reusing `tests/qualification/browser/browser_login.mjs` and the infrastructure helpers in `tests/qualification/browser/infrastructure.py`; no production code. | Test: `tests/qualification/identity/test_installed_browser_lifecycle.py::test_login_renew_rotate_logout_revoke` (L6). It asserts the full lifecycle against a real issuer and engine.
requirementARBORA-IDENTITYSPECIFIEDtests/qualification/browser/test_installed_native_browser.py:11
ARBORA-IDENTITY-R004.5.1
Private same-owner dispatch source contract
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Private same-owner dispatch source contract.** Resolve and revalidate one exact caller through the same owner. Reject request or task substitution, duplicate consumption and authority changes after awaits. Preserve post-dispatch outcomes and cleanup. Caller chain: browser invocation -> `arbora/api/http/browser_app.py` -> same-owner dispatch fenced in `arbora/api/invoke/pipeline.py` -> existing invoke. Shape: the invocation fence in `arbora/api/http/browser_app.py` and `arbora/api/invoke/pipeline.py`, binding request and task identity and revalidating authority after each await. | Synthetic-owner tests prove bounded non-streaming dispatch, mounted routing, races and cancellation without claiming native effects. Test: `tests/api/test_browser_invocation_fence.py::test_body_await_transition_is_fenced_before_existing_invoke`
requirementARBORA-IDENTITYVERIFIED6e1cda364e4d
d4ae6fb9949c
tests/api/test_browser_invocation_fence.py:118
tests/api/test_browser_invocation_fence.py:145
tests/api/test_browser_invocation_fence.py:175
tests/api/test_browser_invocation_fence.py:225
tests/api/test_browser_invocation_fence.py:256
ARBORA-IDENTITY-R004.5.2
Canonical WebUI factory safety source contract
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Canonical WebUI factory safety source contract.** The actual WebUI factory routes canonical operations through the bound host. Explicit EG composition keeps the static sign-in shell public without a second legacy identity owner. Canonical data routes still require admission, and other modes keep their existing composer. Preserve body limits, privacy, effective rate policy and bounded capacity. Unmigrated dynamic handlers remain unavailable. Caller chain: the actual WebUI factory started by `arbora/webui_host/webui_co_service.py` -> `arbora/webui_host/session_boundary.py` -> canonical bound operations of the hosted invoke pipeline. Shape: the factory composition in `arbora/webui_host/session_boundary.py`; explicit EG mode keeps the static sign-in shell public and routes data routes through admission, reusing the hosted invoke services. | Factory source tests use synthetic issuer/runtime facts and one shared-pipeline read. Cover malformed bodies, redaction, rate and capacity refusal. Test: `tests/webui_host/test_canonical_browser_composition.py::test_actual_webui_factory_dispatches_only_canonical_bound_operations`
requirementARBORA-IDENTITYVERIFIED6e1cda364e4d
a78249aec3fd
d4ae6fb9949c
tests/identity/test_browser_broker.py:14
tests/mcp_server/test_browser_composition.py:11
tests/mcp_server/test_browser_dispatch.py:14
tests/qualification/test_browser_fixture_contract.py:17
tests/webui_host/test_canonical_browser_composition.py:50
ARBORA-IDENTITY-R004.5.3
Installed dispatch and streaming qualification
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Installed dispatch and streaming qualification.** Subsystem: admission, release qualification. Caller chain: `tests/qualification/identity/test_installed_dispatch.py` runs the installed WebUI and host with a real engine. Rule: a state-changing operation runs through the real policy, compare-and-set and effect journal. A streaming response holds its caller binding until the final chunk. Revocation during a stream closes it within a fixed limit of 5 s. The task that opened the stream owns the binding for its whole life. Depends: `ARBORA-IDENTITY-R004.5`, `ARBORA-IDENTITY-R004.4.2`. Shape: new `tests/qualification/identity/test_installed_dispatch.py` using the installed-package helpers of `tests/qualification/browser/infrastructure.py`; no production code. | Test: `tests/qualification/identity/test_installed_dispatch.py::test_stream_closes_on_revocation` (L6). It asserts the effect journal entry and the stream close within 5 s.
requirementARBORA-IDENTITYSPECIFIEDtests/qualification/browser/test_installed_native_browser.py:12
ARBORA-IDENTITY-R004.8
Anonymous task access (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Anonymous task access (rollup).** Subsystem: admission, mode `none`, A2A. Entry: A2A `tasks/get` → `arbora/a2a/authority.py`. Children: `.1` served read contract, `.2` native ownership, `.3` native client adapter. Explicit none mode uses a distinct anonymous caller and engine-native ownership checks. Depends: `MEDULLA-IDENTITY-R003.1`. | Root journey: `tests/a2a/test_anonymous_task_reads_served.py::test_native_owner_checks_anonymous_tasks` (L3). All children pass, and no synthetic port qualifies native access.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.8.1
Served read contract
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Served read contract.** An opt-in A2A factory shares A2AService with its exact anonymous owner. Policy defaults to no methods and permits only tasks/get. The caller has no authenticated identity or GraphSession. Bind request, task, target and policy until the read ends. Reject credentials, host or origin changes, duplicate JSON, oversized bodies and expired requests. Hold capacity until cancellation unwinds. Return only native-bound status and context references. Caller chain: A2A `tasks/get` in none mode -> `arbora/a2a/anonymous.py::create_anonymous_a2a_application` (line 427) -> `AnonymousTaskReadOwner` -> `AnonymousNativeReadPort`. Shape: `arbora/a2a/anonymous.py::AnonymousReadPolicy` (line 30), `AnonymousCaller`, `AnonymousTaskStatus`, `AnonymousTaskReadOwner` and `_ReadBinding` in `arbora/a2a/anonymous.py`, sharing `A2AService`. | Source tests use an explicit synthetic native port. They prove refusal, one-use binding, task isolation, cancellation, timeout, namespace checks and no cache disclosure. No deployment or native producer is qualified by this child. Test: `tests/a2a/test_anonymous_reads.py::test_served_read_uses_same_owner_and_returns_only_status`
requirementARBORA-IDENTITYVERIFIED236058622cf1
tests/a2a/test_anonymous_reads.py:22
ARBORA-IDENTITY-R004.8.2
Native anonymous task ownership
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Native anonymous task ownership.** Subsystem: admission, mode `none`, A2A. Caller chain: A2A `tasks/get` in none mode. Next call: `arbora/a2a/authority.py` (the factory of `.8.1`). Next call: the native client adapter of `.8.3`. Next call: engine `GetRunWorkItem`. Rule: the reader binds to the engine's explicit local anonymous authority (`MEDULLA-IDENTITY-R003.1`). The engine owner check decides, never request metadata. Anonymous tasks are readable by any anonymous local reader of the same namespace and by no authenticated caller. The factory composes only in none mode and only after the native client adapter reports support. There is no enabling switch. Refusals: `ANON_OWNER_MISMATCH`, `ANON_NAMESPACE_MISMATCH`, `ANON_CLIENT_SUBSTITUTED`. Evidence: audit event with task id and reason code. Writes: none. Depends: `ARBORA-IDENTITY-R004.8.1`, `ARBORA-IDENTITY-R004.8.3`. Shape: `arbora/a2a/anonymous_native.py::EgAnonymousTaskReadPort` (line 21) implementing `AnonymousNativeReadPort`, composed only in none mode by `create_anonymous_a2a_application`; owner decisions come from the engine `GetRunWorkItem` answer. | Test: `tests/a2a/test_anonymous_task_reads_served.py::test_native_owner_checks_anonymous_tasks` (L3). It creates anonymous and authenticated tasks, reads across restart, and asserts each refusal code and no credential fallback.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.8.3
Native client source adapter
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Native client source adapter.** Use the existing owner-bound GetRunWorkItem method on an exact public EG client in explicit none mode. Negotiate support and check mode before and after awaits. Bind the trusted graph through the public generated sender before the read. Check immutable admission graph, local tenant and run identity. Never use generic GetWorkItem, caller context claims or mutable metadata as owner authority. Caller chain: `AnonymousTaskReadOwner` in `arbora/a2a/anonymous.py` -> `arbora/a2a/anonymous_native.py::EgAnonymousTaskReadPort` (line 21) -> engine `GetRunWorkItem` through the generated sender. Shape: `arbora/a2a/anonymous_native.py::EgAnonymousTaskReadPort` (line 21) only; it uses the public EG client, checks mode before and after awaits and never calls generic `GetWorkItem`. | Real public client and decoder tests use a synthetic transport. They prove exact method use, missing or wrong-owner refusal, graph mismatch and mode changes. Installed native ownership remains R004.8.2. Test: `tests/a2a/test_anonymous_native_reads.py::test_foreign_owner_none_has_no_getworkitem_fallback`
requirementARBORA-IDENTITYVERIFIED236058622cf1
tests/a2a/test_anonymous_native_reads.py:12
ARBORA-IDENTITY-R004.9
Local anonymous text execution (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Local anonymous text execution (rollup).** Subsystem: admission, mode `none`. Entry: the bounded text-send operation in none mode. Children `.1` source composition, `.2` installed proof, `.3` durable answer recovery. The host permits a bounded text send without an authenticated session. Depends: `ARBORA-IDENTITY-R004.3`. | Root journey: `tests/identity/test_anonymous_text_send_served.py::test_bounded_text_send_without_session` (L3). All three children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.9.1
Source text send
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Source text send.** An explicit loopback policy permits only a bounded text send. A native run admission, one exact lease and a fenced completion surround the received text-only harness. The stable request key is separate from its content digest. A replay never repeats model work. The host checks native completion before returning a live answer. It creates no authenticated session and inherits no host identity. Limits cover each run and native in-flight work, not cumulative spending. Caller chain: anonymous text send over loopback -> `arbora/a2a/anonymous_send.py::anonymous_text_app` (line 749) -> `AnonymousTextService` -> native run admission (`arbora/native_run_admission.py`) and the text-only harness. Shape: `arbora/a2a/anonymous_send.py::AnonymousTextPolicy` (line 37) and `arbora/a2a/anonymous_send.py::AnonymousTextService` (line 60) with the request key kept apart from `_digest` of the content. | Synthetic native transport and model response tests exercise the real public client and harness. Changed content, missing capability, expired lease, cancellation, tools and unknown completion refuse. Test: `tests/a2a/test_anonymous_send.py::test_default_empty_policy_never_reaches_native_or_model`
requirementARBORA-IDENTITYVERIFIEDd7b1f542f105
tests/a2a/test_anonymous_send.py:24
ARBORA-IDENTITY-R004.9.2
Installed local execution qualification
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Installed local execution qualification.** Subsystem: admission, release qualification. Caller chain: `tests/qualification/identity/test_installed_anonymous_text.py` starts the installed none-mode transport, a real engine process and the constrained harness with a simulated model. Rule: the run covers restart, 8 concurrent requests, cancellation and policy withdrawal. Each case asserts the run owner, one lease and a fenced completion. Authenticated paths keep their checks. Depends: `ARBORA-IDENTITY-R004.9.1`, `ARBORA-IDENTITY-R004.8.2`. Shape: new `tests/qualification/identity/test_installed_anonymous_text.py` using the installed-package helpers of `tests/qualification/browser/infrastructure.py`; no production code. | Test: `tests/qualification/identity/test_installed_anonymous_text.py::test_full_served_path` (L6). It asserts the answer, the lease state and the refusal after policy withdrawal.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.9.3
Durable answer recovery (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Durable answer recovery (rollup).** Subsystem: admission, mode `none`. Children `.1` source answer storage and `.2` installed restart proof. Entry: the replay of a bounded text send after a restart. Depends: `ARBORA-IDENTITY-R004.9.1`. | Root journey: `tests/identity/test_anonymous_text_send_served.py::test_replay_returns_stored_answer` (L3). Both children pass.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R004.9.3.1
Source answer storage
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Source answer storage.** Store a bounded terminal event with the existing native node methods. Check its exact content before committing its reference under the native lease. A replay reads only the reference in the owner-bound completion and checks the full content digest and run identity. Caller chain: `AnonymousTextService` in `arbora/a2a/anonymous_send.py` -> answer store calls on the public engine client (node write and read) -> replay path of the same service. Shape: the answer store inside `arbora/a2a/anonymous_send.py::AnonymousTextService` (line 60) using existing native node methods and the `_digest` helper for the full content digest. | Synthetic public-client tests cover map and encoded properties, service recreation, changed content and missing receipts. No process cache or text in a result reference supplies the answer. Test: `tests/a2a/test_anonymous_send.py::test_recreated_service_recovers_native_answer_and_refuses_tamper`
requirementARBORA-IDENTITYVERIFIEDd7b1f542f105
tests/a2a/test_anonymous_send.py:25
ARBORA-IDENTITY-R004.9.3.2
Installed answer recovery qualification
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Installed answer recovery qualification.** Subsystem: admission, release qualification. Caller chain: `tests/qualification/identity/test_installed_answer_recovery.py` restarts the native engine and the host between a send and its replay. Rule: the replay returns the original answer. It refuses with `ANSWER_MISSING`, `ANSWER_CHANGED` or `ANSWER_FOREIGN` when the stored content is absent, altered or owned by another run. The digest is SHA-256 over the full content. Depends: `ARBORA-IDENTITY-R004.9.3.1`. Shape: new `tests/qualification/identity/test_installed_answer_recovery.py` using the installed-package helpers of `tests/qualification/browser/infrastructure.py`; no production code. | Test: `tests/qualification/identity/test_installed_answer_recovery.py::test_replay_survives_restarts` (L6). It asserts the original answer and each refusal code.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R013.1
CLI skeleton with claim and link-claim
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**CLI skeleton with claim and link-claim.** Subsystem: operator tooling. Caller chain: `arbora-identity` → `arbora/identity/cli.py::main` → `claim` and `link_claim` → the engine `Identity` method through `arbora/identity/composition.py::build_engine_identity_ports`. Rule: `claim --username <name>` claims the `usr:bootstrap` administrator of a fresh store and enrols a password read from the terminal prompt. `link-claim --provider <id>` links the claimed administrator to a provider identity and runs the link migration dry run first. Each command prints one JSON object `{"command", "ok", "detail"}` and exits 0 or 2. Refusals: `CLAIM_ALREADY_DONE`, `LINK_OWNERSHIP_CHANGES`, `STORE_NOT_FRESH`. Evidence: audit event per command. Writes: engine `Identity` calls. Depends: `MEDULLA-IDENTITY-R003`. Shape: new `arbora/identity/cli.py` with `main`, `claim` and `link_claim`, registered as the console script `arbora-identity` in `pyproject.toml`, building ports with `arbora/identity/composition.py::build_engine_identity_ports` (line 61) and printing one JSON object. | Test: `tests/identity/test_identity_cli.py::test_claim_and_link_claim_typed_results` (L3). It runs `main` with a recorded engine and asserts the JSON result and each refusal code.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R013.2
CLI transition, reset-admin and rotate
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**CLI transition, reset-admin and rotate.** Subsystem: operator tooling. Caller chain: `arbora-identity transition|reset-admin|rotate` → `arbora/identity/cli.py::main`. Rule: `transition --to none|local|external` runs the wizard steps of `ARBORA-IDENTITY-R007.2` non-interactively and calls the engine mode compare-and-set. It rotates the issuer signer and revokes sessions. `reset-admin` issues a one-time reset token shown once on the terminal. `rotate` replaces the issuer signing key in the ring `arbora/identity/issuer-signing-keys`. It keeps the previous key for `identity.issuer.key_overlap_seconds` (default 600, range [300, 86400], unit seconds). Refusals: `TRANSITION_PRECONDITION_FAILED`, `ROTATION_OVERLAP_ACTIVE`. Evidence: audit event per command. Writes: engine mode singleton, session revocation, key ring. Depends: `ARBORA-IDENTITY-R013.1`, `ARBORA-IDENTITY-R007.2`. Shape: add `transition`, `reset-admin` and `rotate` functions to the new `arbora/identity/cli.py` (see `ARBORA-IDENTITY-R013.1`), calling `transition_mode_step` of `arbora/identity/admin_console.py` and the engine mode compare-and-set through `build_engine_identity_ports`; the key ring is the `SigningKeyStore` of `arbora/identity/ports.py`. | Test: `tests/identity/test_identity_cli.py::test_transition_reset_and_rotate` (L3). It asserts the typed results, token shown once, key overlap and session revocation.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R013.3
Doctor diagnostics for exposed mode and generated secret
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Doctor diagnostics for exposed mode and generated secret.** Subsystem: operator tooling. Caller chain: `setup-config doctor` and served `ops.doctor` → `arbora/deployment/doctor.py::_check_auth` → new `_check_identity_exposure`. Rule: the check returns status `fail` in three cases. Mode `none` is bound to a non-loopback host. `ARBORA_AUTH_NONE_EXPOSE` is set. `GRAPH_SERVICE_AUTH_SECRET` was generated automatically under a production profile. Each failure carries a `check` key `identity.exposed_none_mode` or `identity.generated_secret`. Refusals: none. Writes: none. Depends: `ARBORA-IDENTITY-R004.2`. Shape: new `_check_identity_exposure` in `arbora/deployment/doctor.py` beside `arbora/deployment/doctor.py::_check_auth` (line 1467), returning the existing check dict shape with `check` keys `identity.exposed_none_mode` and the generated-secret key; it reads the same settings as `arbora/security/anonymous.py`. | Test: `tests/identity/test_identity_doctor.py::test_doctor_fails_for_exposed_mode_and_generated_secret` (L3). It calls `ops.doctor` over HTTP and asserts both failing checks.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R014.1
Mode transition operation
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Mode transition operation.** Stage: served operations, identity. Caller chain: registered served operation `identity.mode_transition` in new `arbora/api/ops/identity_mode.py`, registered in the curated module loop of `arbora/api/ops/registry_factory.py` → `eg.security.IdentityModeTransition`. Params: `to`, `expected_epoch`. The operation previews first, requires admin approval, and returns the new epoch. Refusals pass through with the engine code. It never decides a precondition itself. Provider: `MEDULLA-IDENTITY-R003.7`. The round trip of `ARBORA-IDENTITY-R014` uses this operation. Shape: new `arbora/api/ops/identity_mode.py::operations()` following the `OpSpec` pattern of `arbora/api/ops/access.py::operations` (line 151), with pydantic params `to` and `expected_epoch` and a preview-first write effect that forwards to `eg.security.IdentityModeTransition` through the engine client. | Test: `tests/api/test_identity_mode_ops.py::test_transition_round_trip_over_http_and_mcp` (L3) invokes the operation through the registry over HTTP and MCP against a loopback engine.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.1
Identity operations module and port
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Identity operations module and port.** Subsystem: served operations, identity. Shape: new `arbora/api/ops/identity.py` with `operations()` and pydantic param models, and `IdentityAdminPort` (Protocol) in `arbora/identity/ports.py`. Rule: the module follows the `arbora/api/ops/access.py` pattern (`_op` helper, `Composite` handlers, `Verb`, `Effect`, `AuditClass.EVENT` for mutations). The `IdentityAdminPort` implementation sits in `arbora/identity/composition.py::build_engine_identity_ports` and calls the engine `Identity`, `RbacAdmin` and `RegisterIdentity` methods. Handlers raise `RuntimeError("identity admin port is not bound")` when the service is missing, like `capacity.py`. Writes: none in this row. Depends: `ARBORA-OPS-R032.2.1`. Caller chain: registry build `arbora/api/ops/registry_factory.py::get_registry` (line 16) imports the new `arbora/api/ops/identity.py` module tuple entry -> `operations()` -> handlers -> `IdentityAdminPort` implemented in `arbora/identity/composition.py::build_engine_identity_ports` (planned). | Test: `tests/api/test_identity_ops.py::test_module_declares_every_operation_with_scopes_and_effects` (L1). Verified by the root slice test `tests/identity/test_identity_ops_served.py::test_each_identity_operation_and_admin_gate`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.2
Self operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Self operations.** Subsystem: served operations, identity. Caller chain: HTTP and MCP → registry `invoke` → handlers in `arbora/api/ops/identity.py`: `identity.self.get`, `identity.self.sessions.list`, `identity.self.sessions.revoke`, `identity.clients.list` and `identity.clients.get` (`ARBORA-IDENTITY-R026.5` and `.7`). Scope `identity:self` (class user). The caller reads only its own record, with `capabilities.email` from `ARBORA-IDENTITY-R016`. Revoking a session of another user refuses with `SESSION_NOT_OWNED`. Writes: `sessions.revoke` calls `CallerRevocations.revoke_caller` when the target is the live session (`ARBORA-IDENTITY-R029.5`). Depends: `ARBORA-IDENTITY-R018.1`. Shape: handlers for `identity.self.get`, `identity.self.sessions.list`, `identity.self.sessions.revoke`, `identity.clients.list` and `identity.clients.get` in the new `arbora/api/ops/identity.py`, using the `_op` helper pattern of `arbora/api/ops/access.py` and `IdentityAdminPort`. | Test: `tests/identity/test_identity_ops_served.py::test_self_operations_see_only_own_record` (L3). It asserts own-only rows and the refusal code.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.3
User, session, API key and service account operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**User, session, API key and service account operations.** Subsystem: served operations, identity. Operations: `identity.users.list|get|create|disable|enable`, `identity.sessions.list|revoke`, `identity.api_keys.list|create|revoke`, `identity.service_accounts.list|create|disable`. Rule: Every `identity.*` admin operation needs the exact scope `identity:admin` and a console-origin caller (`arbora/api/invoke/pipeline.py::_console_ready`). Mutations use `Effect.ADMIN`, which requires MFA no older than `identity.admin.mfa_max_age_seconds` (default 300, range [60, 900], unit seconds). An API key is shown once at creation and stored as a hash by the engine. Disabling a user revokes the user's sessions. Refusals: `USER_EXISTS`, `USER_NOT_FOUND`, `LAST_ADMIN_PROTECTED`. Evidence: the audit event of `arbora/api/invoke/audit.py`. Writes: engine `Identity` and `RegisterIdentity` calls. Depends: `ARBORA-IDENTITY-R018.1`. Caller chain: HTTP and MCP -> registry `invoke` -> `arbora/api/invoke/pipeline.py::_policy` (line 238) and `_console_ready` -> handlers `identity.users.*`, `identity.sessions.*`, `identity.api_keys.*`, `identity.service_accounts.*` in the new `arbora/api/ops/identity.py` -> `IdentityAdminPort`. Shape: pydantic param models and handlers in the new `arbora/api/ops/identity.py` with `Effect.ADMIN` for mutations, backed by the `IdentityAdminPort` of `arbora/identity/ports.py`; api-key logic reuses `arbora/identity/api_keys.py::effective_scopes`. | Test: `tests/identity/test_identity_ops_served.py::test_user_session_key_and_service_account_operations` (L3). It asserts each operation and the refusal codes.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.4
Role, group and provider operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Role, group and provider operations.** Subsystem: served operations, identity. Operations: `identity.roles.list|assign|remove`, `identity.groups.list|set_members`, `identity.providers.list|upsert|delete|mapping_dry_run`. Rule: Every `identity.*` admin operation needs the exact scope `identity:admin` and a console-origin caller (`arbora/api/invoke/pipeline.py::_console_ready`). Mutations use `Effect.ADMIN`, which requires MFA no older than `identity.admin.mfa_max_age_seconds` (default 300, range [60, 900], unit seconds). `mapping_dry_run` is read-only and calls `arbora/identity/admin_console.py::dry_run_mapping` (`ARBORA-IDENTITY-R007.2`). A role change sends the full intended role set, because the engine `RegisterIdentity` replaces the set. Provider upsert validates secrets as `env://` or `openbao://` references. Refusals: `ROLE_UNKNOWN`, `PROVIDER_INVALID`, `MAPPING_RULE_INVALID`. Writes: engine `RbacAdmin` and `RegisterIdentity` calls. Depends: `ARBORA-IDENTITY-R018.1`. Caller chain: HTTP and MCP -> registry `invoke` -> `arbora/api/invoke/pipeline.py::_policy` (line 238) and `_console_ready` -> handlers `identity.roles.*`, `identity.groups.*`, `identity.providers.*` in the new `arbora/api/ops/identity.py` -> `IdentityAdminPort`. Shape: handlers in the new `arbora/api/ops/identity.py`; `identity.providers.mapping_dry_run` calls `dry_run_mapping` of `arbora/identity/admin_console.py`; mutations use `Effect.ADMIN`. | Test: `tests/identity/test_identity_ops_served.py::test_role_group_provider_operations_and_dry_run_writes_nothing` (L3). It asserts the replaced role set and the zero-write dry run.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.5
Policy, mode, issuer, audit and SCIM client operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Policy, mode, issuer, audit and SCIM client operations.** Subsystem: served operations, identity. Operations: `identity.policy.get|set`, `identity.mode.get|transition_step`, `identity.issuer.get|rotate`, `identity.audit.list|verify`, `identity.scim.clients.list|upsert|revoke`. Rule: Every `identity.*` admin operation needs the exact scope `identity:admin` and a console-origin caller (`arbora/api/invoke/pipeline.py::_console_ready`). Mutations use `Effect.ADMIN`, which requires MFA no older than `identity.admin.mfa_max_age_seconds` (default 300, range [60, 900], unit seconds). `mode.transition_step` runs one wizard step of `ARBORA-IDENTITY-R007.2`. `audit.verify` returns the engine audit chain verdict (`AuditVerify`). `issuer.rotate` follows `ARBORA-IDENTITY-R013.2`. Refusals: `STEP_OUT_OF_ORDER`, `ROTATION_OVERLAP_ACTIVE`, `AUDIT_CHAIN_BROKEN`. Writes: engine mode compare-and-set, key ring, SCIM credential records. Depends: `ARBORA-IDENTITY-R018.1`, `ARBORA-IDENTITY-R011.2.4`. Caller chain: HTTP and MCP -> registry `invoke` -> `arbora/api/invoke/pipeline.py::_policy` (line 238) and `_console_ready` -> handlers `identity.policy.*`, `identity.mode.*`, `identity.issuer.*`, `identity.audit.*`, `identity.scim.clients.*` in the new `arbora/api/ops/identity.py` -> `IdentityAdminPort`. Shape: handlers in the new `arbora/api/ops/identity.py`; `identity.mode.transition_step` calls `transition_mode_step` of `arbora/identity/admin_console.py` and `identity.issuer.rotate` calls the rotate path of `arbora/identity/issuer.py::LocalIssuer`. | Test: `tests/identity/test_identity_ops_served.py::test_policy_mode_issuer_audit_scim_operations` (L3). It asserts each operation and refusal code.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.6
Admin gate
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Admin gate.** Subsystem: served operations, identity. Caller chain: registry `invoke` → `arbora/api/invoke/pipeline.py::_policy`. Rule: Every `identity.*` admin operation needs the exact scope `identity:admin` and a console-origin caller (`arbora/api/invoke/pipeline.py::_console_ready`). Mutations use `Effect.ADMIN`, which requires MFA no older than `identity.admin.mfa_max_age_seconds` (default 300, range [60, 900], unit seconds). Refusals: `SCOPE_MISSING`, `CONSOLE_ORIGIN_REQUIRED`, `MFA_STALE`. Each refusal runs zero handlers and writes zero engine calls. Writes: none. Depends: `ARBORA-IDENTITY-R018.1`. Shape: extend `arbora/api/invoke/pipeline.py::_policy` (line 238) and `_console_ready` with the exact `identity:admin` scope, console-origin and MFA-age checks (`identity.admin.mfa_max_age_seconds`) for operations whose id starts with `identity.`, raising the refusals `SCOPE_MISSING`, `CONSOLE_ORIGIN_REQUIRED`, `MFA_STALE` through `arbora/api/errors.py`. | Test: `tests/identity/test_identity_ops_served.py::test_admin_mutations_denied_without_scope_origin_or_fresh_mfa` (L3). It asserts each code and a zero engine-call count.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R018.7
Identity operations served parity
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Identity operations served parity.** Subsystem: served operations, identity. Caller chain: HTTP and MCP `tools/call` through registry `invoke`. Rule: for each operation both surfaces return identical results and identical refusal codes. A cross-tenant caller sees no rows of another tenant. Depends: `ARBORA-IDENTITY-R018.2` to `.6`. Shape: new served test `tests/identity/test_identity_ops_served.py` driving HTTP and MCP through registry `invoke` with the fixture engine of `tests/_eg_fakes.py`; no production code. | Test: `tests/identity/test_identity_ops_served.py::test_http_and_mcp_parity_and_cross_tenant_negative` (L3). It asserts equal results per operation and a cross-tenant negative case.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R019.7
Register approvals operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Register approvals operations.** Subsystem: served operations, access. Caller chain: registry `invoke` → new `OpSpec` entries `approvals.list`, `approvals.get`, `approvals.grant`, `approvals.deny` in `arbora/api/ops/access.py::operations` → existing `arbora/access/service.py::list_approvals`, `get_approval`, `grant_approval`, `deny_approval`. Rule: scopes are `approvals:read` for list and get, and `approvals:decide` for grant and deny. Both are class approver in `arbora/security/scope_registry.py`. Grant and deny use `Effect.ADMIN`. Self-approval and delegated approval refuse with `SELF_APPROVAL_DENIED`. Delete the comment that says the scopes are missing. Evidence: audit event per decision. Writes: the engine approval record only. Depends: `ARBORA-IDENTITY-R019`. Shape: four new `OpSpec` entries built with the `_op` helper in `arbora/api/ops/access.py::operations` (line 151) whose handlers are the existing `arbora/access/service.py::list_approvals` (line 126), `get_approval`, `grant_approval` and `deny_approval`; scopes `approvals:read` and `approvals:decide` must exist in `arbora/security/scope_registry.py`. | Test: `tests/api/test_access_ops.py::test_approvals_operations_registered_and_self_approval_denied` (L3). It asserts the four registered operations, the scopes and the refusal over HTTP and MCP.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R651
Share grant and revoke operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Share grant and revoke operations.** Register the operations `access.share.grant` and `access.share.revoke` in `arbora/api/ops/access.py`. Each takes `node_id`, `scope` and `grantees`. The handler calls the engine `RbacAdmin` operations `ShareGrant` and `ShareRevoke` under the caller's verified authority. Arbora decides nothing: it maps the engine refusals `ACCESS_DENIED`, `AUTH_TENANT_MISMATCH` and `INVALID_ARGUMENT` to its error model. Scope `access:share` is a user scope. Depends: `MEDULLA-IDENTITY-R023.13.3`. Caller chain: HTTP and MCP -> registry `invoke` -> `arbora/api/ops/access.py::operations` (line 151) entries `access.share.grant` and `access.share.revoke` -> new handlers in `arbora/access/service.py` -> engine `RbacAdmin` `ShareGrant` and `ShareRevoke`. Shape: two `OpSpec` entries and params model (`node_id`, `scope`, `grantees`) in `arbora/api/ops/access.py`, handlers `grant_share` and `revoke_share` in `arbora/access/service.py` using the same engine client as `arbora/access/service.py::request_elevation` (line 64). | Test: `tests/api/test_access_ops.py::test_share_grant_and_revoke_reach_engine` (L3) over HTTP and MCP with a loopback medulla engine.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R652
Graph ownership plan and apply operations
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Graph ownership plan and apply operations.** Register `access.ownership.plan` (read) and `access.ownership.apply` (write, approval required) in `arbora/api/ops/access.py`. The plan operation calls the engine `GraphOwnershipPlan`. The apply operation passes the plan digest and the approval reference to the engine `RbacAdmin` batch. Arbora holds the approval and adds no ownership logic. Scope `access:ownership` is an admin scope. Depends: `MEDULLA-IDENTITY-R700.3`. Caller chain: HTTP and MCP -> registry `invoke` -> `arbora/api/ops/access.py::operations` (line 151) entries `access.ownership.plan` and `access.ownership.apply` -> new handlers in `arbora/access/service.py` -> engine `GraphOwnershipPlan` and `RbacAdmin` batch. Shape: two `OpSpec` entries in `arbora/api/ops/access.py` (apply requires an approval reference through the plan flow of `arbora/api/invoke/plan.py`) and handlers `plan_ownership` and `apply_ownership` in `arbora/access/service.py`. | Test: `tests/api/test_access_ops.py::test_ownership_apply_requires_approval` (L3) over HTTP and MCP with a loopback medulla engine.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R030
Coding clients and terminal UIs authenticate natively (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Coding clients and terminal UIs authenticate natively (rollup).** Subsystem: admission. A coding client or the terminal UI connects to the served MCP endpoint with its own OAuth credentials. No token-refresh service and no stdio bridge sits between them. Children `.1` to `.4`. Depends: `ARBORA-IDENTITY-R027`. | Root L3 test: `tests/identity/test_native_client_auth_served.py::test_enrolled_client_calls_mcp_with_its_own_token` enrols a client, fetches a token and calls the served endpoint.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R030.1
`arbora clients enroll` creates one machine client
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**`arbora clients enroll` creates one machine client.** Caller: the arbora command line, then the identity provider admin interface. The command creates one client-credentials client for one named client. It grants only the scopes that the operator names. It stores the client secret in the host secret store. The secret must never reach the terminal, a log or a plain file. Refusal: enrolling a name that exists must refuse with a stable code and change nothing. Records written: one audit record. Caller chain: the `arbora clients enroll` command → the enrolment function in `arbora/identity/client_enrollment.py` (planned) → the identity provider admin client → the host secret store write. Shape: `ClientEnrollment { name, scopes[], secret_ref }` returns the secret reference only. It reuses the secret store port of `ARBORA-IDENTITY` and the audit record writer. | Test: `tests/identity/test_clients_enroll.py::test_enroll_stores_secret_in_vault_and_prints_none` and `::test_existing_name_refuses_without_change`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R030.2
`arbora token` prints a fresh bearer token for a header helper
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**`arbora token` prints a fresh bearer token for a header helper.** The command prints one access token on standard output. It caches the token until shortly before expiry. It prints no secret on standard error. A client that supports a header helper may run the command on each connection. Depends: `ARBORA-IDENTITY-R030.1`. Caller chain: the `arbora` console script (`arbora.console:main`, `pyproject.toml`) -> new `token` subcommand -> new `arbora/identity/client_enrollment.py::fetch_cached_token` (planned) -> the identity provider token endpoint. Shape: a `token` branch in `arbora/console.py::main` (line 32) and a small cached-token helper in `arbora/identity/client_enrollment.py`, reading the secret through `arbora/security/secrets.py` and caching until shortly before expiry. | Test: `tests/identity/test_arbora_token.py::test_token_is_cached_until_near_expiry_and_stderr_is_clean`.
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R030.3
The served endpoint publishes protected-resource metadata
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The served endpoint publishes protected-resource metadata.** The server must serve `/.well-known/oauth-protected-resource/mcp`. The document names the authorization server and the scopes. An unauthenticated MCP request must return 401 with a `WWW-Authenticate` header that points at the document. A client with native OAuth then discovers sign-in without a bridge. Caller chain: unauthenticated MCP request -> MCP server auth provider built in `arbora/mcp_server/backing/server_factory.py`. Shape: reuse the existing protected-resource route and `resource_metadata` challenge that `arbora/mcp_server/backing/server_factory.py` adds when a public base URL is set and `RemoteAuthProvider` in `arbora/fleet/remote_oauth_broker.py`; the change is to always publish `/.well-known/oauth-protected-resource/mcp` with the scopes of `arbora/security/scope_registry.py`. | Test: `tests/identity/test_protected_resource_metadata.py::test_unauthenticated_request_points_at_metadata`. (planned)
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R030.4
Arbora owns its OAuth client contract (rollup)
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Arbora owns its OAuth client contract (rollup).** Subsystem: admission, identity provider. Arbora declares the OAuth clients and client scopes that its served sign-in needs. At start and on an interval, it reconciles them in the identity provider through the provider admin interface, idempotently, with its own scoped admin credential. A client that an out-of-band cleanup deletes is recreated without an operator. If the provider cannot be reconciled, arbora keeps serving and reports the typed readiness state `identity: degraded`. Dynamic client registration stays available as the fallback. The reconciler is an explicit state machine under organization constitution Article XXXI. Children `.1` to `.9`. Depends: `ARBORA-IDENTITY-R030.3`, `ARBORA-IDENTITY-R030.4.1`, `ARBORA-IDENTITY-R030.4.2`, `ARBORA-IDENTITY-R030.4.3`, `ARBORA-IDENTITY-R030.4.4`, `ARBORA-IDENTITY-R030.4.5`, `ARBORA-IDENTITY-R030.4.6`, `ARBORA-IDENTITY-R030.4.8`, `ARBORA-IDENTITY-R030.4.9`. | Root L3 test: `tests/identity/test_client_contract_served.py::test_deleted_native_client_is_recreated_and_readiness_follows`. A fake identity provider admin interface loses the native client. The next interval recreates it with the declared redirect URIs and default scopes. `/health/ready` reports `identity: degraded` until it does, then `identity: ready`.
requirementARBORA-IDENTITYSPECIFIED81d4d1e075c3
tests/identity/test_client_contract_served.py:38
ARBORA-IDENTITY-R030.4.1
The client contract is one declared definition
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The client contract is one declared definition.** Subsystem: identity provider. Rule: `arbora/identity/client_contract.py` declares the required items as data, `ClientContract { clients[], scopes[] }`. The native MCP client is a public client. It allows the authorization-code flow only, requires PKCE with `S256`, and has no secret, no implicit flow, no direct grant and no service account. Its redirect URIs are the loopback callback URIs that the native coding clients use. They must be loopback `http` URIs, and the default is the two documented loopback callbacks. Its default client scopes are `mcp-fleet`, `roles`, `agent-services` and `offline_access`, plus `profile` and `email`. The client scopes `mcp-fleet` and `agent-services` must exist. `agent-services` is the audience scope: it carries an audience mapper for the configured audience, so an issued token carries the audience that arbora checks. `mcp-fleet` is shared with other clients, so arbora only ensures that it exists and adds no mapper to it. The environment supplies configuration only, as one JSON object `ARBORA_IDENTITY_CLIENT_CONTRACT`: `admin_url`, `realm`, `admin_realm` (default `master`), `admin_client_id`, `admin_client_secret_ref` (a secret reference, never a value), `native_client_id` (default `arbora-native-mcp`), `native_redirect_uris`, `audience` (the audience that the audience mappers add) and `ca_bundle`. A missing required key refuses with `ValueError` and the supervisor does not start. `build_contract(config)` is the one definition. `client_representation`, `scope_representation` and `audience_mapper` render the admin requests. No deployment script holds a second copy; an operator runs `arbora identity reconcile` (`.6`). Arbora reconciles only the items that it declares. It never deletes or edits any other client or scope. Caller chain: the reconciler of `.2` -> `render_provider_requests`. Depends: `ARBORA-IDENTITY-R030.3`. Shape: frozen dataclasses `ClientSpec`, `ScopeSpec`, `ClientContract` and `ContractConfig`, `build_contract` and the renderers in `arbora/identity/client_contract.py`. | Test: `tests/identity/test_client_contract.py::test_native_client_is_public_pkce_with_declared_scopes` and `::test_render_is_idempotent_and_touches_only_declared_items` (L1).
requirementARBORA-IDENTITYVERIFIED81d4d1e075c3
tests/identity/test_client_contract.py:126
tests/identity/test_client_contract.py:160
tests/identity/test_client_contract.py:182
ARBORA-IDENTITY-R030.4.2
The client contract reconciler is an explicit state machine
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The client contract reconciler is an explicit state machine.** Subsystem: identity provider. Caller chain: `arbora.console:main` injects `IdentityLifecycle` (`arbora/identity/ports.py`) into `mcp_server` (`arbora/mcp_server/server.py`), which calls its `start` after the process authority is minted -> `start_client_contract_supervisor` (`arbora/identity/client_contract.py`) -> `ClientContractReconciler.apply` -> `transition`. Rule: the reconciler holds its state in one field, `state: ContractState`. It lives in memory, so a restart begins at `Unchecked`. Closed states: `Unchecked`, `Reconciling`, `Converged`, `Degraded` and `Stopped`. `Stopped` is terminal. Closed events: `reconcile_start`, `reconcile_ok`, `reconcile_err`, `interval_elapsed`, `retry_elapsed` and `stop`. Transition table, 9 legal edges: C01 `Unchecked` to `Reconciling` on `reconcile_start`. C02 `Reconciling` to `Converged` on `reconcile_ok`, guard `contract_matches`: after the pass, every declared client and scope exists and matches. C03 `Reconciling` to `Degraded` on `reconcile_err`. C04 `Converged` to `Reconciling` on `interval_elapsed`. C05 `Degraded` to `Reconciling` on `retry_elapsed`. C06 to C09: `Unchecked`, `Reconciling`, `Converged` and `Degraded` to `Stopped` on `stop`. The machine refuses the other 21 of the 30 pairs, and `reconcile_ok` when `contract_matches` fails. The refusal is `IllegalContractTransition`, with code `CLIENT_CONTRACT_TRANSITION_ILLEGAL` and fields `machine` (always `client_contract`), `from_state` and `event`. One function, `transition(state, event, *, facts)`, is the only writer of `state`. The failure code, the attempt count and the names of the missing or differing items are data of `Degraded`. Failure codes, a closed set: `admin_credential_missing`, `admin_refused`, `admin_too_broad`, `admin_unreachable`, `client_drift`, `client_missing` and `scope_missing`. The interval is 300 seconds with jitter. The retry delay from `Degraded` is `min(300, 2^(n-1))` seconds, multiplied by a jitter factor from 0.5 to 1.0. The admin credential is a dedicated client-credentials identity read through `arbora/security/secrets.py`. It is allowed to manage clients and client scopes of the served realm only. The reconciler refuses an admin token that carries the realm role `admin` or `create-realm` (code `admin_too_broad`), so it never runs with an administrator credential of the whole provider. A pass creates and updates only declared items: a missing scope is created, a missing audience mapper is added, a missing client is created, a differing client is updated in the fields the contract owns, and missing default scopes are attached. It then reads everything back; `contract_matches` holds only when the read-back matches. Depends: `ARBORA-IDENTITY-R030.4.1`. Shape: `ContractState`, `ContractEvent`, `CONTRACT_EDGES`, `transition`, `IllegalContractTransition`, `ClientContractReconciler.apply`, `reconcile_once`, `next_retry_delay` and `ClientContractSupervisor` in `arbora/identity/client_contract.py`. | Test: `tests/identity/test_client_contract_machine.py::test_legal_edge` (L1), one parameter id per edge `c01` to `c09`. `::test_every_illegal_pair_is_refused` (L1) covers the 21 pairs and the failed `contract_matches` guard, and asserts the code and the three fields. `::test_backoff_from_degraded_and_interval_from_converged` (L2) uses a fake clock and a seeded generator.
requirementARBORA-IDENTITYVERIFIED81d4d1e075c3
tests/identity/test_client_contract.py:220
tests/identity/test_client_contract.py:238
tests/identity/test_client_contract_machine.py:112
tests/identity/test_client_contract_machine.py:53
tests/identity/test_client_contract_machine.py:69
ARBORA-IDENTITY-R030.4.3
Readiness reports the identity contract state
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Readiness reports the identity contract state.** Subsystem: admission, readiness. Caller chain: `GET /health/ready` (`arbora/mcp_server/runtime.py`) -> `identity_readiness` in `arbora/observability/runtime_health.py` -> `ClientContractReconciler.readiness`. Rule: the probe reads the reconciler state. `Converged` reports `identity: ready`. `Unchecked` and `Reconciling` before the first convergence report `identity: checking`. `Degraded` reports `identity: degraded` with `reason: identity_<code>` from the closed code set of `.2`. `.9` adds the states for a contract that is absent or unusable. The `identity` check is reported but does not gate readiness: tokens that are already issued stay valid, and sign-in can use dynamic client registration. Free text never reaches the unauthenticated route. Depends: `ARBORA-IDENTITY-R030.4.2`. Shape: `register_identity_contract(reconciler)` at supervisor start and stop; the route adds `identity: {status, reason}` to its body; `identity` is not in `READINESS_ESSENTIAL`. | Test: `tests/observability/test_identity_contract_readiness.py::test_identity_check_follows_contract_state` (L2).
requirementARBORA-IDENTITYVERIFIED81d4d1e075c3
tests/observability/test_identity_contract_readiness.py:15
ARBORA-IDENTITY-R030.4.4
Dynamic client registration stays the fallback
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Dynamic client registration stays the fallback.** Subsystem: admission. Caller chain: unauthenticated MCP request -> protected-resource metadata of `ARBORA-IDENTITY-R030.3` -> `RemoteAuthProvider` in `arbora/fleet/remote_oauth_broker.py`. Rule: while the reconciler is `Degraded`, the served protected-resource metadata still names the authorization server. A native client that cannot find the declared client discovers the provider's registration endpoint from the provider's own authorization-server metadata and registers dynamically. The reconciler never disables dynamic registration and never deletes a dynamically registered client. Depends: `ARBORA-IDENTITY-R030.3`, `ARBORA-IDENTITY-R030.4.2`. Shape: no new route; an assertion on the existing metadata while degraded. | Test: `tests/identity/test_client_contract_served.py::test_degraded_contract_keeps_registration_in_metadata` (L3).
requirementARBORA-IDENTITYVERIFIED81d4d1e075c3
tests/identity/test_client_contract_served.py:92
ARBORA-IDENTITY-R030.4.5
The client contract machine is described in the ontology
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The client contract machine is described in the ontology.** Subsystem: admission, ontology. Caller chain: the ontology pack loader reads `arbora/ontology/state_machines.ttl`, and a check compares it with `ContractState`, `ContractEvent` and `CONTRACT_EDGES`. Rule: the pack file declares the machine `arbora:ClientContractMachine` (an instance of `:StateMachine`), the state classes `arbora:ContractUnchecked`, `arbora:ContractReconciling`, `arbora:ContractConverged`, `arbora:ContractDegraded` and `arbora:ContractStopped` (terminal), one transition class per edge `arbora:ClientContractMachine_C01` to `_C09`, the event classes `arbora:ClientContractMachine_Event_<event>`, the guard class `arbora:ContractMatches` and `arbora:ContractTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `TerminalState`, `Transition`, `TransitionEvent` and `TransitionGuard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class, with no `owl:imports`. Depends: `MEDULLA-ORCH-VOCAB-R811` (pending: it exists only on the medulla branch for explicit state machines), `ARBORA-IDENTITY-R030.4.2`, `ARBORA-IDENTITY-R027.6`. Shape: Turtle classes added to `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_client_contract_machine_description.py::test_classes_roll_up_to_the_core_classes` (L2).
requirementARBORA-IDENTITYVERIFIED81d4d1e075c3
tests/ontology/test_client_contract_machine_description.py:26
ARBORA-IDENTITY-R030.4.6
`arbora identity reconcile` runs one pass
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**`arbora identity reconcile` runs one pass.** Subsystem: admission, command line. Caller chain: the `arbora` console script (`arbora.console:main`) -> `reconcile_command` -> `reconcile_now` -> `run_pass` in `arbora/identity/client_contract.py`. Rule: the command runs one pass from a fresh machine with the configured contract and prints one JSON line with `state`, `code`, `items` and `changed`. It exits 0 when the state is `Converged`, 1 when it is `Degraded`, and 2 when `ARBORA_IDENTITY_CLIENT_CONTRACT` is not set. It prints no secret. An operator or deployment job uses this command instead of a provisioning script of its own, so the definition has one source. Depends: `ARBORA-IDENTITY-R030.4.2`. Shape: an `identity reconcile` branch in `arbora/console.py::main`. | Test: `tests/identity/test_client_contract.py::test_reconcile_command_prints_state_and_exit_code` (L2).
requirementARBORA-IDENTITYVERIFIED81d4d1e075c3
tests/identity/test_client_contract.py:247
ARBORA-IDENTITY-R030.4.7
Native redirect URIs and default scopes come from the harness profile table
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Native redirect URIs and default scopes come from the harness profile table.** Subsystem: identity provider. Rule: `DEFAULT_NATIVE_REDIRECT_URIS` in `arbora/identity/client_contract.py` is replaced by a read of the loopback callback of each profile in `arbora/harness_plugins/profiles.py` (`ARBORA-HARNESS-PLUGINS-R001.1`). `NATIVE_DEFAULT_SCOPES` gains the client scopes that carry `workstream:read` and `workstream:write` (`ARBORA-HARNESS-PLUGINS-R004.6`). Configuration `native_redirect_uris` still replaces the list. No second list remains. Caller chain: `start_client_contract_supervisor` → `ClientContract` build → the profile table. Shape: function `native_redirect_uris()` in `arbora/harness_plugins/profiles.py`, read by `arbora/identity/client_contract.py`; reuse `ContractConfig`. | Test: `tests/identity/test_client_contract.py::test_native_redirects_and_scopes_follow_the_profile_table` (L2). (planned)
requirementARBORA-IDENTITYSPECIFIEDNo recorded commit/test evidence
ARBORA-IDENTITY-R030.4.8
The served endpoint advertises the native sign-in scopes, so a long session keeps an offline refresh token
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The served endpoint advertises the native sign-in scopes, so a long session keeps an offline refresh token.** Subsystem: admission, protected-resource metadata. Caller chain: `_configure_jwt_auth` and `_configure_remote_oauth_auth` (`arbora/mcp_server/backing/server_factory.py`) -> `_wrap_with_resource_metadata` or the remote provider -> `_signin_scope_advertisement` -> `native_signin_scopes` (`arbora/identity/ports.py`) -> `NATIVE_DEFAULT_SCOPES` (`arbora/identity/client_contract.py`) -> `RemoteAuthProvider(scopes_supported=..., challenge_scopes=...)`. Rule: an MCP client chooses its sign-in scopes from the `scope` parameter of the 401 challenge, or else from `scopes_supported` of the protected-resource metadata. A client that finds neither requests no scope, and the identity provider then issues an ordinary session refresh token that expires when the session idles or reaches its maximum age. The served metadata `scopes_supported` and the `scope` parameter of every `WWW-Authenticate` challenge must both equal the native client scopes of `.1`, in the order of `NATIVE_DEFAULT_SCOPES`, and so include `offline_access`. They are read from the one contract. No second list exists. This is advertising only. `required_scopes` verification must stay as configured, so a service or client-credential token without `offline_access` is still accepted, and a configured required scope is still enforced. The realm session timeouts must not change, because they apply to every browser sign-in. Depends: `ARBORA-IDENTITY-R030.3`, `ARBORA-IDENTITY-R030.4.1`. Shape: `native_signin_scopes() -> list[str]` in `arbora/identity/ports.py`; `_signin_scope_advertisement() -> dict[str, list[str]]` in `arbora/mcp_server/backing/server_factory.py`; no new route. | Test: `tests/identity/test_native_signin_scopes.py::test_metadata_scopes_supported_equal_the_native_contract_scopes`, `::test_challenge_carries_the_same_scope_list` and `::test_advertising_scopes_does_not_require_them` (L1). `::test_served_sign_in_that_follows_the_advertised_scopes_gets_an_offline_token` (L3) signs in against a fake identity provider with the scopes that the served challenge names and receives an offline refresh token.
requirementARBORA-IDENTITYVERIFIEDd36c2f5af492
fa383f34943f
tests/identity/test_native_signin_scopes.py:110
tests/identity/test_native_signin_scopes.py:56
tests/identity/test_native_signin_scopes.py:64
tests/identity/test_native_signin_scopes.py:83
ARBORA-IDENTITY-R030.4.9
Readiness reports every identity contract state, including absent and unusable
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Readiness reports every identity contract state, including absent and unusable.** Subsystem: admission, readiness. Caller chain: `GET /health/ready` (`arbora/mcp_server/runtime.py`) -> `identity_readiness` in `arbora/observability/runtime_health.py`; `start_client_contract_supervisor` (`arbora/identity/client_contract.py`) -> `register_identity_config_invalid`. Rule: `/health/ready` always carries `identity: {status, reason?}`. A registered reconciler reports as in `.3`. With no reconciler, `identity` is `unconfigured` when `ARBORA_IDENTITY_CLIENT_CONTRACT` is absent, `checking` when it is set and the supervisor has not started, and `degraded` with `reason: identity_config_invalid` when the value is set and the supervisor refused it. A `degraded` state from the reconciler carries the failure code of `.2`. The route reports codes only: no client name, scope name, URL or secret. The `identity` check never gates readiness. Depends: `ARBORA-IDENTITY-R030.4.3`. Shape: `identity_readiness() -> dict` (never `None`) and `register_identity_config_invalid(bool)` in `arbora/observability/runtime_health.py`. | Test: `tests/identity/test_native_signin_scopes.py::test_readiness_reports_each_identity_state` (L1).
requirementARBORA-IDENTITYVERIFIEDd36c2f5af492
tests/identity/test_native_signin_scopes.py:136
ARBORA-IDENTITY-R027.1
Process credential lease state model and transition function
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Process credential lease state model and transition function.** Subsystem: admission, process authority. Caller chain: served process start -> `_start_process_authority_supervisor` (`arbora/mcp_server/bootstrap.py:522`) -> `_process_authority_refresh_loop` (`:495`) -> `_refresh_process_authority` (`:199`) -> `CredentialLease.apply`. Rule: `CredentialLease` (`arbora/security/actor_context.py:38`) holds its state in ONE field, `state: LeaseState`, set at construction in `__init__` (`:49`). The lease lives in memory, so a restart starts again at `Live`. Closed states: `Live`, `RenewDue`, `Renewing`, `Degraded`, `Expired`, `Revoked`, `Stopped`. `Revoked` and `Stopped` are terminal. Closed events: `tick`, `renew_start`, `idp_ok`, `idp_err`, `identity_changed`, `revoke`, `stop`. Guards: `at_half_lifetime` (now has reached 50% of the token lifetime), `before_expiry`, `at_expiry` and `identity_unchanged`. Transition table, 26 legal edges: (1) `Live` to `RenewDue` on `tick` when `at_half_lifetime`. (2) `RenewDue` to `Renewing` on `renew_start`. (3) `Renewing` to `Live` on `idp_ok` when `identity_unchanged`. (4) `Renewing` to `Degraded` on `idp_err` when `before_expiry`. (5) `Renewing` to `Expired` on `idp_err` when `at_expiry`. (6) `Degraded` to `Degraded` on `idp_err`, which adds one attempt. (7) `Degraded` to `Live` on `idp_ok` when `identity_unchanged`. (8) `Expired` to `Expired` on `idp_err`. (9) `Expired` to `Live` on `idp_ok` when `identity_unchanged`. (10) `Live`, `RenewDue`, `Renewing` and `Degraded` to `Expired` on `tick` when `at_expiry`. (11) `Renewing`, `Degraded` and `Expired` to `Revoked` on `identity_changed`. (12) `Live`, `RenewDue`, `Renewing`, `Degraded` and `Expired` to `Revoked` on `revoke`. (13) The same five states to `Stopped` on `stop`. The 26 edges cover 24 distinct (state, event) pairs. The lease refuses the other 25 of the 49 pairs and every legal pair whose guards all fail. Where one pair has two edges (`Live` on `tick`, `Renewing` on `idp_err`), the edge whose guard holds wins; `at_expiry` is checked before `at_half_lifetime`. The refusal is `IllegalLeaseTransition` of `.4`. One function, `transition(lease_state, event, now)` in `arbora/security/actor_context.py`, is the only writer of `state`; `CredentialLease.apply(event, now)` calls it and stores the result. No boolean, nullable timestamp or reason string decides the state. The expiry time, attempt count and failure code are data of the lease. `revocation_reason` is data of `Revoked`, derived from the event that caused it. Depends: none. Shape: `LeaseState`, `LeaseEvent` and `transition` in `arbora/security/actor_context.py`. | Test: `tests/security/test_credential_lease_machine.py::test_legal_edge` (L1), parametrised with one id per legal edge, named `<from>-<event>-<to>`: `live-tick-renewdue`, `renewdue-renew_start-renewing`, `renewing-idp_ok-live`, `renewing-idp_err-degraded`, `renewing-idp_err-expired`, `degraded-idp_err-degraded`, `degraded-idp_ok-live`, `expired-idp_err-expired`, `expired-idp_ok-live`, `live-tick-expired`, `renewdue-tick-expired`, `renewing-tick-expired`, `degraded-tick-expired`, `renewing-identity_changed-revoked`, `degraded-identity_changed-revoked`, `expired-identity_changed-revoked`, `live-revoke-revoked`, `renewdue-revoke-revoked`, `renewing-revoke-revoked`, `degraded-revoke-revoked`, `expired-revoke-revoked`, `live-stop-stopped`, `renewdue-stop-stopped`, `renewing-stop-stopped`, `degraded-stop-stopped`, `expired-stop-stopped`. Each case asserts the new state, the data it carries and that `state` changed once.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
tests/security/test_credential_lease_machine.py:112
tests/security/test_credential_lease_machine.py:120
ARBORA-IDENTITY-R027.2
Renew at half the lifetime; degrade with backoff
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Renew at half the lifetime; degrade with backoff.** Subsystem: admission, process authority. Caller chain: served process start -> `_start_process_authority_supervisor` -> `_process_authority_refresh_loop` in `arbora/mcp_server/bootstrap.py` -> `_refresh_process_authority`. Rule: the loop renews when `tick` reaches 50% of the token lifetime, not at 30 seconds. An `idp_err` moves the lease to `Degraded` and records the failure code from the closed `PROCESS_AUTHORITY_FAILURE_CODES` set. The retry delay is `min(30, 2^(n-1))` seconds, multiplied by a jitter factor drawn from 0.5 to 1.0, where `n` is the attempt count. The attempt count resets on `idp_ok`. The loop never exits while the state is `Degraded` or `Expired`. A `Degraded` lease stays valid until its expiry time. Depends: `ARBORA-IDENTITY-R027.1`. Shape: `next_delay(attempt, rng)` and the loop body in `arbora/mcp_server/bootstrap.py`; the backoff constants are module constants with unit tests. | Test: `tests/mcp_server/test_process_authority_renewal.py::test_renewal_starts_at_half_lifetime_and_backs_off_with_jitter` (L2). A fake clock and a seeded generator assert the delay sequence 1, 2, 4, 8, 16, 30, 30 within the jitter band.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
tests/mcp_server/test_process_authority_renewal.py:362
ARBORA-IDENTITY-R027.3
Explicit recovery edge from `Degraded` and `Expired` to `Live`
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Explicit recovery edge from `Degraded` and `Expired` to `Live`.** Subsystem: admission, process authority. Caller chain: served process start -> `_start_process_authority_supervisor` -> `_process_authority_refresh_loop` in `arbora/mcp_server/bootstrap.py` -> `_refresh_process_authority`. Rule: the missing recovery edge. `idp_ok` moves a `Degraded` or `Expired` lease to `Live` when the minted identity equals the lease identity (actor, actor type, tenant, authentication and groups; roles as a frozenset, additive grants allowed). `_ensure_renewable_process_session` refuses only a `Revoked` lease. It no longer raises for an expired lease, so the identity provider is called. `session.ensure_authority_current` is not called on the recovery path. `CredentialLease.renew` accepts `Degraded` and `Expired`, and it still never accepts `Revoked` or `Stopped`. The captured sessions keep their original roles. A different identity or a lost role moves the lease to `Revoked` with the code `identity_changed` or `roles_revoked`. Requests made while the state is `Expired` still fail closed with `CredentialExpiredError`. Depends: `ARBORA-IDENTITY-R027.1`, `ARBORA-IDENTITY-R027.2`. Shape: the `idp_ok` guard in `transition`; `_ensure_renewable_process_session` and `CredentialLease.renew` changed in `arbora/mcp_server/bootstrap.py` and `arbora/security/actor_context.py`. | Test: `tests/mcp_server/test_process_authority_renewal.py::test_outage_longer_than_ttl_recovers_without_restart` (L3, regression for the live defect). A fake identity provider fails for 3 times the token lifetime. The lease passes through `Degraded` to `Expired`. The provider recovers. The lease returns to `Live` with the same captured session and no restart. A changed identity at recovery ends in `Revoked`.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
tests/mcp_server/test_process_authority_renewal.py:188
tests/mcp_server/test_process_authority_renewal.py:207
tests/mcp_server/test_process_authority_renewal.py:403
tests/security/test_credential_lease_machine.py:223
tests/security/test_credential_lease_machine.py:236
ARBORA-IDENTITY-R027.4
Illegal lease transitions are refused with a typed error
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Illegal lease transitions are refused with a typed error.** Subsystem: admission, process authority. Caller chain: `CredentialLease.apply` in `arbora/security/actor_context.py`, called from the refresh loop and `ensure_current`, calls `transition`. Rule: `transition` raises `IllegalLeaseTransition` for every pair outside the table of `.1`, and for a legal pair whose guard fails. The error carries the code `LEASE_TRANSITION_ILLEGAL` and the fields `machine` (always `credential_lease`), `from_state` and `event`. Examples are `idp_ok` on `Revoked`, `renew_start` on `Stopped`, and any event after `Stopped`. The lease state does not change on a refusal. Request-time checks keep `CredentialExpiredError` for `Expired` and `Revoked`. Depends: `ARBORA-IDENTITY-R027.1`. Shape: `IllegalLeaseTransition` defined in `arbora/security/actor_context.py` and raised by `transition`. | Test: `tests/security/test_credential_lease_machine.py::test_every_illegal_pair_is_refused_and_state_is_unchanged` (L1). It enumerates all 25 illegal pairs and the failed-guard cases `live-tick-early`, `renewdue-tick-early`, `renewing-tick-early`, `degraded-tick-early`, `renewing-idp_ok-identity_changed`, `degraded-idp_ok-identity_changed` and `expired-idp_ok-identity_changed`. It asserts the code and the three fields, and that `IllegalLeaseTransition` is a `CredentialExpiredError`, so every existing caller still fails closed. `renewing-idp_err-late` is not a refusal, because `before_expiry` and `at_expiry` are complements: `test_renewing_idp_err_late_takes_the_expiry_edge_not_degraded` asserts that it ends in `Expired`.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
tests/security/test_credential_lease_machine.py:186
tests/security/test_credential_lease_machine.py:216
ARBORA-IDENTITY-R027.5
Readiness is derived from the lease state
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Readiness is derived from the lease state.** Subsystem: admission, readiness. Caller chain: `GET /health/ready` -> `readiness_reason` in `arbora/observability/runtime_health.py`. Rule: `readiness_reason` reads the state of the registered process lease. `Live`, `RenewDue` and `Renewing` report no reason. `Degraded`, `Expired` and `Revoked` report `process_authority_<code>` from the closed code set. The module global `_PROCESS_AUTHORITY_FAILURE` and `record_process_authority_failure` are deleted. The supervisor registers its lease at start and clears it on stop. Depends: `ARBORA-IDENTITY-R027.1`. Shape: `register_process_lease(lease)` and the changed `readiness_reason` in `arbora/observability/runtime_health.py`; the loop in `bootstrap.py` stops calling the recorder. | Test: `tests/observability/test_runtime_health.py::test_readiness_reason_follows_lease_state_with_no_separate_global` (L2). It asserts the reason for each state and that no failure global exists.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
tests/observability/test_runtime_health.py:71
ARBORA-IDENTITY-R027.6
The process credential lease machine is described in the ontology
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**The process credential lease machine is described in the ontology.** Subsystem: admission, ontology. Caller chain: the ontology pack loader reads `arbora/ontology/state_machines.ttl`, and a check compares it with `LeaseState` and `LeaseEvent` in `arbora/security/actor_context.py`. Rule: the pack file `arbora/ontology/state_machines.ttl` declares the machine `arbora:CredentialLeaseMachine`, the state classes `arbora:LeaseLive`, `arbora:LeaseRenewDue`, `arbora:LeaseRenewing`, `arbora:LeaseDegraded`, `arbora:LeaseExpired`, `arbora:LeaseRevoked` and `arbora:LeaseStopped`, one transition class per edge of `.1` (`arbora:LeaseTransition`), the event classes of `.1`, the guard classes `arbora:AtHalfLifetime`, `arbora:BeforeExpiry`, `arbora:AtExpiry` and `arbora:IdentityUnchanged`, and `arbora:LeaseTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `Transition`, `TransitionEvent` and `TransitionGuard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class (core `:Event` means a temporally bounded happening, so the event class is `:TransitionEvent`). The pack namespace is `http://knuckles.team/kg/arbora#`; the core namespace is `http://knuckles.team/kg#`. Event and transition IRIs follow the core scheme: `arbora:CredentialLeaseMachine_Event_<event>` and `arbora:CredentialLeaseMachine_<from>-<event>-<to>`, each with `:fromState`, `:toState`, `:firedBy` and `:guardedBy`; each state and event class carries its `:storedForm`. The file uses no `owl:imports`. The machine class is an instance of `StateMachine`, and each terminal state also extends `TerminalState`. A question about the next legal events of the process lease is answered through `ask`. Depends: `MEDULLA-ORCH-VOCAB-R811` (pending: it exists only on the medulla branch for explicit state machines), `ARBORA-IDENTITY-R027.1`. Shape: the Turtle classes in `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_credential_lease_machine_description.py::test_every_state_and_transition_rolls_up_to_the_core_classes` (L2). It asserts one class per enum member and per legal edge, each a subclass of a core class, and no `owl:imports`.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
8edba320397f
tests/ontology/test_credential_lease_machine_description.py:121
tests/ontology/test_credential_lease_machine_description.py:55
ARBORA-IDENTITY-R027.7
Wiring and hot-path proof of the lease machine
Definition — ARBORA-IDENTITY / ARBORA-IDENTITY — ACCESS — identity, authorization, and access operationsCanonical requirement and verification source
**Wiring and hot-path proof of the lease machine.** Subsystem: admission, process authority. Caller chain: served process start -> `_start_process_authority_supervisor` (`arbora/mcp_server/bootstrap.py:522`) -> `register_process_lease` (`arbora/observability/runtime_health.py:783`, replaces the global) -> `_process_authority_refresh_loop` (`bootstrap.py:495`) -> `_refresh_process_authority` (`:199`) -> `CredentialLease.apply` -> `transition` -> `/health/ready` through `readiness_reason` (`runtime_health.py:793`). Rule: the loop sends `tick`, `renew_start`, `idp_ok`, `idp_err` and `identity_changed` and no other writer sets `state`. A source search finds no assignment to `state` outside `apply`. The proof runs the real supervisor, loop and readiness route with a fake identity provider, not a unit call. Depends: `ARBORA-IDENTITY-R027.1`, `ARBORA-IDENTITY-R027.3`, `ARBORA-IDENTITY-R027.5`. Shape: `register_process_lease` and the supervisor start in the files above. | Test: `tests/mcp_server/test_process_authority_renewal.py::test_supervisor_drives_the_lease_through_an_outage_and_ready_follows` (L3). The fake provider fails for 3 token lifetimes, then recovers. `/health/ready` reports `process_authority_<code>` while degraded and no reason after recovery. `tests/security/test_credential_lease_machine.py::test_only_apply_writes_state` (L1) is the source search.
requirementARBORA-IDENTITYVERIFIED2c9e265a4378
8edba320397f
9f18b818196e
tests/mcp_server/test_process_authority_renewal.py:466
tests/security/test_credential_lease_machine.py:255
ARBORA-MCP-RESOURCES
ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliation
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-MCP-RESOURCES-R001
Publication gate refuses without a valid receipt (rollup)
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**Publication gate refuses without a valid receipt (rollup).** arbora's MCP resource/template publication path never claims a candidate generation is published unless a `ReconciliationReceipt` exists, matches that exact candidate, and is fresh; otherwise it returns the typed `reingestion-unreconciled` result. Delivered through its child requirement, producer first. | Covered by `ARBORA-MCP-RESOURCES-R001.1` plus `ARBORA-MCP-RESOURCES-R003` (not yet specified).
requirementARBORA-MCP-RESOURCESVERIFIED6a19f564d301
tests/fleet/test_mcp_resource_reconciliation.py:22
ARBORA-MCP-RESOURCES-R001.1
Typed `ReconciliationReceipt` model and publication gate
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**Typed `ReconciliationReceipt` model and publication gate.** `arbora/fleet/mcp_resource_reconciliation.py` defines a frozen `ReconciliationReceipt` and `gate_mcp_resource_publication()` returning a typed `PublicationGateResult`: `"reconciled"` only for a receipt matching the exact tenant, `catalog_generation`, `snapshot_digest`, and all four families (`tools`, `prompts`, `resources`, `resource_templates`) within a freshness bound; `"reingestion-unreconciled"` with a stable `reason` (`missing`, `stale`, `invalid`) otherwise. Caller chain: `require_reconciled_for_swap` in `arbora/fleet/mcp_resource_reconciliation.py` → `gate_mcp_resource_publication(receipt, *, tenant_id, expected_generation, expected_digest, now_ms, max_age_ms)`; no catalog code calls either yet (child `ARBORA-MCP-RESOURCES-R003.2`). Shape: frozen `ReconciliationReceipt { tenant_id, catalog_generation, snapshot_digest, acknowledged_families, issued_at_ms }` and `PublicationGateResult { status, reason, receipt }` in `arbora/fleet/mcp_resource_reconciliation.py`. | Test: `tests/fleet/test_mcp_resource_reconciliation.py::test_valid_receipt_is_reconciled`. `tests/fleet/test_mcp_resource_reconciliation.py` covers missing, stale, digest-mismatched, generation-mismatched, partial-family, and wrong-tenant receipts all returning `reingestion-unreconciled`, and a fully matching fresh receipt returning `reconciled`.
requirementARBORA-MCP-RESOURCESVERIFIED6a19f564d301
tests/fleet/test_mcp_resource_reconciliation.py:22
ARBORA-MCP-RESOURCES-R002
medulla is the sole admissible receipt source
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**medulla is the sole admissible receipt source.** The gate may only treat as reconciling a receipt medulla issued after durably committing the candidate's four-family projection. Arbora never synthesizes or locally fabricates a passing receipt. Producing contract: [`MEDULLA-REPO-INGEST-001`](https://github.com/Knuckles-Team/medulla/blob/main/specs/repository-index-and-ingestion/spec.md) (owned by medulla). Caller chain: `tests/fleet/test_mcp_resource_receipt_source.py` parses every module under `arbora/` and finds `ReconciliationReceipt(...)` constructed only in `arbora/fleet/mcp_resource_reconciliation.py`; the gate (`gate_mcp_resource_publication`) only evaluates a receipt it is handed, so a receipt reaches it from the engine through the publish step planned in `ARBORA-MCP-RESOURCES-R003.2`. Shape: the frozen `ReconciliationReceipt { tenant_id, catalog_generation, snapshot_digest, acknowledged_families, issued_at_ms }` in `arbora/fleet/mcp_resource_reconciliation.py`, with no issuer field and no second constructor in `arbora/`. | Test: `tests/fleet/test_mcp_resource_receipt_source.py::test_no_arbora_module_constructs_receipt_outside_gate_module`. Cross-repository link verification: this spec's `spec.md` cites the exact EG spec ID and URL. No arbora code path constructs a `ReconciliationReceipt` locally outside of test fixtures.
requirementARBORA-MCP-RESOURCESVERIFIED028338c38838
tests/fleet/test_mcp_resource_receipt_source.py:32
ARBORA-MCP-RESOURCES-R003
Gate wired at the one catalog-publish entry point (rollup)
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**Gate wired at the one catalog-publish entry point (rollup).** Entry: the fleet catalog reload. Caller: `refresh_serving_catalog` (`arbora/fleet/onboarding.py:831`) → `FleetCatalogReader` publish step (`ARBORA-FLEET-R051`) → `require_reconciled_for_swap` (`arbora/fleet/mcp_resource_reconciliation.py:123`). Only an all-families `reconciled` result allows the swap of the active generation. The guard `.1` exists; `.2` wires it. Depends: `ARBORA-FLEET-R051.1`, `ARBORA-FLEET-R051.2`. | Rollup. It passes when `ARBORA-MCP-RESOURCES-R003.1` and `ARBORA-MCP-RESOURCES-R003.2` pass.
requirementARBORA-MCP-RESOURCESSPECIFIEDNo recorded commit/test evidence
ARBORA-MCP-RESOURCES-R003.1
Swap guard function
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**Swap guard function.** `arbora/fleet/mcp_resource_reconciliation.py` adds `require_reconciled_for_swap()`, which wraps `gate_mcp_resource_publication()` and raises a typed `PublicationRefusedError` carrying the `PublicationGateResult` for any `reingestion-unreconciled` result, and returns the receipt only for `reconciled`. The publish step can then call one function that cannot be bypassed by ignoring a return value. Caller chain: no catalog publish step calls it yet (child `ARBORA-MCP-RESOURCES-R003.2`); `require_reconciled_for_swap` in `arbora/fleet/mcp_resource_reconciliation.py` → `gate_mcp_resource_publication`, as `tests/fleet/test_mcp_resource_reconciliation.py` exercises. Shape: `require_reconciled_for_swap(receipt, *, tenant_id, expected_generation, expected_digest, now_ms, max_age_ms)` and `PublicationRefusedError(result: PublicationGateResult)` in `arbora/fleet/mcp_resource_reconciliation.py`. | Test: `tests/fleet/test_mcp_resource_reconciliation.py::test_swap_guard_raises_typed_refusal`. Unit tests: missing, stale, and invalid receipts raise `PublicationRefusedError` with the typed result attached and the stable `reason`. A matching fresh receipt returns the receipt.
requirementARBORA-MCP-RESOURCESVERIFIED965d34390876
tests/fleet/test_mcp_resource_reconciliation.py:119
tests/fleet/test_mcp_resource_reconciliation.py:138
ARBORA-MCP-RESOURCES-R003.2
Call the guard from the publish step
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**Call the guard from the publish step.** Entry: the catalog reload. The publish step `FleetCatalogReader.publish_generation(candidate, receipt)` (added by `ARBORA-FLEET-R051.2`) calls `require_reconciled_for_swap` first. Only then does it swap the active generation. The four families are `tools`, `prompts`, `resources`, `resource_templates`. On `PublicationRefusedError` the last-known-good generation stays active and the reload outcome carries the typed result (`missing`, `stale` or `invalid`). The receipt comes only from the engine (`ARBORA-MCP-RESOURCES-R002`). The freshness bound is config key `mcp_resources.receipt_max_age_ms` in `~/.config/arbora/config.json`, default 300000, bounds [1000, 3600000], unit milliseconds. Depends: `ARBORA-FLEET-R051.2`, `ARBORA-MCP-RESOURCES-R003.1`. Caller chain: catalog reload (`refresh_serving_catalog` in `arbora/fleet/onboarding.py`) → `FleetCatalogReader.publish_generation` (new, `arbora/fleet/catalog_reader.py`, added by `ARBORA-FLEET-R051.2`; the method does not exist yet) → `require_reconciled_for_swap` → generation swap. Shape: `publish_generation(candidate, receipt)` (new) on `FleetCatalogReader` in `arbora/fleet/catalog_reader.py`, reusing `require_reconciled_for_swap`. | Test: `tests/fleet/test_mcp_resource_reconciliation.py::test_publish_step_refuses_missing_stale_invalid_and_allows_match` (L3) drives `publish_generation` with each receipt.
requirementARBORA-MCP-RESOURCESSPECIFIEDNo recorded commit/test evidence
ARBORA-MCP-RESOURCES-R004
Status docs are the gate's result, not hand-maintained prose
Definition — ARBORA-MCP-RESOURCES / ARBORA-MCP-RESOURCES — MCP resource/template publication reconciliationCanonical requirement and verification source
**Status docs are the gate's result, not hand-maintained prose.** `docs/status.md`'s "Explicitly unavailable surfaces" row and `docs/fleet.md`'s reconciliation paragraph describe exactly the `reingestion-unreconciled` result the gate returns. Caller chain: `tests/fleet/test_mcp_resource_status_docs.py` reads `GateStatus` from `arbora/fleet/mcp_resource_reconciliation.py` and checks `docs/status.md` and `docs/fleet.md` against it; the docs text is hand-written, not generated. Shape: the `docs/status.md` unavailable-surfaces row and the `docs/fleet.md` reconciliation paragraph, each using the literal result `reingestion-unreconciled`. | Test: `tests/fleet/test_mcp_resource_status_docs.py::test_docs_cite_gate_unreconciled_code`. A docs-consistency check (or review note) confirms the status/reason vocabulary in both docs matches `arbora/fleet/mcp_resource_reconciliation.py` exactly.
requirementARBORA-MCP-RESOURCESVERIFIED94ee72171294
tests/fleet/test_mcp_resource_status_docs.py:20
tests/fleet/test_mcp_resource_status_docs.py:25
tests/fleet/test_mcp_resource_status_docs.py:32
tests/fleet/test_mcp_resource_status_docs.py:44
ARBORA-MESSAGING
ARBORA-MESSAGING — Messaging channel supervision lifecycle
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R001
Typed channel supervision state machine (rollup)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Typed channel supervision state machine (rollup).** Subsystem: messaging supervision. Caller: host bootstrap → `arbora/messaging/intake.py::start_messaging_intake` → `arbora/messaging/polling.py::_serve` → `arbora/messaging/router.py::InboundRouter`. `InboundRouter` moves each backend through `ChannelSupervisionState` using `transition` from `arbora/messaging/supervision.py`. Child `.1` is the typed model. The router reports the live state by `InboundRouter.state_of`. The authenticated health read of `ARBORA-MESSAGING-R005.1` projects it. Depends: `ARBORA-MESSAGING-R001.1`. | Satisfied when child `.1` and the router wiring pass. The root journey is `tests/messaging/test_supervision.py::test_router_promotes_connected_backend_to_running_then_drains_to_stopped` (L3).
requirementARBORA-MESSAGINGLANDED63a66f60915a
ARBORA-MESSAGING-R001.1
Typed state model, transition table and refusal tests
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Typed state model, transition table and refusal tests.** Subsystem: messaging supervision. Code: `arbora/messaging/supervision.py` defines `ChannelSupervisionState` (`STOPPED`, `STARTING`, `RUNNING`, `BACKING_OFF`, `DEGRADED`, `STOPPING`), the table `_TRANSITIONS` and `transition(current, target)`. `legal_targets` reads the table. `transition` returns the target on a legal move. Otherwise it raises `IllegalSupervisionTransition` with both states in its message. The table is the only authority for legal moves. The module imports no backend and performs no input or output. Caller chain: `InboundRouter._start_one_backend`, `_advance_states` and `stop` in `arbora/messaging/router.py` → `transition` and `legal_targets` in `arbora/messaging/supervision.py`. Depends: none. Shape: `ChannelSupervisionState`, the table `_TRANSITIONS`, `legal_targets()`, `transition()` and `IllegalSupervisionTransition` in `arbora/messaging/supervision.py`. | Test: `tests/messaging/test_supervision.py::test_legal_transition_succeeds` and `tests/messaging/test_supervision.py::test_illegal_transition_refuses` (L1) covers every legal pair and the pairs `STOPPED -> RUNNING` and `DEGRADED -> RUNNING`.
requirementARBORA-MESSAGINGLANDED63a66f60915a
ARBORA-MESSAGING-R002
Health-gated start
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Health-gated start.** `InboundRouter.start()` transitions a registered backend through `STARTING` and only reaches `RUNNING` once `backend.is_connected` is observed true; a backend that is not connected at start is recorded `STOPPED` (skipped), never `RUNNING`. Caller chain: `_serve` in `arbora/messaging/polling.py` (reached from `run_poll_loop`, which `arbora/messaging/intake.py` starts) → `InboundRouter.start()` → `_start_one_backend` in `arbora/messaging/router.py` → `transition` in `arbora/messaging/supervision.py`. Shape: `_start_one_backend` moves a backend to STARTING and then to RUNNING, or back to STOPPED when `backend.is_connected` is false; `InboundRouter.state_of(backend_id)` returns the recorded `ChannelSupervisionState`. | Test: `tests/messaging/test_supervision.py::test_router_never_promotes_an_unconnected_backend_to_running`. A unit test with a fixture backend whose `is_connected` is `False` asserts the router records it as not running and does not create a listener task for it; a connected fixture backend reaches `RUNNING`.
requirementARBORA-MESSAGINGVERIFIED63a66f60915a
bc26d7b669bc
tests/messaging/test_supervision.py:114
tests/messaging/test_supervision.py:93
ARBORA-MESSAGING-R003
Bounded restart backoff with healthy-run reset
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Bounded restart backoff with healthy-run reset.** On a recoverable listener failure, `_supervise_backend` moves the backend to `BACKING_OFF`, computing its next delay from `MESSAGING_LISTEN_BACKOFF_BASE_S` (floored at a nonzero value so a zero base never busy-loops), doubling on each consecutive failure, capped at `MESSAGING_LISTEN_BACKOFF_MAX_S` (default 60s); a run lasting at least `MESSAGING_LISTEN_HEALTHY_RESET_S` (default 60s) resets the delay to base before the next failure. Caller chain: `InboundRouter._start_one_backend` creates the task for `_supervise_backend` in `arbora/messaging/router.py` → `_run_one_listen_attempt` → `_listen_loop`; on failure `_supervise_backend` calls `_record_listener_restart` and sleeps the delay. It does not call `supervision.transition`. Shape: no separate delay function; `_supervise_backend` reads `MESSAGING_LISTEN_BACKOFF_BASE_S`, `MESSAGING_LISTEN_BACKOFF_MAX_S` and `MESSAGING_LISTEN_HEALTHY_RESET_S` through `setting()` and doubles the delay up to the cap. | Test: `tests/messaging/test_supervision.py::test_backoff_delay_sequence_is_monotonically_bounded_by_cap` and `tests/messaging/test_supervision.py::test_backoff_resets_to_base_after_a_sustained_healthy_run`. A unit test drives a sequence of simulated short-lived failures and asserts the delay sequence is monotonically bounded by the cap; a separate test simulates one long-lived healthy run followed by a failure and asserts the delay resets to base.
requirementARBORA-MESSAGINGVERIFIED29a592980f26
tests/messaging/test_supervision.py:156
tests/messaging/test_supervision.py:190
ARBORA-MESSAGING-R004
Graceful stop and drain
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Graceful stop and drain.** `InboundRouter.stop()` moves every supervised backend to `STOPPING` before cancelling its listener and inbox-reaper tasks, awaits their completion with `return_exceptions=True`, then reports `STOPPED`; a task observing `asyncio.CancelledError` during a backoff wait propagates as clean shutdown and triggers no further restart attempt. Caller chain: cancellation of the `_serve` coroutine in `arbora/messaging/polling.py` and any other caller of `InboundRouter.stop()` in `arbora/messaging/router.py` → `_advance_states` → `transition` in `arbora/messaging/supervision.py`. Shape: `stop()` marks every tracked backend STOPPING, cancels `self._tasks` (listener and inbox-reaper tasks), awaits them with `asyncio.gather(..., return_exceptions=True)`, then moves STOPPING backends to STOPPED. | Test: `tests/messaging/test_supervision.py::test_stop_during_backoff_wait_cancels_cleanly_with_no_pending_restart`. A unit test cancels a router with an in-flight backoff wait and asserts no restart task is scheduled after `stop()` returns and that the task collection is empty.
requirementARBORA-MESSAGINGVERIFIED29a592980f26
tests/messaging/test_supervision.py:225
ARBORA-MESSAGING-R005
Typed degraded adapter state and configuration-aware health (rollup)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Typed degraded adapter state and configuration-aware health (rollup).** Subsystem: messaging health. Caller: `arbora/messaging/registry.py::MessagingRegistry.create_all_enabled` records `AdapterMissing` and `AdapterImportFailed` as DEGRADED and keeps creating the other channels. Child `.1` defines the health projection on the authenticated health read. Depends: `ARBORA-MESSAGING-R005.1`. | Satisfied when child `.1` passes. The root journey is `tests/messaging/test_registry_degraded.py::test_present_channel_still_reaches_running_while_missing_one_is_degraded` (L3).
requirementARBORA-MESSAGINGSPECIFIED29a592980f26
785693fbf7a3
tests/messaging/test_registry_degraded.py:101
tests/messaging/test_registry_degraded.py:85
ARBORA-MESSAGING-R005.1
Typed adapter degradation and configuration-aware health
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Typed adapter degradation and configuration-aware health.** Subsystem: messaging health. Caller chain: `GET /api/dashboard/health` (`arbora/gateway/dashboard_api.py`) and the `graph_configure` action `health` → `messaging_intake_component` (new, `arbora/messaging/health.py`) → `degraded_records` (new) on `MessagingRegistry` in `arbora/messaging/registry.py`, which already records `AdapterMissing` and `AdapterImportFailed` in `create_all_enabled`. The component is `components.messaging_intake` with the fields `enabled`, `configured`, `state`, `alert_eligible` and `backends`. `enabled` is true only when `MESSAGING_INTAKE_ENABLED` is explicitly true and the process is the served network host or `KG_DAEMON_ROLE=host` (`ARBORA-MESSAGING-R007`). Credentials alone never enable intake. `configured` is true when one supported backend has credential material. No credential value is ever returned. `state` is `disabled` when intake is off. It is `not_configured` when intake is on and no backend is configured. It is `degraded` when any configured backend is unavailable. It is `healthy` when every configured backend is connected. `alert_eligible` is true exactly when `enabled` and the state is `not_configured` or `degraded`. `backends` lists rows `id`, `configured`, `state` and `reason_code` in stable id order. Row state is `not_configured`, `disabled`, `connected` or `unavailable`. `reason_code` is `adapter_missing`, `adapter_import_failed` or `backend_not_connected`, else null. No row carries raw exception text. A health read sends no message. The unauthenticated `/health` and `/health/ready` stay detail free. Alert evaluators emit only when `alert_eligible` is true. Depends: `ARBORA-MESSAGING-R007`, `ARBORA-MESSAGING-R001`. Shape: component record `{ enabled, configured, state, alert_eligible, backends[{ id, configured, state, reason_code }] }` built by the new `arbora/messaging/health.py`. | Test: `tests/messaging/test_health_component.py::test_states_alert_eligibility_and_safe_output` (L3) reads both authenticated projections and the detail-free probes (cases MSG-T07 and MSG-T09 to MSG-T12 of `specs/messaging-channel-supervision/test-spec.md`).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R005.1.1
Consume connector component states on the health endpoint
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Consume connector component states on the health endpoint.** Caller: authenticated GET `/api/dashboard/health` → `arbora/api/` health handler → parse `components` from the connector health body with `scion_sdk.host.ComponentHealthState`. Arbora alerts only where `alert` is true. Consumer of SCION-CONNECTOR-CONTROL-R065.3. Caller chain: authenticated `GET /api/dashboard/health` → `health_check` (`arbora/gateway/dashboard_api.py:207`) → `collect_health_async` (`arbora/observability/runtime_health.py:719`) → a probe added with `register_health_probe` (`arbora/observability/runtime_health.py:203`) that parses the connector `components` body. Shape: one new probe function in `arbora/observability/runtime_health.py` that validates each entry as `ComponentHealthState` (`scion_sdk.host`) and reuses `_ok`, `_not_configured` and `_degraded` (`runtime_health.py:146-169`); it sets the alert flag only when the entry's `alert` is true. | Test: `tests/api/test_dashboard_health_components.py::test_unconfigured_connector_raises_no_alert` (L3).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R006
Supervision/adapter ownership boundary
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Supervision/adapter ownership boundary.** Arbora's supervision types import only the adapter contract `arbora.messaging.base.MessagingBackend` and the records of `arbora.messaging.models`. Arbora owns the channel adapters and the supervision. Meristem owns neither. This requirement links `MERISTEM-INTEGRATION-001` (`MERISTEM-INTEGRATION-R002`, `MERISTEM-INTEGRATION-R019`) as the meristem-owned messaging/router spec this boundary depends on. Caller chain: `MessagingRegistry.create_all_enabled` in `arbora/messaging/registry.py` discovers adapters through the adapter entry-point group (`importlib.metadata`); `arbora/messaging/router.py` and `service.py` import no meristem module. Shape: the boundary is the entry-point group string `_ENTRY_POINT_GROUP` in `arbora/messaging/registry.py:43`; `arbora/messaging/{router,registry,service}.py` hold no meristem import. The planned static check is a new test file that scans those three files. | Test: `tests/messaging/test_import_boundary.py::test_supervision_imports_only_public_adapter_contract`. A source-level import check confirms `arbora/messaging/{router,registry,service}.py` import no meristem module. The test is planned; see `MSG-T08` in `test-spec.md`.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R007
Served channel gateway with an explicit intake switch and sender allowlist
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Served channel gateway with an explicit intake switch and sender allowlist.** Subsystem: messaging intake. Caller: host bootstrap `arbora/mcp_server/composition.py` (`detect_composition`, then `start_messaging_intake`) → `arbora/messaging/polling.py::run_poll_loop` → `arbora/messaging/planner_handler.py::create_planner_handler`. The served network host (the `streamable-http` container) is the channel gateway. Intake starts only when `MESSAGING_INTAKE_ENABLED` is explicitly true (the string `false` is false) or `KG_DAEMON_ROLE=host`. It opens only for configured platforms that `MESSAGING_INTAKE_PLATFORMS` lists. Credentials alone never start intake. The engine lease of `ARBORA-MESSAGING-R800.1000` still admits one poller per channel identity. `sender_admitted` admits a message only when `MESSAGING_ALLOWED_SENDERS` lists its `<platform>:<user id>`. An empty list admits no sender. An unlisted sender gets no turn, no command reply and no elicitation delivery. An admitted message runs as one turn under the identity of `ARBORA-MESSAGING-R007.1`. The engine per-channel work lease is the only poller singleton. The host lock is removed. Depends: `ARBORA-MESSAGING-R800.1000`, `ARBORA-MESSAGING-R007.1`. | Test: `tests/messaging/test_alert_operation.py::test_the_served_network_host_owns_intake_only_on_an_explicit_true`, `::test_only_listed_senders_are_admitted` and `::test_an_unlisted_sender_gets_no_turn_and_no_reply` (L3).
requirementARBORA-MESSAGINGSPECIFIED11a776ff65df
6afc063796e6
tests/messaging/test_alert_operation.py:253
tests/messaging/test_alert_operation.py:279
tests/messaging/test_alert_operation.py:292
ARBORA-MESSAGING-R007.1
Per-sender identity for inbound turns
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Per-sender identity for inbound turns.** Subsystem: messaging intake. Caller: `arbora/messaging/planner_handler.py::_burst_responder` → `arbora/messaging/sender_identity.py::session_for_sender` (new) → the host turn handler `host_ports().turn_handler`. Each admitted `<platform>:<user id>` maps to one enrolled principal through config `MESSAGING_SENDER_PRINCIPALS` (a map from sender to principal id) in `~/.config/arbora/config.json`. `session_for_sender` obtains the turn session by token exchange at the identity provider. The subject is the sender's principal and the actor is Arbora. It uses `arbora/mcp_server/backing/delegated_auth.py::exchange_token_for_agent`. The engine signer is the principal that the exchanged token names. Refusals: `SENDER_UNMAPPED` and `TOKEN_EXCHANGE_REFUSED`. Either refusal runs no turn and sends no reply. The action policy, fleet admission and audit record the sender's principal. Depends: `ARBORA-IDENTITY-R004.3`. Caller chain: `create_planner_handler` (`arbora/messaging/planner_handler.py:82`) → `_burst_responder` (`planner_handler.py:63`) → `session_for_sender` (new, `arbora/messaging/sender_identity.py`) → `exchange_token_for_agent` (`arbora/mcp_server/backing/delegated_auth.py:300`) → `host_ports().turn_handler`. Shape: one function `session_for_sender(platform, user_id)` and the typed refusals `SENDER_UNMAPPED` and `TOKEN_EXCHANGE_REFUSED` in `arbora/messaging/sender_identity.py`; the `MESSAGING_SENDER_PRINCIPALS` map is read with `setting()` as `MESSAGING_ALLOWED_SENDERS` is in `sender_admitted` (`planner_handler.py:34`). The burst responder replaces its fixed `channel_session` argument with the exchanged session. | Test: `tests/messaging/test_sender_identity.py::test_mapped_sender_runs_turn_under_principal` and `::test_refused_exchange_runs_no_turn` (L3).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R008
Alert intake operation
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Alert intake operation.** `messaging.alert` is served at `POST /api/v1/messaging/alert` through the invoke pipeline. It needs a bearer, the `kg:write` scope and an `Idempotency-Key`. It accepts `{"text"}` and the `msg`, `message` and `content` aliases, and an Alertmanager webhook body, and refuses an alert with no text. It delivers to `MESSAGING_DEFAULT_PLATFORM` and `MESSAGING_DEFAULT_CHANNEL`. Telegram and other adapter channels go through the governed messaging send under the caller's session. Mattermost goes through `fleet.call` admission to the mattermost connector (`MESSAGING_MATTERMOST_FLEET_SERVER` and `MESSAGING_MATTERMOST_FLEET_TOOL`), so Arbora makes no Mattermost API call. The EG effect journal holds each send at most once per key. A missing destination, a refused send or a connector error is a typed refusal, never a delivery. `TELEGRAM_API_BASE_URL` selects a self-hosted Bot API server. | `tests/messaging/test_alert_operation.py` and `tests/test_real_boot_messaging.py::test_an_admitted_alert_reaches_the_telegram_double`, which boots Arbora against a faked Bot API.
requirementARBORA-MESSAGINGSPECIFIED11a776ff65df
6afc063796e6
7089b148951f
tests/messaging/test_alert_operation.py:111
tests/messaging/test_alert_operation.py:125
tests/messaging/test_alert_operation.py:155
tests/messaging/test_alert_operation.py:185
tests/messaging/test_alert_operation.py:194
ARBORA-MESSAGING-R008.1
Shared signed inbound webhook ingress for webhook based adapters
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Shared signed inbound webhook ingress for webhook based adapters.** Subsystem: messaging intake. Entry point: `POST /api/v1/messaging/inbound/{platform}`, registered in `arbora/gateway/graph_api.py` beside `register_acp_routes`. Code: new `arbora/messaging/webhook_ingress.py::handle_inbound`. Steps: find the running backend for `platform`, call `backend.verify_inbound(headers, body)` and put the returned `InboundEvent` on that backend's queue. The route needs no bearer. The adapter signature check is the only admission. Body limit: config `MESSAGING_INBOUND_MAX_BYTES` default 1048576 [1024, 10485760] bytes. Refusals: `INBOUND_SIGNATURE_INVALID` (HTTP 401), `INBOUND_PLATFORM_UNKNOWN` (404), `INBOUND_TOO_LARGE` (413) and `INBOUND_INTAKE_DISABLED` (503, intake off per `ARBORA-MESSAGING-R007`). Evidence: one log line per refusal with the platform and code, never the body. The sender allowlist of `ARBORA-MESSAGING-R007` still applies after the event is queued. Depends: `ARBORA-MESSAGING-R007`, `ARBORA-INGRESS-R001`. Caller chain: `POST /api/v1/messaging/inbound/{platform}` → `register_acp_routes` neighbour registration in `arbora/gateway/graph_api.py:321-323` → `handle_inbound` (new, `arbora/messaging/webhook_ingress.py`) → `MessagingService.get_backend` (`arbora/messaging/service.py:94`) → `backend.verify_inbound` → the backend queue that `listen` drains. Shape: `handle_inbound` and a small refusal enum in `arbora/messaging/webhook_ingress.py`; add `verify_inbound` as a non-abstract method of `MessagingBackend` (`arbora/messaging/base.py`) that refuses by default; reuse `setting()` for `MESSAGING_INBOUND_MAX_BYTES`. | Test: `tests/messaging/test_webhook_ingress.py::test_signed_event_reaches_backend_queue_and_bad_signature_refuses` (L3) posts to the real route and asserts each refusal code.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009
Additional channel platforms (rollup)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Additional channel platforms (rollup).** Subsystem: messaging adapters. Each child adds one adapter that Arbora lacks and names one platform. Every adapter registers in the adapter entry-point group and passes the parametrized send test of all adapters. Children `.1` to `.21` cover the platforms. Webhook based adapters share the ingress of `ARBORA-MESSAGING-R008.1`. Depends: `ARBORA-MESSAGING-R800.1`. | Satisfied when children `.1` to `.21` pass. The root check is `tests/messaging/test_all_backends.py::test_every_platform_is_published_and_discovered` (L2).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.1
BlueBubbles iMessage relay channel (`bluebubbles`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**BlueBubbles iMessage relay channel (`bluebubbles`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('bluebubbles')` → `BlueBubblesBackend`. The entry point `bluebubbles` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `BlueBubblesBackend` from new `arbora/messaging/backends/bluebubbles.py`. Arbora adds a `bluebubbles` adapter for a self-hosted iMessage relay server's REST and webhook API. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: reply-to threads. Media: attachments. Inbound is webhook based. `BlueBubblesBackend.listen` yields events from the queue that the shared ingress `POST /api/v1/messaging/inbound/bluebubbles` (`ARBORA-MESSAGING-R008.1`) fills after `BlueBubblesBackend.verify_inbound(headers, body)` accepts the signature. The signing secret is the secrets reference in config `MESSAGING_BLUEBUBBLES_WEBHOOK_SECRET_REF`. The adapter reads its credentials with `setting('MESSAGING_BLUEBUBBLES_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `bluebubbles` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-bluebubbles` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `bluebubbles` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`, `ARBORA-MESSAGING-R008.1`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('bluebubbles')` (`arbora/messaging/service.py:94`) → `BlueBubblesBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/bluebubbles.py` defining `BlueBubblesBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/line.py`, whose `listen` drains a queue that a webhook fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[bluebubbles]` (L2) and `tests/messaging/test_channel_adapters.py::test_bluebubbles_inbound_event_reaches_router` (L3) drive the adapter against a faked `bluebubbles` API. Add `bluebubbles` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.2
Buzz community relay channel (`buzz`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Buzz community relay channel (`buzz`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('buzz')` → `BuzzBackend`. The entry point `buzz` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `BuzzBackend` from new `arbora/messaging/backends/buzz.py`. Arbora adds a `buzz` adapter for a Nostr-based human and agent community relay. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: room threads. Media: attachments. Inbound is a long-lived outbound connection. `BuzzBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_BUZZ_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `buzz` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-buzz` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `buzz` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('buzz')` (`arbora/messaging/service.py:94`) → `BuzzBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/buzz.py` defining `BuzzBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[buzz]` (L2) and `tests/messaging/test_channel_adapters.py::test_buzz_inbound_event_reaches_router` (L3) drive the adapter against a faked `buzz` API. Add `buzz` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.3
DingTalk channel (`dingtalk`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**DingTalk channel (`dingtalk`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('dingtalk')` → `DingTalkBackend`. The entry point `dingtalk` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `DingTalkBackend` from new `arbora/messaging/backends/dingtalk.py`. Arbora adds a `dingtalk` adapter for an enterprise chat bot API with stream-mode delivery. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: group conversations. Media: images and files. Inbound is a long-lived outbound connection. `DingTalkBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_DINGTALK_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `dingtalk` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-dingtalk` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `dingtalk` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('dingtalk')` (`arbora/messaging/service.py:94`) → `DingTalkBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/dingtalk.py` defining `DingTalkBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[dingtalk]` (L2) and `tests/messaging/test_channel_adapters.py::test_dingtalk_inbound_event_reaches_router` (L3) drive the adapter against a faked `dingtalk` API. Add `dingtalk` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.4
email channel (`email`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**email channel (`email`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('email')` → `EmailBackend`. The entry point `email` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `EmailBackend` from new `arbora/messaging/backends/email.py`. Arbora adds a `email` adapter for an IMAP mailbox for intake and SMTP for delivery. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: Message-ID and References threading. Media: attachments. Inbound is polled. `EmailBackend.listen` polls every `MESSAGING_EMAIL_POLL_INTERVAL_S` seconds (default 30, range [5, 600]) and yields only items newer than the stored cursor. The adapter reads its credentials with `setting('MESSAGING_EMAIL_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `email` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-email` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `email` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('email')` (`arbora/messaging/service.py:94`) → `EmailBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/email.py` defining `EmailBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/nextcloud.py`, whose `listen` polls the platform and yields new events; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[email]` (L2) and `tests/messaging/test_channel_adapters.py::test_email_inbound_event_reaches_router` (L3) drive the adapter against a faked `email` API. Add `email` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.5
Feishu and Lark channel (`feishu`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Feishu and Lark channel (`feishu`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('feishu')` → `FeishuBackend`. The entry point `feishu` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `FeishuBackend` from new `arbora/messaging/backends/feishu.py`. Arbora adds a `feishu` adapter for an enterprise chat bot API with event callbacks. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: topic threads. Media: images and files. Inbound is webhook based. `FeishuBackend.listen` yields events from the queue that the shared ingress `POST /api/v1/messaging/inbound/feishu` (`ARBORA-MESSAGING-R008.1`) fills after `FeishuBackend.verify_inbound(headers, body)` accepts the signature. The signing secret is the secrets reference in config `MESSAGING_FEISHU_WEBHOOK_SECRET_REF`. The adapter reads its credentials with `setting('MESSAGING_FEISHU_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `feishu` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-feishu` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `feishu` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`, `ARBORA-MESSAGING-R008.1`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('feishu')` (`arbora/messaging/service.py:94`) → `FeishuBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/feishu.py` defining `FeishuBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/line.py`, whose `listen` drains a queue that a webhook fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[feishu]` (L2) and `tests/messaging/test_channel_adapters.py::test_feishu_inbound_event_reaches_router` (L3) drive the adapter against a faked `feishu` API. Add `feishu` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.6
Nostr channel (`nostr`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Nostr channel (`nostr`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('nostr')` → `NostrBackend`. The entry point `nostr` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `NostrBackend` from new `arbora/messaging/backends/nostr.py`. Arbora adds a `nostr` adapter for signed relay events for direct messages. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: reply events. Media: media links. Inbound is a long-lived outbound connection. `NostrBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_NOSTR_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `nostr` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-nostr` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `nostr` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('nostr')` (`arbora/messaging/service.py:94`) → `NostrBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/nostr.py` defining `NostrBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[nostr]` (L2) and `tests/messaging/test_channel_adapters.py::test_nostr_inbound_event_reaches_router` (L3) drive the adapter against a faked `nostr` API. Add `nostr` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.7
ntfy push topics channel (`ntfy`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**ntfy push topics channel (`ntfy`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('ntfy')` → `NtfyBackend`. The entry point `ntfy` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `NtfyBackend` from new `arbora/messaging/backends/ntfy.py`. Arbora adds a `ntfy` adapter for a publish and subscribe push-notification topic server. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: no threads. Media: attachments. Inbound is a long-lived outbound connection. `NtfyBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_NTFY_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `ntfy` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-ntfy` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `ntfy` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('ntfy')` (`arbora/messaging/service.py:94`) → `NtfyBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/ntfy.py` defining `NtfyBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[ntfy]` (L2) and `tests/messaging/test_channel_adapters.py::test_ntfy_inbound_event_reaches_router` (L3) drive the adapter against a faked `ntfy` API. Add `ntfy` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.8
Photon Spectrum channel (`photon`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Photon Spectrum channel (`photon`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('photon')` → `PhotonBackend`. The entry point `photon` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `PhotonBackend` from new `arbora/messaging/backends/photon.py`. Arbora adds a `photon` adapter for a hosted iMessage and Spectrum bridge. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: reply-to threads. Media: attachments. Inbound is a long-lived outbound connection. `PhotonBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_PHOTON_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `photon` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-photon` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `photon` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('photon')` (`arbora/messaging/service.py:94`) → `PhotonBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/photon.py` defining `PhotonBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[photon]` (L2) and `tests/messaging/test_channel_adapters.py::test_photon_inbound_event_reaches_router` (L3) drive the adapter against a faked `photon` API. Add `photon` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.9
QQ Bot channel (`qqbot`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**QQ Bot channel (`qqbot`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('qqbot')` → `QQBotBackend`. The entry point `qqbot` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `QQBotBackend` from new `arbora/messaging/backends/qqbot.py`. Arbora adds a `qqbot` adapter for an official bot gateway for group and direct chats. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: reply-to messages. Media: images. Inbound is a long-lived outbound connection. `QQBotBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_QQBOT_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `qqbot` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-qqbot` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `qqbot` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('qqbot')` (`arbora/messaging/service.py:94`) → `QQBotBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/qqbot.py` defining `QQBotBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[qqbot]` (L2) and `tests/messaging/test_channel_adapters.py::test_qqbot_inbound_event_reaches_router` (L3) drive the adapter against a faked `qqbot` API. Add `qqbot` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.10
Raft workspace channel (`raft`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Raft workspace channel (`raft`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('raft')` → `RaftBackend`. The entry point `raft` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `RaftBackend` from new `arbora/messaging/backends/raft.py`. Arbora adds a `raft` adapter for a workspace that admits an external agent through a local bridge. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: workspace threads. Media: files. Inbound is a long-lived outbound connection. `RaftBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_RAFT_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `raft` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-raft` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `raft` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('raft')` (`arbora/messaging/service.py:94`) → `RaftBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/raft.py` defining `RaftBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[raft]` (L2) and `tests/messaging/test_channel_adapters.py::test_raft_inbound_event_reaches_router` (L3) drive the adapter against a faked `raft` API. Add `raft` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.11
Reef encrypted channel channel (`reef`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Reef encrypted channel channel (`reef`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('reef')` → `ReefBackend`. The entry point `reef` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `ReefBackend` from new `arbora/messaging/backends/reef.py`. Arbora adds a `reef` adapter for an end-to-end encrypted agent channel. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: conversation threads. Media: attachments. Inbound is a long-lived outbound connection. `ReefBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_REEF_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `reef` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-reef` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `reef` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('reef')` (`arbora/messaging/service.py:94`) → `ReefBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/reef.py` defining `ReefBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[reef]` (L2) and `tests/messaging/test_channel_adapters.py::test_reef_inbound_event_reaches_router` (L3) drive the adapter against a faked `reef` API. Add `reef` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.12
SimpleX Chat channel (`simplex`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**SimpleX Chat channel (`simplex`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('simplex')` → `SimplexBackend`. The entry point `simplex` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `SimplexBackend` from new `arbora/messaging/backends/simplex.py`. Arbora adds a `simplex` adapter for a local chat daemon over a WebSocket. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: quoted replies. Media: files. Inbound is a long-lived outbound connection. `SimplexBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_SIMPLEX_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `simplex` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-simplex` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `simplex` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('simplex')` (`arbora/messaging/service.py:94`) → `SimplexBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/simplex.py` defining `SimplexBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[simplex]` (L2) and `tests/messaging/test_channel_adapters.py::test_simplex_inbound_event_reaches_router` (L3) drive the adapter against a faked `simplex` API. Add `simplex` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.13
SMS channel (`sms`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**SMS channel (`sms`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('sms')` → `SmsBackend`. The entry point `sms` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `SmsBackend` from new `arbora/messaging/backends/sms.py`. Arbora adds a `sms` adapter for a provider-neutral text-message gateway with a served inbound webhook. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: no threads. Media: MMS media. Inbound is webhook based. `SmsBackend.listen` yields events from the queue that the shared ingress `POST /api/v1/messaging/inbound/sms` (`ARBORA-MESSAGING-R008.1`) fills after `SmsBackend.verify_inbound(headers, body)` accepts the signature. The signing secret is the secrets reference in config `MESSAGING_SMS_WEBHOOK_SECRET_REF`. The adapter reads its credentials with `setting('MESSAGING_SMS_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `sms` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-sms` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `sms` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`, `ARBORA-MESSAGING-R008.1`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('sms')` (`arbora/messaging/service.py:94`) → `SmsBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/sms.py` defining `SmsBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/line.py`, whose `listen` drains a queue that a webhook fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[sms]` (L2) and `tests/messaging/test_channel_adapters.py::test_sms_inbound_event_reaches_router` (L3) drive the adapter against a faked `sms` API. Add `sms` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.14
Tlon (Urbit) channel (`tlon`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Tlon (Urbit) channel (`tlon`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('tlon')` → `TlonBackend`. The entry point `tlon` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `TlonBackend` from new `arbora/messaging/backends/tlon.py`. Arbora adds a `tlon` adapter for a peer-to-peer chat network through a ship's HTTP API. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: chat threads. Media: media links. Inbound is a long-lived outbound connection. `TlonBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_TLON_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `tlon` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-tlon` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `tlon` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('tlon')` (`arbora/messaging/service.py:94`) → `TlonBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/tlon.py` defining `TlonBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[tlon]` (L2) and `tests/messaging/test_channel_adapters.py::test_tlon_inbound_event_reaches_router` (L3) drive the adapter against a faked `tlon` API. Add `tlon` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.15
generic webhook channel (`webhook`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**generic webhook channel (`webhook`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('webhook')` → `WebhookBackend`. The entry point `webhook` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `WebhookBackend` from new `arbora/messaging/backends/webhook.py`. Arbora adds a `webhook` adapter for a signed inbound HTTP webhook and an outbound HTTP target. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: no threads. Media: no media. Inbound is webhook based. `WebhookBackend.listen` yields events from the queue that the shared ingress `POST /api/v1/messaging/inbound/webhook` (`ARBORA-MESSAGING-R008.1`) fills after `WebhookBackend.verify_inbound(headers, body)` accepts the signature. The signing secret is the secrets reference in config `MESSAGING_WEBHOOK_WEBHOOK_SECRET_REF`. The adapter reads its credentials with `setting('MESSAGING_WEBHOOK_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `webhook` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-webhook` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `webhook` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`, `ARBORA-MESSAGING-R008.1`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('webhook')` (`arbora/messaging/service.py:94`) → `WebhookBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/webhook.py` defining `WebhookBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/line.py`, whose `listen` drains a queue that a webhook fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[webhook]` (L2) and `tests/messaging/test_channel_adapters.py::test_webhook_inbound_event_reaches_router` (L3) drive the adapter against a faked `webhook` API. Add `webhook` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.16
WeCom channel (`wecom`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**WeCom channel (`wecom`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('wecom')` → `WeComBackend`. The entry point `wecom` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `WeComBackend` from new `arbora/messaging/backends/wecom.py`. Arbora adds a `wecom` adapter for an enterprise chat bot API with encrypted callbacks. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: group conversations. Media: images and files. Inbound is webhook based. `WeComBackend.listen` yields events from the queue that the shared ingress `POST /api/v1/messaging/inbound/wecom` (`ARBORA-MESSAGING-R008.1`) fills after `WeComBackend.verify_inbound(headers, body)` accepts the signature. The signing secret is the secrets reference in config `MESSAGING_WECOM_WEBHOOK_SECRET_REF`. The adapter reads its credentials with `setting('MESSAGING_WECOM_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `wecom` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-wecom` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `wecom` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`, `ARBORA-MESSAGING-R008.1`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('wecom')` (`arbora/messaging/service.py:94`) → `WeComBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/wecom.py` defining `WeComBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/line.py`, whose `listen` drains a queue that a webhook fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[wecom]` (L2) and `tests/messaging/test_channel_adapters.py::test_wecom_inbound_event_reaches_router` (L3) drive the adapter against a faked `wecom` API. Add `wecom` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.17
Weixin channel (`weixin`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Weixin channel (`weixin`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('weixin')` → `WeixinBackend`. The entry point `weixin` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `WeixinBackend` from new `arbora/messaging/backends/weixin.py`. Arbora adds a `weixin` adapter for a consumer chat bridge for direct and group chats. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: quoted replies. Media: images and files. Inbound is a long-lived outbound connection. `WeixinBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_WEIXIN_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `weixin` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-weixin` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `weixin` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('weixin')` (`arbora/messaging/service.py:94`) → `WeixinBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/weixin.py` defining `WeixinBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[weixin]` (L2) and `tests/messaging/test_channel_adapters.py::test_weixin_inbound_event_reaches_router` (L3) drive the adapter against a faked `weixin` API. Add `weixin` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.18
X mentions channel (`x`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**X mentions channel (`x`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('x')` → `XBackend`. The entry point `x` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `XBackend` from new `arbora/messaging/backends/x.py`. Arbora adds a `x` adapter for allowlisted public mentions and replies. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: reply chains. Media: images. Inbound is polled. `XBackend.listen` polls every `MESSAGING_X_POLL_INTERVAL_S` seconds (default 30, range [5, 600]) and yields only items newer than the stored cursor. The adapter reads its credentials with `setting('MESSAGING_X_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `x` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-x` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `x` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('x')` (`arbora/messaging/service.py:94`) → `XBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/x.py` defining `XBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/nextcloud.py`, whose `listen` polls the platform and yields new events; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[x]` (L2) and `tests/messaging/test_channel_adapters.py::test_x_inbound_event_reaches_router` (L3) drive the adapter against a faked `x` API. Add `x` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.19
Yuanbao channel (`yuanbao`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Yuanbao channel (`yuanbao`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('yuanbao')` → `YuanbaoBackend`. The entry point `yuanbao` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `YuanbaoBackend` from new `arbora/messaging/backends/yuanbao.py`. Arbora adds a `yuanbao` adapter for a chat assistant platform bot API. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: conversations. Media: images and stickers. Inbound is a long-lived outbound connection. `YuanbaoBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_YUANBAO_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `yuanbao` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-yuanbao` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `yuanbao` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('yuanbao')` (`arbora/messaging/service.py:94`) → `YuanbaoBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/yuanbao.py` defining `YuanbaoBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[yuanbao]` (L2) and `tests/messaging/test_channel_adapters.py::test_yuanbao_inbound_event_reaches_router` (L3) drive the adapter against a faked `yuanbao` API. Add `yuanbao` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.20
Zalo Official Account channel (`zalo`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Zalo Official Account channel (`zalo`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('zalo')` → `ZaloBackend`. The entry point `zalo` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `ZaloBackend` from new `arbora/messaging/backends/zalo.py`. Arbora adds a `zalo` adapter for an official-account bot API. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: no threads. Media: images. Inbound is webhook based. `ZaloBackend.listen` yields events from the queue that the shared ingress `POST /api/v1/messaging/inbound/zalo` (`ARBORA-MESSAGING-R008.1`) fills after `ZaloBackend.verify_inbound(headers, body)` accepts the signature. The signing secret is the secrets reference in config `MESSAGING_ZALO_WEBHOOK_SECRET_REF`. The adapter reads its credentials with `setting('MESSAGING_ZALO_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `zalo` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-zalo` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `zalo` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`, `ARBORA-MESSAGING-R008.1`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('zalo')` (`arbora/messaging/service.py:94`) → `ZaloBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/zalo.py` defining `ZaloBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/line.py`, whose `listen` drains a queue that a webhook fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[zalo]` (L2) and `tests/messaging/test_channel_adapters.py::test_zalo_inbound_event_reaches_router` (L3) drive the adapter against a faked `zalo` API. Add `zalo` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R009.21
Zalo personal account channel (`zalouser`)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Zalo personal account channel (`zalouser`).** Subsystem: messaging adapters. Caller: host bootstrap → `start_messaging_intake` → `polling.py::_serve` → `MessagingService.get_backend('zalouser')` → `ZaloUserBackend`. The entry point `zalouser` in the adapter entry-point group (`_ENTRY_POINT_GROUP`, `arbora/messaging/registry.py:43`) loads `ZaloUserBackend` from new `arbora/messaging/backends/zalouser.py`. Arbora adds a `zalouser` adapter for a personal-account chat bridge. It sends text through `send_message` and `reply_to`, and receives messages through `listen`. Thread model: quoted replies. Media: images. Inbound is a long-lived outbound connection. `ZaloUserBackend.listen` holds the connection, yields events, and reconnects with the backoff of `ARBORA-MESSAGING-R003`. The adapter reads its credentials with `setting('MESSAGING_ZALOUSER_TOKEN')`, which the secrets backend resolves, and imports its SDK inside `connect`. Wiring: add `zalouser` to `PlatformId`, a `CAPABILITY_MATRIX` entry, the extra `messaging-zalouser` and the entry point in `pyproject.toml`. Intake stays off until `MESSAGING_INTAKE_PLATFORMS` lists `zalouser` and `ARBORA-MESSAGING-R007` admits the sender. Refusals: `SEND_FAILED` carries a `SendResult` with `success` false when the platform call fails; `AdapterImportFailed` when the SDK is missing. Evidence: none beyond the inbox row of `arbora/messaging/inbox.py`. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. Caller chain: host bootstrap `start_messaging_intake` (`arbora/messaging/intake.py:58`, called at `arbora/mcp_server/composition.py:315`) → `run_poll_loop` (`arbora/messaging/polling.py:88`) → `_serve` (`arbora/messaging/polling.py:44`) → `MessagingService.get_backend('zalouser')` (`arbora/messaging/service.py:94`) → `ZaloUserBackend` (new) → `InboundRouter.register_backend` (`arbora/messaging/router.py:81`). Shape: new `arbora/messaging/backends/zalouser.py` defining `ZaloUserBackend` as a subclass of `MessagingBackend` (`arbora/messaging/base.py`) with `connect`, `send_message`, `reply_to` and `listen`; reuse the shape of `arbora/messaging/backends/matrix.py`, whose `listen` drains a queue that a held connection fills; reuse `PlatformId` (`arbora/messaging/models.py:67`) and `CAPABILITY_MATRIX` (`arbora/messaging/capabilities.py`) for the registration. | Test: `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api[zalouser]` (L2) and `tests/messaging/test_channel_adapters.py::test_zalouser_inbound_event_reaches_router` (L3) drive the adapter against a faked `zalouser` API. Add `zalouser` to `PLATFORMS` in the first test.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R800
Messaging adapter contract, command registry and the full channel adapter set (rollup)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Messaging adapter contract, command registry and the full channel adapter set (rollup).** Subsystem: messaging adapters. `arbora.messaging` owns the `MessagingBackend` contract, the capability and event models, the single built-in command registry and the Telegram markdown renderer. It owns the channel adapters, each behind its own install extra. It holds 17 adapters. The chat adapters are telegram, mattermost, discord, slack, whatsapp, teams, googlechat and googlemeet. The others are matrix, irc, signal, imessage, line, twitch, synology, voicecall and nextcloud. Children of `ARBORA-MESSAGING-R009` add 21 more. Children `.1` to `.6` cover model, behavior, wiring, refusal, evidence and hot-path proof. Depends: `ARBORA-MESSAGING-R800.1`, `ARBORA-MESSAGING-R800.3`. | Satisfied when the children pass. The root journey is `tests/messaging/test_all_backends.py::test_send_reaches_the_faked_platform_api` (L3).
requirementARBORA-MESSAGINGSPECIFIED9da18258ca1b
tests/messaging/test_primitives.py:17
ARBORA-MESSAGING-R800.1
Model: contract records and entry-point discovery
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Model: contract records and entry-point discovery.** Subsystem: messaging adapters. Code: `arbora/messaging/base.py::MessagingBackend` and `arbora/messaging/models.py` (`MessagingConfig`, `InboundEvent`, `Message`, `SendResult`, `PlatformId`) and `arbora/messaging/capabilities.py::CAPABILITY_MATRIX`. Adapters register under the adapter entry-point group in `pyproject.toml` (the constant `_ENTRY_POINT_GROUP` in `arbora/messaging/registry.py:43`). Caller chain: `start_messaging_intake` (`arbora/messaging/intake.py:58`) → `MessagingService.get_backend` (`arbora/messaging/service.py:94`) → `MessagingRegistry.create_backend` (`arbora/messaging/registry.py:166`). A new adapter adds its id to `PlatformId` and to `CAPABILITY_MATRIX`. Depends: none. Shape: the records live in `arbora/messaging/models.py` and `arbora/messaging/base.py`; `create_backend` (`arbora/messaging/registry.py:166`) resolves an adapter from the entry points; reuse the existing `PlatformId` enum (`models.py:67`) and `CAPABILITY_MATRIX` rather than a second table. | Test: `tests/messaging/test_primitives.py::test_command_specs_match_registry_and_filter_by_surface` (L1) and `tests/messaging/test_all_backends.py::test_every_platform_is_published_and_discovered` (L2).
requirementARBORA-MESSAGINGVERIFIED010110ac4aa8
tests/messaging/test_alert_operation.py:322
tests/messaging/test_all_backends.py:138
tests/messaging/test_twitch_inbound.py:19
ARBORA-MESSAGING-R800.2
Behavior
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Behavior.** One command registry serves every platform and the terminal. Built-in commands answer locally. Plain text and model-routed or agent-routed commands go to the agent. Caller chain: inbound text → `create_planner_handler` (`arbora/messaging/planner_handler.py:82`, call at line 121) → `handle_command` (`arbora/messaging/commands.py:87`) → built-in registry in `arbora/messaging/commands.py`; the terminal front end reads the same registry through `command_specs` (`commands.py:58`). Shape: one registry in `arbora/messaging/commands.py`; no per-platform command table. | `tests/messaging/test_primitives.py::test_builtin_commands_answer_locally`
requirementARBORA-MESSAGINGVERIFIEDbc26d7b669bc
tests/messaging/test_primitives.py:68
tests/messaging/test_primitives.py:80
ARBORA-MESSAGING-R800.3
Wiring: lazy adapter loading names the missing extra
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Wiring: lazy adapter loading names the missing extra.** Subsystem: messaging adapters. Caller: `MessagingRegistry.create_backend` → entry point `.load()` → adapter `connect`. Importing `arbora.messaging` imports no platform SDK. An adapter imports its SDK inside `connect`. A missing SDK raises `ImportError` whose message names the install extra, for example `arbora[messaging-twitch]`. `MessagingRegistry.create_all_enabled` records that failure as DEGRADED with `AdapterImportFailed`. Depends: `ARBORA-MESSAGING-R800.1`. Caller chain: `MessagingRegistry.create_all_enabled` (`arbora/messaging/registry.py:275`) → `create_backend` (`registry.py:166`) → entry point `load()` → adapter `connect`. Shape: each adapter under `arbora/messaging/backends/` imports its SDK inside `connect` and raises `ImportError` naming `arbora[messaging-<id>]`; `AdapterImportFailed` is recorded by `create_all_enabled`. | Test: `tests/messaging/test_channel_adapters.py::test_connect_names_the_extra_when_the_sdk_is_missing` (L2).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R800.4
Refusal
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Refusal.** An unknown command or botname-suffixed command never raises; a command outside the surface is hidden from that surface's listing. Caller chain: inbound text → `handle_command` (`arbora/messaging/commands.py:87`), which returns `None` for text it does not own. Shape: `handle_command` returns `None` for unknown and bot-name-suffixed commands and `command_specs(surface)` filters by surface (`commands.py:58`); no new type. | `tests/messaging/test_primitives.py::test_non_builtin_text_falls_through_to_the_agent`
requirementARBORA-MESSAGINGVERIFIEDbc26d7b669bc
tests/messaging/test_primitives.py:58
tests/messaging/test_primitives.py:80
ARBORA-MESSAGING-R800.5
Evidence
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Evidence.** Tests assert the registry views per surface, built-in replies and the Telegram rendering contract with no network. Caller chain: the tests call `handle_command` (`arbora/messaging/commands.py:87`), `command_specs` (`commands.py:58`) and `markdown_to_telegram_html` (`arbora/messaging/render.py:42`) directly with no network. Shape: fixtures in `tests/messaging/test_primitives.py` only; no production code. | `tests/messaging/test_primitives.py::test_render_structure_leaks_no_markdown_markers`
requirementARBORA-MESSAGINGVERIFIEDe755549375e6
tests/messaging/test_primitives.py:49
ARBORA-MESSAGING-R800.6
Hot-path proof: render and dispatch latency
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Hot-path proof: render and dispatch latency.** Subsystem: messaging adapters. Entry point: `arbora/messaging/render.py` render calls and `arbora/messaging/commands.py::handle_command`. A nightly benchmark renders and dispatches 10,000 mixed messages and records p50 and p99 latency per call. The budget is p99 under 5 ms per call and memory growth under 64 MiB. The benchmark never gates a pull request. Depends: `ARBORA-MESSAGING-R800.3`. Caller chain: nightly benchmark → `markdown_to_telegram_html` (`arbora/messaging/render.py:42`) and `handle_command` (`arbora/messaging/commands.py:87`). Shape: one benchmark file `tests/messaging/bench_render_dispatch.py` (planned) that loops 10,000 mixed messages and records p50 and p99; no production code. | Test: `tests/messaging/test_primitives.py::test_render_inline_forms` (L1) covers correctness. The benchmark is `tests/messaging/bench_render_dispatch.py::test_ten_thousand_messages` (nightly).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R700
Action notification and webhook dispatch
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Action notification and webhook dispatch.** `arbora/messaging/action_dispatch.py` delivers the notifications and webhooks of a completed ontology Action from the engine's action outbox event. `NotificationSpec` and `WebhookSpec` are closed Pydantic models. A `Notifier` sink delivers or journals; a webhook goes through an injected HTTP transport or is recorded. Every dispatch returns an outcome record with `delivered`, `transport` and a timestamp from an injected clock. A raising sink or failing transport yields a recorded error and never blocks the Action. `dispatch_action_notification` in `arbora/messaging/service.py` delivers notifications through governed reach. Dispatch is O(1) per spec and holds no shared state, so concurrent dispatches run in parallel. Budget: p50 under 0.1 ms and p99 under 1 ms excluding transport, memory under 1 MiB. Engine side: `MEDULLA-UNIFIED-DATA-PLANE-R700`. The dispatch input is the engine outbox topic `__action_completed` and its payload fields. | `tests/messaging/test_action_dispatch.py` asserts recorded, error, delivered, non-2xx and exception outcomes and that no outcome raises.
requirementARBORA-MESSAGINGSPECIFIEDfb0bc5b69328
tests/messaging/test_action_dispatch.py:19
tests/messaging/test_action_dispatch.py:33
tests/messaging/test_action_dispatch.py:56
ARBORA-MESSAGING-R700.1
Memory webhook subscription operations
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Memory webhook subscription operations.** Stage: served operations. Add `webhook.memory.subscribe`, `webhook.memory.unsubscribe` and `webhook.memory.list` to `operations()` in `arbora/api/ops/messaging.py`. Verbs are `manage`, `manage` and `find`. Scope: `webhook:manage`. A subscription is `{subscription_id, tenant, url, secret_ref, topics, active}`. `topics` is a non-empty subset of `memory.derivation.completed`, `memory.claim.changed` and `memory.card.updated`. `secret_ref` names an OpenBao path. Arbora stores no secret value. The url must use https. Subscriptions persist in the engine KV namespace `webhook_subscriptions`, key `<tenant>/<subscription_id>`, through `send_engine` (`ARBORA-OPS-R897.1`) and `KvPut` with compare-and-set. Refusals: `INVALID_ARGUMENT` for a non-https url or an unknown topic, with the field named. Writes: the KV entry. Depends: `ARBORA-OPS-R897.1`. Shape: three handlers over one `SubscriptionStore` class in new `arbora/messaging/memory_subscriptions.py`; reuse the KV calls of `arbora/api/ops/memory.py`. Caller chain: served `manage` and `find` → `arbora/api/invoke/pipeline.py::invoke` → handlers added to `operations()` in `arbora/api/ops/messaging.py` → `SubscriptionStore` (new). | Test: `tests/messaging/test_memory_webhooks.py::test_subscribe_list_unsubscribe_and_refusals` (served: HTTP and MCP).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R700.2
Signed delivery with retries
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Signed delivery with retries.** Stage: delivery. Add `arbora/messaging/webhook_delivery.py` with `sign_payload(secret, timestamp, body)` and `deliver_with_retry(request: DeliveryRequest)`. The signature is hex HMAC-SHA256 over `<timestamp>.<body>`. Headers: `X-Arbora-Signature`, `X-Arbora-Timestamp`, `X-Arbora-Event` and `X-Arbora-Delivery`, where the last is a stable id per event and subscription. The function calls `send_webhook` of `arbora/messaging/action_dispatch.py` for each attempt and adds no second transport. A 2xx status ends delivery. Any other status or transport error retries after `min(retry_cap_s, retry_base_s * 2^attempt)` seconds. After `retry_max_attempts` attempts the delivery is dead: the function writes one record to the KV namespace `webhook_dead_letters` and returns `dead`. Configuration in `config.json` under `memory_webhooks`: `retry_max_attempts` default 5 [1, 12], `retry_base_s` default 2 [0.5, 60], `retry_cap_s` default 300 [1, 3600], `timeout_s` default 10 [1, 60]. The secret loads from OpenBao by `secret_ref` for each delivery batch and never enters a log. Writes: dead-letter records only. Depends: `ARBORA-MESSAGING-R700`, `ARBORA-MESSAGING-R700.1`. Shape: one `DeliveryRequest` struct; reuse `send_webhook` and the clock injection of `action_dispatch.py`. Caller chain: pump tick (`ARBORA-MESSAGING-R700.3`) → `deliver_with_retry` (new, `arbora/messaging/webhook_delivery.py`) → `sign_payload` (new) and `send_webhook` in `arbora/messaging/action_dispatch.py`. | Test: `tests/messaging/test_memory_webhooks.py::test_signature_retry_backoff_and_dead_letter` (module test with an injected transport and clock).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R700.3
Outbox pump from the engine
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Outbox pump from the engine.** Stage: scheduled job. Caller chain: host bootstrap → the supervised job `memory-webhook-pump` registered in `arbora/messaging/supervision.py` → `run_pump` in new `arbora/messaging/memory_webhooks.py`. Each tick `run_pump` calls engine `MutationOutbox` op `Pull { consumer: "memory-webhooks", topics, limit }` through `send_engine`, with a service principal that holds the engine action `memory:events`. It matches each event to active subscriptions of the event's tenant and topic. It calls `deliver_with_retry` for each match. It sends op `Ack` for the lease after every matched subscription has returned `delivered` or `dead`. An event with no match is acknowledged. A crash before `Ack` leaves the lease to expire. The engine then redelivers. The stable delivery id lets the receiver deduplicate. Configuration under `memory_webhooks`: `pull_interval_s` default 2 [0.5, 60] and `pull_limit` default 100 [1, 1000], capped by `participant.events_pull_max`. Engine owner: `MEDULLA-DECISION-ENGINE-R073.6`, `MEDULLA-DECISION-ENGINE-R073.7`. Writes: engine cursor through `Ack`. Depends: `ARBORA-MESSAGING-R700.2`, `MEDULLA-DECISION-ENGINE-R073.7`. Shape: `run_pump` of at most 35 statements calling `match_subscriptions`, `deliver_with_retry` and `ack_lease`. | Test: `tests/messaging/test_memory_webhooks.py::test_pump_pulls_delivers_and_acks_once` (served: loopback engine and receiver). Test: `::test_crash_before_ack_redelivers_with_the_same_delivery_id`.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R700.4
Refusal, evidence and hot-path proof
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Refusal, evidence and hot-path proof.** Stage: scheduled job. A subscription whose tenant differs from the event tenant never matches. A removed subscription stops at the next tick. Each delivery writes one journal entry `{delivery_id, subscription_id, topic, outcome, attempts, status_code}` through the existing outcome record of `send_webhook`. The entry holds no payload. The served journey appends a turn through `participant.turn.append` and waits for the derive job. It asserts one signed delivery of each of the three topics at a loopback receiver. Depends: `ARBORA-MESSAGING-R700.3`, `ARBORA-OPS-R897.4`. Caller chain: pump tick → `run_pump` (new, `arbora/messaging/memory_webhooks.py`) → `deliver_with_retry` (new) → `send_webhook` in `arbora/messaging/action_dispatch.py`, whose existing outcome record carries the journal entry. Shape: journal entry `{ delivery_id, subscription_id, topic, outcome, attempts, status_code }` with no payload, recorded through the outcome record of `send_webhook`. | Test: `tests/messaging/test_memory_webhooks.py::test_turn_to_signed_webhook_journey` (served: HTTP and MCP with a loopback engine and receiver). Test: `::test_other_tenant_events_never_match`.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R800.1000
Intake lease on the engine WorkItem methods
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Intake lease on the engine WorkItem methods.** Subsystem: messaging intake. Caller chain: `arbora/messaging/intake.py::run_owned_intake` → `arbora/messaging/lease.py::run_owned_intake`. One durable WorkItem per `(platform, identity)` admits one inbound poller. Arbora calls the served engine methods `SubmitWorkItem`, `GetWorkItem`, `ClaimWorkItem`, `RenewWorkItemLease` and `DeferWorkItem` through `client.work_items`. It keeps no lease state of its own. A lost lease cancels that platform's listener task. Another host may take over after the lease expires. Depends: `MEDULLA-DURABLE-KERNEL-R750.750`. Shape: the lease code is `acquire_intake_lease` (`arbora/messaging/lease.py:159`) and `run_owned_intake` (`lease.py:423`); the engine WorkItem namespace is reached by `_work_items(engine)` (`lease.py:39`); reuse that helper and keep no lease state in Arbora. | Test: `tests/messaging/test_lease.py::test_two_contenders_cannot_both_own_intake` and `tests/messaging/test_lease.py::test_lost_renewal_stops_intake_and_releases_the_lease` (L3) run two owners against a fake WorkItem namespace.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R800.1001
Behavior
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Behavior.** Two contenders for the same platform get one owner. A lost renewal stops that platform only, and intake stops when no platform holds a lease. The renewal thread keeps the caller's context. A stopped intake defers its lease so another owner can claim it. Caller chain: `start_messaging_intake` (`arbora/messaging/intake.py:58`) → `run_owned_intake` (`arbora/messaging/intake.py:28`) → `run_with_intake_leases` (`arbora/messaging/lease.py:350`) → `_renew_one` (`lease.py:302`) and `_handle_lease_loss` (`lease.py:324`). Shape: one renewal thread in `run_with_intake_leases` that copies the caller context; a lost lease sets the per-platform stop event; `_release_intake_lease` (`lease.py:261`) defers the row. | `tests/messaging/test_lease.py::test_two_contenders_cannot_both_own_intake`
requirementARBORA-MESSAGINGVERIFIEDe755549375e6
tests/messaging/test_lease.py:83
ARBORA-MESSAGING-R800.1002
Refusal
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Refusal.** Intake opens no poller when the engine serves no WorkItem methods. It opens none for a session without a tenant or for a row with another identity. Caller chain: `start_messaging_intake` (`arbora/messaging/intake.py:58`) → `run_owned_intake` (`arbora/messaging/intake.py:28`) → `acquire_intake_lease` (`arbora/messaging/lease.py:159`), which raises `WorkItemBackendUnavailable` or `NativeWorkItemRequired` before any poller opens. Shape: refusal paths in `acquire_intake_lease` and `_validate_lease_row` (`lease.py:134`); the row tenant comes from `_session_tenant` (`lease.py:113`). | `tests/messaging/test_lease.py::test_missing_authority_opens_no_poller`
requirementARBORA-MESSAGINGVERIFIEDbc26d7b669bc
tests/messaging/test_lease.py:106
ARBORA-MESSAGING-R800.1003
Intake lease state machine with a `Suspect` state
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**Intake lease state machine with a `Suspect` state.** Subsystem: messaging intake. Caller chain: `run_owned_intake` (`arbora/messaging/lease.py:423`) -> `run_with_intake_leases` (`:350`) -> `_renew_one` (`:302`) and `acquire_intake_lease` (`:159`) -> `transition`. Rule: the closed states are `Held`, `Suspect`, `Lost` and `Released`; `Released` is terminal. The closed events are `heartbeat_ok`, `heartbeat_err`, `fence_refused`, `ttl_lapsed`, `reacquired` and `release`. Guard: `within_ttl` (the lease TTL has not lapsed since the last good heartbeat). Transition table, 12 legal edges: `Held` to `Held` on `heartbeat_ok`; `Held` to `Suspect` on `heartbeat_err`; `Suspect` to `Held` on `heartbeat_ok`; `Suspect` to `Suspect` on `heartbeat_err` when `within_ttl`; `Held` and `Suspect` to `Lost` on `fence_refused`; `Held` and `Suspect` to `Lost` on `ttl_lapsed`; `Lost` to `Held` on `reacquired` through the same engine call as the first acquire; `Held`, `Suspect` and `Lost` to `Released` on `release`. The machine refuses every other pair (12 pairs) and every failed guard. One heartbeat exception moves `Held` to `Suspect` and keeps polling. The persisted field is `IntakeLease.state: IntakeLeaseState` (`arbora/messaging/lease.py:104`; the class is a frozen dataclass today and becomes mutable behind `transition`). The engine WorkItem row remains the durable owner record. One function, `transition` in `lease.py`, writes the state. `_handle_lease_loss` (`:324`) runs only on entry to `Lost`. The typed refusal is `IllegalIntakeLeaseTransition` with the code `INTAKE_LEASE_TRANSITION_ILLEGAL` and the fields `machine` (`messaging_intake_lease`), `from_state` and `event`, defined in `lease.py`. Depends: `ARBORA-MESSAGING-R800.1001`. Shape: `IntakeLeaseState`, `IntakeLeaseEvent`, `transition` and the error in `arbora/messaging/lease.py`. | Test: `tests/messaging/test_lease.py::test_legal_edge` (L1, planned), one parameter id per edge: `held-heartbeat_ok-held`, `held-heartbeat_err-suspect`, `suspect-heartbeat_ok-held`, `suspect-heartbeat_err-suspect`, `held-fence_refused-lost`, `suspect-fence_refused-lost`, `held-ttl_lapsed-lost`, `suspect-ttl_lapsed-lost`, `lost-reacquired-held`, `held-release-released`, `suspect-release-released`, `lost-release-released`. `tests/messaging/test_lease.py::test_every_illegal_pair_is_refused` (L1, planned) covers the other 12 pairs and the failed guard, and asserts the code and the three fields.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R800.1004
One failed heartbeat does not stop channel polling (wiring and hot-path proof)
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**One failed heartbeat does not stop channel polling (wiring and hot-path proof).** Subsystem: messaging intake. Caller chain: `run_owned_intake` -> `run_with_intake_leases` (`arbora/messaging/lease.py:350`) -> `_renew` loop -> `_renew_one` (`:302`) -> engine WorkItem renew -> `transition` -> `_handle_lease_loss` (`:324`) -> platform stop event. Rule: a single transient heartbeat error leaves the platform polling. The lease loses ownership only by the `Lost` edges of `.1003`. After a loss, the intake re-acquires without a restart. `_renew_one` returns an event, not a boolean. A source search finds no write of `state` outside `transition`. The proof runs the real intake loop with a fake engine. Depends: `ARBORA-MESSAGING-R800.1003`. Shape: the changed `_renew_one` and `_handle_lease_loss` in `arbora/messaging/lease.py`. | Test: `tests/messaging/test_lease.py::test_one_heartbeat_error_keeps_polling_and_a_lost_lease_reacquires` (L3, planned). `tests/messaging/test_lease.py::test_only_transition_writes_lease_state` (L1, planned) is the source search.
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-MESSAGING-R800.1005
The intake lease machine is described in the ontology
Definition — ARBORA-MESSAGING / ARBORA-MESSAGING — Messaging channel supervision lifecycleCanonical requirement and verification source
**The intake lease machine is described in the ontology.** Subsystem: messaging intake, ontology. Caller chain: the ontology pack loader reads `arbora/ontology/state_machines.ttl`, and a check compares it with `IntakeLeaseState` and `IntakeLeaseEvent` in `arbora/messaging/lease.py`. Rule: the pack file `arbora/ontology/state_machines.ttl` declares the machine `arbora:IntakeLeaseMachine`, the state classes `arbora:IntakeHeld`, `arbora:IntakeSuspect`, `arbora:IntakeLost` and `arbora:IntakeReleased`, one `arbora:IntakeLeaseTransition` class per edge of `.1003`, the event classes, the guard class `arbora:WithinTtl`, and `arbora:IntakeLeaseTransitionRefused`. Each class extends the core classes `StateMachine`, `State`, `Transition`, `Event` and `Guard` of `MEDULLA-ORCH-VOCAB-R811`; the refusal class extends the core class `Concept`, because the core defines no refusal class. The file uses no `owl:imports`. The machine class is an instance of `StateMachine`, and each terminal state also extends `TerminalState`. Depends: `MEDULLA-ORCH-VOCAB-R811` (pending: it exists only on the medulla branch for explicit state machines), `ARBORA-MESSAGING-R800.1003`. Shape: the Turtle classes in `arbora/ontology/state_machines.ttl`. | Test: `tests/ontology/test_intake_lease_description.py::test_classes_roll_up_to_the_core_classes` (L2, planned).
requirementARBORA-MESSAGINGSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY
ARBORA-DEPLOY — Portable Arbora development and deployment
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R001
Rendered workload images are digest-pinned
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Rendered workload images are digest-pinned.** Stage: deployment check. Caller chain: `deploy.placement.apply` check step → `arbora/deployment/artifacts.py::verify_digests` (planned) → `check_file` (ARBORA-DEPLOY-R017.18). Gate caller: `tests/deployment/test_helm_image_digests.py`. The chart `deploy/helm/arbora` renders the `arbora` Deployment, the `engine` StatefulSet, each extension Deployment and their autoscalers. Every container and init container image is `repository@sha256:<64 lowercase hex>`. A tag, a tag with digest or the default `replace-me` fails. The compose and swarm files follow `ARBORA-DEPLOY-R017.9` to `R017.13`. Refusal: `IMAGE_NOT_DIGEST_PINNED` naming the document and field path. Depends: ARBORA-DEPLOY-R017.18. Shape: files `arbora/deployment/artifacts.py` (new) and `deploy/helm/arbora` (existing chart); reuses the checker `check_file` in `scripts/check_deployment_image_digests.py` (moved by `ARBORA-DEPLOY-R017.18`). | Test: `tests/deployment/test_helm_image_digests.py::test_default_render_fails_and_pinned_render_passes` (planned) (L2, skipped when `helm` is absent). A floating workload image fails the check.
requirementARBORA-DEPLOYLANDEDe7ae64dec334
ARBORA-DEPLOY-R002
Executable release-qualification runbook
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Executable release-qualification runbook.** Arbora publishes an executable, step-by-step release-qualification runbook. It covers the graph engine, connector SDK, agent runtime, Arbora itself, the web UI and the connector package fleet. It runs through production redeployment. It is the companion procedure to the exit-criteria matrix. Caller chain: a release operator follows `docs/release-qualification-runbook.md` (linked from `mkdocs.yml`); each stage names an Arbora console script (`arbora-doctor` → `arbora/deployment/doctor.py::main`, `arbora-release-canary` → `arbora/deployment/release_canary.py::main`) or a test directory. Shape: file `docs/release-qualification-runbook.md` (existing); reuses the doctor check table `CHECKS` in `arbora/deployment/doctor.py` and the console-script table in `pyproject.toml`. | Each runbook stage is backed by an automated check or script that a reviewer can run directly. Test: `tests/deployment/test_release_qualification_runbook.py::test_runbook_covers_every_required_component` and `::test_runbook_cites_real_doctor_checks` (L2).
requirementARBORA-DEPLOYVERIFIED689f232dc362
ba4ec6e577e2
c42bb5128201
d75db1ea42e8
eaabc7449a93
tests/deployment/test_release_qualification_runbook.py:32
tests/deployment/test_release_qualification_runbook.py:47
tests/deployment/test_release_qualification_runbook.py:58
tests/deployment/test_release_qualification_runbook.py:72
ARBORA-DEPLOY-R003
Pre-push hooks always run the full gate suite
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Pre-push hooks always run the full gate suite.** Arbora's pre-push git hook resolves to its actual pre-commit configuration file. It runs the full gate suite before a push succeeds. A relocated configuration path or a missing hook installation is a failure, never a silent pass-through. Caller chain: `git push` → the pre-push shim that pre-commit installs → `pre-commit hook-impl --config=<path>`; the `prepush_hook` doctor check `_check_prepush_hook` → `arbora/deployment/doctor.py::audit_prepush_shim` fails a missing shim or a relocated config path. Shape: file `arbora/deployment/doctor.py` (existing, `audit_prepush_shim`, `_resolve_prepush_shim_config`); reuses the registered check `CHECKS["prepush_hook"]`. | A hook-audit test invokes the generated pre-push shim and confirms it runs the configured gates rather than exiting silently. Test: `tests/deployment/test_pre_push_hook_shim.py::test_shim_fails_loudly_when_config_is_relocated` (L2) and `tests/deployment/test_doctor_prepush_hook.py::test_check_prepush_hook_is_wired_into_the_doctor_checks_table` (L2).
requirementARBORA-DEPLOYVERIFIED4a2d2cd9ac55
689f232dc362
c3c6be59a12a
tests/deployment/test_doctor_prepush_hook.py:22
tests/deployment/test_doctor_prepush_hook.py:42
tests/deployment/test_pre_push_hook_shim.py:77
tests/deployment/test_pre_push_hook_shim.py:91
ARBORA-DEPLOY-R004
mypy hook type-checks the test suite
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**mypy hook type-checks the test suite.** Arbora's one mypy hook, `mypy-env` (mypy against the locked environment), type-checks its test suite rather than excluding it. The type errors that the exclusion had hidden are fixed, not suppressed. Caller chain: `git push` or CI → pre-commit hook `mypy-env` in `.pre-commit-config.yaml` → `scripts/local_hook.sh mypy-env`, which runs mypy against the locked environment over `arbora` and `tests`. Shape: file `.pre-commit-config.yaml` (existing hook `mypy-env`, no `exclude` for `tests/`); reuses `scripts/local_hook.sh`. | The mypy hook runs against the test suite in continuous integration and passes with zero errors. Test: `tests/deployment/test_mypy_hook_scope.py::test_mypy_hook_does_not_exclude_the_test_suite` (L2).
requirementARBORA-DEPLOYVERIFIED166a7322d0e6
689f232dc362
9d8a787b8495
tests/deployment/test_mypy_hook_scope.py:15
ARBORA-DEPLOY-R005
Web UI keeps its component package name
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Web UI keeps its component package name.** Operator decision 2026-10-09: only front-end-facing items carry the Arbora name. The web UI stays the `agent-webui` component (`agent_webui` import, `agent-webui` distribution). These Arbora items keep referencing `agent-webui`. They are import sites and the optional web UI package extra. The extra resolves from the package index. The release workflow checks out no web UI source. They also include preflight checks and browser-control tests and docs. No package rename cutover is required. Caller chain: `uv sync --extra webui` and the release workflow → `pyproject.toml` `[project.optional-dependencies] webui` → the `agent-webui` distribution from the package index; `.github/workflows/checks.yml` checks out no web UI source. Shape: files `pyproject.toml` and `.github/workflows/checks.yml` (existing); reuses the extra named `webui`. | A focused test run and the offline lock check confirm every reference resolves against the `agent-webui` package. Test: `tests/architecture/test_webui_rename_references.py::test_webui_extra_source_and_release_checkout_reference_agent_webui` (L2).
requirementARBORA-DEPLOYVERIFIED15bc1fd4c49e
d6f16cd447e2
d75db1ea42e8
eaabc7449a93
tests/deployment/test_component_names_and_scripts.py:17
ARBORA-DEPLOY-R006
The base dependency pins a compatible connector-SDK floor
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**The base dependency pins a compatible connector-SDK floor.** Arbora declares no `gateway-widgets` extra (retired by `ARBORA-HOST-R004`). Widgets reach the fleet only through the served fleet client, so the connector-SDK floor lives in the base `dependencies` list. That floor is the first published release compatible with the current module layout. Caller chain: `uv sync` / `pip install arbora` → `pyproject.toml` `[project] dependencies` → `scion-sdk[a2a,mcp]>=0.5.9,<0.6.0`; the fleet client reaches widgets through the served surface only. Shape: file `pyproject.toml` (existing); reuses the manifest reader in `tests/test_dependency_manifest.py`. | A manifest test asserts no `gateway-widgets` extra exists and the base dependencies pin the connector SDK with a version range. Test: `tests/test_dependency_manifest.py::test_manifest_declares_every_split_package_as_a_version_range` (L2).
requirementARBORA-DEPLOYVERIFIED45283d0137b9
4d1f17345cbb
d58ee3e25028
d6f16cd447e2
f42856691f97
tests/architecture/test_single_gateway_implementation.py:53
ARBORA-DEPLOY-R007
Arbora hosts deployment doctor and skill certification (rollup)
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Arbora hosts deployment doctor and skill certification (rollup).** Stage: operator tooling. Caller: console scripts in `pyproject.toml` `[project.scripts]` (host bootstrap): `arbora-doctor` → `arbora/deployment/doctor.py::main`, `arbora-venv` → `arbora/deployment/venv_sync.py::main`, `arbora-release-canary` → `arbora/deployment/release_canary.py::main`. Arbora hosts the doctor, skill-certification, OIDC-certification, skill-validation and fleet-harness test modules. The former agent runtime repository is retired. No import of its deployment package and no duplicate script name remains. `pyproject.toml` is the only source of console-script registrations. Children: `.1` to `.5`. Refusal: the canary reports `entry_points_ready=false` naming a script that resolves elsewhere. Depends: `ARBORA-DEPLOY-R007.4`, `ARBORA-DEPLOY-R007.5`. | Test: `tests/deployment/test_entrypoints.py::test_host_deployment_scripts_point_to_arbora_modules` (L2) and `tests/deployment/test_component_names_and_scripts.py` (L2). The rollup passes when every child passes.
requirementARBORA-DEPLOYLANDED4d1f17345cbb
9e7f6499d96f
d6f16cd447e2
fd761d59a171
ARBORA-DEPLOY-R007.1
`arbora-doctor` console-script collision resolved
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**`arbora-doctor` console-script collision resolved.** Arbora's `pyproject.toml` is the sole declarer of the `arbora-doctor` console script (`arbora.deployment.doctor:main`). No other distribution registers the script name `arbora-doctor`. Caller chain: `pip install arbora` → `pyproject.toml` `[project.scripts] arbora-doctor` → `arbora/deployment/doctor.py::main`. Shape: files `pyproject.toml` and `arbora/deployment/doctor.py` (existing); reuses `_project_scripts` in `tests/deployment/test_entrypoints.py`. | A package-metadata check confirms exactly one installed distribution declares the `arbora-doctor` entry point, and it resolves to `arbora.deployment.doctor:main`. Test: `tests/deployment/test_entrypoints.py::test_host_deployment_scripts_point_to_arbora_modules` (L2).
requirementARBORA-DEPLOYVERIFIEDd6f16cd447e2
fd761d59a171
tests/deployment/test_component_names_and_scripts.py:43
ARBORA-DEPLOY-R007.2
`setup-config` console-script collision resolved
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**`setup-config` console-script collision resolved.** Arbora's `pyproject.toml` is the sole declarer of the `setup-config` console script (`arbora.deployment.cli:main`). No other distribution registers the script name `setup-config`. Caller chain: `pip install arbora` → `pyproject.toml` `[project.scripts] setup-config` → `arbora/deployment/cli.py::main`. Shape: files `pyproject.toml` and `arbora/deployment/cli.py` (existing); reuses `_project_scripts` in `tests/deployment/test_entrypoints.py`. | A package-metadata check confirms exactly one installed distribution declares the `setup-config` entry point, and it resolves to `arbora.deployment.cli:main`. Test: `tests/deployment/test_entrypoints.py::test_host_deployment_scripts_point_to_arbora_modules` (L2).
requirementARBORA-DEPLOYVERIFIEDd6f16cd447e2
fd761d59a171
tests/deployment/test_component_names_and_scripts.py:52
ARBORA-DEPLOY-R007.3
`arbora-daemon` console script retired
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**`arbora-daemon` console script retired.** No distribution declares an `arbora-daemon` console script: Arbora removed it under `ARBORA-HOST-R004` (its entry point was never served), and the agent runtime no longer registers it. Child slice of `ARBORA-DEPLOY-R007`. Caller chain: `pip install arbora` → `pyproject.toml` `[project.scripts]`, which declares no `arbora-daemon` entry; `arbora/gateway/daemon.py` defines no `main`. Shape: files `pyproject.toml` and `arbora/gateway/daemon.py` (existing); reuses `_project_scripts` in `tests/deployment/test_entrypoints.py`. | A package-metadata check confirms `pyproject.toml` declares no `arbora-daemon` entry point and `arbora.gateway.daemon` defines no `main`. Test: `tests/deployment/test_entrypoints.py::test_host_deployment_scripts_point_to_arbora_modules` (L2).
requirementARBORA-DEPLOYVERIFIED4d1f17345cbb
fd761d59a171
tests/architecture/test_single_gateway_implementation.py:69
ARBORA-DEPLOY-R007.4
`arbora-venv` console-script collision resolved
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**`arbora-venv` console-script collision resolved.** Arbora's `pyproject.toml` is the sole declarer of the `arbora-venv` console script (`arbora.deployment.venv_sync:main`). No other distribution registers the script name `arbora-venv`. Caller chain: `pip install arbora` → `pyproject.toml` `[project.scripts] arbora-venv` → `arbora/deployment/venv_sync.py::main`. Shape: files `pyproject.toml` and `arbora/deployment/venv_sync.py` (existing); reuses `_project_scripts` in `tests/deployment/test_entrypoints.py`. | A package-metadata check confirms exactly one installed distribution declares the `arbora-venv` entry point, and it resolves to `arbora.deployment.venv_sync:main`. Test: `tests/deployment/test_entrypoints.py::test_host_deployment_scripts_point_to_arbora_modules` (L2).
requirementARBORA-DEPLOYLANDEDfd761d59a171
ARBORA-DEPLOY-R007.5
`arbora-release-canary` is declared only by arbora
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**`arbora-release-canary` is declared only by arbora.** Stage: operator tooling. Caller chain: console script `arbora-release-canary` → `arbora/deployment/release_canary.py::main`. Arbora `pyproject.toml` is the sole declarer of the script `arbora-release-canary` (`arbora.deployment.release_canary:main`). The canary compares the installed entry points with `_ENTRY_POINTS` and reports `entry_points_ready`. The retired agent runtime registers nothing. Refusal: the canary exits 1 with `entry_points_ready=false` when a script resolves to another target. Output carries aggregate checks only. Depends: none. Shape: files `arbora/deployment/release_canary.py` (existing; `_ENTRY_POINTS`, `main`) and `pyproject.toml`. | Test: `tests/deployment/test_release_canary.py::test_entry_points_ready_requires_exact_direct_targets` (L2) and `tests/deployment/test_entrypoints.py::test_release_canary_checks_the_same_direct_entrypoints` (L2).
requirementARBORA-DEPLOYLANDEDfd761d59a171
ARBORA-DEPLOY-R007.6
The Arbora doctor checks the served engine families and graph connections
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**The Arbora doctor checks the served engine families and graph connections.** `engine_domains` fails when no `engine_<domain>` family is served. On `tiny` it warns instead. `graph_connections` validates every declared connection against the registry. On a live run it probes each connection and reports only redacted aggregate counts. The trace-analytics connector's MCP child probe runs through the served multiplexer. Child slice of `ARBORA-DEPLOY-R007`. Caller chain: console script `arbora-doctor` → `arbora/deployment/doctor.py::main` → check table → `arbora/deployment/doctor_graph.py::_check_engine_domains` and `::_check_graph_connections`. Shape: file `arbora/deployment/doctor_graph.py` (existing); reuses `_graph_connections_data`, `_graph_connections_verdict` and the redacted aggregate result shape from `_result`. | `tests/deployment/test_doctor_graph.py` and the trace-analytics probe tests in `tests/deployment/test_doctor.py`. Test: `tests/deployment/test_doctor_graph.py::test_bug013_engine_domains_doctor_fails_closed_on_production_profile` (L2) and `::test_doctor_probes_kg_connections_only_and_returns_aggregate_metadata` (L2).
requirementARBORA-DEPLOYVERIFIED9e7f6499d96f
tests/deployment/test_doctor_graph.py:206
ARBORA-DEPLOY-R008
Arbora hosts its own boundary modules
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Arbora hosts its own boundary modules.** Stage: package layout. Caller chain: the import census gate `arbora-check-import-boundaries` → `arbora/architecture/boundary_census.py::main`. Arbora hosts these modules itself. Security: `arbora/security/request_identity.py`, `error_surface.py` and `security_policy_middleware.py`. Core: `arbora/fleet/health.py`, `arbora/core/config_admin.py` and `arbora/mcp_server/backing/agent_config_admin.py`. Ecosystem: `arbora/ecosystem/hook_installer.py` and `agent_manager_dashboard.py`. Deployment: the profile guard, live-mount guard and release-canary modules under `arbora/deployment/`. Every one imports from its arbora location only. No import of these names from the retired agent runtime package remains. Refusal: the census exits 1 naming the importing file and the foreign module. Depends: `ARBORA-DEPLOY-R014`. Shape: files `arbora/architecture/boundary_census.py`, `arbora/security/request_identity.py`, `arbora/security/error_surface.py`, `arbora/security/security_policy_middleware.py`, `arbora/fleet/health.py`, `arbora/core/config_admin.py`; adds nothing outside the named modules. | Test: `tests/architecture/test_boundary_census.py::test_census_refuses_an_import_outside_the_public_surface` (L2) and a layout test `tests/deployment/test_boundary_module_layout.py::test_each_named_module_exists_and_is_imported_locally` (planned) (L2).
requirementARBORA-DEPLOYLANDEDae856bc9a101
ARBORA-DEPLOY-R009
Arbora owns hosting and deployment settings
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Arbora owns hosting and deployment settings.** Stage: configuration. Caller: host bootstrap → `arbora/deployment/host_config.py::load_hosting_deployment_settings` (console script `arbora-hosting-config` → `main`). Arbora resolves hosting and deployment settings from `arbora/deployment/host_config.py` and `arbora/core/settings.py`. The module imports no configuration internals of the retired agent runtime. Connector base settings live in `scion-sdk`. Agent and model settings live with `meristem`. Config keys are environment variables read once at start. Port bounds are 1 to 65535. Refusals: an out-of-range port and an unknown deployment environment each raise a typed error. Children: `.2` single image, `.3` ontology import, `.4` config admin. Depends: `ARBORA-HOST-R001`. | Test: `tests/deployment/test_host_config.py::test_module_does_not_import_agent_utilities_config_internals` (L2) and `::test_refuses_an_out_of_range_port` (L2).
requirementARBORA-DEPLOYSPECIFIEDae856bc9a101
ARBORA-DEPLOY-R009.1
Arbora hosts a typed `arbora.core.config_admin` hosting/deployment settings module
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Arbora hosts a typed `arbora.core.config_admin` hosting/deployment settings module.** Arbora resolves host, port, deploy-profile and data-dir settings from its own validated, typed module. It has no import of the agent runtime's configuration internals. Caller chain: host bootstrap and console script `arbora-hosting-config` → `arbora/deployment/host_config.py::main` → `load_hosting_deployment_settings`. Shape: file `arbora/deployment/host_config.py` (existing; `HostingDeploymentSettings`, `InvalidHostConfigError`); reuses the settings model in `arbora/core/settings.py`. | A test confirms the module's source has no reference to the agent runtime's configuration module. It also confirms the module resolves documented defaults and environment overrides. It also confirms the module rejects an invalid port or deploy profile. Test: `tests/deployment/test_host_config.py::test_load_resolves_defaults_from_arbora_owned_env_vars` (L2), `::test_refuses_an_out_of_range_port` (L2) and `::test_refuses_an_unrecognized_deployment_environment` (L2).
requirementARBORA-DEPLOYVERIFIEDae856bc9a101
tests/core/test_config_admin.py:17
tests/core/test_config_admin.py:30
tests/core/test_config_admin.py:41
tests/core/test_config_admin.py:57
ARBORA-DEPLOY-R009.4
Arbora owns the config administration core
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Arbora owns the config administration core.** Stage: configuration. Caller chain: the MCP config tool (`arbora/mcp_server/backing/tools/config_tools.py`) → `arbora/mcp_server/backing/agent_config_admin.py::dispatch`; the served op `ops.config` (`handle_ops_config`) reads the same settings model. `dispatch` serves the actions describe, get, diff, reload and set. Fields come from the settings model. Secrets are shown by reference, never by value. The action `set` passes the policy gate `config.set` (`arbora/access/action_policy.py`). It refuses with `CONFIG_SET_DENIED` when policy is unavailable. Each change writes a `:ConfigChange` provenance node through the caller's engine client. Then the served catalog is reconciled. The tool name `graph_config` is the legacy MCP name; the operation surface is `ops.config`. Depends: `ARBORA-DEPLOY-R009`. Shape: files `arbora/mcp_server/backing/tools/config_tools.py`, `arbora/mcp_server/backing/agent_config_admin.py`, `arbora/access/action_policy.py`; reuses existing `handle_ops_config`, `graph_config`. | Test: `tests/mcp_server/backing/test_agent_config_admin.py::test_diff_reports_the_changed_key_without_disclosing_either_value` (L2) and `tests/mcp_server/backing/test_agent_config_admin_type_names.py` (L2). Served: `tests/api/test_ops_config_served.py::test_set_writes_config_change_node` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDtests/mcp_server/backing/test_agent_config_admin.py:469
tests/mcp_server/backing/test_agent_config_admin_type_names.py:21
ARBORA-DEPLOY-R010
Ecosystem and repository development skills are published (rollup)
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Ecosystem and repository development skills are published (rollup).** Stage: documentation. Caller: the documentation-freshness check → `arbora/skills/arbora-development/SKILL.md` and `arbora/skills/arbora-repository-development/SKILL.md`. Both skills document architecture boundaries, build-host requirements, gates and identity setup. `AGENTS.md` stays a navigation table that points to the skills. Gate commands in the skills must equal the commands in `.pre-commit-config.yaml`. Children: `.1` to `.4`. Refusal: the freshness check fails naming the stale command. Depends: `ARBORA-DEPLOY-R013`. | Test: `tests/skills/test_development_skill_freshness.py::test_skill_gate_commands_match_precommit` (planned) (L2) and `::test_agents_md_points_to_the_skill` (L2).
requirementARBORA-DEPLOYSPECIFIED96e23d7f4ed4
ARBORA-DEPLOY-R011
Deployment test suite passes in full
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Deployment test suite passes in full.** Stage: gate. Caller chain: the pull-request fast subset (`scripts/pr_static_scope.py`) and the push gate run `pytest tests/deployment`. All tests in `tests/deployment` pass with zero failures and zero errors. A test that fails on a layout assumption is fixed, never skipped or xfailed. Refusal: the gate fails naming the node id. Depends: `ARBORA-RELEASE-R002`. Shape: files `scripts/pr_static_scope.py` (existing) and the pull-request workflow `.github/workflows/ci.yml`; reuses the fast-subset selection already in `pr_static_scope.py`. | Test: `tests/deployment/test_pr_static_scope.py::test_fast_subset_includes_every_deployment_test` (planned) (L2). CI step: `pytest tests/deployment -q` exits 0.
requirementARBORA-DEPLOYLANDED2b605acbf3a6
962462cdc788
ARBORA-DEPLOY-R012
Pipelines dependency is referenced at main, never pinned
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Pipelines dependency is referenced at main, never pinned.** Stage: gate. Caller chain: pre-commit hook `reference-pin-lint` → `scripts/check_wiring.py` family (new rule). The lint reads `.pre-commit-config.yaml` and `.github/workflows/*.yml`. A pipelines entry has `rev:` or `uses: ...@<ref>`. The ref must be `main`. A 40-hex commit or a tag fails. Refusal: `PIPELINES_REF_PINNED` naming the file and line. Depends: none. Shape: files `scripts/check_wiring.py` (existing, one added rule), `.pre-commit-config.yaml` and `.github/workflows/*.yml` as read-only inputs; reuses the wiring-rule registration in `check_wiring.py`. | Test: `tests/deployment/test_reference_pins.py::test_pinned_commit_fails_and_main_passes` (planned) (L2) over fixture files.
requirementARBORA-DEPLOYLANDED0f780429fb19
6c4b89f91732
ARBORA-DEPLOY-R013
Development and production deployment profiles (rollup)
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Development and production deployment profiles (rollup).** Stage: deployment profiles. Caller: `setup-config environments validate <name>` (`arbora/deployment/cli.py::_run_environments`) → `arbora/deployment/genesis_environments.py::load_environment_profile`. First-boot caller: `arbora/deployment/kubernetes_first_boot.py::main`. The development profile is Compose on one host with no identity or local identity. The production profile is Helm on Kubernetes with external or local identity. Each profile gives arbora one engine endpoint in `GRAPH_SERVICE_ENDPOINTS`. Each profile forces a first administrator, applies the default authorization policy and selects a secrets backend. First boot checks readiness, administrator creation and the secrets backend before traffic. Federation through `scion-sdk` replaces any direct graph-database mirror. Children: `.1` to `.7`. Refusal: `PROFILE_INVALID` naming the field. Depends: `ARBORA-IDENTITY-R003`. | Test: `tests/deployment/test_genesis_environments.py::test_prod_is_digest_pinned` (L2) and `tests/deployment/test_kubernetes_first_boot.py::test_valid_observations_require_separate_application_evidence` (L2).
requirementARBORA-DEPLOYSPECIFIED0da5f7440603
2abb9ebb3905
99028d9d9f82
d75db1ea42e8
e9d992980035
ARBORA-DEPLOY-R014
Split packages are consumed by published version range
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Split packages are consumed by published version range.** Stage: dependency manifest. Caller chain: the lock check → `pyproject.toml`. Arbora depends on `meristem>=4.2.0,<5.0.0`, `scion-sdk[a2a,mcp]>=0.5.9,<0.6.0`, `medulla>=2.27.10,<3.0.0` and `medulla-stem>=2.27.10,<3.0.0`, each from the package index. No path, git or editable source appears in `[tool.uv.sources]`. Refusal: the test names the offending dependency. Depends: none. Shape: file `pyproject.toml` (existing `[project] dependencies`, no `[tool.uv.sources]` path entries); reuses the manifest reader in `tests/test_dependency_manifest.py`. | Test: `tests/architecture/test_dependency_manifest_pins_published_packages.py::test_manifest_declares_each_split_repository_package` (L2) and `tests/test_dependency_manifest.py` (L2).
requirementARBORA-DEPLOYLANDEDfe7c5c9a4a32
ARBORA-DEPLOY-R015
AVX2 guard test runs on any hosted runner
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**AVX2 guard test runs on any hosted runner.** Arbora's AVX2 guard test validates CPU feature-detection logic. It does not assert that the execution host lacks the AVX2 instruction set. It therefore passes on both AVX2-capable and non-AVX2 hosts. Caller chain: doctor check `lakehouse` in `arbora/deployment/doctor_lakehouse.py` → `cpu_has_avx2` → `_cpu_has_avx2(cpuinfo_text)`, which parses the `flags` line it is given. Shape: file `arbora/deployment/doctor_lakehouse.py` (existing; `_cpu_has_avx2` takes the text, so a synthetic input decides the result); reuses the synthetic `cpuinfo` strings in the test. | The guard test passes in continuous integration on a standard hosted runner. It also passes on a non-AVX2 target host. Test: `tests/deployment/test_doctor_lakehouse.py::test_cpu_has_avx2_detects_flag_from_synthetic_cpuinfo_text` (L2).
requirementARBORA-DEPLOYVERIFIED67a387e5dbed
bc26d7b669bc
tests/deployment/test_doctor_lakehouse.py:20
ARBORA-DEPLOY-R016
The serving container is the one in-pod host process
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**The serving container is the one in-pod host process.** A Kubernetes deployment runs no separate daemon container. When the engine runs in the same pod (child or sidecar placement), the serving container holds the host role. It connects to a sidecar engine over the shared Unix socket volume and authenticates with the Arbora process identity. An out-of-process shared engine keeps the serving container at the client role. Caller chain: `helm install` → `deploy/helm/arbora/templates` (deployment and `configmap.yaml` `KG_DAEMON_ROLE`) → the `arbora` serving container, which holds the host role in child and sidecar placement. Shape: files `deploy/helm/arbora/templates/configmap.yaml` and the chart deployment template (existing); reuses the render helper in `tests/deployment/test_helm_daemon_sidecar.py`. | A manifest contract test renders every placement and asserts no `daemon` container and no `arbora-daemon` command. It also asserts the host role in the child and sidecar placements and the client role for a shared engine. Test: `tests/deployment/test_helm_daemon_sidecar.py::test_no_daemon_container_and_serving_container_holds_host_role` (L2, parametrized sidecar, child, shared).
requirementARBORA-DEPLOYVERIFIED4d1f17345cbb
8b20c11b5dc5
9763ec95595c
eb31b7757681
f3bcee6dfbcf
tests/deployment/test_helm_daemon_sidecar.py:46
ARBORA-DEPLOY-R017
Deployment placement and sequencing go through the engine decision capability
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Deployment placement and sequencing go through the engine decision capability.** Arbora adds no deployment planner. Where to run is one typed Decide question asked of the engine (`MEDULLA-DECISION-ENGINE-R046`/`R111`). The engine assembles the ordered fleet-tool steps as an agent graph (`AgentAssemble`, `MEDULLA-DECISION-ENGINE-R036`). The operator sees that graph and confirms it through `arbora.plan/confirm`. Manifests are the existing `deploy/` artifacts. This row supersedes the retired meristem planner (MERISTEM-BOUNDARY-R002.2) without re-creating it. Rollup: LANDED when every `ARBORA-DEPLOY-R017.<n>` child is LANDED. | A package-layout test shows no arbora plan type or backend selection exists. The children also pass.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.1
Placement Decide mapping
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Placement Decide mapping.** Stage: deployment decision. Caller chain: `deploy.placement.plan` (ARBORA-DEPLOY-R017.19) → `arbora/api/ops/deploy.py::handle_placement_plan` (planned) → `arbora/deployment/placement.py::ask_placement` (planned) (new). The function builds the request body `PlacementRequestBody` of `MEDULLA-PLACEMENT-R001.4` from the manifest component and the operator constraints. It sends one `Decide` with `QuestionKind::Placement` through the facade `DecisionClient.decide` bound to the caller engine client. It checks the receipt against the request and the checked principal. It returns the engine record unchanged. Arbora names no backend and orders no target. Engine refusals pass through. A receipt mismatch refuses `RECEIPT_MISMATCH`. An engine without the kind refuses `UNAVAILABLE`. Writes: none. Depends: `MEDULLA-PLACEMENT-R001.2`, `MEDULLA-PLACEMENT-R001.7`, `MEDULLA-DECISION-ENGINE-R046`, `MEDULLA-DECISION-ENGINE-R111`. Shape: files `arbora/api/ops/deploy.py` (new) and `arbora/deployment/placement.py` (new, `ask_placement`); the request type `PlacementRequestBody` and the `DecisionClient.decide` facade come from the Medulla client adapter of `scion-sdk` (not defined in this repository). | Test: `tests/deployment/test_placement_decide.py::test_request_fields_record_passthrough_and_no_backend_names` (planned) (L2) and `tests/api/test_deploy_ops_served.py::test_plan_returns_the_engine_placement_record` (planned) (L3, loopback engine).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.2
Request assembly for a deployment task
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Request assembly for a deployment task.** Stage: deployment decision. Caller chain: `handle_placement_plan` → `arbora/deployment/assembly.py::assemble_deployment` (planned) (new). After `ask_placement`, the function sends the chosen template id and tool components to `AgentAssemble`. Specs: `MEDULLA-DECISION-ENGINE-R036`, routing per `MEDULLA-DECISION-ENGINE-R044`. It sends through the served operation `eg.storage.AgentAssemble`. It returns the engine graph and certificate unmodified. An `Abstained` record passes through naming the engine reason. Writes: none (the operation is evaluate-only). Depends: ARBORA-DEPLOY-R017.20, `MEDULLA-PLACEMENT-R001.12`, `MEDULLA-PLACEMENT-R001.13`. Shape: file `arbora/deployment/assembly.py` (new, `assemble_deployment`); sends through the served operation `eg.storage.AgentAssemble` with the caller engine client; adds no graph type. | Test: `tests/deployment/test_deploy_assembly_request.py::test_task_and_capabilities_sent_graph_returned_as_is` (planned) (L2, recorded engine record) and `tests/api/test_deploy_ops_served.py::test_plan_returns_assembled_graph_from_published_components` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.3
Present the assembled graph read-only
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Present the assembled graph read-only.** Stage: deployment decision. Caller chain: `handle_placement_plan` → `arbora/deployment/assembly_view.py::render_graph` (planned) (new). The function renders the engine graph as an ordered list of `{node_id, slot, component_id, tool}`. The order is the engine order. The presenter holds no reference to the runner and has no dispatch path. Output is part of the `deploy.placement.plan` reply and of `setup-config deploy`. Depends: `ARBORA-DEPLOY-R017.2`. Shape: file `arbora/deployment/assembly_view.py` (new, `render_graph`); a pure function over the engine graph with no import of the runner. | Test: `tests/deployment/test_deploy_assembly_view.py::test_nodes_listed_in_engine_order_and_no_dispatch_path` (planned) (L2). The module imports nothing from `run_confirmed_steps`.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.4
Confirm through plan confirmation
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Confirm through plan confirmation.** Stage: deployment decision. Caller chain: `deploy.placement.apply` (effect admin, `confirm=PLAN`) → invoke pipeline `services.plans.consume(plan_ref, binding)` (`arbora/api/invoke/pipeline.py`) → `arbora/deployment/assembly.py::require_confirmed_plan` (planned) (new). The operator receives the `plan_ref` from the preview. The pipeline consumes it once. Nothing runs unconfirmed. Confirmation is recorded with `decide.commit` (`arbora/api/ops/decide.py`). The A2A method `arbora.plan/confirm` stays refused until `ARBORA-A2A-R006.2` bridges it to the same consume. Refusals: `PLAN_REQUIRED`, `PLAN_EXPIRED`, `PLAN_MISMATCH` from the pipeline. Depends: ARBORA-DEPLOY-R017.19, `ARBORA-OPS-R009`, `ARBORA-A2A-R006.2`. Shape: files `arbora/deployment/assembly.py` (new, `require_confirmed_plan`) and the existing `arbora/api/invoke/pipeline.py` (`services.plans.consume`), `arbora/api/ops/decide.py` (`decide.commit`). | Test: `tests/deployment/test_deploy_confirm.py::test_apply_runs_only_after_consumed_plan` (planned) (L3, `invoke`). `::test_unconfirmed_expired_and_replayed_plans_run_nothing` (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.5
Typed refusal while a producer is unavailable
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Typed refusal while a producer is unavailable.** Stage: deployment decision. Caller chain: `handle_placement_plan` and `handle_placement_apply` → `arbora/deployment/assembly.py::refuse_unavailable` (planned) (new). Three distinct refusals exist. `ENGINE_DECIDE_UNAVAILABLE`: the engine is built without the `decide` feature and refuses by name. `PLACEMENT_KIND_UNAVAILABLE`: the engine does not serve `QuestionKind::Placement` (`MEDULLA-PLACEMENT-R001.2`). `CONFIRM_UNAVAILABLE`: the plan confirmation service is not bound. Each refusal has no side effect. The `AgentAssemble` handler is served when the engine has the `decide` feature (`MEDULLA-PLACEMENT-R001.14`). Depends: `MEDULLA-PLACEMENT-R001.14`. Shape: file `arbora/deployment/assembly.py` (new, `refuse_unavailable`); returns one of three closed refusal codes. | Test: `tests/deployment/test_deploy_refusal.py::test_three_unavailable_causes_give_distinct_refusals_with_no_effect` (planned) (L2) and `tests/api/test_deploy_ops_served.py::test_feature_absent_engine_refuses_over_http` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.6
Select the existing artifact per target
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Select the existing artifact per target.** Stage: deployment decision. Caller chain: `run_confirmed_steps` step `render-artifact` → `arbora/deployment/artifacts.py::select_artifact` (planned) (new). For a decided target it returns the file under `deploy/`: `compose` → `deploy/compose/compose.yaml`, `helm` → `deploy/helm/arbora`, `swarm` → `deploy/swarm/stack.yml`. It adds no renderer. Image references pass `verify_digests` (ARBORA-DEPLOY-R017.18). Target `systemd` refuses `unsupported_target` (`ARBORA-DEPLOY-R017.15`). Depends: ARBORA-DEPLOY-R017.18. Shape: file `arbora/deployment/artifacts.py` (new, `select_artifact`); returns paths under the existing `deploy/compose/compose.yaml`, `deploy/helm/arbora` and `deploy/swarm/stack.yml`; reuses `verify_digests` from the same module. | Test: `tests/deployment/test_deploy_artifacts.py::test_each_target_resolves_to_an_existing_file_and_systemd_is_refused` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.7
In-process start stays unchanged
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**In-process start stays unchanged.** Stage: deployment decision. Caller chain: server lifespan → `arbora/mcp_server/composition.py::start_composed_services`. The in-process path keeps `start_composed_services`. No wrapper, plan type or placement call is added to it. Its input is the `CompositionPlan` from `detect_composition`. Depends: none. Shape: file `arbora/mcp_server/composition.py` (existing, unchanged: `start_composed_services`, `detect_composition`, `CompositionPlan`); the change is a test only. | Test: `tests/deployment/test_deployment_in_process.py::test_live_start_calls_start_composed_services_with_detected_composition` (planned) (L2, fake supervisor).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.8
Thin deploy subcommand
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Thin deploy subcommand.** Stage: deployment decision. Caller chain: console script `setup-config` → `arbora/deployment/cli.py::_run_deploy` (planned) (new) → in-process `invoke` of `deploy.placement.plan` over the production registry. The subcommand `setup-config deploy` prints the returned decision and graph. It holds no planning logic and imports no backend or renderer. Depends: `ARBORA-DEPLOY-R017.1`, `ARBORA-DEPLOY-R017.2`, ARBORA-DEPLOY-R017.19. Shape: file `arbora/deployment/cli.py` (existing; adds the `deploy` subparser and `_run_deploy`); reuses the existing in-process `invoke` entry used by the other `setup-config` subcommands. | Test: `tests/deployment/test_deploy_cli.py::test_output_equals_the_engine_decision_and_graph` (planned) (L2, recorded engine record). The handler imports no module from `artifacts` or `placement`.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.9
Checker dispatches on document shape
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Checker dispatches on document shape.** Stage: deployment decision. Caller chain: `verify_digests` → `arbora/deployment/image_digests.py::_check_resource` (planned) (ARBORA-DEPLOY-R017.18). A document with a top-level `services` mapping and no `kind` goes to a new `_check_services` walker. Kubernetes documents keep their path. A document with neither shape refuses `UNSUPPORTED_DOCUMENT` naming the document index. Depends: ARBORA-DEPLOY-R017.18. Shape: file `arbora/deployment/image_digests.py` (new; the module moved from `scripts/check_deployment_image_digests.py` by `ARBORA-DEPLOY-R017.18`) gains `_check_services`; `_check_resource` keeps the Kubernetes path. | Test: `tests/deployment/test_image_digests.py::test_compose_document_is_walked_and_kubernetes_cases_still_pass` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.10
Compose and swarm literal images use the existing grammar
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Compose and swarm literal images use the existing grammar.** Stage: deployment decision. Caller chain: `_check_resource` → `_check_services` (new, `arbora/deployment/image_digests.py`). Each service `image` passes `_valid_image` and counts as one image. A service with no `image` refuses `SERVICE_IMAGE_MISSING`. A tag refuses `IMAGE_NOT_DIGEST_PINNED`. Both name the location `services.<name>.image`. Depends: `ARBORA-DEPLOY-R017.9`. Shape: file `arbora/deployment/image_digests.py` (new, `_check_services`); reuses the existing `_valid_image` grammar from the moved checker. | Test: `tests/deployment/test_image_digests.py::test_pinned_literal_accepted_tagged_and_missing_rejected_with_location` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.11
Template mode accepts the required-variable form
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Template mode accepts the required-variable form.** Stage: deployment decision. Caller chain: `_check_services`. An image of exactly `${NAME:?message}` is accepted and counted as pin-required. The form `${NAME:-default}` is valid only when the default is a digest reference. The bare `${NAME}` refuses `IMAGE_VARIABLE_UNPINNED`. Depends: `ARBORA-DEPLOY-R017.10`. Shape: file `arbora/deployment/image_digests.py` (new, `_check_services`); reuses `_valid_image` for the default of the `${NAME:-default}` form. | Test: `tests/deployment/test_image_digests.py::test_required_variable_form_accepted_default_and_bare_forms_validated` (planned) (L2). `${X:?m}` passes. `${X:-repo:latest}` and `${X}` fail. `${X:-repo@sha256:<hex>}` passes.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.12
Resolve mode validates the given value
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Resolve mode validates the given value.** Stage: deployment decision. Caller chain: `image_digests.main` (script wrapper). Add repeatable `--set NAME=value`. The checker substitutes the value into the template before validation, so validation sees the real reference. A name with no use in the files refuses `UNUSED_SET_NAME`. The step `verify` of `run_confirmed_steps` passes `--set` pairs from the resolved configuration. Depends: `ARBORA-DEPLOY-R017.11`. Shape: file `arbora/deployment/image_digests.py` (new, `main` gains `--set`); the `verify` step of `run_confirmed_steps` in `arbora/deployment/assembly.py` (new) passes the pairs. | Test: `tests/deployment/test_image_digests.py::test_set_digest_passes_set_tag_fails_unused_name_errors` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.13
Run the checker on the shipped Compose and swarm files
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Run the checker on the shipped Compose and swarm files.** Stage: deployment decision. Caller chain: the artifact test and the `verify` step. The checker runs on `deploy/compose/compose.yaml` and `deploy/swarm/stack.yml` in template mode. It runs again with a fixture digest for `ARBORA_IMAGE` through `--set`. Each file reports one image. A tag value for `ARBORA_IMAGE` exits 1. Depends: `ARBORA-DEPLOY-R017.12`. Shape: files `deploy/compose/compose.yaml` and `deploy/swarm/stack.yml` (existing, unchanged) plus `tests/deployment/test_deploy_artifacts.py` (new); reuses `check_file` from `arbora/deployment/image_digests.py`. | Test: `tests/deployment/test_deploy_artifacts.py::test_shipped_compose_and_swarm_files_pass_template_and_resolve_modes` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.14
Helm pinned and default renders
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Helm pinned and default renders.** Stage: deployment decision. Caller chain: the Helm test. Add the values fixture `tests/deployment/fixtures/helm-pinned-values.yaml` with a digest for `arbora.image`, `engine.image` and one extension. The test renders the chart with `helm template` and checks the output. The pinned render exits 0 with the arbora, engine and extension images checked. The default render exits 1 on `replace-me`. The test skips only when `helm` is absent. Depends: `ARBORA-DEPLOY-R001`. Shape: files `tests/deployment/fixtures/helm-pinned-values.yaml` (new) and `tests/deployment/test_helm_image_digests.py` (new); reuses `check_file` and the chart under `deploy/helm/arbora`. | Test: `tests/deployment/test_helm_image_digests.py::test_pinned_render_passes_and_default_render_fails_on_replace_me` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.15
systemd stays refused
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**systemd stays refused.** Stage: deployment decision. Caller chain: `select_artifact` (`ARBORA-DEPLOY-R017.6`). Target `systemd` refuses with the typed `unsupported_target` naming the bare-metal reference document. Compose, helm and swarm still resolve. Depends: `ARBORA-DEPLOY-R017.6`. Shape: file `arbora/deployment/artifacts.py` (new, `select_artifact`); the refusal is the closed code `unsupported_target`. | Test: `tests/deployment/test_deploy_artifacts.py::test_systemd_refused_and_others_resolve` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.16
Environment policy drives the digest check
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Environment policy drives the digest check.** Stage: deployment decision. Caller chain: `run_confirmed_steps` step `verify` → `arbora/deployment/artifacts.py::digest_check_decision` (planned) (new). The function maps `release.tag_policy` of the selected `deploy/environments/<name>.yaml` profile to a decision. `digest-pinned` makes the check required. `floating-tag` skips it and records the note `skipped by policy`. Any other value refuses `TAG_POLICY_UNKNOWN`. Profiles: `prod` and `test` require the check; `dev` skips it. Depends: `ARBORA-DEPLOY-R017.6`. Shape: file `arbora/deployment/artifacts.py` (new, `digest_check_decision`); reads `release.tag_policy` from the existing profiles `deploy/environments/dev.yaml`, `test.yaml` and `prod.yaml` through `load_environment_profile` in `arbora/deployment/genesis_environments.py`. | Test: `tests/deployment/test_deploy_artifacts.py::test_prod_and_test_require_the_check_dev_reports_skipped_by_policy` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018
Small deployment shares one engine per host (rollup)
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Small deployment shares one engine per host (rollup).** Stage: server start-up, small profile. Caller: server lifespan → `arbora/mcp_server/served_engine.py::process_engine_pool` → `arbora/mcp_server/composition.py::ensure_local_engine` (planned) (`ARBORA-DEPLOY-R018.9`). The local lifecycle runs only when `GRAPH_SERVICE_ENDPOINTS` is unset. A set value is connect-only: arbora never starts a local engine. Every arbora or agent server on a host shares one engine. Config keys are environment variables. `ENGINE_LOCAL_PORT` defaults to 47980, range 1024 to 65535. `ENGINE_START_TIMEOUT_S` defaults to 60, range 5 to 600. `ENGINE_PROBE_TIMEOUT_S` defaults to 2, range 0.1 to 30. `ENGINE_IDLE_SHUTDOWN_S` defaults to 300, range 30 to 86400. `MEDULLA_BIN` names the binary. Children: `.1` to `.9`. Refusal: a second engine is never spawned. Depends: `ARBORA-DEPLOY-R600`. | Test: `tests/deployment/test_engine_attach.py::test_two_processes_share_one_engine_spawn_count_is_one` (planned) (L3). The rollup passes when `.1` to `.9` pass.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.1
Engine endpoint type
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Engine endpoint type.** Stage: server start-up, small profile. Caller chain: `ensure_local_engine` and `process_engine_pool`. Add `EngineEndpoint` in `arbora/mcp_server/composition.py` with `kind` (`unix` or `tcp`) and `address`. `parse_engine_endpoint(text)` accepts `unix:///abs/path`, an absolute path, `tcp://host:port` and `host:port`. It replaces `engine_endpoint` in `arbora/mcp_server/served_invocation.py`, which then calls it. Port range is 1 to 65535. Refusals: `ENGINE_ENDPOINT_EMPTY` and `ENGINE_ENDPOINT_MALFORMED` for a relative path, missing port or bad port. Depends: none. Shape: files `arbora/mcp_server/composition.py` (existing; adds `EngineEndpoint`, `parse_engine_endpoint`, `ensure_local_engine`) and `arbora/mcp_server/served_invocation.py` (existing `engine_endpoint`, replaced by the parser). | Test: `tests/deployment/test_engine_endpoint.py::test_both_forms_parse_and_empty_or_malformed_is_rejected` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.2
Probe before start
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Probe before start.** Stage: server start-up, small profile. Caller chain: `ensure_local_engine`. Add `probe_engine(endpoint, timeout_s) -> EngineProbe` in `composition.py`. The probe opens the transport, then calls the engine `Health` method. `EngineProbe.state` is `running` or `absent`. A timeout longer than `ENGINE_PROBE_TIMEOUT_S` counts as `absent`. The probe never starts anything. Depends: `ARBORA-DEPLOY-R018.1`. Shape: file `arbora/mcp_server/composition.py` (existing; adds `probe_engine` and the `EngineProbe` type); reuses the engine `Health` method through the existing client pool. | Test: `tests/deployment/test_engine_probe.py::test_live_fake_engine_is_running_and_dead_socket_is_absent` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.3
Start only when absent
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Start only when absent.** Stage: server start-up, small profile. Caller chain: `ensure_local_engine`. Under `engine_spawn_guard(endpoint)` (`arbora/deployment/engine_lock.py`) it probes again. Only if the probe is `absent` it spawns `MEDULLA_BIN --tcp-addr 127.0.0.1:<port> --persist-dir <dir> --idle-shutdown-secs <ENGINE_IDLE_SHUTDOWN_S>`. It waits until the probe is `running`, up to `ENGINE_START_TIMEOUT_S`. It writes the marker `engine-<sha8>.owner` with the engine pid. A guard that stays busy means a peer is spawning: the function re-probes and never spawns. Depends: `ARBORA-DEPLOY-R018.2`, `ARBORA-DEPLOY-R600.2`. Shape: files `arbora/mcp_server/composition.py` (existing, `ensure_local_engine` new) and `arbora/deployment/engine_lock.py` (existing `engine_spawn_guard`). | Test: `tests/deployment/test_engine_owner.py::test_absent_starts_once_and_writes_marker_present_starts_nothing` (planned) (L2, fake binary).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.4
Second process attaches
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Second process attaches.** Stage: server start-up, small profile. Caller chain: `ensure_local_engine` in a second process. The probe finds `running`, so the function spawns nothing and returns the endpoint. It takes a shared client lock on `engine-<sha8>.clients.lock` (`file_lock.lock_shared_nb`) and holds it for the process life. Evidence: the metric `engine_spawn_total` stays 1. Depends: `ARBORA-DEPLOY-R018.3`. Shape: file `arbora/mcp_server/composition.py` (existing, `ensure_local_engine` new); reuses `lock_shared_nb` from `arbora/deployment/file_lock.py` and the `engine_spawn_total` metric. | Test: `tests/deployment/test_engine_attach.py::test_two_processes_one_engine_spawn_count_is_one` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.5
Last client out stops the engine arbora started
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Last client out stops the engine arbora started.** Stage: server start-up, small profile. Caller chain: the exit hook registered by `ensure_local_engine`. On clean exit the process releases its shared client lock. It then tries the exclusive lock without waiting. If it gets the lock and the marker `engine-<sha8>.owner` exists, no client remains. It sends SIGTERM to the marker pid, waits `ENGINE_STOP_GRACE_S` (default 10, range 1 to 120), removes the marker, then releases. Otherwise it leaves the engine running. A crash is covered by the engine `--idle-shutdown-secs`. Without a marker nothing is stopped. Depends: `ARBORA-DEPLOY-R018.4`. Shape: file `arbora/mcp_server/composition.py` (existing, exit hook new); reuses `lock_exclusive_nb` and `unlock` from `arbora/deployment/file_lock.py`. | Test: `tests/deployment/test_engine_standdown.py::test_last_client_exit_stops_engine_and_early_exit_does_not` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.6
Remote engine skips local start
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Remote engine skips local start.** Stage: server start-up, small profile. Caller chain: `process_engine_pool`. A configured `GRAPH_SERVICE_ENDPOINTS` entry with a `https://` or `tcp://` host that is not loopback skips `ensure_local_engine`. The pool needs a valid credential: the engine admission settings of `arbora/deployment/cli.py::_run_engine_admission`. Without one arbora refuses `ENGINE_CREDENTIAL_MISSING` and starts nothing. Depends: `ARBORA-DEPLOY-R018.1`. Shape: files `arbora/mcp_server/served_engine.py` (existing `process_engine_pool`) and `arbora/deployment/cli.py` (existing; `_run_engine_admission` new); reuses `parse_engine_endpoint` from `ARBORA-DEPLOY-R018.1`. | Test: `tests/deployment/test_remote_engine.py::test_remote_url_starts_nothing_locally_and_missing_credential_refuses` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R010.1
Development skill keeps every original topic
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Development skill keeps every original topic.** Stage: documentation. Caller chain: the freshness check in `ARBORA-DEPLOY-R010`. The repository skill keeps these sections: architecture boundaries, build-host rule, required gates and identity setup. A section may be edited. It may not be removed. Refusal: `SKILL_SECTION_MISSING` naming the heading. Depends: `ARBORA-DEPLOY-R010`. Shape: files `arbora/skills/arbora-development/SKILL.md` and `arbora/skills/arbora-repository-development/SKILL.md` (existing); the check is `tests/skills/test_development_skill_freshness.py` (new). | Test: `tests/skills/test_development_skill_freshness.py::test_required_sections_are_present` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R010.2
Deployment examples stay executable and synchronized
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Deployment examples stay executable and synchronized.** Stage: documentation. Caller chain: the freshness check → `arbora/skills/arbora-deployment/` references, `README.md` and `docs/deployment.md`. Each example is a fenced block tagged `deployment-example` with fields `profile`, `transport` (`stdio` or `streamable-http`), `argv` and `probe`. The check extracts all three surfaces. It parses `argv` with the host parser in `arbora/deployment/host_config.py`. It starts one stdio and one streamable-http fixture and runs `probe`. It records the SHA-256 of each example. Refusals: `EXAMPLE_DIVERGES` when two surfaces differ, `EXAMPLE_FLAG_UNKNOWN` for an obsolete flag, `EXAMPLE_FIELD_MISSING`. Depends: `ARBORA-DEPLOY-R013`. Shape: files `arbora/skills/arbora-deployment/` (new), `README.md`, `docs/deployment.md` and `arbora/deployment/host_config.py` (existing parser); the check is `tests/skills/test_deployment_examples.py` (new). | Test: `tests/skills/test_deployment_examples.py::test_examples_agree_parse_and_probe_on_both_transports` (planned) (L3). `::test_obsolete_flag_and_missing_field_fail` covers refusals.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R010.3
Supported-profile instructions are complete
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Supported-profile instructions are complete.** Stage: documentation. Caller chain: the freshness check. Each supported profile in the matrix of `ARBORA-DEPLOY-R013.4` has one instruction set. It lists prerequisites, install source, authority setup, start, probes, logs and stop. Package or pinned-image install and editable development install are separate sections. A target without an adapter is listed as `unsupported_target` and never as supported. Each set carries the SHA-256 of its profile. Refusal: `PROFILE_DOC_INCOMPLETE` naming the missing part. Depends: `ARBORA-DEPLOY-R013.4`. Shape: files `arbora/skills/arbora-deployment/` (new) and `tests/skills/test_deployment_examples.py` (new); reuses the profile matrix of `load_environment_profile` in `arbora/deployment/genesis_environments.py`. | Test: `tests/skills/test_deployment_examples.py::test_every_supported_profile_has_all_parts` (planned) (L2). The CI job `deployment-docs` follows each set from a fresh environment to one served probe and the documented stop (L4).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.1
Profile and first-boot obligations are retained
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Profile and first-boot obligations are retained.** Stage: deployment profiles. Caller chain: as `ARBORA-DEPLOY-R013`. The parent obligations stay binding. They cover two profiles, the identity modes and the forced administrator. They also cover the policy, the secrets backend and the first-boot checks. A child may add evidence. It may not replace a parent obligation. Refusal: first boot exits non-zero with the failing check name. Depends: `ARBORA-DEPLOY-R013`. Shape: files `arbora/deployment/genesis_environments.py` and `arbora/deployment/kubernetes_first_boot.py` (existing); no new code, the parent obligations stay tested there. | Test: `tests/deployment/test_kubernetes_first_boot.py::test_bad_cluster_observations_fail_closed` (L2) and `tests/deployment/test_genesis_environments.py::test_default_profile_loads_and_validates` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.2
Record explicit deploy or reuse choice per component
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Record explicit deploy or reuse choice per component.** Stage: onboarding. Caller chain: `setup-config onboard` (`arbora/deployment/cli.py`, new subcommand) → op `deploy.placement.plan` (ARBORA-DEPLOY-R017.19). Model: `ComponentDeploymentChoice{component_id, action, endpoint_ref, profile, confirmed}` in `arbora/deployment/component_choices.py` (new). `action` is `deploy` or `reuse`. The component ids come from the deployment manifest (`ARBORA-DEPLOY-POLICY-R001`). The command asks once per component. A `reuse` choice needs an `endpoint_ref`. Operator tunings stay in the resolved configuration. Only `deploy` components go to the engine placement question. Evidence: the canonical SHA-256 `choices_digest` of the confirmed inventory, with no credential in it. Refusals: `CHOICE_MISSING`, `ENDPOINT_CONFLICT`, `COMPONENT_UNDECLARED`, each before any call. Depends: `ARBORA-DEPLOY-POLICY-R001`, ARBORA-DEPLOY-R017.19. Shape: files `arbora/deployment/cli.py` (existing, `onboard` subcommand new) and `arbora/deployment/component_choices.py` (new, `ComponentDeploymentChoice`). | Test: `tests/deployment/test_component_choices.py::test_all_new_all_reused_and_mixed_inventories_match_the_presented_choices` (planned) (L2). `::test_missing_conflicting_and_undeclared_choices_refuse` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.3
Reused components are connect-only
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Reused components are connect-only.** Stage: deployment apply. Caller chain: `deploy.placement.apply` → `run_confirmed_steps` (ARBORA-DEPLOY-R017.21). A `reuse` choice is part of the confirmed `choices_digest`. Reuse components get only read-only probe calls: reachability and compatibility. The runner refuses a node for a reuse component before any call (`REUSE_COMPONENT_MUTATION`). An unreachable reuse component refuses `REUSE_UNREACHABLE` and never falls back to deployment. Evidence: probe results plus zero create, update, delete, restart and credential-write calls for reuse components. Depends: `ARBORA-DEPLOY-R013.2`, ARBORA-DEPLOY-R017.21. Shape: file `arbora/deployment/assembly.py` (new, `run_confirmed_steps`); the `choices_digest` comes from `arbora/deployment/component_choices.py` (new). | Test: `tests/deployment/test_run_confirmed_steps.py::test_injected_update_for_reused_service_makes_zero_calls` (planned) (L3). `::test_healthy_reused_service_connects_without_mutation` (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.4
Deployment target matrix is complete
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Deployment target matrix is complete.** Stage: deployment profiles. Caller chain: `load_environment_profile` → `validate_environment_profile` in `arbora/deployment/genesis_environments.py`. Each profile `target` section adds `runtime` and `privilege`. Targets `standalone` and `compose` each cover the runtimes `docker` and `podman` and the privileges `rootful` and `rootless`: eight cells. Targets `helm` and `swarm` cover `rootful` only. A cell without an adapter or privilege refuses `unsupported_target`. Arbora never substitutes another runtime. Evidence per run: target, privilege, package or image digest, capability probe and artifact digest. Engine side: target `standalone` is added to the placement targets (`MEDULLA-PLACEMENT-R001.3`). Depends: `MEDULLA-PLACEMENT-R001.3`, `ARBORA-DEPLOY-R017.6`. Shape: file `arbora/deployment/genesis_environments.py` (existing; `load_environment_profile`, `validate_environment_profile` gain `runtime` and `privilege`). | Test: `tests/deployment/test_target_matrix.py::test_every_declared_triple_has_a_refusal_case_and_a_success_case_id` (planned) (L2). Release job `deployment-matrix` runs each success cell served and each refusal with zero effects (L4).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.5
Confirmed profiles bind to governed deployment
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Confirmed profiles bind to governed deployment.** Stage: deployment apply. Caller chain: `deploy.placement.plan` returns `plan_digest`, `choices_digest`, `config_digest` and `artifact_digest`. The operator confirms through the invoke pipeline plan confirmation (`Confirm.PLAN`). The A2A method `arbora.plan/confirm` is a later transport for the same consume (`ARBORA-A2A-R006.2`). `deploy.placement.apply` runs only when the consumed plan binds those four digests and the checked actor. Arbora creates no planner. Refusals: `PLAN_MISMATCH`, `ARTIFACT_STALE`, `AUTHORITY_UNAVAILABLE`. Evidence: the confirmed request, the engine decision, the step audit events and the served post-deploy probes joined by `plan_digest`. Depends: ARBORA-DEPLOY-R017.19, ARBORA-DEPLOY-R017.21, `ARBORA-DEPLOY-R017.4`. Shape: files `arbora/api/ops/deploy.py` (new) and `arbora/deployment/assembly.py` (new); reuses the existing invoke plan confirmation in `arbora/api/invoke/pipeline.py`. | Test: `tests/api/test_deploy_ops_served.py::test_mixed_deployment_changes_only_deploy_marked_components` (planned) (L3). `::test_altered_binding_causes_zero_effects` (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.6
Component choices and target profiles are proven served
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Component choices and target profiles are proven served.** Stage: deployment acceptance. Caller chain: the test drives `setup-config onboard` and `deploy.placement.apply` through `invoke` with a loopback engine and recorded fleet tools. Seed 4110 draws 32 mixed inventories of `deploy` and `reuse` components. Added cases come from every triple of `ARBORA-DEPLOY-R013.4`. Mocked plan rendering alone does not count. Evidence per case: exact component effects, resource identities, profile digests, readiness and surviving reused services. A refused plan makes zero effects. Depends: `ARBORA-DEPLOY-R013.2` to `R013.5`. Shape: files `tests/deployment/test_component_choices_served.py` (new) and `arbora/deployment/component_choices.py` (new); reuses the loopback engine fixture used by the existing served tests under `tests/api/`. | Test: `tests/deployment/test_component_choices_served.py::test_seed_4110_inventories_and_matrix_cells` (planned) (L3). Coverage fails when a privilege cell has no case.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.7
A reused engine only attaches
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**A reused engine only attaches.** Stage: server start-up, small profile. Caller chain: `deploy.placement.apply` (reuse choice, `ARBORA-DEPLOY-R013.3`) and `ensure_local_engine`. A reuse-marked engine is configured through `GRAPH_SERVICE_ENDPOINTS`, so it is connect-only. A dead reused endpoint refuses `REUSE_UNREACHABLE` with zero starts. It never authorizes a local replacement. Compatibility evidence is the `Health` reply version against the floor in `pyproject.toml`; an older engine refuses `REUSE_INCOMPATIBLE`. Evidence: the endpoint digest and the `engine_spawn_total` count across repeated starts. Depends: `ARBORA-DEPLOY-R013.3`, `ARBORA-DEPLOY-R018.6`. Shape: file `arbora/mcp_server/composition.py` (existing, `ensure_local_engine` new); reuses `process_engine_pool` in `arbora/mcp_server/served_engine.py` and the `Health` probe of `ARBORA-DEPLOY-R018.2`. | Test: `tests/deployment/test_engine_reuse.py::test_two_hosts_reuse_one_engine_and_unavailable_reuse_starts_zero` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.8
A reused engine survives host shutdown
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**A reused engine survives host shutdown.** Stage: server start-up, small profile. Caller chain: the exit hook of `ARBORA-DEPLOY-R018.5`. The hook stops only an engine whose marker exists. An engine reached through a set endpoint has no marker and is never stopped. An unknown marker state (unreadable file or dead pid) refuses cleanup with `OWNERSHIP_UNKNOWN` and logs it. Evidence: an independent probe of the reused endpoint after both hosts exit. Depends: `ARBORA-DEPLOY-R018.5`. Shape: file `arbora/mcp_server/composition.py` (existing, exit hook new); reuses the marker file of `ARBORA-DEPLOY-R018.3` and `engine_lock_holder` in `arbora/deployment/engine_lock.py`. | Test: `tests/deployment/test_engine_reuse.py::test_reused_engine_stays_reachable_after_both_clients_stop` (planned) (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R009.2
Single-image deployment with no external service (rollup)
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Single-image deployment with no external service (rollup).** Stage: packaging. Caller: image entrypoint → `arbora` console script → server lifespan → `arbora/mcp_server/served_engine.py::process_engine_pool`. One image carries arbora and the engine server binary. Boot with no external service must succeed. The cold import of the served surface loads no external-service driver. Children: `.1` driver-free import, `.2` capability parity matrix, `ARBORA-DEPLOY-R018.9` engine lifecycle. Refusals stay as in the clustered contract; `LocalOnly` capabilities refuse the same way. Depends: `ARBORA-DEPLOY-R018.9`, `MEDULLA-TYPED-PACKS-R088`, `MEDULLA-TYPED-PACKS-R012`. | Test: `tests/deployment/test_small_profile_footprint.py::test_cold_import_of_the_served_surface_loads_no_external_driver` (L2). The rollup passes when `.1` and `.2` pass.
requirementARBORA-DEPLOYSPECIFIED9e7f6499d96f
tests/deployment/test_small_profile_footprint.py:31
ARBORA-DEPLOY-R009.2.1
Small-profile import footprint
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Small-profile import footprint.** A cold import of the served Arbora surface loads no external-service client library. The gateway routes and the MCP server entry import without a message broker, relational, labelled-property or remote RDF store client. Child slice of `ARBORA-DEPLOY-R009.2`. Caller chain: server start-up imports `arbora.api` routes and `arbora.mcp_server.server` in a clean interpreter. Shape: file `tests/deployment/test_small_profile_footprint.py` (existing); the served modules stay free of external-service client imports. | `tests/deployment/test_small_profile_footprint.py` imports the served surface in a clean interpreter and asserts that no forbidden driver module is loaded. Test: `tests/deployment/test_small_profile_footprint.py::test_cold_import_of_the_served_surface_loads_no_external_driver` (L2).
requirementARBORA-DEPLOYVERIFIEDe755549375e6
tests/deployment/test_small_profile_footprint.py:32
ARBORA-DEPLOY-R009.2.2
Single image serves a capability and refusal parity matrix
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Single image serves a capability and refusal parity matrix.** Stage: packaging acceptance. Caller chain: the acceptance run → image entrypoint → `arbora` console script → registered ops over HTTP. The matrix file is `tests/deployment/parity_matrix.json`. Each row is `{operation_id, clustered_result, single_image_result}` where a result is `served` or a refusal code. The run boots the image with no `GRAPH_SERVICE_ENDPOINTS` and no external service. It calls every operation in the matrix. A `LocalOnly` capability returns the same refusal code as the clustered contract. A row whose result differs from the matrix fails. Refusal: `PARITY_MISMATCH` naming the operation. Depends: `ARBORA-DEPLOY-R018.9`, `ARBORA-DEPLOY-R009.2`. Shape: files `tests/deployment/parity_matrix.json` (new) and `tests/deployment/test_single_image_parity_served.py` (new); reuses the registered operation list of `arbora/api/ops/registry_factory.py`. | Test: `tests/deployment/test_single_image_parity_served.py::test_every_matrix_row_matches_the_single_image` (planned) (L3, loopback engine started by the lifecycle row).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R009.3
Deployment selection imports the approved ontology once
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Deployment selection imports the approved ontology once.** Stage: ontology admission. Caller chain: registered op `deploy.ontology.import` (effect write, scope `fleet:control`) → `arbora/api/ops/deploy.py::handle_ontology_import` (planned) (new). The SDK supplies the schema source candidate (`SCION-SOURCE-INGEST-R003`). The engine admits the schema (`MEDULLA-TYPED-PACKS-R051`, `MEDULLA-TYPED-PACKS-R090`). The op passes the schema source and its SHA-256. The engine admits the schema and returns its served digest. The op reads the digest back through the caller's engine client and returns both. A second import with a different digest for the same ontology refuses `ONTOLOGY_DRIFT`. A duplicate ontology authority refuses `ONTOLOGY_DUPLICATE`. Local or remote engine choice never creates a second authority. An external triple-store projection is read-only and names the engine revision. Arbora holds no ontology store. Depends: `MEDULLA-TYPED-PACKS-R051`, `MEDULLA-TYPED-PACKS-R090`, `SCION-SOURCE-INGEST-R003`. Shape: file `arbora/api/ops/deploy.py` (new, `handle_ontology_import`); reuses the caller engine client and the SDK schema source candidate. | Test: `tests/api/test_deploy_ontology_import_served.py::test_import_reads_back_the_served_digest` (planned) (L3, `invoke` over HTTP and MCP, loopback engine). `::test_drift_and_duplicate_refuse` covers both refusals with zero writes.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R013.7
Secrets default to the vault and the trust bundle reaches every component
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Secrets default to the vault and the trust bundle reaches every component.** Stage: deployment apply. Caller chain: `deploy.placement.apply` → `run_confirmed_steps` (ARBORA-DEPLOY-R017.21) → steps `store-secret` and `propagate-trust`. Module: `arbora/deployment/trust_bundle.py` (new). Setup: `~/.config/arbora/deploy.yaml` key `tools.secret_write` names the vault fleet tool. Each secret-shaped value found in the resolved configuration is written there and replaced by an `openbao://` reference (`SCION-CENTRALIZED-CAPABILITIES-R009`). Arbora holds no value. Trust: the enterprise bundle file named by key `trust.bundle_path` is mounted into each deployed component. The components are the engine, gateway, every connector, the web UI and the SDK transport. Rows are `{component, mount_path, env_var, verify}`. Check opens a TLS connection to each component using the bundle. Certificate check is never disabled. Refusals: `SECRET_INLINE_REFUSED`, `TRUST_BUNDLE_MISSING`, `TRUST_VERIFY_FAILED` naming the component. The SDK consumer row is `SCION-CONNECTOR-CONTROL-R017.1`. Depends: `SCION-CENTRALIZED-CAPABILITIES-R008`, `SCION-CENTRALIZED-CAPABILITIES-R009`, `ARBORA-INGRESS-R001`, `SCION-CONNECTOR-CONTROL-R017.1`. Shape: files `arbora/deployment/trust_bundle.py` (new) and `arbora/deployment/assembly.py` (new, steps `store-secret`, `propagate-trust`); the deploy settings file `~/.config/arbora/deploy.yaml` is read, never written. | Test: `tests/deployment/test_trust_bundle_served.py::test_every_touched_component_receives_and_verifies_the_bundle` (planned) (L3). `::test_inline_secret_is_refused_and_vault_reference_is_written` (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R010.4
Complexity gate adds argument-count and try-statement rules
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Complexity gate adds argument-count and try-statement rules.** Stage: build gate. Owner of the gate: `pipelines` (`PIPE-` spec). Arbora is the configured consumer. Caller chain: pre-commit hook `complexity` in `.pre-commit-config.yaml` → the shared gate. Arbora config sets `max_function_arguments = 7` and `max_try_block_statements = 5` in `pyproject.toml` `[tool.complexity]`. A violation fails the build and names each function as `path::qualname`. Arbora adds no scanner code. Refusal: the gate exits 1 per violating function. Depends: the pipelines `specs/gates` rows named in cross_edits. Shape: files `pyproject.toml` (existing; gains the `[tool.complexity]` table) and `.pre-commit-config.yaml` (existing; gains the shared `complexity` hook); `tests/architecture/test_complexity_config.py` (new) reads the table; the scanner stays in `pipelines`. | Test: `tests/architecture/test_complexity_config.py::test_arbora_config_declares_both_rules` (planned) (L2). The pipelines gate test proves the failing and passing fixtures.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600
Process locks guard the local engine spawn (rollup)
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Process locks guard the local engine spawn (rollup).** Stage: server start-up. Caller: `ensure_local_engine` (`ARBORA-DEPLOY-R018.9`) → `arbora/deployment/engine_lock.py::engine_spawn_guard` → `arbora/deployment/file_lock.py`. The modules `file_lock.py` and `engine_lock.py` serve the lifecycle. The module `host_lock.py` has no production caller and is deleted with its three tests. One poller per messaging channel is the engine work lease (`ARBORA-MESSAGING-R007`). Children `.1` to `.6`. Depends: `ARBORA-DEPLOY-R018.9`. | Test: `tests/deployment/test_process_locks.py::test_engine_guard_is_per_socket` (L2). The rollup passes when `.1` to `.6` pass.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600.1
Lock model
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Lock model.** Stage: server start-up. Caller chain: `engine_spawn_guard`. `file_lock.py` defines `lock_exclusive_nb`, `lock_shared_nb`, `unlock` and `LockUnavailable` for POSIX and Windows. `engine_lock.py` defines `engine_lock_path(transport_key)` returning `engine-<sha8>.lock` under the user runtime directory, and `engine_lock_holder`. The transport key is hashed with SHA-256 and cut to 8 hex characters. A lock path never contains a hostname or raw socket path. Depends: none. Shape: files `arbora/deployment/file_lock.py`, `arbora/deployment/engine_lock.py`; reuses existing `engine_spawn_guard`, `lock_exclusive_nb`, `lock_shared_nb`, `LockUnavailable`. | Test: `tests/deployment/test_process_locks.py::test_exclusive_lock_contends_then_frees` and `::test_shared_locks_coexist_but_exclude_exclusive` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600.2
Spawn guard behavior
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Spawn guard behavior.** Stage: server start-up. Caller chain: `ensure_local_engine`. The guard serializes spawners for one transport key and never contends across keys. It yields `True` when acquired and `False` after `_GUARD_TIMEOUT_SECS` (30 s). The guard is held across spawn and wait-until-reachable. The caller must probe again after acquiring. The lock lives in the shared runtime directory, never in a per-container directory. Depends: `ARBORA-DEPLOY-R600.1`. Shape: file `arbora/deployment/engine_lock.py` (existing; `engine_spawn_guard`, `_GUARD_TIMEOUT_SECS`); reuses `lock_exclusive_nb` from `arbora/deployment/file_lock.py`. | Test: `tests/deployment/test_process_locks.py::test_engine_guard_is_per_socket` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600.3
Lock wiring
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Lock wiring.** Stage: server start-up. Caller chain: server lifespan → `process_engine_pool` → `ensure_local_engine` → `engine_spawn_guard`. No other production caller may spawn the engine. Delete `arbora/deployment/host_lock.py`, its exports and its tests. Depends: `ARBORA-DEPLOY-R018.9`. Shape: files `arbora/mcp_server/served_engine.py` (existing `process_engine_pool`) and `arbora/deployment/engine_lock.py`; deletes `arbora/deployment/host_lock.py` with its exports and tests. | Test: `tests/deployment/test_engine_lifecycle_served.py::test_unset_endpoints_start_one_loopback_engine_and_serve_a_call` (planned) (L3). `tests/architecture/test_no_orphan_modules.py::test_no_host_lock_module` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600.4
Lock refusal
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Lock refusal.** Stage: server start-up. Caller chain: `ensure_local_engine`. When the guard stays busy for the full timeout, the caller re-probes. If the engine is still absent it refuses `ENGINE_SPAWN_GUARD_BUSY` naming the holder pid from `engine_lock_holder`. It spawns nothing and writes nothing. Depends: `ARBORA-DEPLOY-R600.2`. Shape: file `arbora/deployment/engine_lock.py` (existing, `engine_lock_holder`); the refusal is raised by `ensure_local_engine` in `arbora/mcp_server/composition.py`. | Test: `tests/deployment/test_process_locks.py::test_busy_guard_refuses_without_spawning` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600.5
Lock evidence
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Lock evidence.** Stage: server start-up. The lock file records `pid`, `acquired_at` and an opaque 16-hex `transport_digest`. It records no hostname and no path. The metric `engine_spawn_total` counts spawns. Depends: `ARBORA-DEPLOY-R600.2`. Caller chain: `ensure_local_engine` → `arbora/deployment/engine_lock.py::engine_spawn_guard` → `_record_holder`. Shape: file `arbora/deployment/engine_lock.py` (existing; `_record_holder`, `engine_lock_holder`). | Test: `tests/deployment/test_process_locks.py::test_lock_file_holds_pid_and_opaque_digest_only` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R600.6
Lock hot-path proof
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Lock hot-path proof.** Stage: server start-up. The entry is the served process start in `tests/deployment/test_engine_lifecycle_served.py`. The lock tests in `tests/deployment/test_process_locks.py` run under xdist and random order in at most 3 seconds. A regression above 10 percent in the guard acquire time fails the spec check. Depends: `ARBORA-DEPLOY-R600.3`. Caller chain: server process start → `process_engine_pool` → `engine_spawn_guard`. Shape: files `arbora/deployment/engine_lock.py` and `tests/deployment/test_process_locks.py` (existing). | Test: `tests/deployment/test_process_locks.py::test_engine_guard_acquire_time_budget` (planned) (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.17
Capacity-adjustment actuation and applied-state receipt
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Capacity-adjustment actuation and applied-state receipt.** Stage: deployment decision. Caller chain: registered op `capacity.adjust.apply` (effect admin, `confirm=PLAN`, scope `fleet:control`) in `arbora/api/ops/capacity.py` → `arbora/deployment/capacity_actuation.py::actuate` (planned) (new). The function first asks the engine to evaluate the adjustment (`MEDULLA-PLACEMENT-R001.15`) and receives `CapacityAdjustmentVerdict`. It actuates only on `allow` with the same `proposal_digest`, `premise_revision` and `policy_revision` as the request. It runs the scale step through one governed `fleet.call` keyed `capacity:<proposal_digest>`. It returns an applied-state receipt with observed capacity and headroom read back from the engine. A `refuse` verdict, a stale revision or a digest mismatch actuates nothing and returns the engine reason code. Arbora decides no feasibility. Depends: `MEDULLA-PLACEMENT-R001.15`, `ARBORA-CAPACITY-R001`. Shape: files `arbora/api/ops/capacity.py` (existing, op `capacity.adjust.apply` new) and `arbora/deployment/capacity_actuation.py` (new, `actuate`). | Test: `tests/deployment/test_capacity_actuation.py::test_allow_actuates_once_and_returns_receipt_refuse_stale_and_mismatch_do_nothing` (planned) (L3, `invoke` over HTTP and MCP, loopback engine).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.18
Digest checker lives in the package
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Digest checker lives in the package.** Stage: deployment check. Caller chain: `deploy.placement.apply` check step → `arbora/deployment/artifacts.py::verify_digests` (planned) → `arbora/deployment/image_digests.py::check_file` (planned). Move the code of `scripts/check_deployment_image_digests.py` into `arbora/deployment/image_digests.py` unchanged. The script becomes a wrapper that calls `image_digests.main`. `tests/deployment/test_image_digests.py` imports the module. No second copy remains. Depends: none. Shape: files `arbora/deployment/image_digests.py` (new, moved unchanged from `scripts/check_deployment_image_digests.py`) and `arbora/deployment/artifacts.py` (new, `verify_digests`); the script becomes a wrapper over `image_digests.main`. | Test: `tests/deployment/test_image_digests.py::test_script_wrapper_and_module_share_one_checker` (planned) (L2). Every existing case in that file still passes against the module.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.19
Serve the placement and apply operations
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Serve the placement and apply operations.** Stage: deployment decision. Caller chain: MCP, HTTP and A2A `invoke` → `arbora/api/ops/registry_factory.py` → new module `arbora/api/ops/deploy.py`. Register two operations. `deploy.placement.plan` (effect read, scope `ops:read`) runs `ARBORA-DEPLOY-R017.1`, `.2`, `.3` and `.5` and returns the engine decision and graph. `deploy.placement.apply` (effect admin, `confirm=PLAN`, scope `fleet:control`, idempotency `KEY_REQUIRED`, audit `EVENT`) runs `ARBORA-DEPLOY-R017.4` then ARBORA-DEPLOY-R017.21. Params of apply carry `plan_digest`, `choices_digest`, `config_digest` and `artifact_digest`. The invoke pipeline binds the consumed `plan_ref` to those params, so a changed value refuses `PLAN_MISMATCH`. The replay owner is declared in `NATIVE_IDEMPOTENCY` as the engine effect journal. No existing scope is widened; no new scope is minted. Depends: ARBORA-DEPLOY-R017.21, `ARBORA-OPS-R009`, `MEDULLA-PLACEMENT-R001.7`, `MEDULLA-DECISION-ENGINE-R036`. Shape: files `arbora/api/ops/deploy.py` (new) and `arbora/api/ops/registry_factory.py` (existing registration list). | Test: `tests/api/test_deploy_ops_served.py::test_plan_then_confirmed_apply_runs_once` (planned) (L3, `invoke` over HTTP and MCP, loopback engine). `::test_apply_without_confirmed_plan_refuses_and_runs_nothing` and `::test_changed_digest_refuses_plan_mismatch` cover refusals.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.20
Publish the deployment template and its tool components
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Publish the deployment template and its tool components.** Stage: server start-up. Caller chain: server lifespan (`arbora/mcp_server/bootstrap.py`) → `arbora/deployment/assembly_library.py::publish_deployment_library` (planned) (new). This is the producer `MEDULLA-PLACEMENT-R001.12` waits for. For every served tenant it publishes one graph template per target `compose`, `helm`, `swarm` and `standalone`. Each template has the slots `render-artifact`, `apply` and `verify`. It publishes one tool component per slot and target. A component binds a fleet tool `{server, tool}` from the file `~/.config/arbora/deploy.yaml` key `tools.<role>.<target>`. A missing key skips that component and logs `DEPLOY_TOOL_UNCONFIGURED`. A target with no component makes `AgentAssemble` abstain with the engine reason `uncovered_capability`. Publish runs under the process authority, with bounded retry as in `ARBORA-RELEASE-R003.4.4`. It is idempotent: a current entry with the same body is reused. Depends: `MEDULLA-PLACEMENT-R001.12`, `MEDULLA-PLACEMENT-R001.13`. Shape: files `arbora/deployment/assembly_library.py` (new, `publish_deployment_library`) and `arbora/mcp_server/bootstrap.py` (existing lifespan hook); reads `~/.config/arbora/deploy.yaml`. | Test: `tests/deployment/test_assembly_library.py::test_startup_publishes_templates_and_components_once_per_tenant` (planned) (L3, loopback engine). `::test_unconfigured_tool_leaves_target_uncovered` asserts the abstention.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R017.21
Run the confirmed step graph through governed fleet calls
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Run the confirmed step graph through governed fleet calls.** Stage: deployment apply. Caller chain: `deploy.placement.apply` → `arbora/deployment/assembly.py::run_confirmed_steps` (planned) (new). The function takes the confirmed engine graph and the component choices. It runs the nodes in engine order. Each node is one `fleet.call` through the invoke pipeline under the caller authority. The idempotency key is `deploy:<plan_digest>:<node_id>`. It stops at the first failed node and records the failure. Before any node runs it refuses a node whose component is marked reuse (`REUSE_COMPONENT_MUTATION`). It refuses when the engine graph digest differs from the confirmed `plan_digest` (`PLAN_MISMATCH`). It adds, drops and reorders no node. Evidence: one audit event per call and an ordered `steps` list in the reply. A replay returns recorded outcomes and runs no second effect. Depends: `ARBORA-RELEASE-R003.4.5`, `ARBORA-OPS-R023` (governed fleet calls composed in the served root). Shape: file `arbora/deployment/assembly.py` (new, `run_confirmed_steps`); each node runs through the existing `fleet.call` operation under the invoke pipeline. | Test: `tests/deployment/test_run_confirmed_steps.py::test_nodes_run_in_engine_order_once_per_key` (planned) (L3). `::test_reuse_marked_component_step_refuses_before_any_call` and `::test_failed_node_stops_the_run` cover refusals.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R018.9
Engine pool wires the local lifecycle
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Engine pool wires the local lifecycle.** Stage: server start-up, small profile. Caller chain: `process_engine_pool` in `arbora/mcp_server/served_engine.py`. When `runtime_config.graph_service_endpoints` is empty it calls `ensure_local_engine(config)` in `composition.py`. The function builds the loopback endpoint `127.0.0.1:ENGINE_LOCAL_PORT`. It runs `probe_engine`, then the start-when-absent rule (`ARBORA-DEPLOY-R018.3`). It returns the endpoint for `EpistemicClientPool`. It registers an exit hook that applies `ARBORA-DEPLOY-R018.5`. With the variable set, the old `RuntimeError` text is replaced by this path only when unset. Refusals: `ENGINE_BINARY_MISSING`, `ENGINE_START_TIMEOUT`, `ENGINE_LAUNCH_CONTRACT_INVALID` (binary lacks `--idle-shutdown-secs`). Writes: the engine persist directory `~/.local/share/arbora/engine`. Depends: `ARBORA-DEPLOY-R018.1` to `R018.6`. Shape: files `arbora/mcp_server/served_engine.py` (existing `process_engine_pool`) and `arbora/mcp_server/composition.py` (existing; `ensure_local_engine`, `probe_engine` new); the pool type `EpistemicClientPool` is reused. | Test: `tests/deployment/test_engine_lifecycle_served.py::test_unset_endpoints_start_one_loopback_engine_and_serve_a_call` (planned) (L3, real engine binary, skipped never). `::test_set_endpoint_starts_nothing` (L3).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R601
Publish deployment templates and tool components
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Publish deployment templates and tool components.** Arbora publishes one deployment template per placement target into the tenant Agent Library. The keys are `deployment:in_process`, `deployment:compose`, `deployment:helm` and `deployment:swarm`. Arbora also publishes the tool components they name. The publisher runs at host bootstrap in `arbora/deployment/assembly.py`. Each template has the slots `render-artifact`, `apply` and `verify`. Depends: `MEDULLA-PLACEMENT-R001.12`. Caller chain: host bootstrap (`arbora/mcp_server/bootstrap.py`) → `publish_deployment_library` (`ARBORA-DEPLOY-R017.20`), which publishes the templates for the in-process target. Shape: file `arbora/deployment/assembly_library.py` (new, the same module as `ARBORA-DEPLOY-R017.20`); the earlier `assembly.py` home is superseded. | Test: `tests/deployment/test_deploy_templates.py::test_templates_published_and_assemble_solved` (planned) (L3) against a loopback medulla engine.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R602
The deployment configuration repository holds configuration only
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**The deployment configuration repository holds configuration only.** The arbora deployment repository carries about 7000 lines of scripts: an acceptance runner (1684 lines), a manifest renderer (903), a deployed-source manager (719), a deploy shell script (539) and provisioning helpers. Target design: each becomes a command of the published package (`arbora deploy render`, `arbora deploy provision`, `arbora acceptance run`, `arbora deploy source`) driven by a declarative configuration file; the repository keeps manifests and values only, and the same renderer already used by `arbora/deployment` is the only one. Subsystem: portable deployment. Caller chain: operator or CI -> `arbora deploy render` -> `arbora/deployment/render.py`. Shape: four command modules reusing `arbora/deployment`; the scripts are deleted. Depends: `PIPE-GATES-R089`, `ARBORA-DEPLOY-R601`. | Test: `tests/deployment/test_deploy_commands.py::test_each_script_function_is_a_command_with_a_config_input` (L2). (planned: the named test file does not exist yet)
requirementARBORA-DEPLOYSPECIFIED6dc195ad8ca3
tests/deployment/test_deploy_commands.py:34
tests/deployment/test_deploy_commands.py:58
tests/deployment/test_deployed_source.py:71
ARBORA-DEPLOY-R603
Identity and application SSO provisioning is one declarative reconcile
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Identity and application SSO provisioning is one declarative reconcile.** Nine scripts (about 1800 lines) create realm clients, roles and per-application single sign-on, and two application doctors repeat the same checks. Target design: one `arbora identity reconcile` command reads a declarative file listing realm settings, clients, roles and per-application SSO; it computes a plan, applies it idempotently and exposes a drift check; per-application doctors become one check driven by the same file. Subsystem: identity provisioning. Caller chain: operator -> `arbora identity reconcile` -> identity admin adapter. Shape: one module and a schema for the file; the scripts are deleted. Depends: `ARBORA-DEPLOY-R602`. | Test: `tests/deployment/test_identity_reconcile.py::test_reconcile_is_idempotent_and_reports_drift` (L2).
requirementARBORA-DEPLOYVERIFIED59e6aaa0bf01
tests/deployment/test_identity_reconcile.py:318
ARBORA-DEPLOY-R602.1
Manifest renderer becomes `arbora deploy render`
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Manifest renderer becomes `arbora deploy render`.** Stage: command. Move `k8s/production/render.py` (903 lines: `validate`, `_render`, engine-contract checks), `k8s/first-start/render_job.py` (105) and `k8s/prerelease/make_test_manifests.py` (108) of the deployment repository into the package as `arbora/deployment/render.py` and a `render` subcommand of `arbora/deployment/cli.py`. Input: one topology file (the JSON of `topology-input.schema.json`, which ships inside the package as `arbora/deployment/topology.schema.json`) and the engine identity contract file. Flags: `--topology PATH`, `--contract PATH`, `--out PATH|-`, `--rollback` and `--first-start`. Output: the manifests as multi-document YAML, byte-identical for equal input. No host name, domain, registry address or path is a literal in the module; each is a field of the topology file. Exit 0 on success, 2 on an invalid topology with the field path in the message. The deployment repository keeps `production-input.example.json` and its real input file, and the old files are deleted in `R602.6`. Caller chain: operator or CI -> `arbora deploy render` -> `render.main`. Shape: `git mv` of the logic, the `_require`/`_closed` validators kept, one subcommand registration. Depends: ARBORA-DEPLOY-R602, ARBORA-DEPLOY-R601. | Test: `tests/deployment/test_render_command.py::test_same_topology_renders_byte_identical_manifests`, `tests/deployment/test_render_command.py::test_invalid_topology_exits_two_with_the_field_path` and `tests/deployment/test_render_command.py::test_module_holds_no_host_literal` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R602.2
Provisioning helpers become `arbora deploy provision`
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Provisioning helpers become `arbora deploy provision`.** Stage: command. Move `scripts/deploy/provision.py` (402), `enrol_principals.py` (89), `normalize_config.py` (75), `sso_probe.py` (193) and `inpod_check.py` (351) into `arbora/deployment/provision.py` with subcommands `provision`, `enrol`, `normalize-config`, `probe-sso` and `check-in-pod` under `arbora deploy`. Input: `deploy.yml`, a closed-schema file with `namespace`, `secret_store` (mount and path), `identity` (realm URL, client ids), `principals[]`, `config_path` and `registry` fields. Every subcommand reads the file and no environment variable except the path of the file. `provision` creates what is missing and never rewrites an existing secret (the OpenBao rule: patch, not put). `enrol` adds principals and never replaces a role set (`RegisterIdentity` replaces roles, so `enrol` reads the current set first and adds). `check-in-pod` runs inside the pod through `kubectl exec` with the module itself as the payload, as `inpod()` does today. Caller chain: `arbora deploy run` (R602.5) and the operator -> subcommand. Shape: one module, five functions kept by name, a `DeployConfig` dataclass validated like `render`. Depends: ARBORA-DEPLOY-R602.1. | Test: `tests/deployment/test_provision_commands.py::test_each_subcommand_reads_only_the_deploy_file`, `tests/deployment/test_provision_commands.py::test_provision_never_rewrites_an_existing_secret` and `tests/deployment/test_provision_commands.py::test_enrol_adds_to_the_current_role_set` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R602.3
Acceptance runner becomes `arbora acceptance run` with declarative scenarios
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Acceptance runner becomes `arbora acceptance run` with declarative scenarios.** Stage: command. The runner `acceptance/acceptance.py` (1684 lines), the cross-system scenario script under `acceptance/` (229) and `acceptance/surface_audit.py` (121) move to `arbora/deployment/acceptance/` as `runner.py` (the `Arbora` client, `RefreshingBearer`, `Row` and the result writer), `scenarios.py` (the scenario interpreter) and `fleet_audit.py` (the connector sweep: `fleet_servers`, `read_only_candidates`, `pack_states`, the ledger counts). Input `acceptance.yml`: `gateway_url`, `ca_bundle`, `token` (a secret reference), `connectors` (filter list), `concurrency` (default 4), `output` and `tui_python`. The scenario code that names three connector systems becomes data: `scenarios/*.yml`, each a list of steps `{call: <operation id>, args, expect: {path, op, value}}` and a `needs: [step ids]` DAG, interpreted by `scenarios.py`. The scenarios are environment content and stay in the deployment repository; the interpreter ships in the package. `arbora acceptance run --config acceptance.yml [--scenario NAME]` writes the JSON rows and the markdown report and exits 1 when a row fails. Caller chain: operator or CI -> `arbora acceptance run` -> `runner.main`. Shape: four moves in this order: `runner.py`, `fleet_audit.py`, `scenarios.py`, then the three scenario files; no behaviour change per move. Depends: ARBORA-DEPLOY-R602. | Test: `tests/deployment/test_acceptance_command.py::test_runner_reads_every_input_from_the_config_file`, `tests/deployment/test_acceptance_command.py::test_scenario_interpreter_runs_a_dag_and_reports_a_failed_expectation` and `tests/deployment/test_acceptance_command.py::test_no_scenario_name_is_in_the_package` (L2). (planned: the named test file does not exist yet)
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R602.4
Secret diagnostics becomes `arbora secrets diagnose`
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**Secret diagnostics becomes `arbora secrets diagnose`.** Stage: command. Move `scripts/secret_diagnostics.py` (489 lines, dependency-free) to `arbora/security/secret_diagnostics.py` unchanged in logic: it accepts no secret value, it reads `os.environ` membership only and a caller-provided status observation for a SecretRef. Add the subcommand `arbora secrets diagnose --allowlist PATH [--format json|text]`; the allowlist file lists the environment names and the SecretRef names to inspect. The module keeps its docstring contract: it is not a secret-manager client. Caller chain: operator or the first-start job -> `arbora secrets diagnose` -> `secret_diagnostics.main`. Shape: `git mv` plus one subcommand registration in `arbora/cli.py`. Depends: ARBORA-DEPLOY-R602. | Test: `tests/security/test_secret_diagnostics.py::test_no_api_accepts_a_secret_value` and `tests/security/test_secret_diagnostics.py::test_environment_membership_only` (L2), moved from the deployment repository.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R602.5
The deploy script becomes `arbora deploy run`, an explicit state machine
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**The deploy script becomes `arbora deploy run`, an explicit state machine.** Stage: command and machine. `deploy.sh` (539 lines, 16 steps) becomes `arbora deploy run --config deploy.yml [--from STEP] [--rollback]`. The machine `DeployRun` has states `Planned`, `PreflightPassed`, `BackedUp`, `Configured`, `Built`, `Applied`, `CutOver`, `Serving`, `Verified`, `RolledBack` and `Failed`; terminal states are `Verified`, `RolledBack` and `Failed`. Events are the steps: `Preflight`, `Backup`, `Config`, `Build`, `Apply`, `Cutover`, `FirstStart`, `Serve`, `Onboard`, `Enrol`, `Ingest`, `Verify`, `Rollback`, `Abort`. The legal edges are the forward chain in that order, `Rollback` from `Applied`, `CutOver` and `Serving`, and `Abort` from any non-terminal state to `Failed`. Any other pair is refused with `DEPLOY_TRANSITION_ILLEGAL` naming the state and event. The persisted field is `state` in `deploy-run.json` in the work directory, written only by `DeployRun.apply`; a re-run resumes from the stored state, and a completed step is not repeated. Each step calls the subcommands of R602.1 and R602.2 and the pod health check; a step holds no logic of its own. `--rollback` applies the previous pinned digest, as `do_rollback` does. Caller chain: operator -> `arbora deploy run` -> `DeployRun.apply` -> step functions. Shape: `arbora/deployment/run.py` with `DeployState`, `DeployEvent`, `LEGAL` and `apply`; steps as a table of callables. Depends: ARBORA-DEPLOY-R602.1, ARBORA-DEPLOY-R602.2. | Test: `tests/deployment/test_deploy_run_machine.py::test_each_legal_edge_has_a_test`, `tests/deployment/test_deploy_run_machine.py::test_every_illegal_pair_is_refused`, `tests/deployment/test_deploy_run_machine.py::test_resume_skips_completed_steps` and `tests/deployment/test_deploy_run_machine.py::test_rollback_applies_the_previous_digest` (L2).
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-DEPLOY-R602.6
The deployment repository drops its code
Definition — ARBORA-DEPLOY / ARBORA-DEPLOY — Portable Arbora development and deploymentCanonical requirement and verification source
**The deployment repository drops its code.** Stage: removal, after the release that carries R602.1 to R602.5 is the pinned image. In `services/arbora` delete `scripts/`, `acceptance/` (code only; `scenarios/*.yml` stay), `deploy.sh`, `k8s/production/render.py`, `k8s/first-start/*.py`, `k8s/prerelease/make_test_manifests.py`, the repository tests that tested those scripts, and `image/*.sh` helpers that only call them (the image build is the CI job). The repository then holds manifests, values, `deploy.yml`, `acceptance.yml`, `topology.json`, `identity.yml` and scenario files. Update the 11 sibling service READMEs that name `deploy.sh` or `scripts/deploy/*`, and `mcp-multiplexer/mint_token.py` (its `mcp_clients.json` fallback). The repository passes `PIPE-GATES-R089` (no custom code). Commit to main; the repository is private (no PR). Caller chain: none; deletions and docs. Shape: deletions plus README edits. Depends: ARBORA-DEPLOY-R602.3, ARBORA-DEPLOY-R602.4, ARBORA-DEPLOY-R602.5, PIPE-GATES-R089. | Test: `pipelines-hook environment-config-only` exits 0 on the repository (L2), and `tests/deployment/test_deploy_commands.py::test_each_script_function_is_a_command_with_a_config_input` (L2) lists every removed function with its command.
requirementARBORA-DEPLOYSPECIFIEDNo recorded commit/test evidence
ARBORA-INGRESS
ARBORA-INGRESS — Portable public ingress and identity cutover
specNoneSPECIFIEDNo recorded commit/test evidence
ARBORA-INGRESS-R001
Public ingress rename with identity-provider and secret-store cutover (rollup)
Definition — ARBORA-INGRESS / ARBORA-INGRESS — Portable public ingress and identity cutoverCanonical requirement and verification source
**Public ingress rename with identity-provider and secret-store cutover (rollup).** Subsystem: deployment, public ingress. Entry: `setup-config` (`arbora/deployment/cli.py`) rendering a profile loaded by `load_environment_profile`. Arbora serves from its own hostname with a renamed TLS certificate, ingress resource and secret. The key lives in the secret store and arrives through an external-secret object. The identity provider redirect URIs are updated, and a time-bounded redirect from the prior hostname exists during cutover. Children: `.1` model, `.2` profile wiring, `.3` legacy redirect, `.4` served probe. Provisioning of the secret store and provider client runs from `services/`. Depends: `ARBORA-IDENTITY-R024`. | Root journey: `tests/qualification/identity/test_cutover_probe.py::test_cutover_probe_signs_in_on_new_hostname` (L6) runs `scripts/identity_probe.py` against the new hostname and asserts MCP and REST answer under the renamed ingress.
requirementARBORA-INGRESSSPECIFIEDd35d445334f2
ARBORA-INGRESS-R001.1
Typed public-ingress profile model
Definition — ARBORA-INGRESS / ARBORA-INGRESS — Portable public ingress and identity cutoverCanonical requirement and verification source
**Typed public-ingress profile model.** Subsystem: deployment, public ingress. Code: `arbora/deployment/public_ingress_identity.py::PublicIngressProfile` and `public_ingress_profile_from_mapping`, a closed-schema value object with `version` 1. Caller chain: `setup-config environments validate` → `arbora/deployment/cli.py::main` (line 127) → `_run_environments` (line 66) → `load_environment_profile` (`arbora/deployment/genesis_environments.py:813`) → `public_ingress_profile_from_mapping` (called once `ARBORA-INGRESS-R001.2` adds the call). Shape: `PublicIngressProfile` (frozen dataclass) and `PublicIngressProfileError` (subclass of `EnvironmentProfileError`) in `arbora/deployment/public_ingress_identity.py`; the private `_validate_*` helpers each check one key. Rule: the profile carries `public_origin`, `tls_secret_ref`, `callback_uri` and `trusted_proxy`. It refuses an unknown or missing key and a malformed TLS reference. It also refuses a callback outside the origin, a non-loopback HTTP origin and a wildcard Host or proxy. Refusals: `PublicIngressProfileError` naming the key. Errors never hold a secret value. Writes: none. Depends: none. | Test: `tests/deployment/test_public_ingress_identity.py::test_valid_mapping_renders_deterministic_redacted_profile` (L1) proves the render. `tests/deployment/test_public_ingress_identity.py::test_refusal_never_leaks_secret_value` and `tests/deployment/test_public_ingress_identity.py::test_unknown_field_refuses` prove the refusals.
requirementARBORA-INGRESSVERIFIED0eaf4eede875
d35d445334f2
tests/deployment/test_public_ingress_identity.py:19
ARBORA-INGRESS-R001.2
Profile wiring into environment rendering
Definition — ARBORA-INGRESS / ARBORA-INGRESS — Portable public ingress and identity cutoverCanonical requirement and verification source
**Profile wiring into environment rendering.** Subsystem: deployment, public ingress. Caller chain: `setup-config environments show` → `arbora/deployment/cli.py::main` (line 127) → `_run_environments` (line 66) → `load_environment_profile` (`arbora/deployment/genesis_environments.py:813`) → `profile_summary` (line 1068); `setup-config generate` → `_run_generate` (line 49) → `write_config` (`arbora/deployment/config_generator.py:478`). The browser boundary reads the origin at `arbora/identity/browser_composition.py:47` from `runtime_config.webui_origin` (`arbora/core/settings.py:275`). Shape: add field `public_ingress: PublicIngressProfile` to `EnvironmentProfile` (line 272) next to `NetworkInputs` (line 234, which already carries `ingress_host`); parse it in `load_environment_profile` with `public_ingress_profile_from_mapping`; extend `profile_summary` and `write_config`. Rule: the renderer emits the ingress host, TLS secret reference, callback URI and trusted proxy from the profile. It emits `identity.public_origin` into `~/.config/arbora/config.json`. WebAuthn origin, Origin verification and OIDC and SAML callbacks read that value. No domain or provider default exists. Refusals: `PublicIngressProfileError` naming the key. Writes: rendered configuration files only. Depends: `ARBORA-INGRESS-R001.1`. | Test (planned, see test-spec.md): `tests/deployment/test_public_ingress_identity.py::test_profile_renders_origin_callback_and_proxy` (L3). It runs the CLI render and asserts the output values and the refusal for a missing key.
requirementARBORA-INGRESSSPECIFIEDNo recorded commit/test evidence
ARBORA-INGRESS-R001.3
Time-bounded legacy hostname redirect
Definition — ARBORA-INGRESS / ARBORA-INGRESS — Portable public ingress and identity cutoverCanonical requirement and verification source
**Time-bounded legacy hostname redirect.** Subsystem: deployment, public ingress. Caller chain: `setup-config environments show` → `arbora/deployment/cli.py::_run_environments` (line 66) → `profile_summary` (`arbora/deployment/genesis_environments.py:1068`) → the new redirect route output. Shape: add `legacy_hostname` and `legacy_redirect_until` to `PublicIngressProfile` in `arbora/deployment/public_ingress_identity.py` with a private `_validate_legacy_redirect` helper beside the other `_validate_*` helpers; `profile_summary` emits the route. Config in the profile: `legacy_hostname` and `legacy_redirect_until` (ISO date, at most 90 days after render). Rule: until that date the legacy host answers 308 to the same path on the new origin. After the date the render omits the route. A render with a date beyond 90 days refuses with `LEGACY_REDIRECT_TOO_LONG`. Writes: rendered files only. Depends: `ARBORA-INGRESS-R001.2`. | Test (planned, see test-spec.md): `tests/deployment/test_public_ingress_identity.py::test_legacy_redirect_is_bounded` (L1). It asserts the 308 route, the omission after the date and the refusal.
requirementARBORA-INGRESSSPECIFIEDNo recorded commit/test evidence
ARBORA-INGRESS-R001.4
Cutover served probe
Definition — ARBORA-INGRESS / ARBORA-INGRESS — Portable public ingress and identity cutoverCanonical requirement and verification source
**Cutover served probe.** Subsystem: deployment, release qualification. Caller chain: release qualification runs `scripts/identity_probe.py` (new, owned by `ARBORA-IDENTITY-R024`) with `--base-url` set to the new origin → the browser helpers of `tests/qualification/browser/browser_login.mjs` → MCP and REST endpoints. Shape: this row adds no module; it adds one test module `tests/qualification/identity/test_cutover_probe.py` that calls the probe script with the cutover origin and asserts the two endpoint answers. Rule: the probe completes a browser sign-in through the identity provider. It then calls the MCP and REST endpoints under the renamed ingress. Output holds no cookie or credential. Depends: `ARBORA-INGRESS-R001.2`, `ARBORA-IDENTITY-R024`. | Test (planned, see test-spec.md): `tests/qualification/identity/test_cutover_probe.py::test_cutover_probe_signs_in_on_new_hostname` (L6). It asserts sign-in success and both endpoint answers.
requirementARBORA-INGRESSSPECIFIEDNo recorded commit/test evidence
TitleSpec delivery: arbora
RepositoryKnuckles-Team/arbora
Commit11748bb52def
Captured (UTC)2026-11-19T13:35:08
Snapshotsnapshot.json (v1)
Sourcespecs/*/status.json
Sheet1 of 1