cred402/ration-anchor/media/near-demo-2026-11-10.cast
caelum0x 07136e7b73 feat(near-hackathon): fold Ration's audit-anchor work into this repo as ONE combined NEAR submission
Owner directive (2026-11-11): submit a single project to the NEAR
Hackathon instead of two separate entries from the same person. Vendors
Ration's NEAR audit-anchor work (github.com/caelum0x/ration, commit
cff0ed3 + follow-ups) into ration-anchor/ as a first-class component:

- contracts-near/audit_anchor (NEAR Rust contract, 5/5 cargo tests
  green, target/ deleted)
- signer/ — a new, self-contained Go module (no dependency on Ration's
  other services or go.work) with the hand-rolled NEAR transaction
  signer + JSON-RPC client (cross-checked byte-for-byte against
  near-api-js) and the hash-chained audit ledger it anchors; 15/15 Go
  tests green (go test ./... -race)
- docs/ and media/ — Ration's original pitch deck, demo recordings, and
  submission checklist

Re-verified live via raw NEAR Testnet JSON-RPC this pass:
ration-anchor-286ca315f1.testnet still deployed and queryable, the
deliberate replay-rejection transaction still fails with nearcore's own
"sequence must strictly advance" panic — no redeploy needed.

Provenance notes added throughout (package doc comments, lib.rs header,
README) crediting the origin repo. README.md and HACKATHON.md rewritten
to tell one story: Cred402's SpendGuard enforces the protocol-level
spending limit, the vendored Audit Anchor proves the tamper-evident
spend history, both independently verifiable on NEAR Testnet. No mainnet
claims anywhere (see prior overclaim fix 524f2dd). cred402's own build
(npm run typecheck) and existing tests are untouched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-11 15:32:24 +03:00

10 lines
1.5 KiB
Plaintext

{"version":3,"term":{"cols":80,"rows":24},"timestamp":1794291558,"command":"/tmp/near-anchor demo","title":"Ration x NEAR Hackathon - live audit-anchor demo","env":{"SHELL":"/bin/zsh"}}
[0.008, "o", "[1/4] appending two real records to the audit-log chain at /tmp/ration-near-demo-data-2026-11-10-fresh/audit.log ...\r\n"]
[0.013, "o", " appended AgentDecision: sequence=1 hash=b27a789fc5c58ec98978fd142b08d24b6c082d7ae00323bbb9fb34a00e4a9bba\r\n"]
[0.004, "o", " appended LedgerEntry: sequence=2 hash=7e4b23d9a71a4536cf33e59d4318bfda36f24be7376f43b9aea17419b1dfbb4e\r\n"]
[0.000, "o", "[2/4] local chain integrity: intact=true records_checked=2, tip is now sequence=2 hash=7e4b23d9a71a4536cf33e59d4318bfda36f24be7376f43b9aea17419b1dfbb4e\r\n"]
[0.000, "o", "[3/4] anchoring sequence=2 hash=7e4b23d9a71a4536cf33e59d4318bfda36f24be7376f43b9aea17419b1dfbb4e on NEAR Testnet (contract ration-demo-23bd92e5.testnet) ...\r\n"]
[1.528, "o", " committed. tx=z8GWsRVxDykJ55rTKgb4dbN9WTH1UGMzk4NhQfogFrt\r\n https://testnet.nearblocks.io/txns/z8GWsRVxDykJ55rTKgb4dbN9WTH1UGMzk4NhQfogFrt\r\n[4/4] independently re-reading the local chain tip and the live on-chain anchor to confirm they match ...\r\n"]
[0.086, "o", " on-chain anchor matches the real local chain tip\r\n\r\nnear-anchor demo: PASSED — a real audit-log entry was written, the hash chain advanced, the anchor transaction was confirmed on NEAR Testnet, and the on-chain stored hash matches the real local chain tip.\r\n"]
[0.004, "x", "0"]