Skip to content

rename(cli): make evalid the primary CLI name, keep xflow as compatibility alias - #225

Merged
surlymochan merged 1 commit into
mainfrom
rename-cli-evalid
Nov 22, 2026
Merged

surlymochan merged 1 commit into
mainfrom
rename-cli-evalid

Conversation

@surlymochan

Copy link
Copy Markdown
Owner

Summary

Make evalid the primary CLI command name. xflow remains available as a compatibility alias that resolves to the same entry point. The npm package name (@surlymochan/evalid) is unchanged.

What changed

  • Entry point: bin/xflow.js renamed to bin/evalid.js (content preserved). New bin/xflow.js is a 233-byte shim: import './evalid.js'; — both names execute the identical CLI (verified: byte-identical --help output).
  • package.json / package-lock.json: bin is now { "evalid": "bin/evalid.js", "xflow": "bin/xflow.js" }; description and the start / doctor / workflow:* / atom:list scripts point at bin/evalid.js. npm pack ships both files.
  • User-facing strings: help banner (evalid — unified workflow CLI, with one line noting the legacy alias), all usage lines, guide/quickstart/doctor/evaluate/demo/coach output text, evalid: error prefixes, and the audit / trend / langsmith verify render headers in src/ now use evalid.
  • Docs: README (incl. the Commands section, which now documents the alias), CONTRIBUTING, and the current-user guides under docs/ use evalid in command examples. Comparison/benchmark docs had command examples updated; product-positioning prose there was left as-is.
  • CI: .github/workflows/ci.yml smoke commands use evalid, plus one added xflow guide step that exercises the alias.
  • scripts/demo-i6d-gate.sh: entry path updated to bin/evalid.js.
  • Consistency fixes required by the rename:
    • doctor's package.bin check now asserts the dual-bin mapping.
    • src/core/competitive-score.js: evidence paths point at bin/evalid.js and documentation patterns expect evalid commands (score still reports 100 / ok: true); the check against the historical adoption record still expects the original xflow wording.
    • Two validators were widened to accept both names so old and new records both validate: the adoption-record command check (evalid|xflow) and the tooling-matrix public-ladder objective check.
    • Generated-file defaults now use the new name: # evalid Goal title for generated GOAL.md (parser keys on the ## Goal section, unaffected) and evalid-change as the default spec scaffold slug.
  • Tests: assertions on bin names / help / docs updated; test/package-entry.test.js gains two tests — both bins exist and the xflow bin delegates to the same entry, and both bins print identical help that leads with evalid and mentions the alias.

What deliberately did NOT change (compatibility strategy)

  • State directories .xflow/ and .as-xflow/ — existing user state keeps working untouched.
  • XFLOW_* environment variables, internal function/module identifiers, and data keys (xflow_edges, xflow_goal).
  • The bundled xflow/ skill directory, skill names (xflow:*), and the installed host-skill name — the skill surface keeps its original name, so the doctor skill checks and skill:sync / skill:diff scripts are unchanged.
  • CHANGELOG.md and RELEASE_NOTES.md history, docs/adoption/ records, docs/evidence/, docs/fixtures/, and specs/ — historical records keep the name that was current when they were written (two test expectations against RELEASE_NOTES / the adoption record were intentionally kept on the xflow wording).
  • bench/ code and HANDOFF.md / AHA.md — they still reference bin/xflow.js, which keeps working through the shim.
  • action.yml has no CLI command references (the Action runs action/verify-proof.mjs); unaffected.

Ambiguous items left for a maintainer ruling

  1. Compare/score arm identifiers: the bench/compare arm is still named xflow (xflow, xflow:goal, xflow:yolo, xflow:corps, xflow:plan, winner: 'xflow'). Renaming would invalidate stored comparison artifacts, so it was left; rule whether the arm should become evalid in a separate change.
  2. Skill surface: the xflow/ skill directory, xflow:* skill names, and installed skill directories (e.g. ~/.codex/skills/xflow) keep the old name. A skill rename is a separate migration (installed copies in the wild).
  3. checkBinOnPath('xflow', ...) in src/core/workflow-loader.js still probes for the legacy name; harmless while the alias ships, but could switch to evalid.
  4. specs/*.md still contain xflow command examples; they read as change-history documents, so they were not migrated.
  5. Stored objective text inside bin/evalid.js (the audited competitive objective statement) still mentions xflow — it is the verbatim text under audit, not a UI string.

Test report

  • Baseline on clean main (this VM): the full suite stops at test/i6d-acceptance-demo.test.js, which fails with a pre-existing environment issue (expected verdict=verified exit=0); test/xflow-audit.test.js has 3 pre-existing I6d pytest-gate failures. Both reproduce identically without this change.
  • On this branch, all 75 test files were run individually: 73 pass; the only failures are the two pre-existing items above, byte-for-byte the same failure sets as on clean main.
  • node bin/evalid.js doctor, score (100, ok), and assess (ok) verified locally; npm pack --dry-run includes both bin files.

Not merged — opened for review per the rename request.

…ility alias

- package.json bin: evalid -> bin/evalid.js (entry renamed from bin/xflow.js),
  xflow -> bin/xflow.js (thin shim importing ./evalid.js); both names work.
- User-facing strings (help banner, usage lines, guide/quickstart/doctor/
  evaluate output, error prefixes), README and docs command examples,
  CI smoke commands, and audit/trend/langsmith render headers now use evalid.
- Deliberately unchanged: .xflow/ and .as-xflow/ state dirs, XFLOW_* env
  vars, the xflow/ skill directory and installed skill name, compare/score
  arm identifiers, CHANGELOG/RELEASE_NOTES history, specs/, bench paths
  (kept working via the shim).
- Tests updated; new package-entry assertions cover dual-bin same-entry and
  evalid-first help output.
@surlymochan

Copy link
Copy Markdown
Owner Author

主代理裁定(PR 正文待裁含糊项 1–5):全部保持不动——compare/score 的 arm 标识、技能目录名、checkBinOnPath('xflow')、specs 历史示例、被审计原文均属内部标识或历史记录,不在本次「用户可见命令改名」范围内;xflow 别名长期保留。CI 全绿,合并发 v0.5.39。

@surlymochan
surlymochan merged commit efb2394 into main Nov 22, 2026
2 checks passed
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.

1 participant