Skip to content

feat: make judge and make break for Familiar's NEAR claims - #3

Merged
dadadave80 merged 3 commits into
mainfrom
feat/judge-checks
Nov 13, 2026
Merged

dadadave80 merged 3 commits into
mainfrom
feat/judge-checks

Conversation

@dadadave80

@dadadave80 dadadave80 commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

What

  • make judge: read-only checks of live familiar-game.testnet over public RPC (fastnear), with no keys, no signing and no .env.
    • Every pet listed by nft_tokens has no access keys and runs global code equal to get_config.pet_code_hash.
    • The test player's accepted claims and one-time 12 Shells.
    • Player and Root/Items admin key permissions are reported, not claimed.
  • make break: contract refusals and signer refusals.
    • Contract (historical and current court rules): a court that never returns, an illegal step, Shells without an accepted court, and repeat Shell grants.
    • Signer: the existing refusal tests.
  • README gains a "NEAR in Familiar" table. JUDGES.md gets two rows, each with its limit. THREAT-MODEL.md records that replay proves legal steps, not human play, and that one pet passed between accounts earns each account its own commission.

Verified locally

  • make judge: 16 PASS, 0 FAIL against live testnet (4 pets).
  • make break: 7 Rust and 5 signer tests pass.
  • bun run test: 235 pass.
  • cargo test --workspace: 130 pass.
  • Typecheck passes. make evidence verifies 15 signatures offline.
  • A Codex hostile review found 5 gaps, all fixed in 94f79f9: an undefined hash could pass, the pets were a hard-coded sample, the court tests covered v1 only, and snapshot/custody wording overclaimed.

Limits

  • The deployed root code (66HumWXu…) differs from the HEAD build recorded in docs/FAMILIAR-GAMEPLAY.json, so make break describes HEAD source, not necessarily the deployed bytes.
  • make break uses the contract unit runtime. The Wasm sandbox remains bun run test:tidebound-sandbox.
  • No game code changes. Production behaviour is unchanged.

make judge reads familiar-game.testnet over public RPC with no keys: keyless pets on pinned global code, replayed courts and one-time Shells, and the player and admin key permissions as they are. make break runs contract refusals for doctored courts and repeat Shell grants plus the signer refusal tests. README gains a NEAR in Familiar table; the threat model records the per-account commission limit.
Validate the pinned pet hash so a missing value cannot pass, enumerate all pets from nft_tokens, cover the current court rules in make break, and word the README and JUDGES rows as state reads and source rules rather than proof of deployed code or key custody.
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
familiar Ready Ready Preview Nov 13, 2026 10:33pm UTC

@dadadave80
dadadave80 merged commit c988419 into main Nov 13, 2026
3 checks passed
@dadadave80
dadadave80 deleted the feat/judge-checks branch November 13, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant