{"at":"2026-11-23T04:01:43.847Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:01:44.076Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"hwcontract","version":"0.6.1"}},"capabilities":{"tools":{}},"instructions":"Use list_contracts to discover bundled templates and capture support. Judges accept a bundled name or a contract path under HWCONTRACT_ROOT. check_/capture_ tools need sigrok or a serial port attached.","resultType":"complete","supportedVersions":["2026-07-28"]}}}
{"at":"2026-11-23T04:01:44.076Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:01:44.077Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"hwcontract","version":"0.6.1"}},"resultType":"complete","tools":[{"description":"List bundled contract templates, names, kinds, installed paths, and capture adapter requirements. No hardware.","inputSchema":{"properties":{},"type":"object"},"name":"list_contracts"},{"description":"Judge observations against a timing contract -> PASS/MARGINAL/FAIL/MISSING. No hardware; use for replay or when an adapter already captured.","inputSchema":{"properties":{"contract_path":{"type":"string"},"observations":{"items":{"type":"object"},"type":"array"}},"required":["contract_path","observations"],"type":"object"},"name":"judge_contract"},{"description":"Capture the WS2812 data line via sigrok and return measured pulse-width observations (T0H/T1H/...).","inputSchema":{"properties":{"channel":{"type":"string"},"driver":{"type":"string"},"samplerate":{"type":"number"},"samples":{"type":"number"}},"type":"object"},"name":"capture_ws2812"},{"description":"Capture a live WS2812 signal AND judge it against a contract in one call. The one-shot an agent reaches for.","inputSchema":{"properties":{"channel":{"type":"string"},"contract_path":{"type":"string"},"driver":{"type":"string"},"samplerate":{"type":"number"},"samples":{"type":"number"}},"required":["contract_path"],"type":"object"},"name":"check_ws2812"},{"description":"Capture a live DShot600 ESC signal AND judge it against a contract in one call.","inputSchema":{"properties":{"channel":{"type":"string"},"contract_path":{"type":"string"},"driver":{"type":"string"},"samplerate":{"type":"number"},"samples":{"type":"number"}},"required":["contract_path"],"type":"object"},"name":"check_dshot"},{"description":"Judge a captured serial log against expect/forbid patterns. No hardware; use for replay or logs another tool already captured.","inputSchema":{"properties":{"contract_path":{"type":"string"},"log":{"type":"string"}},"required":["contract_path","log"],"type":"object"},"name":"judge_serial"},{"description":"Judge decoded hardware events against an events contract's temporal assertions (when/require/within, forbid/while/before). Events: [{source, type, start_ns, end_ns, fields}].","inputSchema":{"properties":{"contract_path":{"type":"string"},"events":{"items":{"type":"object"},"type":"array"}},"required":["contract_path","events"],"type":"object"},"name":"judge_events"},{"description":"Read a serial port for N seconds AND judge its log against a contract's expect/forbid patterns.","inputSchema":{"properties":{"baud":{"type":"number"},"contract_path":{"type":"string"},"port":{"type":"string"},"seconds":{"type":"number"}},"required":["contract_path","port"],"type":"object"},"name":"check_serial"}]}}}
{"at":"2026-11-23T04:01:44.127Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T04:01:44.368Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"hwcontract","version":"0.6.1"}}}}
{"at":"2026-11-23T04:01:44.368Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:01:44.368Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:01:44.369Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List bundled contract templates, names, kinds, installed paths, and capture adapter requirements. No hardware.","inputSchema":{"properties":{},"type":"object"},"name":"list_contracts"},{"description":"Judge observations against a timing contract -> PASS/MARGINAL/FAIL/MISSING. No hardware; use for replay or when an adapter already captured.","inputSchema":{"properties":{"contract_path":{"type":"string"},"observations":{"items":{"type":"object"},"type":"array"}},"required":["contract_path","observations"],"type":"object"},"name":"judge_contract"},{"description":"Capture the WS2812 data line via sigrok and return measured pulse-width observations (T0H/T1H/...).","inputSchema":{"properties":{"channel":{"type":"string"},"driver":{"type":"string"},"samplerate":{"type":"number"},"samples":{"type":"number"}},"type":"object"},"name":"capture_ws2812"},{"description":"Capture a live WS2812 signal AND judge it against a contract in one call. The one-shot an agent reaches for.","inputSchema":{"properties":{"channel":{"type":"string"},"contract_path":{"type":"string"},"driver":{"type":"string"},"samplerate":{"type":"number"},"samples":{"type":"number"}},"required":["contract_path"],"type":"object"},"name":"check_ws2812"},{"description":"Capture a live DShot600 ESC signal AND judge it against a contract in one call.","inputSchema":{"properties":{"channel":{"type":"string"},"contract_path":{"type":"string"},"driver":{"type":"string"},"samplerate":{"type":"number"},"samples":{"type":"number"}},"required":["contract_path"],"type":"object"},"name":"check_dshot"},{"description":"Judge a captured serial log against expect/forbid patterns. No hardware; use for replay or logs another tool already captured.","inputSchema":{"properties":{"contract_path":{"type":"string"},"log":{"type":"string"}},"required":["contract_path","log"],"type":"object"},"name":"judge_serial"},{"description":"Judge decoded hardware events against an events contract's temporal assertions (when/require/within, forbid/while/before). Events: [{source, type, start_ns, end_ns, fields}].","inputSchema":{"properties":{"contract_path":{"type":"string"},"events":{"items":{"type":"object"},"type":"array"}},"required":["contract_path","events"],"type":"object"},"name":"judge_events"},{"description":"Read a serial port for N seconds AND judge its log against a contract's expect/forbid patterns.","inputSchema":{"properties":{"baud":{"type":"number"},"contract_path":{"type":"string"},"port":{"type":"string"},"seconds":{"type":"number"}},"required":["contract_path","port"],"type":"object"},"name":"check_serial"}]}}}
