Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
|
CI-fix track: none of the failures came from this PR. IDA native admission, the JavaScript semantic tests, headless Chrome |
|
CI-fix track: this change is already on main via 66536d0 ("preserve Hermes YAML scalar semantics"). It uses one Hermes YAML owner for fresh writes and edits and preserves source scalars and timestamp semantics. After merging current main and resolving the four conflicts, no file differs from main. Main has the identical boundary case (refusing |
|
This PR's behavior is now published on main (8dde637) in Covered scope: Hermes YAML reads and edits now retain string scalar semantics and refuse YAML-coerced non-string values. Main evidence: src/application/HermesConfigurationYaml.test.ts; tests/boundary/filesystem/hermesClientConfiguration.test.ts; tests/acceptance/setup/hermesClientSetup.test.ts. Validation limits: Configuration parsing and setup fixtures only; no external Hermes service behavior is asserted. I checked the current published source and the substantive review threads; no unique behavior or dependency change remains on this PR. Closing as superseded without resolving individual review threads. |
Retain source nodes for unchanged scalar values and string keys when replacing a Hermes registration. Discarding quoted YAML 1.2 keys could make Hermes' C reader reject duplicate boolean keys and switch to the pure reader, changing the interpretation of unrelated settings. Use linear mapping lookup, quote newly created YAML 1.2 strings for YAML 1.1 compatibility, and preserve direct numeric edit formatting. Extend actual CLI coverage for both existing reader-selection directions; verify strings, exact unrelated numeric/timestamp values, backups and idempotence with the actual Hermes Python loader. Follow-up to #3102 and main's independent Hermes scalar fix. Co-authored-by: Kaoru0822 <[email protected]> Co-authored-by: gensokyo-dev <[email protected]>
Summary
Updating a Hermes registration could turn a valid string environment setting into a boolean. For example,
REA_MCP_OUTPUT_SCHEMA_PROFILE: "off"became unquotedoff; Hermes readfalse, while REA setup reportedreadyand doctor reportedaligned. Keep the same value and type through setup by using Hermes's YAML rules for both parsing and writing.No separate issue: this was reproduced through the public CLI while checking configuration round trips.
Problem and expected behavior
Seed a Hermes
config.yamlwith a stale REA command and the quoted environment value above, then runrea setup --client hermes --skill=false --yes --json. On the base revision, the written value becomes a boolean under Hermes's YAML 1.1 loader. Repeating setup does not repair it.Expected: preserve string environment values, unrelated settings and the original backup; reject an already non-string environment value before writing.
Change and scope
HermesConfigurationYamlown the default YAML 1.1 policy for existing and new files. Honor explicit version directives; include the standard timestamp tag because Hermes also resolves dates under YAML 1.2.This is an ordinary configuration-correctness fix within existing contribution scope; a new capability scope decision is not applicable.
Contract and boundary impact
HermesConfigurationYaml, used by configuration parsing, editing and fresh serialization.Expected effects:
The changed behavior reads and writes the selected Hermes configuration through the existing setup workflow.
Evidence and regression coverage
off; already typed boolean/date/time environment values are refused without changing the file or creating a backup.b3c5672c; existing checks passed.safe_load, using isolated ruamel.yaml 0.18.16, reads the pre-fix CLI output as booleanfalseand the fixed output as stringoff. PyYAML 6.0.3 agrees for this default-schema case.Validation performed
npm run check: passed, including typecheck, lint, formatting, knip, metadata and architecture guards.npm run verify:package: passed, including isolated installation/update, CLI/setup/uninstall and MCP workflows. The first attempt hit the host proxy for a loopback registry fixture; rerunning with loopback-onlyNO_PROXY/npmnoproxyexclusions passed without code or test changes.npm pack --dry-run: passed.git diff --check: passed.Compatibility, safety, and release
No new dependency, release metadata change or target-execution capability. Previously malformed non-string environment values need to be quoted or otherwise corrected, with the existing source-specific diagnostic. Verification used isolated synthetic homes; no personal client configuration was changed. Linux CLI and the upstream Python loader were exercised; native client sessions on Windows/macOS remain unverified.
Before merge