{
  "markdown": "# LAM_Test_Agent\n\nIntegration test harness for LAM agent interaction flows.\n\n## Bootstrap\n```bash\nscripts/bootstrap_submodules.sh\n```\n\n`devkit/bootstrap.sh` now includes gateway auto-recovery for Gemini/MCP.\nControls:\n- `LARPAT_GATEWAY_AUTOHEAL=1` (default): run auto-heal.\n- `LARPAT_GATEWAY_STRICT=1`: fail bootstrap if auto-heal fails.\n\n## Cloud Fabric (Drive + Multi-Cloud)\nCentral CLI for storage sync/migration:\n```bash\nscripts/cloud_fabric.sh verify\nscripts/cloud_fabric.sh disk-status\nscripts/cloud_fabric.sh route-table\nscripts/cloud_fabric.sh monitor-space\nscripts/cloud_fabric.sh sync-gdrive\nscripts/cloud_fabric.sh snapshot\nscripts/cloud_fabric.sh fanout governance\nscripts/cloud_fabric.sh full-cycle governance\n```\n\nEnvironment:\n- `CF_SCOPE=gateway` (default): sync only gateway folder, not full repo.\n- `CF_GATEWAY_LOCAL_DIR`: local import/export gateway directory.\n- `CF_GDRIVE_ROOT`: local Google Drive mirror root (device+cloud mode).\n- `CF_ROUTE_FILE`: class routing CSV (`class,remote_path,min_free_gb`).\n\n## LAM Local Gateway (MCP-optional)\nUnified local gateway for all agents with provider routing and health checks:\n```bash\nscripts/lam_gateway.sh init\nscripts/lam_gateway.sh health\nscripts/lam_gateway.sh route governance\nscripts/lam_gateway.sh put ./DEV_LOGS.md --class governance\nscripts/lam_gateway.sh list --class governance\nscripts/lam_gateway.sh enqueue-put ./DEV_LOGS.md --class governance\nscripts/lam_gateway.sh run-queue --max-jobs 20\nscripts/lam_gateway.sh monitor --once --auto-switch\nscripts/lam_gateway.sh policy-check --class sensitive --provider gdrive --contract-id CTR-001 --approval-ref APR-001\nscripts/lam_gateway.sh circulation-kill-switch status\nscripts/gateway_circulation_killswitch.sh on\npython3 scripts/gateway_apply_circulation_policy.py\nscripts/lam_realtime_circulation.sh --once\n```\n\nProvider roots are local filesystem adapters:\n- `local`: `.gateway/storage/local`\n- `gdrive`: `$GATEWAY_GWORKSPACE_ROOT/LAM_GATEWAY/<repo>`\n- `onedrive`: `$GATEWAY_ONEDRIVE_ROOT/LAM_GATEWAY/<repo>`\n- `archive`: `$GATEWAY_ARCHIVE_ROOT/LAM_GATEWAY/<repo>`\n\nGateway state files:\n- policy: `.gateway/routing_policy.json`\n- index: `.gateway/index.json`\n- queue: `.gateway/queue.json`\n- circuit breakers: `.gateway/circuit_breakers.json`\n\n`routing_policy.json` supports:\n- hard local free-space floor (`routing.local_hard_min_free_gb`)\n- queue retry/backoff (`queue.max_attempts`, `queue.backoff_base_sec`, `queue.backoff_cap_sec`)\n- circuit breaker (`circuit_breaker.failure_threshold`, `circuit_breaker.cooldown_sec`)\n- provider size caps (`provider_limits.<provider>.max_object_mb`)\n- governed circulation controls (`data_circulation.*`) with kill-switch and class/provider/org policy gates\n\nGoverned transfer flags:\n- `put ... --contract-id <id> --approval-ref <ref>`\n- `enqueue-put ... --contract-id <id> --approval-ref <ref>`\n- `policy-check ...` to pre-validate transfer against gates\n- `circulation-kill-switch on|off|status` for emergency gate control\n\n## Desktop Console UI (Local-First)\nTerminal-native desktop UI with direct local adapters (no CLI transit layer):\n```bash\nscripts/lam_console.sh\nscripts/interactionface.sh\n```\n\n`interactionface.sh` launches the same core UI with branded profile and tuned defaults for portable/WSL environments.\nTheme words are configurable via `LAM_UI_THEME_WORDS` (default includes `shadow blur light liquid glass ... core face`).\nTouch profile:\n- `LAM_UI_PROFILE=touch` (default in `interactionface.sh`)\n- larger tab hit-zones\n- slower hover dwell\n- soft scroll inertia\n- liquid pulse on hovered tabs\n- realtime activity wallpaper (driven by `activity_telemetry_state.json`)\n- mirror-inertia orchestration across pane zones:\n  - `LAM_UI_MIRROR_FLOW_STRENGTH`\n  - `LAM_UI_ZONE_FLOW_DECAY`\n  - `LAM_UI_ZONE_FLOW_INJECT`\n- inversion mirror feedback (audio + haptic queue):\n  - `LAM_UI_AUDIO_FEEDBACK`\n  - `LAM_UI_HAPTIC_FEEDBACK`\n  - `LAM_UI_FEEDBACK_FLOW_THRESHOLD`\n  - `LAM_UI_FEEDBACK_MIN_INTERVAL_SEC`\n  - haptic event queue: `.gateway/bridge/captain/haptic_feedback_queue.jsonl`\n- external ambient mirror vectors (Aura-style):\n  - `LAM_UI_AMBIENT_LIGHT_ENABLED`\n  - `LAM_UI_AMBIENT_LIGHT_INTERVAL_SEC`\n  - `LAM_UI_AMBIENT_LIGHT_MAX_BRIGHTNESS`\n  - vector state: `.gateway/bridge/captain/ambient_light_vector.json`\n  - vector stream: `.gateway/bridge/captain/ambient_light_vectors.jsonl`\n\nMain commands inside UI:\n- `help`\n- `agents`\n- `health`\n- `route <class> [size_bytes]`\n- `send <agent> <message>`\n- `model <codex|gemini> <message>`\n- `enqueue-put <path> [class]`\n- `run-queue [max_jobs]`\n- `bridge-status`\n- `open-gate <windows|linux|macos> [endpoint]`\n- `list-gates`\n- `register-device <id> <type> <platform> [endpoint]`\n- `list-devices`\n- `send-device <id> <message>`\n- `mcp-status`\n- `gws-health`\n- `gws-sync <push|pull>`\n- `gws-list [prefix] [limit]`\n\n## RADRILONIUMA Site + OS Subdomain\nRun install portal:\n```bash\nscripts/run_install_portal.sh 8099\n```\nOpen in browser:\n- `http://127.0.0.1:8099`\n- Main brand site label: `RADRILONIUMA`\n- OS install gateway label: `os.radriloniuma`\n- OS label text is configurable in `apps/install_portal/app.js` (`OS_BRAND_LABEL`)\n\nOne-click install entrypoints used by portal:\n- Linux/macOS shell: `scripts/install_oneclick.sh`\n- Windows PowerShell: `scripts/windows/install_oneclick.ps1`\n\nPublic domain/subdomain proxy config:\n```bash\nDOMAIN=radriloniuma.example.com \\\nOS_SUBDOMAIN=os.radriloniuma.example.com \\\nscripts/deploy_public_site.sh\n```\nRun Caddy directly from generated config:\n```bash\nDOMAIN=radriloniuma.example.com \\\nOS_SUBDOMAIN=os.radriloniuma.example.com \\\nscripts/deploy_public_site.sh --run-caddy\n```\n\nUI controls:\n- Keyboard: `1..9,0` panes, `Tab` next pane, `PgUp/PgDn` scroll\n- Mouse: click pane tabs on top row, wheel scroll inside active pane\nInteractionface dynamics:\n- hover-dwell expands tab surfaces\n- idle-delay zoom shifts UI depth (surface expansion)\n- realtime scrollbar thumb at right edge\n- keyboard navigation: `Left/Right` pane switch, `Up/Down` fine scroll\n\nOptional model adapters:\n- `LAM_CODEX_ENDPOINT=http://127.0.0.1:...`\n- `LAM_GEMINI_ENDPOINT=http://127.0.0.1:...`\n\nIf endpoints are absent, model requests are spooled to `.gateway/hub/model_spool/*.jsonl`.\n\nBackground model delivery worker (retry/backoff/circuit-breaker/dead-letter):\n```bash\nscripts/lam_model_worker.sh --once\nscripts/lam_model_worker.sh --interval-sec 5\n```\n\nPortal gateway daemon (cross-OS interface translation):\n```bash\nscripts/lam_portal_gateway.sh --mode auto --host 127.0.0.1 --port 8765\n```\nModes:\n- `http`: REST gateway on `127.0.0.1:8765`\n- `file`: bridge bus in `.gateway/bridge/captain/portal_{status,commands,results}.json*`\n- `auto`: try HTTP, fallback to file mode\n\nBridge stack orchestration (worker + portal):\n```bash\nscripts/lam_bridge_stack.sh start\nscripts/lam_bridge_stack.sh status\nscripts/lam_bridge_stack.sh stop\n```\nBy default stack uses `LAM_PORTAL_MODE=file` for maximum compatibility.\nOn `start`, stack auto-syncs data circulation policy template into gateway policy\n(`LAM_APPLY_CIRCULATION_POLICY_ON_START=1` by default).\nStack also starts:\n- `mcp_watchdog`: automatic `google-workspace` MCP health-check + heal (`gemini auth clear`, reinstall extension)\n- `gws_bridge`: local queue-based Google Workspace bridge (MCP-independent path)\n- `security_guard`: runtime telemetry + security policy checks (disk/mem/load/secure-boot posture)\n- `role_orchestrator`: realtime role rebinding after device wake/resume\n- `power_fabric_guard`: CPU/GPU/RAM/swap/I-O + quiet-hours noise-aware orchestration\n- `realtime_circulation`: global sync loop + inversion circulation of test reports\n- `device_mesh_daemon`: verified device sync queue for paired devices\n- `activity_telemetry`: runtime activity + archive/db telemetry stream\n- `ambient_light`: mirrored ambient-light dispatch to external devices (`ambient_light` scope)\n- `io_spectral`: vector spectral analysis of I/O/input-response frequencies and latency\n- `governance_autopilot`: realtime governance expansion cycle across protocol/plan/analysis/strategy/contracts/policy/instructions/revision/licensing/map/topology/chronology\n- `media_sync`: realtime stream sync between device storage and removable media with microtick isolation locks\n  - default priority order: `instructions -> contracts -> protocols -> policies -> licenses -> map -> cards -> keypass_code_dnagen -> other`\n- `rootkey_gate`: physical removable-root authorization gate for Architit initiation key (`SEED_GOD_MODE_SPREAD_FLOW_INIT`)\n- `external_provider_mesh`: external sync/readiness mesh (GitHub, Google, Microsoft, OpenAI, Claude, xAI, Shinkai, Ollama, NVIDIA/Intel/AMD)\n- `feedback_gateway`: autopilot feedback/recommendation routing to external gateway channels with spool fallback\n  - safety gate: during lockdown/failsafe non-critical feedback is blocked; critical uses `LAM_FEEDBACK_CRITICAL_ALLOWED`\n\nRole orchestration controls:\n```bash\nscripts/lam_rolectl.sh status\nscripts/lam_rolectl.sh profiles\nscripts/lam_rolectl.sh set-profile portable_core\nscripts/lam_rolectl.sh rebind-now\n```\nProfile override is persisted at `LAM_HUB_ROOT/role_profile.override`.\nSelector policy: `infra/security/role_selector.json`.\nHardware/security-aware role switches:\n- `LAM_ROLE_DEGRADE_ON_BATTERY=1`\n- `LAM_ROLE_MAX_LOAD_BEFORE_DEGRADE=16`\n- `LAM_ROLE_MAX_TEMP_BEFORE_DEGRADE_C=82`\n- `LAM_WAKE_STRICT_SECURE_GATE=0|1` (block wake actions if secure posture is invalid)\n- `LAM_ROLE_REASON_HOLD_THRESHOLD=3` (activate hold runbook on repeated critical reason-codes)\n\nStandalone controls:\n```bash\nscripts/lam_mcp_watchdog.sh --once\nscripts/lam_mcp_watchdog.sh --once --heal-now\nscripts/lam_gws_bridge.sh --once\nscripts/lam_power_fabric_guard.sh --once\nscripts/power_profilectl.sh status\nscripts/power_profilectl.sh set turbo\nscripts/power_profilectl.sh set quiet\nscripts/power_profilectl.sh set auto\nscripts/lam_activity_telemetry.sh --once\nscripts/lam_ambient_light.sh --once\nscripts/lam_io_spectral.sh --once\nscripts/lam_governance_autopilot.sh --once\nscripts/lam_media_sync.sh --once\nscripts/lam_rootkey_gate.sh --once\nscripts/lam_external_provider_mesh.sh --once\nscripts/lam_feedback_gateway.sh --once\nscripts/provider_mesh_bootstrap.sh verify\nscripts/provider_mesh_bootstrap.sh apply\nscripts/rootkey_pair.sh pair --owner architit --key-id AK-001\nscripts/rootkey_challenge.sh issue --ttl-sec 180\nscripts/rootkey_challenge.sh solve\nscripts/rootkey_pair.sh status\nscripts/lam_realtime_circulation.sh --status\nscripts/lam_realtime_circulation.sh --daemon --interval-sec 12\nscripts/license_audit_scan.sh\nscripts/license_change_guard.sh --mode verify\n```\n\nProvider bootstrap template:\n- copy `scripts/provider-secrets.env.example` -> `scripts/provider-secrets.env`\n- fill secrets/roots, then run `scripts/provider_mesh_bootstrap.sh apply`\n- `scripts/lam_bridge_stack.sh` auto-sources `scripts/provider-secrets.env` if present\n\nSystem-level (root) propagation:\n```bash\nsudo scripts/power_profilectl.sh set quiet --system\nsudo scripts/power_profilectl.sh clear --system\n```\n\nWindows parallel gateway launch (Windows Terminal + browser portal):\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/lam_portals.ps1\n```\n\nWSL autopilot after reboot (Windows logon trigger):\n```bash\nscripts/register_wsl_autopilot.sh\n```\nOr directly from PowerShell:\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/register_wsl_autopilot.ps1\n```\n\nPortable EXE installer bundle (Windows):\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/build_exe_installer.ps1\n```\nOutput bundle:\n- `scripts/windows/dist/RADRILONIUMA_Installer.exe`\n- `scripts/windows/dist/portable_activate.ps1`\n- `scripts/windows/dist/register_wsl_autopilot.ps1`\n- `scripts/windows/dist/preinstall_security_gate.ps1`\n- `scripts/windows/dist/prepare_portable_core.ps1`\n\nRun `RADRILONIUMA_Installer.exe` from external SSD to:\n- request user consent\n- start bridge stack in WSL\n- register autopilot task on Windows logon\n- open branded installer wizard (default run mode)\n\nInstaller modes (`portable_activate.ps1`):\n- `-Mode discovery`: only inspect status\n- `-Mode guest-gateway`: open communication gateways only (default)\n- `-Mode install`: gateway + autopilot registration\n- `-Mode revoke`: stop stack + remove autopilot task\n\nSilent mode:\n- `RADRILONIUMA_Installer.exe /S`\n  - maps to `-Silent -AssumeConsent -Mode install`\n  - requires policy override: `RADR_ALLOW_SILENT_INSTALL=1`\n\nWizard:\n- default EXE launch opens `installer_wizard.ps1`\n- includes mode selector, preflight audit button, portable SSD prep button, rollback button, logs viewer\n\nSecurity preflight (standalone):\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/preinstall_security_gate.ps1 -Mode guest-gateway\n```\nChecks:\n- WSL availability/reachability\n- required script set present\n- minimum free disk space (mode-sensitive)\n- optional Secure Boot requirement (`RADR_REQUIRE_SECURE_BOOT=1`)\n- install mode elevation requirement\n\nPortable SSD core preparation (D/E/F external storage):\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/prepare_portable_core.ps1 -TargetDrive D:\n```\nCreates `D:\\RADRILONIUMA_OS` with minimal runtime tree + launcher:\n- `Start_RADRILONIUMA_OS.cmd`\n- `portable_manifest.txt`\n\nNote:\n- Modern Windows blocks true USB autorun for executables on plug-in.\n- Reliable model is consented launcher + scheduled task/host policy.\n\n## Mobile / Wearables / Earbuds Integration\nOnboard device tokens:\n```bash\nscripts/mobile_onboard.sh device_phone_1 phone android\nscripts/mobile_onboard.sh device_phone_2 phone ios\nscripts/mobile_onboard.sh device_watch_1 watch wearos\nscripts/mobile_onboard.sh device_audio_1 earbuds earbuds\nscripts/device_meshctl.sh pair pixel8 phone android wifi telemetry_read,device_status,test_reports --endpoint http://127.0.0.1:8765\nscripts/device_meshctl.sh pair-profile samsung_android s24 --endpoint http://127.0.0.1:8765\nscripts/device_meshctl.sh pair-profile ambient_rgb aura_hub --endpoint usb://ambient\nscripts/device_meshctl.sh promote-full-access s24\nscripts/device_meshctl.sh sync-once all bidirectional\n```\n\nBridge device commands (inside `lam_console`):\n- `register-device device_phone_1 phone android http://127.0.0.1:8765`\n- `list-devices`\n- `send-device device_phone_1 \"sync now\"`\n\nDevice gateway details:\n- `infra/mobile/DEVICE_GATEWAYS.md`\n- `infra/mobile/MULTIDEVICE_MESH_PROTOCOL_V1.md`\n\nRealtime mesh daemon:\n```bash\nscripts/lam_device_mesh_daemon.sh --interval-sec 15 --direction bidirectional\n```\n\n## Autonomous Boot (Native Linux, not WSL)\nOne-command host bootstrap (services + autopilot):\n```bash\nsudo scripts/autonomous_bootstrap.sh full --install-deps\n```\n\nAutopilot now deploys a full control-plane supervisor service (stack mode):\n- starts `model_worker`, `portal_gateway`, `mcp_watchdog`, `gws_bridge`\n- writes persistent runtime state under `/var/lib/lam-runtime/<repo>/...`\n- uses `/etc/default/lam-control-plane` as runtime env file\n- applies boot integrity gate (`lam-boot-integrity.service`) before control plane start\n\nSecurity protocol references:\n  - `infra/security/GATEWAY_SECURITY_PROTOCOL_V2.md`\n  - `infra/security/FAILSAFE_LIFESUPPORT_PROFILE_V1.md`\n  - `infra/security/POWER_SYNC_AND_QUIET_PROTOCOL_V1.md`\n  - `infra/security/AGENT_OPERATOR_INSTRUCTIONS.md`\n  - `infra/security/LICENSE_COMPLIANCE_PROTOCOL_V1.md`\n  - `infra/security/ROLE_ORCHESTRATION_PROTOCOL_V1.md`\n  - `infra/security/ROOTKEY_HARDWARE_GATE_PROTOCOL_V1.md`\n  - `infra/governance/IO_SPECTRAL_ANALYSIS_PROTOCOL_V1.md`\n  - `infra/governance/AUTOPILOT_GOVERNANCE_EXPANSION_PROTOCOL_V1.md`\n  - `infra/governance/MEDIA_STREAM_SYNC_PROTOCOL_V1.md`\n\nRootKey 2FA hardening:\n- automatic challenge rotation (`LAM_ROOTKEY_CHALLENGE_AUTO_ROTATE_SEC`)\n- fail2ban threshold on repeated `challenge_response_mismatch`:\n  - `LAM_ROOTKEY_FAIL_THRESHOLD`\n  - `LAM_ROOTKEY_BAN_SEC`\n\nRealtime circulation crypto mirror:\n- signed inversion bundle sidecars (`.sig.json`)\n- HMAC verify on ingest in required mode:\n  - `LAM_CIRCULATION_REQUIRE_CRYPTO_MIRROR`\n  - primary: `LAM_CIRCULATION_HMAC_KEY` or `LAM_CIRCULATION_HMAC_KEY_FILE`\n  - secondary (grace window): `LAM_CIRCULATION_HMAC_SECONDARY_KEY` or `LAM_CIRCULATION_HMAC_SECONDARY_KEY_FILE`\n  - rotation state: `LAM_CIRCULATION_HMAC_ROTATION_STATE_FILE`\n  - grace control: `LAM_CIRCULATION_HMAC_SECONDARY_GRACE_SEC` or `LAM_CIRCULATION_HMAC_SECONDARY_VALID_UNTIL_EPOCH`\n  - `LAM_CIRCULATION_HMAC_KEY_ID`\n- scheduled key rotation daemon:\n  - `scripts/lam_hmac_rotation_daemon.sh --daemon --interval-sec 86400`\n  - `scripts/lam_hmac_rotate.sh rotate|status|clear-secondary`\n- Governance control pack:\n  - `infra/governance/MASTER_PLAN_LIVE_CORRECTION_V0_1.md`\n  - `infra/governance/AGENT_CONTRACT_TEMPLATE.md`\n  - `infra/governance/STRUCTURAL_SYSTEMS_MAP_V1.md`\n  - `infra/governance/STRUCTURAL_SYSTEMS_CONTRACTS_V1.md`\n  - `infra/governance/EXTERNAL_FEEDBACK_GATEWAY_PROTOCOL_V1.md`\n  - `infra/governance/DIRECTIVE_VECTOR_MAP.md`\n  - `infra/governance/EMERGENCY_RUNBOOK.md`\n  - `infra/governance/CROSS_ORG_DATA_CIRCULATION_PROTOCOL.md`\n  - `infra/governance/GATEWAY_CIRCULATION_POLICY_TEMPLATE.json`\n  - `infra/governance/GLOBAL_REALTIME_CIRCULATION_PROTOCOL_V1.md`\n  - `infra/governance/FAILSAFE_GOVERNANCE_CONTRACT_V1.md`\n- System services:\n  - `lam-boot-integrity.service`\n  - `lam-security-telemetry.service`\n  - `lam-power-fabric.service`\n  - `lam-hmac-rotation.service` (early-boot crypto key rotation)\n  - `lam-control-plane.service`\n\nFail-safe lifecycle guard:\n- daemon: `scripts/lam_failsafe_guard.sh --interval-sec 8`\n- one-shot: `scripts/lam_failsafe_guard.sh --once`\n- force activation: create `LAM_HUB_ROOT/failsafe_force.flag`\n- state: `LAM_HUB_ROOT/failsafe_guard_state.json`\n\nBare-metal image path (BIOS/UEFI boot flow):\n```bash\nsudo scripts/build_autonomous_os_image.sh --output /tmp/lam-autonomous.img --size-gb 16\n```\n\nDetails:\n- `infra/autonomous_os/README.md`\n\n## Hardened Boot Pipeline (UEFI + SecureBoot + Recovery/OTA)\nHardened image build:\n```bash\nsudo scripts/build_autonomous_os_image_hardened.sh \\\n  --output /tmp/lam-autonomous-hardened.img \\\n  --size-gb 24\n```\n\nOptional Secure Boot signing:\n```bash\nsudo scripts/build_autonomous_os_image_hardened.sh \\\n  --output /tmp/lam-autonomous-hardened.img \\\n  --secure-boot-sign \\\n  --sb-key /path/to/db.key \\\n  --sb-cert /path/to/db.crt\n```\n\nOTA bundle:\n```bash\nscripts/prepare_ota_bundle.sh --image /tmp/lam-autonomous-hardened.img --channel stable\n```\n\nRecovery switch:\n```bash\nsudo scripts/recovery_switch.sh request\nsudo scripts/recovery_switch.sh reboot\n```\n\nDetails:\n- `infra/autonomous_os/HARDENED_IMAGE_PIPELINE.md`\n\n## Run tests\n```bash\n./.venv/bin/python -m pytest -q\n```\n\n### Split Modes\n```bash\nscripts/test_entrypoint.sh --unit-only\nscripts/test_entrypoint.sh --integration\nscripts/test_entrypoint.sh --ci\nscripts/test_entrypoint.sh --cascade-quick\nscripts/test_entrypoint.sh --cascade-standard\nscripts/test_entrypoint.sh --cascade-full\nscripts/test_entrypoint.sh --microtick-quick\nscripts/test_entrypoint.sh --microtick-standard\nscripts/test_entrypoint.sh --microtick-full\nscripts/test_entrypoint.sh --bg-start\nscripts/test_entrypoint.sh --bg-status\nscripts/test_entrypoint.sh --bg-errors\nscripts/test_entrypoint.sh --bg-stop\nscripts/test_entrypoint.sh --isolation-status\n```\n\nNotes:\n- Integration tests that require submodule agent sources are marked `submodule_required`.\n- If submodules are absent, those tests are skipped with explicit reason.\n- Cascade modes execute stages/phases sequentially and stop on first failure.\n- Cascade artifacts: `.gateway/test_runs/<run_id>/summary.json` and per-phase logs.\n- Microtick modes run tiny test batches (mostly 1 file per tick) with timeout and resume state.\n- Microtick isolation orchestration:\n  - tests execute in isolated workspace copy: `.gateway/test_zones/<run_id>/workspace`\n  - active test scopes are file-locked (`chmod a-w`) during tick execution\n  - completed zones are logged for post-test debugging\n- Microtick artifacts:\n  - `.gateway/test_runs/<run_id>/microtick_progress.tsv`\n  - `.gateway/test_runs/<run_id>/microtick_summary.json`\n  - `.gateway/test_zones/<run_id>/locks.tsv`\n  - `.gateway/test_zones/<run_id>/zones.tsv`\n- Controls:\n  - `LAM_TEST_TICK_TIMEOUT_SEC` (default `120`)\n  - `LAM_TEST_MAX_TICKS` (default `0`, unlimited)\n  - `LAM_TEST_RESUME=1` (default, skip already recorded ticks)\n  - `LAM_TEST_ISOLATE_WORKSPACE=1` (default)\n  - `LAM_TEST_FS_LOCK_ENABLED=1` (default)\n\nWindows cascade launcher:\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/test_phase_cascade.ps1 -Mode standard\n```\nWindows microtick launcher:\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/test_microtick_cascade.ps1 -Mode standard -MaxTicks 10\n```\n\nQuiet background testing (non-blocking):\n- starts daemon that executes microticks in the background\n- records realtime failures to `.gateway/test_runs/background/errors.jsonl`\n- keeps your terminal free for live debugging work\n\nLinux/WSL:\n```bash\nscripts/test_background_daemon.sh start --mode standard\nscripts/test_background_daemon.sh status\nscripts/test_background_daemon.sh errors --lines 40\nscripts/test_background_daemon.sh watch\nscripts/test_background_daemon.sh stop\n```\n\nWindows wrapper:\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/windows/test_background_daemon.ps1 -Action start -Mode standard\n```\n\n## Current Test Scale\n- Collected tests: `160`\n- Typical local result (unit-only local profile): `134 passed, 26 deselected`\n\n## CI Gates\n- `quality`: `ruff` + `mypy` + ecosystem deadloop guard (`--ecosystem`) + safety/resource stack validation + growth snapshot + bounded growth backlog generation + live activation policy report\n- `quality`: `ruff` + `mypy` + ecosystem deadloop guard (`--ecosystem`) + safety/resource stack validation + growth snapshot + bounded growth backlog generation + live activation policy report + phase E drift report\n- `unit-runtime-cov`: unit tests with runtime-only coverage gate (`>=65%`)\n- `integration`: integration/route suites (submodule-dependent tests are skipped when sources are absent)\n\n## Growth Data\n- Route-level growth telemetry snapshot:\n  - `memory/FRONT/TEST_MATRIX_GROWTH_SNAPSHOT.json`\n- Bounded growth backlog artifact:\n  - `memory/FRONT/TEST_MATRIX_GROWTH_BACKLOG.md`\n\n## Ecosystem Governance\n- Protocol expansion strategy:\n  - `memory/FRONT/ECOSYSTEM_PROTOCOL_EXPANSION_STRATEGY_2026-02-17.md`\n- Safety/resource stack (machine-readable):\n  - `memory/FRONT/ECOSYSTEM_SAFETY_RESOURCE_STACK_V1.json`\n- Ecosystem telemetry baseline:\n  - `memory/FRONT/ECOSYSTEM_TELEMETRY_SNAPSHOT_2026-02-17.json`\n  - `memory/FRONT/ECOSYSTEM_TELEMETRY_SNAPSHOT_2026-02-17.md`\n- Live activation policy report:\n  - `memory/FRONT/LIVE_ACTIVATION_POLICY_REPORT_2026-02-17.json`\n  - `memory/FRONT/LIVE_ACTIVATION_POLICY_REPORT_2026-02-17.md`\n- Phase E drift report:\n  - `memory/FRONT/PHASE_E_DRIFT_REPORT_2026-02-17.json`\n  - `memory/FRONT/PHASE_E_DRIFT_REPORT_2026-02-17.md`\n\n## Strategy Artifacts\n- WB-01 deep analysis and evolution plan:\n  - `WB01_LAM_TEST_AGENT_DEEP_ANALYSIS_AND_STRATEGY_2026-02-17.md`\n- Mirror gap strategy for discovering missing future-architecture tests:\n  - `TEST_GAP_MIRROR_STRATEGY_2026-02-17.md`\n- Route mirror matrix and compatibility report:\n  - `TEST_MIRROR_MATRIX.md`\n  - `COMPATIBILITY_MATRIX_REPORT_2026-02-17.md`\n",
  "bytes": 23418,
  "sha": "de5521282bd49b612290b835ad21ade75421b7315e188d2a8872c6e8d55ac46e",
  "repo_slug": "architit/lam_test_agent",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_architit_lam_test_agent_762d08c4/readme"
}