diff --git a/.gitignore b/.gitignore index 5a42d78c..34cdbac7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,19 +8,24 @@ test-results/ coverage/ !tests/fixtures/coverage/ !tests/fixtures/coverage/below-threshold.json -artifacts/**/*.json -artifacts/**/*.xml -artifacts/**/*.txt -artifacts/**/*.sarif -# 1103/12-08. Step logs from check:scale:* and verify:extreme-scale. They were -# committed once, and every local merge-gate run rewrote them. -artifacts/**/*.log -artifacts/tests/e2e/ -artifacts/tests/browser-capabilities/ -artifacts/storybook/ -artifacts/tests/storybook/ -artifacts/tests/visual/ -!artifacts/**/.gitkeep +# artifacts/ is run output and is ignored as a whole. Ignoring it by extension +# let screenshots and a coverage report in (0929/14-01) and step logs until +# they got their own rule (1103/12-08). +# Only the folder markers and the manual a11y reviews, which people write and +# the a11y gates read (config/ci/gates.json), are tracked; +# tests/unit/tracked-artifacts.test.ts keeps it so. Git cannot re-include a +# file under an ignored folder, so each folder on the way is re-included and +# its contents ignored again. +artifacts/* +!artifacts/runbooks/ +artifacts/runbooks/* +!artifacts/runbooks/.gitkeep +!artifacts/tests/ +artifacts/tests/* +!artifacts/tests/.gitkeep +!artifacts/tests/a11y-manual/ +artifacts/tests/a11y-manual/* +!artifacts/tests/a11y-manual/*.md # Local environment overrides. `.env.example` is the tracked template; every # other `.env*` file is a developer's own machine and never enters the repo. diff --git a/README.md b/README.md index 9358df6f..b3ed6b05 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ reads them, except the one file noted below | --- | --- | | `docs/superpowers/` | past plans and specs | | `docs/reviews/` | reviews and the review guide. Keep `docs/reviews/adapters/`: `check:adapter-inventory` (FE-GATE-010) reads its `INVENTORY.md`, whose rows link to the adapter reviews beside it, and `docs/operations/adapter-remediation-ledger.md` cites those reviews | -| `SPEC.md`, `tasks/` | requirements and task list of the 2026-09-25 review fix round | +| `SPEC.md`, `docs/history/` | requirements of the 2026-09-25 review fix round (`SPEC.md`), and the plans and evidence of finished work, that round's task list included | | `CLAUDE.md` | review instructions for the template repository itself; replace it with your own | | `PRODUCT.md` | product context of the template itself (users, purpose, principles) for design tools; replace it with your product's | diff --git a/artifacts/local-preview/home.png b/artifacts/local-preview/home.png deleted file mode 100644 index f62525f7..00000000 Binary files a/artifacts/local-preview/home.png and /dev/null differ diff --git a/artifacts/local-preview/not-found.png b/artifacts/local-preview/not-found.png deleted file mode 100644 index 0c4fc16a..00000000 Binary files a/artifacts/local-preview/not-found.png and /dev/null differ diff --git a/artifacts/local-preview/sample-session.png b/artifacts/local-preview/sample-session.png deleted file mode 100644 index 26346d3c..00000000 Binary files a/artifacts/local-preview/sample-session.png and /dev/null differ diff --git a/artifacts/tests/coverage-gateway/lcov-report/base.css b/artifacts/tests/coverage-gateway/lcov-report/base.css deleted file mode 100644 index f418035b..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/base.css +++ /dev/null @@ -1,224 +0,0 @@ -body, html { - margin:0; padding: 0; - height: 100%; -} -body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } -pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } -.clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; - } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } -} - -.quiet { - color: #7f7f7f; - color: rgba(0,0,0,0.5); -} -.quiet a { opacity: 0.7; } - -.fraction { - font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 10px; - color: #555; - background: #E8E8E8; - padding: 4px 5px; - border-radius: 3px; - vertical-align: middle; -} - -div.path a:link, div.path a:visited { color: #333; } -table.coverage { - border-collapse: collapse; - margin: 10px 0 0 0; - padding: 0; -} - -table.coverage td { - margin: 0; - padding: 0; - vertical-align: top; -} -table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; -} -table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; -} - -table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; -} -.missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; -} - -.skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; -} -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; -} -.coverage-summary { - border-collapse: collapse; - width: 100%; -} -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } -.coverage-summary th { - text-align: left; - font-weight: normal; - white-space: nowrap; -} -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } -.coverage-summary th.pic, -.coverage-summary th.abs, -.coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } - -.coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; -} -.coverage-summary .sorted .sorter { - background-position: 0 -20px; -} -.coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; -} -.status-line { height: 10px; } -/* yellow */ -.cbranch-no { background: yellow !important; color: #111; } -/* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } -.highlighted, -.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ - background: #C21F39 !important; -} -/* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } -/* light red */ -.low, .cline-no { background:#FCE1E5 } -/* light green */ -.high, .cline-yes { background:rgb(230,245,208) } -/* medium green */ -.cstat-yes { background:rgb(161,215,106) } -/* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } -/* dark yellow (gold) */ -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -.medium .chart { border:1px solid #f9cd0b; } -/* light yellow */ -.medium { background: #fff4c2; } - -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } - -span.cline-neutral { background: #eaeaea; } - -.coverage-summary td.empty { - opacity: .5; - padding-top: 4px; - padding-bottom: 4px; - line-height: 1; - color: #888; -} - -.cover-fill, .cover-empty { - display:inline-block; - height: 12px; -} -.chart { - line-height: 0; -} -.cover-empty { - background: white; -} -.cover-full { - border-right: none !important; -} -pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; -} -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -48px; -} -.footer, .push { - height: 48px; -} diff --git a/artifacts/tests/coverage-gateway/lcov-report/block-navigation.js b/artifacts/tests/coverage-gateway/lcov-report/block-navigation.js deleted file mode 100644 index 530d1ed2..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/block-navigation.js +++ /dev/null @@ -1,87 +0,0 @@ -/* eslint-disable */ -var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; - - // Elements to highlight in the file listing view - var fileListingElements = ['td.pct.low']; - - // We don't want to select elements that are direct descendants of another match - var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` - - // Selector that finds elements on the page to which we can jump - var selector = - fileListingElements.join(', ') + - ', ' + - notSelector + - missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); - - var currentIndex; - - function toggleClass(index) { - missingCoverageElements - .item(currentIndex) - .classList.remove('highlighted'); - missingCoverageElements.item(index).classList.add('highlighted'); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: 'smooth', - block: 'center', - inline: 'center' - }); - } - - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== 'number' || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } - - makeCurrent(nextIndex); - } - - function goToNext() { - var nextIndex = 0; - - if ( - typeof currentIndex === 'number' && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } - - makeCurrent(nextIndex); - } - - return function jump(event) { - if ( - document.getElementById('fileSearch') === document.activeElement && - document.activeElement != null - ) { - // if we're currently focused on the search input, we don't want to navigate - return; - } - - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; -})(); -window.addEventListener('keydown', jumpToCode); diff --git a/artifacts/tests/coverage-gateway/lcov-report/favicon.png b/artifacts/tests/coverage-gateway/lcov-report/favicon.png deleted file mode 100644 index c1525b81..00000000 Binary files a/artifacts/tests/coverage-gateway/lcov-report/favicon.png and /dev/null differ diff --git a/artifacts/tests/coverage-gateway/lcov-report/index.html b/artifacts/tests/coverage-gateway/lcov-report/index.html deleted file mode 100644 index e1c9591b..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/index.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - Code coverage report for All files - - - - - - - - - -
-
-

All files

-
- -
- 100% - Statements - 11/11 -
- - -
- 100% - Branches - 8/8 -
- - -
- 100% - Functions - 5/5 -
- - -
- 100% - Lines - 11/11 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
reference-http-gateway.ts -
-
100%11/11100%8/8100%5/5100%11/11
-
-
-
- - - - - - - - \ No newline at end of file diff --git a/artifacts/tests/coverage-gateway/lcov-report/prettify.css b/artifacts/tests/coverage-gateway/lcov-report/prettify.css deleted file mode 100644 index b317a7cd..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/artifacts/tests/coverage-gateway/lcov-report/prettify.js b/artifacts/tests/coverage-gateway/lcov-report/prettify.js deleted file mode 100644 index b3225238..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/prettify.js +++ /dev/null @@ -1,2 +0,0 @@ -/* eslint-disable */ -window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/artifacts/tests/coverage-gateway/lcov-report/reference-http-gateway.ts.html b/artifacts/tests/coverage-gateway/lcov-report/reference-http-gateway.ts.html deleted file mode 100644 index 809fef9e..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/reference-http-gateway.ts.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - Code coverage report for reference-http-gateway.ts - - - - - - - - - -
-
-

All files reference-http-gateway.ts

-
- -
- 100% - Statements - 11/11 -
- - -
- 100% - Branches - 8/8 -
- - -
- 100% - Functions - 5/5 -
- - -
- 100% - Lines - 11/11 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -2x -  -2x -  -  -  -  -  -  -  -  -  -  -5x -2x -  -  -  -  -3x -2x -  -  -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -8x -  -1x -  -  -6x -  -  -3x -  -  -  -  -  -  -  - 
import {
-  defineFeatureHttpOperationForRoutes,
-  type FeatureHttpBinding,
-} from "../../../adapters/http/index.ts";
-import {
-  CREATE_REFERENCE_RESOURCE_CONTRACT,
-  GET_REFERENCE_RESOURCE_CONTRACT,
-  LIST_REFERENCE_RESOURCES_CONTRACT,
-} from "../contracts/reference-feature-contract-contribution.ts";
-import {
-  REFERENCE_FEATURE_CONTRACT,
-} from "../contracts/reference-feature-contract.ts";
-import {
-  mapReferenceResourceListPayload,
-  mapReferenceResourcePayload,
-} from "../contracts/reference-mapper.ts";
-import type {
-  ReferenceGateway,
-} from "../application/reference-feature-api.ts";
- 
-export type ReferenceFeatureRouteId =
-  keyof typeof REFERENCE_FEATURE_CONTRACT.routes;
- 
-const defineReferenceHttpOperation =
-  defineFeatureHttpOperationForRoutes<ReferenceFeatureRouteId>();
- 
-export const REFERENCE_HTTP_OPERATIONS = Object.freeze({
-  LIST_REFERENCE_RESOURCES: defineReferenceHttpOperation({
-    contract: LIST_REFERENCE_RESOURCES_CONTRACT,
-    routeId: "REFERENCE_RESOURCE_LIST",
-    mapSuccess: mapReferenceResourceListPayload,
-  }),
-  CREATE_REFERENCE_RESOURCE: defineReferenceHttpOperation({
-    contract: CREATE_REFERENCE_RESOURCE_CONTRACT,
-    routeId: "REFERENCE_RESOURCE_LIST",
-    mapSuccess: mapReferenceResourcePayload,
-    mapProblem(problem, metadata) {
-      if (metadata.status === 409) {
-        return Object.freeze({
-          kind: "CONFLICT" as const,
-          code: problem.code ?? "REFERENCE_RESOURCE_CONFLICT",
-        });
-      }
-      if (metadata.status === 422) {
-        return Object.freeze({
-          kind: "VALIDATION_REJECTED" as const,
-          code: problem.code ?? "REFERENCE_RESOURCE_REJECTED",
-        });
-      }
-      return undefined;
-    },
-  }),
-  GET_REFERENCE_RESOURCE: defineReferenceHttpOperation({
-    contract: GET_REFERENCE_RESOURCE_CONTRACT,
-    routeId: "REFERENCE_RESOURCE_DETAIL",
-    mapSuccess: mapReferenceResourcePayload,
-  }),
-} as const);
- 
-export type ReferenceHttpBinding = FeatureHttpBinding<
-  typeof REFERENCE_HTTP_OPERATIONS
->;
- 
-export function createReferenceHttpGateway(
-  http: ReferenceHttpBinding,
-): ReferenceGateway {
-  return Object.freeze({
-    list(filters, context) {
-      return http.execute("LIST_REFERENCE_RESOURCES", filters, context);
-    },
-    create(command, context) {
-      return http.execute("CREATE_REFERENCE_RESOURCE", command, context);
-    },
-    get(resourceId, context) {
-      return http.execute(
-        "GET_REFERENCE_RESOURCE",
-        Object.freeze({ resourceId }),
-        context,
-      );
-    },
-  });
-}
- 
- -
-
- - - - - - - - \ No newline at end of file diff --git a/artifacts/tests/coverage-gateway/lcov-report/sort-arrow-sprite.png b/artifacts/tests/coverage-gateway/lcov-report/sort-arrow-sprite.png deleted file mode 100644 index 6ed68316..00000000 Binary files a/artifacts/tests/coverage-gateway/lcov-report/sort-arrow-sprite.png and /dev/null differ diff --git a/artifacts/tests/coverage-gateway/lcov-report/sorter.js b/artifacts/tests/coverage-gateway/lcov-report/sorter.js deleted file mode 100644 index 4ed70ae5..00000000 --- a/artifacts/tests/coverage-gateway/lcov-report/sorter.js +++ /dev/null @@ -1,210 +0,0 @@ -/* eslint-disable */ -var addSorting = (function() { - 'use strict'; - var cols, - currentSort = { - index: 0, - desc: false - }; - - // returns the summary table element - function getTable() { - return document.querySelector('.coverage-summary'); - } - // returns the thead element of the summary table - function getTableHeader() { - return getTable().querySelector('thead tr'); - } - // returns the tbody element of the summary table - function getTableBody() { - return getTable().querySelector('tbody'); - } - // returns the th element for nth column - function getNthColumn(n) { - return getTableHeader().querySelectorAll('th')[n]; - } - - function onFilterInput() { - const searchValue = document.getElementById('fileSearch').value; - const rows = document.getElementsByTagName('tbody')[0].children; - - // Try to create a RegExp from the searchValue. If it fails (invalid regex), - // it will be treated as a plain text search - let searchRegex; - try { - searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive - } catch (error) { - searchRegex = null; - } - - for (let i = 0; i < rows.length; i++) { - const row = rows[i]; - let isMatch = false; - - if (searchRegex) { - // If a valid regex was created, use it for matching - isMatch = searchRegex.test(row.textContent); - } else { - // Otherwise, fall back to the original plain text search - isMatch = row.textContent - .toLowerCase() - .includes(searchValue.toLowerCase()); - } - - row.style.display = isMatch ? '' : 'none'; - } - } - - // loads the search box - function addSearchBox() { - var template = document.getElementById('filterTemplate'); - var templateClone = template.content.cloneNode(true); - templateClone.getElementById('fileSearch').oninput = onFilterInput; - template.parentElement.appendChild(templateClone); - } - - // loads all columns - function loadColumns() { - var colNodes = getTableHeader().querySelectorAll('th'), - colNode, - cols = [], - col, - i; - - for (i = 0; i < colNodes.length; i += 1) { - colNode = colNodes[i]; - col = { - key: colNode.getAttribute('data-col'), - sortable: !colNode.getAttribute('data-nosort'), - type: colNode.getAttribute('data-type') || 'string' - }; - cols.push(col); - if (col.sortable) { - col.defaultDescSort = col.type === 'number'; - colNode.innerHTML = - colNode.innerHTML + ''; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll('td'), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute('data-value'); - if (col.type === 'number') { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll('tr'), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function(a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector('.coverage-summary tbody'), - rowNodes = tableBody.querySelectorAll('tr'), - rows = [], - i; - - if (desc) { - finalSorter = function(a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc - ? ' sorted-desc' - : ' sorted'; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function() { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i = 0; i < cols.length; i += 1) { - if (cols[i].sortable) { - // add the click event handler on the th so users - // dont have to click on those tiny arrows - el = getNthColumn(i).querySelector('.sorter').parentElement; - if (el.addEventListener) { - el.addEventListener('click', ithSorter(i)); - } else { - el.attachEvent('onclick', ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function() { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(); - addSearchBox(); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener('load', addSorting); diff --git a/artifacts/tests/coverage-gateway/lcov.info b/artifacts/tests/coverage-gateway/lcov.info deleted file mode 100644 index 9b778008..00000000 --- a/artifacts/tests/coverage-gateway/lcov.info +++ /dev/null @@ -1,38 +0,0 @@ -TN: -SF:src/features/reference-feature/adapters/reference-http-gateway.ts -FN:37,mapProblem -FN:64,createReferenceHttpGateway -FN:68,list -FN:71,create -FN:74,get -FNF:5 -FNH:5 -FNDA:5,mapProblem -FNDA:8,createReferenceHttpGateway -FNDA:1,list -FNDA:6,create -FNDA:3,get -DA:25,2 -DA:27,2 -DA:38,5 -DA:39,2 -DA:44,3 -DA:45,2 -DA:50,1 -DA:67,8 -DA:69,1 -DA:72,6 -DA:75,3 -LF:11 -LH:11 -BRDA:38,0,0,2 -BRDA:38,0,1,3 -BRDA:41,1,0,2 -BRDA:41,1,1,1 -BRDA:44,2,0,2 -BRDA:44,2,1,1 -BRDA:47,3,0,2 -BRDA:47,3,1,1 -BRF:8 -BRH:8 -end_of_record diff --git a/config/schemas/field-web-vitals.schema.json b/config/schemas/field-web-vitals.schema.json deleted file mode 100644 index b49b2b87..00000000 --- a/config/schemas/field-web-vitals.schema.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ART-FE-FIELD-WEB-VITALS@1", - "type": "object", - "required": [ - "schemaVersion", - "generatedAt", - "window", - "context", - "metrics", - "thresholds", - "eligibility", - "status", - "passed" - ], - "properties": { - "schemaVersion": { "const": 1 }, - "generatedAt": { "type": "string", "format": "date-time" }, - "window": { "type": "object", "required": ["days", "start", "end"] }, - "context": { - "type": "object", - "required": [ - "source", - "sourceSystem", - "exportId", - "network", - "routeAggregation", - "releaseId", - "privacyApprovalRef", - "thresholdDecisionRef", - "validationFailures" - ], - "properties": { - "source": { "type": "string" }, - "sourceSystem": { "type": ["string", "null"] }, - "exportId": { "type": ["string", "null"] }, - "network": { "const": "production-real-user" }, - "routeAggregation": { "const": "route-id-only" }, - "releaseId": { "type": ["string", "null"] }, - "privacyApprovalRef": { "type": ["string", "null"] }, - "thresholdDecisionRef": { "type": ["string", "null"] }, - "validationFailures": { - "type": "array", - "items": { "type": "string" } - } - }, - "additionalProperties": false - }, - "thresholds": { - "type": "object", - "required": [ - "p75LcpMs", - "p75Cls", - "p75InpMs", - "minimumEligibleSamples" - ] - }, - "metrics": { - "type": "object", - "required": ["p75LcpMs", "p75Cls", "p75InpMs"] - }, - "eligibility": { - "type": "object", - "required": [ - "consentRequired", - "totalSamples", - "eligibleSamples", - "minimumEligibleSamples", - "routeSamples" - ] - }, - "status": { - "enum": ["PASS", "FAIL_THRESHOLD", "FAIL_UNVERIFIED"] - }, - "passed": { "type": "boolean" } - }, - "additionalProperties": false -} diff --git a/config/schemas/lab-performance.schema.json b/config/schemas/lab-performance.schema.json deleted file mode 100644 index 7d0297f0..00000000 --- a/config/schemas/lab-performance.schema.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ART-FE-LAB@1", - "type": "object", - "required": [ - "schemaVersion", - "generatedAt", - "context", - "metrics", - "thresholds", - "fixtures", - "passed" - ], - "properties": { - "schemaVersion": { "const": 1 }, - "generatedAt": { "type": "string", "format": "date-time" }, - "context": { - "type": "object", - "required": ["runner", "browser", "viewport", "network", "cpu", "cache", "build"] - }, - "metrics": { - "type": "object", - "required": ["lcpMs", "cls", "namedInteractionMs", "targetDeepLinkCls", "featureRouteInteractionMs"] - }, - "thresholds": { "type": "object" }, - "fixtures": { "type": "array", "minItems": 2 }, - "passed": { "type": "boolean" } - }, - "additionalProperties": false -} diff --git a/config/schemas/release-verification.schema.json b/config/schemas/release-verification.schema.json deleted file mode 100644 index 29e5ff78..00000000 --- a/config/schemas/release-verification.schema.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ART-FE-003@1", - "type": "object", - "required": ["schemaVersion", "generatedAt", "artifact", "fixtures", "passed"], - "properties": { - "schemaVersion": { "const": 1 }, - "generatedAt": { "type": "string", "format": "date-time" }, - "artifact": { - "type": "object", - "required": ["checked", "compatible", "mismatches"] - }, - "fixtures": { "type": "array", "minItems": 2 }, - "passed": { "type": "boolean" } - }, - "additionalProperties": false -} diff --git a/config/schemas/runbook-drill-record.schema.json b/config/schemas/runbook-drill-record.schema.json deleted file mode 100644 index 9affe249..00000000 --- a/config/schemas/runbook-drill-record.schema.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ART-FE-RUNBOOK-DRILL@2", - "type": "object", - "required": [ - "schemaVersion", - "runbookId", - "releaseId", - "drillTimestamp", - "triggerInjected", - "triggerAsserted", - "containmentAsserted", - "escalationPathAsserted", - "recoveryAssertions", - "negativeFixtureFailedAsExpected", - "windowObservedBucket", - "providerVerificationRequired", - "result" - ], - "$defs": { - "verdict": { "enum": ["PASS", "FAIL", "UNVERIFIED"] } - }, - "properties": { - "schemaVersion": { "const": 2 }, - "runbookId": { "pattern": "^FE-RB-00[1-5]$" }, - "releaseId": { "type": "string", "minLength": 1 }, - "drillTimestamp": { "type": "string", "format": "date-time" }, - "triggerInjected": { "type": "string" }, - "triggerAsserted": { "$ref": "#/$defs/verdict" }, - "containmentAsserted": { "$ref": "#/$defs/verdict" }, - "escalationPathAsserted": { "$ref": "#/$defs/verdict" }, - "recoveryAssertions": { - "type": "array", - "minItems": 4, - "items": { - "type": "object", - "required": ["assertion", "evidence", "result"], - "properties": { - "assertion": { "type": "string", "minLength": 1 }, - "evidence": { "type": "string", "minLength": 1 }, - "result": { "$ref": "#/$defs/verdict" } - }, - "additionalProperties": false - } - }, - "negativeFixtureFailedAsExpected": { "$ref": "#/$defs/verdict" }, - "windowObservedBucket": { "type": "string" }, - "providerVerificationRequired": { "type": "boolean" }, - "result": { "$ref": "#/$defs/verdict" } - }, - "additionalProperties": false -} diff --git a/docs/README.md b/docs/README.md index 8ee965f4..74dc482b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -88,4 +88,26 @@ checkout이 없거나 그 커밋이 없으면 실패 대신 확인하지 못한 |---|---| | [`superpowers/`](superpowers/) | 과거 작업 계획과 스펙 | | [`reviews/`](reviews/) | 리뷰 결과. 리뷰 가이드와 실행 체크리스트는 2026-11-06에 design-docs 저장소로 옮겼고, 여기에는 정본 위치를 알려 주는 포인터 두 개만 있다. `reviews/adapters/INVENTORY.md`만 게이트가 읽는다. `reviews/adapters/`는 지우지 않는다: INVENTORY의 행과 `operations/adapter-remediation-ledger.md`가 그 안의 리뷰로 링크한다 | -| [`../SPEC.md`](../SPEC.md), [`../tasks/`](../tasks/) | 2026-09-25 리뷰 수정 라운드의 요구사항과 작업 목록. 그 라운드는 0.2.0(`CHANGELOG.md`)으로 끝났다. 그때 리뷰 문서(`reviews/2026-09-25-maturity-review/`)가 이 경로(`SPEC.md:18` 등)로 가리키므로 옮기지 않는다 | +| [`history/`](history/) | 끝난 작업의 계획서(`history/plans/`)와 증거(`history/evidence/`). 파일마다 맨 위에 머리 블록이 있다(아래 4절). 2026-11-07에 루트에서 옮겼다: `tasks/` → `history/plans/2026-09-25-review-fix-round/`, `.superpowers/sdd/2026-08-01-runtime-correctness-remediation/` → `history/evidence/2026-08-01-runtime-correctness-remediation/`. 그때의 기록 문서(`superpowers/plans/`, `reviews/2026-09-25-maturity-review/`, 루트 `SPEC.md`)는 옛 경로로 가리킨다. 기록이라 고치지 않는다 | +| [`../SPEC.md`](../SPEC.md) | 2026-09-25 리뷰 수정 라운드의 요구사항. 그 라운드는 0.2.0(`CHANGELOG.md`)으로 끝났다. 27~37줄 「공통 완료 기준」을 작업 매뉴얼로 옮긴 뒤 같은 라운드의 계획서 옆(`history/plans/2026-09-25-review-fix-round/`)으로 옮긴다 | + +## 4. 기록 문서의 머리 블록 + +`history/` 아래 `.md` 파일은 맨 위에 이 블록을 둔다. 블록을 빼면 쓴 때의 원문이다. 본문은 +고치지 않고 블록의 칸만 고친다. 형식의 정본은 design-docs 저장소의 +`conventions/docs-system.md` 4절이다. + +```text + +> **기록 · 계획서** 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다. + +- 상태: 끝남 +- 작성일: 2026-09-25 +- 요약: 한국어 한 문장 +- 현재 정본: 지금 동작을 설명하는 문서나 코드의 경로. 없으면 「없음 — 이유」 + +``` + +- 종류는 폴더가 정하고 둘째 줄에 굵게 적는다: `history/plans/` 계획서, `history/evidence/` 증거. +- 상태: 계획서는 실행 중 · 끝남 · 중단 · 대체됨 · 확인 안 함, 증거는 보관. +- `.md`가 아닌 파일(레인 준비 셸 스크립트)에는 달지 않는다. 같은 폴더 문서의 블록이 그 파일을 설명한다. diff --git a/docs/architecture/static-delivery.md b/docs/architecture/static-delivery.md index 66caf133..bcf8c6d1 100644 --- a/docs/architecture/static-delivery.md +++ b/docs/architecture/static-delivery.md @@ -56,7 +56,7 @@ Serve JavaScript compressed (gzip, brotli or zstd). The bundle budget counts gzip bytes; uncompressed, the initial JavaScript is about three times larger. Both premises are declared in `config/hosting/cache-policy.json` (`transport.alpnProtocols`, `hashedAsset.contentEncodings`), and the live probe -of FE-GATE-019 fails a host that does not meet them (review 1103/13-02). The -nginx example in -[`release-cache-rollback.md`](../operations/release-cache-rollback.md) turns -both on. +of FE-GATE-019 fails a host that does not meet them (review 1103/13-02). Every +condition the host has to meet, and what checks each one, is in 「운영 환경이 +지켜야 할 조건」 in +[`release-cache-rollback.md`](../operations/release-cache-rollback.md#운영-환경이-지켜야-할-조건). diff --git a/.superpowers/sdd/2026-08-01-runtime-correctness-remediation/task-5-report.md b/docs/history/evidence/2026-08-01-runtime-correctness-remediation/task-5-report.md similarity index 95% rename from .superpowers/sdd/2026-08-01-runtime-correctness-remediation/task-5-report.md rename to docs/history/evidence/2026-08-01-runtime-correctness-remediation/task-5-report.md index 1b11417e..bfc4c2d9 100644 --- a/.superpowers/sdd/2026-08-01-runtime-correctness-remediation/task-5-report.md +++ b/docs/history/evidence/2026-08-01-runtime-correctness-remediation/task-5-report.md @@ -1,3 +1,12 @@ + +> **기록 · 증거** 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다. + +- 상태: 보관 +- 작성일: 2026-08-02 +- 요약: 런타임 정합성 수정 Task 5(결과가 불확실한 낙관적 변경을 남기고 나중에 맞추기)의 구현과 RED 증거 보고다. +- 현재 정본: `src/presentation/adapters/query/optimistic-layer-runtime.ts`, `src/presentation/adapters/query/application-query.ts` + + # Task 5 Report: Retain and reconcile uncertain optimistic mutations ## Status diff --git a/tasks/handoff.md b/docs/history/plans/2026-09-25-review-fix-round/handoff.md similarity index 93% rename from tasks/handoff.md rename to docs/history/plans/2026-09-25-review-fix-round/handoff.md index 66e284f3..317ecf2b 100644 --- a/tasks/handoff.md +++ b/docs/history/plans/2026-09-25-review-fix-round/handoff.md @@ -1,3 +1,12 @@ + +> **기록 · 계획서** 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다. + +- 상태: 끝남 +- 작성일: 2026-09-26 +- 요약: 2026-09-25 리뷰 수정 작업을 노트북에서 desktop으로 넘길 때 쓴 인계 문서다. +- 현재 정본: 없음 — 끝난 라운드의 계획이다. 이 라운드가 바꾼 것은 `CHANGELOG.md` 0.2.0 절에 있다 + + # 인계: 성숙도 리뷰(2026-09-25) 수정 작업 2026-09-26 01:10, 노트북 부하 때문에 세션을 멈추고 desktop으로 옮긴다. 이 문서만 읽고 이어서 진행할 수 있게 적었다. diff --git a/tasks/lanes/LANE-BRIEF.md b/docs/history/plans/2026-09-25-review-fix-round/lanes/LANE-BRIEF.md similarity index 93% rename from tasks/lanes/LANE-BRIEF.md rename to docs/history/plans/2026-09-25-review-fix-round/lanes/LANE-BRIEF.md index 2d41d186..02015183 100644 --- a/tasks/lanes/LANE-BRIEF.md +++ b/docs/history/plans/2026-09-25-review-fix-round/lanes/LANE-BRIEF.md @@ -1,3 +1,12 @@ + +> **기록 · 계획서** 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다. + +- 상태: 끝남 +- 작성일: 2026-09-26 +- 요약: 2026-09-25 리뷰 수정의 병렬 레인 에이전트가 먼저 읽던 공통 지시서이고, 같은 폴더의 setup-lane.sh가 레인 worktree를 만들었다. +- 현재 정본: 없음 — 이 라운드에서만 쓴 레인 작업 방식이다 + + # 구현 레인 공통 지시서 (모든 레인 에이전트가 먼저 읽는다) 원본 repo: 이 저장소를 clone한 경로(아래 `$REPO`) diff --git a/tasks/lanes/setup-lane.sh b/docs/history/plans/2026-09-25-review-fix-round/lanes/setup-lane.sh similarity index 100% rename from tasks/lanes/setup-lane.sh rename to docs/history/plans/2026-09-25-review-fix-round/lanes/setup-lane.sh diff --git a/tasks/plan.md b/docs/history/plans/2026-09-25-review-fix-round/plan.md similarity index 91% rename from tasks/plan.md rename to docs/history/plans/2026-09-25-review-fix-round/plan.md index ac9fe234..1b9aac14 100644 --- a/tasks/plan.md +++ b/docs/history/plans/2026-09-25-review-fix-round/plan.md @@ -1,3 +1,12 @@ + +> **기록 · 계획서** 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다. + +- 상태: 끝남 +- 작성일: 2026-09-25 +- 요약: 2026-09-25 성숙도 리뷰 발견 138건을 Phase 0, 병렬 레인, 통합 순서로 고치는 실행 계획이고, 라운드는 v0.2.0(2026-09-27)으로 끝났다. +- 현재 정본: 없음 — 끝난 라운드의 계획이다. 이 라운드가 바꾼 것은 `CHANGELOG.md` 0.2.0 절에 있다 + + # Implementation Plan: 성숙도 리뷰(2026-09-25) 전 항목 반영 ## Overview diff --git a/tasks/todo.md b/docs/history/plans/2026-09-25-review-fix-round/todo.md similarity index 95% rename from tasks/todo.md rename to docs/history/plans/2026-09-25-review-fix-round/todo.md index af65c3aa..490c3968 100644 --- a/tasks/todo.md +++ b/docs/history/plans/2026-09-25-review-fix-round/todo.md @@ -1,3 +1,12 @@ + +> **기록 · 계획서** 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다. + +- 상태: 끝남 +- 작성일: 2026-09-25 +- 요약: 2026-09-25 성숙도 리뷰 발견 138건을 작업으로 나눈 목록으로, 발견은 모두 표시됐고 마지막 확인 3개와 사용자 몫 U-1~U-5는 표시되지 않은 채 라운드가 v0.2.0으로 끝났다. +- 현재 정본: 없음 — 끝난 라운드의 계획이다. 이 라운드가 바꾼 것은 `CHANGELOG.md` 0.2.0 절에 있다 + + # Tasks: 성숙도 리뷰(2026-09-25) 전 항목 반영 작업 ID는 리뷰의 발견 ID다. 문제 설명·근거·검증 방법은 `docs/reviews/2026-09-25-maturity-review/<영역 문서>`의 같은 ID 항목을 본다. 결정은 `SPEC.md` "결정" 표(D-x), 실행 방식은 `tasks/plan.md`를 따른다. diff --git a/docs/operations/ci-quality-gates.md b/docs/operations/ci-quality-gates.md index ebb83275..e65b6c49 100644 --- a/docs/operations/ci-quality-gates.md +++ b/docs/operations/ci-quality-gates.md @@ -218,26 +218,9 @@ sandbox는 `bwrap --unshare-pid --unshare-ipc --unshare-uts --unshare-net`으로 namespaces"와 bwrap의 stderr, 위 sysctl 값, 고치는 방법을 적고 exit 1로 멈춘다. 전에는 이 검사가 PASS를 낸 뒤 provider 테스트가 bwrap 원문 오류로 실패했다(2026-11-05 desktop에서 114건 중 18건). -- 고치는 방법은 셋 중 하나다. 호스트의 보안 설정을 바꾸는 일이므로 호스트 - 소유자가 고른다. - 1. `/usr/bin/bwrap`에 `userns`를 허용하는 AppArmor profile을 둔다. Ubuntu - 문서가 안내하는 형태는 아래와 같다. `/etc/apparmor.d/bwrap`에 두고 - `sudo apparmor_parser -r /etc/apparmor.d/bwrap`으로 읽게 한다. - 2. 직접 관리하는 호스트라면 sysctl - `kernel.apparmor_restrict_unprivileged_userns=0`으로 제한을 끈다. 이 설정이 - 없는 커널에서는 `kernel.unprivileged_userns_clone=1`이 같은 역할이다. - 3. 비특권 user namespace를 허용하는 다른 runner에서 FE-GATE-013과 provider - job을 돌린다. - -```text -abi , -include - -profile bwrap /usr/bin/bwrap flags=(unconfined) { - userns, - include if exists -} -``` +- 고치는 방법은 `scripts/check-system-test-prerequisites.ts`가 실패할 때 + 출력한다. 호스트의 보안 설정을 바꾸는 일이므로 호스트 소유자가 고른다. + 호스트를 바꾸는 설정 파일과 명령은 runner를 만드는 쪽의 인프라 repo가 갖는다. 각 provider는 고유한 collected user scope에서 실행된다. Supervisor는 실행 전에 실제 cgroup membership과 `memory.max=1073741824`, `memory.swap.max=0`, diff --git a/docs/operations/release-cache-rollback.md b/docs/operations/release-cache-rollback.md index 5d782079..a997ec55 100644 --- a/docs/operations/release-cache-rollback.md +++ b/docs/operations/release-cache-rollback.md @@ -112,83 +112,6 @@ declaration in `config/hosting/cache-policy.json` in the same change that groups its initial chunks ("초기 청크 수와 HTTP/1.1" in [`performance-evidence.md`](performance-evidence.md)). -### Example: nginx on a single server - -Written by hand for the default base path `/`; nothing in CI runs it. The live -probe above is what checks the host. `add_header` in a `location` replaces the -ones inherited from `server`, so the security headers -(`config/hosting/security-headers.json`) are an include repeated in each block. - -```nginx -# /etc/nginx/snippets/frontend-security-headers.conf -add_header Content-Security-Policy "default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; form-action 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self' https:; font-src 'self'; upgrade-insecure-requests" always; -add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; -add_header X-Frame-Options "DENY" always; -add_header Referrer-Policy "strict-origin-when-cross-origin" always; -add_header X-Content-Type-Options "nosniff" always; -add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always; -``` - -```nginx -server { - listen 443 ssl; - # nginx 1.25.1 and later; before it, `listen 443 ssl http2;`. - http2 on; - server_name app.example.com; - # ssl_certificate / ssl_certificate_key ... - - # The bundle budget counts gzip bytes, and FE-GATE-019 fails an - # uncompressed entry script (cache-policy.json `hashedAsset`). nginx - # compresses only text/html unless gzip_types names the rest. - gzip on; - gzip_vary on; - gzip_types text/javascript application/javascript application/json text/css image/svg+xml; - - # The active release directory. Switch it with an atomic symlink rename. - root /srv/frontend/current; - - # index.html, and every app route through the fallback below. - location = /index.html { - add_header Cache-Control "no-cache"; - include snippets/frontend-security-headers.conf; - } - location / { - try_files $uri /index.html; - include snippets/frontend-security-headers.conf; - } - - location = /config.json { - add_header Cache-Control "no-store"; - include snippets/frontend-security-headers.conf; - } - location = /release-manifest.json { - add_header Cache-Control "no-store"; - include snippets/frontend-security-headers.conf; - } - - # Hashed files of every retained release in one directory (names never - # collide). Prune by age, not on switch. A missing chunk is a 404, never - # index.html: an old tab has to see the failure to reload once (FE-RB-002). - location /assets/ { - root /srv/frontend/shared; - add_header Cache-Control "public, max-age=31536000, immutable"; - try_files $uri =404; - } - - # Only when the build ships a worker (cache-policy.json `serviceWorker`). - location = /service-worker.js { - add_header Cache-Control "no-cache"; - try_files $uri =404; - } - - location ~ \.map$ { - return 404; - } -} -``` - -`Cache-Control` has no `always`, so a 404 is never stored as immutable. - FE-GATE-019 is therefore a production-stage gate (`production_gate` job, `PROD_PROMOTION_READY`). It runs after `promotion` and after the `deployment` job. That job is the project's deployment slot and is empty in this @@ -204,6 +127,79 @@ active (the rolling window modeled in `tests/release/release-fixture.ts`). Size it to the longest session the product supports; a tab older than that depends on the reload-once recovery (FE-RB-002). +## 운영 환경이 지켜야 할 조건 + +이 repo는 호스트 설정 파일(nginx 등)을 두지 않는다(2026-11-07 소유자 결정). 그 파일은 +서비스를 배포하는 쪽의 인프라 repo가 갖는다. 그 호스트가 지켜야 할 조건은 아래다. 값의 +정본은 `config/hosting/cache-policy.json`과 `config/hosting/security-headers.json`이다. + +조건마다 끝에 누가 재는지 적었다. + +- **FE-GATE-019가 잰다**: `verify:hosting-headers`의 live 모드가 배포된 호스트에 요청해 + 확인한다. 배포 슬롯이 이 release를 배포했을 때만 돈다. 슬롯이 비면 호스트를 재지 않고 + `UNVERIFIED`로 끝난다(위 단락). +- **아무도 재지 않는다**: 계약 파일에도 검사에도 없다. 호스트를 맡은 쪽이 직접 확인한다. + +**주소와 연결** + +1. 앱은 HTTPS origin의 루트(`/`)에서 내보낸다. 인증서가 유효하고, 어느 surface도 그 + origin 밖으로 redirect하지 않는다. — FE-GATE-019가 잰다. `HOSTING_BASE_URL`은 경로 없는 + HTTPS 루트 URL이어야 하고, surface마다 최종 origin을 본다. +2. TLS에서 HTTP/2를 맺는다(ALPN `h2`). — FE-GATE-019가 잰다(`transport.alpnProtocols`). + +**surface별 응답** (surface: probe가 요청하는 경로 하나) + +3. `index.html`은 `Cache-Control: no-cache`와 `text/html`로 준다. — FE-GATE-019가 + `/`로 잰다(`surfaces.index`). +4. 빌드에 파일이 없는 모든 앱 경로(새로 고침, 북마크, 공유 링크)에는 200으로 그 release의 + `index.html`을 3과 같은 헤더로 준다(SPA fallback). — FE-GATE-019가 잰다 + (`surfaces.appRoute`, `/__probe/deep-link`). +5. `config.json`과 `release-manifest.json`은 `Cache-Control: no-store`와 + `application/json`으로 준다. — FE-GATE-019가 잰다(`surfaces.runtimeConfig`, + `surfaces.releaseManifest`). +6. 3~5의 응답에는 `config/hosting/security-headers.json`의 헤더를 모두 그 값 그대로 + 붙인다. — FE-GATE-019가 잰다(`securityHeaders`가 참인 surface). +7. 오류 응답(404, 5xx)에도 6의 보안 헤더를 붙인다. — 아무도 재지 않는다. probe는 200 + 응답만 본다. +8. `assets/` 아래 hashed 파일은 + `Cache-Control: public, max-age=31536000, immutable`로 준다. — 진입 스크립트 하나는 + FE-GATE-019가 잰다(`surfaces.hashedAsset`). 나머지 파일의 `Cache-Control`은 아무도 재지 + 않는다. +9. hashed 파일은 redirect 없이 200으로, 확장자에 맞는 `Content-Type`으로 준다. — + FE-GATE-019가 확장자마다 첫 파일 하나를 잰다(위 단락, `CACHEABLE_ASSET_CONTENT_TYPES`). +10. JavaScript는 압축해서 보낸다(`br`, `gzip`, `zstd` 중 하나). 번들 예산이 gzip 크기를 + 센다. — 진입 스크립트는 FE-GATE-019가 잰다(`hashedAsset.contentEncodings`). 나머지 + 청크는 아무도 재지 않는다. CSS·JSON·SVG 압축은 예산이 기대지 않고, 아무도 재지 않는다. +11. 압축한 응답에는 `Vary: Accept-Encoding`을 붙인다. 공유 캐시가 압축한 본문을 압축을 받지 + 못하는 클라이언트에 주지 않게 한다. — 아무도 재지 않는다. +12. 없는 hashed 파일을 요청하면 404로 답한다. `index.html`로 대신 답하지 않는다. 옛 탭은 + 그 실패를 봐야 한 번 새로 고친다(FE-RB-002). — 아무도 재지 않는다. +13. 404 같은 오류 응답에는 `immutable` 캐시 헤더를 붙이지 않는다. 붙이면 브라우저와 CDN이 + 그 실패를 hashed 파일처럼 오래 저장한다. — 아무도 재지 않는다. +14. 빌드가 Service Worker를 실으면 `/service-worker.js`는 redirect 없이 200, + `Cache-Control: no-cache`, JavaScript `Content-Type`으로 준다. — FE-GATE-019가 잰다 + (`surfaces.serviceWorker`). +15. 빌드가 worker를 싣지 않으면 `/service-worker.js`는 404로 답한다. SPA fallback이 + `index.html`로 대신 답하지 않는다(아래 「Service Worker steps」 4). — 아무도 재지 않는다. + worker가 없는 빌드에서는 probe가 이 경로를 요청하지 않는다. +16. 소스맵을 공개하지 않는다. — release의 `dist`에 `.map`이 없는지는 FE-GATE-019가 + 잰다(`surfaces.sourceMap`). 호스트가 `.map` 요청을 404로 막는지는 아무도 재지 않는다. + +**배포와 롤백** + +17. release 묶음(`index.html`, `config.json`, `release-manifest.json`, + `service-worker.js`)을 한 번에 바꾼다. 옛 파일과 새 파일이 섞여 보이는 순간이 없다. — + 바꾼 뒤 `release-manifest.json`·`config.json`·`index.html`이 이 release의 것인지는 + FE-GATE-019가 잰다. 바꾸는 도중에 섞이지 않는지는 아무도 재지 않는다. +18. 지난 release의 hashed 파일을 release를 바꿀 때 지우지 않는다. 이름이 겹치지 않으므로 한 + 곳에 모아 둘 수 있고, 보관 기간(위 단락)이 지난 것만 지운다. — 호스트에서는 아무도 + 재지 않는다. 템플릿 안의 호스트 모형(`tests/release/release-fixture.ts`)은 + `tests/release/old-asset-reachability.test.ts`가 시험한다. +19. 롤백은 지난 release의 묶음(17)을 그대로 다시 내보낸다. 옛 commit을 다시 빌드하거나 + HTML만 바꾸지 않는다(맨 위 단락). 18 덕분에 그 release의 hashed 파일은 남아 있다. — + 되돌릴 release의 묶음과 파일은 바꾸기 전에 `drill:runbook -- FE-RB-005`가 확인한다. + 호스트에서 바꾼 결과는 아무도 재지 않는다. 그 drill은 `UNVERIFIED`로 끝난다(위 단락). + ## Service Worker steps (only when the static selection is not `null`) The worker is part of the release tuple: `service-worker.js` comes from the diff --git a/tests/unit/deletable-history-documents.test.ts b/tests/unit/deletable-history-documents.test.ts index 387fbd63..77dcdf98 100644 --- a/tests/unit/deletable-history-documents.test.ts +++ b/tests/unit/deletable-history-documents.test.ts @@ -23,12 +23,16 @@ const ROOT_FILES = [ // Built from pieces so that this file does not match itself. const REVIEWS = ["docs", "reviews", ""].join("/"); const KEPT = `${REVIEWS}adapters/INVENTORY.md`; +// The 2026-09-25 round's task folder moved into the history folder on +// 2026-11-07 (docs/README.md §3), so the history pattern covers it. A pattern +// for the old root folder would now only catch a product's own route or +// folder of that name. const DELETABLE = [ new RegExp(`${REVIEWS}(?!adapters/INVENTORY\\.md)`, "u"), new RegExp(["docs", "superpowers"].join("/"), "u"), + new RegExp(["docs", "history"].join("/"), "u"), new RegExp(`\\b${"SPEC"}\\.md\\b`, "u"), new RegExp(`\\b${"CLAUDE"}\\.md\\b`, "u"), - new RegExp(`(^|["'\`(\\s])${"tasks"}/`, "u"), ]; /** * 1101/14-01. A section number without a document name cannot be followed, diff --git a/tests/unit/tracked-artifacts.test.ts b/tests/unit/tracked-artifacts.test.ts new file mode 100644 index 00000000..856600b1 --- /dev/null +++ b/tests/unit/tracked-artifacts.test.ts @@ -0,0 +1,35 @@ +import { spawnSync } from "node:child_process"; + +import { describe, expect, it } from "vitest"; + +/** + * 0929/14-01. `artifacts/` is run output, but screenshots and a coverage + * report were committed there and stayed tracked with nothing reading them. + * `.gitignore` ignores the folder as a whole and re-includes only what people + * write or keep: the folder markers and the manual a11y reviews, which the + * a11y gates read (`config/ci/gates.json`). A file `git add -f` puts outside + * that list fails here. + */ +const ALLOWED = [ + /^artifacts\/runbooks\/\.gitkeep$/u, + /^artifacts\/tests\/\.gitkeep$/u, + /^artifacts\/tests\/a11y-manual\/[^/]+\.md$/u, +]; + +function trackedArtifacts(): string[] { + const listed = spawnSync("git", ["ls-files", "-z", "--", "artifacts"], { + encoding: "utf8", + }); + if (listed.error || listed.status !== 0) { + throw new Error(`git ls-files failed: ${listed.error?.message ?? listed.stderr}`); + } + return listed.stdout.split("\0").filter((file) => file !== ""); +} + +describe("tracked artifacts", () => { + it("are only the folder markers and the manual a11y reviews", () => { + expect( + trackedArtifacts().filter((file) => !ALLOWED.some((pattern) => pattern.test(file))), + ).toEqual([]); + }); +});