Repository navigation
Redesign multi-agent proof harness for stability, helper reuse, and protocol convergence - #18
Merged
Merged
Conversation
…rotocol convergence Implements the P0-P3 harness redesign derived from the Erdos #677 and 3D exponential entropy trajectory audits: - P0 (Stability & hygiene): default file output delivery for formalization workers and permit top-level import Mathlib; deduplicate Web observation sources by SHA-256 blob reference and throttle/cap running reasoning previews; add a host-disconnect watchdog for containerized workers; add a 180s minimum advisory protection window and preemption-mismatch cooldown. - P1 (Helper reuse & bounded slices): land standalone Lean-kernel-verified helpers incrementally in both AgentResearchTeam (submit_helpers) and CooperativeResearch (helpers deliveries) while preserving frozen declarations and the 3-axiom whitelist; enforce soft time/compaction milestone slices; compact context into pointer indexes and retain warm threads across same-route tasks. - P2 (Portfolio exploration & route control): add opt-in Phase 1 heterogeneous route scouting (structural-symmetry, explicit-constructive, falsification-obstruction) with a route-selection gate and durable negative knowledge; add atomic route retirement (retire_route / retireRoutes) and a 15-command Lead planning guardrail. - P3 (Protocol convergence): flatten theoremos_team wire schemas above Codex CLI's 16-branch oneOf drop threshold while keeping host-side strict Zod validation; add 0-turn native-agent-control startup fallback to host-tools and bounded route_summary; add atomic plan-validate/plan-apply commands and isolate malformed Lead drafts from shared deliveries while keeping M5 identity frozen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the P0–P3 multi-agent proof harness redesign motivated by trajectory audits of Erdős #677 and the 3D exponential conditional entropy problem:
outputDelivery: 'file'for formalization workers and permit top-levelimport Mathlibin solver proof sources.sha256) Web observation source deduplication (apps/web/observationSources.ts) and throttled/capped running reasoning previews (apps/web/agentActions.ts).apps/web/workerDisconnect.ts) for graceful abort, checkpoint flush, and exit on broken host streams.src/solver/incrementalHelpers.ts) wired into bothAgentResearchTeam(submit_helpers) andCooperativeResearch(helpersdeliveries), preserving frozen declarations, 3-axiom whitelist, private markers, and isolated cache keys.src/solver/softSlice.ts).src/solver/contextCompiler.ts) and same-route warm thread retention.structural-symmetry,explicit-constructive,falsification-obstruction), route selection gate, durable negative knowledge, and Phase 2 foundation lemma seeding (src/solver/portfolioExploration.ts).retire_route/retireRoutesviasrc/solver/cooperationRoutes.ts) and a 15-command Lead planning guardrail.theoremos_teamwire schemas above Codex CLI's 16-branchoneOfdrop limit while keeping strict host-side Zod validation (src/solver/agentTeamTool.ts).native-agent-controlstartup failure fallback tohost-tools(team_transport_fallback) and compact<8 KiBroute_summaryatomic operation.plan-validate/plan-applyCLI and workspace helpers (src/solver/planTool.ts) plus private Lead feedback for malformed drafts without polluting shared deliveries;M5frozen identity remains untouched.Verification
bun run build --state-root /tmp/theoremos-host-build-rebased: 4 bundles built.bun run typecheckandbun run typecheck:web: both passed.codex-cli 0.171.0loopback):tests/webModuleIdentity.test.ts: 11/11 files passed (223 passed, 7 opt-in Docker skipped, 0 failed).tests/solver.test.ts+tests/agentTeamSourceRecovery.test.ts: 2/2 files passed (489/489 passed, 0 failed).