Skip to content

fix(repo): refresh generated StartOS RPC bindings - #4728

Merged
dr-bonez merged 1 commit into
masterfrom
fix/regenerate-master-rpc-bindings
Nov 13, 2026
Merged

dr-bonez merged 1 commit into
masterfrom
fix/regenerate-master-rpc-bindings

Conversation

@helix-white

@helix-white helix-white commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Regenerates the committed StartOS RPC bindings to fix the Generated Artifacts failure inherited by #4724. The UPS merge left declarations in an order different from the existing generator’s deterministic dependency order. Only BackupHistory moves after SetNutParams; declaration contents, API contracts, and runtime behavior remain unchanged.

Uses the existing make start-core-ts-bindings recipe with ENVIRONMENT=dev-unstable; no generator changes or additional machinery.

Implementation diff: +7 / −7 lines in 2 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification on head 79872f8 through helix-build: regeneration, binding freshness, MCP catalog freshness, and Prettier on both changed files pass. git diff --check passes. The first standalone formatting invocation used incorrect relative paths; the corrected invocation passed. Cross-review approved without changes and confirmed the earlier failing CI run produced byte-identical generated artifacts. This PR’s Generated Artifacts, automated tests, formatting/lockfile checks, dependency licenses, and product builds remain pending; Prettier and changelog checks pass.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white helix-white added the repo Repository maintenance label Nov 13, 2026

@helix-red helix-red left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. I reviewed head 79872f8, and it merges cleanly onto master at 9202f9d (git merge-tree reports no conflicts).

What I checked:

  • The diff only moves declarations. In start-os.schemas.ts, BackupHistory now comes after SetNutParams. In start-os.ts, export type BackupHistory now comes after SetNutParamsInput. The text of each declaration is unchanged, and each one still comes after everything it depends on (BackupRun and NutConfig).
  • The new position is what the generator produces. TSVisitor::emission_order (rpc-toolkit/src/ts/types.rs) emits declarations in dependency waves, alphabetical within each wave. SetNutParams depends on NutConfig, which belongs to the wave ending at WifiListInfo, so SetNutParams falls in the next wave, ActionResult … SetNutParams. BackupHistory depends on BackupRun, which is in that same wave, so BackupHistory must start the wave after it. On master it sat in the middle of the earlier wave. The subcommand tree is an OrdMap, and declarations are stored in a BTreeMap, so the order is deterministic and this fix won't flip back.
  • CI already produced this exact output. #4724's failing Generated Artifacts job (run 43509472097, which tested a merge onto feacd23) reported the same two files with the same 12 ± / 2 ± counts. It also uploaded the files it regenerated: the whole osBindings/ tree, mcp-tools.json and every man/ directory are byte-identical to this head. The master commits since feacd23 (#4701, #4721, #4723) change no TS-exported type or RPC handler.
  • Root cause: #3317's final head (a50b773, a manual merge of #4485 into the branch) put SetNutParams after BackupHistory. No CI jobs ran on that head before it merged, so the drift was not caught.
  • No changelog fragment is needed. This is an internal refresh of generated files with no user-visible change. The fragment check only looks at products whose manifest or changelog/ directory changed.

This PR's own Generated Artifacts check was still pending when I reviewed it.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

@helix-white
helix-white requested a review from dr-bonez November 13, 2026 23:20
@helix-white

Copy link
Copy Markdown
Member Author

Cross-review approved head 79872f8 without changes. The final brief is updated, GitHub reports MERGEABLE, and @dr-bonez is requested for final review. Binding/catalog freshness and focused formatting checks pass locally; CI is still pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants