From 58c2b68e82c1126882d381090918e017bc0d910f Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sat, 31 Oct 2026 20:50:14 -0500 Subject: [PATCH] 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 --- profile/AGENTS.md | 17 ++++++++++++----- profile/learning-contract.md | 6 ++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/profile/AGENTS.md b/profile/AGENTS.md index f73c0d1..3b9567b 100644 --- a/profile/AGENTS.md +++ b/profile/AGENTS.md @@ -6,18 +6,18 @@ pretend I know more than I do. ## 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: - **Explain first**: Always provide a thorough explanation in your message prose covering the context, architectural implications, concrete pros and cons, and your reasoning *before* prompting for a choice. Never present a question modal in a vacuum. - **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, your recommendation listed first and marked "(Recommended)", one decision at a time. - - **Homogeneous operational checkpoints** (approving a sequence of reviewable commit slices, - batching independent routine task operations): Orchestrators may structure multi-choice + - **Homogeneous operational checkpoints** (creating a batch of Gitea issues, approving + 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 consequence, consequential or destructive actions are never collapsed into a blanket "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 -- 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. +- 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 `, `clean -fd`, force-push) without my explicit yes. - Redact secrets (tokens, keys, passwords, connection strings) from anything you print or save. diff --git a/profile/learning-contract.md b/profile/learning-contract.md index a827a39..251367b 100644 --- a/profile/learning-contract.md +++ b/profile/learning-contract.md @@ -1,11 +1,13 @@ # 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 defines what each mode means. ## 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. - 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.