llm-wb 0.1.0-beta.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.
- package/.agentic/00.chat/README.md +78 -0
- package/.agentic/00.chat/checklists/before-commit.md +195 -0
- package/.agentic/00.chat/checklists/llm-workbench-public-beta.md +94 -0
- package/.agentic/00.chat/commands/README.md +108 -0
- package/.agentic/00.chat/migration-plan.md +132 -0
- package/.agentic/00.chat/skills/session-summary.md +48 -0
- package/.agentic/00.chat/standards/llm-workbench-public-beta-contract.md +216 -0
- package/.agentic/00.chat/standards/main-refresh-conflict-types.md +358 -0
- package/.agentic/00.chat/workflows/README.md +40 -0
- package/.agentic/00.chat/workflows/bootstrap-chat-workbench-repo.md +212 -0
- package/.agentic/00.chat/workflows/chat-cleanup.md +102 -0
- package/.agentic/00.chat/workflows/chat-commit.md +56 -0
- package/.agentic/00.chat/workflows/chat-promote-to-main.md +169 -0
- package/.agentic/00.chat/workflows/chat-refresh-from-main.md +242 -0
- package/.agentic/00.chat/workflows/chat-reporting.md +69 -0
- package/.agentic/00.chat/workflows/chat-start.md +173 -0
- package/.agentic/00.chat/workflows/chat-upstream-reusable-lesson.md +123 -0
- package/.agentic/shared/standards/README.md +32 -0
- package/.agentic/shared/standards/upstream-repo-bootstrap.md +131 -0
- package/.agentic/shared/workflows/README.md +35 -0
- package/.agentic/shared/workflows/capability-resolution-workflow.md +189 -0
- package/.agentic/shared/workflows/change-shared-process.md +92 -0
- package/.cursor/rules/llm-workbench.mdc +17 -0
- package/.github/copilot-instructions.md +16 -0
- package/AGENTS.md +63 -0
- package/CLAUDE.md +16 -0
- package/CONTRIBUTING.md +57 -0
- package/LICENSE +21 -0
- package/LLM_WORKBENCH.md +17 -0
- package/README.md +98 -0
- package/SECURITY.md +44 -0
- package/bin/llm-workbench.js +672 -0
- package/docs/00.chat/README.md +47 -0
- package/docs/00.chat/llm-workbench-acceptance-matrix.md +55 -0
- package/docs/00.chat/script-layout.md +107 -0
- package/docs/adapting-to-your-repo.md +29 -0
- package/docs/concepts.md +38 -0
- package/docs/install.md +114 -0
- package/docs/public-beta-contract.md +45 -0
- package/docs/workflows.md +103 -0
- package/examples/minimal-repo/README.md +13 -0
- package/package.json +93 -0
- package/scripts/00.chat/README.md +46 -0
- package/scripts/00.chat/bootstrap/README.md +35 -0
- package/scripts/00.chat/bootstrap/audit-chat-bootstrap-file-set/README.md +39 -0
- package/scripts/00.chat/bootstrap/audit-chat-bootstrap-file-set/script.sh +213 -0
- package/scripts/00.chat/closeout/README.md +30 -0
- package/scripts/00.chat/closeout/build-closeout-prompt/README.md +35 -0
- package/scripts/00.chat/closeout/build-closeout-prompt/script.sh +124 -0
- package/scripts/00.chat/command/README.md +31 -0
- package/scripts/00.chat/command/close/README.md +30 -0
- package/scripts/00.chat/command/close/script.sh +25 -0
- package/scripts/00.chat/command/dispatcher/README.md +46 -0
- package/scripts/00.chat/command/dispatcher/script.sh +91 -0
- package/scripts/00.chat/command/dispatcher/smoke-test.sh +168 -0
- package/scripts/00.chat/command/new/README.md +32 -0
- package/scripts/00.chat/command/new/script.sh +28 -0
- package/scripts/00.chat/command/open-window/README.md +38 -0
- package/scripts/00.chat/command/open-window/script.sh +25 -0
- package/scripts/00.chat/command/package-scripts/README.md +34 -0
- package/scripts/00.chat/command/package-scripts/smoke-test.sh +113 -0
- package/scripts/00.chat/git/README.md +30 -0
- package/scripts/00.chat/git/cleanup-empty-chat-branches/README.md +36 -0
- package/scripts/00.chat/git/cleanup-empty-chat-branches/script.sh +243 -0
- package/scripts/00.chat/git/cleanup-empty-chat-branches/smoke-test.sh +136 -0
- package/scripts/00.chat/local-merge/README.md +30 -0
- package/scripts/00.chat/local-merge/list-active-chat-branches/README.md +29 -0
- package/scripts/00.chat/local-merge/list-active-chat-branches/script.sh +109 -0
- package/scripts/00.chat/local-merge/report-chat-branch-overlaps/README.md +29 -0
- package/scripts/00.chat/local-merge/report-chat-branch-overlaps/script.sh +142 -0
- package/scripts/00.chat/local-merge/verify-chat-ready-to-merge-local-main/README.md +33 -0
- package/scripts/00.chat/local-merge/verify-chat-ready-to-merge-local-main/script.sh +345 -0
- package/scripts/00.chat/local-merge/verify-chat-ready-to-merge-local-main/smoke-test.sh +244 -0
- package/scripts/00.chat/main-refresh/README.md +39 -0
- package/scripts/00.chat/main-refresh/apply-rehearsed-refresh/README.md +32 -0
- package/scripts/00.chat/main-refresh/apply-rehearsed-refresh/script.sh +198 -0
- package/scripts/00.chat/main-refresh/check-chat-is-current-with-main/README.md +30 -0
- package/scripts/00.chat/main-refresh/check-chat-is-current-with-main/script.sh +121 -0
- package/scripts/00.chat/main-refresh/classify-conflict/README.md +39 -0
- package/scripts/00.chat/main-refresh/classify-conflict/script.sh +169 -0
- package/scripts/00.chat/main-refresh/classify-conflict/smoke-test.sh +137 -0
- package/scripts/00.chat/main-refresh/classify-refresh-readiness/README.md +35 -0
- package/scripts/00.chat/main-refresh/classify-refresh-readiness/script.sh +171 -0
- package/scripts/00.chat/main-refresh/classify-refresh-readiness/smoke-test.sh +132 -0
- package/scripts/00.chat/main-refresh/rehearse-refresh-from-main/README.md +34 -0
- package/scripts/00.chat/main-refresh/rehearse-refresh-from-main/script.sh +124 -0
- package/scripts/00.chat/main-refresh/rehearse-refresh-from-main/smoke-test.sh +257 -0
- package/scripts/00.chat/main-refresh/show-main-update-status/README.md +31 -0
- package/scripts/00.chat/main-refresh/show-main-update-status/script.sh +73 -0
- package/scripts/00.chat/main-refresh/verify-conflict-audit/README.md +37 -0
- package/scripts/00.chat/main-refresh/verify-conflict-audit/script.sh +154 -0
- package/scripts/00.chat/main-refresh/verify-conflict-audit/smoke-test.sh +99 -0
- package/scripts/00.chat/metrics/README.md +35 -0
- package/scripts/00.chat/metrics/data/chat-pricing.json +107 -0
- package/scripts/00.chat/metrics/data/chat-pricing.schema.json +63 -0
- package/scripts/00.chat/metrics/estimate-chat-cost/README.md +40 -0
- package/scripts/00.chat/metrics/estimate-chat-cost/script.js +130 -0
- package/scripts/00.chat/migration/README.md +30 -0
- package/scripts/00.chat/migration/audit-chat-layer-migration/README.md +33 -0
- package/scripts/00.chat/migration/audit-chat-layer-migration/script.sh +127 -0
- package/scripts/00.chat/recovery/README.md +30 -0
- package/scripts/00.chat/recovery/import-active-paths-to-chat-worktree/README.md +76 -0
- package/scripts/00.chat/recovery/import-active-paths-to-chat-worktree/script.sh +212 -0
- package/scripts/00.chat/recovery/import-active-paths-to-chat-worktree/smoke-test.sh +162 -0
- package/scripts/00.chat/reporting/README.md +30 -0
- package/scripts/00.chat/reporting/generate-commit-log-summary/README.md +35 -0
- package/scripts/00.chat/reporting/generate-commit-log-summary/script.sh +299 -0
- package/scripts/00.chat/reporting/generate-commit-log-summary/smoke-test.sh +93 -0
- package/scripts/00.chat/reporting/report-chat-workspaces/README.md +32 -0
- package/scripts/00.chat/reporting/report-chat-workspaces/script.sh +82 -0
- package/scripts/00.chat/session-log/README.md +33 -0
- package/scripts/00.chat/session-log/check-commit-prerequisites/README.md +89 -0
- package/scripts/00.chat/session-log/check-commit-prerequisites/script.sh +121 -0
- package/scripts/00.chat/session-log/check-commit-prerequisites/smoke-test.sh +119 -0
- package/scripts/00.chat/session-log/check-commitlog-deletions/README.md +90 -0
- package/scripts/00.chat/session-log/check-commitlog-deletions/script.sh +131 -0
- package/scripts/00.chat/session-log/check-commitlog-deletions/smoke-test.sh +123 -0
- package/scripts/00.chat/session-log/checkpoint-chat-session-log/README.md +98 -0
- package/scripts/00.chat/session-log/checkpoint-chat-session-log/script.sh +126 -0
- package/scripts/00.chat/session-log/paths/README.md +38 -0
- package/scripts/00.chat/session-log/paths/lib.sh +133 -0
- package/scripts/00.chat/session-log/prepare-chat-session-before-commit/README.md +90 -0
- package/scripts/00.chat/session-log/prepare-chat-session-before-commit/script.sh +145 -0
- package/scripts/00.chat/session-log/read-current-chat-log/README.md +44 -0
- package/scripts/00.chat/session-log/read-current-chat-log/script.sh +92 -0
- package/scripts/00.chat/session-log/read-current-chat-log/smoke-test.sh +127 -0
- package/scripts/00.chat/session-log/record-chat-commit/README.md +133 -0
- package/scripts/00.chat/session-log/record-chat-commit/script.sh +394 -0
- package/scripts/00.chat/session-log/record-chat-commit/smoke-test.sh +227 -0
- package/scripts/00.chat/session-log/record-main-refresh-conflict/README.md +34 -0
- package/scripts/00.chat/session-log/record-main-refresh-conflict/script.sh +239 -0
- package/scripts/00.chat/session-log/rename-current-chat-log-folder/README.md +32 -0
- package/scripts/00.chat/session-log/rename-current-chat-log-folder/script.sh +112 -0
- package/scripts/00.chat/session-log/update-chat-log/README.md +32 -0
- package/scripts/00.chat/session-log/update-chat-log/script.sh +294 -0
- package/scripts/00.chat/startup/README.md +37 -0
- package/scripts/00.chat/startup/auto-start-missing-session/README.md +113 -0
- package/scripts/00.chat/startup/auto-start-missing-session/script.sh +54 -0
- package/scripts/00.chat/startup/resolve-current-chat-session/README.md +57 -0
- package/scripts/00.chat/startup/resolve-current-chat-session/script.sh +47 -0
- package/scripts/00.chat/startup/resolve-current-chat-session/smoke-test.sh +130 -0
- package/scripts/00.chat/startup/start-chat-session/README.md +197 -0
- package/scripts/00.chat/startup/start-chat-session/script.sh +330 -0
- package/scripts/00.chat/startup/start-chat-session/smoke-test.sh +182 -0
- package/scripts/00.chat/startup/start-new-chat/README.md +31 -0
- package/scripts/00.chat/startup/start-new-chat/script.sh +29 -0
- package/scripts/00.chat/transcript/README.md +36 -0
- package/scripts/00.chat/transcript/discover-codex-session-log/README.md +32 -0
- package/scripts/00.chat/transcript/discover-codex-session-log/script.sh +106 -0
- package/scripts/00.chat/transcript/register-codex-session-log/README.md +32 -0
- package/scripts/00.chat/transcript/register-codex-session-log/script.sh +115 -0
- package/scripts/00.chat/worktree/README.md +32 -0
- package/scripts/00.chat/worktree/check-write-location/README.md +87 -0
- package/scripts/00.chat/worktree/check-write-location/script.sh +95 -0
- package/scripts/00.chat/worktree/dirty-worktree-check/README.md +77 -0
- package/scripts/00.chat/worktree/dirty-worktree-check/script.sh +93 -0
- package/scripts/00.chat/worktree/ensure-chat-worktree/README.md +33 -0
- package/scripts/00.chat/worktree/ensure-chat-worktree/script.sh +132 -0
- package/scripts/00.chat/worktree/open-window/README.md +34 -0
- package/scripts/00.chat/worktree/open-window/script.sh +131 -0
- package/scripts/00.chat/worktree/paths/README.md +32 -0
- package/scripts/00.chat/worktree/paths/lib.sh +71 -0
- package/scripts/01.harness/artifact-metadata/check-headers/script.sh +522 -0
- package/scripts/01.harness/artifact-metadata/check-headers/smoke-test.sh +48 -0
- package/scripts/01.harness/check-deterministic-process-drift.sh +416 -0
- package/scripts/01.harness/check-governed-script-command-drift.sh +184 -0
- package/scripts/01.harness/run-governed-script.sh +178 -0
- package/scripts/install.sh +503 -0
- package/scripts/uninstall.sh +199 -0
- package/tests/smoke-test-install.sh +70 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<!-- agentic-artifact:
|
|
2
|
+
schema: agentic-artifact/v2
|
|
3
|
+
id: chat.readme
|
|
4
|
+
version: 1
|
|
5
|
+
status: active
|
|
6
|
+
layer: 00.chat
|
|
7
|
+
domain: governance
|
|
8
|
+
disciplines:
|
|
9
|
+
- agentic
|
|
10
|
+
kind: layer-readme
|
|
11
|
+
purpose: Explain the chat lifecycle governance layer and its canonical surfaces.
|
|
12
|
+
portability:
|
|
13
|
+
class: required
|
|
14
|
+
targets:
|
|
15
|
+
- llm-workbench
|
|
16
|
+
used_by:
|
|
17
|
+
- id: repo.agents
|
|
18
|
+
path: AGENTS.md
|
|
19
|
+
- id: chat.migration-plan
|
|
20
|
+
path: .agentic/00.chat/migration-plan.md
|
|
21
|
+
-->
|
|
22
|
+
# 00.chat Layer
|
|
23
|
+
|
|
24
|
+
## Purpose
|
|
25
|
+
|
|
26
|
+
Own chat lifecycle governance for this harness.
|
|
27
|
+
|
|
28
|
+
This layer covers chat creation, session metadata, chat-owned worktrees,
|
|
29
|
+
session logs, commit checkpoints, main-refresh coordination, closeout,
|
|
30
|
+
cleanup, shortcuts, and on-demand chat reports.
|
|
31
|
+
|
|
32
|
+
<!-- deterministic-check: allow reason="prompt routing may be manual or repo-specific; no universal script can decide whether a context router exists" -->
|
|
33
|
+
This layer does not assign a whole chat one durable layer, mode, or workflow.
|
|
34
|
+
Prompt interpretation uses the current request, repo assistant instructions,
|
|
35
|
+
and any repo-provided context router if one exists. When a router returns a
|
|
36
|
+
context packet, the chat layer may record the latest packet ID and summary for
|
|
37
|
+
continuity, but chat lifecycle metadata remains about branch, worktree, session
|
|
38
|
+
log, metrics, transcript, and git state.
|
|
39
|
+
|
|
40
|
+
## Source Of Truth
|
|
41
|
+
|
|
42
|
+
- Active chat state: current branch session log under `commitLogs/`
|
|
43
|
+
- Chat lifecycle workflows: `.agentic/00.chat/workflows/`
|
|
44
|
+
- Chat lifecycle checklists: `.agentic/00.chat/checklists/`
|
|
45
|
+
- Chat lifecycle skills: `.agentic/00.chat/skills/`
|
|
46
|
+
- Chat lifecycle standards: `.agentic/00.chat/standards/`
|
|
47
|
+
- Chat command shortcuts: `.agentic/00.chat/commands/`
|
|
48
|
+
- Chat lifecycle migration plan: `.agentic/00.chat/migration-plan.md`
|
|
49
|
+
- Public chat commands: `package.json` `chat:*` scripts
|
|
50
|
+
- Shared harness governance helpers: `scripts/01.harness/`
|
|
51
|
+
|
|
52
|
+
## Migration Policy
|
|
53
|
+
|
|
54
|
+
Move chat-specific instructions here. Retired compatibility paths should stay
|
|
55
|
+
retired unless an active session recovery explicitly requires a governed
|
|
56
|
+
restore.
|
|
57
|
+
|
|
58
|
+
Use `npm run chat:*` package scripts for public chat-layer command entrypoints.
|
|
59
|
+
The package scripts delegate to canonical capability scripts under
|
|
60
|
+
`scripts/00.chat/`.
|
|
61
|
+
|
|
62
|
+
Do not add new chat lifecycle scripts under `scripts/shared/git/` or
|
|
63
|
+
`scripts/shared/chat/`. Those locations were retired as compatibility surfaces;
|
|
64
|
+
new chat-owned behavior belongs under `scripts/00.chat/<domain>/<capability>/`.
|
|
65
|
+
|
|
66
|
+
Use `bash scripts/00.chat/migration/audit-chat-layer-migration/script.sh` to inspect the
|
|
67
|
+
current migration state before moving more chat lifecycle behavior.
|
|
68
|
+
|
|
69
|
+
Use `bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/session-log/record-main-refresh-conflict/script.sh`
|
|
70
|
+
to append the required session-log audit trail for governed main-refresh
|
|
71
|
+
conflict recovery.
|
|
72
|
+
|
|
73
|
+
## Reporting Policy
|
|
74
|
+
|
|
75
|
+
Do not maintain an always-generated aggregate `commitLogs/README.md`.
|
|
76
|
+
|
|
77
|
+
Generate chat/session summaries only on request, using the on-demand reporting
|
|
78
|
+
skill or script. Individual session logs remain the durable source evidence.
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
<!-- agentic-artifact:
|
|
2
|
+
schema: agentic-artifact/v2
|
|
3
|
+
id: chat.checklists.before-commit
|
|
4
|
+
version: 1
|
|
5
|
+
status: active
|
|
6
|
+
layer: 00.chat
|
|
7
|
+
domain: git
|
|
8
|
+
disciplines:
|
|
9
|
+
- agentic
|
|
10
|
+
kind: checklist
|
|
11
|
+
purpose: Define the required checks before committing approved chat task work.
|
|
12
|
+
portability:
|
|
13
|
+
class: required
|
|
14
|
+
targets:
|
|
15
|
+
- llm-workbench
|
|
16
|
+
used_by:
|
|
17
|
+
- id: chat.workflows.chat-commit
|
|
18
|
+
path: .agentic/00.chat/workflows/chat-commit.md
|
|
19
|
+
-->
|
|
20
|
+
# Chat Before-Commit Checklist
|
|
21
|
+
|
|
22
|
+
Use this before committing approved chat task work.
|
|
23
|
+
|
|
24
|
+
## Write Location
|
|
25
|
+
|
|
26
|
+
Run from the chat-owned worktree:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
bash scripts/00.chat/worktree/check-write-location/script.sh
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Task commits must not be prepared from the root integration worktree.
|
|
33
|
+
Preserve unrelated user changes in a dirty worktree.
|
|
34
|
+
|
|
35
|
+
## Branch Prerequisites
|
|
36
|
+
|
|
37
|
+
Run:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
bash scripts/00.chat/session-log/check-commit-prerequisites/script.sh
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
<!-- deterministic-check: allow reason="requires human approval before merge or cherry-pick repair" -->
|
|
44
|
+
If this reports missing workflow, checklist, or gate files, pause the task
|
|
45
|
+
commit. Ask for approval before merging or cherry-picking the commit that
|
|
46
|
+
introduced the missing files, then rerun this checklist.
|
|
47
|
+
|
|
48
|
+
## Deterministic Process Drift
|
|
49
|
+
|
|
50
|
+
Run:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
bash scripts/01.harness/check-deterministic-process-drift.sh --staged
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
<!-- deterministic-check: allow reason="requires human review and approval before editing process prose" -->
|
|
57
|
+
If this flags staged process prose, propose moving the deterministic part into a
|
|
58
|
+
script or gate, or keeping the prose with an allow marker and reason.
|
|
59
|
+
|
|
60
|
+
## Artifact Metadata
|
|
61
|
+
|
|
62
|
+
Run:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
bash scripts/01.harness/artifact-metadata/check-headers/script.sh --staged-added
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
New scripts and harness/process Markdown documents must declare metadata
|
|
69
|
+
headers before entering the repo. Existing files are backfilled in focused
|
|
70
|
+
batches.
|
|
71
|
+
|
|
72
|
+
## Optional Commit Gates
|
|
73
|
+
|
|
74
|
+
If this repo defines an optional layer-level commit gate, run that gate
|
|
75
|
+
according to the repo's local instructions. The base llm-workbench install does
|
|
76
|
+
not require any product, deployment, retrieval, or rulebook layer.
|
|
77
|
+
|
|
78
|
+
## llm-workbench Public-Beta Contract
|
|
79
|
+
|
|
80
|
+
If the change touches public export, install/uninstall, chat startup, assistant
|
|
81
|
+
adapters, transcript metrics, cost metrics, public templates, or portability
|
|
82
|
+
validation, complete:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
.agentic/00.chat/checklists/llm-workbench-public-beta.md
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Commit Log Deletions
|
|
89
|
+
|
|
90
|
+
Run:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
bash scripts/00.chat/session-log/check-commitlog-deletions/script.sh
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Empty, unsaved session logs may be deleted by intentional cleanup. Do not delete
|
|
97
|
+
commit logs that record commits or are explicitly marked for retention.
|
|
98
|
+
|
|
99
|
+
## Session Log
|
|
100
|
+
|
|
101
|
+
- Initial intent is present.
|
|
102
|
+
- Questions asked during the chat are summarized, or explicitly recorded as none.
|
|
103
|
+
- Issues raised during the chat are summarized with their resolutions, or
|
|
104
|
+
explicitly recorded as none.
|
|
105
|
+
- Decisions made during the chat are summarized, or explicitly recorded as none.
|
|
106
|
+
- Commit summary is recorded before or immediately after each commit.
|
|
107
|
+
|
|
108
|
+
For structured manual session-log entries, use:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/session-log/update-chat-log/script.sh <entry-type> <summary> <detail>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## ADR Disposition
|
|
115
|
+
|
|
116
|
+
- If the chat made a durable harness architecture decision, create or update an
|
|
117
|
+
ADR under `docs/harness/architecture/adrs/`.
|
|
118
|
+
- If no ADR is needed, record a short reason in the session log.
|
|
119
|
+
|
|
120
|
+
## Gate
|
|
121
|
+
|
|
122
|
+
Run:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/session-log/prepare-chat-session-before-commit/script.sh
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Do not commit if the gate fails.
|
|
129
|
+
|
|
130
|
+
## After Commit
|
|
131
|
+
|
|
132
|
+
Run:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/session-log/record-chat-commit/script.sh <sha> <message> <summary> [adr-impact]
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Record every commit in the chat. The latest recorded commit is treated as the
|
|
139
|
+
current endpoint for chat duration and session metrics.
|
|
140
|
+
|
|
141
|
+
The recorder should estimate chat-token metrics from `CHAT_TRANSCRIPT_BYTES`,
|
|
142
|
+
neutral transcript metadata, or an explicit assistant adapter such as Codex
|
|
143
|
+
JSONL discovery. Never substitute the session log file size. If no transcript
|
|
144
|
+
source can be supplied or discovered, portable mode records token metrics as
|
|
145
|
+
unavailable. Strict mode may still stop before recording the commit when exact
|
|
146
|
+
metrics are required.
|
|
147
|
+
|
|
148
|
+
The recorder may estimate chat cost from the estimated chat-token metric and the
|
|
149
|
+
checked-in pricing snapshot. Treat `estimated_chat_cost` as an approximate
|
|
150
|
+
planning metric, not a billing record, because transcript-derived token counts
|
|
151
|
+
do not split input, cached input, and output tokens.
|
|
152
|
+
|
|
153
|
+
<!-- deterministic-check: allow reason="checkpoint helper enforces narrow file scope; prose states the human-readable policy" -->
|
|
154
|
+
If `record-chat-commit.sh` leaves only session bookkeeping dirty, prior explicit
|
|
155
|
+
write permission for the chat authorizes the bookkeeping checkpoint commit:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/session-log/checkpoint-chat-session-log/script.sh
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
<!-- deterministic-check: allow reason="checkpoint helper enforces file scope; prose states the human-readable policy" -->
|
|
162
|
+
This commit must contain only the current chat session log and no other paths.
|
|
163
|
+
Stop and ask if any other path is staged, unstaged, or would be committed.
|
|
164
|
+
|
|
165
|
+
## Approval
|
|
166
|
+
|
|
167
|
+
Do not create a task commit without explicit user approval in the current chat.
|
|
168
|
+
The only commit allowed by prior write permission alone is the narrow session
|
|
169
|
+
bookkeeping checkpoint described above.
|
|
170
|
+
|
|
171
|
+
The chat-owned worktree is reusable and intentionally left in place after each
|
|
172
|
+
chat. Cleanup requires explicit user approval or a deterministic cleanup script
|
|
173
|
+
that preserves logs with recorded work or retention markers.
|
|
174
|
+
|
|
175
|
+
After explicit approval to stage task paths, stage only approved
|
|
176
|
+
repository-relative paths in the chat-owned worktree:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
git add -- <path>...
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
If approved work was accidentally edited outside the chat-owned worktree, treat
|
|
183
|
+
that as recovery. Import only explicit approved paths into the chat-owned
|
|
184
|
+
worktree before continuing:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action \
|
|
188
|
+
scripts/00.chat/recovery/import-active-paths-to-chat-worktree/script.sh \
|
|
189
|
+
--session-log <session-log> \
|
|
190
|
+
--source-worktree <active-worktree> \
|
|
191
|
+
-- <path>...
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Chat-owned worktree execution does not authorize pushes, merges, rebases, branch
|
|
195
|
+
deletion, history rewrite, discarding work, or destructive actions.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<!-- agentic-artifact:
|
|
2
|
+
schema: agentic-artifact/v2
|
|
3
|
+
id: chat.checklists.llm-workbench-public-beta
|
|
4
|
+
version: 1
|
|
5
|
+
status: active
|
|
6
|
+
layer: 00.chat
|
|
7
|
+
domain: portability
|
|
8
|
+
disciplines:
|
|
9
|
+
- agentic
|
|
10
|
+
kind: checklist
|
|
11
|
+
purpose: Check llm-workbench public-beta portability before committing related work.
|
|
12
|
+
portability:
|
|
13
|
+
class: required
|
|
14
|
+
targets:
|
|
15
|
+
- llm-workbench
|
|
16
|
+
used_by:
|
|
17
|
+
- id: chat.standards.llm-workbench-public-beta-contract
|
|
18
|
+
path: .agentic/00.chat/standards/llm-workbench-public-beta-contract.md
|
|
19
|
+
- id: chat.checklists.before-commit
|
|
20
|
+
path: .agentic/00.chat/checklists/before-commit.md
|
|
21
|
+
-->
|
|
22
|
+
# llm-workbench Public-Beta Checklist
|
|
23
|
+
|
|
24
|
+
Use this before committing changes that touch public export, install/uninstall,
|
|
25
|
+
chat startup, assistant adapters, transcript metrics, cost metrics, public
|
|
26
|
+
templates, or portability validation.
|
|
27
|
+
|
|
28
|
+
## Contract
|
|
29
|
+
|
|
30
|
+
Read `.agentic/00.chat/standards/llm-workbench-public-beta-contract.md`.
|
|
31
|
+
|
|
32
|
+
Confirm the change preserves:
|
|
33
|
+
|
|
34
|
+
- no durable whole-chat `layer`, `mode`, or `workflow` classification
|
|
35
|
+
- standalone public export with self-consistent metadata
|
|
36
|
+
- no mandatory RAG/rulebook or Codex behavior in generic chat surfaces
|
|
37
|
+
- provider-neutral transcript and cost defaults
|
|
38
|
+
- safe blank and existing repo install/uninstall behavior
|
|
39
|
+
- thin assistant adapters
|
|
40
|
+
- CLI/code-assistant robustness, including JSON startup and executable-bit loss
|
|
41
|
+
|
|
42
|
+
## Temporary Eval
|
|
43
|
+
|
|
44
|
+
- A temporary eval or failing smoke case was written before the patch.
|
|
45
|
+
- The eval failed before the implementation.
|
|
46
|
+
- The implementation made the eval pass.
|
|
47
|
+
- Durable edge cases were promoted into the permanent portability suite.
|
|
48
|
+
- Temporary eval files were removed before closeout.
|
|
49
|
+
|
|
50
|
+
## Required Validation
|
|
51
|
+
|
|
52
|
+
Run:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/upstream/validate-llm-workbench-portability/script.sh
|
|
56
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/upstream/bootstrap-llm-workbench-repo/smoke-test.sh
|
|
57
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/startup/start-chat-session/smoke-test.sh
|
|
58
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/session-log/record-chat-commit/smoke-test.sh
|
|
59
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/command/package-scripts/smoke-test.sh
|
|
60
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/command/dispatcher/smoke-test.sh
|
|
61
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/01.harness/artifact-metadata/check-headers/smoke-test.sh
|
|
62
|
+
bash scripts/01.harness/artifact-metadata/check-headers/script.sh --all
|
|
63
|
+
bash scripts/01.harness/check-governed-script-command-drift.sh
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Also run:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
bash scripts/01.harness/check-deterministic-process-drift.sh --paths <changed-governed-files>
|
|
70
|
+
bash -n <changed-shell-scripts-and-templates>
|
|
71
|
+
git diff --check
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Public Export Review
|
|
75
|
+
|
|
76
|
+
When export/install behavior changed:
|
|
77
|
+
|
|
78
|
+
- materialize the generated public workbench
|
|
79
|
+
- inspect the generated public top-level tree
|
|
80
|
+
- verify source-only trees are absent
|
|
81
|
+
- install into a blank repo
|
|
82
|
+
- install into an existing repo
|
|
83
|
+
- run `check-headers --all` in the generated public repo
|
|
84
|
+
- run `check-headers --all` in an installed target
|
|
85
|
+
|
|
86
|
+
## Closeout
|
|
87
|
+
|
|
88
|
+
Report:
|
|
89
|
+
|
|
90
|
+
- changed files summary
|
|
91
|
+
- exact validation commands run
|
|
92
|
+
- skipped checks and why
|
|
93
|
+
- whether temporary eval files remain
|
|
94
|
+
- whether changes are committed or still uncommitted
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<!-- agentic-artifact:
|
|
2
|
+
schema: agentic-artifact/v2
|
|
3
|
+
id: chat.commands.readme
|
|
4
|
+
version: 1
|
|
5
|
+
status: active
|
|
6
|
+
layer: 00.chat
|
|
7
|
+
domain: command
|
|
8
|
+
disciplines:
|
|
9
|
+
- agentic
|
|
10
|
+
kind: capability-readme
|
|
11
|
+
purpose: Explain the terminal chat command shortcut surface.
|
|
12
|
+
portability:
|
|
13
|
+
class: required
|
|
14
|
+
targets:
|
|
15
|
+
- llm-workbench
|
|
16
|
+
used_by:
|
|
17
|
+
- id: chat.script.command.dispatcher.readme
|
|
18
|
+
path: scripts/00.chat/command/dispatcher/README.md
|
|
19
|
+
- id: chat.script.command.dispatcher
|
|
20
|
+
path: scripts/00.chat/command/dispatcher/script.sh
|
|
21
|
+
-->
|
|
22
|
+
# Chat Commands
|
|
23
|
+
|
|
24
|
+
## Purpose
|
|
25
|
+
|
|
26
|
+
Chat commands are small named shortcuts for governed chat lifecycle actions.
|
|
27
|
+
They make repeated actions easy to trigger without moving process rules into
|
|
28
|
+
`AGENTS.md`.
|
|
29
|
+
|
|
30
|
+
## Public CLI Entry Point
|
|
31
|
+
|
|
32
|
+
The public user-facing CLI is:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
llm-wb <command> [args...]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Use `npx llm-wb ...` when the package is not installed globally or linked into
|
|
39
|
+
the current shell.
|
|
40
|
+
|
|
41
|
+
Current public CLI shortcuts include:
|
|
42
|
+
|
|
43
|
+
- `init` - installs the workbench into the current or specified Git repo.
|
|
44
|
+
- `new <prompt>` - starts a new chat session from an explicit prompt.
|
|
45
|
+
- `list` - lists installed workbench command names.
|
|
46
|
+
- `sessions list` - lists active chat sessions and branches.
|
|
47
|
+
- `commit -m <message>` - runs commit gates, commits task work, records the
|
|
48
|
+
commit, and checkpoints session evidence.
|
|
49
|
+
- `merge-main` - verifies readiness and merges the chat branch into local
|
|
50
|
+
`main` without pushing.
|
|
51
|
+
|
|
52
|
+
## Dispatcher Entry Point
|
|
53
|
+
|
|
54
|
+
The canonical dispatcher is:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/command/dispatcher/script.sh <command> [args...]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Its capability README is:
|
|
61
|
+
|
|
62
|
+
```txt
|
|
63
|
+
scripts/00.chat/command/dispatcher/README.md
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Commands
|
|
67
|
+
|
|
68
|
+
- `new <prompt>` - starts a new chat session from an explicit prompt.
|
|
69
|
+
- `open window [worktree-path|session-log]` - opens a new VS Code window for the
|
|
70
|
+
current or specified chat-owned worktree.
|
|
71
|
+
- `close` - prints or copies a governed prompt for committing approved work, if
|
|
72
|
+
needed, then promoting the chat branch into local `main`.
|
|
73
|
+
|
|
74
|
+
## Chat Message Auto-Start
|
|
75
|
+
|
|
76
|
+
When a chat starts in this repo and no matching chat session exists for the
|
|
77
|
+
current branch, the chat-start workflow treats the opening user message as the
|
|
78
|
+
new chat summary and runs the resolver:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/startup/resolve-current-chat-session/script.sh "<opening user message>"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
If the opening message is exactly `new`, the agent asks what the chat should be
|
|
85
|
+
about before creating a session.
|
|
86
|
+
|
|
87
|
+
## Adding A Command
|
|
88
|
+
|
|
89
|
+
Add a new executable script at:
|
|
90
|
+
|
|
91
|
+
```txt
|
|
92
|
+
scripts/00.chat/command/<name>/script.sh
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Use lowercase command names when possible. Keep the command script narrow:
|
|
96
|
+
|
|
97
|
+
- delegate to existing governed scripts when the action is deterministic
|
|
98
|
+
- print or copy a prompt when the action needs agent judgment or user approval
|
|
99
|
+
- preserve existing approval boundaries for commits, merges, pushes, branch
|
|
100
|
+
deletion, destructive actions, and history rewriting
|
|
101
|
+
|
|
102
|
+
Update the dispatcher smoke test named in its capability README when adding a
|
|
103
|
+
command that should remain part of the stable shortcut surface.
|
|
104
|
+
|
|
105
|
+
The old `scripts/shared/chat/commands/<name>.sh` compatibility path has been
|
|
106
|
+
retired. Do not add new commands there; add canonical
|
|
107
|
+
`scripts/00.chat/command/<name>/script.sh` entrypoints and package-script
|
|
108
|
+
shortcuts instead.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<!-- agentic-artifact:
|
|
2
|
+
schema: agentic-artifact/v2
|
|
3
|
+
id: chat.migration-plan
|
|
4
|
+
version: 1
|
|
5
|
+
status: active
|
|
6
|
+
layer: 00.chat
|
|
7
|
+
domain: migration
|
|
8
|
+
disciplines:
|
|
9
|
+
- agentic
|
|
10
|
+
kind: migration-plan
|
|
11
|
+
purpose: Track migration from legacy chat lifecycle paths to canonical 00.chat paths.
|
|
12
|
+
portability:
|
|
13
|
+
class: required
|
|
14
|
+
targets:
|
|
15
|
+
- llm-workbench
|
|
16
|
+
used_by:
|
|
17
|
+
- id: chat.script.migration.audit-chat-layer-migration
|
|
18
|
+
path: scripts/00.chat/migration/audit-chat-layer-migration/script.sh
|
|
19
|
+
- id: harness.architecture.adr.0017-organize-scripts-by-owner-domain-and-capability
|
|
20
|
+
-->
|
|
21
|
+
# 00.chat Migration Plan
|
|
22
|
+
|
|
23
|
+
## Purpose
|
|
24
|
+
|
|
25
|
+
Guide future chats as chat lifecycle governance finishes moving from
|
|
26
|
+
compatibility paths into `.agentic/00.chat/`.
|
|
27
|
+
|
|
28
|
+
The goal is controlled migration, not a big-bang rename. Legacy paths may stay
|
|
29
|
+
in historical references, but operative chat lifecycle governance belongs in
|
|
30
|
+
`.agentic/00.chat/`.
|
|
31
|
+
|
|
32
|
+
## Current Canonical Surfaces
|
|
33
|
+
|
|
34
|
+
- Layer overview: `.agentic/00.chat/README.md`
|
|
35
|
+
- Workflow index: `.agentic/00.chat/workflows/README.md`
|
|
36
|
+
- Before-commit checklist: `.agentic/00.chat/checklists/before-commit.md`
|
|
37
|
+
- Main refresh conflict type standard:
|
|
38
|
+
`.agentic/00.chat/standards/main-refresh-conflict-types.md`
|
|
39
|
+
- Reporting skill: `.agentic/00.chat/skills/session-summary.md`
|
|
40
|
+
- Public chat commands: `package.json` `chat:*` scripts
|
|
41
|
+
|
|
42
|
+
## Migrated Workflow Ownership
|
|
43
|
+
|
|
44
|
+
- Chat startup: `.agentic/00.chat/workflows/chat-start.md`
|
|
45
|
+
- Chat task commits: `.agentic/00.chat/workflows/chat-commit.md`
|
|
46
|
+
- Refresh from main: `.agentic/00.chat/workflows/chat-refresh-from-main.md`
|
|
47
|
+
- Promote to main: `.agentic/00.chat/workflows/chat-promote-to-main.md`
|
|
48
|
+
- Cleanup: `.agentic/00.chat/workflows/chat-cleanup.md`
|
|
49
|
+
- Reporting: `.agentic/00.chat/workflows/chat-reporting.md`
|
|
50
|
+
|
|
51
|
+
## Retired Compatibility Paths
|
|
52
|
+
|
|
53
|
+
These old shared paths are retired. Historical references may mention them, but
|
|
54
|
+
operative instructions, audits, and package scripts should point to the
|
|
55
|
+
canonical chat layer:
|
|
56
|
+
|
|
57
|
+
- `.agentic/shared/workflows/chat-start-interview.md`
|
|
58
|
+
- `.agentic/shared/workflows/main-updated.md`
|
|
59
|
+
- `.agentic/shared/workflows/local-convergence.md`
|
|
60
|
+
- `.agentic/shared/checklists/before-commit.md`
|
|
61
|
+
- `.agentic/shared/workflows/default.md`
|
|
62
|
+
|
|
63
|
+
Script compatibility wrappers under `scripts/shared/chat/` and
|
|
64
|
+
`scripts/shared/git/` have been retired. Keep historical references for audit
|
|
65
|
+
context, but operative instructions and package scripts should point to
|
|
66
|
+
canonical `scripts/00.chat/...` capability paths.
|
|
67
|
+
|
|
68
|
+
## Migration Rules
|
|
69
|
+
|
|
70
|
+
- Move ownership prose before moving executable paths.
|
|
71
|
+
- Keep retired workflow/checklist paths absent unless an active session recovery
|
|
72
|
+
explicitly requires a governed restore.
|
|
73
|
+
- Preserve exact blocked responses when changing workflow ownership.
|
|
74
|
+
- Keep scripts deterministic; do not replace scriptable gates with prose.
|
|
75
|
+
- Maintain focused smoke tests for startup, classification, refresh, commit,
|
|
76
|
+
reporting, and cleanup behavior before moving scripts.
|
|
77
|
+
- Do not migrate destructive cleanup commands without dry-run and explicit
|
|
78
|
+
approval gates.
|
|
79
|
+
- Do not reintroduce tracked aggregate `commitLogs/README.md`.
|
|
80
|
+
|
|
81
|
+
## Completed Migration Queue
|
|
82
|
+
|
|
83
|
+
1. Added canonical chat lifecycle workflows under `.agentic/00.chat/workflows/`.
|
|
84
|
+
2. Added chat-layer command, cleanup, reporting, and conflict-recording package
|
|
85
|
+
scripts in `package.json`.
|
|
86
|
+
3. Migrated chat lifecycle implementation paths to canonical
|
|
87
|
+
`scripts/00.chat/...` capabilities and retired old `scripts/shared/chat/`
|
|
88
|
+
and `scripts/shared/git/` wrappers.
|
|
89
|
+
4. Added audit coverage for the chat-layer package script surface.
|
|
90
|
+
5. Kept focused smoke tests for startup, classification, refresh, commit,
|
|
91
|
+
reporting, cleanup, commands, and package scripts.
|
|
92
|
+
6. Audited active session metadata and retired redundant shared chat lifecycle
|
|
93
|
+
pointers, duplicate before-commit compatibility checklist, and placeholder
|
|
94
|
+
default workflows.
|
|
95
|
+
7. Added governed cleanup for temporary preflight branches and worktrees when a
|
|
96
|
+
rehearsed main refresh is applied. The apply helper removes the promoted
|
|
97
|
+
preflight branch/worktree, removes clean stale sibling preflights that are
|
|
98
|
+
already ancestors of the promoted chat branch, and reports unsafe stale
|
|
99
|
+
preflights without deleting them.
|
|
100
|
+
8. Narrowed `.agentic/shared/workflows/change-shared-process.md` so it keeps
|
|
101
|
+
shared-process ownership and chat harness entry gates, while delegating
|
|
102
|
+
chat lifecycle commit recording, transcript metrics, bookkeeping checkpoint,
|
|
103
|
+
and commit-log deletion rules to `.agentic/00.chat/checklists/before-commit.md`.
|
|
104
|
+
9. Added a deterministic main-refresh conflict classifier based on the conflict
|
|
105
|
+
type standard and the first recorded main-refresh recovery evidence.
|
|
106
|
+
10. Added a preflight conflict audit verification gate that compares conflict
|
|
107
|
+
paths with `## Main Refresh Conflicts` entries before applying a resolved
|
|
108
|
+
preflight refresh.
|
|
109
|
+
|
|
110
|
+
## Deferred Migration Queue
|
|
111
|
+
|
|
112
|
+
No deferred migration items remain. Future conflict types or verification
|
|
113
|
+
expansions should be added only when new main-refresh recovery evidence exposes
|
|
114
|
+
a gap in the current standard or scripts.
|
|
115
|
+
|
|
116
|
+
Do not treat deferred items as permission to improvise. Complete them only when
|
|
117
|
+
their stated evidence, policy, or workflow precondition exists.
|
|
118
|
+
|
|
119
|
+
## Audit
|
|
120
|
+
|
|
121
|
+
Run:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
bash scripts/00.chat/migration/audit-chat-layer-migration/script.sh
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
The audit reports required canonical files, retired compatibility paths that
|
|
128
|
+
should stay absent, and remaining retired compatibility references in
|
|
129
|
+
source/process files. It also inventories policy references to the retired
|
|
130
|
+
aggregate summary so future chats can tell intentional "do not recreate this"
|
|
131
|
+
guidance apart from generated-artifact regression. It does not treat historical
|
|
132
|
+
session logs as migration blockers.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<!-- agentic-artifact:
|
|
2
|
+
schema: agentic-artifact/v2
|
|
3
|
+
id: chat.skills.session-summary
|
|
4
|
+
version: 1
|
|
5
|
+
status: active
|
|
6
|
+
layer: 00.chat
|
|
7
|
+
domain: chat
|
|
8
|
+
disciplines:
|
|
9
|
+
- agentic
|
|
10
|
+
kind: guide
|
|
11
|
+
purpose: Document Session Summary Skill.
|
|
12
|
+
portability:
|
|
13
|
+
class: required
|
|
14
|
+
targets:
|
|
15
|
+
- llm-workbench
|
|
16
|
+
- entity-builder
|
|
17
|
+
- design-system-builder
|
|
18
|
+
used_by:
|
|
19
|
+
- id: repo.agents
|
|
20
|
+
path: AGENTS.md
|
|
21
|
+
-->
|
|
22
|
+
# Session Summary Skill
|
|
23
|
+
|
|
24
|
+
## Use When
|
|
25
|
+
|
|
26
|
+
Use when the user asks for a commit log summary, chat metrics, session metrics,
|
|
27
|
+
or a report across `commitLogs/`.
|
|
28
|
+
|
|
29
|
+
## Instructions
|
|
30
|
+
|
|
31
|
+
Generate summaries on demand. Do not create or update `commitLogs/README.md`.
|
|
32
|
+
|
|
33
|
+
Use:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/reporting/generate-commit-log-summary/script.sh
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The script prints the current aggregate summary to stdout.
|
|
40
|
+
|
|
41
|
+
If the user asks for a file artifact, write to an explicitly requested path
|
|
42
|
+
outside `commitLogs/README.md`, for example:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
bash scripts/01.harness/run-governed-script.sh --approved-action scripts/00.chat/reporting/generate-commit-log-summary/script.sh --output /tmp/chat-summary.md
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Individual session logs under `commitLogs/` are the source evidence.
|