perf: measure run/call through the current Observation snapshot

The nine G4 workloads still requested the retired `run/call --json` option,
so every non-check workload exited 2 and was recorded as CORRECTNESS_FAIL; the
RC performance gate could not run at all.

- Request `--output json` for run/call workloads and re-record the committed
  expected digests.
- Pin correctness to the current snapshot: terminal status/result, committed
  stdout/stderr byte digests, and ordered event-kind counts with a sequence
  digest. Run ids, wall-clock stamps and host paths are excluded, so a correct
  program keeps one stable digest.
- Add tooling tests for the workload catalogue and digest stability.
This commit is contained in:
cflmy committed 2026-11-24 20:48:26 +08:00
1 parent 44a118003f
commit 682eae82b6
12 files changed
+1145 -743

No files matched your search

+55 -29
View File
@@ -1,36 +1,62 @@
{
"normalized": {
"command": "run",
"stderr": "",
"stdout": "",
"success": true,
"value": {
"items": [
{
"decimal": "200",
"type": "int"
},
{
"type": "text",
"value": "OK"
},
{
"type": "text",
"value": "text/plain"
},
{
"type": "text",
"value": "hello world"
},
{
"type": "text",
"value": "GET /health HTTP/1.1\r\nAccept: text/plain\r\nHost: example.test\r\n\r\n"
}
],
"type": "list"
"events": {
"by_kind": {
"branch.eval": 545,
"call.enter": 34,
"call.exit": 34,
"loop.iteration": 756,
"parameter.observed": 90,
"return": 34,
"run.completed": 1,
"run.started": 1,
"stream.opened": 1,
"variable.assigned": 1548
},
"count": 3044,
"sequence_sha256": "sha256:d394bf12395c193818794d34de4fef9f6a9048eb63235f30ce53a6785c4a2ab5"
},
"schema": "marqdo.observation",
"status": "ok",
"stderr": {
"bytes": 0,
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"stdout": {
"bytes": 0,
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"terminal": {
"status": "ok",
"value": {
"items": [
{
"decimal": "200",
"type": "int"
},
{
"type": "text",
"value": "OK"
},
{
"type": "text",
"value": "text/plain"
},
{
"type": "text",
"value": "hello world"
},
{
"type": "text",
"value": "GET /health HTTP/1.1\r\nAccept: text/plain\r\nHost: example.test\r\n\r\n"
}
],
"type": "list"
},
"value_type": "List"
}
},
"schema": "marqdo.perf.expected.v1",
"wire_sha256": "sha256:540f8dd9a2071d40c1f07d82961e0e0174822e123c828ffc5d2a06cc880052ed",
"wire_sha256": "sha256:1617796958d6b8e30c65884f26640f1072cde6037158e3abf0a196ecb9e39712",
"workload": "http-parser"
}