Skip to content

feat(settings)!: report update mode and pending restart - #9885

Open
morluto wants to merge 9 commits into
cursor/rea-limit-inventory-01f4from
cursor/setting-effect-field-01f4
Open

morluto wants to merge 9 commits into
cursor/rea-limit-inventory-01f4from
cursor/setting-effect-field-01f4

Conversation

@morluto

@morluto morluto commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Breaking change

update_analysis_settings, inspect_analysis_settings, and limit errors no longer include effect, rea_restart_required, restart_required, or restartRequired. There is no compatibility alias.

Read update_mode and pending_restart. runtime means the setter can change the active value. restart means this process keeps the value it started with. parameter means this call supplied the value, so update_analysis_settings cannot change it. Artifact reader limits and web-network capture budgets use parameter, with pending_restart: false.

javascript.analysis_timeout_ms, javascript.max_heap_mb, and wasm.command_timeout_ms keep the selection source. A caller argument is source: "request" and update_mode: "parameter". A runtime override is source: "runtime" and update_mode: "runtime". The built-in default is source: "default" and update_mode: "runtime".

The 2026-11-09 Ghidra verification receipts keep the fields they recorded. The legacy-name scan does not read docs.

Summary

Part of #9881. This branch merges #9884. Numeric-limit discovery uses the TypeScript syntax tree: comments and array literals are not producers, and a later helper argument is.

Validation performed

  • npm run check:fast — passed.
  • npm run test:local -- analysis error projection, WABT failures, and the WASM service — passed (161 tests).
  • npm run test:local -- src/wasm/WabtArtifactProvider.test.ts — passed (53 tests), including a request-selected command deadline with update_mode: "parameter".
  • npm run test:focused -- tests/boundary/mcp/javascriptAnalysisResources.test.ts — passed (3 tests). A caller analysis_timeout_ms reports source: "request" and update_mode: "parameter".

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.
Open in Web Open in Cursor 

Part of #9881. Add effect immediate or next_process and keep rea_restart_required, restart_required, and restartRequired as compatibility aliases.
@morluto
morluto added this pull request to stack #9886 November 10, 2026 22:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T23:27:27.963480Z 70f91ac 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.

@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: f4f927c94e

ℹ️ 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 src/config/windowsChangeTimeSettle.ts Resolved
Callers read update_mode to see whether update_analysis_settings can change a limit, and pending_restart only when a configured value is not active in this process.
@cursor cursor Bot changed the title feat(settings): report when a limit change takes effect feat(settings)!: report update mode and pending restart Nov 10, 2026

@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: f2b7c3bb92

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Invalid ChangeTime settings now carry update_mode and pending_restart through the configuration error and its projection, including startup parsing. Runtime recoveries name update_analysis_settings instead of telling the caller to restart REA.
cursor Bot pushed a commit to 2SinceJuly/rea that referenced this pull request Nov 10, 2026
Depends on morluto#9885. That branch replaces rea_restart_required with
update_mode and pending_restart and forbids the legacy fields.
cursor Bot pushed a commit to 2SinceJuly/rea that referenced this pull request Nov 10, 2026
Depends on morluto#9885. The $MFT limit uses update_mode and pending_restart,
and the setting declares updateMode so the numeric-limit check accepts it.
cursor Bot pushed a commit to 2SinceJuly/rea that referenced this pull request Nov 10, 2026
Depends on morluto#9885. That branch replaces rea_restart_required with
update_mode and pending_restart and forbids the legacy fields.
cursor Bot pushed a commit to 2SinceJuly/rea that referenced this pull request Nov 10, 2026
Depends on morluto#9885. The hive limit uses update_mode and pending_restart,
and the setting declares updateMode so the numeric-limit check accepts it.
cursor Bot pushed a commit to gongfpp/rea that referenced this pull request Nov 10, 2026
Depends on morluto#9885. That branch replaces rea_restart_required with
update_mode and pending_restart and forbids the legacy fields.
cursor Bot pushed a commit to gongfpp/rea that referenced this pull request Nov 10, 2026
Omit a path or URL literal when its serialized record, including
provenance, does not fit the remaining worker result budget. When the
count ceiling is already the setting maximum, report that ceiling as
maximal. Depends on morluto#9885: the limit uses update_mode and pending_restart.

@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: 58b4b17fd3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/artifacts/ArtifactReaderLimits.ts Resolved
Comment thread scripts/verify/rea-numeric-limits.mjs Resolved
artifact_limits and web-network budgets report update_mode parameter because update_analysis_settings cannot change them. The legacy-name scan no longer reads docs, and the 2026-11-09 Ghidra receipts are restored to the fields they recorded.

@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: bb598a23cf

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

analysis_timeout_ms, max_heap_mb, and command_timeout_ms keep the source chosen by the caller, the runtime override, or the built-in default. A request value reports update_mode parameter because update_analysis_settings cannot change that call.

@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: 70f91ac602

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread CHANGELOG.md
@@ -1,5 +1,7 @@
# Changelog

The next release changes analysis-setting output (#9885). `update_analysis_settings`, `inspect_analysis_settings`, and limit errors no longer include `rea_restart_required`, `restart_required`, `restartRequired`, or `effect`. Read `update_mode` (`runtime` or `restart`) and `pending_restart`. There is no compatibility alias. Release Please should copy this migration into that release's breaking-changes section.

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 Include parameter in the documented update modes

The breaking-change migration says update_mode is only runtime or restart, but limit failures for artifact/web budgets and explicit JavaScript or WASM arguments now emit parameter (for example, ArtifactReaderLimits.ts and analysisSettingLimit). Clients implementing the changelog's stated enum can therefore reject valid error payloads or recommend the wrong recovery; document all three values in the release migration.

AGENTS.md reference: AGENTS.md:L99-L103

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

2 participants