Skip to content

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

Merged
gensokyo-dev merged 12 commits into
mainfrom
cursor/setting-effect-field-01f4
Nov 11, 2026
Merged

gensokyo-dev merged 12 commits into
mainfrom
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 the limit is controlled by a per-call parameter, so update_analysis_settings cannot change it. The separate source field says whether the value came from the request or a default. Artifact reader limits, web-network capture budgets, and an explicit analysis_timeout_ms, max_heap_mb, or command_timeout_ms use parameter, with pending_restart: false.

A caller argument is source: "request" and update_mode: "parameter"; an omitted parameter can instead use source: "default" with the same mode. A runtime override is source: "runtime" and update_mode: "runtime"; a runtime-editable built-in default uses source: "default" and update_mode: "runtime". The changelog and the limit migration name all three modes.

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 incorporates #9884. Numeric-limit discovery distinguishes direct reads from syntax candidates and reports unresolved dynamic keys; its static scan does not prove reachability or complete reader coverage. External Python and generated bridge controls have separate behavioral witnesses.

Validation performed

  • Integrated stacked changes: npm run check:fast, 21 scanner tests, the numeric guard and its focused permission-boundary test passed. The permission test skips on Windows and when run as root.

  • npm run check:fast — passed.

  • npm run test:focused -- tests/evaluation/numericLimitCheck.test.ts — passed (9 tests).

  • Follow-up 57e5925f0d: rejected Windows ChangeTime values no longer claim a pending accepted restart or an effective value. Ten regression cases failed on the prior head; 104 config/projection tests and npm run check:ci:fast pass after the fix. No Windows host was exercised.

  • Follow-up 01e388b0ef: the numeric-limit guard fails on missing or unreadable scan roots and subdirectories. A real permission-boundary test failed on the prior head and passes for unreadable root, unreadable child, and missing root. npm run check:ci:fast passed. Four compiled CLI/MCP settings and limit suites passed 19 tests; the guard permission test is skipped on Windows and when run as root.

Invalid launch-state follow-up

An invalid launch value without a runtime override no longer reports pending_restart: false; the descriptor and SDK-converted schema omit the unproven field. A valid runtime override reports false, and reset restores the invalid-state omission. The existing update_mode semantics remain unchanged.

  • Before the fix, the public stdio MCP acceptance suite had 2 failures and 3 passes: invalid JADX values incorrectly included pending_restart: false.
  • After the fix, all 5 MCP acceptance tests passed, including SDK output-schema validation, invalid-to-runtime override and reset, and an independent invalid native-matching setting.
  • npm run check:ci:fast passed. Real JADX and Ghidra providers were not exercised.

Integration validation (2026-11-11)

Replayed the 11 settings-layer contributions on merged #9884 with their original authors and messages. One separately attributed integration commit preserves the existing syntax/provenance and permission-fixture resolutions. Parent test bounds and source-candidate counts remain intact.

Executed on Node 24.22.1 with two-core CPU affinity: check:fast, docs:check (including 9 consistency tests), 241 configuration/application/projection/WASM tests, 23 registry/guard tests including real unreadable/missing-directory cases, and 26 compiled CLI/MCP tests across settings, artifact reader limits, ASAR admission and JavaScript resource recovery. All passed. SDK-converted settings schemas and invalid launch override/reset were exercised. No Windows host or real analysis provider was exercised.

Automated review completed on af344fe65 with no findings. Actions remain queued, so CI is unverified; integration uses the authorized maintainer bypass. Existing human-owner declarations below are preserved.

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 

@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-11T11:48:03.063654Z af344fe 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
@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".

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

@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".

@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 Resolved

@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: 5d79a3c395

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

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

ℹ️ 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/config/regexMatchingDeadline.ts Resolved
cursor Bot pushed a commit to 2SinceJuly/rea that referenced this pull request Nov 11, 2026
Depends on morluto#9885. Bring the allowlist, tracked-limit rules,
parameter update mode, and restored historical receipts.
cursor Bot pushed a commit to 2SinceJuly/rea that referenced this pull request Nov 11, 2026
Depends on morluto#9885. Bring the allowlist, tracked-limit rules,
parameter update mode, and restored historical receipts.
cursor Bot pushed a commit to gongfpp/rea that referenced this pull request Nov 11, 2026
Depends on morluto#9885. Bring the allowlist, tracked-limit rules,
parameter update mode, and restored historical receipts.

@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: 2622efe5df

ℹ️ 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 docs/design/rea-limit-inventory.md Resolved
Base automatically changed from cursor/rea-limit-inventory-01f4 to main November 11, 2026 11:39
Part of #9881. Add effect immediate or next_process and keep rea_restart_required, restart_required, and restartRequired as compatibility aliases.
cursoragent and others added 11 commits November 11, 2026 11:41
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.
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.
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.
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.
The changelog and the limit migration now name runtime, restart, and parameter. parameter is the mode for a value this call supplied.
A one-shot CLI failure tells the caller to set the launch environment for the next REA process. update_analysis_settings stays on the continuing session. Reused JavaScript workers also keep the limit source that selected them.
Retain existing merge resolutions for update modes, source-scan failures and external-reader fixtures while replaying the settings layer on the merged inventory. Preserve parent provenance, candidate counts and presentation-test resource bounds.

Co-authored-by: gensokyo-dev <[email protected]>
@gensokyo-dev
gensokyo-dev force-pushed the cursor/setting-effect-field-01f4 branch from 5db63b2 to af344fe Compare November 11, 2026 11:44
@gensokyo-dev
gensokyo-dev merged commit 91b11f6 into main Nov 11, 2026
5 of 7 checks passed
@gensokyo-dev
gensokyo-dev deleted the cursor/setting-effect-field-01f4 branch November 11, 2026 11:48
@morluto morluto added the enhancement New feature or request label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants