Skip to content

feat(behavior): a calm pet β€” lively after contact, still otherwise - #78

Merged
rockywuest merged 3 commits into
mainfrom
feat/calm-pet
Oct 26, 2026
Merged

rockywuest merged 3 commits into
mainfrom
feat/calm-pet

Conversation

@rockywuest

Copy link
Copy Markdown
Owner

Field report: the dog never came to rest. It kept moving, the servos got warm, and the family found it unsettling. It was supposed to be Nox's body, not something that stands around drawing power.

Cause: The behavior engine sent idle actions all the time, and its commands are _internal, so they do not reset the daemon's sleep timer, yet they still move the servos. Every sound triggered a head turn plus INVESTIGATE. REST fell back to IDLE after 120 s.

Change (patterns from Reachy Mini, HoundMind and the Jibo/Vector lessons):

  • Awake window: The dog is lively for BEHAVIOR_AWAKE_S (120 s) after contact. Contact means voice (/voice/input), a touch, a command (/action, /combo, /move) or /behavior/start. Outside that window the wrapper blocks every move, head, scan, rgb and speak command, and the FSM sits in REST.
  • Quiet hours: BEHAVIOR_QUIET_HOURS (default 22-7) stops all autonomous movement. Direct commands still work.
  • Habituation: At most one head turn per 20 s. More than 3 sounds within 60 s and sounds are ignored for 5 minutes.
  • Face check: runs only while the dog is awake, so camera and CPU rest too.
  • Exceptions: An explicitly started patrol, plus battery alarms (_urgent), always go through.
  • 17 new tests. 690 tests pass.

Not included: actually switching the servo PWM off in the daemon's deep sleep. Today that is only a flag. It needs a test on the hardware.

πŸ€– Generated with Claude Code

rockywuest and others added 3 commits October 26, 2026 21:33
Field: the dog never settled. Idle head turns, sniffs and stretches every few
seconds, every noise an investigation, the servos warm, the family unnerved.

- The engine is lively only BEHAVIOR_AWAKE_S (120) after contact: a voice
  input, a touch, a command or /behavior/start. Otherwise it sends nothing
  that moves, lights or speaks, and the daemon's sleep takes over.
- BEHAVIOR_QUIET_HOURS (22-7): no autonomous motion at all; direct commands
  still work.
- Sounds habituate (HoundMind pattern): 20 s cooldown, and four sounds within
  a minute are ignored for five minutes.
- The face check runs only while awake (camera and CPU rest too).
- An explicit patrol and the battery alarms pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bridge fell back to nox_autonomous_v2 when the engine failed to start β€”
without awake window or quiet hours. A still dog is the safe failure now.
An explicit patrol passing awake window and quiet hours is intended and now
documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rockywuest
rockywuest merged commit 5cbc04b into main Oct 26, 2026
4 checks passed
@rockywuest
rockywuest deleted the feat/calm-pet branch October 26, 2026 20:39
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