Skip to content

Persist audit, provenance, and signoff as exportable evidence bundles #13

Description

@DennisWayo

Problem Statement

The public site emphasizes lab-facing prototype evidence. Studio currently keeps run output and audit trail lines in memory with a capped ring buffer. That is useful for the UI, but it is not enough for reviewable design evidence, reproducible experiment handoff, or lab/pre-hardware signoff.

Proposed Solution

Add an evidence bundle export:

  • circuit document,
  • runtime input JSON,
  • run output JSON,
  • trace metadata/checksum,
  • foundry profile id/version/hash,
  • KPI policy id/version,
  • audit trail with actor/action/timestamp/before-after summary,
  • bosonic signoff summary,
  • environment/tool versions,
  • optional PDF report.

Use a deterministic folder or archive layout and include a manifest checksum.

Acceptance Criteria

  • Exporting an evidence bundle creates a self-contained review artifact.
  • Audit entries are structured objects, not only display strings.
  • Bundle replay command is printed and documented.
  • Tests verify manifest contents and checksum stability for a seeded example.
  • Sensitive material such as signing keys is never included.

Validation

bash scripts/swift-test.sh
swift run schrosim-cli run docs/examples/runtime_default_foundry.json --backend hybrid

Evidence

  • core-swift/Sources/schrosim-studio/StudioStore.swift
  • core-swift/Sources/schrosim-studio/CLIService.swift
  • core-swift/Sources/schrosim-studio/CircuitReportPDFRenderer.swift
  • docs/08-tracing-observability-reproducibility.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions