Repository navigation
Conversation
Co-Authored-By: Claude Code <noreply@anthropic.com>
…gnores pin state Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Reran on staging with the final script ( |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
mcp/tests/e2e/fact-ids-staging-e2e.mjs: a staging E2E for the MCP server's fact-id code (#901, #903) on DataEdge V2. No product code changed.What it runs. The built server (
mcp/dist/index.js) over stdio through the MCP client SDK, the way a host does, against the staging relay, with a throwaway account (a fresh phrase that exists only in the child's environment). It checks that every tool names a fact by its payload id, accepts<sender>:<id>in any address case, refuses another account's id before any read or write, changes nothing for a missing id, and confirms a forget. It refuses to write unless billing says chain 100 and the staging V2 DataEdge.Result on staging (2026-12-04 20:36 UTC, server 3.8.0 built from
77a3daaa, 182 s):https://api-staging.totalreclaw.xyz, tierfree, chain 1000xd3dce61edbcfc76c781a617bed722bbdc23a57c6(staging V2)0x4ddaea739a320e8ae9ee203977f661e2c7bdc35f:<sender>:<id>preference; old id inactivework; old id inactive<sender>:<id>pinned_unpin), then succeeds with the tokenreplaces=<sender>:<id>stores D2, old D not returned<sender>:<id>pinned_forget), deletes nothing, then confirmed with the tokenOffline:
--self-test30 / 30;npx jest tests/fact-ids-v1-v2.test.ts91 / 91;npx jest --runInBand88 suites, 1544 passed, 5 skipped.Two things the plan did not spell out, both taken from the server code: the preflight reads
chain_id/data_edge_addressfrom/v1/billing/status(no tool exposes them), and S6 goes through the confirmation flow, becausetotalreclaw_unpinstops on a pinned memory (internal#778) liketotalreclaw_forgetdoes.One caveat on the result line: the staging run was made before a last review pass on the script. That pass changed argument parsing (
--self-testwith--reportused to start the staging run), output masking, the "asks first" predicate, the fact-count handling and how a relay outage is handled. It does not change what the run asks the server; the changes are covered by--self-testand were not run on staging again.Refs #908.
🤖 Generated with Claude Code