v4.3.0 - Learning loop and safe upgrades
Highlights
- Adds an evidence-backed Repository Learning Loop that turns verified, reusable project experience into durable repository rules and on-demand project Skills.
- Adds read-only upgrade analysis with
--upgrade-report, safe preview with--upgrade-apply --dry-run, and transactional safe reconciliation with--upgrade-apply. - Safely applies upstream additions, upstream-only changes, and clean text three-way merges while preserving local customizations and reporting removals or true conflicts for manual review.
- Keeps the installed template baseline unchanged until the upgraded project has been validated and the user explicitly accepts the new baseline.
- Adds English and Chinese upgrade guides, deterministic learning helpers, lifecycle validation, and Fresh-Agent evaluation evidence.
Compatibility
- Existing initialized repositories should not rerun
INIT.md; install the target Companion Skill and use the upgrade workflow instead. - The downstream core remains usable with Markdown and Git alone. Companion Skill automation is optional.
- Codex and Claude Code model-routing overlays remain opt-in and preserve the root-session model by default.
- No telemetry, autonomous runtime, or automatic cross-project collection is introduced.
Upgrade outline
- Install the target Companion Skill from this release.
- Run
bootstrap_knowledge.py --target <repo> --upgrade-report --ref v4.3.0. - Preview with
--upgrade-apply --dry-run, then apply with--upgrade-applyon a clean task branch. - Validate the project and explicitly update
.repo-continuity-templateonly after accepting the result.
Validation
- The complete distribution lifecycle validator passes, including fresh installs, upgrade scenarios, core-only operation, opt-in adapters, and payload leakage checks.
- GitHub Actions passed for the release commit.
- The current Companion Skill installs successfully with
skills@1.5.19. - A real ephemeral Fresh-Agent test using
gpt-5.6-solrecovered the work route, acceptance criteria, commits, validation, risk, next action, learning candidate, and project Skill while leaving the repository unchanged.
See docs/UPGRADING.md, docs/UPGRADING.zh-CN.md, and docs/evaluations/v4.3.0-fresh-agent.md for details.