Skip to content

perf: streamline Forge across all depths - #8

Merged
zagrosi-code merged 1 commit into
mainfrom
perf/forge-optimized
Sep 15, 2026
Merged

zagrosi-code merged 1 commit into
mainfrom
perf/forge-optimized

Conversation

@zagrosi-code

Copy link
Copy Markdown
Owner

Reduce repeated process startup and duplicated planning context across all depths. Add canonical compact plans and proactive code cleanup with regression checks; split the monolithic helper into a verified, lazy-loaded runtime while preserving detached integrity checks.

Validation: 486 tests passed, one skipped; nine release checks and strict example gates passed. Independent review found no remaining material issues. Local planning postflight benchmarks are 4.43–4.45× faster across lean, standard and deep modes; measurements and source hashes are in examples/evals/performance.json.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-15T12:52:26.458565Z b56a6f4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@zagrosi-code
zagrosi-code merged commit a9fe099 into main Sep 15, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b56a6f4b2f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +74 to +75
candidate = (planning_dir / raw_source).resolve()
if candidate == (path.resolve() if path else None) or candidate.is_relative_to((planning_dir / "sections").resolve()):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep compact sources inside the planning directory

When compact metadata uses a traversal such as source: ../other.md, resolving the candidate without checking containment allows strict artifact gates to accept an unrelated external Markdown file as the authoritative spec. context-brief and implementation-packet then embed that file's contents, so a typo or untrusted plan can drive implementation from the wrong requirements and disclose unrelated Markdown; reject candidates whose resolved path is outside planning_dir.

Useful? React with 👍 / 👎.

Comment on lines +279 to +282
compact = compact_plan_descriptor(planning_dir)
if compact and not compact["errors"]:
paths = planning_artifacts(planning_dir)
state.update({name: paths.get(name) for name in ("plan", "research", "tdd", "integration_notes", "review")})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recognize embedded reviews during compact-plan resume

For a multi-section compact plan, the descriptor contains a Review heading before the section index or all section files necessarily exist, but compact["errors"] remains nonempty until the section manifest is complete. This condition therefore leaves state["review"] unset, causing both plan-setup and status to direct the user to review the plan again instead of creating or finishing the sections, potentially producing a duplicate physical review that the compact contract is meant to avoid.

Useful? React with 👍 / 👎.

@zagrosi-code
zagrosi-code deleted the perf/forge-optimized branch September 15, 2026 14:56
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