gate: eslint pre-push TS gate lints app/dist-keriweb/ build output — blocks pushes on any checkout that has built keri-web (#871 class) #1352

Closed
opened 2026-09-09 06:15:06 +00:00 by matou-build-agent · 4 comments

Hit while landing #1348. eslint.config.mjs ignores **/dist/**, **/dist-electron/**, test-results/** as gitignored BUILD OUTPUT that the flat config would otherwise lint (the #871 fix). app/dist-keriweb/ (the minified keri-web.js bundle) is the same class — gitignored, untracked build output — but is NOT in the ignores list. On a host checkout that has built/driven keri-web, pnpm run lint (the #1252 pre-push TS gate, .sandcastle/gate-lib.sh) lints dist-keriweb/keri-web.js and reports ~1228 errors, blocking the push. Worked around in the #1348 session by removing the untracked artifact from the dedicated checkout; the durable fix is to add app/dist-keriweb/** (and any sibling dist-* bundle dir) to eslint.config.mjs ignores. Two-way, revertible, matches the existing pattern + comment in that file.

Hit while landing #1348. `eslint.config.mjs` ignores `**/dist/**`, `**/dist-electron/**`, `test-results/**` as gitignored BUILD OUTPUT that the flat config would otherwise lint (the #871 fix). `app/dist-keriweb/` (the minified `keri-web.js` bundle) is the same class — gitignored, untracked build output — but is NOT in the ignores list. On a host checkout that has built/driven keri-web, `pnpm run lint` (the #1252 pre-push TS gate, `.sandcastle/gate-lib.sh`) lints `dist-keriweb/keri-web.js` and reports ~1228 errors, blocking the push. Worked around in the #1348 session by removing the untracked artifact from the dedicated checkout; the durable fix is to add `app/dist-keriweb/**` (and any sibling `dist-*` bundle dir) to `eslint.config.mjs` ignores. Two-way, revertible, matches the existing pattern + comment in that file.
Author
Member

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: The eslint flat config ignores **/dist/** and **/dist-electron/** as gitignored build output but NOT app/dist-keriweb/**, so on any checkout that has built keri-web the pre-push TS gate lints the minified keri-web.js bundle (~1228 errors) and blocks the push (#871 class).

Current behavior:
eslint.config.mjs's ignores list excludes gitignored BUILD OUTPUT that the flat config would otherwise lint (eslint's flat config does not read .gitignore): **/dist/**, **/dist-electron/**, test-results/**, etc. — this was the #871 fix. app/dist-keriweb/ (the minified keri-web.js bundle) is the same class — gitignored (confirmed: .gitignore line dist-keriweb/, 0 tracked files) and untracked — but it is NOT in the ignores list, and **/dist/** does not match the differently-named dist-keriweb directory. On a host checkout that has built or driven keri-web, pnpm run lint (the #1252 pre-push TS gate in .sandcastle/gate-lib.sh) lints dist-keriweb/keri-web.js, reports ~1228 errors, and blocks the push. The #1348 session worked around it by deleting the untracked artifact from the checkout — not durable.

Desired behavior:
The eslint flat config ignores app/dist-keriweb/** (and, to prevent recurrence, any sibling dist-* bundle directory of the same build-output class) so a checkout that has built keri-web lints clean and the pre-push gate does not fire on untracked build output.

Key interfaces:

  • The ignores array in eslint.config.mjs — add the dist-keriweb bundle dir to the same gitignored-build-output list that already carries **/dist/** and **/dist-electron/**, matching the existing pattern and its explanatory comment.

Acceptance criteria:

  • On a checkout where app/dist-keriweb/keri-web.js exists, pnpm run lint does not report errors from dist-keriweb/ and exits clean (assuming source is clean).
  • The addition sits in the existing ignores list with the other gitignored build-output globs; the #871 exclusions (**/dist/**, **/dist-electron/**, test-results/**, etc.) are unchanged.
  • Linting of actual product TypeScript source is unaffected.

Out of scope:

  • Any change to which product source files are linted, or to the lint rules themselves.
  • Removing or restructuring the #871 ignores.
  • The .sandcastle/gate-lib.sh gate wiring itself (only the ignore list is at fault).

Triage note (model sizing): this is a mechanical one-line ignore-list addition matching an existing pattern; a human/triage may wish to add model-sonnet to right-size it off the fleet default. Not applied here — model downgrades stay a human/triage decision per docs/agents/triage-labels.md.

> *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** The eslint flat config ignores `**/dist/**` and `**/dist-electron/**` as gitignored build output but NOT `app/dist-keriweb/**`, so on any checkout that has built keri-web the pre-push TS gate lints the minified `keri-web.js` bundle (~1228 errors) and blocks the push (#871 class). **Current behavior:** `eslint.config.mjs`'s `ignores` list excludes gitignored BUILD OUTPUT that the flat config would otherwise lint (eslint's flat config does not read `.gitignore`): `**/dist/**`, `**/dist-electron/**`, `test-results/**`, etc. — this was the #871 fix. `app/dist-keriweb/` (the minified `keri-web.js` bundle) is the same class — gitignored (confirmed: `.gitignore` line `dist-keriweb/`, 0 tracked files) and untracked — but it is NOT in the ignores list, and `**/dist/**` does not match the differently-named `dist-keriweb` directory. On a host checkout that has built or driven keri-web, `pnpm run lint` (the #1252 pre-push TS gate in `.sandcastle/gate-lib.sh`) lints `dist-keriweb/keri-web.js`, reports ~1228 errors, and blocks the push. The #1348 session worked around it by deleting the untracked artifact from the checkout — not durable. **Desired behavior:** The eslint flat config ignores `app/dist-keriweb/**` (and, to prevent recurrence, any sibling `dist-*` bundle directory of the same build-output class) so a checkout that has built keri-web lints clean and the pre-push gate does not fire on untracked build output. **Key interfaces:** - The `ignores` array in `eslint.config.mjs` — add the `dist-keriweb` bundle dir to the same gitignored-build-output list that already carries `**/dist/**` and `**/dist-electron/**`, matching the existing pattern and its explanatory comment. **Acceptance criteria:** - [ ] On a checkout where `app/dist-keriweb/keri-web.js` exists, `pnpm run lint` does not report errors from `dist-keriweb/` and exits clean (assuming source is clean). - [ ] The addition sits in the existing `ignores` list with the other gitignored build-output globs; the #871 exclusions (`**/dist/**`, `**/dist-electron/**`, `test-results/**`, etc.) are unchanged. - [ ] Linting of actual product TypeScript source is unaffected. **Out of scope:** - Any change to which product source files are linted, or to the lint rules themselves. - Removing or restructuring the #871 ignores. - The `.sandcastle/gate-lib.sh` gate wiring itself (only the ignore list is at fault). **Triage note (model sizing):** this is a mechanical one-line ignore-list addition matching an existing pattern; a human/triage may wish to add `model-sonnet` to right-size it off the fleet default. Not applied here — model downgrades stay a human/triage decision per `docs/agents/triage-labels.md`.
Author
Member

swarm-claim host=matou-dev-server-01 run=20435
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=20435 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1352 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 10131692a2 is not reachable from origin/main (not landed)
  • changed_files: 'eslint.config.mjs' is not in the diff of the claimed commits
  • status:success but test './node_modules/.bin/eslint app/dist-keriweb/keri-web.js (synthetic bundle, pre-fix)' exited 1 (a claimed-passing run that did not pass)
envelope
{
  "issue": 1352,
  "status": "success",
  "commits": [
    "10131692a2eca4b7db50007c5c29d618118fbc0f"
  ],
  "changed_files": [
    "eslint.config.mjs"
  ],
  "tests": [
    {
      "command": "./node_modules/.bin/eslint app/dist-keriweb/keri-web.js  (synthetic bundle, pre-fix)",
      "exit_code": 1
    },
    {
      "command": "./node_modules/.bin/eslint .  (synthetic bundle present, post-fix)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "On a checkout where app/dist-keriweb/keri-web.js exists, pnpm run lint does not report errors from dist-keriweb/ and exits clean": "Synthetic app/dist-keriweb/keri-web.js with 4 no-unused-vars errors: eslint flagged them pre-fix (exit 1); post-fix 'eslint .' with the same file present exits 0 — the ignore drops it. commit 10131692a2eca4b7db50007c5c29d618118fbc0f",
    "The addition sits in the existing ignores list with the other gitignored build-output globs; the #871 exclusions (**/dist/**, **/dist-electron/**, test-results/**, etc.) are unchanged": "Added '**/dist-keriweb/**' between '**/dist-electron/**' and '**/node_modules/**' in the same ignores array; the #871 globs are byte-for-byte unchanged (eslint.config.mjs diff is +6 lines: the comment + one ignore entry)",
    "Linting of actual product TypeScript source is unaffected": "'eslint .' exits 0 with product source unchanged; the new glob matches only dist-keriweb/ bundle dirs, never .ts source"
  },
  "summary": "eslint flat config now ignores app/dist-keriweb/** so a checkout that has built keri-web lints clean and the #1252 pre-push gate stops firing on the untracked keri-web.js bundle.",
  "no_code_change": ""
}
**close-report** for #1352 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 10131692a2eca4b7db50007c5c29d618118fbc0f is not reachable from origin/main (not landed) - changed_files: 'eslint.config.mjs' is not in the diff of the claimed commits - status:success but test './node_modules/.bin/eslint app/dist-keriweb/keri-web.js (synthetic bundle, pre-fix)' exited 1 (a claimed-passing run that did not pass) <details><summary>envelope</summary> ```json { "issue": 1352, "status": "success", "commits": [ "10131692a2eca4b7db50007c5c29d618118fbc0f" ], "changed_files": [ "eslint.config.mjs" ], "tests": [ { "command": "./node_modules/.bin/eslint app/dist-keriweb/keri-web.js (synthetic bundle, pre-fix)", "exit_code": 1 }, { "command": "./node_modules/.bin/eslint . (synthetic bundle present, post-fix)", "exit_code": 0 } ], "criteria": { "On a checkout where app/dist-keriweb/keri-web.js exists, pnpm run lint does not report errors from dist-keriweb/ and exits clean": "Synthetic app/dist-keriweb/keri-web.js with 4 no-unused-vars errors: eslint flagged them pre-fix (exit 1); post-fix 'eslint .' with the same file present exits 0 — the ignore drops it. commit 10131692a2eca4b7db50007c5c29d618118fbc0f", "The addition sits in the existing ignores list with the other gitignored build-output globs; the #871 exclusions (**/dist/**, **/dist-electron/**, test-results/**, etc.) are unchanged": "Added '**/dist-keriweb/**' between '**/dist-electron/**' and '**/node_modules/**' in the same ignores array; the #871 globs are byte-for-byte unchanged (eslint.config.mjs diff is +6 lines: the comment + one ignore entry)", "Linting of actual product TypeScript source is unaffected": "'eslint .' exits 0 with product source unchanged; the new glob matches only dist-keriweb/ bundle dirs, never .ts source" }, "summary": "eslint flat config now ignores app/dist-keriweb/** so a checkout that has built keri-web lints clean and the #1252 pre-push gate stops firing on the untracked keri-web.js bundle.", "no_code_change": "" } ``` </details>
Author
Member

close-report for #1352 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1352,
  "status": "success",
  "commits": [
    "10131692a2eca4b7db50007c5c29d618118fbc0f"
  ],
  "changed_files": [
    "eslint.config.mjs"
  ],
  "tests": [
    {
      "command": "./node_modules/.bin/eslint .  (with a synthetic app/dist-keriweb/keri-web.js bundle present)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "On a checkout where app/dist-keriweb/keri-web.js exists, pnpm run lint does not report errors from dist-keriweb/ and exits clean": "Synthetic app/dist-keriweb/keri-web.js carrying 4 no-unused-vars errors: eslint flagged all 4 before the fix, and after adding the ignore 'eslint .' with that same file present exits 0 — the bundle is dropped. commit 10131692a2eca4b7db50007c5c29d618118fbc0f",
    "The addition sits in the existing ignores list with the other gitignored build-output globs; the #871 exclusions (**/dist/**, **/dist-electron/**, test-results/**, etc.) are unchanged": "Added '**/dist-keriweb/**' into the same ignores array between '**/dist-electron/**' and '**/node_modules/**', with a comment tying it to the #871 build-output class; the #871 globs are byte-for-byte unchanged (diff is +6 lines only)",
    "Linting of actual product TypeScript source is unaffected": "'eslint .' exits 0 with product source unchanged; the new glob matches only dist-keriweb bundle dirs, never .ts source"
  },
  "summary": "eslint flat config now ignores app/dist-keriweb/** so a checkout that has built keri-web lints clean and the #1252 pre-push gate stops firing on the untracked keri-web.js bundle.",
  "no_code_change": ""
}
**close-report** for #1352 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1352, "status": "success", "commits": [ "10131692a2eca4b7db50007c5c29d618118fbc0f" ], "changed_files": [ "eslint.config.mjs" ], "tests": [ { "command": "./node_modules/.bin/eslint . (with a synthetic app/dist-keriweb/keri-web.js bundle present)", "exit_code": 0 } ], "criteria": { "On a checkout where app/dist-keriweb/keri-web.js exists, pnpm run lint does not report errors from dist-keriweb/ and exits clean": "Synthetic app/dist-keriweb/keri-web.js carrying 4 no-unused-vars errors: eslint flagged all 4 before the fix, and after adding the ignore 'eslint .' with that same file present exits 0 — the bundle is dropped. commit 10131692a2eca4b7db50007c5c29d618118fbc0f", "The addition sits in the existing ignores list with the other gitignored build-output globs; the #871 exclusions (**/dist/**, **/dist-electron/**, test-results/**, etc.) are unchanged": "Added '**/dist-keriweb/**' into the same ignores array between '**/dist-electron/**' and '**/node_modules/**', with a comment tying it to the #871 build-output class; the #871 globs are byte-for-byte unchanged (diff is +6 lines only)", "Linting of actual product TypeScript source is unaffected": "'eslint .' exits 0 with product source unchanged; the new glob matches only dist-keriweb bundle dirs, never .ts source" }, "summary": "eslint flat config now ignores app/dist-keriweb/** so a checkout that has built keri-web lints clean and the #1252 pre-push gate stops firing on the untracked keri-web.js bundle.", "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1352
No description provided.