loki-mode 11.3.4 → 11.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/autonomy/run.sh +1 -1
  4. package/dashboard/__init__.py +1 -1
  5. package/docs/CLI-REFERENCE.md +1 -1
  6. package/docs/INSTALLATION.md +1 -1
  7. package/docs/environment-variables.md +1 -1
  8. package/docs/v10/FAILURE-CLASSES.md +26 -0
  9. package/docs/v10/GUARDS.md +7 -0
  10. package/loki-ts/dist/loki.js +667 -667
  11. package/mcp/__init__.py +1 -1
  12. package/package.json +2 -2
  13. package/packages/control-plane/dist/server.js +241 -179
  14. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  15. package/web-app/dist/assets/{AdminPage-CKj0pDt0.js → AdminPage-DQmOVG7S.js} +1 -1
  16. package/web-app/dist/assets/{Avatar-BOV__pMM.js → Avatar-CgA1W2hU.js} +1 -1
  17. package/web-app/dist/assets/{Badge-4a6mAYjU.js → Badge-BHu-Aw77.js} +1 -1
  18. package/web-app/dist/assets/{Button-B3GM7oxm.js → Button-Dd5PTsTA.js} +1 -1
  19. package/web-app/dist/assets/{CockpitPage-Cwge3_kH.js → CockpitPage-BqZAu2dx.js} +1 -1
  20. package/web-app/dist/assets/{ComparePage-CBQUGKsm.js → ComparePage-BoLiFsH-.js} +1 -1
  21. package/web-app/dist/assets/{ErrorBoundary-TM7lDjUJ.js → ErrorBoundary-D5LPwwqH.js} +1 -1
  22. package/web-app/dist/assets/{EvidenceReceiptPanel-DUOseTYA.js → EvidenceReceiptPanel-_Cnzqiz3.js} +1 -1
  23. package/web-app/dist/assets/{GitHubIssuesPanel-hK_uML6T.js → GitHubIssuesPanel-DP7RgZIj.js} +1 -1
  24. package/web-app/dist/assets/{GitHubPRsPanel-Bt0mug-u.js → GitHubPRsPanel-B7G7f1ME.js} +1 -1
  25. package/web-app/dist/assets/{HomePage-DcOogAai.js → HomePage-BtTxigAS.js} +2 -2
  26. package/web-app/dist/assets/{LoginPage-D41pjjhF.js → LoginPage-BN8rKw8b.js} +1 -1
  27. package/web-app/dist/assets/{MagicPage-iDcdAcL2.js → MagicPage-CZHgAX_d.js} +1 -1
  28. package/web-app/dist/assets/{MetricsPage-Tt4sfFD1.js → MetricsPage-BGeztBOD.js} +1 -1
  29. package/web-app/dist/assets/{NotFoundPage-DPQMausn.js → NotFoundPage-llhb5dZD.js} +1 -1
  30. package/web-app/dist/assets/{ProjectPage-DdMz4frY.js → ProjectPage-8eDk19Hz.js} +3 -3
  31. package/web-app/dist/assets/{ProjectsPage-Be0v4ace.js → ProjectsPage-CGYuJP1i.js} +1 -1
  32. package/web-app/dist/assets/{SettingsPage-90yIh-mE.js → SettingsPage-UT4j3Hi8.js} +1 -1
  33. package/web-app/dist/assets/{ShowcasePage-D5x5eczl.js → ShowcasePage-BYj3La6L.js} +1 -1
  34. package/web-app/dist/assets/{SystemSettingsPage-UWeWT8KX.js → SystemSettingsPage-Dp5zvB-G.js} +1 -1
  35. package/web-app/dist/assets/{TeamsPage-BtofFlme.js → TeamsPage-DUK-Q4wW.js} +1 -1
  36. package/web-app/dist/assets/{TemplatesPage-DwB8Va2Z.js → TemplatesPage-CB-bJpPc.js} +1 -1
  37. package/web-app/dist/assets/{TerminalOutput-CGIgTmby.js → TerminalOutput-BQs_SwaV.js} +1 -1
  38. package/web-app/dist/assets/{activity-BZ77CO72.js → activity-BgC_Ois0.js} +1 -1
  39. package/web-app/dist/assets/{bell-Bzpqv6un.js → bell-CQM4oxzr.js} +1 -1
  40. package/web-app/dist/assets/{bot-yXo1B_-f.js → bot-BbnmKWvH.js} +1 -1
  41. package/web-app/dist/assets/{check-BSxGjsta.js → check-C7rK0fPm.js} +1 -1
  42. package/web-app/dist/assets/{chevron-left-CqTRVUB5.js → chevron-left-BcfKpSjM.js} +1 -1
  43. package/web-app/dist/assets/{circle-alert-88gdjY71.js → circle-alert-Bz0gNsvI.js} +1 -1
  44. package/web-app/dist/assets/{clock-XdFXoaJi.js → clock-D62JPqIM.js} +1 -1
  45. package/web-app/dist/assets/{cloud-Tx1sJrXz.js → cloud-DqUjmEip.js} +1 -1
  46. package/web-app/dist/assets/{code-xml-DaH9CKWy.js → code-xml-BOfhXcsB.js} +1 -1
  47. package/web-app/dist/assets/{database-BpvOmzij.js → database-BtUHezwg.js} +1 -1
  48. package/web-app/dist/assets/{dollar-sign-VC2UX2UE.js → dollar-sign-YuKPD0TX.js} +1 -1
  49. package/web-app/dist/assets/{file-code-corner--TF3VpoT.js → file-code-corner-lM78R7wx.js} +1 -1
  50. package/web-app/dist/assets/{file-plus-DZpwU9pY.js → file-plus-k9jtMlVw.js} +1 -1
  51. package/web-app/dist/assets/{globe-tbpeHRPV.js → globe-BotkF9Lb.js} +1 -1
  52. package/web-app/dist/assets/{hammer-CKLXn4vL.js → hammer-BbctxPnE.js} +1 -1
  53. package/web-app/dist/assets/{index-DnCsWpCh.js → index-CQ_LSpnv.js} +3 -3
  54. package/web-app/dist/assets/{layers-B0fkGsk8.js → layers-DHh4VJfQ.js} +1 -1
  55. package/web-app/dist/assets/{loader-circle-czscMzmQ.js → loader-circle-BAb1cEw6.js} +1 -1
  56. package/web-app/dist/assets/{lock-CTtO6vc8.js → lock-DrdR04VZ.js} +1 -1
  57. package/web-app/dist/assets/{package-DZeSY0-g.js → package-BoJAHt7a.js} +1 -1
  58. package/web-app/dist/assets/{plus-mE12CJVN.js → plus-CI6B0_tm.js} +1 -1
  59. package/web-app/dist/assets/{refresh-cw-9DSznasU.js → refresh-cw-BqmrZLg2.js} +1 -1
  60. package/web-app/dist/assets/{rotate-ccw-DcHI0M43.js → rotate-ccw-DUZOTZYh.js} +1 -1
  61. package/web-app/dist/assets/{scroll-text-BWLthSw-.js → scroll-text-CNtbRU1G.js} +1 -1
  62. package/web-app/dist/assets/{server-_I247LrS.js → server-DyPZO72X.js} +1 -1
  63. package/web-app/dist/assets/{shield-alert-XRJYD_6c.js → shield-alert-DrhFa6cZ.js} +1 -1
  64. package/web-app/dist/assets/{thumbs-up-CxuTD3eO.js → thumbs-up-DNgUkbHP.js} +1 -1
  65. package/web-app/dist/assets/{trash-2-DuGxuVt8.js → trash-2-DGTZpPKg.js} +1 -1
  66. package/web-app/dist/assets/{trending-down-Cg_zGt__.js → trending-down-5zMgMOQa.js} +1 -1
  67. package/web-app/dist/assets/{trending-up-DpUJzIrV.js → trending-up-Dk5fQQzd.js} +1 -1
  68. package/web-app/dist/assets/{upload-Db7YZ4zR.js → upload-BxVLazyr.js} +1 -1
  69. package/web-app/dist/assets/{usePolling-BGRYm-vq.js → usePolling-B6ukuagG.js} +1 -1
  70. package/web-app/dist/assets/{user-CxHrowEP.js → user-BAuQUINc.js} +1 -1
  71. package/web-app/dist/index.html +1 -1
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: An autonomous software factory that knows what it is supposed to deliver, and proves it did. Use when the user says Loki Mode or asks to build, fix or verify software autonomously.
4
4
  ---
5
5
 
6
- # Loki Mode v11.3.4
6
+ # Loki Mode v11.3.6
7
7
 
8
8
  **Current entry points (Loki 10 engine):** `loki "<task>"`, `loki owner/repo#N` and `loki quick "<task>"` run the Loki 10 engine and end with a signed receipt (`loki verify`). `loki backlog owner/repo --all` runs many issues in parallel. Guide: `docs/v10/GUIDE.md`. The skill instructions below, and `loki start`, describe the previous bash loop. PRD-file starts (`loki start ./prd.md`) and the opencode provider still run on it until FC38-SWEEP ports them; the legacy-engine command and the LOKI_ENGINE switch remain removed. Prefer `loki owner/repo#N` for issues.
9
9
 
@@ -483,4 +483,4 @@ See `CHANGELOG.md` entries [7.5.7], [7.5.8], [7.5.13] for the per-fix list and r
483
483
 
484
484
  ---
485
485
 
486
- **v11.3.4 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
486
+ **v11.3.6 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.3.4
1
+ 11.3.6
package/autonomy/run.sh CHANGED
@@ -5386,7 +5386,7 @@ except Exception:
5386
5386
  }
5387
5387
 
5388
5388
  #===============================================================================
5389
- # Rule of Two (moat P9): a GitHub token never reaches an agent session via the
5389
+ # Rule of Two (moat P9): Loki never passes the GitHub token into the agent's environment via the
5390
5390
  # IMPLICIT resolution paths this module withholds (env vars, gh config store,
5391
5391
  # git credential.helper, SSH agent/ssh command). Not an absolute claim -- see
5392
5392
  # the disclosed residuals at the end of this header (an explicit named-account
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "11.3.4"
10
+ __version__ = "11.3.6"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -1,6 +1,6 @@
1
1
  # CLI reference
2
2
 
3
- Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.3.4. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.3.6. Do not edit by hand.
4
4
  Hidden and legacy-only commands are omitted; see `docs/v10/CLI-MODERN.md` for the full inventory.
5
5
 
6
6
  | Command | Description |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Loki Mode, by [Autonomi](https://www.autonomi.dev/), turns a spec or an issue into a verified pull request with a receipt you can check. This page covers installing it, a first run, and the options around it.
4
4
 
5
- **Version:** v11.3.4
5
+ **Version:** v11.3.6
6
6
 
7
7
  **Engine note:** `loki "<task>"`, `loki owner/repo#N` and `loki quick` run the Loki 10 engine. `loki start` still routes to the older engine, which is being removed; prefer `loki owner/repo#N`. See the [user guide](v10/GUIDE.md).
8
8
 
@@ -134,7 +134,7 @@ banners you might expect. These variables control the remaining `[INFO]` and
134
134
  |---|---|---|
135
135
  | `LOKI_DURABLE_STATE` | `0` | `1` enables durable state **and** the richer process-exit contract that lets Kubernetes distinguish a deterministic failure from a crash. See [exit codes](./exit-codes.md). |
136
136
  | `LOKI_SDK_LOOP` | unset | Routes the run through the Bun/TypeScript runner instead of bash. Both implement the same exit contract. |
137
- | `LOKI_ALLOW_AGENT_GITHUB_TOKEN` | unset | By default `GH_TOKEN`, `GITHUB_TOKEN`, `GH_ENTERPRISE_TOKEN`, and `GITHUB_ENTERPRISE_TOKEN` are withheld from agent sessions. The two routes differ: on the bash route (`autonomy/run.sh`) the withheld tokens are re-granted only for Loki's own trusted calls, namely the `gh()` CLI wrapper, the `_loki_net` helper used by the optional local-PR path in `on_run_complete()`, the session-end `create_session_pr` call, and `autonomy/lib/proof-check.sh`'s network probe. On the Bun route (`loki-ts/src/runner/github_token.ts`'s `withholdGithubTokens()`) the tokens are dropped from the process outright, with no re-grant and no push/PR step of its own. Exactly `1` lets the agent inherit the tokens as before, on either route; that is a Rule of Two exposure, and a one-line stderr warning is printed. |
137
+ | `LOKI_ALLOW_AGENT_GITHUB_TOKEN` | unset | By default `GH_TOKEN`, `GITHUB_TOKEN`, `GH_ENTERPRISE_TOKEN`, and `GITHUB_ENTERPRISE_TOKEN` are withheld from the agent's environment (the agent runs as the user, so OS keychain and credential files are not yet isolated; P9-ISOLATION is in design). The two routes differ: on the bash route (`autonomy/run.sh`) the withheld tokens are re-granted only for Loki's own trusted calls, namely the `gh()` CLI wrapper, the `_loki_net` helper used by the optional local-PR path in `on_run_complete()`, the session-end `create_session_pr` call, and `autonomy/lib/proof-check.sh`'s network probe. On the Bun route (`loki-ts/src/runner/github_token.ts`'s `withholdGithubTokens()`) the tokens are dropped from the process outright, with no re-grant and no push/PR step of its own. Exactly `1` lets the agent inherit the tokens as before, on either route; that is a Rule of Two exposure, and a one-line stderr warning is printed. |
138
138
  | `LOKI_AI_MARKING` | unset (off) | `1` (exactly) adds machine-readable trailers to the Loki commit (`AI-Generated: true`, `AI-Provider`, `AI-Model`, `Loki-Receipt`, after `Loki-Run`) and one `AI-Generated: true (...)` marker line under the verdict in the PR body. Values are single-line and bounded. Off, the commit and PR body are byte-identical to before. |
139
139
 
140
140
  `LOKI_DURABLE_STATE=1` is the one to set in a Job or task definition. Without
@@ -760,3 +760,29 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
760
760
  - Mechanism: plainTestEnv (util/check_result.ts) now starts from tokenFreeEnv(base), so a test command never carries credentials; the guard treats plainTestEnv as token-free (SAFE) and a call window now ends at the next call line. Allowlist: verify.ts and wall.ts entries removed (0 violations), load_owner.ts@2 lowered to @1 (the pgrep call, still a real full-env spawn).
761
761
  - Fixture: tests/util/plain_test_env_tokens.test.ts (planted token family in the parent; plainTestEnv, a child, and a real Wall base run see none; red when plainTestEnv is mutated back to a full copy) and planted cases in full_env_spawn_guard.test.ts (raw process.env spawns still flag 1, plainTestEnv flags 0).
762
762
  - Sibling question (fast gate): the WALL-COLOR merge did not run this guard. scripts/select-tests.sh rule R4 maps a changed loki-ts/src file only to bun tests whose text contains that file's src-relative stem (for example engine10/stages/wall); full_env_spawn_guard.test.ts walks all of src and names none, so it is never selected, and the fast gate only runs bun typecheck for it. Not fixed here; a follow-up slice should make a loki-ts/src change select the walk-all-src guard tests.
763
+
764
+ ## FC-89 A guard that walks all of loki-ts/src names no stem, so the fast gate never selected it (FASTGATE-GLOBAL-GUARDS)
765
+ - User saw: WALL-COLOR (FC-69) reached main red; the diff-selected fast gate ran only a typecheck. Third miss of the CTO rule that global guards always run.
766
+ - Law: a guard whose scope is the whole tree must be selected by what it is, not by which file changed; a selection keyed on a name in the test text cannot see a test that names nothing.
767
+ - Cause (measured): R4 selects a bun test only if its text contains the changed file's src-relative stem. Tests such as budget.test.ts and l2_destructive_registry.test.ts (and pr_body_golden, session, term_width, project_model) read every file under loki-ts/src and name none, so a diff to engine10/stages/wall.ts never selected them. The hard-coded scripts/global-guards.tsv rows covered some guards by hand and rotted for the rest.
768
+ - Siblings swept: every loki-ts/tests/**/*.test.ts that walks a src-rooted path (17 found, listed by the marker); three false positives that only walk tmp or tests dirs carry the audited opt-out.
769
+ - Mechanism: a test that walks the src tree carries the line "// select: walk-all-src". scripts/select-tests.sh emit_marked_walkers finds them by content and emits each as an R8 row on every diff (skipping any already covered by a global-guards.tsv row or directory row), so a new walker needs no list edit.
770
+ - Fixture: tests/test-select-tests.sh FC-89 (a diff touching only loki-ts/src/engine10/stages/wall.ts selects full_env_spawn_guard, fc25_raw_spawn_guard, l0_guard, spawn_env_guard, budget, l2_destructive_registry, never_below_raw; every marked file is selected; a completeness scan fails on any src-walking test with neither "select: walk-all-src" nor "select: not-src-walker (reason)"). Mutation: deleting the marker from l2_destructive_registry.test.ts turns it red on both the selection and the completeness check.
771
+
772
+ ## FC-90 Deleting the token env vars left the user's gh login and git credential helpers reachable (GH-KEYRING)
773
+ - User saw: nothing yet (found by audit). With GH_TOKEN, GITHUB_TOKEN, GH_ENTERPRISE_TOKEN, GITHUB_ENTERPRISE_TOKEN and SSH_AUTH_SOCK removed, `gh auth token` exited 0 and `gh api user` returned the user's login on the founder machine, and git held `osxkeychain` plus `!gh auth git-credential` helpers over an HTTPS origin.
774
+ - Law: P9 (agent and test code never holds the user's credential) is a property of every credential store a child can reach, not of the env vars alone; one shared mechanism builds the withheld env, so no env builder can delete a subset and call it token-free.
775
+ - Cause (measured): tokenFreeEnv (util/safe_git.ts) and plainTestEnv (util/check_result.ts) only deleted the vars. gh then falls back to GH_CONFIG_DIR/hosts.yml and the OS keyring, and git calls its configured helpers on an HTTPS push. withholdGithubTokens already closed this for the worker, but only for the worker env. Measured with gh: GH_CONFIG_DIR alone leaves `gh auth token` exit 0 (keyring); a sentinel token alone makes `gh auth status` fail but a named-account read (`gh auth token --user`) still reads hosts.yml; both together close it.
776
+ - Mechanism: util/credential_env.ts hardenCredentialEnv is the one function: the 4 vars become a non-working sentinel, GH_CONFIG_DIR is a per-process empty mode-700 directory, credential.helper is reset through GIT_CONFIG_COUNT/KEY/VALUE appended after existing entries (the user's gitconfig is never edited and identity survives), GIT_TERMINAL_PROMPT=0 and GCM_INTERACTIVE=never. tokenFreeEnv (so plainTestEnv, safeGitEnv) and withholdGithubTokens both call it; the LOKI_ALLOW_AGENT_GITHUB_TOKEN opt-out stays in withholdGithubTokens only, test envs are always hardened. The empty dir is made once per process (not per call), under LOKI_RUN_TMP when it is a real directory, else the OS temp dir, and removed by exact path at exit (the old per-call scoped dirs leaked).
777
+ - Siblings swept: withholdGithubTokens (now shared), tokenFreeEnv callers (attempts, wall_snapshot, verify_pr, start), plainTestEnv callers (wall, verify, load_owner), the worker assertion (sentinel prefix now exported from credential_env.ts), and the bash route (_loki_withhold_github_tokens at autonomy/run.sh main() already sets the sentinel, a scoped GH_CONFIG_DIR, the helper reset and an EXIT trap removal). Raw `process.env` spawns elsewhere inherit an already-withheld process env (runner after autonomous.ts withholdGithubTokens, worker after supervisor.ts) and are policed by full_env_spawn_guard.
778
+ - Fixture: tests/util/fc90_credential_env.test.ts (a fake HOME with a planted gh hosts.yml and a planted global git credential helper, each with a positive control on the raw env; red on the old tokenFreeEnv, red when the GH_CONFIG_DIR line, the credential.helper reset or the sentinel is removed; plus a count of loki-gh-config-* dirs in an isolated TMPDIR before and after).
779
+ - CI note (fix-forward, cc8e17512 red on ubuntu): the named-account control `gh auth token --user` returned empty on gh for Linux because a flat hosts.yml is not read by a named lookup there (the multi-account `users:` shape is), while the default `gh auth token` reads only the flat one on the same gh. The fixture now probes the installed gh with each shape in a scratch home, plants the one that works in a separate named home, and skips the named-account test (control and hardened assertion together) when no shape works. Verified on ubuntu:24.04 with gh 2.102.0.
780
+ - Residual: SSH keys under ~/.ssh and GIT_SSH_COMMAND are closed only for the worker env (withholdGithubTokens), not for plainTestEnv; a test command can still `ssh` with the user's default keys.
781
+
782
+ ## FC-88 The release gate repeated the Tests workflow's typecheck and bun suite on the same tree (WF-GATE-DEDUP)
783
+ - User saw: every release waited 6m40s in release.yml's gate step "Bun typecheck + test (protect published loki-ts dist)" (run 37859034694, v11.3.4) for work the Tests workflow had already finished green on the same tree, or on the bump-only parent (FC-70).
784
+ - Law: a gate does only what the verdict it depends on cannot; a second copy of a check is latency with no added safety, and it hides which check is the real one.
785
+ - Cause (measured): the step ran `bun install`, `bun run typecheck` and the full `bun test` plus a Python and pytest setup for the Wall tests. Tests already runs tsc (test.yml "Typecheck loki-ts (tsc)", lines 193-195) and the bun suites (impacted shards, full-suite fallback), and `release` needs required-ci (release.yml, `needs: [gate, required-ci]`), whose REQUIRED list names Tests and accepts the parent verdict for a bump-only commit. The one thing Tests cannot see was never checked in the gate: that the committed dist is a fresh build of the release SHA and that the packed tarball carries it.
786
+ - Siblings swept: publish-npm's pack check (release.yml "Pack once and verify the PACKED tarball", it also rebuilds through prepack; untouched), local-ci.sh's own typecheck and bun test (local tier, not a CI gate; untouched), version-bump-only reuse (unchanged), test.yml typecheck-build (kept as the single typecheck).
787
+ - Mechanism: scripts/ci/verify-release-dist.sh. `build` rebuilds loki-ts/dist and compares all four files to the committed dist byte for byte, ignoring only the debugId; `tarball` does the same for the dist inside `npm pack --ignore-scripts`. The gate runs these two and nothing that Tests runs.
788
+ - Fixture: tests/test-release-gate-dedup.sh (red when the gate reintroduces bun test, pytest or typecheck, loses either dist check, when release stops needing required-ci, or when required-ci stops requiring Tests; plus verifier behavior on a debugId-only tarball and a real byte difference).
@@ -868,3 +868,10 @@ previously mismarked two merged guards (S-16, S-74) as PENDING.
868
868
  - **The test that proves it fires:** `tests/test-select-tests.sh` (R8 cases):
869
869
  an attempts.ts-only diff and a docs-only diff each select every declared
870
870
  guard. Run: `bash tests/test-select-tests.sh`.
871
+
872
+ ## 23. Deleting the token env vars left gh and git credential stores reachable (GH-KEYRING, FC-90)
873
+
874
+ - **Incident:** with the token vars removed, `gh auth token` still returned the user's login via the keyring and git still ran osxkeychain and gh credential helpers; tokenFreeEnv and plainTestEnv did nothing about either.
875
+ - **Root cause:** each env builder deleted a subset of credential paths itself; only the worker env reset the rest.
876
+ - **Guard:** `loki-ts/tests/util/fc90_credential_env.test.ts` plants a fake gh hosts.yml and a fake global git credential helper in a fake HOME, proves the raw env sees them, and proves an env from plainTestEnv does not; it also pins the one-dir-per-process GH_CONFIG_DIR lifecycle. It lives in loki-ts/tests/util, which `scripts/global-guards.tsv` already selects on every diff.
877
+ - **The test that proves it fires:** removing the GH_CONFIG_DIR line, the credential.helper reset or the sentinel from `loki-ts/src/util/credential_env.ts` turns it red. Run: `cd loki-ts && bun test tests/util/fc90_credential_env.test.ts`.