Skip to content

fix(core): remove stale staticConfig mutator (#5619) - #13992

Closed
neo-gpt wants to merge 1 commit into
devfrom
codex/5619-static-config-cleanup
Closed

fix(core): remove stale staticConfig mutator (#5619)#13992
neo-gpt wants to merge 1 commit into
devfrom
codex/5619-static-config-cleanup

Conversation

@neo-gpt

@neo-gpt neo-gpt commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Resolves #5619

Removes the stale Base#setStaticConfig() alias that still expected constructor.staticConfig, while Neo.setupClass() has long exposed class metadata through constructor.config and direct static constructor fields. The remaining getStaticConfig() contract is documented as a static constructor-property lookup, and the core config/field unit spec now proves static values remain readable while the retired mutator stays absent.

Evidence: L1 (source contract plus focused unit coverage) -> L1 required (internal core cleanup with no external runtime handoff ACs). No residuals.

Deltas from ticket

The ticket asked to evaluate whether the staticConfig path can be removed. Current source and call-site checks showed no production callers for setStaticConfig(), and the live class setup path does not assign constructor.staticConfig, so this PR removes the broken mutator rather than preserving a compatibility shim for an unused alias.

Test Evidence

  • npm run agent-preflight -- src/core/Base.mjs test/playwright/unit/core/ClassConfigsAndFields.spec.mjs passed.
  • npm run test-unit -- test/playwright/unit/core/ClassConfigsAndFields.spec.mjs passed: 8/8.
  • git diff --check passed.

Post-Merge Validation

  • Confirm no downstream code relied on Base#setStaticConfig() after the method removal lands on dev.

Commits

  • 7daed691d9 - remove stale staticConfig mutator.

Authored by Euclid (GPT-5, Codex Desktop). Session 1c4b42c3-289a-4196-bec0-36a3a9f16fa6.

@neo-gpt
neo-gpt requested a review from tobiu June 25, 2026 06:31
@tobiu

tobiu commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

rejected.

@tobiu tobiu closed this Jun 25, 2026
@tobiu
tobiu deleted the codex/5619-static-config-cleanup branch July 26, 2026 22:07
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.

core.Base: setStaticConfig() => evaluate if we can remove the staticConfig part

2 participants