cred402/ration-anchor/docs/RATION-X-POST-DRAFT-2026-11-10.md
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

56 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# X post draft — Ration × NEAR Hackathon (2026-11-10)
Owner-gated: needs your logged-in X account. Copy the caption below, attach
`media/near-demo-2026-11-10.mp4` (or the `.gif`), post, then paste the
resulting URL into `SUBMISSION-CHECKLIST.md` item 3.
Required by the real hackathon rules (confirmed live 2026-11-10 against
nearhackathon.com): state you built this at NEAR HACKATHON, tag
`@NEARProtocol`, use `#NEARHackathon`, attach a demo video or screenshots.
The caption below satisfies all four.
Note: the owner is also submitting [Cred402](https://github.com/caelum0x/cred402)
to the Agent Economy track in this same hackathon — these are two
independent posts for two independent submissions.
---
## Caption (primary, fits X's limit)
Built Ration's audit-anchor at NEAR HACKATHON (AI Security & Defense):
anchors our AI agent's hash-chained financial audit trail to a NEAR
smart contract, so anyone — not just us — can verify the trail wasn't
tampered with.
This clip is a real, unedited terminal session: two real audit-log
records appended, anchored on-chain against a live NEAR Testnet
contract, then independently re-read via raw RPC to confirm the match.
We also deliberately tried replaying an already-anchored sequence on
the same contract — nearcore itself rejected it on-chain.
@NEARProtocol #NEARHackathon
github.com/caelum0x/ration
---
## Caption (alternate, shorter)
An AI agent's financial audit trail, independently verifiable on-chain
— not just "trust our database." Real append → anchor → re-verify, live
on NEAR Testnet. Built at NEAR HACKATHON.
@NEARProtocol #NEARHackathon
github.com/caelum0x/ration
---
## Attachment
- Primary: `media/near-demo-2026-11-10.mp4` (4.6s, 790x560, H.264 —
real recorded terminal output, X-upload-ready)
- Alternate (GIF, if X thread prefers): `media/near-demo-2026-11-10.gif`
- Full-fidelity source (not for upload, kept for judges who want to
replay the exact real session): `media/near-demo-2026-11-10.cast`
(`asciinema play media/near-demo-2026-11-10.cast`)