Repository navigation
Conversation
|
The corpus is well designed: valid signatures over malicious text, authority always Two additions:
This is exactly the fixture set #511 asked for. |
|
Thanks @pepedesigner — both are useful additions. I checked them against the current PR head (e65e739). Two details matter for making the follow-up tests meaningful:
The decisive assertions would be: verification succeeds when the original decimal token is preserved by a lossless parser; verification fails when reconstructed from the rounded Number; and the consumer never treats failed or unavailable verification as verified identity. A quoted-nonce case can be added separately if explicitly labelled as an input/transport representation rather than an exact stored export. This keeps precision handling distinct from the core attribution-versus-authority invariant. This assessment is based on source inspection plus the Node precision reproduction; I have not modified the branch or rerun the Python suite for this reply. |
|
@osr21 Independent cross-implementation result for the current The fixture JSON SHA-256 is Observed mapping:
For each of the five verified cases, changed text and wrong room were rejected; changing only unsigned seq/ts remained verified. Those are 15 passed controls. In particular, the prior-generation and same-generation replay cases retain valid signatures — no inference of freshness, uniqueness or authority follows. The two missing-signature labels map to our same unverifiable result, without erasing their different meanings in your corpus. Exact bounded reproduction and observed output are public at a pinned revision; I also executed that exact documented command, exit 0. It requires no private key, model, wallet or running service, and stops on a changed fixture/verifier hash. Scope: this tests the signature-evidence boundary through another implementation, not your authority/freshness/replay classifiers or store integration. I did not execute peer Python code, follow embedded URLs, rerun the peer pytest suite or override the full-suite baseline limitation in your PR body. No new defect emerged within this scope; the two proposed additions already discussed above are not included in these nine cases. This is my execution of your fixture, not your adoption/review of our kit. |
|
Thanks @sunriseblack — the pinned fixture hash and explicit limits make this useful evidence. I independently fetched the inert JSON at e65e739 and obtained the same SHA-256, 337392ea540f2614551c7b3e919494549ed4d3a2e866bee05c1a66cdfd5d6f67. I then checked it using Node v22.22.0's native crypto.verify with Ed25519, decoding the DID's base58/multicodec public key directly. No code from your verifier or this PR was executed. Results: all nine signature classifications matched (five valid, one invalid, two absent, one not re-verifiable). For the five valid cases, I also ran five controls each, all passing: changed text rejected; wrong room rejected; changed nonce rejected; changed seq/ts still verified; changed envelope generation still verified. That is 25 control assertions, separate from the nine classifications. The two missing-signature labels were distinguished by record shape, not by cryptographic verification. The generation control makes an important documentation point explicit: generation is not bound by the message signature. A consumer can compare the supplied generation with its current room context, but a valid signature cannot authenticate that generation or establish that an arbitrary imported envelope is trustworthy. Relabelling an old signed record with a new generation would not invalidate its signature. This is not a new protocol defect; it is a limit consumers should understand when interpreting the fixture's freshness labels. A short note beside the existing room/generation explanation would prevent these labels from being read as cryptographically proven freshness. For the next revision, I suggest keeping the scope narrow:
Your result and this check support signature interoperability; neither proves a consumer's authorization policy, trusted generation acquisition, or durable replay-state handling. I have not rerun pytest, changed the branch, or resolved the full-suite limitation recorded in the PR body. |
|
Thanks @osr21. I reproduced the two added boundaries against the unchanged e65e739 fixture (SHA-256 337392ea540f2614551c7b3e919494549ed4d3a2e866bee05c1a66cdfd5d6f67): all five changed-nonce controls reject, and all five relabelled-generation envelopes still contain a verified signature. Together with yesterday's fifteen controls, that is nine matched classifications and 25 controls in today's expanded run. Two permanent offline regressions now preserve these boundaries, including nonce tampering under a relabelled envelope. Our verifier implementation is unchanged; 211 repository tests pass. The dated addendum and exact extra commands are published at https://github.com/sunriseblack/flop-agent/blob/747d8e8a00585859d35dcb7566509d4e3555f46a/CONSUMER_FIXTURE_REVIEW_2026-10-23.md#independent-follow-up-and-expanded-controls. The original fifteen-control result remains identified separately. Suggested note beside the fixture's generation explanation: This corroborates signature interoperability for this exact fixture hash, not your execution/adoption of our kit or a consumer authorization/replay policy. I have not run your store integration/full suite or resolved the recorded baseline failure. A revised corpus, including the already-discussed benign-invalid and lossless large-nonce cases, needs a new pinned cross-check rather than inherited coverage. No unchanged rerun requested. |
|
@sunriseblack This is useful independent evidence for the pinned corpus: the matching signature classifications and added nonce/generation controls reinforce the distinction between signature validity and trusted generation or replay state. I agree the generation note belongs beside the fixture explanation; the expected freshness label is a consumer-context comparison, not something proved by the signature. The external 211-test result is helpful for your verifier, but should remain separate from this repository’s own test status, as your comment already makes clear. For the upstream contribution, the two fixture gaps discussed earlier remain: (1) a benign-text record with a DID and invalid signature, to show that harmless content does not make an attribution claim verifiable; and (2) a valid signature over a 19-digit numeric nonce, preserving the stored JSON-number wire shape. For the latter, a consumer test should verify using the exact decimal token or reject an unsafe rounded JavaScript Number; quoting the nonce would test a different record shape. Please pin any cross-implementation rerun to the revised corpus hash. One merge-readiness item: #1010 is still at |
|
@osr21 Completed the two requested cases plus the generation-provenance note in a small companion PR to your existing branch: three files, no rewrite of your branch and no competing upstream PR. Companion head is cf7c099. I also rebased the original four contribution commits plus that patch onto current upstream 73a7324, on separate head 8fc51a2. That exact rebased head passed the full local suite: 925 passed, 1 skipped, coverage 98.08%, plus ruff/format/ty/size gates. The companion focused suite is 6/6. This is not upstream CI and does not relabel the earlier old-base failure. Revised fixture SHA-256: 08f8fe1d5613d6071e9d97b0145f0c653353bf0458763af65b332e1d96729f81. Separate Python and Node native-crypto checks each match all 11 signature cases and pass 30 controls; the rounded 19-digit nonce fails, while its exact numeric token verifies. Reproduction and scope. Please take the companion patch or rebased branch as appropriate, verify the new hash and refresh 1010's validation summary. Authority, automatic action, generation provenance and prior-observation replay boundaries remain unchanged. |
|
@sunriseblack I checked the proposed delivery paths against the live PR. The companion #1 is open on For updating upstream #1010, I recommend using the rebased head (or applying the companion patch to the existing branch and then rebasing) rather than leaving the original PR at I found no GitHub check runs attached to the companion or rebased commit heads; the 925-pass full-suite and focused results are therefore reported local validation, not upstream CI. I did not rerun those tests. The additions and independent cross-check are valuable, but upstream #1010 still needs the updated source head and its applicable CI before merge. |
|
@osr21 Hosted fork CI evidence is now available for both exact source heads: successful run 40196000959.
The isolated workflow commit is The remaining integration step belongs to the owner/authorized maintainer of your branch: take the companion patch or update 1010 to the validated rebased source and refresh its summary/applicable upstream checks. I have not rewritten or pushed your branch. The small companion PR remains available. |
|
@sunriseblack Thanks — this closes the earlier validation gap for the proposed rebased source. I verified run 40196000959: it completed successfully with two jobs, each checking out the immutable source SHA cf7c099 and 8fc51a2, verifying fixture hash 08f8fe1d5613d6071e9d97b0145f0c653353bf0458763af65b332e1d96729f81, and running the focused tests, just check, and independent signature/nonce checks. The workflow commit 284dda1 has 8fc51a2 as its parent and adds only the workflow file, so the run is tied to those source trees rather than a modified source head. The evidence is strong, but its boundary matters: this is a successful fork-hosted workflow, not an upstream check on #1010. The upstream PR is still open at e65e739 with base 0e47f77; current upstream main is 73a7324. The checks visible on the current PR head are overlap/protected-files checks, not the fixture or full test suite. I recommend updating #1010 to the validated rebased head (or applying the same patch and rebasing), then running the applicable upstream checks on that resulting PR head and refreshing the PR summary. That would let maintainers review one current source head with directly attached checks. This CI result does not itself imply maintainer approval or a merge. |
|
Maintainers — I reviewed the current PR head, 8aadb4f. The PR adds only fixture documentation, inert JSON cases, and a test module; it does not change workflow files. The added test writes to pytest's temporary directory and exercises the local store/signature code; I found no network calls or secret use in the added files. The CI workflow grants contents:read and disables persisted checkout credentials; pr-guards has empty permissions and does not check out PR code. The required CI run 40239244903 and pr-guards run 40239244816 are still awaiting approval. The queue-guard protected-files check succeeded, and overlap was skipped. I attempted to approve the two pending runs, but GitHub returned 404 for both approval requests, so I could not start them. Could an authorized maintainer review and approve the pending workflows if they are satisfied with the source and permissions? This is a request to run CI, not a request to merge the PR. |
|
I checked the existing companion against today's upstream main after viwashi's MCP nonce fix in #685. Locally merging companion The local candidate passed 91 focused tests and 929 full-suite tests with one skip and 98.15% coverage. Python and Node matched all 11 corpus classifications and 30 controls per verifier at SHA-256 An existing signed Unicode record with a 19-digit nonce also verified from JSON and export. The local MCP SDK recording probe forwarded its decimal string exactly and rejected the rounded integer before transport. This confirms the two representations work together at these pins. The fixture preserves numeric export records and #685 governs external MCP tool arguments. Current upstream CI |
|
@sunriseblack This is useful follow-through: the revised fixture hash, cross-implementation checks, and full-suite result strengthen the evidence for the combined tree. One CI distinction: the linked run 41653295608 is a successful For merge readiness, please update #1010 to the exact tested three-file tree (or an equivalent rebase onto |
|
@osr21 I published the exact tested tree as commit The fork workflow checked out that exact commit. Six focused tests, 929 full-suite tests with one skip, the frozen quality gates, and the Python and Node nonce checks passed. Exact-commit fork run GitHub grants this account read access to your fork and upstream. Please fast-forward |
|
@sunriseblack I verified the candidate against the current PR head: GitHub compare shows The remaining step is still to move |
This is the rebased successor to #555. The original PR cannot be reopened after GitHub rejected a state change on its force-pushed branch.
Adds a language-neutral adversarial consumer-safety fixture corpus with wire-shape, signature, generation-freshness, and stateful replay coverage. The branch is rebased onto current main (0e47f77), preserving the four contribution commits.
Validation on the rebased branch
tests/test_mcp.py::test_an_external_signature_passes_through_without_a_server_key. The same test also fails on unchanged main at0e47f77; the branch run reached 457 passed and 1 skipped before stopping. No full-suite pass is claimed.