feat: bound and redact console operation evidence

This commit is contained in:
lda
2026-08-11 19:47:03 +07:00 Verified
parent 32c99cbeb0
commit 3231a1d943
17 changed files with 481 additions and 9 deletions
@@ -10,6 +10,7 @@ describe("PresentationFooter", () => {
it("combines scene progress and evidence provenance", () => {
const evidence: EvidenceRecord = {
id: "trace",
target: "http://console.test/rpc",
operation: "workflow.runs.trace",
label: "Inspect trace",
equivalentCli: "uv run wf run trace run_demo",
@@ -27,6 +27,7 @@ const projectRecordingToEvidence = (
.filter((event) => event.operation !== null)
.map((event) => ({
id: event.id,
target: "replay",
operation: event.operation!,
label: event.reason,
equivalentCli: event.equivalentCli ?? "",
@@ -8,6 +8,7 @@ afterEach(() => cleanup());
const record: EvidenceRecord = {
id: "run-start",
target: "http://console.test/rpc",
operation: "workflow.runs.start",
label: "Start run",
equivalentCli: "uv run wf run start demo.default",
@@ -8,6 +8,7 @@ afterEach(() => cleanup());
const record: EvidenceRecord = {
id: "run-start",
target: "http://console.test/rpc",
operation: "workflow.runs.start",
label: "Start run",
equivalentCli: "uv run wf run start demo.default",
@@ -8,6 +8,7 @@ import {
const record = (response: unknown): EvidenceRecord => ({
id: "run-start",
target: "http://console.test/rpc",
operation: "workflow.runs.start",
label: "Start run",
equivalentCli: "uv run wf run start demo.default",