Skip to content

Codex/examples correctness pass#20

Merged
mikedotexe merged 35 commits into
mainfrom
codex/examples-correctness-pass
Apr 24, 2026
Merged

Codex/examples correctness pass#20
mikedotexe merged 35 commits into
mainfrom
codex/examples-correctness-pass

Conversation

@mikedotexe
Copy link
Copy Markdown
Collaborator

this is the one with curl examples that have been QAed

mikedotexe and others added 30 commits April 18, 2026 10:25
Rewrite every examples surface (api, tx, transfers, neardata, fastdata/kv,
snapshots, rpc, socialdb-proofs) to one framing sentence + one curl + one
narrative sentence tying output to insight. Cut the BOS widget NFT archive
scenario (obscure), the chunk tracing scenario (data aged off non-archival
RPC window within 2-3 days), and the OutLayer page. Repin tx scenario 5 to
mainnet 2KhhB1u... so scenarios 2/5/6 triangulate on one real DeFi failure.
Fix cross-cutting transaction_outcome -> execution_outcome jq bug. Replace
/tmp/ files with shell vars across scenarios.

Mirror the full tightening across i18n/ru/** using the three-tier model:
Latin brands (FastNear, mainnet, archival), transliterated common nouns
(аккаунт, шард, чанк), native prose (запрос, ответ, метод). Russian corpus
now matches English line-for-line (4282 -> 1261, 70.6% reduction).

yarn audit:ru-terminology clean, yarn audit:i18n:all clean, yarn build
passes both locales with no broken anchors.
Append one scenario to tx/examples.md (Failure and async section) that
hydrates an outlayer.near request + worker resolution pair in a single
/v0/transactions batch and surfaces the request_id + data_id correlation
along with the TEE resources_used fingerprint (instructions, time_ms,
encrypted bytes). Pinned pair: retrorn.near's request_execution tx
BZDQAxEd... (block 194832281) + worker.outlayer.near's
submit_execution_output_and_resolve tx 3NYD4Mkn... (block 194832292),
both calling the zavodil.near/near-email project for a delete_email
action.

Narrative deliberately avoids claiming yield/resume receipt kinds (they
render as Action in the indexed view) or DAO attestation posting (no
receipt chain to any DAO contract was observed; product docs' DAO
governs only the CKD master key). Archival note is one line: the
indexed /v0/transactions surface serves historical pairs regardless.

Mirrored in i18n/ru/.../tx/examples.md using the three-tier model.
yarn audit:ru-terminology + yarn audit:i18n:all clean; yarn build
passes both locales.
- README "Examples Voice And Shape": add four principle bullets (teach
  NEAR not verify the RPC; one question per subsection; lead with mental
  model when the RPC surface surprises; one jq pipeline per example).
- /rpc: reshape Tip Block, Account Keys, and Contract Reads around the
  codified principles; add a new "Account State" section with a
  view_account beginner intro.
- /api: add three examples (NFT collections by publisher suffix, balance
  decomposition via /full state, activity recency across /full arrays),
  plus a one-call account summary beginner intro.
- /neardata: drop the 33-line shared contract_touch_summary helper,
  rewrite all three examples with inline minimal jq, fix a latent
  echo/backslash bug in the optimistic-vs-final pipeline with printf,
  and add a current-tip + txs-per-shard beginner intro.
- /transfers: add an unfiltered-recent-activity beginner intro before
  the existing filter-and-page example.
- /tx: merge the overlapping "successful outer, failed descendant" and
  "callback ran" examples into one consolidated async-failure example;
  trim the OutLayer pairing to a request_id handshake (richer TEE
  fingerprint fields noted inline rather than decoded).

EN/RU line parity verified on every page; yarn audit:ru-terminology
clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mikedotexe mikedotexe merged commit bca63b7 into main Apr 24, 2026
2 checks passed
@mikedotexe mikedotexe deleted the codex/examples-correctness-pass branch April 24, 2026 13:45
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