Publish Calibration direct-read dashboard evidence - #38
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Filecoin Calibration “direct onchain-read” demo to point at a new pagination-capable FocPlatformRegistry deployment and publishes refreshed public evidence (artifact + docs) showing the admin dashboard can be driven by bounded count/list/detail/readBatch contract views.
Changes:
- Refreshes the committed demo registry address / deploy evidence / runtime SHA and updates Wrangler + generated Worker env types accordingly.
- Extends the Calibration registry demo runner to (a) allowlist a demo relayer row and (b) record dashboard direct-read proof into the committed evidence artifact.
- Updates README and docs to reflect that dashboard APIs now default to live direct reads when the runtime hash matches the current artifact.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| wrangler.jsonc | Updates committed Worker vars to the new Calibration registry + runtime hash and tx hash evidence. |
| test/calibration-worker.test.mjs | Adds coverage for runtime-hash-gated live dashboard defaults using a “stale” runtime SHA. |
| src/worker/worker-configuration.d.ts | Regenerates Wrangler env typings to match the updated committed vars. |
| src/worker/calibration-demo.mjs | Updates default registry constants and sets default evidence mode to calibration_live_evidence. |
| scripts/run-calibration-registry-demo.mjs | Records direct dashboard count/list/detail/readBatch proof and allowlists a demo relayer. |
| README.md | Updates narrative and demo guidance to reflect default live direct reads when ABI matches. |
| docs/platform-api.md | Clarifies current admin rows should come from direct contract list/count reads (events remain audit/fixture). |
| docs/deployment.md | Adds pointer to the current Worker demo evidence artifact and what it proves. |
| docs/calibration-worker-demo.md | Updates the demo runbook and published evidence values for the new registry. |
| artifacts/calibration/demo-evidence.json | Refreshes the committed public evidence snapshot (including dashboard proof). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7017567e5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
7017567 to
c372414
Compare
7f58b15 to
81df036
Compare
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
81df036 to
5b08b49
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b08b497ed
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
5b08b49 to
23af809
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 23af809592
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
23af809 to
ba98bf6
Compare
|
@codex review current head ba98bf66db93381b26a88551c0ea3ca0f001d81e after Worker deploy metadata guard alignment. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Merge-gate update for final head
|
|
To use Codex here, create an environment for this repo. |
Summary
Closes #33.
This publishes the direct-onchain Calibration evidence for the admin dashboard stack under #27/#29/#30/#31/#32:
artifacts/calibration/demo-evidence.jsonagainst the pagination-capable CalibrationFocPlatformRegistryat0x8F6563Bb9E53aeDfE9d87d4C1E162f0371649c18/api/admin/*defaults to live direct reads with a runtime hash matching the current registry artifacthttps://foc-platform-calibration-demo.snissn.workers.devwith versionc83bd91f-164e-4a48-9d0a-06518cd51212Public Calibration Evidence
Registry:
0x8F6563Bb9E53aeDfE9d87d4C1E162f0371649c183141590xae42c13c50c1b268a1d38389e27d8fa776264b405e28a1cf11a974dd4b178eae38544110x2c49443e7a9ebf3337453240e706df249d29f4f217ec948d6c10e9502a199d1fDemo object:
10xfaa4a252e3d762275f3bb2baccba097024ed47a08845bee0de79a2ee58514e014/12524/34CommittedobjectCount=1,accountCount=1,datasetRecordCount=1,coordinatorCount=1,relayerCount=1,readBatch.resultCount=5Registry write txs:
setCoordinator:0x22a29586247fa39e8d3277c754a42466f1936a3377f2d62ab50ddf1337035cd1setRelayer:0x93153de2f1653b1e632dff19f2dfd632f5f2a6390af20b39097a53607c162570requestUpload:0x35c561f8b6278b63deb1d272b8cc2b7663a45eb3cc564e75092bbeb5ebf12ccfstartUpload:0x6c57ded5248162049d64d372c2d1bde7e37c788edeedafc454bbbd2e3f841f38recordDataset:0xb65836f00e8b7a24734e3d5e62d64ad305e3234fd879e2a435b1665d273b6669finalizeUpload:0xe046f47af71e7da40ed475aba0e3ba8ac94677ae2de7341e1b59e2f8e367a2a4Validation
node --test test/calibration-worker.test.mjspnpm lintpnpm ops:validatepnpm ops:smoke -- --iterations 3pnpm worker:dry-runpnpm testnpx wrangler deploycurl https://foc-platform-calibration-demo.snissn.workers.dev/api/healthcurl https://foc-platform-calibration-demo.snissn.workers.dev/api/admin/overviewcurl 'https://foc-platform-calibration-demo.snissn.workers.dev/api/admin/files?limit=10'curl 'https://foc-platform-calibration-demo.snissn.workers.dev/api/admin/coordinators?limit=10'curl https://foc-platform-calibration-demo.snissn.workers.dev/api/demo/registryBoundaries