Skip to content

feat(perception): arm the reactivity ring on set_perception_enabled - #340

Open
jeffcrouse wants to merge 1 commit into
mainfrom
fix-perception-coldstart
Open

feat(perception): arm the reactivity ring on set_perception_enabled#340
jeffcrouse wants to merge 1 commit into
mainfrom
fix-perception-coldstart

Conversation

@jeffcrouse

Copy link
Copy Markdown
Member

Summary

The reactivity ring only samples while "armed" (arm() sets an 8s window that due() gates push() on). Enabling perception flipped the master switch but did not arm, so the ring stayed cold until a later analyze/judge call — an intuitive "enable → wait → read once" sequence read an empty past window and returned insufficient_samples (reads like "the visual is static").

Fix

Arm on enable so the ring starts filling immediately; the wait after enabling now accumulates frames.

Verification

set_perception_enabled(true) → wait 2s → a single analyze_output(av) returns status:ok with ~35 samples (was insufficient_samples). Control-handler only, no new method → MCP parity unaffected. Full ctest 99/99.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QB6eSNJE55ru3g4vsL77GT

The ring only samples while "armed" (arm() sets an 8s window that due() gates
push() on). Enabling perception flipped the master switch but did NOT arm, so
the ring stayed cold until a later analyze/judge call armed it — an intuitive
"enable -> wait -> read once" sequence read an empty past window and returned
insufficient_samples (a dead-end that reads like "the visual is static").

Arm on enable so the ring starts filling immediately; the wait after enabling
now accumulates frames. Verified: set_perception_enabled(true) -> wait 2s -> a
single analyze_output(av) returns status:ok with ~35 samples (was
insufficient_samples). Control-handler only, no new method -> MCP parity
unaffected. Full ctest 99/99.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QB6eSNJE55ru3g4vsL77GT
@jeffcrouse
jeffcrouse enabled auto-merge (squash) August 11, 2026 14:00
@github-actions

Copy link
Copy Markdown
Contributor

Production gate (core): ✅ PASS

  • 82/82 tests passed (0 failed) in 15.632s

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant