feat: bound and redact console operation evidence
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user