Repository navigation
fix(solver): harden portfolio scouts, team handoffs, usage accounting, and plan help - #23
Merged
Merged
Conversation
…, and plan help - Isolate portfolio scout worktrees and private runtime profiles outside /tmp and the shared solver profile, serialize per-repository git worktree add/remove, and prevent web_provider config.toml writes from mutating frozen profiles. - Give portfolio scouts their concrete Phase 1 budget and a soft wrap-up notice, accept valid PORTFOLIO.json reports saved before abort, and classify missing/invalid deadline reports as math_portfolio_scout_timed_out. - Direct AgentResearchTeam Lead milestone notices to team coordination instead of declaration-submission.json, consume empty Lead helper nominations without a repair loop, and require non-empty compiled helpers in solo guidance. - Suppress already-accounted cumulative token replays on warm thread/resume before turnStarted while keeping alerts for genuinely unscoped tokens. - Materialize Lead plan-validate/plan-apply CLI guidance in .scratch/theoremos-help.md and remind Cooperative Leads to omit progressReview on initial plans. - Forward portfolio, soft-slice, compaction-circuit-breaker, and team-transport-fallback progress events in apps/web.
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
Fixes container runtime and orchestration issues discovered during real-math Docker benchmarks (
entropy-q42DAgentResearchTeam+ 3DCooperativeResearch) after PR #18:/tmpintoportfolio-worktrees/withisolatedWorkspaceParent, allocate private per-scout runtime profiles (portfolio-profiles/) without mutating the shared solver profile or copying credential stores, serialize per-repositorygit worktree add/remove, and snapshot any non-isolatedconfig.tomlintoprofile/runtime/soweb_providernever mutates frozen profiles (math_harness_identity_changed).PORTFOLIO.jsonguidance in scout instructions, send a soft wrap-upsession.notifybefore the deadline, accept valid reports saved before abort, and emitmath_portfolio_scout_timed_outwhen missing/invalid at deadline.AgentResearchTeamLead soft-slice notices to team coordination instead of.scratch/declaration-submission.json, consume empty Lead helper requests without trapping the Lead in a repair loop, and require non-empty compiled helpers in solo guidance.thread/tokenUsage/updatedreplays beforeturnStarted()onthread/resumewhile retainingworker_usage_unscopedalerts for genuinely unaccounted tokens.plan-validate/plan-applyCLI guidance in.scratch/theoremos-help.md, remind Cooperative Leads to omitprogressReviewon initial plans, and forward all new portfolio/soft-slice/compaction/team-fallback events inapps/web.Verification
bun run build),bun run typecheck,bun run typecheck:web, andgit diff --checkpassed.THEOREMOS_TEST_REQUIRE_LEAN=1): 17 suites passed (386 passed | 4 skipped | 0 failed), plus post-rebase web/solver sanity check (8/8suites,123 passed).2d-team-portfolio-v3&3d-auto-coop-portfolio-v3): 6/6 scouts cold-started cleanly, 2/3 2D scouts delivered validPORTFOLIO.jsonreports, 2D Team Lead spawned 2 teammates and compiled 3 foundation lemmas with 0 empty-declaration loops, 3D Cooperative Lead ranmath plan-validateto self-correct a draft schema issue and published with 0 rejections, 0worker_usage_unscoped, and 0 residual containers.