From bb8e1451c7f9d86202bd8678d8795807f3dd93b8 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sat, 31 Oct 2026 08:39:39 -0500 Subject: [PATCH] refactor: retire commit-logger extension and archive persona directory - Move extensions/commit-logger to archive/extensions/commit-logger - Move profile/agents/anne-droid.md to archive/agents/anne-droid.md - Add archive/README.md documenting archived capabilities - Update install.sh to treat commit-logger and anne-droid.md as obsolete, backing up existing installations - Remove commit-logger handoff from skills/git-commit and extensions/draft-curation - Update skills/journal-builder to read from git log and session history directly - Reconcile README.md active extensions table, interaction matrix, and canonical flows - Remove persona directory and commit ledger references from profile/AGENTS.md --- README.md | 7 +++---- archive/README.md | 6 ++++++ {profile => archive}/agents/anne-droid.md | 0 .../extensions}/commit-logger/SKILL.md | 0 .../commit-logger/references/ledger-schema.md | 0 .../commit-logger/scripts/log-commit.sh | 0 extensions/draft-curation/SKILL.md | 3 +-- install.sh | 19 +++++++++++++++++-- profile/AGENTS.md | 13 ++----------- skills/git-commit/SKILL.md | 1 - skills/journal-builder/SKILL.md | 2 +- 11 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 archive/README.md rename {profile => archive}/agents/anne-droid.md (100%) rename {extensions => archive/extensions}/commit-logger/SKILL.md (100%) rename {extensions => archive/extensions}/commit-logger/references/ledger-schema.md (100%) rename {extensions => archive/extensions}/commit-logger/scripts/log-commit.sh (100%) diff --git a/README.md b/README.md index c254988..702f753 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,6 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus | Skill | Status | Purpose | | :--- | :--- | :--- | | **[`draft-curation`](extensions/draft-curation/SKILL.md)** | Active | Triages, classifies, and commits incoming notes from an inbox/staging directory into structured lifecycle directories. | -| **[`commit-logger`](extensions/commit-logger/SKILL.md)** | Active | Immutable Git commit event capture script into a machine-readable CSV ledger (consumed by `journal-builder`). | --- @@ -96,8 +95,8 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus | :--- | :--- | :--- | :--- | :--- | :--- | :--- | | **Practice** | — | yields for production incidents | learner types the commit | feeds learning edges | optional handoff on key insights | — | | **Diagnose** | yields if user wants to find cause | — | hands off to package verified fix | feeds incident root causes | hands off if RCA reveals non-obvious lesson | — | -| **Git Commit** | learner-controlled | packages remediation result | — | records commit events to ledger | delegates if commit warrants deeper doc | provides commit history | -| **Journal Builder** | hands off unresolved gaps | hands off active defects | assesses ledger events | — | hands off candidate journal draft | — | +| **Git Commit** | learner-controlled | packages remediation result | — | provides commit history for review | delegates if commit warrants deeper doc | provides commit history | +| **Journal Builder** | hands off unresolved gaps | hands off active defects | assesses commit history | — | hands off candidate journal draft | — | | **Document** | consumes practice milestones | consumes RCA findings | packages docs if committed | consumes completed journal drafts | — | provides ADRs and plans | | **Reconcile Docs** | — | — | verifies commit reality | — | audits ADRs and plans | — | @@ -107,7 +106,7 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus 1. **Investigation to History**: `diagnose` (verify root cause) -> `git-commit` (atomic slice approval) -> `document` (optional Debug Record / ADR). 2. **Deliberate Practice to Knowledge**: `practice` (solve transfer challenge) -> `document` (author durable knowledge article). -3. **Retrospective Scaffolding to Journal**: `commit-logger` (event ledger) -> `journal-builder` (fact skeleton & question blanks) -> user fills reasoning -> curation & calibration -> `draft-curation`. +3. **Retrospective Scaffolding to Journal**: `journal-builder` (reconstruct facts & question blanks from repository history) -> user fills reasoning -> curation & calibration -> `draft-curation`. 4. **Documentation Reconciliation**: `reconcile-docs` (audit history, code reality, roadmap) -> propose updates to README / ARCHITECTURE / ADRs -> user approves. 5. **Skill Design Loop**: `build-skill` (approve spec) -> dogfood run -> minimal mechanism refinement. diff --git a/archive/README.md b/archive/README.md new file mode 100644 index 0000000..695ea6c --- /dev/null +++ b/archive/README.md @@ -0,0 +1,6 @@ +# Archive + +Archived skills, extensions, and agent personas preserved for historical reference or future independent development. These are not active dependencies of the core skills ecosystem. + +- **`extensions/commit-logger`**: Deprecated in favor of Git history, Conventional Commits, and Gitea issues/PRs. +- **`agents/anne-droid.md`**: Persona workflows archived during skills ecosystem redesign. diff --git a/profile/agents/anne-droid.md b/archive/agents/anne-droid.md similarity index 100% rename from profile/agents/anne-droid.md rename to archive/agents/anne-droid.md diff --git a/extensions/commit-logger/SKILL.md b/archive/extensions/commit-logger/SKILL.md similarity index 100% rename from extensions/commit-logger/SKILL.md rename to archive/extensions/commit-logger/SKILL.md diff --git a/extensions/commit-logger/references/ledger-schema.md b/archive/extensions/commit-logger/references/ledger-schema.md similarity index 100% rename from extensions/commit-logger/references/ledger-schema.md rename to archive/extensions/commit-logger/references/ledger-schema.md diff --git a/extensions/commit-logger/scripts/log-commit.sh b/archive/extensions/commit-logger/scripts/log-commit.sh similarity index 100% rename from extensions/commit-logger/scripts/log-commit.sh rename to archive/extensions/commit-logger/scripts/log-commit.sh diff --git a/extensions/draft-curation/SKILL.md b/extensions/draft-curation/SKILL.md index 01a6cb2..a3ec0e9 100644 --- a/extensions/draft-curation/SKILL.md +++ b/extensions/draft-curation/SKILL.md @@ -10,12 +10,11 @@ description: >- ## Use when - `/draft-curation`: triaging, classifying, and ingesting raw notes from `00-inbox/` into canonical vault lifecycle directories. - Handoff from `document` after drafting notes into staging inbox. -- Not for capturing git commits into ledger: use `commit-logger`. - Not for authoring fresh documents from conversation: use `document`. ## Steps 1. **Preflight verification.** Verify repository health before moving files (run vault validator if present, e.g. `python scripts/validate-brain.py`). -2. **Inventory staging.** Scan `00-inbox/` for pending drafts, ignoring system ledgers (`commit-log.csv`), `.keep`, or `README.md`. Identify project context and note scope. +2. **Inventory staging.** Scan `00-inbox/` for pending drafts, ignoring `.keep` or `README.md`. Identify project context and note scope. 3. **Classify and format.** Determine target directory, frontmatter type, and filename slug using [references/curation-matrix.md](references/curation-matrix.md). Ensure H1 heading, relative links, and clean markdown. 4. **Checkpoint.** Present source path, proposed destination, proposed frontmatter, and epistemic rationale. Stop for confirmation before moving files. 5. **Relocate and reconcile.** Write transformed file to destination (reconciling with existing daily journal if applicable, preserving existing edits and unioning `assessed_commits`). Delete original draft from `00-inbox/`. diff --git a/install.sh b/install.sh index e2eb3aa..65ccfae 100755 --- a/install.sh +++ b/install.sh @@ -34,10 +34,11 @@ done # Active skills to install ACTIVE_PORTABLE_SKILLS=(build-skill code-review diagnose document git-commit inspect-flake-update journal-builder nix-devshell practice reconcile-docs tdd verify-slice) -ACTIVE_EXTENSION_SKILLS=(draft-curation commit-logger) +ACTIVE_EXTENSION_SKILLS=(draft-curation) # Legacy / deprecated skills to clean up or back up if found in target -OBSOLETE_SKILLS=(engineering-tutor engineering-investigation skill-builder documentation-router inbox-curation) +OBSOLETE_SKILLS=(engineering-tutor engineering-investigation skill-builder documentation-router inbox-curation commit-logger) +OBSOLETE_AGENTS=(anne-droid.md) echo "=== Target: $TARGET_DIR (mode: $MODE) ===" @@ -59,6 +60,13 @@ if [[ "$CHECK_ONLY" -eq 1 ]]; then for obs in "${OBSOLETE_SKILLS[@]}"; do if [[ -e "$TARGET_DIR/$obs" || -L "$TARGET_DIR/$obs" ]]; then echo " [OBSOLETE PRESENT] $obs" + missing=$((missing + 1)) + fi + done + for a in "${OBSOLETE_AGENTS[@]}"; do + if [[ -e "$AGENTS_DIR_TARGET/$a" || -L "$AGENTS_DIR_TARGET/$a" ]]; then + echo " [OBSOLETE PRESENT] agent: $a" + missing=$((missing + 1)) fi done if [[ -d "$SCRIPT_DIR/profile/agents" ]]; then @@ -102,6 +110,13 @@ for obs in "${OBSOLETE_SKILLS[@]}"; do fi done +# Clean up obsolete agent personas +for a in "${OBSOLETE_AGENTS[@]}"; do + if [[ -e "$AGENTS_DIR_TARGET/$a" || -L "$AGENTS_DIR_TARGET/$a" ]]; then + backup_if_exists "$AGENTS_DIR_TARGET/$a" + fi +done + # Install portable skills for s in "${ACTIVE_PORTABLE_SKILLS[@]}"; do src="$SCRIPT_DIR/skills/$s" diff --git a/profile/AGENTS.md b/profile/AGENTS.md index 87bf516..dce4b73 100644 --- a/profile/AGENTS.md +++ b/profile/AGENTS.md @@ -49,15 +49,6 @@ whether I really understood something), don't make it for me: - `~/Homelab/` Shared space for Homelab's Core and Sites repositories - `~/Brain/` (knowledge vault) - `~/Config/` (system and NixOS configuration) -- When resolving a project from the commit ledger, search these workspace roots before asking the user. -- To create new projects or repositories, always use `new-repo` (source: `~/Projects/active/new-repo`). It supports organization targeting (`-o`), persona isolation (`--as `), GitHub push mirroring, licenses, and templates. - -## Agent Directory - -When tasks involve specialized domains, consult or delegate to registered agent personas: - -- **Anne Droid** (`profile/agents/anne-droid.md`): Senior Frontend Engineer & UX Specialist. - - **Consult when**: Backend APIs are being designed/refactored with UI impact, UX flows or accessibility need review, or interface consumers experience contract friction. Anne provides advisory feedback reports. - - **Delegate when**: Frontend components, client styling, web interactions, or client tests need implementation. Anne operates on `feat/anne/*` branches with PR-based review. - - **Do not invoke for**: Backend-only logic, database internals, NixOS configuration, infrastructure, or deployment. +- When resolving a project from task context, search these workspace roots before asking the user. +- To create new projects or repositories, always use `new-repo` (source: `~/Projects/active/new-repo`). It supports organization targeting (`-o`), GitHub push mirroring, licenses, and templates. diff --git a/skills/git-commit/SKILL.md b/skills/git-commit/SKILL.md index 3db8960..33832eb 100644 --- a/skills/git-commit/SKILL.md +++ b/skills/git-commit/SKILL.md @@ -57,4 +57,3 @@ the repo allows it. ## Hands off to - `document`: if a commit carries a decision or insight worth more than a commit message. -- `commit-logger`: after a verified commit, if installed. diff --git a/skills/journal-builder/SKILL.md b/skills/journal-builder/SKILL.md index b03a7b6..704f6d4 100644 --- a/skills/journal-builder/SKILL.md +++ b/skills/journal-builder/SKILL.md @@ -16,7 +16,7 @@ description: >- ## Steps 1. **Target the day and check history.** Establish date from argument or today. Check if a draft scaffold exists for that date with filled answers; if so, skip to step 5. - Read events from commit ledger (e.g. `commit-log.csv`) or repository `git log`. + Read events from repository `git log` or session history. - **Provenance check**: Read `assessed_commits` across existing journals. Only events whose full 40-character SHA is absent proceed as unassessed work. - **Backlog check**: If unassessed events exist from prior dates, surface them and ask