faucetsdn/udmi/state-machine-investigation
Claude Code and agent skill by faucetsdn/udmi
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Methodological playbook for investigating the UDMI device-sequencer state synchronization cycle, cutoffs, and config timestamp handshakes.
Install
npx vskill@latest install faucetsdn/udmi/state-machine-investigationSKILL.md
UDMI State Machine & Synchronization Investigation Playbook
1. Principle: Source Code Implementation is the Contract
The definitive state machine rules are implemented in the Java sequencer base classes:
validator/src/main/java/com/google/daq/mqtt/sequencer/SequenceBase.javavalidator/src/main/java/com/google/daq/mqtt/sequencer/SequenceRunner.java
When diagnosing state synchronization issues, read SequenceBase.java to confirm the exact waiting logic, cutoff comparison, and assertion predicates.
2. The Config-State Synchronization Loop
The UDMI state contract follows a strict bidirectional handshake:
- Config Dispatch: The sequencer or cloud backend dispatches a config update with an RFC 3339
timestamp(e.g.2024-03-15T12:00:00Z). In cloud reflector operations, command messages may also carry anRC:<hash>.<seq>transaction ID prefix. - Stale State Cutoff: At sequencer JVM startup,
SequenceBaseinitializes a staticstateCutoffThreshold(SequenceBase.java:255), logged asStale state cutoff threshold is <ISO-timestamp>. - State Ingestion & Staleness Check: Incoming state updates are checked in
SequenceBase.java(~lines 2131–2148):
- Before the initial device state is accepted (
deviceState == null), any state update whosetimestampis beforestateCutoffThresholdis discarded as stale (ignoring stale state update). - If the device's
metadata.jsonspecifies"testing": {"nostate": true}, the sequencer skips initial state waiting entirely (SequenceBase.java:916-921).
- Device State Echo: The device must apply the config and publish a state update satisfying:
state.timestamp >= stateCutoffThresholdstate.system.last_config: Must equal the RFC 3339timestampof the last successfully parsed config update (schema/state_system.json).
- Stage Confirmation: Once matched, the sequencer transitions to the next stage or marks the test
PASS.
3. Investigation Procedure for State & Timeout Failures
- Detect Cutoff Rejections: Run
detect_log_anomalies(run_dir="<run_dir>"). IfSTALE_STATE_CUTOFFis present, the device clock may lag behind the orchestrator, or the device driver may be polling/caching on a long interval exceeding the cutoff window. - Extract Timeline: Run
get_test_timeline(test_id="...", device_id="...", run_dir="<run_dir>")to inspect the chronological order of config dispatches, received state messages, and cutoff threshold checks. - Inspect Message Trace: Run
inspect_message_trace(run_dir="<run_dir>", message_type="state")to inspect the raw JSON state payload sent by the device. Check:
- Is
timestamppresent and RFC 3339 compliant? - Does
system.last_configmatch the timestamp of the dispatched config message?
- Inspect Sequencer Wait Logic: Use
read_udmi_file("validator/src/main/java/com/google/daq/mqtt/sequencer/SequenceBase.java", start_line=..., end_line=...)to inspect the state evaluation and cutoff conditions.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmantis/skills/state-machine-investigation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/faucetsdn/udmi/state-machine-investigation)