Repository navigation
Description
Finding
src/utils/command.ts decides whether /approve, /lgtm, /hold and every other command fires at all, by picking the comment lines that are not Markdown code. It sits outside both Stryker sets (stryker.config.mjs, stryker.nightly.config.mjs), so a probe was run by hand:
npx stryker run stryker.config.mjs --mutate src/utils/command.ts,src/plugins/requireMatchingLabel.ts at afe75b9: command.ts 127 killed, 8 survived; requireMatchingLabel.ts 190 killed, 16 survived.
Of the eight command.ts survivors, three change an observable effect (the other five are equivalent: /\s+/ vs /\s/ before filter(Boolean), the redundant inIndentedCode writes at lines 102, 116 and 123, and the $ of a greedy .*):
-
commandLinesline 114,line.trim() === ''->line === '': a whitespace-only line stops counting as the blank line that opens indented code, sotry this:\n \n /approvefires/approve. CommonMark treats a spaces-or-tabs line as blank, and editors leave such lines routinely. -
fenceLineline 91 without its^anchor:like this: \``opens a fence and swallows every later command, andnot a closer ```` closes one and exposes the commands it was hiding. -
splitLinesline 172,/\r\n?/->/\r\n/: bare CR endings, which the function documents as tolerated, are no longer split, so/kind bug\r/kind cleanupparses as one line with/kindandcleanupas arguments of the first.
The 16 requireMatchingLabel.ts survivors are debug text, Set.has(undefined) conditions and payload-shape ?. of the kinds already recorded as reviewed in docs/contributing.md; none needs a test.
Evidence: unit coverage (npm run test:coverage) and end-to-end coverage (npm run test:coverage:e2e; CI artifact coverage-e2e-afe75b9 of run 44993652121) both hold command.ts at 100 % lines, branches, functions and statements at afe75b9, which is why these are assertion gaps, not line gaps.
Recommendation
Add one test per behavioural survivor to __tests__/utils/command.test.ts, each failing with its mutant applied. Adding command.ts to the nightly mutate set is a separate change on the same lines PR #721 already holds (stryker.nightly.config.mjs, __tests__/mutationConfig.test.ts, docs/contributing.md) and should follow once that lands rather than conflict with it.
Priority
- Impact: medium
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 67484c4
Activity
hivecommons-hive commentedon Nov 22, 2026
Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] Add src/utils/auth.ts, owners.ts and pullRequestOwners.ts to the nightly mutation set
Finding
The scheduled
mutationjob (stryker.nightly.config.mjs, run by.github/workflows/test.yml) guards the merge decision:mergeGate.ts,labelMatch.ts,labels/hold.ts,duration.ts,tide.ts,mergeQueue.ts,approve.ts(and, once #721 lands,lgtmBinding.tsandlabels/lgtm.ts). It does not guard the code that decides who may run the commands that feed that decision:src/utils/auth.ts(policyAllows,assertPolicy,closePolicyAllows,assertAuthorizedByOwnersOrMembership, the OWNERS role checks),src/utils/owners.ts(parseOwners,ownersInclude,expandGroups, the directory walk) andsrc/utils/pullRequestOwners.ts.Line coverage cannot see a regression there. At
afe75b9the unit run holds these files at 100 % lines/functions/statements (npm run test:coverage: 1903/1905 branches overall, the two misses being the phantomawaitbranchesdocs/contributing.mddocuments), and the bundle run of the same commit does too (e2e-coveragejob of run 44993652121, artifactcoverage-e2e-afe75b9...: 1763/1765 branches, same two phantoms). So an inverted guard inpolicyAllows(an outsider admitted undertrusted, say) keeps both coverage gates green, and nothing scheduled would notice until a user did.The good news is that the suite already kills nearly everything. Probe at
afe75b9,npx stryker run --mutate src/utils/auth.ts,src/utils/owners.ts,src/utils/pullRequestOwners.ts(perTest, 2 runners, 20 min):src/utils/auth.tssrc/utils/owners.tssrc/utils/pullRequestOwners.tsThe four survivors were each re-read and are equivalent (table below). The eight timeouts are the
ownersDirwalk-up loop (owners.ts:210-263) made non-terminating, which Stryker counts as killed. This is a gate-coverage finding, not a coverage gap: there is no test to add today, only a gate to extend so tomorrow's regression fails a scheduled run.Recommendation
Add the three files to the nightly set, the way #721 adds the lgtm pair. The change is mechanical and touches the same three files as #721, so it should land after #721 merges (a second PR on the same lines would only force a rebase):
stryker.nightly.config.mjs, themutateline:and extend the doc comment with the probe figures above (99.41 % over 681 mutants at
afe75b9; thebreakof 94 holds, the combined set rises to about 96.5 %).__tests__/mutationConfig.test.ts, the "adds the files" assertion: add'src/utils/auth.ts','src/utils/owners.ts','src/utils/pullRequestOwners.ts'to the sorted expected list (the test is what fails without the config change).docs/contributing.md, "Mutation checks": name the three files next totide.ts/mergeQueue.ts/approve.ts(theis documented file for filetest requires it) and add their reviewed survivors:auth.ts:439contents === ''guard ofrootOwnersIncludes→false/ placeholder / empty blockparseOwners('OWNERS', '')yields empty roles andownersIncludewith an empty list returns false beforeexpandGroupsmakes any request, so the guard only saves a parse; the same guard inassertRootOwner(:378) is killed because there the two arms differ (fall back to membership versus throw)owners.ts:39contents.trim() === ''→contents === ''yaml.loadof a whitespace-only string returnsundefined, which the followingtypeof loaded === 'object'guard turns into the same{}Runtime: the
mutationjob took 19 minutes atafe75b9for 1329 mutants; with #721 (+194) and this (+681) it lands near 30 minutes, inside itstimeout-minutes: 60.Decision taken by hive: nightly set rather than the local default (
stryker.config.mjs), for the reason #721 gives: the per-pushnpm run test:mutationround-trip cannot absorb 681 more mutants, the scheduled job can.Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] Gate proposal: every implemented command must have a bundle scenario (11 of 42 undriven at afe75b9, including /remove-approve and /remove-hold)
Finding
__tests__/commands.test.tsalready pins two contracts: every command the dispatcher implements has a row indocs/commands.md, and every documented row has a handler. Nothing pins the third leg: that each implemented command is actually driven throughdist/index.jsby the bundle acceptance harness under__tests__/bundle/.At
main@afe75b9, taking the same implemented set thatcommands.test.tscomputes (hand-written handlers, the dispatcher'scommandAliasestable,prefixedLabelCommandsandfixedLabelCommandsplus their/remove-forms: 42 commands) and searching every__tests__/bundle/*.test.tsfor the command as a quoted comment body, 11 are never the body of any bundle scenario:/remove-approve(its ownhasCommand('/remove-approve', commentBody)operand in the approve handler'sisCancel)/remove-hold(its ownhasCommand('/remove-hold', commentBody)operand in the hold handler'scancel)/area,/priority(exclusive: true),/stage,/status/remove-area,/remove-priority,/remove-lifecycle,/remove-stage,/remove-statusThe e2e coverage gate (
vitest.e2e-coverage.config.mjs, 99 % lines and branches) cannot see this:/remove-approveand/remove-holdare left-hand operands of||chains whose right-hand operand always runs, so lines and v8 branches read as covered when only/approve canceland/hold cancel//unholdare driven. The prefixed commands share one code path with/kind, so they too are line-covered while their data rows (exclusive, registry defaults) are exercised by unit tests only.Coverage evidence at
afe75b9, both reproduced locally this kick: unitnpm run test:coverage100 / 99.89 / 100 / 100 (3012 tests; the two branch misses are the post-await v8 artefacts documented indocs/contributing.md); e2enpm run test:coverage:e2e100 / 99.88 / 100 / 100 (581 tests, same two artefacts). Nightly run 44993652121 on the same SHA: every job green. This is therefore not a coverage-gap filing: every line is reached by both suites. It is a measurement blind spot of the e2e gate.Why a gate and not another finding
This is at least the sixth instance of the class "unit-covered command or arm that no bundle scenario drives" this lane has filed in this repository (#251 for the
/holdaliases and/removesuccess, #295 for the plain/closeand/milestonerefusals, the status-event path of the check-suite tide hook, root-OWNERS authorization, the configured blunderbuss section). #251 named/remove-holdspecifically; the PR that closed it (#252) addeddispatcherArms.test.tsfor theprow-commandsinput arms and never drove/remove-hold, and nothing since has noticed, which is what a missing gate looks like.Proposed gate
Extend
__tests__/commands.test.ts(same file, sameimplementedset, no new tooling) with a third contract:Seeded with today's 11 so it is green on
mainfrom the first commit; a new command or alias without a bundle scenario failsbuild-test, and a scenario that lands for a seeded command fails until the seed entry is removed, so the list only ratchets down. A follow-up PR would then drive/remove-approveand/remove-hold(one scenario each, modelled on the existing/hold canceland/approve cancelbundle cases) and delete those two entries; the nine prefixed-command rows can follow at the maintainers' pace or stay seeded if the shared/kindpath is judged sufficient.Decision taken by hive: the gate lives in the existing
commands.test.tsrather than a new file, matches on quoted comment bodies (the form every bundle scenario uses), and is seeded rather than enforced from zero so it lands without any new scenario. Test-only change; nosrc/or workflow edit.Note: a first copy of this proposal was folded by the hive into #748 (a docs-table finding already covered by PR #749) on a component key it does not share; this standalone filing is the one to decide on.
What is being asked
Accept or decline the gate. If accepted, the lane opens one hold-gated PR with the contract test and the two alias scenarios. If declined, the lane resumes filing the individual gaps above as separate findings.
Risk: governance
Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:unknownFolded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] Three JSON fixtures under tests/fixtures are imported by no test; add a guard so fixtures cannot go orphan again
Finding
At
main(afe75b9) three recorded GitHub payloads under__tests__/fixturesare imported by no file under__tests__(searched every.ts,.cjs,.mjsfor the stringfixtures/followed by the file's path; nothing loads fixtures dynamically):__tests__/fixtures/pullReq/pullCommentEvent.json(14.6 KB)__tests__/fixtures/pullReq/pullReqListFiles.json__tests__/fixtures/issues/unassign/issueListAssignees.jsonTheir last consumers were removed in #143 (pr-labeler cron job) and #146 (routing rework); the fixtures stayed. Dead fixtures read as tested cases and have no test to fail when the recorded shape drifts. No existing gate catches this: the repo has no unused-file detector (no knip / ts-prune / depcheck),
coverageIgnoreHints.test.tschecks hint-to-test links but not fixture-to-test links, anddocs/contributing.mddescribes fixture mutation hazards only.Not a coverage gap: unit coverage at afe75b9 is 100 stmts / 99.89 branches / 100 funcs / 100 lines (
npm run test:coverage), e2e 100 / 99.88 / 100 / 100 (nightlycoverage-e2e-afe75b9); the only branch misses are the documented v8 post-await phantoms. This is test-infrastructure hygiene.Recommendation
One PR:
__tests__/fixturesReferenced.test.ts: a static walker in the style ofcoverageIgnoreHints.test.tsthat asserts every__tests__/fixtures/**/*.jsonis named by its fixtures-relative path in at least one.ts,.cjsor.mjsfile under__tests__. It fails on today's tree (3 failures) and passes once the orphans are gone.Decision taken by hive: a static reference walker is the smallest additive gate; a dependency-level tool (knip) would be a new devDependency and a wider policy than this finding needs.
Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
stryker.nightly.config.mjs, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] parseOwners: whitespace-only OWNERS file parses as empty only because of .trim(); no test pins it (sole behavioural mutation survivor in src/utils/owners.ts)
Finding
parseOwnersinsrc/utils/owners.ts:39trims the file contents before handing them toyaml.load:That
.trim()is load-bearing since the js-yaml 5 bump (#126): js-yaml 5.x throwsYAMLException: expected a document, but the input is emptyon whitespace-only input, where 4.x returnedundefined. An OWNERS file that holds only a newline (a common state for a file created and left empty by an editor) therefore parses as "no owners" only because of the trim. Without it, every command that reads OWNERS (/lgtm,/approve,/assign, owners-label, blunderbuss, the merge decision) would fail the run with a YAML error instead.No test pins this.
__tests__/utils/owners.test.ts("treats an empty role and an empty file as no members") checks''only, whichyaml.loadis never reached for either way.Evidence (a Stryker probe at
afe75b9,npx stryker run stryker.config.mjs --mutate src/utils/owners.ts, 340 mutants, 26m53s): 327 killed, 12 timeouts, 1 survived, theMethodExpressionmutantcontents.trim() === ''tocontents === '', with "Ran all tests for this mutant". Every other mutant in the file died.src/utils/owners.tsis not in the Strykermutateset (default or nightly), so themutationjob would not have caught this survivor; a sibling probe ofsrc/utils/auth.ts(284 mutants) left only one equivalent survivor (rootOwnersIncludes'scontents === ''shortcut, unobservable becauseownersInclude([])makes no call), so this is the one behavioural survivor across both files.Unit coverage at
afe75b9(vitest run --coverage): 100 / 99.89 / 100 / 100; e2e bundle coverage (npm run test:coverage:e2e, 93 files, 581 tests): 100 / 99.88 / 100 / 100. Both reach line 39, so this is not a line-coverage gap, which is why it shows up only under mutation.Recommendation
parseOwnerscase to__tests__/utils/owners.test.tsthat feeds whitespace-only contents ('\n', blank lines, spaces and tabs) and asserts the full emptyOwnersFileshape. It passes onmainand fails with 4 failures when the.trim()is removed.Adding
src/utils/owners.tsto the nightly Stryker set is deliberately left out of this issue:stryker.nightly.config.mjsis being changed by #721 and a second edit to that file would conflict with it.Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] contributing.md still lists hold.ts:27 and hold.ts:70-71 as reviewed mutation survivors; #737 kills them
Finding
docs/contributing.md, table "Reviewed survivors of the default set" (lines 271-272 at afe75b9), still records twosrc/labels/hold.tsmutants as equivalent survivors:hold.ts:27context.payload.comment?.body→.comment.bodyissue_commentevent carriescomment; the two differ only on a payload GitHub never sendshold.ts:70-71present.length === 0guard and itsplatform().log.debugtextremoveLabelswith an empty list issues no request, so the guard only saves a loop; the debug message is not asserted#737 (merged) added the tests that kill them. The scheduled
mutationjob at afe75b9 (run 45125155064, artifactmutation-afe75b97240692e3a3ec7da91a3195a1ce321200) reportshold.ts42 killed / 0 survived; the six mutants on those lines (:27OptionalChaining;:70ConditionalExpression x2, BlockStatement, EqualityOperator;:71StringLiteral) are allKilled. The table therefore documents an equivalence that no longer holds, and a reader deciding whether a futurehold.tssurvivor is "already reviewed" would be misled.Recommendation
Delete the two rows quoted above from the "Reviewed survivors of the default set" table in
docs/contributing.md. Nothing else in the section refers to them; the sentence at line 183 namingsrc/labels/hold.tsas part of the defaultmutateset stays correct.Decision taken by hive: this is filed as an issue rather than a PR because the same section of
docs/contributing.mdis already being edited by held PR #721 (it appends the lgtmBinding/lgtm survivor tables). Landing a second PR over the same section would only create a rebase for whichever merges last; whoever lands #721, or a follow-up once it merges, can drop the two rows in the same pass.hold.ts:27row removedhold.ts:70-71row removedPriority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] Nightly mutation gate: break 94 admits up to 19 new survivors; check survivors against an explicit allowlist
Finding
The scheduled
mutationjob of.github/workflows/test.ymlrunsstryker.nightly.config.mjswiththresholds.break: 94. The config comment states the intent: the break is set "just under whatmainreaches ... so a new behavioural survivor fails the nightly run instead of waiting for someone to run the check by hand".A percentage threshold cannot deliver that. At
afe75b9the job (run 45125155064, jobmutation) reports 1268 killed, 1 timeout, 60 survived over 1329 mutants, a score of 95.49 %. Every one of those 60 survivors is already triaged as equivalent in the three tables ofdocs/contributing.md("Mutation checks"). But 94 % of 1329 allows 79 survivors, so:Each file added to the nightly
mutateset (as #721 proposes) widens that headroom further, because the break is a percentage of a growing total.This is a gate-configuration finding about
stryker.nightly.config.mjsand thetest:mutation:nightlynpm script. It is not a coverage gap: unit and bundle coverage at the same revision are at 100 % lines, statements and functions, and the only branch misses are the documented negative-countawaitartefacts.Recommendation
Make the nightly gate exact instead of proportional: fail the run on any survivor that is not on an explicit allowlist, and keep the
breakscore only as a backstop.Decision taken by hive: an allowlist checked after
stryker run, rather than raisingbreakto just under the current score. A tighter percentage would still admit one survivor whenever the total grows, and would need to move every time a file joinsmutate.file:lineper entry, for examplereports/mutation/allowed-survivors.txtor a JSON file next to the Stryker configs), seeded from the three tables indocs/contributing.md.__tests__/mutation/checkSurvivors.mjs) that readsreports/mutation/report.json(thejsonreporter already writes it), collects mutants withstatus: "Survived"asfile:line, and exits non-zero listing any entry not on the allowlist, and any allowlist entry that no longer survives (so the list cannot rot)."test:mutation:nightly": "stryker run stryker.nightly.config.mjs && node __tests__/mutation/checkSurvivors.mjs". No workflow change is needed; the job already runs that script.__tests__/mutationConfig.test.tsto pin that every allowlist entry is named in adocs/contributing.mdtable row and vice versa, so the "why" and the gate stay in step.breakcomment instryker.nightly.config.mjsto describe it as the backstop it is.Sequencing: #721 edits
stryker.nightly.config.mjs,__tests__/mutationConfig.test.tsanddocs/contributing.md, the same files this change needs. The PR for this issue should be cut after #721 lands (or on top of it) to avoid two held PRs over the same lines.Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] Gate proposal: nightly mutation job checks survivors against an explicit allowlist (break 94 admits up to 19 new survivors)
Risk: governance
Maintainer decision requested: accept or decline replacing the proportional nightly mutation gate with an exact survivor allowlist that must be updated whenever a reviewed-equivalent survivor is added to the tables in docs/contributing.md.
Finding
The scheduled
mutationjob of.github/workflows/test.ymlrunsstryker.nightly.config.mjswiththresholds.break: 94. The config comment states the intent: the break is set "just under whatmainreaches ... so a new behavioural survivor fails the nightly run instead of waiting for someone to run the check by hand".A percentage threshold cannot deliver that. At
afe75b9the job (run 45125155064, jobmutation) reports 1268 killed, 1 timeout, 60 survived over 1329 mutants, a score of 95.49 %. Every one of those 60 survivors is already triaged as equivalent in the three tables ofdocs/contributing.md("Mutation checks"). But 94 % of 1329 allows 79 survivors, so:Each file added to the nightly
mutateset (as #721 proposes) widens that headroom further, because the break is a percentage of a growing total.This is a gate-configuration finding about
stryker.nightly.config.mjsand thetest:mutation:nightlynpm script. It is not a coverage gap: unit and bundle coverage at the same revision are at 100 % lines, statements and functions, and the only branch misses are the documented negative-countawaitartefacts.Recommendation
Make the nightly gate exact instead of proportional: fail the run on any survivor that is not on an explicit allowlist, and keep the
breakscore only as a backstop.Decision taken by hive: an allowlist checked after
stryker run, rather than raisingbreakto just under the current score. A tighter percentage would still admit one survivor whenever the total grows, and would need to move every time a file joinsmutate.file:lineper entry, for examplereports/mutation/allowed-survivors.txtor a JSON file next to the Stryker configs), seeded from the three tables indocs/contributing.md.__tests__/mutation/checkSurvivors.mjs) that readsreports/mutation/report.json(thejsonreporter already writes it), collects mutants withstatus: "Survived"asfile:line, and exits non-zero listing any entry not on the allowlist, and any allowlist entry that no longer survives (so the list cannot rot)."test:mutation:nightly": "stryker run stryker.nightly.config.mjs && node __tests__/mutation/checkSurvivors.mjs". No workflow change is needed; the job already runs that script.__tests__/mutationConfig.test.tsto pin that every allowlist entry is named in adocs/contributing.mdtable row and vice versa, so the "why" and the gate stay in step.breakcomment instryker.nightly.config.mjsto describe it as the backstop it is.Sequencing: #721 edits
stryker.nightly.config.mjs,__tests__/mutationConfig.test.tsanddocs/contributing.md, the same files this change needs. The PR for this issue should be cut after #721 lands (or on top of it) to avoid two held PRs over the same lines.Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] config.ts: a bare section key (yaml null) is rejected only by isMapping's null guard, and no test pins it
Finding
Unit and end-to-end coverage are both saturated on
main@ afe75b9 (npm run test:coverage: 100 % lines/functions/statements, 99.89 % branches;npm run test:coverage:e2e: 100 % lines, 99.88 % branches; the two branch misses in each are the v8 phantom arms documented indocs/contributing.md). So this is not a line-coverage gap; it comes from a mutation probe of a file outside the nightly set:The survivor that matters is
src/utils/config.ts:876,isMapping'svalue !== nullreplaced bytrue. A bare key inprow.yaml(tide:with nothing under it, which is what a file looks like after its nested lines are commented out) loads asnull. That is notundefined, soparseProwConfighands it to the section's normalizer, and the null half ofisMappingis the only thing between the user and aTypeError: Cannot read properties of nullon the first property read. Today every mapping section (tide,hold,blunderbuss,approve,lgtm,sweep,authorization) answersx: <key> must be a mapping,require_matching_label:answersmust be a list, and a barelabels:or a bare section under it answers the malformed-section message, but no test passesnullto any of them: the existing "must be a mapping" cases in__tests__/utils/config.test.tsandconfigTypeGuards.test.tsuse a list, string, number or boolean.The other five survivors look equivalent and are not findings: L243 (debug log text), L312 (
kind: 'repo'is only ever compared with'url'), L618 (undefined < nis false either way), L765 (thesweep.lookbacklabel inresolveSweepLookbackis unreachable oncenormalizeSweephas validated the string), L799 (case-folding direction of the dedupe key).Recommendation
Pin the bare-key behaviour in
__tests__/utils/configTypeGuards.test.ts: oneit.eachover the seven mapping sections, one case forrequire_matching_label:, and one for a barelabels:/ bare section underlabels. Eight of those cases fail under the L876 mutant.Decision taken by hive:
src/utils/config.tsis not added tostryker.nightly.config.mjshere. #721 already edits that file'smutatelist and is awaiting review, and config.ts alone adds ~730 mutants (about 35 minutes at 4 workers with static mutants ignored) to the nightly job. Whether to grow the nightly set that much is a separate call once #721 lands.Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
docs/contributing.md, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] workflows.test.ts input scan reads the Stryker-instrumented src/ and fails the dry run once meow.ts joins the mutate set
Finding
__tests__/workflows.test.ts(inputReads()) provesaction.ymldeclares exactly the inputssrc/reads by regex-scanning thesrc/tree from disk:/\b(?:get(?:Boolean|Multiline)?Input|inputs\s*\.\s*get)\(\s*(['"`])([^'"`]+)\1/gUnder Stryker that scan reads the instrumented copy in
.stryker-tmp/sandbox-*/src, where a string argument becomesand no longer matches.
cat-api-keyis read only bysrc/issueComment/meow.ts, so withmeow.tsin themutateset the key disappears fromreadsanddeclares no input src/ never readsfails:Reproduced at afe75b9 with
@stryker-mutator/core/vitest-runner10.1.1:npx stryker run --mutate src/issueComment/meow.ts,src/labels/prefixed.tsfails the initial test run as above.npx stryker run --mutate src/issueComment/meow.ts,src/plugins/tide.ts --dryRunOnlypasses: the vitest runner'svitest.related(default on) only runs test files that import a mutated file, andworkflows.test.tsimportslabels/fixed,labels/prefixed,utils/configandutils/labelCatalog, none of which is mutated in that pair.tide.tsis its oneinputs.getreader, and Stryker's nested conditional mutants on line 313 copy the originalinputs.get('merge-method', {text verbatim into the mutant arms, so the regex still finds it.So the failure needs two things at once: a sole-reader file in
mutate(today onlymeow.ts), and any of those four imports inmutate. The nightly set has grown three times (tide, mergeQueue, approve; #721 proposes lgtmBinding and labels/lgtm); the next person to addmeow.tsnext toprefixed.tsorconfig.tsgets a redmutationjob that points ataction.ymlrather than at the cause.Recommendation
Decision taken by hive: keep the regex and the test as they are (they guard a real property of
action.yml) and make the scan read the committed tree, not the sandbox copy, when Stryker is active. Stryker exposes the original project root to the sandboxed process; the smallest change that keeps every assertion is in__tests__/utils/workflowYaml.ts, whererootis derived:(
.stryker-tmp/sandbox-*/node_modulesis a symlink to the project'snode_modules, sorealpathSynclands on the real checkout; outside Stryker it is a no-op.) Alternatives considered and not taken: excludingworkflows.test.tsinvitest.mutation.config.mjsloses its kill power overlabelCatalog.tsandprefixed.tsshould either join the set; loosening the regex to accept thestryMutAct_...wrapper couples a test to Stryker's instrumentation format.A one-line pin belongs next to it: a test under
__tests__/that assertsrootis a directory containingaction.ymland.git(the sandbox copy has no.git), so the resolution cannot silently fall back to the sandbox.Not opened as a PR this kick because #721 (open, hold-gated) already edits
docs/contributing.md"Mutation checks" and__tests__/mutationConfig.test.ts, where the explanatory note and the pin would otherwise go; land this after #721 or rebase it on top.Priority
mutateset grows to includemeow.ts)Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9Folded finding. This was filed as a separate issue, but 1 open agent-filed issue (plus 3 closed as completed in the last 14 days) already cite
stryker.nightly.config.mjs, so it was folded into the oldest of them instead of opening another. Treat this issue as the tracker for that component: prefer one structural fix that covers every folded variant over a PR per variant.[quality] workflows.test.ts, worker/entryPoints.test.ts and worker/wranglerConfig.test.ts read src/ from the Stryker sandbox copy; no test pins that src-as-text suites use treeRoot()
Finding
#736 added
__tests__/treeRoot.tsand switchedcommands.test.tsandjobsDocs.test.tsto read the dispatchers from the tree rather than from the Stryker sandbox copy, where mutated files are instrumented and the text patterns no longer match. Three suites that pattern-matchsrc/text still resolverootwithpath.resolve(__dirname, ...):__tests__/utils/workflowYaml.ts(rootforworkflows.test.ts, whoseinputReads()scans everysrc/**/*.tsforgetInput('...'), and forworker/entryPoints.test.ts, which scanssrc/server/worker.ts)__tests__/worker/wranglerConfig.test.ts(scanssrc/server/worker.tsforenv.Xandsrc/adapters/app/settings.tsforrequired(env, 'X'))Reproduced at
afe75b9with a probe config oversrc/issueComment/meow.tsandsrc/labels/prefixed.ts(npx stryker run <probe> --dryRunOnly):prefixed.tsmakesworkflows.test.tsrelated, the instrumentedgetInput(stryMutAct_9fa48(...) ? "" : (..., 'cat-api-key'))inmeow.tsno longer matches, and the dry run fails before any mutant is tested:__tests__/setup.tsimportssrc/adapters/actions.tsandsrc/platform/index.ts, so a--mutateover either relates every suite, including the worker ones. Any extension ofstryker.nightly.config.mjsto a file that reaches these suites would turn the scheduledmutationjob red for a reason that has nothing to do with the tests' assertions.This is the fifth site of one class (two fixed in #736, three remaining), and nothing pins the remedy: a new suite that reads
src/as text would read the sandbox copy again.Recommendation
rootthroughtreeRoot()in__tests__/utils/workflowYaml.tsand__tests__/worker/wranglerConfig.test.ts, the way test(docs): read the dispatchers from the tree, not the Stryker sandbox, so --mutate over the command and job dispatchers can run #736 did for the dispatcher suites.src/as text, requires itsrootmodule to usetreeRoot(), and fails when a newsrc/-text reader appears unlisted.Decision taken by hive: this is not filed as a parked gate proposal because the maintainers already chose the remedy in #736; the pin only extends it to the remaining sites and keeps it from regressing. No
src/or workflow change is involved.Priority
Filed by quality agent (hold-gated mode)
🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9hivecommons-hive commentedon Nov 22, 2026
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.
quality (2026-11-22 21:14 UTC): Correction to the folded "Add src/utils/auth.ts, owners.ts and pullRequestOwners.ts to the nightly mutation set" finding above, so its reviewed-survivor table is not copied into
docs/contributing.mdas written.The row for
owners.ts:39(contents.trim() === ''tocontents === '') saysyaml.loadof a whitespace-only string returnsundefined. That is js-yaml 4 behaviour. This repository pins js-yaml^5.5.0(chore(deps-dev): Bump js-yaml from 4.3.2 to 5.4.1 #126), and 5.x throws instead:So the mutant is behavioural, not equivalent: without the trim, an OWNERS file holding only a newline fails every OWNERS-backed command with a YAML error. Re-probed at
afe75b9(npx stryker run stryker.config.mjs --mutate src/utils/owners.ts, 340 mutants, 26m53s): 327 killed, 12 timeouts, that one survivor, "Ran all tests for this mutant". Theauth.ts:439row stands (re-probed too: 281/284, the same three equivalent survivors,ownersInclude([])makes no request).test(owners): pin that a whitespace-only OWNERS file parses as empty, not as invalid YAML #756 adds the four whitespace-only
parseOwnerscases that kill it (they fail, 4 cases, with the trim removed). When the nightly-set extension lands after test(mutation): add lgtmBinding.ts and labels/lgtm.ts to the nightly mutation set #721,owners.tsshould then need no reviewed-survivor row at all; only theauth.ts:439row remains to document.hivecommons-hive commentedon Nov 24, 2026
Distinct finding, folded here by the hive (three attempts to open it standalone were consolidated into this issue on the shared
docs/contributing.mdmention; it is not aboutcommand.tsand PR #752 does not address it).Nightly mutation gate cannot detect a single new survivor.
stryker.nightly.config.mjssetsthresholds.break: 94with the stated intent that "a new behavioural survivor fails the nightly run". Atafe75b9the scheduled job (run 45125155064, jobmutation) reports 1268 killed, 1 timeout, 60 survived over 1329 mutants = 95.49 %. All 60 survivors are already triaged as equivalent in the three tables ofdocs/contributing.md. 94 % of 1329 admits 79 survivors, so one new behavioural survivor scores 95.41 % and the job stays green; 19 pass before it goes red. Every file added tomutate(#721) widens the headroom, because the break is a percentage of a growing total.Proposal (maintainer decision, Risk: governance): make the gate exact. Keep
breakas a backstop and additionally fail the nightly run on any survivor not on a committed allowlist:file:lineper entry, seeded from thedocs/contributing.mdtables__tests__/mutation/checkSurvivors.mjsreadsreports/mutation/report.json(thejsonreporter already writes it), exits non-zero on anySurvivedmutant not on the list and on any list entry that no longer survives"test:mutation:nightly": "stryker run stryker.nightly.config.mjs && node __tests__/mutation/checkSurvivors.mjs"(no workflow change needed)__tests__/mutationConfig.test.tspins allowlist entries and table rows against each otherbreakcomment instryker.nightly.config.mjsas the backstop it isDecision taken by hive on approach: an allowlist rather than a tighter percentage, which would still admit one survivor whenever the total grows. Sequencing: the PR must be cut after #721 lands, since it edits the same three files.
Not a coverage gap: unit (
build-test, Node 24.22.3) and bundle (e2e-coverage) runs at the same revision are 100 % lines/statements/functions; the two branch misses are the documented negative-countawaitartefacts.🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9hivecommons-hive commentedon Nov 25, 2026
Distinct finding, folded here by the hive on the shared
docs/contributing.mdmention; it is not aboutcommand.tsand no open PR addresses it.__tests__/workflows.test.tsreads the Stryker-instrumentedsrc/and fails the dry run oncemeow.tsjoins themutateset.inputReads()provesaction.ymldeclares exactly the inputssrc/reads by regex-scanningsrc/from disk. In the Stryker sandbox that is the instrumented copy, whereinputs.get('cat-api-key', ...)has becomeinputs.get(stryMutAct_9fa48("38") ? "" : (stryCov_9fa48("38"), 'cat-api-key'), ...)and no longer matches.cat-api-keyis read only bysrc/issueComment/meow.ts, so withmeow.tsmutated the key vanishes fromreadsanddeclares no input src/ never readsfails:Reproduced at afe75b9 (
@stryker-mutator/coreandvitest-runner10.1.1):npx stryker run --mutate src/issueComment/meow.ts,src/labels/prefixed.tsfails the initial test run as above.npx stryker run --mutate src/issueComment/meow.ts,src/plugins/tide.ts --dryRunOnlypasses: the runner'svitest.related(default on) runs only test files that import a mutated file, andworkflows.test.tsimportslabels/fixed,labels/prefixed,utils/configandutils/labelCatalog, none of which is in that pair.tide.tsis its oneinputs.getreader, and the nested conditional mutants on its line 313 copy the originalinputs.get('merge-method', {text verbatim into the mutant arms, so the regex still finds it.So it needs two things at once: a sole-reader file in
mutate(today onlymeow.ts) and any of those four imports inmutate. The nightly set has grown three times and #721 proposes two more files; the next person to addmeow.tsnext toprefixed.tsorconfig.tsgets a redmutationjob pointing ataction.ymlinstead of the cause.Decision taken by hive: keep the regex and the assertions (they guard a real property of
action.yml) and make the scan read the committed tree when Stryker is active. The sandbox'snode_modulesis a symlink to the real checkout's, so in__tests__/utils/workflowYaml.ts:(Not
realpathSync(path.resolve(__dirname, '../../node_modules/..')):path.resolvenormalises the..away before the symlink is followed and lands back in the sandbox.) Outside Stryker it is a no-op. Pin it with a test assertingrootholdsaction.ymland.git(the sandbox copy has no.git). Alternatives not taken: excludingworkflows.test.tsinvitest.mutation.config.mjsloses its kill power overlabelCatalog.tsandprefixed.tsshould either join the set; loosening the regex to accept thestryMutAct_...wrapper couples a test to Stryker's instrumentation format.Not opened as a PR this kick: #721 (hold-gated) already edits the
docs/contributing.md"Mutation checks" section and__tests__/mutationConfig.test.ts, where the note and the pin would go; land this after #721 or rebase onto it.rootin__tests__/utils/workflowYaml.tsresolves to the committed checkout under Stryker, with a pin🐝 Hive Agent:
quality| Instance:hosted-available-lke648397-260827-5q9t| SHA:afe75b9