Skip to content

Very long proofs (VL3, DP7), CPU exploration tools (CX1 to CX6), coding agents (EA1, EA2) - #11

Open
Kdevos12 wants to merge 73 commits into
mainfrom
claude/project-thread-h60gyw
Open

Kdevos12 wants to merge 73 commits into
mainfrom
claude/project-thread-h60gyw

Conversation

@Kdevos12

@Kdevos12 Kdevos12 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What changes

This PR holds the work done after 1.0.0-beta.2, in the plan's order (Rulings 46, 47 and 48; Tasks 72, 73, 77 to 79 and 81). Every new behaviour is off by default, so v1 and v2 behave as before.

  • Very long proofs (Ruling 46).
    • VL3: a hole cut short by its turn limit keeps going while Lean shows progress (longProof.holeProgress).
    • A hole session may use #check and example in its working file. validate and the certifier refuse them everywhere else.
    • A draft whose first step restates the theorem is refused.
    • The probe counts a retired tactic (polyrith) as missing.
  • DP7 (Task 73). A too_hard hole gets a local have redraft on its own small file, nested up to longProof.depth (default 1). The redraft is paid from the problem's budget through the gate.
  • CPU exploration tools (Ruling 47).
    • CX1: the M10 router tags each goal with its exploration moves, and harness audit counts them.
    • CX2: M16 gets a strategy: iid baseline.
    • CX3: a new capability, compute.python, runs Python on a local Pyodide inside a sealed Node child process. It is the host's compute tool when Sage does not answer.
    • CX4: M10's battery gets a certificate stage, off by default: modular obstruction, Gröbner cofactors, rounded SOS and Bernstein boxes. Every candidate is a screened Lean text submitted through validate. harness certificates runs the stage alone, at $0.
    • CX5: a local search runs between M16's model rounds. CA20's graph search is folded into it.
    • CX6: SAT encoders for M11, off by default. An UNSAT result is recorded as evidence only.
  • Coding agents (Ruling 48).
    • EA1: harness doctor --agents checks the installed coding agents.
    • EA2: ACP becomes a second transport of library-builder's coding-agent builder. The CLI stays the default.
  • Plans. The plan changes, Rulings 46 to 48, Tasks 72 to 83, and the ledger, which records every decision and interface change.

What ran

  • pnpm check on the head: 3598 tests, 0 failures, 1 skipped.
  • Real runs, both on earlier code:
    • Run 7 used the beta.2 code, not this branch: 3/3 certified for $0.64.
    • The lifter was checked on a real Lean in the earlier pull request.
  • Everything in this pull request ran only against stand-ins: a simulated Lean, a faux model, a stand-in Pyodide and a fake ACP agent. Not yet run for real:
    • CX2's M16 run, which costs a few cents;
    • CX4's real pass, at $0;
    • the compute.python contract on a real Pyodide;
    • any real coding agent.
  • Reviews, each by an agent that did not write the code. All findings are fixed, with tests:
    • VL3, DP7 and the scratch commands: one trust finding and eight correctness findings.
    • CX1 to CX4: no path changes a status outside validate. The review found one network leak in the Pyodide sandbox and seven correctness findings.
    • CX5, CX6, EA1 and EA2: no path changes a status outside validate. The review found three confinement or masking defects in the ACP client and the doctor, a ∀ scoping bug that produced false evidence, and minor items.

Checklist

  • pnpm check passes.
  • The documentation page that describes the change is updated in the same commit.
  • The README's research-flow diagram is updated where the flow changed, with the new nodes marked as not run.
  • No claim's status changes except through Lean (validate, the certifier's kernel replay).
  • Everything is in English.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD

Kdevos12 and others added 30 commits November 24, 2026 19:51
…; VL1 in the ledger

On Lean 4.27.0 polyrith parses but says its external service has shut
down, so the probe took it as present and the battery spent tries on it.
The ledger records VL1's classes on run 7's holes (A 0, B 3, C 0, D 3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Hole sessions record Lean's errors plus sorry at their first and last
checked file. With the new M12 option holeProgress (and holeContinuation,
which longProof sets), a hole gets one more session each time its last
session was cut by its turns and ended closer to done than it began and
than the session before; an oscillating or flat session ends it.
HoleSessionResult gains an optional `progress` (shared packages/lines,
additive).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…, 2026-11-24)

SCRATCH_POLICY (core, additive) lets `#check` and `example` through the
aux screen of a claim's own small file. A file that holds one is a sketch:
never valid, no candidate, and readWork does not count it as done; the
problem's file, validate's outer checks and the certifier are unchanged.
On run 7, 25 of 283 hole-session checks were refused before Lean ran,
most for exactly these commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…d (VL1, class D)

On run 7, one of 1999 A2's holes was the whole theorem again, under its
own hypothesis. restatedStep finds a `sorry` step whose type is the
target's conclusion; the draft is recorded as not healthy and goes to
the refinement round. splitStatement moves from @seshat/repair to
@seshat/core (lean-source.ts, additive) so both packages share it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
ProblemContext.checkSketch takes an optional { claimId } and closeSorries an
optional third argument of the same shape: the sketch is checked, and the
battery renders it, on that claim's workbench (the one its hole sessions use)
instead of the problem's file. Additive: without the argument both behave as
before. M12's local redraft of a hole (DP7) is the caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Under longProof, a hole of the current blueprint whose sessions ended
too_hard for a reason other than the budget is drafted again as a blueprint
of its own, before any refinement round: the same draft as the draft from
the informal proof (draft, makeDraft, liftHaves), with the hole as the target
and its informal step quoted as unchecked data, checked and lifted on the
hole's own file, each planner call asked of the problem's budget gate
(askPlanner). The record has redraftOf; registerAll registers it on the
hole's claim (holes under it, a decomposes_into edge from it, its link lemma
checked by Lean), and the existing propagation derives the hole, then the
target, through validate. Depth is the nesting of the registering
decomposes_into edges, at most M12's redraftDepth.

RunConfig.longProof.depth (whole number >= 0, default 1, 0 off) sets
redraftDepth where M12 has blueprints; triage refuses a bad value. A redraft
Lean refuses, a gate skip or a failed call leaves the hole to the refinement
round (case b). Refinement rounds, frozen links, the briefing and M15's
archive read the problem's own blueprints only. Without longProof nothing
changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…indented

hasScratch read the start of each aux command, so a `#check` behind `open X in` or
`set_option a b in`, or an indented `#check` or `example` (no command of splitCommands
starts there), was not found, and under SCRATCH_POLICY such a file could be valid.
It is now a token scan of both regions outside comments, like hasHoles, and a file
that holds a scratch command is never valid under any policy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Every claim workbench had SCRATCH_POLICY, so `validate` of every sub-claim, negation
and link lemma, on every line, saw it. The workbench is back on SKETCH_POLICY, and
Workbench.check takes a per-call `scratch` option, like `timeoutSec`, which only
runHoleSession's checks pass. The hole prompt's line on #check and example is so
true of every hole session. validator.md says which checks use the policy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
A hole session counted a check that timed out, or that hit a server error, as
distance 0 (no messages), so such a session looked like progress and bought a
continuation. Only a check whose leanStatus is valid, sorry or lean_error is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
The plan's `holeContinuation: "progress"` is M12's boolean option holeProgress,
since a line option is typed by its default; nothing in a long-proof run could
turn it on. RunConfig.longProof.holeProgress (boolean, default false) is checked
by the triage's settings check and sets M12's holeProgress the way longProof sets
redraftDepth: a value the person gave M12 stays. The VL3 tests turn off the local
redraft, so that a split round follows the last session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
restatedStep refused any sorry step whose type is the target's conclusion, so a
final step that combines the steps before it (`have h_final : goal := by sorry`
after h1 and h2, which it has as hypotheses) refused a legitimate draft. Only the
first `have` of the proof, the theorem itself with nothing new in scope, is
refused now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…lem's sketch

progressOf read the open holes of every healthy registered m12_sketch of the
problem, and the escalation counted every planner record as a round, DP7's
redrafts of a hole included. Both skip records with redraftOf; the round count
is plannerRounds, next to progressOf, so that it is tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
redraftInto took any healthy registered redraft of a hole, even one whose
decomposes_into edge from the hole Lean had not checked. Such a redraft can never
derive the hole, yet the hole counted as worked while its holes were, so case b
never ran. A redraft now counts only when its edge is lean_checked, and the
holes of one that is not get no tasks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
The dossier's "Last sketch or blueprint" and the length section took the
problem's newest m12_sketch record, which may now be a DP7 redraft of a hole.
The audit reads the problem's own sketches only (no redraftOf).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
… checked

holeSessionLimit took the session before the last as its reference, so a session
in between that Lean never checked (no progress) let any later session that fell
within itself count as progress. The reference is now the last earlier session
with a progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
The attempt id of a hole's local redraft was `${name}:draft`, so two holes of one
name (in two blueprints, or nested) shared it. It is now
`${name}@${claimId.slice(-6)}:draft`, deterministic from the journal, so a
resumed run names it the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
splitStatement moved to @seshat/core for the lifter; @seshat/repair re-exports it
so that the package's public API stays as it was (additive).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…tence

lines.md documents the optional `progress` of a hole session's result (VL3), and
its doc comment says which checks it reads. scheduler.md loses the sentence that
the depth of `-- refines:` waits for LP6: DP7 replaces that change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
… says so

formatCheck answered such a file "A file with holes is never accepted; prove
each hole.", though it had none. It now says that the scratch commands must be
removed for the work to count (and asks for both when holes are left too). The
reason is one constant, SCRATCH_REASON, which the validator, readWork and the
feedback share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…changes and review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…ion, CX1 to CX10)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
routeStatement gains a moves field (E1 to E12 of plan change CX1), read
from the statement's syntax beside its domains: a lexical pass that never
throws, so unreadable goals get moves too, plus the router's features for
polynomial inequalities and integer equations. The battery_run node
journals the moves with the domains (an optional field). A fixture of 40
hand-labelled bench and Putnam statements checks the plan's 80% recall
and prints the measured value (62 of 65).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…els by role and depth)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
A new "Exploration moves" table in audit.md: for each move E1 to E12, the
problems whose own statement the router tags with it and the certified
ones among them. A problem's moves come from its last battery_run node
when M10 ran on it, else from its claim's statement, so older runs are
counted too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
M16.strategy is islands (the default, and the meaning of an absent
value, which leaves the search options as they were) or iid: one island,
no resets, and every model call gets the seeds' prompt, for the same
rounds and samples, so the same spend. The best program of any call is
kept and submitted as before. Tested with the scripted model; the real
run against a Sidon-set construction is the owner's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…(CX3)

A stateful, direct capability shaped like compute.sage (input code and
timeout; output result_type, result, stdout, elapsed_ms), for hosts
without Docker or SageMath. Its implementation pyodide (factory in
@seshat/registry) runs Pyodide 314.0.7 from a local copy (pyodideDir,
PYODIDE_DIR in the local profile) in one Node process per scope, started
with --permission (reads only Pyodide's directory and its scratch
directory, writes only the scratch directory), an empty environment, an
empty js module, js/pyodide_js/pyodide.ffi/pyodide.http removed and
refused before user code, the network globals deleted, a WebAssembly
memory cap and a time limit that kills the process. Release ends the
scope's interpreter. Without Pyodide the implementation is unavailable
and health says how to install it; no npm dependency is added.

The contract has the plan's cases (arithmetic, a sympy Groebner basis,
a python-sat model, a clarabel SDP, time and memory limits, import js
refused, no network, no file outside the scratch directory); it needs
the real Pyodide and runs from the test only when PYODIDE_DIR is set.
The tests drive the child protocol with a stand-in loader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…nswer (CX3)

COMPUTE_TOOLS (tools.ts) orders the compute capabilities: compute.sage,
then compute.python. solve --auto-tool, the v2 defaults and the bench
arms give a problem the first of them the host offers (hostComputeTool).
When the run pins its tools and that one does not answer, pinTools tries
the host's other compute tools in order (computeFallbacks, a new optional
fallbacks argument), logs the replacement and records the tool that
answered as run.started's autoTool; Sage stays preferred wherever it
answers. The first-cases code imports binomial, factorial and prod from
math when it runs through compute.python.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Kdevos12 and others added 14 commits November 25, 2026 15:47
The plan's principle leaves every item off unless it says otherwise, and
M10.certificates defaulted to true. It now defaults to false; a paid
comparison of runs with and without the stage decides later, and
`--line-option M10.certificates=true` turns it on. `harness certificates`
still runs every method, whatever the option says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
polynomial.ts repeated induction's rational.ts (Rat, gcd, rat, the four
operations, ZERO, ONE). The rationals now live in classical's rational.ts
(with gcd and an equality exported), polynomial.ts and certificates.ts
import them from there, and induction's rational.ts re-exports them under
the short names it uses (add, sub, mul, neg, div, eq, show), keeping only
its own linear algebra (nullspace, toIntegers).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
… Lean

The pass wrote the bench file's header and statements into Lean files
without the screen every other bench text passes. readCertificateBench now
refuses a file whose header fails headerProblems or a statement fails
leanTextProblems, naming each reason. The report's compute capability is
read after a problem's calls, so it names the tool that answered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
POLYRITH_PY set every free unknown of the ansatz to 0, so over ℤ it could
return rational cofactors where integer ones exist (x = (1/2)·2x rather
than (-1)·2x + 1·3x), which the stage then refuses. Told the goal is over
ℤ, a solution with denominators tries the integers -2 to 2 for up to
three free unknowns it depends on, then the next degree, and is given as
it is only when none is integral.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…codex (EA1)

Checked against the published documentation on 2026-11-25: Claude Code's
print mode denies every permission prompt nobody answers, so the agent could
not write its files without --permission-mode acceptEdits; codex exec starts
in a read-only sandbox unless --sandbox workspace-write is given. The table
of documentation/library-builder.md now says what each row was checked
against, and that none was checked against an installed release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…r (EA2)

agent.transport is "cli" (the default, unchanged) or "acp". Over ACP Seshat
is the client, with the protocol messages written in one module
(acp-protocol.ts, protocol version 1 as published on 2026-11-25, no SDK):
initialize with no fs and no terminal capability, session/new in the clone
with the settings' MCP servers (harness library build gives the lean-lsp-mcp
command lean.lsp wraps when none are named), session/prompt with the spec's
prompt. Permission requests are answered by the settings (acp.deny, default
fetch; any path outside the clone is denied) and journaled; fs, terminal and
any other request of the agent are refused. At the time limit or on abort it
sends session/cancel, waits acp.cancelGraceSec, then kills the process group;
a reported cost at the dollar budget cancels the turn. The runner returns the
CLI runner's shape, so the clone, environment, sandbox, gate and record are
the one builder's. Tests drive a fake ACP agent: the same verdict and record
as over the CLI, cancel at the time limit, a deaf, silent, garbled or hostile
agent keeps nothing, and the CLI transport records no ACP field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Shown when config/library-builder.json selects coding-agent, or with the new
flag --agents (which adds every agent of the default CLI and ACP tables).
For each agent: whether its program is installed and its --version; for the
CLI transport whether the help of the non-interactive mode names every flag
the command passes; for ACP whether initialize is answered within 10 s, and
with what protocol version, loadSession and MCP capabilities. No prompt, no
session, no model call. The checks run as a build would (behind the sandbox,
with the agent's environment only); no value of that environment is printed,
an unset ${env:NAME} is named, and every finding is a warning, so doctor's
exit code and solve's preflight are unchanged. DoctorSystem.run takes an
optional env and cwd. parameters.md regenerated for --agents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
A SearchSpec may name a neighborhood (bits, intList, permutation, graph,
or a sandboxed JavaScript move program). Before each model round and
after the last, a phase moves the best witness by annealing or tabu
(runLocalSearch), each step scoring its moves in one sandbox run with the
spec's scoring program; a model round runs only after plateauSteps steps
without a better witness. The improved object is scored like a program's
output and, when it beats every program, is the witness sent to Lean
through leanTerm. Each phase is seeded from the run's seed, the problem
and the spec, and journaled as a search_local node; a resumed process
replays a phase by its recorded step count. M16 options localMethod,
localSteps, localNeighbors, plateauSteps, localTemperature, tabuTenure,
localMs; without a neighborhood the search is unchanged.

CA20's graph local search (graph-search.ts) is now runLocalSearch with the
graph neighborhood at temperature 0: one code path, the same graphs and
effort on the same seeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
With the option M11.sat (off by default), the line encodes the
counterexamples of the statements it reads as CNF with lex-leader
symmetry breaking (transpositions of neighbours) and solves them with
python-sat in the host's compute tool (registryCompute with the need
pysat, which puts compute.python first; the orchestrator gives it to M11).

- Magmas the battery did not refute: encodeMagma for orders 1 to
  satMagmaOrder; a decoded magma the law evaluator also sees failing is
  a counter_model whose negation goes through validate.
- Graphs in a fragment (CliqueFree, edge count, order, min and max
  degree, every degree, with the connectives): encodeGraph before any
  model call; a decoded graph goes to confirmHit (source sat).
- Graphs outside it: one model request (site encode.sat, in the same cap
  as the predicate's) for a Python encoder; its model goes to confirmHit,
  so a wrong encoder costs a try and no status.

The CNF travels deflated, in chunks under compute.python's code limit.
A timeout or failure is unknown, never UNSAT. UNSAT at every order is a
sat_search node, "no counterexample of order 1 to n", computed evidence
and never a status; an UNSAT of a model's encoder is not evidence.
Witnesses reach Lean only through the line's templates, from numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 95794fb7-22df-42c1-9db3-526d67413161
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Kdevos12 and others added 15 commits November 25, 2026 20:52
…component physically

insideDirectory walked up to the nearest existing part and appended the rest: at the filesystem root it cut one character
too many (/Xtmp/.../clone/evil was inside), and it resolved `..` lexically before links (clone/d/link/../passwd with link
to /etc was inside). It now resolves each component as the kernel would (lstat, readlink, step by step, at most 40
links), refuses `~`, URIs, NUL bytes and a `..` after a part that does not exist, and decidePermission denies a path that
cannot be resolved with the reason instead of throwing. library-builder.md says the answer is advisory and racy, and that
only the sandbox confines the agent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…, and no agent outlives it

A permission request for /proc/self/ns/net made realpathSync throw inside onRequest, whose promise had no catch: the
unhandled rejection ended the harness and left the agent's detached process group running. A request whose handling
fails is now answered with a JSON-RPC internal error (-32603), and every agent started in a process group of its own,
over either transport, is tracked and its group killed on the harness's exit. Tested with a fake agent that sends that
path and a name too long to look up, and with a harness that exits while a deaf agent runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…lar budget

At the time limit and on abort, session/cancel is followed by cancelGraceSec and a kill of the process group; at the
dollar budget the cancel was sent and the turn waited for, so an agent that ignored it ran to the time limit. The grace
period now starts at the budget's cancel too, its end kills the group, and the files are judged (exit code 1, as for a
prompt answered with an error). library-builder.md says that an agent reporting no cost has no dollar budget over ACP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
optionFor fell back to allow_always when a permission request offered no allow_once, which would let every later
request of that kind through unasked. It now answers cancelled instead; a denial still falls back to reject_always.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…conds

A negative, non-finite or non-numeric grace period went straight into a timer (NaN or Infinity fire at once, a huge
value keeps a cancelled agent running). settingsProblem now refuses anything outside 0 to 300 seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…is printed or journaled

The doctor's coding-agents section hid only the values of agent.env, so a key that ${env:NAME} put in command was printed
in full (the ACP line prints the whole argv, the CLI line the tokens before the first flag), and library_build journaled
the command as run. One helper, maskSecrets, now hides every value an expansion put in, wherever it stands, and every value
of agent.env: in all the doctor prints, and in the journaled command, agent output and failure reason
(loadLibraryBuilderConfig collects the expanded values, CodingAgentBuilder takes them as the optional secrets).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…ind the sandbox

For a command of the person's, the doctor ran its tokens before the first flag with --version (and --help): with
["python3", "wrapper.py", "-p"] that runs the script. probePlan now gives no version or help probe for a custom command
whose program is not one of the default commands' (AGENT_PROGRAMS), and the check says "not probed". With --agents, the
default agents ran with no sandbox although the documentation said "behind its sandbox": they now run behind the configured
agent's sandbox, and with none only when the config names none, as library-builder.md now says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
… in Lean

parseFormula read `∀ v, G.degree v ≥ 1 → G.minDegree ≥ 1` as `(∀ v, G.degree v ≥ 1) → G.minDegree ≥ 1`, a tautology, so the
template encoder found no counterexample and recorded UNSAT evidence for a statement Lean reads as `∀ v, (... → ...)`, false
on three vertices with one edge. A ∀ is now a binder whose body runs to the end of its group, read only when that body is
one degree bound; anything more is outside the fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
satMagma submitted the negation of the magma it found whatever M11's refute said, where the battery's counter-models are
recorded and nothing is submitted when it is false. SatSettings now carries refute, and satMagma records the counter-model,
its obstruction and a found search with the note "refute is off", and submits nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
… solving it

The chunks of a large CNF accumulate in the compute session's `_seshat_cnf`; a lost reset left an earlier CNF's chunks in
front, and since zlib ignores what follows the end of its stream the solving call decoded and answered the earlier CNF. The
Python now checks the joined chunks' length and SHA-256 against what was sent, and a mismatch is unknown with a note, never
an answer. Tested with a fake session that keeps stale chunks; the generated Python was also run (without python-sat) on
both paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
graph-search.ts exported `neighbor` as a second name for M16's `graph` neighborhood; its one user, a test, now calls
graphNeighbor, so the move has one name as it has one code path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
The template encoder tried graphs up to 10 vertices, but a model above GRAPH_HUNT.leanVertices (8) is recorded too_large
and never checked, so orders 9 and 10 spent solver calls on graphs that refute nothing. The default is now that constant;
a person may still set more, and models.md says what it buys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…t falls differently

A resumed process replays a local phase for the steps on record, but the sandbox's time per call is wall time: a scoring
run cut by it in the run and not in the replay, or the reverse, scores the moves differently and the replay diverges from
that step. Said where the replay is described.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
A program whose output Lean already refuted for the claim is dropped before it is scored (PD5), but the local search's
object went to Lean whatever the set said, so a search could submit a refuted witness again. That object is now looked up
in the same set: a known one is a counted drop, and the best program's output is the witness, submitted only if it reaches
the target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
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