Repository navigation
refactor: prune internal seams and preserve configuration ownership - #10430
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8930dd8c31
ℹ️ 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".
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The reviewed changes appear safe to merge; no new blocking issue was found. SummaryThis PR removes internal exports and retired experiments, shares artifact-error helpers, and preserves YAML configuration ownership.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Read YAML source] --> B[Build requested registration]
B --> C{Would a retained merge restore an omitted setting?}
C -- Yes --> D[Refuse edit and keep file unchanged]
C -- No --> E[Keep source keys, aliases, and inherited settings]
E --> F[Return edited YAML]
Reviews (8) · Last reviewed commit: "fix(setup): refuse removing an overridde..." · Reviewed by Greptile |
Resolve javascriptSemanticAsyncEffects imports: isUnmodifiedGlobalReference now lives in javascriptSemanticGlobalReference (this branch), while main's createGlobalReferenceReader and semanticOpaqueGlobalMayHaveChanged keep their owners.
…refresh - Reuse an unchanged YAML collection only while every alias in it still resolves after the edit; otherwise rebuild it so the alias becomes its value. A sibling anchor replaced or moved in the same refresh no longer leaves an unresolved alias in Hermes or Goose output. - Keep a connection selector whose existing value already chooses stdio (for example an inherited Hermes transport: stdio) instead of superseding it; remote selectors are still replaced. Explicit stdio selectors are therefore no longer rewritten (Kimi expectation updated). - When the whole Hermes registration is inherited through a merge, override it with that merge and write only the changed fields.
A key written as an alias to a string scalar (for example *field with field: &field env) was treated as a source-only key, so any change to its value was refused in Hermes and Goose. Resolve such keys to their string, keep the aliased spelling while its anchor survives the edit, and write the plain key when the same edit rebuilds the anchor.
Both cancellation tests awaited a bare started promise and released their gates only on success, so a missed boundary waited for the outer deadline and could leave cleanup parked. Use awaitAcknowledgement and release and join the cleanup in finally.
Replace the pre-edit alias survival guess, which expanded aliases to sibling anchors that survive unchanged, with an exact repair: record what each alias in the replaced value resolves to, write the edit, then replace only aliases left without a preceding anchor by that value. - Keep an aliased key's source position, so its anchor stays ahead of later aliases. - Treat an aliased key as its string only when no other key in the map resolves to the same string; an ambiguous one stays guarded. - Override an inherited Hermes registration only when the requested entry keeps every inherited field, so an explicit replacement can drop remote selectors.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4929a94ee
ℹ️ 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".
…ments An alias whose own anchor was removed could resolve to an earlier anchor with the same name and silently change value. Record the node each alias resolved to and repair any alias that no longer resolves to that node. Carry the alias's comments and spacing onto the repaired value.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8d01c52f5
ℹ️ 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".
The merge-retention check skipped keys the mapping also overrides, so dropping such a key (for example a remote url during an explicit stdio replacement) let the retained merge restore it. Check removal before skipping overridden keys, so the edit is refused with the existing message instead of producing a registration that cannot be applied.
Summary
Remove internal exports, wrappers, retired experiment code and tests that kept those paths alive. Consumers now use the owning contracts and shared artifact-failure projections. Keep supported Evidence, client registrations, provider bridges and target formats.
Behavior and scope
Evidence and validation
main:npm run test:changedpassed 625 files / 14,618 tests, with 12 platform or filesystem skips;npm run test:pythonpassed 151 tests;npm run check:fast,npm run docs:check,npm run knip, andnpm run verify:architecture-guardspassed.verify:hopper:fat,verify:hopper:fat64, andverify:hopper:callerspassed; FAT64 rejected five malformed fixtures and verified prepared-image cleanup. Real Ghidra and Hopper deadline workflows were not run.main:npm run format:check,npm run verify:test-discovery, andgit diff --checkpassed. Additional validation is in progress.YAML's JavaScript projection can still collapse distinct source keys; preservation and ambiguity checks cover the edited paths, but retaining full native key identity across all consumers remains open. Linux-only pwntools and Windows-specific paths were not verified on this Mac. Automated validation does not establish human review.
Author readiness
Human owner: