Repository navigation
feat(flow): add the record view to the dfd diagram set - #14
Merged
Merged
Conversation
commitwork dfd --view record draws every node in group or layer lanes by hop from the sources, puts each finding under the node it sits on, and replays patches in a chosen order over a subset of change sets. The pure rules live in lib/dfd-record-core.mjs, the drawing in lib/dfd-record-client.js, and lib/dfd-record-render.mjs writes one page with a hashed CSP. The view takes no --collapse and ignores --max, like map, story and replay; stdout reports counts and layout faults. dfd@1 gains an optional top-level routes array (open questions with the test that would settle them). validateDfd checks its shape and that any node anchor names a node; documents without routes validate as before.
The escaping and policy assertions used patterns that a browser would not honour: a lower-case <script> missed <SCRIPT>, and the URL check let any host that starts with an allowed name through. The page now pins its exact style and script tags, admits no URL at all, and the escaping check refuses any image, bold or script tag in any case.
deps-malware-list was merged without its registrations. It now has a light cost class in monitor/perf-profiles.json, which also gives the scanner catalogue its tuning entry, and the nested-checkout table records that bin/malware-list.mjs skips dot-directories. package.json moved renovate to 44.245.0 alone. The npx pin, the image tag, monitor/renovate-dryrun.mjs, bin/renovate-run.sh and the threat model now name the same version. fixtures/semgrep-workflows/.github/ is declared out of zizmor's scope beside the other synthetic workflow fixtures. repoRelative also strips the repository root when a trace path arrives without its leading slash. findingFileOf removes file:/// whole, and a --repo --codeql merge left a trace step given as an absolute file URI unmatched to its module. docs/EXIT-CODES.md and docs/REFERENCE.md are regenerated.
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.
What
Adds a sixth view to
commitwork dfd:--view record.How it is built
lib/dfd-record-core.mjslib/dfd-record-client.jslib/dfd-record-render.mjsdefault-src 'none'. The style and script are inline, each allowed by its sha256 hash.lib/dfd-record.cssflow/dfd-cli.mjs:recordtoVIEWS;--collapseand ignores--maxfor this view, as map, story and replay already do;Schema
dfd@1gains an optional top-levelroutesarray: open questions, each with the test that would settle it.validateDfdchecks its shape and refuses any route whosenodeis not a node. Documents withoutroutesvalidate as before.Tests
lib/test/dfd-record-core,dfd-record-renderanddfd-record-client(the client test runs in a stand-in document);flow/test/dfd-record-cli; and four routes cases inlib/test/dfd.test.mjs. The fixtures use invented names only.node --test 'lib/test/*.test.mjs': 5003 tests, 0 fail.node --test 'flow/test/*.test.mjs': 691 tests, 1 fail. The same test fails on cleanmain(the scanned-repository tests ran in a child carrying --experimental-vm-modules).node bin/comment-schema.mjs: no ratchets beyond those already onmain.