Committing
Author and message, amend with its safety checks, and signing pass-through to your own configuration.
The composer
Subject with a character counter, an optional description, seven conventional type chips (feat, fix, chore, refactor, docs, test, perf), an amend checkbox, and a commit button. ⌘↵ commits from the message field.
Your author identity comes from the identity profile bound to the repository. Signing is a checkbox that passes through to your own Git configuration: see below.
The commit request refuses drift
A commit carries proof of the state you were looking at when you composed it. The core re-checks each value under the repository lease before anything is journalled, and refuses the commit if any of them moved.
expectedIndexTreeOid: the tree the staged index produced in the snapshot you reviewed.expectedStagedPaths: the staged paths from that same snapshot, compared as a sorted list.expectedHeadRefandexpectedHeadOid: where HEAD pointed, and at what.requestId: an idempotency key. Reusing it replays the original outcome and never dispatches a second commit.
Those values also appear as preconditions on the plan, so a stale composer is visible before you confirm rather than as a surprise afterwards.
How the commit is actually made
A journalled commit is not git commit. It is two plumbing steps against the exact tree you reviewed.
git commit-tree --no-gpg-sign <tree> -p <parent> -m <subject>git update-ref -m "aegis commit" refs/heads/main <new-oid>
This has one consequence worth stating plainly: repository hooks do not run for commits made in GitAegis. commit-tree does not invoke them. If executable hooks exist in .git/hooks, the plan tells you how many and says they will not run; commits you make in your terminal are untouched by this.
Signing
The commit object is built with -S when you asked for a signature and --no-gpg-sign when you did not. Being explicit in both directions is deliberate: a repository that sets commit.gpgSign=true must not silently sign a commit you asked to leave unsigned. GitAegis does not manage keys, hold a passphrase, or reimplement signing: your Git and your signing configuration do the work. The same applies to signed annotated tags, where the plan warns that Git will reject the tag and create no ref if the signing identity or its agent is unavailable.
Amend, and when it stops being routine
Amend is planned as its own operation type, never as a commit with a flag. Before it runs, the plan checks every locally known remote-tracking ref for one that already contains the tip commit, not only the configured upstream, because a branch pushed without -u is still published history. If it finds one, the operation is escalated and the plan names the ref.
| Operation | Risk | Captured first |
|---|---|---|
| Commit | safe | Nothing |
| Commit onto a new branch | caution | Light checkpoint: refs, HEAD, index, patches |
| Amend an unpublished tip | safe | Nothing |
| Amend a published tip | caution | Light checkpoint: refs, HEAD, index, patches |
A safe commit has no app-driven undo
Nothing is captured for a plain commit, and the plan says so rather than implying a rollback exists: manual Git recovery is still available through the reflog, but the Activity centre has no checkpoint to restore. The escalated cases are the ones that get one.