Skip to content

Loki Mode v11.156.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 00:20
· 511 commits to main since this release
Immutable release. Only release title and notes can be modified.

Loki follows the repository's own test instructions

Checked without a model: three of Loki's four large test files passed on this code (run-safety 186 passed, 0 failed; engine10-e2e-stub 178 passed, 0 failed; stacks 92 passed, 0 failed). The fourth (scope-and-fix) was stopped part way with no failure seen, so it is not a full pass. Not run on a real repository yet. On a repository whose guides name no test command (checked on one: FireLater) nothing changes. If a documented command cannot start, the check reads not run and there is no fallback to the old command. Test data folders are kept out of the home directory, but a project that writes under the home directory itself (for example ~/.hermes) still can; LOKI_E10_TEST_HOME_ISOLATION=home moves that too. LOKI_E10_REPO_GUIDES=0 turns guide following off.

  • Loki follows the repository's own instructions for running its tests. At intake it reads AGENTS.md, CLAUDE.md, CONTRIBUTING.md and README.md (and the justfile and scripts/) without a model call, and takes the test command, the setup command and explicit prohibitions, each with its file and line. Recorded on hermes-agent: AGENTS.md says "always scripts/run_tests.sh, never bare pytest", and Loki ran python3 -m pytest anyway. A documented script that exists in the checkout is now the command for the test checks, the package suite and the comparison on the base commit; a command the guide forbids is not run when the guide names one Loki can run in its place; the implement and fix briefs say which command to use; and the receipt says which command ran and where it came from ("test command from AGENTS.md:146"). Only text in a code span or code block beside a test or setup word is read, only the script, target or recipe itself is run (never the guide's own arguments), setup commands are told to the model and never run by Loki, and a command that deletes, pushes, publishes, uses sudo, installs a global tool, pipes a download into a shell or names a path outside the checkout is ignored and listed in the receipt. The reading is taken once at intake, so a session that edits a guide changes nothing in its own run. LOKI_E10_REPO_GUIDES=0 turns it off.
  • Test commands Loki runs no longer write the user's XDG directories: XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_CACHE_HOME and XDG_STATE_HOME point at a directory of the run, and uv, corepack, pre-commit, mise (and on Linux pip, Go, poetry, yarn, playwright, cypress, deno and hatch) keep their real caches through their own variables. LOKI_E10_TEST_HOME_ISOLATION=0 turns it off. HOME itself is not moved by default, so a test that writes ~/.name directly (the hermes-agent run created ~/.hermes) still does: LOKI_E10_TEST_HOME_ISOLATION=home moves HOME for test commands too and pins cargo, rustup, bun, npm and Go to their real locations, but it stays opt-in until the toolchains that live under HOME are covered more widely.
  • When a run stops for a reason of Loki's own, the reason says so. A failed commit, a checking stage that failed or reached its time limit, and a run that ended with no receipt now read "Loki could not finish checking: " in the outcome line, and the two receipt lines for a failed commit and an uncomputable diff carry the same lead. Wording only: no label, outcome word or exit code changes, a failing check is still named first, and the suggested next step is the same. openItems in loki-ts/src/engine10/closure.ts returns what held a receipt below VERIFIED as structured items (kind, class, what was tried, why it is open).