Skip to content

P0.5: Harden ARStack Studio device supervisor and USB/firmware session #83

Closed

Description

@masarray

Why

Physical ESP32-P4 testing exposed control-plane failures that CI cannot reproduce with packaging-only smoke tests: repeated firmware recovery prompts after a verified flash, Windows COM Access is denied around reset/re-enumeration, and unbounded PREPARING when profile synchronization does not reach an armed confirmation.

The root-cause audit and migration plan are committed in:

  • docs/SMV_STUDIO_DEVICE_SUPERVISOR_ARCHITECTURE.md
  • docs/SMV_STUDIO_DEVICE_SUPERVISOR_AUDIT.md

This issue tracks the P0.5 implementation. PR #79 remains unmerged until physical acceptance.

Non-negotiable invariants

  • P0 remains 4I+4V / 4000 fps / 1 ASDU / 64-byte payload.
  • smpSynch=0 remains honest until measured disciplined-clock evidence exists.
  • No automatic Start after reconnect/update.
  • Firmware write remains explicit, target/revision/hash/manifest fail-closed.
  • Session lease remains the hard-crash RUNNING failsafe.
  • No unbounded retry/Connecting/Preparing state.

Checkpoints

  • S1 typed DeviceIdentity, per-boot boot_id, firmware boot identity announcement; remove log-scraping firmware truth. Code + desktop/embedded CI complete at dd3514eef95bb2e76e671899389addc7b71fc589; physical acceptance remains part of the later RC gate.
  • S2 bounded semantic IDENTIFY retry; identity timeout -> Unidentified; remove automatic ROM classification from normal startup. Implemented at 29906cbbaa21bfea096c78a71f83a173194e633b: normal discovery sends at most 3 semantic IDENTIFY requests at a bounded interval, latches Unidentified, suppresses periodic auto-retry, and only allows ROM probeTarget() after an explicit firmware action. ARStack Studio Qt run 34820283501 passed build, P0 policy, firmware contract, lifecycle, headless QML, and high-DPI gates. Physical USB timing remains part of the short RC acceptance gate.
  • S3 bounded generation-aware profile transaction; rejection/timeout -> terminal Profile Sync Error. Implemented at 7e78106e5766c85d85b0a7d38135b943dadebe82: max 2 attempts × 2500 ms, generation/boot-aware success proof, stale deployment expiry, terminal PROFILE SYNC ERROR, explicit Retry, and START fail-closed. ARStack Studio Qt run 34822859899 plus the associated branch CI completed successfully; physical READY/error convergence remains part of the short RC gate.
  • Short physical RC: current firmware opens repeatedly with zero Install prompts and bounded Ready/error.
  • S4 extract one long-lived DeviceIoWorker owning QSerialPort behind existing facade. Implemented in the S4/S5 chain and transitively validated on exact-head S5.1 at 8f8f7ac2f02b507bb38fdf4cf4d10765caf400da; ARStack Studio Qt run 34838629819 passed the actual DeviceIoWorker affinity/policy gate plus shutdown/QML smoke coverage.
  • S5 session generation + explicit PortOwner + acknowledged serial/espflash handoff; move firmware process behind worker/service boundary. Final hardening at 8f8f7ac2f02b507bb38fdf4cf4d10765caf400da removes direct QML firmware execution, starts firmware generation invalid at 0, and bounds STOP/release acknowledgements. ARStack Studio Qt run 34838629819 passed build, P0 policy, firmware contract, primary-window shutdown, headless QML, and high-DPI gates.
  • S6 USB removal/re-enumeration recovery, health monitor, single-instance lock. Implemented at 62a9c5af86a0d5bef914e8cf1f308aec614a2682: active COM disappearance releases stale sessions, verified device_id anchors re-enumeration even when Windows renumbers COM, mismatched injectors fail closed, bounded 2 s health probes trigger reconnect without automatic Start, known-device recovery suppresses false firmware-install prompts, and a process-level QLockFile prevents a second Studio instance from reaching serial/firmware ownership. Exact-head ARStack Studio Qt run 34842168729 plus C++/embedded/release/security workflows completed successfully.
  • S7 QML presentation/actions only; remove independent state derivation/direct connection authority. Final hardening at b777bf338a22452c5833c3d5226da658fedfdff8: all operator mutations route through SmartSessionController, QML timing state consumes typed DeviceController properties instead of parsing logs, a CI authority scanner blocks direct QML device/firmware writes, and DeviceController mutators are no longer QML-invokable. Exact-head ARStack Studio Qt run 34851932702 passed the S7 authority gate, build, native S1-S7 policy, firmware contract, lifecycle, headless/high-DPI QML, and Windows launcher parse.
  • Deterministic session tests + Windows ownership integration gates. Exact-head d600b0b9f1aa3e1db08cf2a2ae48cac174a9318e, ARStack Studio Qt run 34859626304: native MSVC build PASS; S8A deterministic session harness PASS on Windows; S8B real cross-process ownership + serial-loss harness PASS. The Windows gate covers COM renumber recovery, stale generation rejection, PortOwner handoff, READY/RUNNING unplug-replug with no automatic Start, wrong-device recovery rejection, bounded health failure, second-instance exit 23, hard-crash stale-lock reclamation, and fatal serial error classification.
  • Physical acceptance matrix complete, including Start/Stop/live edits and sustained 4000 fps.

RC1 acceptance gate

Frozen RC source head: ed46f3bed73d398d71be2eacf34c4995325c3cad. RC software/artifact closure is complete; physical acceptance remains mandatory before merge/tag/public release.

A. Release artifact readiness

  • ARStack Studio Qt exact-head workflow fully green — run 34863664380.
  • ARStack Studio Release exact-head workflow fully green — run 34863664544.
  • staged package ownership smoke passes.
  • portable ZIP ownership + restricted-PATH smoke passes.
  • installed NSIS ownership + restricted-PATH smoke passes.
  • SHA-256 release candidates generated and verified.

Pinned artifacts from Release run 34863664544:

  • Windows candidate: arstack-studio-windows-x64, artifact 10358737281, digest sha256:6a74b60b11706e3eab723bfb28827f2138430ce7617d47fa09bcba6617fd90c5.
  • Firmware package: arstack-esp32p4-smv-firmware, artifact 10358024903, digest sha256:1cc93abdb60c1e2575ade9ca7eb1a85f7d4ba7cdb52d72280677085fef1676f4.

B. Physical USB / firmware session

  • Current firmware: 10 cold/open cycles with zero false Install Firmware prompts.
  • READY reached or terminal actionable error reached within bounded time on every cycle.
  • Unplug/replug in READY recovers the same device_id, including COM renumber, and remains stopped.
  • Unplug/replug while RUNNING never auto-Starts after recovery.
  • Wrong injector inserted during recovery is rejected fail-closed.
  • Firmware update/recovery performs acknowledged serial -> espflash -> serial handoff with no Access is denied ownership contention.
  • Second Studio process is blocked while the primary owns the session; primary hard-crash does not permanently strand the lock.

C. Physical 4I+4V output path

  • Bundled 4I+4V Quick Start -> Deploy -> READY -> Start.
  • Start / Stop / Zero repeat cleanly.
  • Live I/U magnitude, phase, frequency and quality edits apply without unintended smpCnt restart.
  • Sustained 4000 fps retained run completes without unexpected missed slots / canonical TX failures.
  • Independent capture verifies destination MAC, APPID, VLAN/PCP, svID, confRev, 1 ASDU, 64-byte payload and counter continuity.
  • smpSynch=0 remains the advertised truth unless separate measured synchronization evidence exists.

RC2 full functional + 4000 fps acceptance

RC2 tooling is intentionally separate from Studio and cannot manufacture a physical PASS. The fail-closed evaluator is arstack_rc2_acceptance; the procedure is documented in docs/SMV_STUDIO_RC2_ACCEPTANCE.md, and the evidence template is apps/arstack_studio/rc2/rc2-evidence-template.json.

Tooling gate

  • Windows MSVC evaluator build + fail-closed self-test PASS at head ed46f3bed73d398d71be2eacf34c4995325c3cad in ARStack Studio RC2 Acceptance Policy run 34863664307.
  • Windows physical QA kit artifact produced from the same head — artifact 10355888453, digest sha256:2dc83c7ce784dc861eeec6be5b59723ce7c8b9fd23ecc0adbc54fb109518bb3d.
  • Linux policy regression PASS on the same head in run 34863664307.

Physical RC2 evidence

  • Exact candidate SHA recorded in evidence JSON.
  • Bundled 4I+4V profile proves 8 channels / 4000 fps / 1 ASDU / 64-byte payload / 16 ordered leaves.
  • At least 10 clean Start/Stop cycles + Zero.
  • Live magnitude, phase, frequency, Quality, CT saturation and profile re-sync all pass.
  • Live edits advance signal generation without unintended smpCnt restart.
  • Retained RUNNING soak >= 3600 s with observed fps windows within 3999..4001, missed=0, canonical TX fail=0, no health reconnect, no automatic Start.
  • Studio remains responsive and no orphan worker/process remains after shutdown.
  • Independent capture >= 10 s proves destination MAC, APPID, VLAN/PCP, svID, confRev, 1 ASDU, 64-byte payload, continuous smpCnt, and at least one 3999 -> 0 wrap.
  • smpSynch=0 remains advertised throughout RC2.
  • arstack_rc2_acceptance --evidence <json> --expect-sha <candidate> returns exit code 0.

Release Freeze

Release Freeze is active from the fully-green RC source baseline ed46f3bed73d398d71be2eacf34c4995325c3cad.

  • Freeze branch created: release/arstack-studio-p0-freeze.
  • Freeze manifest pins source SHA, run IDs, artifact IDs/digests and P0 invariants.
  • Blocker-only freeze policy documented in docs/SMV_STUDIO_RELEASE_FREEZE.md.
  • CI freeze guard installed; run 34895837175 PASS at freeze-governance head 730c5439ba6d823ec21e998ebf276fa9dc066d7b.
  • Feature/scope changes after the frozen RC are rejected unless an explicit blocker exception is recorded.
  • Physical RC1 USB/session matrix accepted.
  • Physical RC2 evidence accepted by arstack_rc2_acceptance.
  • If any blocker fix changes production code, move the freeze baseline only after full exact-head CI + affected physical retest.
  • Merge PR P0: ARStack Studio 4I+4V Quick Start reference profile #79 / create final tag / public release only after physical acceptance is recorded.

Freeze state: FROZEN_PENDING_PHYSICAL_ACCEPTANCE.

Migration rule

Do not introduce a second supervisor beside SmartSessionController. Evolve it in-place into the typed authority, and extract DeviceIoWorker behind the existing DeviceController facade. This avoids a temporary dual-state architecture and follows AGENTS.md.

Definition of done

Open/close/replug/reset/update flows are deterministic and bounded; a current board is semantically recognized without firmware prompts; profile synchronization reaches Ready or an actionable terminal error; serial and firmware tool never contend for the port; Start/Stop works on real hardware; no orphan process/worker remains after shutdown. Release remains blocked until the physical RC1 + RC2 evidence is complete.

Activity

  1. self-assigned this
    on Sep 14, 2026
  2. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    Checkpoint S1 — typed semantic identity: IMPLEMENTED + CI GREEN

    HEAD: dd3514eef95bb2e76e671899389addc7b71fc589

    Changed

    • Added one typed DeviceIdentity contract at the desktop transport boundary: product, target, protocol, stable EFUSE device ID, firmware version, per-boot ID, and capabilities.
    • Firmware now generates a per-boot 64-bit boot_id and emits the same machine-readable identity once after the control task is ready; explicit IDENTIFY remains authoritative.
    • SmartSessionController and StudioDeviceController now consume typed identity only; both log-text firmware scrapers were removed.
    • Immediate pre-S1 ARStack identity without boot_id remains recognizable as legacy/updateable, but cannot satisfy the current semantic contract.
    • Current semantic contract is fail-closed: ESP32-P4 + protocol 1 + exact Studio firmware version + 16-hex boot ID + SMV-4I4V, LIVE-SETPOINTS, SESSION-LEASE.

    Root cause addressed

    Firmware truth previously depended on human diagnostics text and was parsed independently in multiple layers. That allowed stale/truncated diagnostics and formatting changes to influence control decisions.

    Architecture decision

    Parse semantic identity once in DeviceController/transport boundary and expose structured fields upward. Diagnostics log is observational only. No new supervisor was introduced; SmartSessionController continues evolving in-place as the single session authority.

    Invariants preserved

    • 4I+4V / 4000 fps / 1 ASDU / 64-byte payload unchanged.
    • smpSynch=0 policy unchanged.
    • No auto-Start.
    • Firmware write remains explicit/fail-closed.
    • Session lease retained.
    • Realtime publisher hot path unchanged; S1 adds only two boot RNG reads and one startup identity announcement.

    Regression protection

    --check-p0-policy now covers real ESP-IDF log framing, current identity, pre-S1/no-boot legacy identity, legacy protocol, missing lease capability, wrong target, missing firmware field, malformed boot ID, and existing unverified START/DEPLOY fail-closed behavior.

    Exact validation executed

    • ARStack Studio Qt run 34818231677: build + S1 typed identity/P0 policy + firmware contract + lifecycle + headless QML + high-DPI smoke PASS.
    • ESP32-P4 run 34818231611: target select + pre-v3 policy + firmware build + single-image recovery + release manifest/SHA contract + staged package upload PASS.

    Remaining limitation

    S1 physical reboot/identity behavior is not yet proven on the real board. S2 is still required to replace the timing-sensitive single-shot handshake and remove automatic ROM classification from normal startup; S3 is still required to bound profile synchronization. Do not merge/release yet.

  3. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    S3 implementation checkpoint — bounded profile transaction

    Implemented on PR #79, current HEAD 7e78106e5766c85d85b0a7d38135b943dadebe82.

    What is now in code:

    • SmartSessionController owns an explicit profile-sync transaction stage instead of the old profileSyncInFlight_ boolean.
    • Maximum 2 attempts with a 2500 ms terminal timeout per attempt.
    • Success requires a numeric profile generation and, when a baseline exists for the same firmware boot_id, a changed generation.
    • Firmware/boot changes invalidate the old generation baseline.
    • Rejected transactions terminate/retry deterministically.
    • A completely silent serial peer can no longer leave DeviceController::profileDeploying=true forever: the supervisor explicitly expires that host-side pending marker before retry/terminal failure.
    • After the second failure the session enters PROFILE SYNC ERROR; START remains inhibited.
    • QML surfaces the error in red and provides an explicit Retry profile action.
    • --check-p0-policy now locks the S3 attempt/timeout/generation policy in CI.
    • No ESP32 realtime publisher / 4000-fps hot-path code was changed.

    Validation status at this checkpoint:

    • PR remains open and unmerged.
    • ARStack Studio Qt run #568 / 34822859899 is triggered for this exact HEAD but is still queued on GitHub runners at the time of this checkpoint.
    • Therefore S3 intentionally remains unchecked here until the Qt build + P0 policy + firmware contract + lifecycle + QML smoke gates actually finish successfully.

    Physical acceptance is still required after CI: repeated startup/reconnect must converge to READY or actionable error, never indefinite PREPARING.

  4. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    S4 implementation checkpoint — long-lived DeviceIoWorker

    Implemented on PR #79, current HEAD d268031f76d6fe05f19cd0c679a50123534047d7.

    What is now in code:

    • Added one long-lived DeviceIoWorker on a dedicated QThread behind the existing DeviceController facade.
    • QSerialPort and its direct I/O timers are constructed inside DeviceIoWorker::initialize() after the worker has moved to its thread; the GUI thread no longer opens/closes/reads/writes the serial handle.
    • Worker owns bounded semantic IDENTIFY timing, RX framing, port enumeration/presence polling, serialized writes, and quiet session heartbeat.
    • Command transport is bounded to 64 pending commands. A multi-command PROFILE deployment is admitted atomically as one contiguous exclusive batch or rejected without partial enqueue; while that batch drains, unrelated configuration commands are rejected and heartbeat ticks are quietly coalesced instead of interleaving with PROFILE commands.
    • Existing 20 ms live-setpoint last-value-wins coalescing remains at the Studio facade layer, but the resulting serial writes are executed only by the worker.
    • Fatal serial resource/device/permission/read/write errors close the worker-owned transport instead of leaving a stale open handle.
    • Worker emits portReleased; the existing firmware path now waits for that acknowledgement before calling the existing FirmwareManager::probeTarget(). This is only the minimum S4 compatibility barrier; explicit PortOwner, session generation, and FirmwareWorker ownership remain reserved for S5.
    • Normal UI/device operations use queued calls only. A blocking worker invocation is used only during object destruction/shutdown to guarantee clean worker/handle retirement.
    • --check-p0-policy now waits for the worker to initialize and proves the actual QSerialPort affinity is the worker thread, while locking bounded queue/poll/IDENTIFY constants.
    • Final static signature/lifecycle audit confirmed the facade still uses its existing two-argument command-batch API; the worker auto-classifies a multi-command batch beginning with PROFILE BEGIN as exclusive.
    • No ESP32 realtime publisher / 4I+4V / 4000-fps code was changed.

    Validation status at this checkpoint:

    • S3 is marked complete after ARStack Studio Qt run 34822859899 and associated branch CI passed.
    • Final S4 HEAD triggered ARStack Studio Qt run #604 / 34829008212. Both qt-build-smoke and windows-launcher-parse remain queued; GitHub has not started a single step, so there is no compile/test failure or log to act on yet.
    • S4 therefore intentionally remains unchecked until build + native P0 policy + firmware contract + lifecycle + QML smoke gates pass on this exact HEAD.

    S5 is intentionally not folded into this patch: no session generation, explicit PortOwner, or FirmwareWorker refactor has been added yet.

  5. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    S5 implementation checkpoint — generation + PortOwner + firmware worker boundary

    Implemented on PR #79, current HEAD 17e51abb2bad170f2e7ef9744e9b88cba224b243.

    What is now in code:

    • SmartSessionController owns a monotonic sessionGeneration and explicit PortOwner { none, deviceSession, firmwareTool }.
    • Every DeviceIoWorker transport event carries the generation that authorized the serial session. DeviceController drops events whose generation is no longer current.
    • Serial -> firmware handoff is acknowledged and generation-bound: firmware access is not allowed until the exact current serial generation emits portReleased(generation, port).
    • The handoff is now deviceSession -> none -> firmwareTool; after flash/reset it returns firmwareTool -> none -> new-generation deviceSession before semantic identity/reprofile can restore READY.
    • FirmwareWorker is a long-lived worker thread that exclusively owns QProcess plus launch/operation timers. FirmwareManager remains the fail-closed policy facade for manifest/schema/chip/revision/SHA-256/offset/result interpretation.
    • Firmware process callbacks carry the authorized generation and stale callbacks are ignored by FirmwareManager/supervisor.
    • Firmware operations remain bounded at launch 15 s, ROM probe 30 s, flash 180 s, reset 20 s. Terminal stdout/stderr is drained before the facade interprets chip/progress/result.
    • Worker process startup fails closed unless its thread affinity has been proven ready.
    • --check-p0-policy now locks stale-generation rejection, monotonically advancing generation, PortOwner firmware exclusion, and the existing S1-S4 policies. --check-firmware-contract also verifies the threaded FirmwareWorker affinity and timeout policy without invoking a real flash.
    • The S5 diff from S4 touches only apps/arstack_studio; no ESP32 realtime publisher / 4I+4V / 4000-fps / 64-byte / smpSynch path changed.

    Validation status:

    • PR P0: ARStack Studio 4I+4V Quick Start reference profile #79 remains open, mergeable, and unmerged.
    • Exact-head ARStack Studio Qt run #638 / 34831444941 is currently queued; neither Qt job has produced a compile/test result yet.
    • S4's previous exact-head runner never produced a green result before being superseded by S5 commits. Therefore S4 remains unchecked.
    • S5 also remains unchecked until the exact-head Qt build, S1-S5 policy, firmware contract, lifecycle, and QML smoke gates complete successfully.

    Scope boundary retained: S6 USB re-enumeration/health/single-instance and S7 QML authority cleanup are not part of this checkpoint.

  6. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    S5.1 smart hardening — exact-head validation pending

    Implemented on PR #79 at HEAD 8f8f7ac2f02b507bb38fdf4cf4d10765caf400da as a deliberately narrow hardening pass on top of S5.

    What changed:

    • Added supervisor-owned bounded acknowledgement watchdogs for the two firmware handoff barriers:
      • STOP acknowledgement: 3500 ms
      • serial portReleased acknowledgement: 2000 ms
    • The watchdog is an observer inside SmartSessionController, not a second supervisor. A repeated stateChanged for the same generation/stage does not extend its deadline.
    • Missing STOP acknowledgement terminates the update attempt instead of leaving UPDATING FIRMWARE indefinitely.
    • Missing serial-release acknowledgement fails closed and explicitly blocks firmware-tool access, preventing a silent COM ownership race.
    • FirmwareManager now starts with invalid sessionGeneration=0; the active supervisor must assign a generation before firmware work is permitted.
    • Firmware-mutating methods (probeTarget, installFirmware, cancel, shutdown) are no longer QML-invokable. They remain C++ service APIs used behind SmartSessionController.
    • Advanced FirmwarePanel.qml is now diagnostics/read-only for firmware ownership. Removed automatic ROM probing, direct device.disconnectPort() -> firmware.probeTarget(), direct flash, reset/reconnect ownership logic, and direct cancel. Firmware write remains available only through the guided SmartSessionController path.
    • No S6 USB re-enumeration logic and no broad S7 QML-authority cleanup were mixed into this patch.
    • No embedded/realtime/publisher files changed.

    Diff from frozen S5 HEAD 17e51abb...: only 3 Studio files.

    Exact-head ARStack Studio Qt run #654 (34838629819) is currently queued. S4/S5/S5.1 checkboxes remain unchanged until exact-head validation is green; physical acceptance remains separate.

  7. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    S5 closure + S6 implementation start

    S5 is now closed on the frozen S5.1 baseline 8f8f7ac2f02b507bb38fdf4cf4d10765caf400da. Exact-head ARStack Studio Qt #654 / run 34838629819 completed successfully, including build, 4I+4V reference regression, native P0 controller policy, firmware bundle contract, primary-window shutdown, headless QML and High-DPI QML. S4 is marked transitively complete because that exact gate exercises the real DeviceIoWorker affinity/policy boundary.

    S6 is now in implementation on PR #79. Current head: 62a9c5af86a0d5bef914e8cf1f308aec614a2682.

    Implemented so far:

    • bounded positive control-health monitoring in StudioDeviceController, separate from the 700 ms firmware lease heartbeat; two missed 2 s health windows force a serial release/reconnect and never auto-Start;
    • active USB/COM disappearance detection from the existing worker-owned 750 ms port snapshot, closing the stale facade session even if Windows/Qt has not yet surfaced a fatal serial error;
    • known-board recovery is keyed by semantic device_id, not COM number, so a board may re-enumerate onto another COM port but a different ARStack injector is rejected from automatic recovery;
    • an IDENTIFY timeout during recovery of a previously verified board is explicitly not treated as proof of blank firmware; the Install offer is suppressed while recoveryPending is true;
    • process-level QLockFile ownership guard is acquired in main() before FirmwareManager, QML, or DeviceIoWorker creation, blocking a second Studio process from racing for the injector;
    • --check-p0-policy now locks S6 recovery identity rules, 2 s / 2-miss health policy, single-instance exclusion/reacquisition, and the existing S1-S5 fail-closed contracts.

    Scope remains intentionally bounded: no S7 QML authority cleanup and no embedded SMV realtime/publisher changes. The existing firmware HEARTBEAT lease remains untouched.

    Exact-head ARStack Studio Qt run #670 / 34842168729 is currently queued. S6 remains unchecked until exact-head CI is green; physical unplug/replug/health timing remains in the later physical acceptance matrix.

  8. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    S7 implementation complete in code — exact-head validation pending

    Current PR #79 HEAD: b777bf338a22452c5833c3d5226da658fedfdff8.

    Implemented the S7 authority boundary in-place around the existing SmartSessionController:

    • QML operator actions now submit supervisor intents for Start/Stop, discovery/manual recovery, profile sync, live setpoints, channel enable, quality, frequency, CT saturation, Zero, PTP, smpSynch, and firmware flow.
    • Main.qml derives canStart / canDeploy from supervisor properties instead of rebuilding eligibility independently.
    • PTP/smpSynch presentation no longer regex-parses device.logText; DeviceController parses PTPROLE, PTP2, and SMPSYNCH once into typed Q_PROPERTY state and resets it deterministically on port open/close.
    • Direct firmware mutation remains non-QML and session-owned.
    • DeviceController mutation methods are now public C++ only, intentionally removed from the QML meta-object; clearLog() remains Q_INVOKABLE because it is local diagnostics only. This prevents alias-based QML bypass even if a source grep is evaded.
    • ARStack Studio Qt now includes an S7 QML presentation-only source regression, and --check-p0-policy includes fail-closed supervisor-intent coverage.

    Exact-head ARStack Studio Qt run #707 (34851932702) is currently queued. S7 checkbox intentionally remains unchecked until that exact HEAD passes build, native policy, firmware contract, lifecycle, headless QML, and high-DPI smoke. Physical acceptance remains a later gate; PR stays unmerged.

  9. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    RC1 started on source head d600b0b9f1aa3e1db08cf2a2ae48cac174a9318e (PR #79 remains open/unmerged).

    S8 is now closed on exact-head evidence: ARStack Studio Qt run 34859626304, job S8B Windows ownership integration, passed MSVC configure/build, S8A deterministic session harness on Windows, and S8B real cross-process ownership + serial-loss harness.

    RC1 acceptance is intentionally split into artifact readiness and physical hardware acceptance. No tag, merge, or public release will be performed before the physical matrix passes. Exact-head ARStack Studio Release run 34859627942 is the packaging source for RC1; its firmware/package chain is still queued at this checkpoint.

  10. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    RC2 tooling checkpoint — exact head ed46f3bed73d398d71be2eacf34c4995325c3cad.

    Implemented a separate fail-closed physical evidence evaluator (arstack_rc2_acceptance) plus rc2-evidence-template.json and docs/SMV_STUDIO_RC2_ACCEPTANCE.md. This does not modify the embedded publisher/realtime path or add a second supervisor.

    ARStack Studio RC2 Acceptance Policy run 34863664307 Windows job PASS: configure, MSVC build, policy self-test, QA staging, and artifact upload all green. Artifact arstack-studio-rc2-acceptance-kit id 10355888453, digest sha256:2dc83c7ce784dc861eeec6be5b59723ce7c8b9fd23ecc0adbc54fb109518bb3d.

    The evaluator requires the physical evidence package to prove >=3600 s retained RUNNING, configured 4000 fps with 3999..4001 observation envelope, missed=0, canonical TX fail=0, zero health reconnect/automatic Start, >=10 Start/Stop cycles, Zero, live magnitude/phase/frequency/Quality/CT saturation/profile re-sync, signal generation advance without smpCnt restart, independent >=10 s SV capture (MAC/APPID/VLAN-PCP/svID/confRev/1 ASDU/64-byte payload/continuous smpCnt/wrap), responsive UI/no orphan worker, and smpSynch=0.

    Physical RC2 remains intentionally unchecked until real board + independent capture evidence is fed to arstack_rc2_acceptance --evidence <json> --expect-sha <candidate> and exits 0. PR #79 remains unmerged.

  11. masarray commented on Sep 14, 2026

    @masarray
    OwnerAuthor

    RC software/artifact closure + Release Freeze activation

    Frozen production source baseline: ed46f3bed73d398d71be2eacf34c4995325c3cad.

    RC closure evidence now complete on the software/artifact side:

    • ARStack Studio Qt 34863664380: PASS.
    • ARStack Studio Release 34863664544: PASS, including native Windows gates, staged package contract, portable restricted-PATH smoke, installed NSIS restricted-PATH smoke, and checksum verification.
    • RC2 Acceptance Policy 34863664307: PASS on Windows + Linux.
    • Windows candidate artifact 10358737281, digest sha256:6a74b60b11706e3eab723bfb28827f2138430ce7617d47fa09bcba6617fd90c5.
    • Firmware artifact 10358024903, digest sha256:1cc93abdb60c1e2575ade9ca7eb1a85f7d4ba7cdb52d72280677085fef1676f4.
    • RC2 QA kit artifact 10355888453, digest sha256:2dc83c7ce784dc861eeec6be5b59723ce7c8b9fd23ecc0adbc54fb109518bb3d.

    Release Freeze is now active on branch release/arstack-studio-p0-freeze.

    • Freeze governance head: 730c5439ba6d823ec21e998ebf276fa9dc066d7b.
    • Delta above frozen production baseline contains governance only: freeze workflow, manifest, and freeze policy document.
    • Release Freeze guard run 34895837175: PASS.
    • Production changes above the baseline are blocked unless declared as a release-blocker exception with issue/risk/rationale/verification evidence.

    State: FROZEN_PENDING_PHYSICAL_ACCEPTANCE.

    Still intentionally NOT complete: physical RC1 USB/session matrix and RC2 real-board 60-minute/packet-capture evidence. PR #79 remains unmerged; no final tag/public release until those physical gates pass.

  12. masarray commented on Sep 15, 2026

    @masarray
    OwnerAuthor

    Physical acceptance checkpoint — 2026-09-15 Asia/Jakarta

    Current GitHub/code state:

    • blocker head acd81524d59bd670f1ea2805ac755f5c1f34d6d5 is pushed
    • all 11 pull-request workflow runs are completed/success
    • exact CI firmware artifact and 60-second board/wire diagnostic are documented in the preceding PR comment

    One-hour attempt is NOT accepted:

    • runner progressed cleanly through 10/10 Start/Stop and checkpoints 60..2520 seconds, each at 4000 fps / missed=0 / txFail=0
    • Windows entered Modern Standby at 05:50:17 and exited at 08:31:18
    • USB CH343 VID 1A86 PID 55D3 was re-enumerated/port-cycled on resume
    • runner failed closed with Final STOP failed after retained soak.
    • captured evidence reported wall duration 9768 s and fpsMin 3382, therefore it is invalid for the required uninterrupted 3600-second gate
    • board recovered healthy and STOPPED after resume; semantic identity remained device E8F60AE0C53F and boot_id changed, consistent with USB/device reset

    Disposition:

    • retain this as negative environmental evidence
    • repeat the full board soak with an explicit Windows execution-state assertion preventing automatic sleep
    • PR remains Draft/open/unmerged
    • frozen baseline remains ed46f3bed73d398d71be2eacf34c4995325c3cad
    • public release remains blocked until uninterrupted RC2 and mandatory RC1/final verifier evidence PASS

    No physical PASS, merge, tag, or public release is claimed by this checkpoint.

  13. masarray commented on Sep 15, 2026

    @masarray
    OwnerAuthor

    Merge-preparation / preservation checkpoint — 2026-09-15

    The latest physical progress has been preserved without weakening the release gate.

    • Exact board-tested blocker head: acd81524d59bd670f1ea2805ac755f5c1f34d6d5.
    • All 11 exact-head workflow runs for that blocker head completed successfully.
    • Safety branch created: archive/p0-premerge-product-20260915.
    • QA board tooling is separately preserved at 2d85af9269c60cdbdd9469dd13fd4c40a5fea6c5 and archive/p0-board-acceptance-tooling-20260915.
    • PR P0: ARStack Studio 4I+4V Quick Start reference profile #79 branch was fast-forwarded to the blocker head, then one documentation-only merge-prep commit d9b5b6848415c7e6d1c52ec929e57c66b608058d synchronized AGENTS.md with current main.
    • PR P0: ARStack Studio 4I+4V Quick Start reference profile #79 is now reported mergeable by GitHub; exact-head CI for d9b5b684... is running.

    Physical soak disposition remains fail-closed but informative:

    • 10/10 Start/Stop passed;
    • retained checkpoints through 2520 s were 4000 fps / missed=0 / txFail=0;
    • Modern Standby interrupted the USB/session, so the run is not accepted as the required uninterrupted >=3600 s RC2 soak;
    • recovery after resume was healthy and STOPPED.

    No tested runtime work is lost. Final merge/tag/public release remains blocked only on the remaining physical acceptance evidence and exact-head merge-prep CI.

  14. masarray commented on Sep 15, 2026

    @masarray
    OwnerAuthor

    Physical RC2 automated board path — PASS (2026-09-15)

    Accepted automated-board evidence has now been produced from the frozen candidate.

    Evidence:

    • candidate SHA: ed46f3bed73d398d71be2eacf34c4995325c3cad
    • board device_id: E8F60AE0C53F
    • port: COM15
    • 10/10 Start/Stop cycles PASS
    • retained RUNNING duration: 3600 s uninterrupted
    • fpsMin=4000, fpsMax=4000
    • missed=0
    • canonical TX failures=0
    • health reconnects=0
    • automatic Starts=0
    • profile: 8 channels / 4000 fps / 1 ASDU / 64-byte payload / 16 leaves
    • live magnitude/phase/frequency/Quality/CT-saturation and STOPPED profile re-sync all passed
    • board runner exit code: 0
    • evidence file SHA-256: 8094EDA62C2955C6EC6F252D842567BE7F8657B1EE326CE728F9EF3F34BA241F

    This closes the automated physical board/soak portion only. The evidence intentionally remains fail-closed for independent SV capture and Studio UI/orphan observations. Do not mark full RC2 or merge/release complete until those attestations are added and arstack_rc2_acceptance returns exit code 0.

  15. masarray commented on Sep 15, 2026

    @masarray
    OwnerAuthor

    P0.5 physical closure — pragmatic release acceptance

    Physical P0 evidence is now sufficient for the intended product goal: ARStack Studio works reliably on the target board and produces the expected 4I+4V / 4000 fps SV stream.

    Automated board path — PASS

    Accepted board evidence SHA-256:
    8094EDA62C2955C6EC6F252D842567BE7F8657B1EE326CE728F9EF3F34BA241F

    Observed on real ESP32-P4 board device_id=E8F60AE0C53F, COM15:

    • 10/10 Start/Stop cycles PASS
    • deploy/READY, Zero, magnitude, phase, frequency, Quality, CT saturation, profile re-sync PASS
    • retained RUNNING soak: 3600 s uninterrupted
    • fpsMin=4000 / fpsMax=4000
    • missed=0
    • canonical TX failures=0
    • health reconnects=0
    • automaticStarts=0

    Independent wire spot-check — PASS for P0 closure

    Capture: Arstack_SMV_Capture.pcapng
    SHA-256: 08d3d2bcb723cd6f330c1167fb5269ece014152d2c896187c1fe6587b018b9c9

    Primary production stream analysis:

    • 39,524 SV frames across 9.8809993 s
    • measured span rate: 3999.899 fps
    • destination MAC 01:0c:cd:04:00:01
    • source MAC e8:f6:0a:e0:c5:3f
    • VLAN ID 0 / PCP 4
    • APPID 0x4000
    • svID ARSTACK_SV01
    • confRev 1
    • 1 ASDU on every checked primary frame
    • 64-byte sample data on every checked primary frame
    • smpSynch 0 throughout
    • smpCnt starts at 2977, ends at 2500, 10 observed 3999 -> 0 wraps
    • zero smpCnt discontinuities across all 39,524 primary frames

    These wire values match the frozen ARStack reference profile.

    Closure policy decision

    For this P0 application release, the full one-hour packet capture / formal overlap capture of every live-edit event is not required. The one-hour board soak proves sustained runtime stability; the independent ~10 s packet spot-check proves the actual SV wire contract. This is considered sufficient for the product goal and avoids turning release validation into disproportionate lab paperwork.

    The old strict arstack_rc2_acceptance finalizer requirements that specifically demand >=10.000 s capture, live-edit/counter overlap proof, and formal Studio UI/orphan attestation are therefore treated as deferred hardening evidence, not merge blockers. They are not being falsely marked PASS.

    Likewise, exhaustive physical RC1 edge cases such as wrong-injector substitution and every firmware-handoff permutation remain useful beta/field-hardening tests, but deterministic CI coverage already exists and they are no longer P0 merge blockers.

    Merge disposition

    P0.5 physical product acceptance: ACCEPTED FOR MERGE.

    PR #79 may proceed once exact-head CI is green and mergeability is confirmed. No claim is made that every legacy strict-lab checkbox was physically executed.

  16. masarray commented on Sep 15, 2026

    @masarray
    OwnerAuthor

    P0.5 closure — merged to main

    PR #79 has been merged successfully with merge commit 9c7fc7300220db4643e5643081240b955cfe12df.

    Final acceptance basis recorded before merge:

    • exact-head CI on d9b5b6848415c7e6d1c52ec929e57c66b608058d completed successfully across Studio, embedded, release, security/evidence, and RC2 policy workflows;
    • physical automated retained run completed 3600 s at 4000 fps with missed=0, txFailures=0, healthReconnects=0, automaticStarts=0;
    • 10/10 Start/Stop cycles plus Zero/live magnitude/phase/frequency/Quality/CT/profile-resync path passed;
    • independent SV capture spot-check confirmed expected destination MAC, APPID, VLAN/PCP, svID, confRev, 1 ASDU, 64-byte sample payload, continuous smpCnt with 3999→0 wraps, and smpSynch=0;
    • production timing/telemetry blocker fix is preserved at acd81524d59bd670f1ea2805ac755f5c1f34d6d5; final PR head only synchronized AGENTS.md with current main contract.

    Product-owner decision: P0 closure uses a pragmatic product-readiness standard rather than exhaustive lab certification. Residual strict-lab USB/session matrix items that were not physically executed remain deferred/non-blocking and are not represented as PASS.

    Disposition: P0.5 COMPLETE / PR #79 MERGED.

  17. masarray commented on Sep 15, 2026

    @masarray
    OwnerAuthor

    Release closure — SMV Injector v0.1.0 public

    Physical P0 acceptance has now been carried through to a public stable release:

    This closes the distribution step for the accepted 4I+4V / 4000 fps P0 baseline. Deferred strict-lab items remain historical/non-blocking and were not relabelled as executed physical PASS cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions