Compare commits

..
5 Commits
Author SHA1 Message Date
kiskaadee 80127b6da9 fix(git-manager): resolve review parity items CR-01 and CR-02
- Align cherry-pick and revert approval wording across SKILL.md, commits.md, and history-editing.md with profile/AGENTS.md (CR-01)
- Gate commit message drafting in inspect-flake-update Step 4 on delivery mode so learning mode preserves user message authoring (CR-02)
2026-10-31 21:05:14 -05:00
kiskaadee e99589beef feat(install): migrate git-commit and git-workspace to git-manager
- Replace git-commit and git-workspace with git-manager in ACTIVE_PORTABLE_SKILLS and add both to OBSOLETE_SKILLS in install.sh
- Reconcile AGENTS.md, README.md inventory table, architecture diagram, interaction matrix, and canonical flows
2026-10-31 20:55:21 -05:00
kiskaadee 7ee31212e1 refactor(skills): reconcile cross-skill references to git-manager
- Update handoff and boundary references across active skills and draft-curation from git-commit and git-workspace to git-manager
- Align diagnose and inspect-flake-update approval checkpoints with profile/AGENTS.md commit autonomy
2026-10-31 20:53:52 -05:00
kiskaadee 383fcf3db6 feat(git-manager): unify git-commit and git-workspace into git-manager
- Archive skills/git-commit to archive/skills/git-commit and document in archive/README.md
- Evolve skills/git-workspace into skills/git-manager (66 lines <= 80)
- Add references/commits.md covering slice boundaries, staging discipline, Conventional Commit depth matching, pre-commit gate, and session-mode execution
2026-10-31 20:51:52 -05:00
kiskaadee 58c2b68e82 refactor(profile): enable autonomous working-branch commits in delivery mode
- Update profile/AGENTS.md to allow immediate Conventional Commits on non-default working branches once a task is verified in delivery mode
- Require explicit approval for main/master commits, learning mode, conflicts, reverts, cherry-picks, shared-history rewrites, failing checks, unfamiliar working-tree edits, and destructive git
- Align profile/learning-contract.md with delivery-mode commit autonomy and git-manager
2026-10-31 20:50:14 -05:00
29 changed files with 189 additions and 115 deletions

No files matched your search

+1 -1
View File
@@ -8,4 +8,4 @@ Source of truth for my agent skills. Installed into agent tools by `install.sh`.
- Every `skills/*/SKILL.md` follows `skills/build-skill/references/skeleton.md` and stays ≤ 80 lines. - Every `skills/*/SKILL.md` follows `skills/build-skill/references/skeleton.md` and stays ≤ 80 lines.
- Portable skills must not encode a user's filesystem topology (no home paths, no hardcoded vault directories). - Portable skills must not encode a user's filesystem topology (no home paths, no hardcoded vault directories).
- No absolute home paths (`/home/<user>`) and no secrets; this repo is public. - No absolute home paths (`/home/<user>`) and no secrets; this repo is public.
- Commit types: Conventional Commits; scope = skill name (e.g. `refactor(git-commit): …`). - Commit types: Conventional Commits; scope = skill name (e.g. `refactor(git-manager): ...`).
+17 -18
View File
@@ -22,7 +22,7 @@ These skills exist to enforce four core principles:
1. **Defeating the Comprehension Illusion**: Having an AI generate code is not the same as understanding how a system behaves. When code velocity outpaces comprehension, you end up with systems you cannot debug when production breaks. Skills like `practice` make the learner write the code and drive analysis, ensuring mental models develop alongside the codebase. 1. **Defeating the Comprehension Illusion**: Having an AI generate code is not the same as understanding how a system behaves. When code velocity outpaces comprehension, you end up with systems you cannot debug when production breaks. Skills like `practice` make the learner write the code and drive analysis, ensuring mental models develop alongside the codebase.
2. **Intentional Epistemic Friction ("Your call")**: Great engineering requires deliberate checkpoints. Instead of letting agents make unilateral architectural choices, these skills pause at critical state transitions—requiring proven root causes before patching (`diagnose`), approving reviewable atomic slices (`git-commit`), or identifying learning opportunities that should be preserved as durable knowledge (`document`). 2. **Intentional Epistemic Friction ("Your call")**: Great engineering requires deliberate checkpoints. Instead of letting agents make unilateral architectural choices, these skills pause at critical state transitions: requiring proven root causes before patching (`diagnose`), gating branch integration and merge readiness (`git-manager` / `gitea-pr`), or identifying learning opportunities that should be preserved as durable knowledge (`document`).
3. **Operational Ownership**: An agent should investigate, measure, and propose concrete options, but the human engineer must own the trade-offs, failure domains, and repository history. You cannot own what you did not decide. 3. **Operational Ownership**: An agent should investigate, measure, and propose concrete options, but the human engineer must own the trade-offs, failure domains, and repository history. You cannot own what you did not decide.
@@ -34,7 +34,7 @@ These skills exist to enforce four core principles:
The system is under active testing and continuous improvement. Currently, the skills form an orchestrated pair-programming workflow. `build-skill` governs meta-level skill design. The system is under active testing and continuous improvement. Currently, the skills form an orchestrated pair-programming workflow. `build-skill` governs meta-level skill design.
Three core operational skills (`practice`, `diagnose`, `git-commit`) structure day-to-day engineering. `document` evaluates whether insights produced during work warrant durable preservation. Three core operational skills (`practice`, `diagnose`, `git-manager`) structure day-to-day engineering. `document` evaluates whether insights produced during work warrant durable preservation.
```mermaid ```mermaid
flowchart TD flowchart TD
@@ -42,7 +42,7 @@ flowchart TD
subgraph Core["Engineering & Learning Skills"] subgraph Core["Engineering & Learning Skills"]
PRAC["practice<br/>learn it: Socratic & recall"] PRAC["practice<br/>learn it: Socratic & recall"]
DIAG["diagnose<br/>find out: evidence-first RCA"] DIAG["diagnose<br/>find out: evidence-first RCA"]
GIT["git-commit<br/>package it: author mode"] GIT["git-manager<br/>branches, commits & recovery"]
JB["journal-builder<br/>synthesize it: facts & scaffold"] JB["journal-builder<br/>synthesize it: facts & scaffold"]
end end
DOC["document<br/>classify & author: 6 epistemic types"] DOC["document<br/>classify & author: 6 epistemic types"]
@@ -58,7 +58,7 @@ flowchart TD
REC --> Storage REC --> Storage
``` ```
Every skill features an explicit **"Your call"** checkpoint where the agent pauses and asks the human to make critical architectural, diagnostic, and commit decisions with 2-3 concrete options. Every skill features an explicit **"Your call"** checkpoint where the agent pauses and asks the human to make critical architectural, diagnostic, and release decisions with 2-3 concrete options.
--- ---
@@ -70,10 +70,9 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
| :--- | :--- | :--- | :--- | | :--- | :--- | :--- | :--- |
| **[`practice`](skills/practice/SKILL.md)** | `/practice [topic]`, `/practice review` | Socratic tutoring and delayed retrieval. Learner writes all code; uses graduated assistance, rubric calibration, and recall-before-reveal. | 50 lines | | **[`practice`](skills/practice/SKILL.md)** | `/practice [topic]`, `/practice review` | Socratic tutoring and delayed retrieval. Learner writes all code; uses graduated assistance, rubric calibration, and recall-before-reveal. | 50 lines |
| **[`diagnose`](skills/diagnose/SKILL.md)** | `/diagnose [symptom]` | Evidence-first troubleshooting. Progresses from raw logs to proven root cause and minimal, reversible fixes. | 49 lines | | **[`diagnose`](skills/diagnose/SKILL.md)** | `/diagnose [symptom]` | Evidence-first troubleshooting. Progresses from raw logs to proven root cause and minimal, reversible fixes. | 49 lines |
| **[`git-commit`](skills/git-commit/SKILL.md)** | `/git-commit` | Working-tree inspection, atomic slice decomposition, and author-driven message authoring in learning sessions. User approves every commit. | 60 lines | | **[`git-manager`](skills/git-manager/SKILL.md)** | `/git-manager` | Repository hygiene, branch and worktree lifecycle, incremental Conventional Commits (autonomous on working branches in delivery mode; user-authored in learning mode), integration, conflict stops, and evidence-first reflog recovery. | 65 lines |
| **[`git-workspace`](skills/git-workspace/SKILL.md)** | `/git-workspace` | Branch and worktree lifecycle, history integration (rebase/squash/cherry-pick), conflict halts, and evidence-first reflog recovery. | 50 lines |
| **[`gitea-plan`](skills/gitea-plan/SKILL.md)** | `/gitea-plan` | Translates technical goals and plans into Gitea milestones and issues with tiered sizing and falsifiable acceptance criteria. | 52 lines | | **[`gitea-plan`](skills/gitea-plan/SKILL.md)** | `/gitea-plan` | Translates technical goals and plans into Gitea milestones and issues with tiered sizing and falsifiable acceptance criteria. | 52 lines |
| **[`gitea-pr`](skills/gitea-pr/SKILL.md)** | `/gitea-pr` | Manages Gitea pull request lifecycle: branch readiness, review/verification synthesis, issue closing, and merge readiness. | 61 lines | | **[`gitea-pr`](skills/gitea-pr/SKILL.md)** | `/gitea-pr` | Manages Gitea pull request lifecycle: branch readiness, review/verification synthesis, issue closing, and merge readiness. | 60 lines |
| **[`document`](skills/document/SKILL.md)** | `/document` | Second-order knowledge classifier (Discussion, ADR, Plan, Debug Record, Knowledge, Journal). User confirms type and provides core insight. | 55 lines | | **[`document`](skills/document/SKILL.md)** | `/document` | Second-order knowledge classifier (Discussion, ADR, Plan, Debug Record, Knowledge, Journal). User confirms type and provides core insight. | 55 lines |
| **[`journal-builder`](skills/journal-builder/SKILL.md)** | `/journal-builder` or `/journal` | Two-phase daily engineering review: generates factual skeleton with question blanks, then reviews and calibrates user reasoning. | 58 lines | | **[`journal-builder`](skills/journal-builder/SKILL.md)** | `/journal-builder` or `/journal` | Two-phase daily engineering review: generates factual skeleton with question blanks, then reviews and calibrates user reasoning. | 58 lines |
| **[`reconcile-docs`](skills/reconcile-docs/SKILL.md)** | `/reconcile-docs [path]` | Reconciles historical evidence, present code reality, and future plans into canonical repo docs (README, ARCHITECTURE, ADR, ROADMAP). | 40 lines | | **[`reconcile-docs`](skills/reconcile-docs/SKILL.md)** | `/reconcile-docs [path]` | Reconciles historical evidence, present code reality, and future plans into canonical repo docs (README, ARCHITECTURE, ADR, ROADMAP). | 40 lines |
@@ -94,26 +93,26 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
## Skill Interaction Matrix ## Skill Interaction Matrix
| From \ To | Practice | Diagnose | Git Commit | Journal Builder | Document | Reconcile Docs | | From \ To | Practice | Diagnose | Git Manager | Journal Builder | Document | Reconcile Docs |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Practice** | — | yields for production incidents | learner types the commit | feeds learning edges | optional handoff on key insights | — | | **Practice** | - | yields for production incidents | learner writes message & runs 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 | — | | **Diagnose** | yields if user wants to find cause | - | branches, commits fix & recovers | feeds incident root causes | hands off if RCA reveals non-obvious lesson | - |
| **Git Commit** | learner-controlled | packages remediation result | — | provides commit history for review | delegates if commit warrants deeper doc | provides commit history | | **Git Manager** | learner-controlled in practice/learning | manages branches & packages fixes | - | 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 | — | | **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 | | **Document** | consumes practice milestones | consumes RCA findings | commits docs if stored in repo | consumes completed journal drafts | - | provides ADRs and plans |
| **Reconcile Docs** | — | — | verifies commit reality | — | audits ADRs and plans | — | | **Reconcile Docs** | - | - | verifies commit reality & commits docs | - | audits ADRs and plans | - |
--- ---
## Canonical Flows ## Canonical Flows
1. **Investigation to History**: `diagnose` (verify root cause) -> `git-commit` (atomic slice approval) -> `document` (optional Debug Record / ADR). 1. **Investigation to History**: `diagnose` (verify root cause) -> `git-manager` (checkpoint commit) -> `document` (optional Debug Record / ADR).
2. **Deliberate Practice to Knowledge**: `practice` (solve transfer challenge) -> `document` (author durable knowledge article). 2. **Deliberate Practice to Knowledge**: `practice` (solve transfer challenge) -> `document` (author durable knowledge article).
3. **Retrospective Scaffolding to Journal**: `journal-builder` (reconstruct facts & question blanks from repository history) -> 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. 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. 5. **Skill Design Loop**: `build-skill` (approve spec) -> dogfood run -> minimal mechanism refinement.
6. **Branch Lifecycle & Integration**: `git-workspace` (branch-before-edits or isolated worktree) -> implementation -> `git-commit` (atomic slice approval) -> `code-review` / `verify-slice` -> `git-workspace` (rebase or integration). 6. **Branch Lifecycle & Integration**: `git-manager` (branch-before-edits or isolated worktree) -> implementation & incremental checkpoint commits -> `code-review` / `verify-slice` -> `git-manager` (rebase or integration).
7. **Issue Planning to PR Delivery**: `gitea-plan` (tiered sizing & falsifiable acceptance criteria) -> `git-workspace` (dedicated branch) -> `git-commit` (checkpoint slicing) -> `code-review` / `verify-slice` (provenance & runtime ledger) -> `gitea-pr` (PR synthesis, feedback triage, issue closing). 7. **Issue Planning to PR Delivery**: `gitea-plan` (tiered sizing & falsifiable acceptance criteria) -> `git-manager` (dedicated branch & incremental checkpoint commits) -> `code-review` / `verify-slice` (provenance & runtime ledger) -> `gitea-pr` (PR synthesis, feedback triage, issue closing).
--- ---
@@ -145,7 +144,7 @@ When run:
2. **The deletion test.** If deleting an instruction does not change agent behavior in a meaningful way, delete it. 2. **The deletion test.** If deleting an instruction does not change agent behavior in a meaningful way, delete it.
3. **Plain words over jargon.** Prefer "decision" over "epistemic commitment", "steps" over "state machine". 3. **Plain words over jargon.** Prefer "decision" over "epistemic commitment", "steps" over "state machine".
4. **80 lines maximum for `SKILL.md`.** Deep templates and authoring specs live in `references/`. 4. **80 lines maximum for `SKILL.md`.** Deep templates and authoring specs live in `references/`.
5. **Human ownership of critical decisions.** The AI investigates, drafts, and proposes; the human approves the architecture, commits, and destinations. 5. **Human ownership of critical decisions.** The AI investigates, drafts, and proposes; the human approves the architecture, branch merges/releases, and document destinations.
--- ---
+1
View File
@@ -2,5 +2,6 @@
Archived skills, extensions, and agent personas preserved for historical reference or future independent development. These are not active dependencies of the core skills ecosystem. Archived skills, extensions, and agent personas preserved for historical reference or future independent development. These are not active dependencies of the core skills ecosystem.
- **`skills/git-commit`**: Deprecated and consolidated into `skills/git-manager` (with working-branch commit autonomy governed by `profile/AGENTS.md`).
- **`extensions/commit-logger`**: Deprecated in favor of Git history, Conventional Commits, and Gitea issues/PRs. - **`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. - **`agents/anne-droid.md`**: Persona workflows archived during skills ecosystem redesign.
File renamed without changes.
+1 -1
View File
@@ -29,4 +29,4 @@ description: >-
- Staged draft is relocated, removed from `00-inbox/`, and repository validation passes cleanly. - Staged draft is relocated, removed from `00-inbox/`, and repository validation passes cleanly.
## Hands off to ## Hands off to
- `git-commit`: to inspect working-tree diff and commit curated documents with semantic commit types. - `git-manager`: to stage and commit curated documents with semantic commit types.
@@ -15,7 +15,7 @@ Detailed specifications and epistemic classification table for ingesting inbox d
2. **The Validation Gate**: If the vault has an automated validator (e.g. `python scripts/validate-brain.py`), a curated document must pass before any commit is made. 2. **The Validation Gate**: If the vault has an automated validator (e.g. `python scripts/validate-brain.py`), a curated document must pass before any commit is made.
3. **Zero Dangling Drafts**: Once a draft is curated and relocated to its destination, the original file in the staging directory must be deleted. 3. **Zero Dangling Drafts**: Once a draft is curated and relocated to its destination, the original file in the staging directory must be deleted.
4. **Interactive Checkpoint**: The agent must present the proposed destination, frontmatter, and rationale to the user before relocating files, unless explicitly instructed to process autonomously. 4. **Interactive Checkpoint**: The agent must present the proposed destination, frontmatter, and rationale to the user before relocating files, unless explicitly instructed to process autonomously.
5. **Atomic Curation Boundary**: Each curated document or cohesive bundle is relocated and validated as an independent unit. Git history is mutated only through `git-commit`. 5. **Atomic Curation Boundary**: Each curated document or cohesive bundle is relocated and validated as an independent unit, then committed following `git-manager` conventions.
6. **Unique Daily Journal & Reconciliation**: A daily journal (`03-records/journal/YYYY-MM-DD.md`) is a unique daily artifact. When a curated draft targets a date whose journal already exists, reconcile it with the existing record rather than creating a duplicate file (`-2.md`) or blindly overwriting. Reconciliation must preserve existing human edits, union the `assessed_commits` frontmatter list, and integrate genuinely new wins, artifacts, objectives, and reflections while avoiding duplicate entries. 6. **Unique Daily Journal & Reconciliation**: A daily journal (`03-records/journal/YYYY-MM-DD.md`) is a unique daily artifact. When a curated draft targets a date whose journal already exists, reconcile it with the existing record rather than creating a duplicate file (`-2.md`) or blindly overwriting. Reconciliation must preserve existing human edits, union the `assessed_commits` frontmatter list, and integrate genuinely new wins, artifacts, objectives, and reflections while avoiding duplicate entries.
## 2. Epistemic Classification Matrix ## 2. Epistemic Classification Matrix
+2 -2
View File
@@ -33,11 +33,11 @@ while [[ $# -gt 0 ]]; do
done done
# Active skills to install # Active skills to install
ACTIVE_PORTABLE_SKILLS=(build-skill code-review diagnose document git-commit git-workspace gitea-plan gitea-pr inspect-flake-update journal-builder nix-devshell practice reconcile-docs tdd verify-slice) ACTIVE_PORTABLE_SKILLS=(build-skill code-review diagnose document git-manager gitea-plan gitea-pr inspect-flake-update journal-builder nix-devshell practice reconcile-docs tdd verify-slice)
ACTIVE_EXTENSION_SKILLS=(draft-curation) ACTIVE_EXTENSION_SKILLS=(draft-curation)
# Legacy / deprecated skills to clean up or back up if found in target # 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 commit-logger) OBSOLETE_SKILLS=(engineering-tutor engineering-investigation skill-builder documentation-router inbox-curation commit-logger git-commit git-workspace)
OBSOLETE_AGENTS=(anne-droid.md) OBSOLETE_AGENTS=(anne-droid.md)
echo "=== Target: $TARGET_DIR (mode: $MODE) ===" echo "=== Target: $TARGET_DIR (mode: $MODE) ==="
+12 -5
View File
@@ -6,18 +6,18 @@ pretend I know more than I do.
## Your call ## Your call
When a decision belongs to me (architecture, trade-offs, what to commit, where docs go, When a decision belongs to me (architecture, trade-offs, merge or release, where docs go,
whether I really understood something), don't make it for me: whether I really understood something), don't make it for me:
- **Explain first**: Always provide a thorough explanation in your message prose covering - **Explain first**: Always provide a thorough explanation in your message prose covering
the context, architectural implications, concrete pros and cons, and your reasoning the context, architectural implications, concrete pros and cons, and your reasoning
*before* prompting for a choice. Never present a question modal in a vacuum. *before* prompting for a choice. Never present a question modal in a vacuum.
- **Decision categorization**: - **Decision categorization**:
- **Independent architectural decisions** (system boundaries, trade-offs, commit vs rework, - **Independent architectural decisions** (system boundaries, trade-offs, merge vs rework,
schema or model changes, doc destinations): Frame the choice clearly with 2-3 concrete options, schema or model changes, doc destinations): Frame the choice clearly with 2-3 concrete options,
your recommendation listed first and marked "(Recommended)", one decision at a time. your recommendation listed first and marked "(Recommended)", one decision at a time.
- **Homogeneous operational checkpoints** (approving a sequence of reviewable commit slices, - **Homogeneous operational checkpoints** (creating a batch of Gitea issues, approving
batching independent routine task operations): Orchestrators may structure multi-choice multi-item curation or routine task batches): Orchestrators may structure multi-choice
prompts for batch approval, provided each option exposes both the concrete action and its prompts for batch approval, provided each option exposes both the concrete action and its
consequence, consequential or destructive actions are never collapsed into a blanket consequence, consequential or destructive actions are never collapsed into a blanket
"approve all", and I can uncheck or revise individual items. "approve all", and I can uncheck or revise individual items.
@@ -29,8 +29,15 @@ whether I really understood something), don't make it for me:
## Hard rules ## Hard rules
- Never commit to `main`/`master` unless the repo's own `AGENTS.md` allows it. - Never commit to `main`/`master` unless the repo's own `AGENTS.md` allows it; direct commits
to `main`/`master` always require my explicit approval.
- Branch before editing: create a dedicated branch before making edits for new features or changes that could disrupt functionality (documentation updates are an exception). Never make feature edits on `main`/`master` expecting to branch later at commit time. - Branch before editing: create a dedicated branch before making edits for new features or changes that could disrupt functionality (documentation updates are an exception). Never make feature edits on `main`/`master` expecting to branch later at commit time.
- Commit incrementally on working branches: in `delivery` mode on a non-default working branch,
commit each coherent, verified task immediately using Conventional Commits (stage explicit
paths or hunks only, relevant checks passing, zero secrets) without pausing for approval.
Pause for approval only on `main`/`master`, in `learning` mode, or when hitting conflicts,
reverts, cherry-picks, shared-history rewrites, failing checks, unfamiliar working-tree
changes, or destructive git.
- Never run destructive git (`reset --hard`, `restore <file>`, `clean -fd`, force-push) without - Never run destructive git (`reset --hard`, `restore <file>`, `clean -fd`, force-push) without
my explicit yes. my explicit yes.
- Redact secrets (tokens, keys, passwords, connection strings) from anything you print or save. - Redact secrets (tokens, keys, passwords, connection strings) from anything you print or save.
+4 -2
View File
@@ -1,11 +1,13 @@
# Learning contract # Learning contract
Rules for any skill with a learning mode (`practice`, `git-commit`, `journal-builder`, `document`). Rules for any skill with a learning mode (`practice`, `git-manager`, `journal-builder`, `document`).
The session mode itself is defined in the profile (`AGENTS.md`, "Session mode"). This file The session mode itself is defined in the profile (`AGENTS.md`, "Session mode"). This file
defines what each mode means. defines what each mode means.
## Modes ## Modes
- **Delivery:** the agent may draft messages, summaries, and documents. The user approves them. - **Delivery:** the agent may draft messages, summaries, and documents. On non-default working
branches, completed verified tasks are committed incrementally without approval per `AGENTS.md`;
architectural, PR, and document checkpoints still require user approval.
- **Learning:** the agent provides facts, evidence, and questions. The user writes the reasoning. - **Learning:** the agent provides facts, evidence, and questions. The user writes the reasoning.
- Use learning mode for new concepts, real decisions, hard bugs, and chosen targets. Use delivery - Use learning mode for new concepts, real decisions, hard bugs, and chosen targets. Use delivery
mode for routine or familiar work. Support should fade as a concept becomes familiar. mode for routine or familiar work. Support should fade as a concept becomes familiar.
+1 -1
View File
@@ -46,4 +46,4 @@ Write only in this repo. Never create copies elsewhere or wrapper skills for sla
- The skill passes the checklist and one real dogfood run behaves as the spec says. - The skill passes the checklist and one real dogfood run behaves as the spec says.
## Hands off to ## Hands off to
- `git-commit`: to commit the new or changed skill. - `git-manager`: for branch isolation, checkpoint commits, or repository operations.
+1 -1
View File
@@ -39,4 +39,4 @@ description: >-
## Hands off to ## Hands off to
- `diagnose`: when a finding exposes a root cause that requires deeper troubleshooting. - `diagnose`: when a finding exposes a root cause that requires deeper troubleshooting.
- `verify-slice`: to execute behavioral and runtime verification scenarios. - `verify-slice`: to execute behavioral and runtime verification scenarios.
- `git-commit`: when committing review fixes or test adjustments. - `git-manager`: when branching, committing review fixes, or rebasing.
+3 -3
View File
@@ -31,19 +31,19 @@ Redact secrets (tokens, keys, connection strings) from anything you print or sav
## Checkpoints ## Checkpoints
At risky or multi-system transitions (domain narrowed, hypothesis ruled out, change applied, At risky or multi-system transitions (domain narrowed, hypothesis ruled out, change applied,
ready to commit or deploy), pause and report in six short parts: ready to integrate or deploy), pause and report in six short parts:
**Current state** (known vs unknown), **Reasoning**, **Changes**, **Validation** **Current state** (known vs unknown), **Reasoning**, **Changes**, **Validation**
(expected vs actual), **Next action**, **Recovery** (how to roll back). (expected vs actual), **Next action**, **Recovery** (how to roll back).
For trivial issues, a one-sentence status is enough. For trivial issues, a one-sentence status is enough.
## Your call ## Your call
- Which hypothesis to chase when the evidence is ambiguous. - Which hypothesis to chase when the evidence is ambiguous.
- Approving any step that changes state: commit, push, deploy, data change. - Approving risky state transitions: push, deploy, data change, or exception-case Git operations per `profile/AGENTS.md`.
- Whether the root cause taught something worth recording. - Whether the root cause taught something worth recording.
## Done when ## Done when
- The fix is verified where the failure happened, and all temporary probes are removed. - The fix is verified where the failure happened, and all temporary probes are removed.
## Hands off to ## Hands off to
- `git-commit`: to package the fix once recovery is verified. - `git-manager`: for branch isolation, checkpoint commits, or recovery operations.
- `document`: when the investigation revealed a non-obvious failure mode or design flaw. - `document`: when the investigation revealed a non-obvious failure mode or design flaw.
+2 -2
View File
@@ -10,7 +10,7 @@ description: >-
# Document # Document
## Use when ## Use when
- `/document` at the end of a session, or a handoff from `diagnose`, `practice`, `git-commit`. - `/document` at the end of a session, or a handoff from `diagnose`, `practice`, `git-manager`.
- Routine fixes and chores need no document: a good commit message is enough. - Routine fixes and chores need no document: a good commit message is enough.
- Not for canonical repository documentation: use `reconcile-docs`. - Not for canonical repository documentation: use `reconcile-docs`.
@@ -52,4 +52,4 @@ A rich session may justify more than one (e.g. Debug Record + Discussion). Split
## Hands off to ## Hands off to
- `draft-curation`: to review and curate drafts staged into an inbox into lifecycle destinations. - `draft-curation`: to review and curate drafts staged into an inbox into lifecycle destinations.
- `git-commit`: to commit the document if it lives directly in a repo. - `git-manager`: to stage and commit the document if it lives directly in a repo.
+65
View File
@@ -0,0 +1,65 @@
---
name: git-manager
description: >-
Manage Git repository hygiene, branches, worktrees, incremental Conventional Commits,
history integration (rebase, squash, cherry-pick, merge), conflict stops, and
evidence-first reflog recovery. Use when creating branches or worktrees, committing
completed task checkpoints, integrating branches, or recovering lost commits. Not for
pull request lifecycle: use gitea-pr. Not for diff code inspection: use code-review.
---
# Git Manager
## Use when
- Creating dedicated branches or isolated worktrees before making edits.
- Recording clean, atomic Conventional Commits as coherent tasks finish, or slicing a dirty tree.
- Integrating branches (rebase, squash, merge, cherry-pick) or stopping cleanly on conflicts.
- Recovering lost commits, dangling refs, or broken working-tree state via reflog.
- Not for pull request creation or review threads: use `gitea-pr`.
- Not for multi-axis static diff evaluation: use `code-review`.
## Steps
1. **Inspect repository state.** Resolve repository root (`git rev-parse --show-toplevel`), active
branch, upstream tracking, working-tree status (`git status --short`), repo `AGENTS.md`
conventions, and `git log -n 5 --oneline`. Run all commands from the target repository root;
trust the diff over conversation claims.
2. **Branch and worktree isolation.** Enforce branch-before-edits (`git switch -c <name>`). For
parallel slices or spikes without disturbing the current working tree, manage isolated worktrees
per [references/worktrees.md](references/worktrees.md). Never remove a worktree containing
uncommitted or unmerged work without explicit confirmation.
3. **Incremental checkpoint commits.** Group coherent, independently revertible slices and format
messages per [references/commits.md](references/commits.md). Enforce the pre-commit gate: right
repo, explicit file or hunk staging (never blind `git add -A` over unrelated or scratch files),
relevant checks passing, zero secrets, and message faithful to the diff. Follow `profile/AGENTS.md`:
- **`delivery` mode on a non-default working branch**: commit each verified unit immediately
without pausing for approval, unless an exception applies (`main`/`master`, failing checks,
or unfamiliar working-tree edits).
- **`learning` mode**: list diff facts, ask 0-2 questions, and pause so the user writes the
commit message per `profile/learning-contract.md`. In `/practice`, let the user run the commands.
4. **Integration and history editing.** Rebase local unshared branches, squash noisy fixups, merge,
or cherry-pick per [references/history-editing.md](references/history-editing.md). On any
conflict: stop immediately, report conflicting files and hunks in prose, never guess resolution,
and offer clean `--abort`.
5. **Evidence-first recovery.** For lost commits, detached `HEAD`, or botched history edits, inspect
`git reflog` and `git fsck` before acting and restore into `recovery/<topic>` per
[references/recovery.md](references/recovery.md). Never run speculative `--hard` resets.
6. **Verify post-operation state.** Confirm branch ref, new commit SHA (`git log -n 3 --oneline`),
and remaining working-tree status (`git status --short`).
## Your call
- **Direct `main`/`master` commits or ambiguous dirty trees**: approve any commit on `main`/`master`
or choose how to slice unfamiliar pre-existing working-tree edits.
- **`learning` mode commit reasoning**: write the commit message and rationale per `learning-contract.md`.
- **Integration strategy and exceptions**: choose rebase vs. merge when non-obvious, and adjudicate
conflicts, reverts, or cherry-picks.
- **Destructive operations**: explicitly confirm with impact described first per `profile/AGENTS.md`
before `git reset --hard`, `git restore <file>`, `git clean -fd`, force-push, or dirty worktree removal.
## Done when
- Target branch, worktree, checkpoint commit, integration, or recovery branch is verified by SHA
and `git status --short` reflects expected leftover state.
## Hands off to
- `code-review`: when a branch or commit range is ready for multi-axis static diff review.
- `gitea-pr`: when verified commits are pushed and ready for pull request creation or update.
- `document`: when a commit or recovery surfaces a decision or insight worth recording separately.
+47
View File
@@ -0,0 +1,47 @@
# Incremental Checkpoint Commits
Reference for `git-manager`. Conventions for slicing changes, formatting Conventional Commits, enforcing pre-commit hygiene, and applying session-mode commit rules.
## 1. Slice Boundaries
- One slice equals one coherent change that can be understood, reviewed, or reverted on its own (for example: contract or schema first, test + minimal fix, documentation update separately when distinct).
- Commit incrementally as each task or sub-task passes its relevant checks. Do not hoard multiple completed tasks in an uncommitted working tree.
- Order slices so every commit builds cleanly on the preceding commit.
- Flag and exclude accidental additions: scratch scripts, `.env` files, build artifacts, debug logs, or unrelated formatting churn.
## 2. Staging Discipline
- Stage explicit paths (`git add <file1> <file2>`) or specific hunks (`git add -p`).
- Never run a blind `git add -A` or `git add .` when untracked files, local worktrees, or unrelated edits exist in the repository.
- Inspect `git diff --cached --stat` and `git diff --cached` before committing to confirm that staged content matches the intended slice and nothing else.
## 3. Message Conventions and Depth Matching
- Use the repository's `AGENTS.md` commit types and scopes when defined; otherwise use Conventional Commits (`feat`, `fix`, `refactor`, `docs`, `test`, `build`, `ci`, `chore`, `perf`, `security`).
- Match message depth to change significance:
- **Trivial or mechanical**: concise imperative subject line only (`<= 72` characters).
- **Multi-part slice**: subject line + concise bullet list of concrete behavioral changes.
- **Non-obvious constraint or trade-off**: subject line + bullets + `Rationale:` line explaining why this approach was chosen over alternatives.
- Link issues (`Closes #<id>` or `Refs #<id>`) only when the commit or branch genuinely satisfies those criteria.
- Trust the staged diff over conversation claims; never overclaim untested behavior.
## 4. Deterministic Pre-Commit Gate
Verify all four checks before creating any commit:
1. **Repository and branch**: `git rev-parse --show-toplevel` matches the target repository and active branch matches intent.
2. **Scoped index**: `git diff --cached` contains only this slice.
3. **Verification**: relevant tests, linters, or builds for the touched surface have run and passed.
4. **Secret scan**: zero tokens, keys, passwords, or private connection strings appear in `git diff --cached`.
## 5. Session Modes and Exception Stops
- **`delivery` mode on a non-default working branch**:
Once the pre-commit gate passes and none of the exception stops below apply, execute `git commit`, verify `git log -1 --oneline` and `git status --short`, and continue working without pausing for approval.
- **Exception stops (always pause for human decision per `profile/AGENTS.md`)**:
1. Active branch is `main`, `master`, or detached `HEAD`.
2. Relevant checks failed and cannot be resolved within current task scope (never silently waive failing checks).
3. Working tree contains unfamiliar modifications or ambiguous untracked files not produced by the current task; present 2-3 slicing options (recommended first) exposing files and consequences.
4. Operation involves `git revert`, `cherry-pick`, or rewriting shared history.
- **`learning` mode (`profile/learning-contract.md`)**:
For each slice, state the facts (files, behavior changed, checks present or missing, risks) and ask 0-2 questions drawn from the diff. Pause so the user writes the commit message. Evaluate the user's draft against the diff (`correct`, `missing`, `wrong`, `unsupported` + assistance level) and let them revise. Write a message only if explicitly asked, recording `shown-solution`.
- **`/practice` active**:
Stop after slice inspection and message calibration: explain the staging boundary and let the user run the `git add` and `git commit` commands directly.
@@ -12,11 +12,15 @@ Rules for rewriting or combining history. Read before any of these operations.
- On conflicts: stop immediately. Inspect `git status --short` and conflicting hunks. Never guess resolution. Offer `git rebase --abort` to return cleanly to prior state if resolution is uncertain. - On conflicts: stop immediately. Inspect `git status --short` and conflicting hunks. Never guess resolution. Offer `git rebase --abort` to return cleanly to prior state if resolution is uncertain.
## Cherry-pick ## Cherry-pick
1. Inspect the source commit and what it depends on. 1. Inspect the source commit and what it depends on, and confirm approval with the user per `profile/AGENTS.md` before executing.
2. Confirm the target working tree is clean. 2. Confirm the target working tree is clean.
3. Cherry-pick, inspect the resulting diff, run validation. 3. Cherry-pick, inspect the resulting diff, run validation.
4. On conflicts or hidden dependencies: stop and report. Offer `git cherry-pick --abort`. 4. On conflicts or hidden dependencies: stop and report. Offer `git cherry-pick --abort`.
## Revert
- Confirm target SHA, blast radius, and user approval per `profile/AGENTS.md` before running `git revert`.
- Run validation after creating the revert commit; on conflicts, stop and offer `git revert --abort`.
## Merge ## Merge
- Follow the repo's integration policy (merge commit vs fast-forward vs rebase). - Follow the repo's integration policy (merge commit vs fast-forward vs rebase).
- Keep merge commits when the branch shape tells a useful story (long-running feature work). - Keep merge commits when the branch shape tells a useful story (long-running feature work).
@@ -1,6 +1,6 @@
# Evidence-First Git Recovery # Evidence-First Git Recovery
Reference for `git-workspace`. Procedures for diagnosing and recovering lost commits, detached heads, botched rebases, or corrupted refs using observable evidence. Reference for `git-manager`. Procedures for diagnosing and recovering lost commits, detached heads, botched rebases, or corrupted refs using observable evidence.
## Core Invariant ## Core Invariant
Never propose a destructive command (`git reset --hard`, `git checkout -f`, `git clean -fd`) as a speculative remedy. Destructive commands discard uncommitted files permanently. Always inspect evidence first, locate candidate commit SHAs, and restore state into a new named branch. Never propose a destructive command (`git reset --hard`, `git checkout -f`, `git clean -fd`) as a speculative remedy. Destructive commands discard uncommitted files permanently. Always inspect evidence first, locate candidate commit SHAs, and restore state into a new named branch.
@@ -1,6 +1,6 @@
# Git Worktrees # Git Worktrees
Reference for `git-workspace`. Manage isolated working trees linked to the same underlying Git repository without cloning or stashing. Reference for `git-manager`. Manage isolated working trees linked to the same underlying Git repository without cloning or stashing.
## Use Cases ## Use Cases
- Working on a quick fix or spike without stashing or switching branches in your main working tree. - Working on a quick fix or spike without stashing or switching branches in your main working tree.
-50
View File
@@ -1,50 +0,0 @@
---
name: git-workspace
description: >-
Manage Git branches, worktrees, history integration (rebase, squash, cherry-pick),
conflict stops, and evidence-first reflog recovery. Use when creating branches or
worktrees, synchronizing branches, editing history, or recovering lost commits.
Not for slicing checkpoint commits: use git-commit.
---
# Git Workspace
## Use when
- Creating dedicated feature branches or isolated worktrees before making edits.
- Integrating branches (rebase, squash, merge, cherry-pick) or resolving conflicts.
- Recovering lost commits, dangling refs, or broken working-tree state via reflog.
- Not for slicing uncommitted diffs into checkpoint commits: use `git-commit`.
## Steps
1. **Inspect state.** Resolve target repository root (`git rev-parse --show-toplevel`), active branch,
upstream tracking, clean vs. dirty status (`git status --short`), and reflog head. All commands execute
strictly from the target repository root.
2. **Branch and worktree management.** Enforce the branch-before-edits invariant. Create dedicated feature
branches (`git switch -c <name>`). When working across parallel tasks or spikes without disturbing current
working-tree state, create an isolated worktree following [references/worktrees.md](references/worktrees.md).
Never remove a worktree containing uncommitted or unmerged work without explicit confirmation.
3. **Integration and history editing.** Rebase local unshared branches onto upstream base; collapse fixup
checkpoints via squash; cherry-pick with dependency checks. On any merge or rebase conflict: stop immediately,
report conflicting files and hunks in prose, never guess resolution, and offer clean abort (`git rebase --abort`).
Follow [references/history-editing.md](references/history-editing.md).
4. **Evidence-first recovery.** When a commit, branch, or working-tree state appears lost or corrupted, inspect
evidence first (`git reflog`, `git fsck`, `git branch -v`) to identify exact candidate SHAs and timestamps
before proposing any fix. Never run destructive resets (`git reset --hard`) as a speculative remedy. Restore
discovered state into a dedicated recovery branch. Follow [references/recovery.md](references/recovery.md).
5. **Verify post-operation state.** Confirm target ref, commit log (`git log -n 3 --oneline`), and clean working
tree before concluding.
## Your call
- **Branch and worktree naming and target paths**: choose names and locations for new branches or worktrees.
- **Integration strategy**: choose rebase vs. merge when an architectural choice exists.
- **Conflict resolution**: adjudicate conflicting hunks when git stops during integration.
- **Consequential and destructive actions**: require explicit confirmation with impact described first per
`profile/AGENTS.md` before running destructive commands (`git reset --hard`, force-push, worktree removal).
## Done when
- Target branch or worktree is created, integrated, or safely cleaned up; or lost ref is restored to a named
branch with observable verification evidence.
## Hands off to
- `git-commit`: when code changes are ready to be sliced, reviewed, and committed.
- `code-review`: when a branch or PR diff is ready for multi-axis static review before integration.
+2 -2
View File
@@ -13,7 +13,7 @@ description: >-
- Decomposing a project, feature request, or technical plan into trackable Gitea units. - Decomposing a project, feature request, or technical plan into trackable Gitea units.
- Creating or editing milestones and issues with falsifiable acceptance criteria. - Creating or editing milestones and issues with falsifiable acceptance criteria.
- Setting rolling planning horizons for multi-phase epics. - Setting rolling planning horizons for multi-phase epics.
- Not for branch or worktree management: use `git-workspace`. - Not for branch or worktree management: use `git-manager`.
- Not for pull request lifecycle or review tracking: use `gitea-pr`. - Not for pull request lifecycle or review tracking: use `gitea-pr`.
## Steps ## Steps
@@ -48,5 +48,5 @@ description: >-
acceptance criteria. acceptance criteria.
## Hands off to ## Hands off to
- `git-workspace`: to create dedicated branches or worktrees for the decomposed issues. - `git-manager`: to create dedicated branches or worktrees for the decomposed issues.
- `gitea-pr`: to link, review, and close issues via pull requests. - `gitea-pr`: to link, review, and close issues via pull requests.
+3 -4
View File
@@ -4,7 +4,7 @@ description: >-
Manage pull request lifecycle on Gitea: verify branch readiness, synthesize structured PR Manage pull request lifecycle on Gitea: verify branch readiness, synthesize structured PR
descriptions from code-review and verify-slice evidence packets, link issues, digest review descriptions from code-review and verify-slice evidence packets, link issues, digest review
feedback, and report merge readiness. Not for code inspection: use code-review. Not for feedback, and report merge readiness. Not for code inspection: use code-review. Not for
runtime QA: use verify-slice. Not for Git branch or merge mechanics: use git-workspace. runtime QA: use verify-slice. Not for Git branch, commit, or merge mechanics: use git-manager.
--- ---
# Gitea PR # Gitea PR
@@ -15,7 +15,7 @@ description: >-
- Tracking review comments, requested changes, and CI checks toward merge readiness. - Tracking review comments, requested changes, and CI checks toward merge readiness.
- Not for static code inspection: use `code-review`. - Not for static code inspection: use `code-review`.
- Not for runtime behavioral verification: use `verify-slice`. - Not for runtime behavioral verification: use `verify-slice`.
- Not for branch creation, rebasing, or local history integration: use `git-workspace`. - Not for branch creation, committing, rebasing, or local history integration: use `git-manager`.
## Steps ## Steps
1. **Verify branch readiness.** Confirm the local working tree is clean (`git status --short`), 1. **Verify branch readiness.** Confirm the local working tree is clean (`git status --short`),
@@ -57,5 +57,4 @@ description: >-
## Hands off to ## Hands off to
- `code-review`: if the diff changes and needs renewed static inspection. - `code-review`: if the diff changes and needs renewed static inspection.
- `verify-slice`: if new code requires runtime verification. - `verify-slice`: if new code requires runtime verification.
- `git-commit`: to package review fixes into atomic commits. - `git-manager`: to commit review fixes, rebase, or update the branch against upstream base.
- `git-workspace`: to rebase or update the branch against upstream base.
+2 -2
View File
@@ -12,7 +12,7 @@ Draft (WIP) -> Review -> Changes Requested -> Ready for Merge -> Merged
1. **Draft (WIP)**: PR opened early for visibility. In Gitea, prefixed with `WIP:` or flagged `--draft`. CI may run; reviews are informal. 1. **Draft (WIP)**: PR opened early for visibility. In Gitea, prefixed with `WIP:` or flagged `--draft`. CI may run; reviews are informal.
2. **Review**: Feature complete, working tree clean, static `code-review` and runtime `verify-slice` evidence packets attached. Ready for formal audit. 2. **Review**: Feature complete, working tree clean, static `code-review` and runtime `verify-slice` evidence packets attached. Ready for formal audit.
3. **Changes Requested**: Reviewer identified defects, missing tests, or security concerns. Agent addresses feedback via `git-commit` and refreshes evidence. 3. **Changes Requested**: Reviewer identified defects, missing tests, or security concerns. Agent addresses feedback, commits fixes via `git-manager`, and refreshes evidence.
4. **Ready for Merge**: All review threads resolved, static review confirms `Ready`, runtime checks pass, and mergeability is green. 4. **Ready for Merge**: All review threads resolved, static review confirms `Ready`, runtime checks pass, and mergeability is green.
5. **Merged**: Merged into target base branch by the human owner. Associated issues are closed automatically by Gitea. 5. **Merged**: Merged into target base branch by the human owner. Associated issues are closed automatically by Gitea.
@@ -70,7 +70,7 @@ When comments or change requests arrive on a PR:
- *Nits / Polish*: Minor style preferences that do not violate repo standards (human owner decides priority). - *Nits / Polish*: Minor style preferences that do not violate repo standards (human owner decides priority).
3. **Implement fixes on the feature branch**: 3. **Implement fixes on the feature branch**:
- Use `tdd` or direct edits. - Use `tdd` or direct edits.
- Commit fixes using `git-commit` with conventional commit scope (e.g. `fix(gitea-pr): address review feedback`). - Commit fixes incrementally following `git-manager` conventions (e.g. `fix(gitea-pr): address review feedback`).
4. **Re-verify after changes**: 4. **Re-verify after changes**:
- Run `code-review` to confirm the updated diff fingerprint is clean. - Run `code-review` to confirm the updated diff fingerprint is clean.
- Run `verify-slice` to substantiate runtime assertions. - Run `verify-slice` to substantiate runtime assertions.
+8 -8
View File
@@ -11,7 +11,7 @@ description: >-
## Use when ## Use when
- `flake.lock` has uncommitted modifications after updating inputs. - `flake.lock` has uncommitted modifications after updating inputs.
- Inspecting, auditing, or reviewing revisions introduced by flake updates. - Inspecting, auditing, or reviewing revisions introduced by flake updates.
- Not for general git diff inspections (use `/git-commit`). - Not for general Git operations or history management (use `/git-manager`).
- Not for troubleshooting unrelated NixOS build failures (use `/diagnose`). - Not for troubleshooting unrelated NixOS build failures (use `/diagnose`).
## Steps ## Steps
@@ -27,20 +27,20 @@ description: >-
3. **Validate the flake.** Run `nix flake check` to ensure metadata, inputs, and derivations 3. **Validate the flake.** Run `nix flake check` to ensure metadata, inputs, and derivations
evaluate cleanly. If the repository defines host or package builds, optionally run evaluate cleanly. If the repository defines host or package builds, optionally run
dry builds without switching or activating. dry builds without switching or activating.
4. **Synthesize changes and suggest commit message.** Summarize all inspected inputs, 4. **Synthesize changes and prepare commit.** Summarize all inspected inputs, noting their
noting their updated versions and key upstream changes. Suggest a Conventional Commit updated versions and key upstream changes. In `delivery` mode, draft a Conventional Commit
message (e.g. `chore(flake): bump <input> to <rev>` or `chore(deps): update inputs`). message (e.g. `chore(flake): bump <input> to <rev>`); in `learning` mode, let the user write it.
5. **Hand off.** Hand off to `git-commit` to stage `flake.lock` and execute the commit. 5. **Hand off.** Hand off to `git-manager` to stage `flake.lock` and commit per session-mode rules.
## Your call ## Your call
- Deciding whether to accept an input update or roll it back. - Deciding whether to accept an input update or roll it back.
- Choosing whether to run additional dry builds beyond `nix flake check`. - Choosing whether to run additional dry builds beyond `nix flake check`.
- Approving the suggested commit message. - Approving the commit on `main`/`master`, or writing the message in `learning` mode per `profile/AGENTS.md`.
## Done when ## Done when
- All updated inputs have been reviewed, `nix flake check` passes cleanly, the change - All updated inputs have been reviewed, `nix flake check` passes cleanly, the change
summary and commit message are produced, and handoff to `git-commit` is ready. summary is produced, and handoff to `git-manager` is ready.
## Hands off to ## Hands off to
- `git-commit`: to review staged changes and create the commit. - `git-manager`: to stage `flake.lock` and record the commit.
- `diagnose`: if `nix flake check` or derivation evaluation fails. - `diagnose`: if `nix flake check` or derivation evaluation fails.
+2 -2
View File
@@ -55,7 +55,7 @@ description: >-
but are not presented as proof that the shell works. but are not presented as proof that the shell works.
- **Unverified**: version-sensitive behavior not checked against the pinned revision, - **Unverified**: version-sensitive behavior not checked against the pinned revision,
platforms not tested, and anything inferred rather than observed. platforms not tested, and anything inferred rather than observed.
- **User actions**: for example, track new files (by hand or with `git-commit`) and rerun - **User actions**: for example, track new files (by hand or with `git-manager`) and rerun
the blocked checks. the blocked checks.
## Your call ## Your call
@@ -71,6 +71,6 @@ description: >-
report has a row for every validation level. report has a row for every validation level.
## Hands off to ## Hands off to
- `git-commit`: to track or commit the new and changed files. - `git-manager`: to track or commit the new and changed files.
- `diagnose`: when the root cause lies outside Nix (application bug, host fault). - `diagnose`: when the root cause lies outside Nix (application bug, host fault).
- `inspect-flake-update`: to review a lock update. - `inspect-flake-update`: to review a lock update.
@@ -46,7 +46,7 @@ validation, never as proof that the devShell starts or compiles the project.
output. Never report a command that was not executed in this session. output. Never report a command that was not executed in this session.
- **Untracked files in Git-backed flakes**: when a newly created `flake.nix` or imported local - **Untracked files in Git-backed flakes**: when a newly created `flake.nix` or imported local
file is untracked, Git-filtered flake evaluation cannot see it. file is untracked, Git-filtered flake evaluation cannot see it.
- Do **not** run `git add` (staging belongs to the user / `git-commit`). - Do **not** run `git add` inside `nix-devshell` validation (staging and commits belong to `git-manager`).
- Do **not** substitute `path:.` by default (it bypasses Git source filtering, copies the whole - Do **not** substitute `path:.` by default (it bypasses Git source filtering, copies the whole
directory including untracked files into the Nix store, and does not test what contributors directory including untracked files into the Nix store, and does not test what contributors
will run). will run).
@@ -55,7 +55,7 @@ validation, never as proof that the devShell starts or compiles the project.
- Still run any check that does not depend on the untracked flake (static review of the file, - Still run any check that does not depend on the untracked flake (static review of the file,
syntax check with `nix-instantiate --parse <file>`, or validation of an existing `shell.nix`), syntax check with `nix-instantiate --parse <file>`, or validation of an existing `shell.nix`),
and state clearly that parsing does not prove evaluation, realization, or runtime. and state clearly that parsing does not prove evaluation, realization, or runtime.
- Under **User actions**, ask the user to track the file (manually or via `git-commit`) and - Under **User actions**, note that the file must be tracked (manually or via `git-manager`) and
rerun the blocked levels. rerun the blocked levels.
## 3. Symptom-to-evidence table ## 3. Symptom-to-evidence table
@@ -64,7 +64,7 @@ Treat symptoms as hypotheses. Inspect first, then make the smallest justified ch
| Symptom | Phase | What to inspect first | Smallest next step | | Symptom | Phase | What to inspect first | Smallest next step |
|---|---|---|---| |---|---|---|---|
| Flake says a visible local file does not exist | Evaluation | `git status` (is the path untracked?) | Explain Git source filtering; do not stage; ask user to track the path (or use `git-commit`). | | Flake says a visible local file does not exist | Evaluation | `git status` (is the path untracked?) | Explain Git source filtering; do not stage inside `nix-devshell`; track the path via `git-manager` (or ask user on `main`/`master`). |
| `experimental Nix feature 'nix-command' / 'flakes' is disabled` | CLI / Evaluation | `nix --version`, `/etc/nix/nix.conf`, `~/.config/nix/nix.conf`, project docs | Follow the project's documented invocation or use classic `shell.nix` if supported. | | `experimental Nix feature 'nix-command' / 'flakes' is disabled` | CLI / Evaluation | `nix --version`, `/etc/nix/nix.conf`, `~/.config/nix/nix.conf`, project docs | Follow the project's documented invocation or use classic `shell.nix` if supported. |
| `attribute 'devShells.<sys>.default' missing` or unsupported system | Evaluation / Realization | Flake outputs and package `meta.platforms` in pinned nixpkgs | Add only required systems; wrap OS-specific packages in `lib.optionals`. | | `attribute 'devShells.<sys>.default' missing` or unsupported system | Evaluation / Realization | Flake outputs and package `meta.platforms` in pinned nixpkgs | Add only required systems; wrap OS-specific packages in `lib.optionals`. |
| `cannot coerce a function to a string` in package list | Evaluation | Error trace and the `packages` / `buildInputs` list syntax | Parenthesize function application inside lists (`(pkgs.foo.withPackages ...)`), or pass required args. | | `cannot coerce a function to a string` in package list | Evaluation | Error trace and the `packages` / `buildInputs` list syntax | Parenthesize function application inside lists (`(pkgs.foo.withPackages ...)`), or pass required args. |
+1 -1
View File
@@ -47,4 +47,4 @@ Never edit files in working repo or run implementation commands unless explicitl
## Hands off to ## Hands off to
- `document`: when a durable insight came out of the session. - `document`: when a durable insight came out of the session.
- `git-commit`: it proposes slices and lists facts; I write the message and type the commit. - `git-manager`: in `learning` mode or `/practice`, lists diff facts while I write the message and run the commit.
+1 -1
View File
@@ -37,4 +37,4 @@ description: >-
- The Reconciliation Report is approved by the user, canonical documentation files are written or updated, and consistency validation passes cleanly. - The Reconciliation Report is approved by the user, canonical documentation files are written or updated, and consistency validation passes cleanly.
## Hands off to ## Hands off to
- `git-commit`: to review diffs and commit updated documentation files. - `git-manager`: for branch setup or committing updated documentation files.
+1 -1
View File
@@ -37,4 +37,4 @@ description: >-
- `code-review`: to inspect the resulting diff, code smells, defensive invariants, and test seam integrity. - `code-review`: to inspect the resulting diff, code smells, defensive invariants, and test seam integrity.
- `verify-slice`: when the slice also needs live runtime, browser DOM, or multi-service verification. - `verify-slice`: when the slice also needs live runtime, browser DOM, or multi-service verification.
- `diagnose`: when an unexpected test or fixture failure needs root-cause investigation. - `diagnose`: when an unexpected test or fixture failure needs root-cause investigation.
- `git-commit`: to commit cohesive vertical slices. - `git-manager`: for branch isolation or committing cohesive vertical slices.
+1 -1
View File
@@ -33,5 +33,5 @@ description: >-
## Hands off to ## Hands off to
- `diagnose`: when a failed or blocked check needs root-cause investigation. - `diagnose`: when a failed or blocked check needs root-cause investigation.
- `git-commit`: when packaging approved verification or repair changes. - `git-manager`: when committing verified repair changes or managing test branches.
- `document`: when verification uncovers a durable architectural insight or decision. - `document`: when verification uncovers a durable architectural insight or decision.