Issue #601: participant demonstration architecture preflight¶
This historical Reference preserves the original source record.
The record below describes its own evidence date and revision, where stated.
It does not establish current behavior, implementation completion, or installed qualification.
The preserved file is available at source revision 6d35d245f11a.
Its last recorded file change before this rewrite was 2901a2c8516c.
Current interfaces and successor decisions take precedence for present use.
Approved scope revision¶
The implementation selects a minimal TechVault copy in OpenRAE/env-packs,
techvault-participant-study, and reuses TechVault's exact APTL adapter through
new digest-scoped registrations. The SDL owns four participant-directed
injects: red start, red stop, blue start, and blue stop. It also owns their
literal instructions, participant and role references, occurrence order,
control transitions, evidence requirements, and logical-time windows. APTL
maps the declared Claude Code realization profile to the operator's already
authenticated host CLI and each role to its admitted MCP tools. Normal
aptl lab start executes the compiled sequence after MCP synchronization. The
checkout-only aptl lab participant-readiness path remains removed. The source
and capture procedure are recorded in the
issue 601 runbook. The
preflight discussion below records the earlier boundary analysis; where it
mentions readiness or configured provider credentials, this approved revision
controls the implementation.
The retained four-inject run in that runbook is an unsealed engineering
qualification, with failed transcript finalization on stop. It is evidence
for delivered turns, not a completed published research bundle or proof that
all of #558's evidence is present. A future closure claim must identify the
exact attempt and verify required captures, terminal state, archive seal and
bundle integrity; it must disclose any missing independent tool-call or target
observation. A successful aptl lab start is not a terminal attempt result.
Decision boundary¶
The deliverable is an observed run by a real installed participant against an identified, authored scenario, with the evidence requested by #558 and a reproducible account of what the evidence supports. The September 5 review supersedes an APTL-versus-LilRAE independent-backend comparison: they are one product across a rename (ADR-054). Coordinate the advanced APTL experience with Hub #15; paired-backend research belongs to LilRAE #11. Neither external issue changes the authority of this repository's actual run records.
Freeze the selected scenario source and digest, acquired pack identity where
applicable, published RAES contract and processor versions, backend manifest,
installed participant implementation and model, non-secret config identity,
apparatus and image identities, capture specifications, attempt/run identity,
host platform, and observed reset state. Keep scenario behavior in SDL and
provider transport behind the realization profile selected from the compiled
model; do not bake the four prompts or their sequence into APTL core, a CLI
command, or the provider adapter. Do not reuse the checkout-only
paper-agent-loop or bounded-participant fixture as the experiment workflow.
If a checkout-only fixture is selected, disclose that dependency and do not
claim a released, independently installed pack journey. Separate observed
actions, evaluator observations, failed or missing captures, and interpretation.
Existing boundaries to reuse¶
| Concern | Canonical owner and guardrail |
|---|---|
| Scenario meaning and validation | Published RAES SDL parser, processor, runtime and diagnostics; src/aptl/backends/raes.py, raes_manifest.py, and src/aptl/validation/ gates. Use the compiled, admitted addresses and contracts; do not parse SDL again into APTL mirrors or infer success from declarations. |
| Experiment admission | src/aptl/core/experiment/ and aptl experiment admit: bounded, project-contained artifact resolution; public RAES task, capture, experiment and cross-artifact models; apparatus and capture capability checks; immutable trial plan. Admission does not start a lab or prove a participant acted (ADR-047). |
| Installed participant | RAES participant behavior specifications and compiled participant-inject deliveries own the behavioral contract. src/aptl/backends/raes_participant_delivery.py, _raes_participant_planning.py, _raes_participant_execution.py, and _raes_participant_transport.py implement the currently admitted Claude Code realization profile using the authenticated host CLI, BoundedProcessRunner, and existing src/aptl/workbench/profiles.py role profiles. Record the selected implementation/model and actual delivery evidence, not just a provider process exit or a plausible transcript. |
| Capture and persistence | src/aptl/core/experiment/capture_registry.py binds published capture intent to closed collectors; src/aptl/core/evidence/coordinator.py owns capture lifecycle, quotas, redaction, content-addressed bytes, typed outcomes and RAES evidence records. src/aptl/core/runstore.py owns contained writes. Missing required capture invalidates or interrupts the attempt; it cannot be filled with an authored requirement or a manually assembled JSON file. |
| Terminal result and export | src/aptl/core/execution/, src/aptl/core/archival/ and ADR-050 own attempt identity, status, RAES experiment-run/v1, cross-artifact checks and atomic seal. src/aptl/core/archival/verify.py and aptl runs verify-bundle verify artifacts. aptl runs export-bundle packages existing bytes and discloses an absent seal; packaging is not validation of a scientific claim. |
| Auth and participant reach | ADR-039 and docs/components/participant-workbench.md govern browser principal, live grant, role, deployment identity, revocation, capture admission and narrow MCP dispatch. docs/reference/host-mcp-access.md governs host clients. A participant cannot receive operator API, Docker socket, evaluator store or unrestricted service credentials through a convenience demonstration path. |
| Errors and observability | RAES Diagnostic and render_raes_diagnostics() cover admission failures; capture uses typed CollectorStatus/AcquisitionDisposition; archival uses TerminalCause and its one status mapper. src/aptl/utils/logging.py, src/aptl/utils/redaction.py and MCP common redaction own safe logs and traces. Do not add a demo-specific exception hierarchy, success flag, logging channel or error envelope. |
Cross-cutting gates for the live path¶
- Input and configuration: resolve paths through
ScenarioBundle, the project-contained experiment resolver and existing no-follow run-store rules. Pass scenario, experiment, task and capture input through the published RAES parser/models and admission policy; pass durable settings through strictAptlConfig(ScenarioSourceConfig,ExperimentSettings, and explicitInstalledParticipantModels). Lab service secrets use the existing.envand MCP synchronization path; the host Claude CLI uses its own login and the transport's allowlisted host environment. The configured credential-source field used by another participant path does not validate or pin this host CLI login. Unknown fields, unsupported capabilities, mismatched digests and missing sources fail closed. - Secret and process surface: ADR-029 and ADR-052 classify operator/provider
credentials separately from designed target data. The operator signs in to
Claude Code directly; APTL does not persist that login in run artifacts, but
_raes_participant_transport.pyforwards selected provider-auth environment variables and the host home/config coordinates to the child. It does not establish the explicit source-provenance or ambient-source exclusion claimed by ADR-052 for its separate configured-source path. The adapter usesBoundedProcessRunner, private generated MCP configuration, strict MCP selection, role-specific allowed tools, temporary-workspace cleanup, persistent participant sessions and explicit model selection. Provider credential bytes must never enter argv, prompts or public output. Current argv does carry private config paths and a provider session identifier for resume; treat those as host-visible sensitive metadata, and do not claim process secrecy or credential revocation. Check the host process, descendants and outbound reach actually allowed; ADR-057's stronger OS compartment is proposed, so current tool restriction alone cannot support a sandbox or host-isolation claim. - Capture and output: redact at the Python run-store / evidence persistence
and MCP trace boundaries before bytes reach logs, CLI/API responses, OTel,
archives or exports. The shared redactors and safe diagnostic projections
handle error envelopes; raw provider errors, exception tracebacks, command
output, absolute private paths and credential locators must not become public
diagnostics or log entries. In particular, the broad participant-delivery
exception handler in
src/aptl/core/lab.pymust be assessed for secret-bearing exception text before a production confidentiality claim. Keep the participant projection separate from evaluator-only Wazuh and negative boundary evidence, as indocs/raes/paper-scenario-realization.md. - Host and runtime:
aptl lab startandDeploymentBackendown real range realization, profiles, network attachment and reset. Record actual health, action effect/readback, capture status, seal state and residual state. A clean-start request, static conformance pass, container health, or mock-backed readiness result alone does not establish a reproduced live demonstration.
The next realization profile belongs at the compiled profile-to-adapter
selection boundary, with a provider-specific model and process policy selected
there. The present lab.py handoff selects model_for("claude") and the
executor constructs ClaudeCodeHostParticipantAdapter directly. Extend that
single boundary when another installed provider is admitted; do not add a
second lab start sequence, change authored prompts, or widen role MCP access
to accommodate it.
Claim limits and non-goals¶
A passing qualification report is pre-capture evidence only. A sealed archive establishes byte identity and declared completeness, not that an evaluator's interpretation is correct. Report exact observed evidence, unsupported claims, failures and environment limits. Do not claim comparative backend results, detection quality, autonomous host containment, released-pack installability, or general reproducibility beyond the tested apparatus without separate evidence.
The implementation adds no alternate RAES schema, second controller, second participant workflow, or new collector protocol. The environment pack authors the study through released participant, orchestration, time, and evidence semantics; APTL supplies the generic realization and evidence adapters required to execute that model. The live demonstration and research evidence remain work under #601/#558; Hub #15 and LilRAE #11 own their respective coordination and paired research outcomes.