Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
a6b78b7
fix(storage): compact full autosave journals
KaiEureka Nov 25, 2026
7becfeb
fix(team): settle suspended turns at shutdown
KaiEureka Nov 25, 2026
cee7743
fix(team): preserve cancellation when cleanup fails
KaiEureka Nov 25, 2026
2e91fac
fix(llm): honor millisecond provider retry delays
KaiEureka Nov 25, 2026
4e9389c
fix(workflow): allocate collection budgets after reservations clear
KaiEureka Nov 25, 2026
3d4653f
fix(workflow): finish candidate teardown after caller cancellation
KaiEureka Nov 25, 2026
1a8d00d
fix(workflow): drain candidate cleanup before propagating cancellation
KaiEureka Nov 25, 2026
9c24af4
test(team): verify chained cancellation diagnostics
KaiEureka Nov 25, 2026
0322bd4
fix(workflow): plan collection shares at first admission
KaiEureka Nov 25, 2026
fee7b32
fix(team): retain accepted submissions during shutdown
KaiEureka Nov 25, 2026
031ed88
fix(workflow): preserve shares with competing reservations
KaiEureka Nov 25, 2026
5616b0e
fix(workflow): keep nested budget planning local
KaiEureka Nov 25, 2026
0129e75
fix(workflow): reclaim capacity at model admission
KaiEureka Nov 25, 2026
4008154
fix(workflow): preserve headroom across budget recovery
KaiEureka Nov 25, 2026
7c2ba92
fix(workflow): preserve partial results during budget recovery
KaiEureka Nov 25, 2026
582893d
fix(llm): preserve terminal provider errors during retries
KaiEureka Nov 25, 2026
aa37f5b
fix(tracing): retain billed responses after budget retry failures
KaiEureka Nov 25, 2026
ee01ed3
chore: sync main into the runtime review
KaiEureka Nov 25, 2026
529cd1a
fix(workflow): preserve scout submission after denied budget recovery
KaiEureka Nov 25, 2026
425d2ad
fix(storage): recover interrupted autosave rollover
KaiEureka Nov 25, 2026
60e49aa
fix(workflow): retain the protected submit budget across exploration
KaiEureka Nov 25, 2026
a66c6e6
fix(workflow): submit preserved findings after truncated exploration
KaiEureka Nov 25, 2026
a2795e3
fix(session): defer autosave compaction after durable append
KaiEureka Nov 25, 2026
aa2f7ca
fix(workflow): restore the protected submission tool selection
KaiEureka Nov 25, 2026
28a0685
fix(session): retain durable terminal results after journal cleanup e…
KaiEureka Nov 25, 2026
b2306ac
test(team): forward terminal checkpoint options in handoff probe
KaiEureka Nov 25, 2026
38f7b49
fix(workflow): recover collection budget for structured corrections
KaiEureka Nov 25, 2026
f2d5041
fix(llm): preserve clipped answers on reasoning-only replay
KaiEureka Nov 25, 2026
dab3c1f
fix(workflow): retain structured capture at the caller deadline
KaiEureka Nov 25, 2026
16f0765
fix(trace): record late provider completions
KaiEureka Nov 25, 2026
22d4287
fix(llm): preserve Responses usage after cancellation
KaiEureka Nov 25, 2026
2201366
fix(session): abandon cancelled completions without a deadline
KaiEureka Nov 25, 2026
3d9dc88
fix(llm): retry transient gateway responses
KaiEureka Nov 25, 2026
81f800e
fix(runtime): preserve accepted context after a late summary
KaiEureka Nov 25, 2026
b9bfb12
fix(session): release completed providers on cancellation
KaiEureka Nov 25, 2026
4691d23
fix(llm): honor direct Responses cancellation after settlement
KaiEureka Nov 25, 2026
d82b0f1
fix(duo): deliver verified candidate after budget exhaustion
KaiEureka Nov 25, 2026
f100340
fix(llm): preserve retry time after a declined delay
KaiEureka Nov 26, 2026
1f75a28
fix(llm): release unused retry time on interrupted waits
KaiEureka Nov 26, 2026
34aa0cc
fix(session): preserve source order when reusing export paths
KaiEureka Nov 26, 2026
060440e
fix(session): require settled provider usage for terminal exports
KaiEureka Nov 26, 2026
e85d772
fix(storage): add cross-process autosave ownership locks
KaiEureka Nov 26, 2026
7f1e352
fix(session): retain autosave ownership through late settlement
KaiEureka Nov 26, 2026
7dae85a
test(session): cover cross-process autosave handoff
KaiEureka Nov 26, 2026
9bd6701
fix(session): cover queued saves in autosave ownership
KaiEureka Nov 26, 2026
359f014
fix(session): keep snapshot copies outside writer ownership
KaiEureka Nov 26, 2026
d008489
test(session): retain stale native autosave coverage under ownership
KaiEureka Nov 26, 2026
8e33101
fix(storage): validate autosave writer sequence on acquisition
KaiEureka Nov 26, 2026
703c0df
fix(session): reject stale autosaves before resuming a turn
KaiEureka Nov 26, 2026
61b812b
test(session): cover stale autosave turn admission
KaiEureka Nov 26, 2026
effda31
test(session): cover stale autosave enqueue
KaiEureka Nov 26, 2026
0114547
fix(session): preserve autosave ownership after checkpoint publication
KaiEureka Nov 26, 2026
67bf7da
fix(team): retain submissions when recovery is interrupted
KaiEureka Nov 26, 2026
fe44d1f
fix(storage): record snapshot replacement before directory sync
KaiEureka Nov 26, 2026
b7754a0
fix(team): preserve submissions on interactive interruption
KaiEureka Nov 26, 2026
c1470b3
fix(team): retain submissions when exiting an interrupted turn
KaiEureka Nov 26, 2026
a789ac3
fix(team): retain the user stop reason during cleanup
KaiEureka Nov 26, 2026
4fd7414
fix(llm): preserve cancellation when Responses settles
KaiEureka Nov 26, 2026
c0a80d8
fix(session): restore equivalent reexports to their autosave
KaiEureka Nov 26, 2026
06398e4
ci: give the hosted Python matrix time to finish
KaiEureka Nov 26, 2026
f558bc7
fix(llm): preserve cancellation and paid Chat stream usage
KaiEureka Nov 26, 2026
8a0adb3
fix(duo): honor a budget refusal before candidate admission
KaiEureka Nov 26, 2026
1883934
fix(llm): finish Chat stream closure through repeated cancellation
KaiEureka Nov 26, 2026
8cf46d2
fix(duo): let B use budget released after A is refused
KaiEureka Nov 26, 2026
c2dc1df
fix(llm): honor cancellation during timed read cleanup
KaiEureka Nov 26, 2026
6f94daa
fix(process): confirm macOS group exit after signal denial
KaiEureka Nov 26, 2026
bf86e59
test(scheduler): scope the short deadline to the budget owner
KaiEureka Nov 26, 2026
eadfb79
fix(session): restore identity from the same snapshot as history
KaiEureka Nov 26, 2026
f5f5748
fix(workflow): preserve useful text across budget replays
KaiEureka Nov 26, 2026
e6793d7
fix(workflow): ignore boundary whitespace when comparing replays
KaiEureka Nov 26, 2026
09c4d1c
fix(weave): resume a finished repair at verification
KaiEureka Nov 26, 2026
3941ef3
fix(reconstruct): preserve candidate archive ownership
KaiEureka Nov 26, 2026
75c952d
fix(weave): preserve the solver exit when its heartbeat fails
KaiEureka Nov 26, 2026
cf87244
chore: sync current main into the runtime review
KaiEureka Nov 26, 2026
b719899
test(duo): use the dedicated candidate fixture for budget checks
KaiEureka Nov 26, 2026
c334470
fix(workflow): admit sibling collections on available task slots
KaiEureka Nov 26, 2026
d98f55e
fix(sdk): preserve team cancellation at deadline handoff
KaiEureka Nov 26, 2026
7a5529f
fix(sdk): keep tool calls and workflow artifacts JSON-compatible
KaiEureka Nov 26, 2026
e553dc0
fix(sdk): retain native provider failure metadata in teams
KaiEureka Nov 26, 2026
959e436
fix(cli): keep workflow arguments and results valid JSON
KaiEureka Nov 26, 2026
63193bc
fix(workflow): snapshot manifest inputs before scheduling
KaiEureka Nov 26, 2026
2051fd2
fix(sdk): release owned resources after failed session restore
KaiEureka Nov 26, 2026
7446b49
fix(team): deliver truncated member replies as partial evidence
KaiEureka Nov 26, 2026
6a666c2
fix(team): let the terminal driver deliver its stop notice
KaiEureka Nov 26, 2026
8f28fba
fix(team): flush stop notices before returning the run
KaiEureka Nov 27, 2026
468630c
fix(session): keep source order through writable restore copies
KaiEureka Nov 27, 2026
7b41395
fix(llm): retry transient upstream gateway failures
KaiEureka Nov 27, 2026
7f9d8ac
fix(workflow): preserve failure details during owned cleanup
KaiEureka Nov 27, 2026
2a87344
fix(reconstruct): evaluate the archived candidate snapshot
KaiEureka Nov 27, 2026
91eb870
fix(reconstruct): retain evaluator errors during archive cleanup
KaiEureka Nov 27, 2026
ca84a47
fix(workflow): report settled spend after budget exhaustion
KaiEureka Nov 27, 2026
e579cb4
fix(sdk): retain workflow output finished before timeout
KaiEureka Nov 27, 2026
019ae14
fix(reconstruct): evaluate snapshots beside the editable candidate
KaiEureka Nov 27, 2026
67f2c20
fix(reconstruct): keep evaluation copies importable as modules
KaiEureka Nov 27, 2026
b9a21c4
fix(session): resume after a covered journal cleanup failure
KaiEureka Nov 27, 2026
36aa317
fix(agent): verify recovered environment aborts after cleanup
KaiEureka Nov 27, 2026
4e29e74
fix(workflow): publish authored results after artifact export
KaiEureka Nov 27, 2026
23c7674
fix(llm): retain model identity on Responses terminal failures
KaiEureka Nov 27, 2026
760e9bf
fix(agent): retain completed answers across checkpoint deadlines
KaiEureka Nov 27, 2026
b1cf1d2
fix(workflow): enforce registered Team workflow budgets
KaiEureka Nov 27, 2026
01a2483
fix(llm): preserve completed Chat replies through teardown errors
KaiEureka Nov 27, 2026
b4cc598
fix(llm): separate Chat stream reads from native teardown
KaiEureka Nov 27, 2026
bcfebb2
fix(llm): finish native Chat close through repeated cancellation
KaiEureka Nov 27, 2026
207925c
fix(llm): deliver the first Chat close cancellation promptly
KaiEureka Nov 27, 2026
12014b7
fix(cli): enforce an explicit workflow token budget
KaiEureka Nov 27, 2026
018af90
fix(team): retain the accepted answer when a follow-up fails
KaiEureka Nov 27, 2026
c2ac2bf
fix(workflow): own active verification calls through cleanup
KaiEureka Nov 27, 2026
37d92c0
fix(config): accept UTF-8 signatures in env files
KaiEureka Nov 27, 2026
0933b0f
fix(storage): resume single-record legacy JSONL sessions
KaiEureka Nov 27, 2026
246fdd9
fix(workflow): own candidate adoption through publication
KaiEureka Nov 27, 2026
636ff46
test(scheduler): start late-provider timeout after admission
KaiEureka Nov 27, 2026
d521f70
fix(team): retain submitted answers at the run deadline
KaiEureka Nov 27, 2026
58a9d27
fix(reconstruct): preserve workspace-relative evaluation paths
KaiEureka Nov 27, 2026
733c745
fix(session): preserve export order across queued turns
KaiEureka Nov 27, 2026
126b143
fix(team): preserve completed replies during diff capture
KaiEureka Nov 27, 2026
e5894c6
fix(workflow): retain authored evidence after a missing export
KaiEureka Nov 28, 2026
c2995a5
fix(vm): complete scoped release and cancel capacity waits
KaiEureka Nov 28, 2026
4f01f41
fix(workflow): keep partial output after an output-limit rejection
KaiEureka Nov 28, 2026
90bdf1d
fix(workflow): serialize repeated isolated workspace cleanup
KaiEureka Nov 28, 2026
4382a0d
fix(reconstruct): evaluate candidates from read-only directories
KaiEureka Nov 28, 2026
cbfce38
fix(tools): continue file reads after truncated lines
KaiEureka Nov 28, 2026
4007806
fix(reconstruct): retain sibling files in evaluation fallback
KaiEureka Nov 28, 2026
cdd529d
fix(tools): report empty file read pages clearly
KaiEureka Nov 28, 2026
d71a11a
fix(workflow): retain partial output when budget replay times out
KaiEureka Nov 28, 2026
51315e4
fix(reconstruct): link sibling packages during fallback
KaiEureka Nov 28, 2026
c203834
test(tools): encode Unicode file read fixtures
KaiEureka Nov 28, 2026
33d011a
fix(workflow): bound teardown and preserve pending workspace owners
KaiEureka Nov 28, 2026
afaadb8
fix(team): retain completed replies when change capture fails
KaiEureka Nov 28, 2026
58a50d8
fix(session): prevent stale backups from replacing newer autosaves
KaiEureka Nov 28, 2026
606331e
fix(workflow): release workspaces after pending final saves settle
KaiEureka Nov 28, 2026
0435fdb
fix(environments): return independent workspaces after a cleanup failure
KaiEureka Nov 28, 2026
65422cc
fix(reconstruct): preserve observations across evaluator calls
KaiEureka Nov 28, 2026
956a8f1
fix(reconstruct): preserve candidate sidecar resource paths
KaiEureka Nov 28, 2026
1684fd3
fix(workflow): retain settled text when budget replay times out
KaiEureka Nov 28, 2026
bd5d167
test(workflow): observe cancellation on Python 3.10
KaiEureka Nov 28, 2026
13a596b
fix(team): return worktrees after session close settles
KaiEureka Nov 28, 2026
36a42ed
fix(agent): deliver truncated replies across checkpoint deadlines
KaiEureka Nov 28, 2026
c6c4f85
fix(team): retain completed replies after checkpoint failures
KaiEureka Nov 28, 2026
b19040f
fix(cli): record workflow JSON delivery failures
KaiEureka Nov 28, 2026
b9862af
fix(team): bound turn shutdown and stop further admission
KaiEureka Nov 28, 2026
70950e6
fix(workflow): own nested workers using shared task slots
KaiEureka Nov 28, 2026
6826d27
fix(duo): preserve budget stop after failed fallback adoption
KaiEureka Nov 28, 2026
9d72cc7
fix(weave): clear stale error after resumed verification
KaiEureka Nov 28, 2026
9f8202e
fix(workflow): retain allocated collection workers through teardown
KaiEureka Nov 28, 2026
d0f9926
fix(team): preserve cancellation raised by the turn owner
KaiEureka Nov 28, 2026
9c0aba4
fix(team): include Lead checkout in the run deadline
KaiEureka Nov 28, 2026
465f0cc
fix(session): move autosave turn admission off the event loop
KaiEureka Nov 28, 2026
aabe9a0
fix(environments): retain all sources of reused workspaces
KaiEureka Nov 28, 2026
ca80fb1
fix(workflow): retain isolated startup ownership through cancellation
KaiEureka Nov 28, 2026
af399d0
fix(environments): reject borrowers during final release
KaiEureka Nov 28, 2026
064bd78
fix(agent): close resources after deferred autosave admission
KaiEureka Nov 28, 2026
ef62a7c
fix(workflow): apply stage deadlines to isolated startup
KaiEureka Nov 28, 2026
108b82c
fix(session): submit autosaves before event loop shutdown
KaiEureka Nov 28, 2026
0efdb2b
fix(workflow): preserve tool presets with capture modes
KaiEureka Nov 28, 2026
b5c9055
fix(llm): separate Responses commentary from final answers
KaiEureka Nov 28, 2026
76872de
fix(team): preserve accepted replies after checkpoint errors
KaiEureka Nov 28, 2026
4d570eb
fix(team): retain accepted partial replies at the deadline
KaiEureka Nov 28, 2026
74c6931
fix(workflow): preserve longer text after budget replay
KaiEureka Nov 28, 2026
137ef0a
fix(session): checkpoint settled summary usage
KaiEureka Nov 28, 2026
ddcd352
fix(config): honor explicit SDK sampling overrides
KaiEureka Nov 28, 2026
413e4ed
fix(cli): show the configured lead model
KaiEureka Nov 28, 2026
f62efa3
fix(workflow): preserve deep JSON manifest inputs
KaiEureka Nov 28, 2026
7d10dc5
fix(reconstruct): isolate observed example callbacks
KaiEureka Nov 28, 2026
a0c24b6
fix(runtime): expire per-request completion prompts
KaiEureka Nov 28, 2026
f09306e
fix(runtime): keep prompt provenance inside native history
KaiEureka Nov 28, 2026
f17660f
fix(tools): track execution when cancellation begins
KaiEureka Nov 28, 2026
ce463d8
fix(tools): finish cleanup after environment abort
KaiEureka Nov 28, 2026
66c135a
fix(workflows): close candidate sessions before releasing worktrees
KaiEureka Nov 28, 2026
6d75dbf
fix(workflows): bound candidate close and late persistence
KaiEureka Nov 28, 2026
f4db5ca
test(workflows): verify candidate sessions close before release
KaiEureka Nov 28, 2026
d400565
fix(session): wait for concurrent transport closure
KaiEureka Nov 28, 2026
8abd923
fix(reconstruct): preserve directory sidecars during evaluation
KaiEureka Nov 28, 2026
c3a0d8c
fix(llm): retry transient Responses gateway events
KaiEureka Nov 28, 2026
3a07341
fix(session): retain model closure after a waiter times out
KaiEureka Nov 28, 2026
524be74
fix(workflows): validate authored output before publishing evidence
KaiEureka Nov 28, 2026
43aa54b
fix(workflows): preserve closure across cleanup wait deadlines
KaiEureka Nov 28, 2026
1735d28
fix(workflow): preserve shared budget after visible truncation
KaiEureka Nov 28, 2026
3e23ff4
fix(workflows): scope close protection to workflow waiters
KaiEureka Nov 28, 2026
9ebd83d
fix(weave): keep repairs pending after skipped verification
KaiEureka Nov 28, 2026
03532cb
fix: retain Anthropic thinking when a final prompt is renewed
KaiEureka Nov 28, 2026
4c46684
fix: keep summary sizing from reserving workflow tokens
KaiEureka Nov 28, 2026
6b48953
fix: validate Anthropic developer instruction order
KaiEureka Nov 28, 2026
6557e60
fix(weave): save verification before reporting repair progress
KaiEureka Nov 29, 2026
b85263c
test(team): separate startup marker from the timed hook
KaiEureka Nov 29, 2026
bb27310
fix(session): checkpoint settled usage after summary failures
KaiEureka Nov 29, 2026
e41e244
fix(reconstruct): stage evaluations outside plugin discovery
KaiEureka Nov 29, 2026
78aad76
fix(reconstruct): isolate staged bytecode caches
KaiEureka Nov 29, 2026
a40dd5b
fix(session): persist settled usage before provider retries
KaiEureka Nov 29, 2026
9ead64e
fix(workflow): preserve accepted scout recovery reports
KaiEureka Nov 29, 2026
a4f74d0
docs(reconstruct): preserve canonical package imports in evaluators
KaiEureka Nov 29, 2026
3ce97ad
fix(workflow): retain completed scout captures
KaiEureka Nov 29, 2026
1701a59
fix(reconstruct): distinguish staged paths from package names
KaiEureka Nov 29, 2026
a5fa967
fix(reconstruct): preserve importable staged module names
KaiEureka Nov 29, 2026
7b620e9
fix(reconstruct): keep standalone evaluation without directory aliases
KaiEureka Nov 29, 2026
208fbfc
fix(workflow): refresh capped budgets at admission
KaiEureka Nov 29, 2026
46cc5ef
fix(session): restore accepted submissions after interruption
KaiEureka Nov 29, 2026
a64d41c
fix(workflow): verify candidate source during adoption
KaiEureka Nov 29, 2026
1a3d5b8
fix(workflow): validate candidate revision before activating recovery
KaiEureka Nov 29, 2026
f503edd
test(runtime): wait for submission before cancellation
KaiEureka Nov 29, 2026
6319bcd
fix(worktree): preserve source case-only paths in candidates
KaiEureka Nov 29, 2026
cef6537
fix(worktree): deliver case-only renames transactionally
KaiEureka Nov 29, 2026
bc6466f
fix(worktree): honor Unicode case aliases during checkout
KaiEureka Nov 29, 2026
8d4c0b6
fix(worktree): recognize decomposed Unicode path spellings
KaiEureka Nov 29, 2026
2ab04a1
test(worktree): stage distinct ignored source names
KaiEureka Nov 29, 2026
5114808
fix(worktree): preserve publication result after cleanup errors
KaiEureka Nov 29, 2026
28949f5
fix(worktree): preserve candidate initialization order
KaiEureka Nov 29, 2026
44f98bf
fix(workflow): wait for temporary budget reservations
KaiEureka Nov 29, 2026
0bae6fe
fix(session): finish interrupted turns before follow-up
KaiEureka Nov 29, 2026
97c357a
fix(session): skip empty legacy recovery turns
KaiEureka Nov 29, 2026
786498f
fix(weave): resume repairs after verification timeouts
KaiEureka Nov 29, 2026
6cc0ee2
fix(reconstruct): preserve relative Git metadata during evaluation
KaiEureka Nov 29, 2026
3fd8773
fix(workflow): keep budget probes nonblocking for orchestrators
KaiEureka Nov 29, 2026
700e602
fix(session): resume only turns with saved output
KaiEureka Nov 29, 2026
9102e0e
fix(weave): preserve execution evidence after a timeout
KaiEureka Nov 29, 2026
645d6de
fix(session): avoid replaying saved visible answers
KaiEureka Nov 29, 2026
854074e
fix(session): resume saved first model steps
KaiEureka Nov 29, 2026
71c1461
fix(session): ignore rejected inbox rows when resuming turns
KaiEureka Nov 29, 2026
a92dd3f
test(runtime): synchronize delayed summary cancellation
KaiEureka Nov 29, 2026
a73c304
fix(responses): retain completed output during transport close
KaiEureka Nov 29, 2026
e52269b
fix(cli): settle workflow cleanup after interrupt
KaiEureka Nov 29, 2026
9e9a175
fix(workflow): support package imports in member-authored runs
KaiEureka Nov 29, 2026
25525f5
fix(workflow): read current member-authored sources
KaiEureka Nov 29, 2026
9f6cfe8
fix(workflow): refresh sources across workspace import paths
KaiEureka Nov 29, 2026
fbcf5e8
fix(reconstruct): score candidates across numeric and source errors
KaiEureka Nov 29, 2026
58b77af
fix(reconstruct): retain precise comparisons and codec feedback
KaiEureka Nov 29, 2026
0b27d31
fix(weave): retain repairs after truncated verification output
KaiEureka Nov 29, 2026
92ec366
fix(team): capture case-only candidate renames
KaiEureka Nov 29, 2026
ae6c53d
fix(worktree): preserve spelling of staged additions
KaiEureka Nov 29, 2026
266e224
fix(worktree): bound candidate path enumeration
KaiEureka Nov 29, 2026
213a861
fix(weave): continue repairs for confirmed check failures
KaiEureka Nov 29, 2026
8dd7e32
fix(storage): preserve capacity and durability of session exports
KaiEureka Nov 30, 2026
cc657b2
fix(team): validate registered workflow outputs before handoff
KaiEureka Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
test:
runs-on: ubuntu-latest
# Allow the full suite and the Python 3.12 DOM checks to finish on hosted runners.
timeout-minutes: 45
timeout-minutes: 55
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -347,6 +347,11 @@ jobs:
}
assert totals == {"tests": 5, "skipped": 0, "failures": 0, "errors": 0}, totals
PY
- name: Exercise candidate spelling on macOS
run: >-
uv run pytest -q -p no:cacheprovider
tests/workflows/test_candidate_case_spelling.py
tests/workflows/test_candidate_source_casepaths.py

arcbench-checkers:
name: ARC-Bench browser and SQLite fixtures
Expand Down
2 changes: 2 additions & 0 deletions configs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ For native Claude 4 models that support sampling, an explicit `top_p` takes
precedence over `temperature`, following the
[Anthropic sampling requirements](https://github.com/anthropics/skills/blob/main/skills/claude-api/shared/model-migration.md#sampling-parameters---temperature--top_p--top_k).
With `top_p` unset, ordinary requests retain the configured temperature.
Use `OpenCollab(config={"top_p": None})` to select provider-default sampling
for one SDK client when the environment or env file sets a global value.

## Thinking

Expand Down
4 changes: 4 additions & 0 deletions docs/duo.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ caller's runtime configuration.
Duo's output records `winner` and `adopted` separately, because a failed adoption
may fall back to the other candidate. `status` is `done` after successful adoption,
`incomplete` when no candidate is adopted, or `error` when the task is missing.
When the shared budget prevents B from starting, Duo can adopt A if it has a
deliverable diff, completed cleanup and a current passing test without a current
failure. The result records `candidate-b-budget-exhausted` and marks B as skipped.
Without an eligible A, the workflow returns the budget stop.
The output also retains selection reasons, candidate evidence, adoption attempts
and token consumption. Duo addresses candidate selection through behavior evidence
and the default-B preference. Task correctness is established by the caller's actual
Expand Down
2 changes: 2 additions & 0 deletions docs/duo/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,6 @@ Git 候选从源目录当前受跟踪文件和未被忽略的未跟踪文件开

结果分别记录 `winner` 与 `adopted`,采用失败时可能回退另一候选。成功采用后 `status` 为 `done`,没有候选被采用时为 `incomplete`,缺少任务时为 `error`。结果同时保留选择理由、证据、采用尝试和 token 消耗。Duo 根据行为证据和默认偏好 B 的规则选择候选,任务正确性由调用方的实际检查及适用时评测器的正式评分确定。

共享预算耗尽而 B 无法启动时,若 A 有可交付改动、清理已完成,且当前测试记录至少有一项通过、没有失败,Duo 可以采用 A。结果会记录 `candidate-b-budget-exhausted`,并将 B 标为跳过。A 的改动或证据未达到这些条件时,工作流返回预算耗尽。

OpenCollab-Eval 负责题面、环境准备、隐藏测试隔离、候选捕获和正式评分,运行方式见[评测快速开始](https://github.com/RISE-X-Lab/OpenCollab-Eval#duo-quick-start)。
47 changes: 45 additions & 2 deletions docs/reconstruct.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,51 @@ task = ReconstructionTask(
)
```

`evaluate` should run the candidate where the agent's own code runs (for
example inside the agent's Docker container), never in the harness process.
`evaluate` receives a temporary copy of the archived candidate, with the same
filename and permissions. The staging directory preserves the candidate's
package layout and links to accessible sibling files, such as
`candidate.json`, and packages. Staging uses the workspace root when writable,
then the candidate's parent, then the archive directory.
Run the copy in the agent's execution environment, never in the harness process.
The staging directory is removed when the evaluation ends.

For a Python package, use the module's configured name and start the
subprocess in the staged Python import root. The callback path can be under
any of the staging locations above. A temporary directory name can include
a dot. Module execution may use an alias path to the same staged file.
Standalone files use the ordinary staging directory when the filesystem
cannot create the alias. The final path components match
`candidate_file` relative to the Python import root. This example assumes a
local agent environment and a module that takes a JSON input list and prints
a JSON output list.

```python
import asyncio
import json
import sys
from pathlib import Path

candidate_file = "src/catalog/pricing/offer.py"
module_path = Path(candidate_file).relative_to("src")
module_name = ".".join(module_path.with_suffix("").parts)

async def run_candidate(program_path, inputs):
import_root = program_path.parents[len(module_path.parts) - 1]
process = await asyncio.create_subprocess_exec(
sys.executable, "-m", module_name, json.dumps(inputs),
cwd=import_root,
stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,
)
stdout, stderr = await process.communicate()
if process.returncode:
return [{"ok": False, "error": stderr.decode().strip()} for _ in inputs]
return [{"ok": True, "output": value} for value in json.loads(stdout)]
```

Set `module_path = Path(candidate_file)` when the workspace root is the project's
Python import root. The subprocess imports the staged file under its usual
package name, so relative and absolute imports share the same package.

`kind` is one of `list`, `two_lists`, `int`, `pair`, `string`, `points` or
`other`; `other` disables the coverage gate and the domain check.

Expand Down
11 changes: 8 additions & 3 deletions docs/weave.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ An adapter's `save_state(data)` hook receives independent JSON snapshots for
storage. Supply a saved snapshot as the JSON `state` input or through
`WeaveState(saved_snapshot)` with `run_weave`. Reuse the saved `run_id`
when calling the SDK or pass it as `workflow run weave --run-id RUN_ID` through
the CLI. Generated groups continue at their checks, checked groups
retain their generation results, and consumed repair rounds remain counted.
The saved group fields must agree with the supplied groups.
the CLI. Generated groups and completed repair sessions continue at
verification. A repair round stays pending when a verification command is
skipped or times out. The report records both execution and timeout for a
command that starts and exceeds its deadline. The next invocation uses the
pre-repair check to measure progress.
Checked groups retain their generation results, and started repair rounds
still count toward the limit. The saved group fields must agree with the
supplied groups.
6 changes: 6 additions & 0 deletions opencollab/adapters/_candidate_adoption.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ async def _adoption_transaction(
environment: Any, workspace: str, paths: Sequence[str], *, repository: bool,
replay: Callable[[str, str | None, str | None], Awaitable[None]],
attributes_file: str | None = None,
before_publication: Callable[[], Awaitable[None]] | None = None,
restore_spelling: Callable[[], Awaitable[None]] | None = None,
) -> AsyncIterator[None]:
# Own a missing or non-directory ancestor too, so rollback also reverses
# directory creation and file/directory replacements without following links.
Expand Down Expand Up @@ -733,6 +735,8 @@ async def remove_backup(path: str, *, retain_detached: bool = False) -> None:
)
publication_started = False
try:
if before_publication is not None:
await before_publication()
if "activate-originals" in snapshot.splitlines():
# Filesystems without hard links keep the original by
# moving it aside and giving Git an equivalent working copy.
Expand Down Expand Up @@ -760,6 +764,8 @@ async def recover() -> tuple[bool, bool]:
receipt = _complete(await environment.exec_cmd(
command, timeout=900,
), "candidate adoption recovery")
if publication_started and restore_spelling is not None:
await restore_spelling()
shell_overlapped = shell_commands is not None and (
active > 0 or last_started is not shell_commands.last_started
)
Expand Down
233 changes: 233 additions & 0 deletions opencollab/adapters/_candidate_case_publish.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
"""Prepare worktree patches whose paths differ only in spelling."""

from __future__ import annotations

import logging
import posixpath
import shlex
from collections import defaultdict
from collections.abc import AsyncIterator, Callable, Iterator, Sequence
from contextlib import asynccontextmanager
from typing import Any

from opencollab.adapters._candidate_adoption import _CHECK_PARENTS, _adoption_command
from opencollab.adapters._candidate_casepaths import (
_EXACT_ENTRIES,
_case_aliases,
_case_key,
_with_native_case_entries,
)
from opencollab.adapters._git_patch_bytes import _complete, _patch_temporary
from opencollab.adapters.git_patch import _RAW_ATTRIBUTES, _git_command_and_config_guard
from opencollab.application.async_timeout import await_owned_operation
from opencollab.application.exception_notes import add_exception_note

logger = logging.getLogger(__name__)


def _ancestors(path: str) -> Iterator[str]:
while path:
yield path
path = posixpath.dirname(path)


async def _case_targets(
environment: Any, workspace: str, paths: Sequence[str], *, repository: bool = True,
) -> dict[str, str]:
by_spelling: dict[str, set[str]] = defaultdict(set)
for path in paths:
for name in _ancestors(path):
by_spelling[_case_key(name)].add(name)
pairs = [(new, old) for names in by_spelling.values() for new in names for old in names if old != new]
return dict(await _case_aliases(environment, workspace, pairs, repository=repository))


def _current_spelling(path: str, aliases: dict[str, str]) -> str:
for prefix in _ancestors(path):
if prefix in aliases:
return aliases[prefix] + path[len(prefix):]
return path


async def _case_identity(environment: Any, workspace: str, path: str) -> str:
inspect = _EXACT_ENTRIES + 'exact_path "$1" && identity "$1"'
if not path.isascii():
inspect = _with_native_case_entries(environment, r'''
path = exact_path(sys.argv[1])
entry = identity(path) if path is not None else None
if entry is None:
raise SystemExit(f"worktree entry changed at {sys.argv[1]}")
print(entry)
''', inspect)
script = f"cd -- {shlex.quote(workspace)} || exit\nset -- {shlex.quote(path)}\n{inspect}"
return _complete(await environment.exec_cmd(script, timeout=120), f"candidate spelling identity for {path}").strip()


async def _case_move(
environment: Any, workspace: str, source: str, destination: str, identity: str, *, restoring: bool = False,
) -> None:
# GNU mv can reject two spellings of one entry before calling rename.
fallback = (
_EXACT_ENTRIES + 'source=$1; target=$2; entry=$3\n'
'if [ "$4" = true ] && exact_path "$target" && ! exact_path "$source"; then exit 0; fi\n'
'exact_path "$source" && ! exact_path "$target" && '
'[ "$entry" = "$(identity "$source")" ] && [ "$entry" = "$(identity "$target")" ] && '
'mv -f -- "$source" "$target" && exact_path "$target" && ! exact_path "$source"'
)
move = _with_native_case_entries(environment, r'''
source, target, entry, restoring = sys.argv[1:]
original = exact_path(source)
present_target = exact_path(target)
if restoring == "true" and original is None and present_target is not None:
sys.exit(0)
if original is None or present_target is not None or identity(original) != entry or identity(target) != entry:
raise SystemExit(f"worktree entry changed at {source}")
actual_name = os.path.basename(original)
target_name = os.path.basename(target)
if actual_name == normalize("NFD", actual_name):
target_name = normalize("NFD", target_name)
os.rename(original, os.path.join(os.path.dirname(original), target_name))
names.cache_clear()
if exact_path(target) is None or exact_path(source) is not None:
raise SystemExit(f"worktree spelling did not change at {target}")
''', fallback)
arguments = shlex.join((source, destination, identity, "true" if restoring else "false"))
script = (
f"cd -- {shlex.quote(workspace)} || exit\n"
f"set -- {arguments}\n{move}"
)
_complete(await environment.exec_cmd(script, timeout=120), f"candidate spelling change for {source}")


async def _normalize_case_index(
environment: Any, workspace: str, indexed: Callable[[str], str],
current: dict[str, str], aliases: dict[str, str], *, repository: bool = True,
) -> tuple[tuple[str, str], ...]:
renamed = {path: old for path, old in current.items() if path != old}
inspected = sorted(set(renamed) | set(renamed.values()))
entries: dict[str, str] = {}
for start in range(0, len(inspected), 128):
batch = shlex.join(inspected[start:start + 128])
output = _complete(await environment.exec_cmd(
indexed(f"--literal-pathspecs ls-files --stage -z -- {batch}"), timeout=120,
), "candidate case postimage")
for line in filter(None, output.split("\0")):
metadata, _, path = line.partition("\t")
entries[path] = metadata
destinations = {path: renamed[path] for path in entries.keys() & renamed.keys()}
if len(set(destinations.values())) != len(destinations) or entries.keys() & destinations.values():
raise RuntimeError("candidate patch uses multiple spellings for the same worktree path")

moves = set()
if destinations:
originals = "".join(f"{path}\0" for path in sorted(destinations))
index_entries = []
for path, old in sorted(destinations.items()):
mode, blob, _stage = entries[path].split()
index_entries.append(f"{mode} {blob}\t{old}\0")
for name in _ancestors(path):
present_name = aliases.get(name)
if present_name and posixpath.basename(present_name) != posixpath.basename(name):
target = posixpath.join(posixpath.dirname(present_name), posixpath.basename(name))
moves.add((present_name, target))
async with _patch_temporary(
environment, workspace, originals, prefix=".candidate-case-remove-", repository=repository,
) as remove, _patch_temporary(
environment, workspace, "".join(index_entries), prefix=".candidate-case-index-",
repository=repository,
) as replace:
_complete(await environment.exec_cmd(
indexed(f"update-index --force-remove -z --stdin < {shlex.quote(remove)}") + " && "
+ indexed(f"update-index -z --index-info < {shlex.quote(replace)}"), timeout=900,
), "candidate case index spelling")
# Rename the leaves before their parent directories.
return tuple(sorted(moves, key=lambda change: (-change[0].count("/"), change[0])))


@asynccontextmanager
async def _normalized_case_patch(
environment: Any, workspace: str, command: str, patch_file: str, paths: Sequence[str],
aliases: dict[str, str], *, has_private_index: bool, repository: bool = True,
) -> AsyncIterator[tuple[str | None, tuple[str, ...], tuple[tuple[str, str], ...]]]:
current = {path: _current_spelling(path, aliases) for path in paths}
worktree_paths = tuple(sorted(set(current.values())))
async with _patch_temporary(
environment, workspace, "", prefix=".candidate-case-publication-", cleanup_best_effort=True,
repository=repository,
) as marker:
directory = shlex.quote(marker + ".files")

def temporary(name: str) -> str:
return f"{directory}/{name}"

initialize = f"mkdir -m 700 -- {directory}"
if not repository and not has_private_index:
git, _guard = _git_command_and_config_guard()
git_dir = temporary("git")
attributes = shlex.quote(f"* {_RAW_ATTRIBUTES}")
initialize += (
f" && {git} init --bare --quiet --template= {git_dir} && "
f"mkdir -p -- {git_dir}/info && printf '%s\\n' {attributes} > {git_dir}/info/attributes"
)
command = (
f"{git} -C {shlex.quote(workspace)} --git-dir={git_dir} --work-tree={shlex.quote(workspace)} "
"-c core.bare=false -c core.autocrlf=false"
)

def indexed(arguments: str) -> str:
if has_private_index:
return f"{command} {arguments}"
return f"(export GIT_INDEX_FILE={temporary('index')}; {command} {arguments})"

failure: BaseException | None = None
try:
present = temporary("present")
collect = (
f"{initialize} && cd -- {shlex.quote(workspace)} || exit\n"
f"workspace={shlex.quote(workspace)}\nconflict() {{ return 1; }}\n" + _CHECK_PARENTS
+ f"for path in {shlex.join(worktree_paths)}; do "
'if check_parents "$workspace/$path" && { [ -f "$path" ] || [ -L "$path" ]; }; then '
'''printf '%s\\0' "$path" || exit; fi; done'''
+ f" > {present} && {indexed('read-tree --empty')} && "
f"if [ -s {present} ]; then "
+ indexed(f"--literal-pathspecs add --force --pathspec-from-file={present} --pathspec-file-nul")
+ f"; fi && {indexed('write-tree')}"
)
async with _adoption_command(environment, workspace, collect, repository=repository) as script:
before = _complete(await environment.exec_cmd(script, timeout=900), "candidate case preimage").strip()
_complete(await environment.exec_cmd(
indexed(f"apply --cached --binary --whitespace=nowarn -- {shlex.quote(patch_file)}"), timeout=120,
), "candidate case patch preparation")

moves = await _normalize_case_index(
environment, workspace, indexed, current, aliases, repository=repository,
)

normalized = marker + ".files/apply.patch"
_complete(await environment.exec_cmd(
indexed(
"-c core.quotePath=true --no-pager diff --cached --binary --full-index --no-renames "
"--no-ext-diff --no-textconv --no-color --src-prefix=a/ --dst-prefix=b/ "
f"{shlex.quote(before)} > {shlex.quote(normalized)}"
), timeout=900,
), "candidate worktree patch preparation")
result = await environment.exec_cmd(f"test -s {shlex.quote(normalized)}", timeout=30)
_complete(result, "candidate worktree patch inspection", allowed=(0, 1))
yield normalized if result.returncode == 0 else None, worktree_paths, moves
except BaseException as error:
failure = error
raise
finally:
try:
_complete(await await_owned_operation(
environment.exec_cmd(f"rm -rf -- {directory}", timeout=120),
propagate_cancellation=True,
), "candidate case publication cleanup")
except Exception as cleanup:
if failure is None:
logger.warning(
"Could not confirm cleanup of case publication files at %s", marker + ".files",
exc_info=cleanup,
)
else:
add_exception_note(failure, f"candidate case publication cleanup failed: {cleanup}")
Loading
Loading