Repository navigation
Conversation
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.
Summary
Replace the missing demo-doc link with a self-contained, offline walkthrough of both checking
layers. In 1.0.0 the old
demo:dual-layerscript anddocs/INBOUND_DEMO.mdwere folded intonpm run demo(see CHANGELOG 1.0.0), so this addsdocs/DEMO.mddescribing the current command andthe Layer 1 (
-32080) / Layer 2 (-32083) behaviour, and points the Quickstart at it.Changes
docs/DEMO.md(new): offline Layer 1 (simulation abort) + Layer 2 (policy deny) walkthrough; howL2SG_POLICY_FILEandL2SG_POLICY=offturn Layer 2 on and off; "a deny is never fail-open";links to README › How it works and › Threat model and limits; notes the 1.0.0 consolidation of
demo:dual-layer/INBOUND_DEMO.README.md: a one-line pointer todocs/DEMO.mdin Quickstart step 1. No code changes.Verification
npm run demo(offline, no keys/network/funds) prints the expected cases, including2. … -32083 DESTINATION_NOT_ALLOWEDand4. … -32080 DEFINITE_REVERT, ending withThe mock RPC received 2 of 7 transactions. Demo OK.npx vitest run→2 failed | 684 passed | 2 skipped (40 files), identical to unmodifiedmain.Both failures are pre-existing and unrelated to this docs-only change:
tests/evaluation.harness.test.ts:120(expects POSIXevaluation/fixtures/corpus.jsonl, receives aWindows backslash path) and
tests/guard/selectors.test.ts:419("README quickstart policy loads" —git CRLF makes the
\``json\n` regex miss on Windows).src/, policy, or test files touched.Closes #9