Repository navigation
Conversation
Add registeredHarnesses(root, templatesDir), which lists every adapter whose committed host registration names the shared hook path or carries a shipped plugin. registrationEvidence no longer throws when the settings path is a directory or cannot be read; it reports no evidence. Plan 69, phase 1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
doctor now scopes its harness checks to every harness with committed registration evidence instead of the installed-version inventory. The "harness inventory" drift check is replaced by a "harness registrations" check: it lists the registered harnesses, warns when none is registered, and errors when --harness names a harness with no registration. Plan 69, phase 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The committed .ai/kenkeep/.state/installed-version now holds only schema_version, package and version. installed_at changed on every install, and harnesses recorded one developer's harness choice as the team's inventory. init finds harnesses from committed host registrations instead: - Repair restores the missing hook scripts of every registered harness and fully installs any --harnesses id with no registration. It never writes the marker, so git status stays clean. - Upgrade refreshes every registered harness plus every --harnesses id. A named harness is refreshed even with no registration, so its writer still refuses a malformed config. The marker is written only when its content changes, so a repeat run leaves it byte-identical. - status prints the version only and reads the marker through the shared reader. The marker keeps schema_version 1. Its reader is a plain zod object that strips unknown keys, so removing the fields relaxes the reader. This is a deliberate exception to the strict bump policy. Plan 69, phase 3. Closes #150. BREAKING CHANGE: kenkeep CLIs older than this release reject the new marker as "Malformed ... installed_at: Required" in init and doctor. Upgrade the kenkeep CLI for the whole team together. The new CLI reads legacy markers; the next `init --upgrade` drops installed_at and harnesses. To retire a harness, delete its host registration; there is no inventory to edit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add a writeInstalledMarker helper and use it in every fixture that only needs the marker to exist. Add unit coverage for the marker reader and writer: legacy keys are stripped, a non-string version is rejected, the record is deterministic, and identical content is not rewritten. Plan 69, phase 4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The install marker no longer lists harnesses. Update the installation, troubleshooting and architecture docs, PRD.md, AGENTS.md and the kenkeep nodes: init and doctor find harnesses from committed host registrations, doctor reports a missing registration or no registration at all, and it cannot detect a deleted registration. Record the schema-version policy exception for the install marker. Plan 69, phase 4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
writeInstalledVersionIfChanged returned whether it wrote, and only a unit test read it. The test now checks the file content and mtime. Share the legacy-marker fixture and the package.json version lookup through tests/helpers.ts instead of building them in three test files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test expected doctor to exit 0, which needs the claude binary on PATH. CI has none, so doctor reported it and exited 1. Stub the harness binaries as the other doctor tests do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🎉 This PR is included in version 1.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Closes #150.
The committed
.ai/kenkeep/.state/installed-versionheld two fields that do not belong in a shared file.installed_atchanged on every install, andharnessesrecorded one developer's harness choice as the team's inventory. The marker now holds onlyschema_version,packageandversion.initanddoctorfind harnesses from the committed host registrations.Changes
registeredHarnesses(root, templatesDir)lists every adapter with registration evidence.registrationEvidenceno longer throws when a settings path is a directory or cannot be read.initon an initialized repo) restores the hook scripts of every registered harness and installs any--harnessesid that has no registration. It never writes the marker, sogit statusstays clean.--harnessesid. A named harness is refreshed even with no registration, so its writer still refuses a malformed config. The marker is written only when its content changes.harness registrationscheck replaces the inventory drift check. It errors for--harness Xwhen X is not registered and warns when nothing is registered.kenkeep v<version>with no date and reads the marker through the shared reader.doctorcannot detect a deleted registration.Schema version
The marker keeps
schema_version: 1. Its reader is a plain zod object that strips unknown keys, so a legacy marker parses and the next upgrade drops the old fields. AGENTS.md and the bump-policy node record this as an exception to the policy.Mixed CLI versions
The new CLI reads legacy markers, so nothing breaks for anyone on this release. A kenkeep CLI older than this release rejects the new three-field marker as
Malformed ... installed_at: Requiredininitanddoctor, so upgrade the CLI across the team together. To retire a harness, delete its host registration.Verification
npm run build,npm run lint,npm run typecheck,npm run typecheck:tests: exit 0.npx vitest run: 94 files, 966 tests passed.initandinit --upgradetwice each leavegit status --porcelainempty; deleting.ai/kenkeep/hooks/and runninginit --harnesses clauderestores claude and codex; a legacy marker survives doctor, status and repair unchanged and losesinstalled_at/harnesseson upgrade; doctor showsregistered: claude, codex, errors for--harness cursor, and warns with no registrations.npm run format:checkfails ondocs/_includes/callout.htmlandsrc/lib/fs-atomic.ts, which this PR does not touch. Every file it changes passes prettier.🤖 Generated with Claude Code