Plan distinct proof directions before parallel routes, and set route parallelism in the app

Open
#358 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
playwright, python, react, typescript

Research direction

Read the Lean search worker, model adapters, React/TypeScript automation settings, and Playwright tests; check #356 for the verified ledger and #329 for the existing command-line settings. Start by tracing how route proposals, signed policy settings, and claim activity are handled. Add recorded-reply coverage for planning distinct directions and summarizing a round, plus browser coverage for the settings; done means the acceptance checks pass, defaults stay unchanged, and English and Chinese strings and guides are updated.

Written by the indexing model from the issue text.

Description

area:lean difficulty:d4 layer:ai priority:p2 status:triage type:feature

Task difficulty and Agent fit

  • D4 · 13/15. Scope 3, uncertainty 3, impact 3, verification 2, dependencies 2. Add a planning round that proposes distinct proof directions for parallel routes, and set route parallelism in the app instead of command-line flags.
  • Recommended configuration. Codex / GPT-6.2 Astra / high, 52 and $2.37 per benchmark task. Floor 52 in the Artificial Analysis Coding Agent Index v2.1. Trellin snapshot checked 2026-11-22.
  • Required skills and verification. Python workflows, the Lean search worker, model adapters, React/TypeScript and Playwright. Verify with recorded fixture model replies and the in-repository Lean lane.
  • Scored baseline. 4279015 on main.

What happens

Lean search can already run two or three independently checked routes under a signed policy, but the routes are chosen by the same proposal loop, and parallelism is set with --lean-route-parallelism and --lean-route-stall-limit on the command line. Nothing plans which directions are worth trying before routes start, and nothing summarizes the round across routes.

Published multi-agent proof systems separate a coordinator that does not prove anything (it plans each round, assigns directions and keeps the records) from several provers that explore different directions in parallel.

Expected

  • A planning step before parallel routes: given the frozen statement, the approved basis and the ledger (verified lemmas and tried routes), a model proposes up to three distinct directions with a one-line method each. For each direction, record the research question or obligation it advances, its known prerequisites and which claims remain candidate assumptions. Each parallel route starts from one direction, and the plan is recorded with the attempt.
  • Give uncertain or costly candidate routes a bounded counterexample check before allocating substantial formalization work. Assign a distinct attempt to look for a concrete failing case under the stated premises and link it to the exact candidate or obligation. Reuse available deterministic checks first. A bounded search without a witness and an unverified objection retain candidate status. #365 owns execution and verification of the planned handoff.
  • Diagnose repeat stalls at the obligation that failed and the upstream reduction that created it. Within the signed budget, keep a route with a demonstrated local repair, propose a replacement decomposition when several failures share the same upstream cause, or stop with a recorded reason. Preserve independent checked lemmas. #368 keeps provider and malformed-output failures out of mathematical stall counts, and #365 handles retry and verification.
  • After each round, record a short summary of what was checked, what failed, which dependencies were unlocked and why the next plan changed. Read the existing verified and tried-route ledger (#356) before the next planning round so the same refuted direction does not re-enter under unchanged inputs.
  • Route parallelism and the stall limit are set in the app's automation settings, signed as today, and off by default. The automation budget applies (it stays a hook that is not enabled by default).

Acceptance

  • A worker test with recorded replies runs a planning step and two routes that start from different directions, and records the plan and the round summary.
  • With recorded replies, the plan assigns a bounded counterexample attempt before proving an expensive candidate. One route is refuted on its exact obligation and stays out of the next plan under the same versions. A mere timeout or unverified objection does not mark the route refuted. An unrelated route continues and the main goal remains open.
  • A fixture with two unresolved obligations sharing the same faulty reduction produces one upstream replan and keeps an independently verified lemma reusable. A fixture with only an adapter fault leaves the proof plan unchanged.
  • A browser test sets parallelism and the stall limit in the app; the signed policy matches what the command-line flags produce today.
  • Default behaviour is unchanged when automation is off; strings in English and Chinese; the Lean search guide describes the planning step in both languages.

Decisions and contracts

Long-running work stays in the queue (D2); verifiers stay reproducible (B7). Builds on #356 (verified ledger). Removes one remaining command-line-only setting (#329). Ask before any migration or a change to the signed policy format.

Reference

P vs NP research roles and counterexample triage.

Dominant language
Python
Stars
2
Forks
0
Avg merge
56m
Merged PRs (30d)
190

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAFuDarren/Trellin

All issues in SAFuDarren/Trellin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.