Skip to content

fix: restore configurable depth and bootstrap missing review baselines directly - #120

Merged
ivanmilevtues merged 4 commits into
mainfrom
fix/configurable-depth-review-bootstrap
Sep 8, 2026
Merged

fix: restore configurable depth and bootstrap missing review baselines directly#120
ivanmilevtues merged 4 commits into
mainfrom
fix/configurable-depth-review-bootstrap

Conversation

@ivanmilevtues

@ivanmilevtues ivanmilevtues commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

Requested by @ivanmilevtues: restore configurable maximum hierarchy depth as depth_cap, simplify review-only cold starts, and apply the final no-alias product decision throughout the action and engine CLI adapter.

Previous behavior

Main exposes no analysis-depth input. Full analysis inherits metadata.depth_cap, falls back to legacy generated metadata.depth_level, then defaults to 2. A missing baseline still causes an incremental attempt on empty state before full analysis.

Final behavior and naming

  • The sole workflow input is depth_cap (default 2). It means the maximum hierarchy depth allowed, not a target depth.
  • The helper and engine invocation accept/use only --depth-cap. Removed the previous --depth-level boundary spelling; there is no compatibility alias. Local preview also uses --depth-cap.
  • analysis.json metadata.depth_cap records the configured ceiling. metadata.depth_level is output only: the depth actually generated/reached. A shallower result must not lower the configured cap or invalidate valid state.
  • Configuration controls all fresh/full fallback analyses and artifact identity. No generated-depth metadata inheritance.
  • Reuse a compatible published merge-base graph, or incrementally catch up compatible committed state at the merge base. If neither exists, run full base analysis directly.
  • Seed head from compatible prior PR state with matching base-graph lineage, otherwise from the base. Run incremental head analysis, retaining full fallback when Core requests it.
  • Publish reusable base/head artifacts, then render the whole merge-base-to-head PR diff. No sync workflow or committed baseline is required.
with:
  # Existing credentials/provider settings remain unchanged.
  depth_cap: 4

Verification of final no-alias changes

  • python3 -m unittest discover -s tests: 163 tests, 156 passed, 7 engine-dependent skips.
  • Added rejection test for old helper input and assertion that outgoing engine commands contain --depth-cap, never --depth-level.
  • Existing cold-start, configured-cap/fallback, lineage and artifact tests pass. Protected tests unchanged.
  • Black, shell syntax and git diff --check pass.

Coordinated PRs and RELEASE BLOCKER

Release order: action.yml and supported-providers.json now pin Core 0.14.1, as requested. Publish Core 0.14.1 before releasing the action. Provider-table drift tests passed against the local 0.14.1 Core build (7 tests); action input tests passed (12 tests).

  • Core #578: sole --depth-cap CLI, configured Python APIs/default renamed; generated depth_level stays output-only.
  • Wrapper #102: sole depth-cap CLI / depthCap RPC / depth_cap configuration, no aliases, application protocol v4. Requires new Core dependency and lockfile after release.
  • Evals #26: configuration/engine calls migrated on latest main; generated result metadata and historical artifacts preserved. Requires compatible Core.

Historical eShop integration evidence

The earlier implementation (before removing the final Core CLI boundary spelling) passed a real review-only cold start. This is not verification of the final breaking CLI migration against released Core.

Downloaded base and head analysis.json files both contain metadata.depth_cap: 3 and metadata.depth_level: 3. Logs showed full merge-base generation followed by incremental head analysis, artifact uploads and one changed component. The default cap is unchanged by the no-alias naming decision.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 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-08T18:22:47.991252Z df9286f New commits
ℹ️ 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.

@codeboarding-review

codeboarding-review Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

CodeBoarding review

Status: 0 changed components

See the full change in CodeBoarding.

graph LR
    n_GitHub_Action_Automation_Scripts["GitHub Action Automation Scripts"]
    classDef added fill:#1f883d,stroke:#0b5d23,color:#ffffff;
    classDef modified fill:#bf8700,stroke:#7d4e00,color:#ffffff;
    classDef deleted fill:#cf222e,stroke:#82071e,color:#ffffff,stroke-dasharray:5 3;
Loading

download artifacts · run 34250359332

Copy link
Copy Markdown
Member Author

Integration setup for @ivanmilevtues is ready:

Action PR CI: lint, unit tests, and pinned-engine compatibility checks passed. Live eShop analysis results are pending.

@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: 8d35275b01

ℹ️ 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 thread scripts/action/analyze.sh Outdated

@Svilen-Stefanov Svilen-Stefanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@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: 9bde03542d

ℹ️ 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".

str(output_dir),
"--depth-level",
args.depth_level,
"--depth-cap",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep the adapter compatible with the pinned Core release

Every full-analysis path now invokes Core with --depth-cap, but action.yml:356-360 still installs CodeBoarding 0.14.0, and the added release-blocker note in README.md:334-338 explicitly confirms that this version does not support the flag. Consequently, cold review baselines, missing or incompatible sync baselines, force_full, and incremental fallbacks all exit before producing an analysis. Continue translating the public depth_cap input to 0.14.0's supported --depth-level flag, or bump the engine pin and provider table to a compatible release.

AGENTS.md reference: AGENTS.md:L12-L16

Useful? React with 👍 / 👎.

@ivanmilevtues
ivanmilevtues merged commit b497396 into main Sep 8, 2026
5 of 6 checks passed
@ivanmilevtues
ivanmilevtues deleted the fix/configurable-depth-review-bootstrap branch September 8, 2026 18:39
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.

3 participants