Repository navigation
Add thin Attest receipt observation CLI - #89
Conversation
Co-authored-by: sykosyber <132870419+sykosyber@users.noreply.github.com>
|
Verified against real receipts from today's live Kane runs: One change needed before Attest's next demo case: Attest is adding spec mode (
and use |
|
Follow-up task (dispatch CLI, deadline 16:40 PDT): see SyberLabs/attest#10 (latest comment). |
Co-authored-by: sykosyber <132870419+sykosyber@users.noreply.github.com>
|
Spec-mode support is on the PR: |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Class: R
Agent-platform: Reason
Admitted-by: self (Class R)
Reviewed-by: independent Reason code review (Session 3ac97359-4537-4dd4-a1bc-d7dfd1998f10)
Objective: Add a SyberWork CLI that imports Attest v0 receipts as unverified observations, including spec-mode implementation receipts.
Change
examples/attest_receipt_observe.pyto load a receipt from a filesystem path and printWork.observe-compatible JSON.attest.receipt/v0fields plus optional spec-modeticket,app, andworker; unknown top-level fields and receipts claimingverified: trueare rejected.disposition: implemented, the observation value includes the ticket title andapp.patch_sha256. Whenevidence.after.status == "proven", it records destination verification as a Kane re-check. The receipt and observation remainverified: false.adapters/,syberlabs/attest_bridge/, or Attest files were changed.Checks
PYTHONPATH=. python -m unittest discover -s tests -p test_attest_receipt_observe_example.py -v— passed (7 tests).python examples/attest_receipt_observe.py examples/fixtures/attest_receipt_v0_sample.json— passed; printed observation JSON withverified: false.python examples/attest_receipt_observe.py examples/fixtures/attest_receipt_v0_spec_sample.json— passed; included implementation title/digest and Kane re-check metadata while keepingverified: false.PYTHONPATH=. python3 -m unittest discover -s tests -q— passed (567 tests, 25 skipped).PYTHONPATH=. python3 -m conformance.run— passed (23 golden traces matched).git diff --check— passed.Limitations
The CLI prints observation arguments; it does not append them to a SyberWork case or authenticate receipt provenance. No deployment or production behavior was exercised.
Implemented and tested; not deployed.
Contributors