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

+33 -17
View File
@@ -1,24 +1,40 @@
{
"normalized": {
"command": "call",
"diagnostics": [
{
"code": "sem.inferred_signature",
"column": 1,
"line": 3,
"message": "function signature was inferred; declare it with `params(...)`",
"severity": "warning"
}
],
"stderr": "",
"stdout": "",
"success": true,
"value": {
"decimal": "120",
"type": "int"
"events": {
"by_kind": {
"branch.eval": 9,
"call.enter": 5,
"call.exit": 5,
"parameter.observed": 5,
"return": 5,
"run.completed": 1,
"run.started": 1,
"stream.opened": 1,
"variable.assigned": 4
},
"count": 36,
"sequence_sha256": "sha256:1c776fb38bbfa9cfb32e907385b18e75d84df3e62d96fee7859a739054513daf"
},
"schema": "marqdo.observation",
"status": "ok",
"stderr": {
"bytes": 0,
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"stdout": {
"bytes": 0,
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"terminal": {
"status": "ok",
"value": {
"decimal": "120",
"type": "int"
},
"value_type": "Int"
}
},
"schema": "marqdo.perf.expected.v1",
"wire_sha256": "sha256:0cbd8ab0b0e9e671e7e54f707ff2de00181b2721924b7fdec998ff9611873275",
"wire_sha256": "sha256:34c724c5abc46f3c38875cf90c23e70e8f4048124a8571665f00f30bbbfab758",
"workload": "factorial-run"
}