Skip to content

v5.0.0: mainline v5 — tests, CI, tournament, regime audit - #4

Merged
LeoLin990405 merged 1 commit into
mainfrom
chore/v5-mainline
Apr 14, 2026
Merged

LeoLin990405 merged 1 commit into
mainfrom
chore/v5-mainline

Conversation

@LeoLin990405

Copy link
Copy Markdown
Owner

Follow-up to #3. Iterates the entire repo around v5:

A. v5 Mainline

  • README leads with v5 + tournament example (Chinese + English)
  • CHANGELOG v5.0.0 entry with new capabilities and limitations
  • package.json created (name=civagent, version=5.0.0, bin, scripts, ESM)
  • CLI help reflects v5

B. Infrastructure

  • 9 unit tests (node:test): path-traversal guard, mtime re-seed, ANSI/JSONL cleaning, injection guard — all passing
  • regime-validator.mjs: mechanical check across all 57 regimes, also used by npm run validate:regimes
  • GitHub Actions CI (.github/workflows/ci.yml): syntax + tests + regime validation on every PR

C. 57 Regime Audit

  • 100% pass mechanical validation
  • 40 regimes use non-canonical orchestrationPattern aliases (e.g. centralized-hierarchy instead of centralized)
  • Added PATTERN_ALIASES normalizer in engine/regime-to-cc.mjs so the engine actually resolves engine/modes/<canonical>.md for alias regimes (this was a latent v4 bug)
  • regimes/AUDIT.md documents the state + design limitations

D. Tournament Mode

  • civagent tournament --civs a,b,c,d "task" — parallel N-civ match
  • engine/v5/tournament.mjs spawns isolated civ runs, collects transcripts, gemini judges with ranking table
  • Writes ~/.civagent/tournaments/<id>/result.md

Test plan

  • npm run lint:syntax — green
  • npm test — 9/9 passing
  • npm run validate:regimes — 0 errors, 40 style warnings
  • bin/civagent tournament — usage gate works
  • Deferred: live tournament run requires tester with CC auth in isolated HOMEs (one-time per civ)

Risks

  • CI doesn't run live Claude/Gemini/Codex calls (those need secrets + are flaky for mainland CI runners). Validates structure only.
  • Tournament judge uses gemini; degrades gracefully if unavailable.

A. v5 is now the mainline
- README leads with v5 learning-loop pitch and tournament example
- CHANGELOG v5.0.0 entry
- package.json (new) declares name=civagent, version=5.0.0, bin, scripts
- bin/civagent help text updated for v5

B. Infrastructure
- test/civ-memory.test.mjs — validateRegime traversal, envDirFor, mtime re-seed
- test/skill-sediment.test.mjs — cleanTranscript ANSI/JSONL, injection guard
- test/regime-validator.mjs — mechanical validation of all 57 regimes,
  with alias→canonical pattern map (centralized-hierarchy → centralized etc.)
- .github/workflows/ci.yml — syntax, tests, regime validation on every PR

C. 57 regime audit
- regimes/AUDIT.md — reports 40 regimes using alias orchestration patterns,
  all now normalized at runtime via engine/regime-to-cc.mjs PATTERN_ALIASES
- Documents known design limitations (compression, no time dimension)

D. Tournament mode
- engine/v5/tournament.mjs — parallel N-civ match + gemini judge ranking
- bin/civagent tournament --civs a,b,c,d "task"
- Writes ~/.civagent/tournaments/<id>/result.md

Test evidence: 9/9 unit tests pass, lint:syntax green, validate:regimes
reports 0 errors + 40 style warnings.
@LeoLin990405
LeoLin990405 merged commit 8072268 into main Apr 14, 2026
1 check passed
LeoLin990405 pushed a commit that referenced this pull request Aug 6, 2026
🔴 结构性问题(4个):
- #1 新增 CONTRIBUTING.md 贡献指南(项目结构、GUI 开发、PR 检查清单)
- #2 GUI README 已有完整说明(确认无需额外修改)
- #3 Docker CI/CD 待后续处理(标记为 TODO)
- #4 install.sh 末尾自动运行 doctor.sh 健康检查

🟡 文档一致性(4个):
- #5 README GUI 章节已完善(确认无需额外修改)
- #6 README 基础篇/进阶篇加说明(标注为小红书配套文字稿)
- #7 README_EN 同步预装 Skill 章节 + 60+ Skill 措辞 + badge
- #8 进阶篇待后续全面更新(标记为 TODO)

🟢 建议优化(5个):
- #9 新增 skills/README.md 总索引(7个 Skill 说明 + 安装更多 + 自定义指南)
- #10 docker-compose.yml 移除废弃的 version: '3.8'
- #11 openclaw.example.json + install.sh 补翰林院 account + binding
- #12 Dockerfile COPY skills/ 改用 ${WORKSPACE} 变量
- #13 新增 CHANGELOG.md(v2.0 → v3.5 变更记录)
LeoLin990405 added a commit that referenced this pull request Aug 6, 2026
Merging #4 per 3-round AI review + all CI pieces green locally.
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