Commit 17e1b16
docs(ADR-010)+fix(spike/#41): record the CORS-mode requirement, emit lint-clean results
Closes #40 alongside the #41 harness work, so one CI round covers both.
ADR-010 gained a "measured constraint" section: under
`blocked-destinations=(script style)` a same-origin script with a *valid*
SHA-256 integrity attribute is still refused unless the request is also made
in CORS mode. Measured on Electron 43.2.0 / Chromium while making the #11
exfil probe execute (PR #39). The dangerous part is the failure mode, not the
requirement -- refusal is silent, with no CSP-violation event and no console
error attributable to the cause, so "did not execute" and "executed and was
blocked" share an observable. The packaging work (#24) must therefore emit
`crossorigin` alongside the hash; the Open section records that.
The harness now emits lint-clean Markdown. Its result documents violated
MD007/MD012/MD032/MD036, and docs:lint runs over every .md in the tree -- so
the first measurement run that landed in a commit would have turned CI red.
Lists are flush-left and preceded by a blank line, the verdict block no longer
collapses into consecutive blanks when nothing failed, and the trailing
provenance line is a blockquote rather than a whole-line emphasis.
Verified: one document from the previous generator produces 7 lint errors
(measured by re-linting a retained pre-fix document); the tree now reports
0 issues over 58 files, a count that includes a freshly generated document
from a real Electron run. npm test 254 tests / 253 pass / 1 skipped / 0 fail,
exit 0; docs:governance passed. That run reproduced HARNESS_EXIT=4
independently of the authoring agent.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5a3c41a commit 17e1b16
2 files changed
Lines changed: 43 additions & 6 deletions
File tree
- docs/adr
- spike/runtime-eval/harness/electron
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
80 | 107 | | |
81 | 108 | | |
82 | 109 | | |
| |||
103 | 130 | | |
104 | 131 | | |
105 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
584 | 587 | | |
585 | | - | |
| 588 | + | |
586 | 589 | | |
587 | 590 | | |
588 | 591 | | |
589 | 592 | | |
590 | | - | |
591 | | - | |
| 593 | + | |
| 594 | + | |
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
| |||
637 | 640 | | |
638 | 641 | | |
639 | 642 | | |
640 | | - | |
641 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
642 | 647 | | |
643 | 648 | | |
644 | 649 | | |
| |||
667 | 672 | | |
668 | 673 | | |
669 | 674 | | |
| 675 | + | |
670 | 676 | | |
671 | 677 | | |
672 | 678 | | |
| |||
742 | 748 | | |
743 | 749 | | |
744 | 750 | | |
745 | | - | |
| 751 | + | |
746 | 752 | | |
747 | 753 | | |
748 | 754 | | |
| |||
0 commit comments