Skip to content

fix(acpx): classify adapter-rejected models as model-unavailable - #219

Merged
kunchenguid merged 1 commit into
kunchenguid:mainfrom
dmmdea:fix/session-create-misreport
Oct 20, 2026
Merged

kunchenguid merged 1 commit into
kunchenguid:mainfrom
dmmdea:fix/session-create-misreport

Conversation

@dmmdea

@dmmdea dmmdea commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Goal: a backpass user whose pinned Claude model is turned down by the Claude ACP adapter gets a true, actionable error instead of "its acpx adapter does not support sessions - upgrade acpx or omit the effort override". That message was false: sessions worked and acpx was current. The block was found in a real run on Windows with acpx 0.19.6 and claude-agent-acp 0.81.2. The Claude Code CLI on PATH was an older build whose advertised model list did not include the pinned id claude-haiku-5-5. The adapter refused --model after session/new ("Failed session/set_config_option for model ...: Invalid value for config option model"), acpx exited 1, and classifyAcpxFailure did not recognize that line, so openSession marked the failure as unsupported and sessionPrompt printed the misleading upgrade advice.

Decisions:

  • Keep the change scoped to the classifier, mirroring fix(agents): treat "does not support this model" as model-unavailable #185, which made "does not support this model" a model-unavailable verdict. The new regex also matches "session/set_config_option for model" and "session/set_model for model". A pinned pass now reports "model not available" with the adapter's advertised list in the detail; an auto-picked pass falls through the ladder. Ruled out here on purpose:
  • changing which unclassified create failures count as unsupported. That is the [Bug] Windows: EPERM race on ~/.acpx/sessions/index.json under --jobs > 1 is misreported as "adapter does not support sessions" #91 class (EPERM), with its own maintainer contract and a behavior change for the pi/grok exec fallback, so it stays a separate issue;
  • an explicit effort-off switch (claude and codex harnesses are unusable: effort cannot be disabled, and acpx throws on both branches #70, its own PR).
  • One regression test, the incident's own repro: a model-rejected mode in the existing fake acpx (test/acpx-session-create-timeout.test.js) asserts openSession and sessionPrompt throw an AcpxError that is not unsupported, reads "session create failed", and classifies as model-unavailable. No other tests are wanted.
  • Running tests: the fake-acpx tests are POSIX shebang scripts that cannot spawn on native Windows (ENOENT for every test in that file, pre-existing ones included), so run them under WSL or Linux with Node 22.5+. Measured before submitting: the full suite under WSL with Node 22 passed 950/950; eslint, prettier --check and tsc --noEmit are clean.
  • Real run with the old CLI (backpass analyze --scope user --limit 1, pinned claude-haiku-5-5):
  • before: "error claude cannot apply invocation-scoped effort=medium because its acpx adapter does not support sessions / upgrade acpx or omit the effort override";
  • after: "error pinned analysis agent claude (claude-haiku-5-5) model not available (acpx claude session create failed: [acpx] warning: requested model "claude-haiku-5-5" was not in the Claude ACP advertised model list (default, opus, fable, sonnet, claude-haiku-4-5-20251001, ...); forwarding it to Claude Code so the adapter can accept or reject it.)".
    With a current CLI the same pin works end to end.
  • Docs: no user-facing docs describe this error text, so none should need changes; do not add a CHANGELOG entry (release-please owns it).

What Changed

  • In src/acpx.js, classifyAcpxFailure now matches acpx's session/set_config_option for model and session/set_model for model rejections as model-unavailable. Both extend the existing "did not advertise that model" and "does not support this model" cases, which move into a shared MODEL_REJECTED regex. Previously this failure was unclassified, so openSession treated it as "unsupported" and sessionPrompt printed the false "its acpx adapter does not support sessions - upgrade acpx or omit the effort override" advice. A pinned pass now reports "model not available" with the adapter's advertised model list, and an auto-picked pass falls through to the next candidate.
  • In test/acpx-session-create-timeout.test.js, added a model-rejected mode to the fake acpx, plus one regression test. It asserts that openSession and sessionPrompt throw an AcpxError that is not marked unsupported, whose message reads "session create failed", and that classifyAcpxFailure returns model-unavailable.

Risk Assessment

✅ Low: A single regex in the classifier gains an alternative so a create-time model rejection takes the existing model-unavailable path; the change is scoped to the stated intent, adds one behavioral regression test, and I found no wrong-result path (effort is set after create via a different config key, so the new pattern cannot misclassify it).

Testing

The fake-acpx test file can't spawn on native Windows, so I ran it under WSL with Node 22. The new regression test fails on the pre-fix src/acpx.js and passes on the fixed one, and the other nine tests pass, including the case where an adapter really rejects sessions and still reports unsupported. I also ran the real CLI end to end against a fake acpx that prints the incident's stderr. Pre-fix it printed "cannot apply invocation-scoped effort=medium because its acpx adapter does not support sessions / upgrade acpx or omit the effort override". Fixed, it printed "pinned analysis agent claude (claude-haiku-5-5) model not available (acpx claude session create failed: ... advertised model list ...)" plus the "pin a different harness" hint. In the fixed run the advertised-list warning appears but the "Failed session/set_config_option" line does not, so the detail is shorter than the author's quoted output, though it still shows the list. The classifier check shows the new pattern is narrow: it matches model rejections only, and a set_config_option failure for another option, the unknown-command-sessions error and EPERM all stay unclassified. I did not drive the auto-pick fall-through live. It uses the same classifier verdict and is covered by existing code.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
A pinned Claude model that the adapter turns down after session/new makes backpass analyze report 'model not available' with the advertised list, not 'adapter does not support sessions' ✅ pass live e2e-after.txt: the CLI printed 'pinned analysis agent claude (claude-haiku-5-5) model not available (acpx claude session create failed: ... advertised model list ...)'. e2e-before.txt (pre-fix tree):…
The regression test fails before the fix and passes after it ✅ pass live before-fix-test.txt: 'not ok 9' (9 pass, 1 fail). after-fix-test.txt: 10/10 pass.
Adversarial: an adapter that genuinely rejects sessions is still reported as unsupported, and unrelated create failures stay unclassified ✅ pass live Existing test 'an adapter that really rejects sessions still reports missing session support' passed (ok 8). classifier.txt: set_config_option for thought_level, 'unknown command sessions' and EPERM c…
The classifier recognizes both 'session/set_config_option for model' and 'session/set_model for model' as model-unavailable, and keeps the 'does not support this model' verdict ✅ pass live classifier.txt
Evidence: Regression test with the fix (WSL, Node 22)
TAP version 13
# Subtest: a session-create timeout is named as a timeout, not as missing session support
ok 1 - a session-create timeout is named as a timeout, not as missing session support
  ---
  duration_ms: 1510.274368
  type: 'test'
  ...
# Subtest: a stalled harness no longer claims the effort override is unsupported
ok 2 - a stalled harness no longer claims the effort override is unsupported
  ---
  duration_ms: 1543.270463
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: empty stderr
ok 3 - acpx timeout exit identifies session creation and probing without noise: empty stderr
  ---
  duration_ms: 134.567637
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: accounting only
ok 4 - acpx timeout exit identifies session creation and probing without noise: accounting only
  ---
  duration_ms: 138.980711
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: adapter error
ok 5 - acpx timeout exit identifies session creation and probing without noise: adapter error
  ---
  duration_ms: 144.151919
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: quiet-mode error after accounting
ok 6 - acpx timeout exit identifies session creation and probing without noise: quiet-mode error after accounting
  ---
  duration_ms: 132.021314
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: noise before adapter error
ok 7 - acpx timeout exit identifies session creation and probing without noise: noise before adapter error
  ---
  duration_ms: 134.123495
  type: 'test'
  ...
# Subtest: an adapter that really rejects sessions still reports missing session support
ok 8 - an adapter that really rejects sessions still reports missing session support
  ---
  duration_ms: 35.752318
  type: 'test'
  ...
# Subtest: an adapter that turns down the pinned model is named as a model failure, not missing session support
ok 9 - an adapter that turns down the pinned model is named as a model failure, not missing session support
  ---
  duration_ms: 125.238249
  type: 'test'
  ...
# warn could not close acpx probe session backpass-scoped-timeouts
# Subtest: the availability probe scopes the cold-start budget to session creation
ok 10 - the availability probe scopes the cold-start budget to session creation
  ---
  duration_ms: 538.708088
  type: 'test'
  ...
1..10
# tests 10
# suites 0
# pass 10
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 4761.372726
Evidence: Regression test against the pre-fix src/acpx.js (new test fails)
TAP version 13
# Subtest: a session-create timeout is named as a timeout, not as missing session support
ok 1 - a session-create timeout is named as a timeout, not as missing session support
  ---
  duration_ms: 1511.959015
  type: 'test'
  ...
# Subtest: a stalled harness no longer claims the effort override is unsupported
ok 2 - a stalled harness no longer claims the effort override is unsupported
  ---
  duration_ms: 1540.39874
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: empty stderr
ok 3 - acpx timeout exit identifies session creation and probing without noise: empty stderr
  ---
  duration_ms: 133.083829
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: accounting only
ok 4 - acpx timeout exit identifies session creation and probing without noise: accounting only
  ---
  duration_ms: 111.826664
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: adapter error
ok 5 - acpx timeout exit identifies session creation and probing without noise: adapter error
  ---
  duration_ms: 120.139688
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: quiet-mode error after accounting
ok 6 - acpx timeout exit identifies session creation and probing without noise: quiet-mode error after accounting
  ---
  duration_ms: 130.563648
  type: 'test'
  ...
# Subtest: acpx timeout exit identifies session creation and probing without noise: noise before adapter error
ok 7 - acpx timeout exit identifies session creation and probing without noise: noise before adapter error
  ---
  duration_ms: 119.334891
  type: 'test'
  ...
# Subtest: an adapter that really rejects sessions still reports missing session support
ok 8 - an adapter that really rejects sessions still reports missing session support
  ---
  duration_ms: 33.330352
  type: 'test'
  ...
# Subtest: an adapter that turns down the pinned model is named as a model failure, not missing session support
not ok 9 - an adapter that turns down the pinned model is named as a model failure, not missing session support
  ---
  duration_ms: 58.308975
  type: 'test'
  location: '/tmp/bp-base/test/acpx-session-create-timeout.test.js:181:1'
  failureType: 'testCodeFailure'
  error: 'Expected "actual" to be strictly unequal to: true'
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: true
  actual: true
  operator: 'notStrictEqual'
  stack: |-
    Object.named (file:///tmp/bp-base/test/acpx-session-create-timeout.test.js:196:14)
    expectedException (node:assert:576:17)
    expectsError (node:assert:701:21)
    Function.rejects (node:assert:767:3)
    process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    async TestContext.<anonymous> (file:///tmp/bp-base/test/acpx-session-create-timeout.test.js:201:5)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# warn could not close acpx probe session backpass-scoped-timeouts
# Subtest: the availability probe scopes the cold-start budget to session creation
ok 10 - the availability probe scopes the cold-start budget to session creation
  ---
  duration_ms: 539.308115
  type: 'test'
  ...
1..10
# tests 10
# suites 0
# pass 9
# fail 1
# cancelled 0
# skipped 0
# todo 0
# duration_ms 4368.689029
Evidence: CLI end-to-end, fixed tree

error pinned analysis agent claude (claude-haiku-5-5) model not available (acpx claude session create failed: [acpx] warning: requested model "claude-haiku-5-5" was not in the Claude ACP advertised model list (default, opus, fable, sonnet, claude-haiku-4-5-20251001); forwarding it to Claude Code so the adapter can accept or reject it.) or pin a different harness: backpass --analysis-agent <agent>

· analyzing 1 transcript(s) with claude (claude-haiku-5-5) effort=medium at jobs=4
  1/1 analyzed
error pinned analysis agent claude (claude-haiku-5-5) model not available (acpx claude session create failed: [acpx] warning: requested model "claude-haiku-5-5" was not in the Claude ACP advertised model list (default, opus, fable, sonnet, claude-haiku-4-5-20251001); forwarding it to Claude Code so the adapter can accept or reject it.)
  or pin a different harness: backpass --analysis-agent <agent>
exit=1
Evidence: CLI end-to-end, pre-fix tree

error claude cannot apply invocation-scoped effort=medium because its acpx adapter does not support sessions upgrade acpx or omit the effort override

· analyzing 1 transcript(s) with claude (claude-haiku-5-5) effort=medium at jobs=4
  1/1 analyzed
error claude cannot apply invocation-scoped effort=medium because its acpx adapter does not support sessions
  upgrade acpx or omit the effort override
exit=1
Evidence: Classifier verdicts for model-rejection and non-model stderr
"Failed session/set_model for model \"x\": bad"                model-unavailable
"Failed session/set_config_option for model \"x\""             model-unavailable
"Failed session/set_config_option for thought_level \"high\"   null
"error: unknown command sessions"                              null
"EPERM: operation not permitted"                               null
"adapter does not support this model"                          model-unavailable
Evidence: CLI end-to-end driver script (fake acpx, isolated HOME/repo)
#!/bin/bash
# usage: e2e.sh <backpass-root>
set -u
ROOT=$1; T=$(mktemp -d /tmp/bp-e2e.XXXX); export HOME=$T/home; mkdir -p $HOME $T/repo $T/claude/projects/p
cd $T/repo && git init -q . && git config user.email a@b.c && git config user.name t && echo "# memory" > AGENTS.md && git add -A && git commit -qm init
sed "s#/repo/demo#$T/repo#g" ~/.no-mistakes/worktrees/d69d1a61efb7/01M58YBRABX7NP4YS8BAETRAQD/test/fixtures/claude-session.jsonl > $T/claude/projects/p/11111111-2222-3333-4444-555555555555.jsonl
cat > $T/acpx <<'FAKE'
#!/usr/bin/env node
const a = process.argv.slice(2);
if (a.includes("--version")) { console.log("0.19.6"); process.exit(0); }
if (a.includes("config") && a.includes("show")) { console.log(JSON.stringify({agents:{}})); process.exit(0); }
if (a.includes("sessions") && a.includes("new")) {
  process.stderr.write('[acpx] warning: requested model "claude-haiku-5-5" was not in the Claude ACP advertised model list (default, opus, fable, sonnet, claude-haiku-4-5-20251001); forwarding it to Claude Code so the adapter can accept or reject it.\nFailed session/set_config_option for model "claude-haiku-5-5": Invalid value for config option model: claude-haiku-5-5 (ACP -32603, adapter reported "Internal error")\n');
  process.exit(1);
}
process.exit(0);
FAKE
chmod +x $T/acpx
node ~/.no-mistakes/evidence/01M58YBRABX7NP4YS8BAETRAQD/grow.cjs $T/claude/projects/p/*.jsonl $T/repo
export CLAUDE_CONFIG_DIR=$T/claude BACKPASS_ACPX_BIN=$T/acpx NO_COLOR=1
timeout 90 node $ROOT/bin/backpass.js analyze --since all --analysis-agent claude --analysis-model claude-haiku-5-5 --analysis-effort medium --no-open 2>&1
echo "exit=$?"
rm -rf $T

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
A pinned Claude model that the adapter turns down after session/new makes backpass analyze report 'model not available' with the advertised list, not 'adapter does not support sessions' ✅ pass live e2e-after.txt: the CLI printed 'pinned analysis agent claude (claude-haiku-5-5) model not available (acpx claude session create failed: ... advertised model list ...)'. e2e-before.txt (pre-fix tree):…
The regression test fails before the fix and passes after it ✅ pass live before-fix-test.txt: 'not ok 9' (9 pass, 1 fail). after-fix-test.txt: 10/10 pass.
Adversarial: an adapter that genuinely rejects sessions is still reported as unsupported, and unrelated create failures stay unclassified ✅ pass live Existing test 'an adapter that really rejects sessions still reports missing session support' passed (ok 8). classifier.txt: set_config_option for thought_level, 'unknown command sessions' and EPERM c…
The classifier recognizes both 'session/set_config_option for model' and 'session/set_model for model' as model-unavailable, and keeps the 'does not support this model' verdict ✅ pass live classifier.txt
  • node --test test/acpx-session-create-timeout.test.js under WSL (Ubuntu, Node 22.23.1) with the fix: 10/10 pass, including the new regression test
  • The same test file against the pre-fix src/acpx.js (base commit 2c6af2b): the new test fails (9 pass, 1 fail), so it reproduces the bug
  • backpass analyze --since all --analysis-agent claude --analysis-model claude-haiku-5-5 --analysis-effort medium under WSL with an isolated HOME, repo and CLAUDE_CONFIG_DIR. A fake acpx emitted the incident's stderr, run on both the fixed and the pre-fix tree
  • classifyAcpxFailure called directly on set_model and set_config_option for model, set_config_option for thought_level, 'unknown command sessions', EPERM, and 'does not support this model'
✅ **Document** - passed

✅ No issues found.

⚠️ **Lint** - 1 info
  • ℹ️ eslint, prettier and tsc could not be run here: node_modules is absent in the worktree and the pnpm shim fails (corepack module missing). I read the changed lines instead. The only lines over printWidth 120 are unbreakable string literals and a test() title, which prettier leaves alone. The author reports eslint, prettier --check and tsc clean.
✅ **Push** - passed

✅ No issues found.

When the Claude ACP adapter rejects the requested model after session/new,
acpx prints `Failed session/set_config_option for model "<id>": Invalid value
for config option model` and exits 1. classifyAcpxFailure did not recognize
that line, so openSession reported "has no session support" and an analysis
pass with an effort stopped with "its acpx adapter does not support sessions -
upgrade acpx or omit the effort override", although sessions worked and acpx
was current. Seen with acpx 0.19.6, claude-agent-acp 0.81.2 and a Claude Code
build whose advertised model list predates the pinned model.

The classifier now reads that line as model-unavailable, the verdict kunchenguid#185
gave "does not support this model": a pinned pass names the model, and an
auto-picked one falls through to the next candidate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "fix(acpx): treat a model the adapter tur..." · Reviewed by Greptile

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

Triage on head ddbd2ed against latest main (2c6af2b, backpass 0.1.36). CLEAN, CI green on ubuntu and macOS, no-mistakes attestation passes, and the author's live run plus a before/after regression test are in the body. The diff only widens the classifier regex in src/acpx.js and adds one fake-acpx test. No workflow, dependency, or network changes, so no security concerns.

VISION verdict (per rule)

  • Purpose (owns the backward pass): aligns. It only changes how a failed agent call is named.
  • Evidence is the only currency: n/a. No change to what counts as evidence.
  • The human owns the weights: n/a. No write path or review gate touched.
  • Nothing the model says is taken on faith: n/a.
  • The budget is the constraint: n/a.
  • It reads what you already have and owns nothing: aligns. Model invocation stays behind the one acpx module.
  • Failure is loud and named: aligns, and this is the point. A model the adapter turns down after session/new was misread as "no session support", which printed a false "upgrade acpx or omit the effort override". It now takes the existing model-unavailable verdict, so a pinned pass names the model and an auto-picked pass uses the ladder's existing fall-through.
  • Scope: aligns.

Contract-class: restore. The model-unavailable verdict and its pinned and auto-pick handling already exist on main (#185). This only routes one more spelling of the same adapter rejection onto that path, which the default run (default effort set) was already promised and was misreporting. The genuine unsupported case (unknown command 'sessions') still reports unsupported, and the regex is anchored to for model, so other set_config_option failures stay unclassified.

Corrective, green, and safe, so squash-merging.

@kunchenguid
kunchenguid merged commit 3986087 into kunchenguid:main Oct 20, 2026
6 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: this is merged. Thank you @dmmdea — really appreciate you taking the time on this.

MrGTV-love added a commit to MrGTV-love/backpass that referenced this pull request Oct 26, 2026
* fix(acpx): treat a model the adapter turns down as model-unavailable (kunchenguid#219)

When the Claude ACP adapter rejects the requested model after session/new,
acpx prints `Failed session/set_config_option for model "<id>": Invalid value
for config option model` and exits 1. classifyAcpxFailure did not recognize
that line, so openSession reported "has no session support" and an analysis
pass with an effort stopped with "its acpx adapter does not support sessions -
upgrade acpx or omit the effort override", although sessions worked and acpx
was current. Seen with acpx 0.19.6, claude-agent-acp 0.81.2 and a Claude Code
build whose advertised model list predates the pinned model.

The classifier now reads that line as model-unavailable, the verdict kunchenguid#185
gave "does not support this model": a pinned pass names the model, and an
auto-picked one falls through to the next candidate.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* chore(main): release backpass 0.1.37 (kunchenguid#222)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(workspace): keep VCS internals and binary files out of the staging copy (kunchenguid#220)

* fix(workspace): keep VCS internals and binary files out of the staging copy

prepareWorkspace walked every skill directory whole, so a skill checked out
with its own .git, or one that ships compiled tools, was copied into
.backpass/synthesis/ and read into `originals` as utf-8 text. On a 1.7 GB
user skills directory (one skill carried a 173 MB object store and six
~82 MB executables) synthesis exhausted Node's 4 GB heap while building the
staging copy, before the edit turn opened, and the process died with exit
134.

The walk now prunes `.git`, `.hg` and `.svn` without descending into them,
and a file whose first 8,000 bytes hold a NUL (git's own binary test) is not
staged. Both are named in `unstageable` with their reason, so nothing is
dropped silently. A binary read as utf-8 was never a faithful original, and
no text edit applies to it. Supporting text files such as notes.txt are
still copied whole.

Fixes kunchenguid#75.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* no-mistakes(ci): Fixed ci-1 in src/workspace.js. The invariant is that nothing synthesis writes is silently dropped. measureWorkspace now passes a collector to its walkFiles call, so VCS entries (.git, .hg, .svn, directories or a .git file) that the walk prunes are reported in `stray`. The reason is a new named constant, STRAY_VCS: "synthesis wrote version-control internals, which are never carried or applied". Staging never copies a VCS entry, so any one found at measure time was written during synthesis. Pruning in walkFiles is unchanged: those entries are still never descended into or copied. Paths are named the way other stray notes are, mapped back to the logical repo path. To do that I pulled the existing mapping lookup and logical-path code into two small local helpers, `mappingFor` and `logicalFor`, which the normal stray loop now uses too. Binary files, confinement reasons and the other stray rules are untouched, and I added no tests. Checks: eslint and tsc are clean and prettier --write was applied. I ran test/workspace.test.js, test/synthesize.test.js and test/synthesis-cli.test.js: the same 46 tests fail before and after the change (compared by name). The ones I looked at fail with EPERM on fs.symlink, the Windows host limit noted in the intent. A one-off script confirmed the behaviour: prepareWorkspace still reports `.agents/skills/foo/.git` as unstageable, measureWorkspace shows no stray before a write, and after writing `.agents/skills/foo/.git/config` and a root `.git` file it reports both in `stray` with STRAY_VCS and zero changes

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* chore(main): release backpass 0.1.38 (kunchenguid#223)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix: run first Claude analysis call alone before fan-out (kunchenguid#226)

* fix(analyze): run the first Claude analysis call alone before the fan-out

At --jobs above 1 the first wave of analysis calls each starts with its own
short-lived 'sessions new' helper. When Claude's OAuth token is due, one helper
takes .oauth_refresh.lock and exits before the refresh ends, so every parallel
session then fails with 'another Claude Code process is refreshing it' and the
run dies before analysing anything.

With the claude agent, run transcripts one at a time until one has made a model
call (a skipped trivial session made none), so a due refresh finishes inside a
single long-lived process, then fan out. Other agents keep the full fan-out.
This is not a retry: nothing is re-run.

Closes kunchenguid#203

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>

* no-mistakes(review): Fix warm-up to detect model-call attempts, not failure vs skip

* no-mistakes(document): Fix no-useless-assignment lint error in analyze.js warm-up loop

* no-mistakes(review): Fix outcome overwrite when writeEvidence throws after model call succeeds

* no-mistakes(document): Format new warmup test file; no stale docs found

* no-mistakes(ci): Addressed the Greptile finding (ci-1) in test/analyze-claude-warmup.test.js: the existing warm-up tests never exercised a failed first model call, so `err.modelCallAttempted` had no coverage. Added a new test case plus a corresponding branch in the fake acpx fixture: a session id starting with "fail" now returns unparseable text after the fake prompt call (a genuine model-call attempt that fails analysis afterward, not a blank/empty-output case, since a pinned agent turns empty-output into a fatal UserError that would abort the whole run). The new test asserts the failing first call still runs alone (new/prompt/failed, nothing else starts), counts as attempted/failed, and the remaining calls then run together (overlapping prompts) and succeed. Ran `pnpm run check` (lint, format:check, typecheck, full test suite — 956 tests) with zero failures

---------

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>

* chore(main): release backpass 0.1.39 (kunchenguid#228)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix: deduplicate symlinked skills in the analysis index (kunchenguid#231)

* fix(skills): dedupe the analysis index by realpath

List each shared skill file once in analysis prompts while preserving every loaded entry for per-copy budget accounting. Keep distinct same-name skills visible.

Closes kunchenguid#202

* no-mistakes(document): Document realpath-deduplicated skill analysis indexing

* chore(main): release backpass 0.1.40 (kunchenguid#232)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(synthesize): report a mid-run change to a watched repo file as observed (kunchenguid#224)

* fix(synthesize): report a mid-run change to a watched repo file as observed

assertRepoUntouched blamed the synthesis harness for any change to a
fingerprinted in-repo file, so a concurrent editor in a shared workspace
aborted the run with the wrong cause. Name the observation instead, list
concurrent writers as a possible cause, and keep the harness attribution
only when the repo file now equals the staging copy.

Closes kunchenguid#199

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>

* fix(synthesize): keep the fingerprint in step with the rebuilt staging copy

A skill another process edits after the fingerprint but before the
workspace is rebuilt was copied into staging, so the later equality check
named the harness for a change it did not make. Point each staged skill's
fingerprint at the text its staging copy was built from.

An absolute in-repo memory path was read as repo.root joined with the
absolute path, so a real write-through got the softer wording. Resolve
fingerprint keys the same way repoFingerprint does.

Closes kunchenguid#199

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>

* fix(synthesize): report a write by an earlier candidate before rebuilding

The fingerprint is re-pointed at the rebuilt staging copy so a concurrent
edit made before the first harness runs is not blamed on it. A candidate
after the first runs behind a harness that may have written to the
repository, and rebuilding over that write would hide it. Check the
repository first on every attempt after the first.

Closes kunchenguid#199

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>

* no-mistakes(document): fix: rewrap jsdoc comment, clean lint/format/typecheck

---------

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>

---------

Signed-off-by: Gaurav Jadhav <gaurav.vjadhav01@gmail.com>
Co-authored-by: Daniel Martinez Morales <4965968+dmmdea@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gaurav Vijay Jadhav <gaurav.vjadhav01@gmail.com>
Co-authored-by: FocalFactotum <305704917+FocalFactotum@users.noreply.github.com>
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.

2 participants