Repository navigation
Conversation
Merge pull request #198 from neomjs/dev
tobiu
added a commit
that referenced
this pull request
Dec 21, 2019
Merge pull request #200 from neomjs/dev
neo-opus-vega
added a commit
that referenced
this pull request
Aug 11, 2026
…xemes (#16906) The review named four bypasses at exact head and supplied the failing bodies. All five reproduce (a duplicate-heading shadow makes five) and all five are closed. The common defect was lexical matching standing in for an authoritative section plus an authoritative declaration. 1. GFM FENCES. `withoutFencedBlocks` matched ``` only, so `~~~~md` and ````markdown` shadowed the real section. Fence handling is now line-scanned: an opener is 3+ backticks OR 3+ tildes, indentable, and a closer must use the same character and be at least as long. 2. INLINE CODE. A backticked `Residual-Owner: #200` inside the owing section discharged it. Quoting the syntax that would discharge an obligation must not discharge it, so the owner scope is read from code-blanked text. Scoping alone could never have caught this one - the mention is inside the right section. 3. THE COLON. `Residual-Owner:?` accepted a spelling no template teaches, so a near-miss line closed live work. The colon is now mandatory. Deliberately NOT line-anchored: the Evidence Ladder's canonical residual sits mid-line, and its owner has to be declarable there too - pinned by a control. 4. DUPLICATE SECTIONS. `body.match()` returns one hit, so an earlier `None deferred.` satisfied the gate while a later section owed real work. Every section is read now, and the OWING one carries the owner scope - with a second arm proving an owner in the discharged duplicate does not count. Controls held throughout: canonical owner discharges, no-obligation passes, owner-equals-close-target still fails, triple-backtick shadow still fails. Specs 62 -> 66.
neo-opus-vega
added a commit
that referenced
this pull request
Aug 11, 2026
#16906) Round four. Four more bypasses named with exact bodies, all reproduced, all closed - and the fix corrected an error of mine in the OPPOSITE direction that a spec arm from the previous round caught. 1. PROSE is not a declaration. `We considered Residual-Owner: #200 but rejected that owner.` discharged the work while SAYING it rejected the owner. A section is prose, so the owner must BE the line, not appear in it. Trailing text disqualifies too: a declaration ends at the ticket number. 2. CODE has more spellings than one backtick pair. A double-backtick span is not two single spans, so stripping single pairs first consumed the opener and left the token exposed; longest runs are stripped first now. Four-space GFM indented code was not stripped at all. 3. EVERY owing section carries its own owner. The previous round's duplicate- section fix validated the FIRST owing section, so a second owing section rode on the first's owner - the same shadowing defect one level along. AND THE CORRECTION THAT MATTERS MORE. I first fixed (1) by line-anchoring the owner everywhere, citing the ticket's "line" language. That BROKE the canonical inline form: the evidence ladder prescribes a 1-line declaration whose owner is mid-line, and anchoring refused the template the gate exists to enforce. A spec arm written the round before failed and caught it. So there are TWO shapes, selected by which obligation is being discharged: a standalone LINE for a Post-Merge Validation section, and the mid-line form for the evidence ladder's 1-liner, where the owner must follow the residual clause so a bare mention still cannot qualify. Both halves are pinned, because I collapsed them in both directions in consecutive rounds. Specs 66 -> 70.
neo-opus-vega
added a commit
that referenced
this pull request
Aug 11, 2026
Round five, one bypass, and it is the cleanest statement of what this whole family has been about. `<!--\nResidual-Owner: #200\n-->` inside an owing section returned valid:true. The owner renders as NOTHING, so a reviewer reads unowned work while the hosted lint reports success - the exact inversion the gate exists to prevent. HTML comments are now blanked alongside fenced blocks, at both sites that build the fenceless view, so a comment can shadow neither an owner nor a section heading. Blanked per character, so every later line keeps its index. The unifying rule across all eleven bypasses, now stated once: THE GATE MUST JUDGE WHAT A READER SEES, NOT WHAT THE SOURCE CONTAINS. Fenced examples, multi-backtick spans, indented code and HTML comments are all the same defect - text present in the source and absent from the artifact. Prose and duplicate sections are its mirror: text present in the artifact that is not a declaration. Controls: a comment must not blank the document around it, so an aside followed by a real owner still discharges. Mutation: unwiring the strip reddens exactly the new arm. Specs 70 -> 71.
neo-opus-vega
added a commit
that referenced
this pull request
Aug 11, 2026
@neo-gpt's round-6 falsifier, replayed at the exact head and confirmed: ## Post-Merge Validation - [ ] do real work <!-- Residual-Owner: #200 <- no closing delimiter `withoutHtmlComments` required `-->`, so an unterminated comment never matched, never blanked, and the owner inside it was read as a live declaration. The gate returned zero findings on deferred work that renders with no owner at all. Verified against the REAL renderer rather than assumed: POST /markdown on that exact body returns the heading and `<li>[ ] do real work</li>` and nothing else. The owner is absent from the artifact a reviewer reads while the lint reports success — the precise inversion this gate exists to prevent. The fix is `(?:-->|$)`: blank from `<!--` to the closing delimiter OR to end-of-body, which is what GitHub itself does. What I actually got wrong is worth stating, because it is the same error one grain finer than BYPASS 10. My previous fix encoded an assumption about how the evasion would be SPELLED — with a closing delimiter — rather than the property that decides it: invisible to a reader. Every arm in this family has been that same correction at a finer grain, which is why the arm carries the reasoning and not just the case. Evidence: L2 — BYPASS 11 pins the multiline and single-line unterminated forms, plus TWO over-reach controls (an owned body with no comment at all, and a terminated comment followed by a real owner and trailing prose) because blanking-to-EOF fails toward destroying documents. Mutation-verified: reverting to the terminated-only regex fails EXACTLY that one arm and no other — 25 pass, 1 fail. Restored: 26/26. The gate's own body still passes its own instrument.
tobiu
pushed a commit
that referenced
this pull request
Aug 12, 2026
…#16906) (#16940) * feat(build): deferred work must name an owner that survives the merge (#16906) Four merged PRs parked unchecked Post-Merge Validation work on the ticket their own Resolves closed. Three of those close targets shut within ONE SECOND of the merge and two kept no record at all - the deferral and its own invalidation were the same event. An Approve+Follow-Up is an approval CONDITIONED on the residual being carried; when its home closes, the condition is discharged by nobody while the reviewer's record still shows it as owned. Nobody improvised: evidence-ladder.md PRESCRIBED the shape, 'Residual: AC<N> [#<close-target>]'. So the guard alone would have put the linter in contradiction with the doc it enforces. Both change here. The gate is a COMPARISON, not a judgement: the declared owner against the close target, two independently-produced values, so it cannot be satisfied by writing prose about diligence. That distinction is the whole reason this can work where the review guide's 10,694-byte anti-rubber-stamp section did not. Scope is 'owes work', never 'has a section'. A live obligation is an unchecked box or an explicit NOT_YET_MEASURED / Residual: marker; a section of checked boxes or 'None deferred' owes nothing and needs no owner. Presence of the section was never the trigger. Residual-Owner names ownership that ALREADY EXISTS. @neo-gpt raised this at intake and it is load-bearing: a gate demanding a durable owner reads as a gate demanding a NEW ticket, which would make it the backlog generator wearing a guard's clothes. The failure message therefore prescribes finish / name-existing / drop and never 'file a follow-up' - asserted by a spec on the message text. A real prerequisite the first draft of the ticket missed: validatePrBody had no section extractor at all, only body.includes(anchor), which proves a heading string appears SOMEWHERE and nothing about what follows it. Regression corpus, run against the real merged bodies rather than fixtures: the four orphans red 4/4 (the withdrawn same-target rule caught 2/4, since two cite no ticket at all); #16907 and #16938 stay green; #16900 and #16901 red for a different and legitimate reason - each names a live owner in PROSE, and a new declared-field requirement cannot be retroactively satisfied by older bodies. Appending their existing owners turns both green, which is the ticket's stated expectation. 11 arms, two mutations each convicting a different half: disabling the close-target comparison reds only the owner-equals-target arm, and widening the extractor to the whole body reds only the outside-the-section scoping arm. 369 passed across the buildScripts suite. * fix(build): the residual gate reads the canonical inline form and a real H2 (#16906) Two false negatives found by @neo-gpt at review, each one a shape the gate reported success on. The Evidence Ladder's CANONICAL residual is INLINE on the Evidence line, outside the Post-Merge Validation section entirely, so scanning only that section let the exact grammar the template teaches pass unowned. The section extractor also anchored on the first indexOf substring, so a body merely quoting the heading in prose had its section read from the wrong offset and the real obligation went unseen. Both templates that still prescribed the dying owner now teach the surviving one: pull-request-workflow.md and pr-review-template.md. Mutations, each convicting a different half: disabling inline detection reds only the two inline arms, reverting the H2 match to indexOf reds only the prose arm. * docs(skills): pay the 9 bytes the surviving-owner template cost (#16906) The longer Residual-Owner placeholder pushed pull-request-workflow.md to 22009 bytes against a 22000 budget. Compressed the placeholder and the outcome-summary line rather than raising the cap: 21993 bytes, 7 under. * ci(build): run the owning PR-body validator at the hosted merge gate (#16906) The hosted lint is an independent inline github-script that cannot import validatePrBody, so every rule added to the local validator was unreachable in CI. That is how the residual-owner gate shipped enforcing nothing: green locally, absent at the gate that decides the merge. A checkout + delegation step now runs the same validator the author runs locally, so the two cannot diverge by construction. The step condition MIRRORS the inline script's own gate rather than introducing a new one. agentAuthors is a list whose every entry starts with 'neo-', so isAgentAuthor reduces exactly to the prefix test, and the 'ai' label arm is carried verbatim. Without that condition the validator would begin judging human-authored PRs the existing gate deliberately skips. The body reaches the script through the environment, never interpolated into the shell: PR bodies are attacker-controlled text. * ci(build): install deps before the delegated PR-body validator (#16906) The delegating step checked out the repo and ran the validator without an install, so it died on a missing commander import before reaching a single gate. The step proved the reach problem it was added to fix: a validator that cannot start enforces exactly as much as one that is never called. Adds the Setup Node + npm ci pair every sibling lint workflow already carries. * ci(build): give the delegated validator the base ref its stack gate needs (#16906) actions/checkout does a shallow single-branch clone, so origin/dev did not exist and the stacked-ticket gate failed on 'ambiguous argument origin/dev..HEAD'. The PR-body gates themselves passed; only the commit-walk had nothing to walk. fetch-depth: 0 plus an explicit base fetch, and --pr-base is now derived from github.base_ref rather than assuming dev, so a PR targeting any base is diffed against its own. * fix(build): close two parser bypasses in the residual-owner gate (#16906) Both found by @neo-gpt at re-review, both exact falsifiers through validatePrBody. A heading inside a fenced block is an EXAMPLE, not this body's section. Bodies that document the template carry '## Post-Merge Validation' inside fences, so the extractor anchored on a worked example and the real section's unchecked work went unseen. Fences are now blanked before the heading is located, preserving line structure so offsets stay correct. An owner anywhere in the body could discharge an obligation it had no relation to — a prose mention, a quoted example, another section's deferral. The owner is now read from the SAME unit that owes the work: the extracted section for a section obligation, the residual's own line for the canonical inline form. Mutations, each convicting one arm: disabling fence stripping reds only the fenced-heading control; reverting the owner scope to the whole body reds only the elsewhere-owner control. A non-vacuity arm proves a correctly-placed owner still discharges. * docs(build): anchor each residual-gate helper to its own JSDoc (#16906) Three defects in my own diff, found by running the review instrument on it rather than on someone else's: - `validatePrBody`'s JSDoc was orphaned. Inserting the three helpers between the block and the function left the exported entry point undocumented and its doc floating above `withoutFencedBlocks`. - `withoutFencedBlocks` wore `postMergeValidationSection`'s summary, so the fence-blanker was documented as a section reader. - `postMergeValidationSection` carried no JSDoc at all. - `POST_MERGE_VALIDATION_HEADING` was declared and never read — zero uses repo-wide. Zero behaviour delta: the 5-case battery (both of @neo-gpt's exact falsifying bodies plus three controls) and both agent-preflight specs are unchanged at 62/62. * fix(build): the residual gate reads sections and declarations, not lexemes (#16906) The review named four bypasses at exact head and supplied the failing bodies. All five reproduce (a duplicate-heading shadow makes five) and all five are closed. The common defect was lexical matching standing in for an authoritative section plus an authoritative declaration. 1. GFM FENCES. `withoutFencedBlocks` matched ``` only, so `~~~~md` and ````markdown` shadowed the real section. Fence handling is now line-scanned: an opener is 3+ backticks OR 3+ tildes, indentable, and a closer must use the same character and be at least as long. 2. INLINE CODE. A backticked `Residual-Owner: #200` inside the owing section discharged it. Quoting the syntax that would discharge an obligation must not discharge it, so the owner scope is read from code-blanked text. Scoping alone could never have caught this one - the mention is inside the right section. 3. THE COLON. `Residual-Owner:?` accepted a spelling no template teaches, so a near-miss line closed live work. The colon is now mandatory. Deliberately NOT line-anchored: the Evidence Ladder's canonical residual sits mid-line, and its owner has to be declarable there too - pinned by a control. 4. DUPLICATE SECTIONS. `body.match()` returns one hit, so an earlier `None deferred.` satisfied the gate while a later section owed real work. Every section is read now, and the OWING one carries the owner scope - with a second arm proving an owner in the discharged duplicate does not count. Controls held throughout: canonical owner discharges, no-obligation passes, owner-equals-close-target still fails, triple-backtick shadow still fails. Specs 62 -> 66. * fix(build): the owner is a declaration, and there are TWO legal shapes (#16906) Round four. Four more bypasses named with exact bodies, all reproduced, all closed - and the fix corrected an error of mine in the OPPOSITE direction that a spec arm from the previous round caught. 1. PROSE is not a declaration. `We considered Residual-Owner: #200 but rejected that owner.` discharged the work while SAYING it rejected the owner. A section is prose, so the owner must BE the line, not appear in it. Trailing text disqualifies too: a declaration ends at the ticket number. 2. CODE has more spellings than one backtick pair. A double-backtick span is not two single spans, so stripping single pairs first consumed the opener and left the token exposed; longest runs are stripped first now. Four-space GFM indented code was not stripped at all. 3. EVERY owing section carries its own owner. The previous round's duplicate- section fix validated the FIRST owing section, so a second owing section rode on the first's owner - the same shadowing defect one level along. AND THE CORRECTION THAT MATTERS MORE. I first fixed (1) by line-anchoring the owner everywhere, citing the ticket's "line" language. That BROKE the canonical inline form: the evidence ladder prescribes a 1-line declaration whose owner is mid-line, and anchoring refused the template the gate exists to enforce. A spec arm written the round before failed and caught it. So there are TWO shapes, selected by which obligation is being discharged: a standalone LINE for a Post-Merge Validation section, and the mid-line form for the evidence ladder's 1-liner, where the owner must follow the residual clause so a bare mention still cannot qualify. Both halves are pinned, because I collapsed them in both directions in consecutive rounds. Specs 66 -> 70. * fix(build): an HTML comment is not a declaration (#16906) Round five, one bypass, and it is the cleanest statement of what this whole family has been about. `<!--\nResidual-Owner: #200\n-->` inside an owing section returned valid:true. The owner renders as NOTHING, so a reviewer reads unowned work while the hosted lint reports success - the exact inversion the gate exists to prevent. HTML comments are now blanked alongside fenced blocks, at both sites that build the fenceless view, so a comment can shadow neither an owner nor a section heading. Blanked per character, so every later line keeps its index. The unifying rule across all eleven bypasses, now stated once: THE GATE MUST JUDGE WHAT A READER SEES, NOT WHAT THE SOURCE CONTAINS. Fenced examples, multi-backtick spans, indented code and HTML comments are all the same defect - text present in the source and absent from the artifact. Prose and duplicate sections are its mirror: text present in the artifact that is not a declaration. Controls: a comment must not blank the document around it, so an aside followed by a real owner still discharges. Mutation: unwiring the strip reddens exactly the new arm. Specs 70 -> 71. * fix(build): a comment need not close to hide the owner (#16906) @neo-gpt's round-6 falsifier, replayed at the exact head and confirmed: ## Post-Merge Validation - [ ] do real work <!-- Residual-Owner: #200 <- no closing delimiter `withoutHtmlComments` required `-->`, so an unterminated comment never matched, never blanked, and the owner inside it was read as a live declaration. The gate returned zero findings on deferred work that renders with no owner at all. Verified against the REAL renderer rather than assumed: POST /markdown on that exact body returns the heading and `<li>[ ] do real work</li>` and nothing else. The owner is absent from the artifact a reviewer reads while the lint reports success — the precise inversion this gate exists to prevent. The fix is `(?:-->|$)`: blank from `<!--` to the closing delimiter OR to end-of-body, which is what GitHub itself does. What I actually got wrong is worth stating, because it is the same error one grain finer than BYPASS 10. My previous fix encoded an assumption about how the evasion would be SPELLED — with a closing delimiter — rather than the property that decides it: invisible to a reader. Every arm in this family has been that same correction at a finer grain, which is why the arm carries the reasoning and not just the case. Evidence: L2 — BYPASS 11 pins the multiline and single-line unterminated forms, plus TWO over-reach controls (an owned body with no comment at all, and a terminated comment followed by a real owner and trailing prose) because blanking-to-EOF fails toward destroying documents. Mutation-verified: reverting to the terminated-only regex fails EXACTLY that one arm and no other — 25 pass, 1 fail. Restored: 26/26. The gate's own body still passes its own instrument.
dawesi
pushed a commit
to dawesi/neo
that referenced
this pull request
Aug 25, 2026
…neomjs#16906) (neomjs#16940) * feat(build): deferred work must name an owner that survives the merge (neomjs#16906) Four merged PRs parked unchecked Post-Merge Validation work on the ticket their own Resolves closed. Three of those close targets shut within ONE SECOND of the merge and two kept no record at all - the deferral and its own invalidation were the same event. An Approve+Follow-Up is an approval CONDITIONED on the residual being carried; when its home closes, the condition is discharged by nobody while the reviewer's record still shows it as owned. Nobody improvised: evidence-ladder.md PRESCRIBED the shape, 'Residual: AC<N> [#<close-target>]'. So the guard alone would have put the linter in contradiction with the doc it enforces. Both change here. The gate is a COMPARISON, not a judgement: the declared owner against the close target, two independently-produced values, so it cannot be satisfied by writing prose about diligence. That distinction is the whole reason this can work where the review guide's 10,694-byte anti-rubber-stamp section did not. Scope is 'owes work', never 'has a section'. A live obligation is an unchecked box or an explicit NOT_YET_MEASURED / Residual: marker; a section of checked boxes or 'None deferred' owes nothing and needs no owner. Presence of the section was never the trigger. Residual-Owner names ownership that ALREADY EXISTS. @neo-gpt raised this at intake and it is load-bearing: a gate demanding a durable owner reads as a gate demanding a NEW ticket, which would make it the backlog generator wearing a guard's clothes. The failure message therefore prescribes finish / name-existing / drop and never 'file a follow-up' - asserted by a spec on the message text. A real prerequisite the first draft of the ticket missed: validatePrBody had no section extractor at all, only body.includes(anchor), which proves a heading string appears SOMEWHERE and nothing about what follows it. Regression corpus, run against the real merged bodies rather than fixtures: the four orphans red 4/4 (the withdrawn same-target rule caught 2/4, since two cite no ticket at all); neomjs#16907 and neomjs#16938 stay green; neomjs#16900 and neomjs#16901 red for a different and legitimate reason - each names a live owner in PROSE, and a new declared-field requirement cannot be retroactively satisfied by older bodies. Appending their existing owners turns both green, which is the ticket's stated expectation. 11 arms, two mutations each convicting a different half: disabling the close-target comparison reds only the owner-equals-target arm, and widening the extractor to the whole body reds only the outside-the-section scoping arm. 369 passed across the buildScripts suite. * fix(build): the residual gate reads the canonical inline form and a real H2 (neomjs#16906) Two false negatives found by @neo-gpt at review, each one a shape the gate reported success on. The Evidence Ladder's CANONICAL residual is INLINE on the Evidence line, outside the Post-Merge Validation section entirely, so scanning only that section let the exact grammar the template teaches pass unowned. The section extractor also anchored on the first indexOf substring, so a body merely quoting the heading in prose had its section read from the wrong offset and the real obligation went unseen. Both templates that still prescribed the dying owner now teach the surviving one: pull-request-workflow.md and pr-review-template.md. Mutations, each convicting a different half: disabling inline detection reds only the two inline arms, reverting the H2 match to indexOf reds only the prose arm. * docs(skills): pay the 9 bytes the surviving-owner template cost (neomjs#16906) The longer Residual-Owner placeholder pushed pull-request-workflow.md to 22009 bytes against a 22000 budget. Compressed the placeholder and the outcome-summary line rather than raising the cap: 21993 bytes, 7 under. * ci(build): run the owning PR-body validator at the hosted merge gate (neomjs#16906) The hosted lint is an independent inline github-script that cannot import validatePrBody, so every rule added to the local validator was unreachable in CI. That is how the residual-owner gate shipped enforcing nothing: green locally, absent at the gate that decides the merge. A checkout + delegation step now runs the same validator the author runs locally, so the two cannot diverge by construction. The step condition MIRRORS the inline script's own gate rather than introducing a new one. agentAuthors is a list whose every entry starts with 'neo-', so isAgentAuthor reduces exactly to the prefix test, and the 'ai' label arm is carried verbatim. Without that condition the validator would begin judging human-authored PRs the existing gate deliberately skips. The body reaches the script through the environment, never interpolated into the shell: PR bodies are attacker-controlled text. * ci(build): install deps before the delegated PR-body validator (neomjs#16906) The delegating step checked out the repo and ran the validator without an install, so it died on a missing commander import before reaching a single gate. The step proved the reach problem it was added to fix: a validator that cannot start enforces exactly as much as one that is never called. Adds the Setup Node + npm ci pair every sibling lint workflow already carries. * ci(build): give the delegated validator the base ref its stack gate needs (neomjs#16906) actions/checkout does a shallow single-branch clone, so origin/dev did not exist and the stacked-ticket gate failed on 'ambiguous argument origin/dev..HEAD'. The PR-body gates themselves passed; only the commit-walk had nothing to walk. fetch-depth: 0 plus an explicit base fetch, and --pr-base is now derived from github.base_ref rather than assuming dev, so a PR targeting any base is diffed against its own. * fix(build): close two parser bypasses in the residual-owner gate (neomjs#16906) Both found by @neo-gpt at re-review, both exact falsifiers through validatePrBody. A heading inside a fenced block is an EXAMPLE, not this body's section. Bodies that document the template carry '## Post-Merge Validation' inside fences, so the extractor anchored on a worked example and the real section's unchecked work went unseen. Fences are now blanked before the heading is located, preserving line structure so offsets stay correct. An owner anywhere in the body could discharge an obligation it had no relation to — a prose mention, a quoted example, another section's deferral. The owner is now read from the SAME unit that owes the work: the extracted section for a section obligation, the residual's own line for the canonical inline form. Mutations, each convicting one arm: disabling fence stripping reds only the fenced-heading control; reverting the owner scope to the whole body reds only the elsewhere-owner control. A non-vacuity arm proves a correctly-placed owner still discharges. * docs(build): anchor each residual-gate helper to its own JSDoc (neomjs#16906) Three defects in my own diff, found by running the review instrument on it rather than on someone else's: - `validatePrBody`'s JSDoc was orphaned. Inserting the three helpers between the block and the function left the exported entry point undocumented and its doc floating above `withoutFencedBlocks`. - `withoutFencedBlocks` wore `postMergeValidationSection`'s summary, so the fence-blanker was documented as a section reader. - `postMergeValidationSection` carried no JSDoc at all. - `POST_MERGE_VALIDATION_HEADING` was declared and never read — zero uses repo-wide. Zero behaviour delta: the 5-case battery (both of @neo-gpt's exact falsifying bodies plus three controls) and both agent-preflight specs are unchanged at 62/62. * fix(build): the residual gate reads sections and declarations, not lexemes (neomjs#16906) The review named four bypasses at exact head and supplied the failing bodies. All five reproduce (a duplicate-heading shadow makes five) and all five are closed. The common defect was lexical matching standing in for an authoritative section plus an authoritative declaration. 1. GFM FENCES. `withoutFencedBlocks` matched ``` only, so `~~~~md` and ````markdown` shadowed the real section. Fence handling is now line-scanned: an opener is 3+ backticks OR 3+ tildes, indentable, and a closer must use the same character and be at least as long. 2. INLINE CODE. A backticked `Residual-Owner: neomjs#200` inside the owing section discharged it. Quoting the syntax that would discharge an obligation must not discharge it, so the owner scope is read from code-blanked text. Scoping alone could never have caught this one - the mention is inside the right section. 3. THE COLON. `Residual-Owner:?` accepted a spelling no template teaches, so a near-miss line closed live work. The colon is now mandatory. Deliberately NOT line-anchored: the Evidence Ladder's canonical residual sits mid-line, and its owner has to be declarable there too - pinned by a control. 4. DUPLICATE SECTIONS. `body.match()` returns one hit, so an earlier `None deferred.` satisfied the gate while a later section owed real work. Every section is read now, and the OWING one carries the owner scope - with a second arm proving an owner in the discharged duplicate does not count. Controls held throughout: canonical owner discharges, no-obligation passes, owner-equals-close-target still fails, triple-backtick shadow still fails. Specs 62 -> 66. * fix(build): the owner is a declaration, and there are TWO legal shapes (neomjs#16906) Round four. Four more bypasses named with exact bodies, all reproduced, all closed - and the fix corrected an error of mine in the OPPOSITE direction that a spec arm from the previous round caught. 1. PROSE is not a declaration. `We considered Residual-Owner: neomjs#200 but rejected that owner.` discharged the work while SAYING it rejected the owner. A section is prose, so the owner must BE the line, not appear in it. Trailing text disqualifies too: a declaration ends at the ticket number. 2. CODE has more spellings than one backtick pair. A double-backtick span is not two single spans, so stripping single pairs first consumed the opener and left the token exposed; longest runs are stripped first now. Four-space GFM indented code was not stripped at all. 3. EVERY owing section carries its own owner. The previous round's duplicate- section fix validated the FIRST owing section, so a second owing section rode on the first's owner - the same shadowing defect one level along. AND THE CORRECTION THAT MATTERS MORE. I first fixed (1) by line-anchoring the owner everywhere, citing the ticket's "line" language. That BROKE the canonical inline form: the evidence ladder prescribes a 1-line declaration whose owner is mid-line, and anchoring refused the template the gate exists to enforce. A spec arm written the round before failed and caught it. So there are TWO shapes, selected by which obligation is being discharged: a standalone LINE for a Post-Merge Validation section, and the mid-line form for the evidence ladder's 1-liner, where the owner must follow the residual clause so a bare mention still cannot qualify. Both halves are pinned, because I collapsed them in both directions in consecutive rounds. Specs 66 -> 70. * fix(build): an HTML comment is not a declaration (neomjs#16906) Round five, one bypass, and it is the cleanest statement of what this whole family has been about. `<!--\nResidual-Owner: neomjs#200\n-->` inside an owing section returned valid:true. The owner renders as NOTHING, so a reviewer reads unowned work while the hosted lint reports success - the exact inversion the gate exists to prevent. HTML comments are now blanked alongside fenced blocks, at both sites that build the fenceless view, so a comment can shadow neither an owner nor a section heading. Blanked per character, so every later line keeps its index. The unifying rule across all eleven bypasses, now stated once: THE GATE MUST JUDGE WHAT A READER SEES, NOT WHAT THE SOURCE CONTAINS. Fenced examples, multi-backtick spans, indented code and HTML comments are all the same defect - text present in the source and absent from the artifact. Prose and duplicate sections are its mirror: text present in the artifact that is not a declaration. Controls: a comment must not blank the document around it, so an aside followed by a real owner still discharges. Mutation: unwiring the strip reddens exactly the new arm. Specs 70 -> 71. * fix(build): a comment need not close to hide the owner (neomjs#16906) @neo-gpt's round-6 falsifier, replayed at the exact head and confirmed: ## Post-Merge Validation - [ ] do real work <!-- Residual-Owner: neomjs#200 <- no closing delimiter `withoutHtmlComments` required `-->`, so an unterminated comment never matched, never blanked, and the owner inside it was read as a live declaration. The gate returned zero findings on deferred work that renders with no owner at all. Verified against the REAL renderer rather than assumed: POST /markdown on that exact body returns the heading and `<li>[ ] do real work</li>` and nothing else. The owner is absent from the artifact a reviewer reads while the lint reports success — the precise inversion this gate exists to prevent. The fix is `(?:-->|$)`: blank from `<!--` to the closing delimiter OR to end-of-body, which is what GitHub itself does. What I actually got wrong is worth stating, because it is the same error one grain finer than BYPASS 10. My previous fix encoded an assumption about how the evasion would be SPELLED — with a closing delimiter — rather than the property that decides it: invisible to a reader. Every arm in this family has been that same correction at a finer grain, which is why the arm carries the reasoning and not just the case. Evidence: L2 — BYPASS 11 pins the multiline and single-line unterminated forms, plus TWO over-reach controls (an owned body with no comment at all, and a terminated comment followed by a real owner and trailing prose) because blanking-to-EOF fails toward destroying documents. Mutation-verified: reverting to the terminated-only regex fails EXACTLY that one arm and no other — 25 pass, 1 fail. Restored: 26/26. The gate's own body still passes its own instrument.
1 task
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.
Please make sure to read the Contributing Guidelines:
https://github.com/neomjs/neo/blob/dev/CONTRIBUTING.md
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
devbranch, not themasterbranchfix #xxx[,#xxx], where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: