v5.0.0: mainline v5 — tests, CI, tournament, regime audit#4
Merged
LeoLin990405 merged 1 commit intomainfrom Apr 14, 2026
Merged
v5.0.0: mainline v5 — tests, CI, tournament, regime audit#4LeoLin990405 merged 1 commit intomainfrom
LeoLin990405 merged 1 commit intomainfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #3. Iterates the entire repo around v5:
A. v5 Mainline
B. Infrastructure
npm run validate:regimes.github/workflows/ci.yml): syntax + tests + regime validation on every PRC. 57 Regime Audit
orchestrationPatternaliases (e.g.centralized-hierarchyinstead ofcentralized)PATTERN_ALIASESnormalizer inengine/regime-to-cc.mjsso the engine actually resolvesengine/modes/<canonical>.mdfor alias regimes (this was a latent v4 bug)regimes/AUDIT.mddocuments the state + design limitationsD. Tournament Mode
civagent tournament --civs a,b,c,d "task"— parallel N-civ matchengine/v5/tournament.mjsspawns isolated civ runs, collects transcripts, gemini judges with ranking table~/.civagent/tournaments/<id>/result.mdTest plan
npm run lint:syntax— greennpm test— 9/9 passingnpm run validate:regimes— 0 errors, 40 style warningsbin/civagent tournament— usage gate worksRisks