Skip to content

v0.9.3: fixes from pre-release validation - #37

Merged
akosidencio merged 3 commits into
devfrom
feat/v0.9.3-reliability-hardening
Nov 21, 2026
Merged

akosidencio merged 3 commits into
devfrom
feat/v0.9.3-reliability-hardening

Conversation

@akosidencio

Copy link
Copy Markdown
Member

Three fixes found while validating v0.9.3 on real GitHub CI, a real 1.5B model and a real Action run. They land on top of #33, which is already in dev. Without them, dev is red on Windows and the v0.9.3 action does not load.

Commits

6d3abc6 fix(action): action.yml failed to load on GitHub. This is a release blocker.

  • A comment inside the github-script step spelled out the expression syntax with nothing inside it.
  • GitHub evaluates ${{ anywhere in a with: value, comments included. Every workflow using the action failed before any step ran: action.yml (Line: 173, Col: 17): An expression was expected.
  • The comment is reworded.
  • The harness gains a case requiring every expression in action.yml to be a plain key: value mapping. That case fails on the old file at line 175.

d72374d fix(context): never read repository metadata into a prompt. This is a release blocker.

  • read_repo_file followed any symlink that resolved inside the repository root, and .git/ is inside it.
  • A PR committing src/app.test.js -> ../.git/config had that file quoted as test-file context. actions/checkout persists the job token there.
  • Any path whose requested or resolved components include .git is now refused (case-insensitive).
  • Two tests cover this. Both fail with the check disabled.

4e22334 test(backend): bound the unreachable-server test by the request timeout, not 5 s. This is test-only.

  • On Windows a refused loopback connect takes ~2 s, because the OS retries the SYN. Measured on windows-latest: 2007, 2032 and 2080 ms. Three attempts exceeded the test's 5 s bound.
  • cargo stops at the first failing test binary, so the CLI and integration tests had never run on Windows.

Verification

Known follow-ups (not in this PR)

  • allow-incomplete: true is a no-op on GitHub: CI=true re-enables the requirement. It fails closed.
  • The base-config protection applies to pull_request events only. merge_group and push use the checkout's own config.
  • A PR can add a linguist-generated line or an @generated banner to drop its own file before the deterministic detectors run.
  • Local-model reviews are ~12% slower on CPU, because the prompt-injection boundary adds ~26% prompt text.

…ut, not 5 s

On Windows a connect to a closed loopback port is retried by the OS after
the RST (~2 s each), so the three attempts take ~6 s and the 5 s bound
failed on windows-latest (CI runs 44902147620, 44902203277). Because cargo
stops at the first failing test binary, that also kept every CLI and
integration test from running on Windows.

The property under test is that a refused connection fails well before the
request timeout rather than after MAX_ATTEMPTS x timeout, so the timeout is
now 30 s and the bound 15 s: a hang still fails it, Windows' retry does not.
Test-only; no behaviour change.
The comment inside the github-script step read "not `${{ }}`". GitHub
evaluates expression syntax anywhere in a `with:` value, comments in the
script included, and an empty expression is a template error, so every
workflow using the action failed before any step ran:

  action.yml (Line: 173, Col: 17): An expression was expected
  Failed to load .../action.yml

Found by the first real run of the action on GitHub (validation PR #34,
run 44904117395). The 40-case harness exercises review.sh only and never
loads action.yml, so it could not see this.

The comment no longer spells the syntax. The harness gains a check that
every expression in action.yml is a plain `key: value` mapping (YAML `#`
comments allowed), which fails on the previous file at line 175.
read_repo_file accepted any symlink whose target resolved inside the
repository root, and .git/ is inside it. A pull request committing
`src/app.test.js -> ../.git/config` had that file quoted as "the test file
for src/app.js", and actions/checkout persists the job token in
.git/config (http.extraheader). Planted text could then ask the model to
repeat it into a SARIF annotation or PR comment. A PR-committed graph.db
naming .git/config reached the same read through Def::source.

Reproduced by the pre-release independent review (prompt captured from a
CI-style checkout with the token present in SURROUNDING CODE). Refuse any
path whose requested or resolved components include .git, case-insensitively.
Tests cover a direct path, a case variant, and a symlink; with the check
disabled both new tests fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant