changeledger 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,9 @@ current throughout execution.
13
13
  ## Git protects traceability
14
14
 
15
15
  Never implement approved changes on `main`, `master`, or `dev`; create or switch
16
- to a work branch or ask the human before continuing. Inspect the worktree first. If
16
+ to a work branch or ask the human before continuing. When the config declares
17
+ `git.integration_branch`, create change branches from it and integrate the
18
+ finished result into it; `main` stays reserved for releases. Inspect the worktree first. If
17
19
  unrelated changes exist, do not include them silently; ask the human whether to
18
20
  stash, commit, ignore or include them before changing the worktree.
19
21
 
@@ -35,7 +37,18 @@ Commit messages use the canonical shape:
35
37
  feat(scope): description [#20260629-234939]
36
38
  ```
37
39
 
38
- Use the actual change id and the appropriate conventional type. If shared files make a combined commit
40
+ Use the actual change id and the appropriate conventional type. One change keeps
41
+ its marker at the end of the subject. Referencing more than one change keeps the
42
+ subject clean and puts separate brackets in one canonical body line:
43
+ `ChangeLedger: [#A] [#B]` — never a comma list in one bracket. Ledger
44
+ meta-commits (status, review, log, archive) carry markers like any other commit;
45
+ only merge commits and `chore(release)` prep are exempt. `changeledger commit -m
46
+ "<type>(<scope>): <desc>" [--id <id>]...` composes and creates the commit for
47
+ you: it resolves the single `in-progress` change automatically when `--id` is
48
+ omitted, and fails without committing if that is ambiguous or the subject isn't
49
+ conventional. `changeledger check --commits [<base>]` lints `<base>..HEAD` for
50
+ either canonical marker placement with the same
51
+ exemptions — run it before requesting review. If shared files make a combined commit
39
52
  unavoidable, record it in Log or the handoff and name every change sharing the
40
53
  surface.
41
54
 
@@ -53,6 +66,7 @@ Useful mutation commands:
53
66
  - `changeledger owner <id> <name|->`
54
67
  - `changeledger review <id> pass|fail`
55
68
  - `changeledger check [id]`
69
+ - `changeledger commit -m "<type>(<scope>): <desc>" [--id <id>]...`
56
70
 
57
71
  When implementation and every task are complete, move to `in-review` if the type
58
72
  requires independent review by running this ordered gate — do not reconstruct it from memory:
@@ -38,7 +38,7 @@ headings. Required and optional frontmatter:
38
38
  ---
39
39
  id: "20260613-134548"
40
40
  title: Short, clear title
41
- type: feature # feature | bug | audit | refactor | chore
41
+ type: feature # feature | bug | audit | refactor | chore | quick
42
42
  status: draft # lifecycle value
43
43
  created: 2026-06-13T13:45:48Z # full ISO 8601 UTC
44
44
  depends_on: [] # change ids or external project:id refs
@@ -78,11 +78,23 @@ Default activation matrix:
78
78
  | audit | ✓ | ✓ | — | — | — | ✓ |
79
79
  | refactor | ✓ | — | ✓ | — | ✓ | ✓ |
80
80
  | chore | ✓ | — | — | — | ✓ | — |
81
+ | quick | ✓ | — | — | — | — | ✓ |
81
82
 
82
83
  The configured matrix is authoritative. For bugs, Investigation contains the
83
84
  root cause; for audits, it is the core analysis. Proposal includes the chosen
84
85
  solution, discarded alternatives and scenarios.
85
86
 
87
+ `quick` is a lighter lane for small, reversible, single-concern work that does
88
+ not expand public surface or persistent truth (`specs/`): document only
89
+ Request and Log, ~10-15 lines. It keeps the same human `draft → approved` gate
90
+ and `[#id]` commit marker as any other type, skipping only `in-review`. If
91
+ scope grows mid-execution beyond that eligibility, discard the change and
92
+ recreate it under the correct type instead of continuing under `quick`.
93
+
94
+ Before writing Investigation, run `changeledger search <terms from the request>`
95
+ and record anything relevant as `depends_on` or a mention — do not rediscover
96
+ work another change or spec already covers.
97
+
86
98
  When a relationship, flow or architecture is clearer visually, use a Mermaid
87
99
  block and keep its text as the source; the viewer renders it.
88
100
 
@@ -155,6 +167,7 @@ title, stage prose, scenario content and task descriptions.
155
167
  - `changeledger check [id]` — validate one change or the repository.
156
168
  - `changeledger list [--status S] [--type T] [--json]` — inspect/filter changes.
157
169
  - `changeledger show <id> [--json]` — inspect one resolved change.
170
+ - `changeledger search <terms...> [--type T] [--status S] [--json]` — find related changes and specs by content.
158
171
  - `changeledger owner <id> <name|->` — set or clear responsibility.
159
172
 
160
173
  Run `changeledger <command> --help` for exact options; the commands support the