memento-mori-jester 0.1.90 → 0.1.92
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/CHANGELOG.md +12 -0
- package/README.md +6 -2
- package/ROADMAP.md +3 -1
- package/docs/MAINTAINER_TRIAGE.md +3 -1
- package/docs/PRODUCTION_READINESS.md +3 -3
- package/docs/RELEASE_NOTES_v0.1.91.md +58 -0
- package/docs/RELEASE_NOTES_v0.1.92.md +58 -0
- package/examples/support/README.md +4 -2
- package/examples/support/closeout-checklist.json +53 -0
- package/examples/support/closeout-checklist.md +74 -0
- package/examples/support/response-snippets.json +41 -0
- package/examples/support/response-snippets.md +51 -0
- package/package.json +1 -1
- package/scripts/check-production-readiness.mjs +27 -0
- package/scripts/check-support-triage.mjs +202 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to Memento Mori Jester are tracked here.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.1.92
|
|
8
|
+
|
|
9
|
+
- Added a checked public-safe support closeout checklist for docs clarification, fixture backlog, and rule-review candidate outcomes.
|
|
10
|
+
- Extended `npm run support:check` and production-readiness checks so closeout records stay aligned with the maintainer triage playbook and response snippets.
|
|
11
|
+
- Updated README, maintainer triage docs, support examples, production-readiness docs, roadmap, and release notes for deterministic support decision recording.
|
|
12
|
+
|
|
13
|
+
## 0.1.91
|
|
14
|
+
|
|
15
|
+
- Added checked public-safe maintainer response snippets for `docs-example`, `fixture-backlog`, and `rule-review-candidate` support outcomes.
|
|
16
|
+
- Extended `npm run support:check` and production-readiness checks so response snippets stay aligned with the checked triage playbook.
|
|
17
|
+
- Updated README, maintainer triage docs, support examples, production-readiness docs, roadmap, and release notes for lower-friction support replies.
|
|
18
|
+
|
|
7
19
|
## 0.1.90
|
|
8
20
|
|
|
9
21
|
- Added `examples/support`, a checked maintainer triage playbook for sanitized report-gallery and false-positive reports.
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ For trust-building output examples, see [examples/reports](examples/reports). `n
|
|
|
76
76
|
|
|
77
77
|
If one of those reports is confusing or stale, use the public-safe [report gallery feedback template](examples/reports/feedback-template.md). It asks for version, nearest gallery example, sanitized command/output summaries, and redacted diagnostics without private repo code or secrets.
|
|
78
78
|
|
|
79
|
-
Maintainers can use the checked [support triage playbook](examples/support) to turn sanitized reports into a docs example, fixture backlog item, or rule-review candidate without changing behavior first.
|
|
79
|
+
Maintainers can use the checked [support triage playbook](examples/support), [response snippets](examples/support/response-snippets.md), and [support closeout checklist](examples/support/closeout-checklist.md) to turn sanitized reports into a docs example, fixture backlog item, or rule-review candidate without changing behavior first.
|
|
80
80
|
|
|
81
81
|
Expected vibe:
|
|
82
82
|
|
|
@@ -451,6 +451,8 @@ More setup examples:
|
|
|
451
451
|
- [Real-World Report Gallery](examples/reports)
|
|
452
452
|
- [Report Gallery Feedback Template](examples/reports/feedback-template.md)
|
|
453
453
|
- [Support Triage Playbook](examples/support)
|
|
454
|
+
- [Maintainer Response Snippets](examples/support/response-snippets.md)
|
|
455
|
+
- [Support Closeout Checklist](examples/support/closeout-checklist.md)
|
|
454
456
|
- [Security Policy](SECURITY.md)
|
|
455
457
|
- [Maintainer Triage](docs/MAINTAINER_TRIAGE.md)
|
|
456
458
|
- [Changelog](CHANGELOG.md)
|
|
@@ -473,6 +475,8 @@ Framework CI examples:
|
|
|
473
475
|
- [Real-World Report Gallery](examples/reports)
|
|
474
476
|
- [Report Gallery Feedback Template](examples/reports/feedback-template.md)
|
|
475
477
|
- [Support Triage Playbook](examples/support)
|
|
478
|
+
- [Maintainer Response Snippets](examples/support/response-snippets.md)
|
|
479
|
+
- [Support Closeout Checklist](examples/support/closeout-checklist.md)
|
|
476
480
|
- [Next.js CI](examples/ci/nextjs.yml)
|
|
477
481
|
- [Vite React CI](examples/ci/vite-react.yml)
|
|
478
482
|
- [Express API CI](examples/ci/express-api.yml)
|
|
@@ -529,7 +533,7 @@ Maintainers can use [docs/MAINTAINER_TRIAGE.md](docs/MAINTAINER_TRIAGE.md) to tu
|
|
|
529
533
|
Run `npm run fixtures:check` before merging fixture changes; it catches duplicate IDs, missing rule metadata, weak descriptions, unsafe-looking content, and duplicate content.
|
|
530
534
|
Run `npm run fixtures:report` to see fixture coverage by rule, rule family, preset slice, kind, verdict, quiet-pass boundaries, feasible pass-case gaps, and curation-next guidance before choosing the next fixture. Use `npm run fixtures:report -- --markdown` when you want a paste-ready summary for release notes or GitHub issues.
|
|
531
535
|
Run `npm run reports:check` after editing [examples/reports](examples/reports); it verifies the public report gallery against an installed package in a temporary consumer project.
|
|
532
|
-
Run `npm run support:check` after editing issue templates, support docs, the report gallery feedback path,
|
|
536
|
+
Run `npm run support:check` after editing issue templates, support docs, the report gallery feedback path, the [support triage playbook](examples/support), [response snippets](examples/support/response-snippets.md), or [support closeout checklist](examples/support/closeout-checklist.md); it verifies the public templates ask for useful redacted context without inviting secrets or private code.
|
|
533
537
|
Run `npm run promo:card` to regenerate the repo-local social preview card after changing its copy or design.
|
|
534
538
|
Run `npm run promo:check` after editing promo assets; it checks the current demo video, stills, docs, and fixture evidence numbers stay in sync.
|
|
535
539
|
Run `npm run site:check` after editing the repo-local landing page; it verifies the start command, demo links, social card, repo, release, and npm links.
|
package/ROADMAP.md
CHANGED
|
@@ -6,6 +6,8 @@ Memento Mori Jester is usable today as a CLI, MCP server, GitHub Action, and git
|
|
|
6
6
|
|
|
7
7
|
## Recently Shipped
|
|
8
8
|
|
|
9
|
+
- Checked support closeout checklist in v0.1.92, recording whether docs clarifications shipped or queued, fixture backlogs were created, or rule-review candidates were opened.
|
|
10
|
+
- Checked maintainer response snippets in v0.1.91, adding public-safe reply templates for docs examples, fixture backlog items, and rule-review candidates.
|
|
9
11
|
- Checked maintainer triage playbook in v0.1.90, showing how sanitized reports become docs examples, fixture backlog items, or rule-review candidates.
|
|
10
12
|
- Checked adopter feedback path in v0.1.89, adding a report-gallery issue template, package-shipped feedback template, and support triage guard.
|
|
11
13
|
- Checked report gallery in v0.1.88, proving fresh `doctor`, destructive-command `summary`, and blocked-command reports from an installed consumer project.
|
|
@@ -80,7 +82,7 @@ Memento Mori Jester is usable today as a CLI, MCP server, GitHub Action, and git
|
|
|
80
82
|
## Product Ideas
|
|
81
83
|
|
|
82
84
|
- Collect real-world reports and fold the strongest redacted cases into more framework tuning cookbook recipes.
|
|
83
|
-
- Use repeated playbook outcomes to prioritize the next redacted fixture or report-gallery update.
|
|
85
|
+
- Use repeated playbook outcomes, response snippets, and closeout records to prioritize the next redacted fixture or report-gallery update.
|
|
84
86
|
- Add a hosted-page option or GitHub Pages instructions once the static page has settled.
|
|
85
87
|
|
|
86
88
|
## Quality And Safety
|
|
@@ -21,7 +21,7 @@ For users who just need to understand what a healthy report looks like, point th
|
|
|
21
21
|
|
|
22
22
|
For users who say a gallery report is confusing, stale, or hard to compare with their local output, point them at [examples/reports/feedback-template.md](../examples/reports/feedback-template.md) or the GitHub [report gallery feedback issue template](../.github/ISSUE_TEMPLATE/report_gallery_feedback.yml). It asks for the nearest checked example, sanitized command and output summaries, version, and redacted diagnostics without asking for private code.
|
|
23
23
|
|
|
24
|
-
When a report has enough public-safe detail to triage, compare it with the checked [support triage playbook](../examples/support). The playbook walks sanitized report-gallery and false-positive reports through first response, classification, and a follow-up outcome.
|
|
24
|
+
When a report has enough public-safe detail to triage, compare it with the checked [support triage playbook](../examples/support). The playbook walks sanitized report-gallery and false-positive reports through first response, classification, and a follow-up outcome. Use [response-snippets.md](../examples/support/response-snippets.md) to reply consistently after choosing the outcome, then use [closeout-checklist.md](../examples/support/closeout-checklist.md) to record whether the docs clarification shipped or queued, fixture backlog was created, or rule-review candidate was opened.
|
|
25
25
|
|
|
26
26
|
Do not ask users to paste secrets, private code, customer data, live credentials, complete CI logs, or unredacted SARIF. If the report involves credential exposure, command execution, unexpected network access, private code disclosure, package publishing, or MCP data exposure, route it through [SECURITY.md](../SECURITY.md).
|
|
27
27
|
|
|
@@ -65,6 +65,8 @@ Use the playbook outcomes consistently:
|
|
|
65
65
|
- `fixture-backlog`: the reduced report looks safe and should become a pass or quiet-pass fixture.
|
|
66
66
|
- `rule-review-candidate`: repeated sanitized reports suggest guidance or matching may need review, but not from a single report.
|
|
67
67
|
|
|
68
|
+
Use the matching response snippet for the first public reply, then adapt only the project-neutral parts: the rule id, minimal command summary, fixture id, and next command. After the reply, record the closeout with the matching checklist entry so the issue has a public-safe decision record. Do not add private code, private paths, tokens, full logs, or exploitable details to the response or closeout.
|
|
69
|
+
|
|
68
70
|
After editing report support docs or issue templates, run:
|
|
69
71
|
|
|
70
72
|
```powershell
|
|
@@ -47,7 +47,7 @@ This checklist defines what "production grade" means for Memento Mori Jester rig
|
|
|
47
47
|
- `README.md` leads with a no-write first run, project bootstrap, agent setup, and optional hooks/CI.
|
|
48
48
|
- `docs/GETTING_STARTED.md`, `docs/CLI.md`, `docs/RELEASE.md`, and `docs/TRUSTED_PUBLISHING.md` cover the core adoption and release paths.
|
|
49
49
|
- `examples/reports` provides checked, public-safe report examples for fresh install diagnostics, summary output, blocked command reviews, and report-gallery feedback.
|
|
50
|
-
- `examples/support` provides a checked maintainer triage playbook for first response, classification,
|
|
50
|
+
- `examples/support` provides a checked maintainer triage playbook, response snippets, and closeout checklist for first response, classification, follow-up outcomes, and public-safe decision records from sanitized support reports.
|
|
51
51
|
- `site/index.html` gives maintainers a static one-page share surface that reuses the demo, social card, start command, and public links.
|
|
52
52
|
- Every public release has matching `CHANGELOG.md` notes and `docs/RELEASE_NOTES_vX.Y.Z.md`.
|
|
53
53
|
|
|
@@ -60,14 +60,14 @@ This checklist defines what "production grade" means for Memento Mori Jester rig
|
|
|
60
60
|
- GitHub issue templates collect bug reports, false-positive reports, report-gallery feedback, and feature requests with the diagnostic context maintainers need.
|
|
61
61
|
- `SECURITY.md` routes vulnerability reports away from public issues and asks for redacted diagnostics.
|
|
62
62
|
- `docs/MAINTAINER_TRIAGE.md` explains how to turn useful false-positive reports into fixture coverage before changing rule logic.
|
|
63
|
-
- `examples/support` shows maintainers how to classify sanitized reports as a docs example, fixture backlog item, or rule-review candidate before changing behavior.
|
|
63
|
+
- `examples/support` shows maintainers how to classify sanitized reports as a docs example, fixture backlog item, or rule-review candidate before changing behavior, then reply with public-safe response snippets and record the closeout.
|
|
64
64
|
- `npm run fixtures:check` validates fixture IDs, metadata, unsafe-looking content, duplicate content, and explicit expected/absent rule intent.
|
|
65
65
|
- `npm run fixtures:report` shows fixture coverage by rule, rule family, preset slice, kind, verdict, quiet-pass rule boundaries, and feasible pass-case gaps so maintainers can pick the next fixture target; `npm run fixtures:report -- --markdown` produces a paste-ready maintainer snapshot.
|
|
66
66
|
- `npm run framework:tuning:check` keeps the framework tuning guide, cookbook JSON, cookbook README, and fixture IDs aligned.
|
|
67
67
|
- `npm run framework:tuning:doctor` runs the cookbook tune commands through the built CLI with temporary preset configs, so package consumers do not inherit stale recipes.
|
|
68
68
|
- `npm run consumer:quickstart:check` installs the package into a temporary minimal project and runs `doctor`, `summary`, and packaged framework tuning checks from that consumer side.
|
|
69
69
|
- `npm run reports:check` installs the package into a temporary minimal project and runs the report gallery's `doctor`, `summary`, and blocked-command examples through that consumer side.
|
|
70
|
-
- `npm run support:check` verifies issue templates, support docs, the report gallery feedback template,
|
|
70
|
+
- `npm run support:check` verifies issue templates, support docs, the report gallery feedback template, the maintainer triage playbook, response snippets, and closeout checklist stay public-safe and ask for useful redacted context.
|
|
71
71
|
- `npm run promo:card` regenerates the deterministic social preview card, and `npm run promo:check` verifies current repo-local promo assets against the current fixture evidence before maintainers post or refresh the demo.
|
|
72
72
|
- `npm run site:check` verifies the static landing page before maintainers post or host it.
|
|
73
73
|
- npm publish has a manual workflow fallback, but the normal release path is tag-driven trusted publishing.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Memento Mori Jester v0.1.91
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
This release adds checked maintainer response snippets for the three support outcomes introduced by the triage playbook: docs clarification, fixture backlog, and rule-review candidate. The goal is to reduce response friction while keeping public replies safe, consistent, and evidence-based.
|
|
6
|
+
|
|
7
|
+
## What Changed
|
|
8
|
+
|
|
9
|
+
- Added `examples/support/response-snippets.md`.
|
|
10
|
+
- Added `examples/support/response-snippets.json`.
|
|
11
|
+
- Extended `scripts/check-support-triage.mjs` to validate response snippets.
|
|
12
|
+
- Extended production-readiness checks for response snippets.
|
|
13
|
+
- Updated README, maintainer triage docs, support examples, production-readiness docs, roadmap, and changelog.
|
|
14
|
+
|
|
15
|
+
## Public Interface
|
|
16
|
+
|
|
17
|
+
- No CLI command changes.
|
|
18
|
+
- No MCP tool changes.
|
|
19
|
+
- No config schema changes.
|
|
20
|
+
- No review rule, scoring, matching, or verdict behavior changes.
|
|
21
|
+
- No GitHub Action input changes.
|
|
22
|
+
- Support docs and package examples now include checked maintainer response snippets.
|
|
23
|
+
|
|
24
|
+
## Release Validation
|
|
25
|
+
|
|
26
|
+
```powershell
|
|
27
|
+
npm.cmd test
|
|
28
|
+
npm.cmd run support:check
|
|
29
|
+
npm.cmd run reports:check
|
|
30
|
+
npm.cmd run demo:svg:check
|
|
31
|
+
npm.cmd run promo:card:check
|
|
32
|
+
npm.cmd run promo:check
|
|
33
|
+
npm.cmd run fixtures:report
|
|
34
|
+
npm.cmd run fixtures:report -- --json
|
|
35
|
+
npm.cmd run fixtures:report -- --markdown
|
|
36
|
+
npm.cmd run pack:dry
|
|
37
|
+
git diff --check
|
|
38
|
+
node .\dist\cli.js doctor
|
|
39
|
+
node .\dist\cli.js summary --kind command "git reset --hard"
|
|
40
|
+
git diff | node .\dist\cli.js diff --fail-on block --subject "v0.1.91 checked maintainer response snippets"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Expected:
|
|
44
|
+
|
|
45
|
+
- `support:check` verifies issue templates, feedback templates, the maintainer triage playbook, and response snippets.
|
|
46
|
+
- `reports:check` still verifies the installed-package report gallery.
|
|
47
|
+
- fixture report still shows `Fixtures: 222`.
|
|
48
|
+
- GitHub Release and npm Publish complete from the `v0.1.91` tag.
|
|
49
|
+
|
|
50
|
+
After publish:
|
|
51
|
+
|
|
52
|
+
```powershell
|
|
53
|
+
npm.cmd view memento-mori-jester version --silent
|
|
54
|
+
npx.cmd -y memento-mori-jester@latest doctor
|
|
55
|
+
npx.cmd -y memento-mori-jester@latest summary --kind command "git reset --hard"
|
|
56
|
+
npm.cmd run support:check
|
|
57
|
+
npm.cmd run reports:check -- --package memento-mori-jester@latest
|
|
58
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Memento Mori Jester v0.1.92
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
This release adds a checked support closeout checklist for the three maintainer support outcomes: docs clarification, fixture backlog, and rule-review candidate. The goal is to make the final decision record as deterministic and public-safe as the first response.
|
|
6
|
+
|
|
7
|
+
## What Changed
|
|
8
|
+
|
|
9
|
+
- Added `examples/support/closeout-checklist.md`.
|
|
10
|
+
- Added `examples/support/closeout-checklist.json`.
|
|
11
|
+
- Extended `scripts/check-support-triage.mjs` to validate closeout records.
|
|
12
|
+
- Extended production-readiness checks for the closeout checklist.
|
|
13
|
+
- Updated README, maintainer triage docs, support examples, production-readiness docs, roadmap, and changelog.
|
|
14
|
+
|
|
15
|
+
## Public Interface
|
|
16
|
+
|
|
17
|
+
- No CLI command changes.
|
|
18
|
+
- No MCP tool changes.
|
|
19
|
+
- No config schema changes.
|
|
20
|
+
- No review rule, scoring, matching, or verdict behavior changes.
|
|
21
|
+
- No GitHub Action input changes.
|
|
22
|
+
- Support docs and package examples now include checked support closeout records.
|
|
23
|
+
|
|
24
|
+
## Release Validation
|
|
25
|
+
|
|
26
|
+
```powershell
|
|
27
|
+
npm.cmd test
|
|
28
|
+
npm.cmd run support:check
|
|
29
|
+
npm.cmd run reports:check
|
|
30
|
+
npm.cmd run demo:svg:check
|
|
31
|
+
npm.cmd run promo:card:check
|
|
32
|
+
npm.cmd run promo:check
|
|
33
|
+
npm.cmd run fixtures:report
|
|
34
|
+
npm.cmd run fixtures:report -- --json
|
|
35
|
+
npm.cmd run fixtures:report -- --markdown
|
|
36
|
+
npm.cmd run pack:dry
|
|
37
|
+
git diff --check
|
|
38
|
+
node .\dist\cli.js doctor
|
|
39
|
+
node .\dist\cli.js summary --kind command "git reset --hard"
|
|
40
|
+
git diff | node .\dist\cli.js diff --fail-on block --subject "v0.1.92 checked support closeout checklist"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Expected:
|
|
44
|
+
|
|
45
|
+
- `support:check` verifies issue templates, feedback templates, the maintainer triage playbook, response snippets, and closeout checklist.
|
|
46
|
+
- `reports:check` still verifies the installed-package report gallery.
|
|
47
|
+
- fixture report still shows `Fixtures: 222`.
|
|
48
|
+
- GitHub Release and npm Publish complete from the `v0.1.92` tag.
|
|
49
|
+
|
|
50
|
+
After publish:
|
|
51
|
+
|
|
52
|
+
```powershell
|
|
53
|
+
npm.cmd view memento-mori-jester version --silent
|
|
54
|
+
npx.cmd -y memento-mori-jester@latest doctor
|
|
55
|
+
npx.cmd -y memento-mori-jester@latest summary --kind command "git reset --hard"
|
|
56
|
+
npm.cmd run support:check
|
|
57
|
+
npm.cmd run reports:check -- --package memento-mori-jester@latest
|
|
58
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This playbook shows how to handle sanitized adopter reports without turning every surprise into an immediate rule change. It pairs with [docs/MAINTAINER_TRIAGE.md](../../docs/MAINTAINER_TRIAGE.md), the [report gallery feedback template](../reports/feedback-template.md), and the GitHub issue templates.
|
|
4
4
|
|
|
5
|
-
The checked source is [triage-playbook.json](triage-playbook.json).
|
|
5
|
+
The checked source is [triage-playbook.json](triage-playbook.json). Use [response-snippets.md](response-snippets.md) for copy-paste replies after a report is classified. The snippet source is [response-snippets.json](response-snippets.json). Use [closeout-checklist.md](closeout-checklist.md) to record what happened after the response. The closeout source is [closeout-checklist.json](closeout-checklist.json).
|
|
6
6
|
|
|
7
7
|
| ID | Source | Classification | Follow-up |
|
|
8
8
|
| --- | --- | --- | --- |
|
|
@@ -21,10 +21,12 @@ The checked source is [triage-playbook.json](triage-playbook.json). It covers th
|
|
|
21
21
|
- `fixture-backlog`: add a pass or quiet-pass fixture before changing behavior.
|
|
22
22
|
- `rule-review-candidate`: collect repeated sanitized reports before changing guidance or matching.
|
|
23
23
|
6. Close with the next command the user can run.
|
|
24
|
+
7. Use the matching response snippet so replies stay public-safe and consistent.
|
|
25
|
+
8. Record the closeout with the matching checklist entry: docs clarification shipped or queued, fixture backlog created, or rule-review candidate opened.
|
|
24
26
|
|
|
25
27
|
## Checks
|
|
26
28
|
|
|
27
|
-
Run this after editing support docs, issue templates, or
|
|
29
|
+
Run this after editing support docs, issue templates, the playbook, response snippets, or closeout checklist:
|
|
28
30
|
|
|
29
31
|
```powershell
|
|
30
32
|
npm run support:check
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "docs-clarification-closeout",
|
|
4
|
+
"outcome": "docs-example",
|
|
5
|
+
"decisionRecord": {
|
|
6
|
+
"status": "shipped-or-queued",
|
|
7
|
+
"publicSummary": "Clarified the checked report-gallery wording so the expected block verdict is easier to understand.",
|
|
8
|
+
"userReply": "Thanks again. I have linked the docs clarification, and the checked gallery still passes.",
|
|
9
|
+
"followUpLinkPlaceholder": "<docs-pr-or-commit>",
|
|
10
|
+
"nextCommand": "npm run reports:check"
|
|
11
|
+
},
|
|
12
|
+
"requiredEvidence": [
|
|
13
|
+
"No private code, paths, tokens, full logs, or customer data are included.",
|
|
14
|
+
"The related report-gallery example still passes.",
|
|
15
|
+
"The issue links to the docs change or backlog item."
|
|
16
|
+
],
|
|
17
|
+
"requiredChecks": ["npm run reports:check", "npm run support:check"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "fixture-backlog-closeout",
|
|
21
|
+
"outcome": "fixture-backlog",
|
|
22
|
+
"decisionRecord": {
|
|
23
|
+
"status": "backlog-created",
|
|
24
|
+
"publicSummary": "Created a redacted fixture backlog item for a plausible quiet-pass boundary.",
|
|
25
|
+
"userReply": "Thanks. This is now tracked as a fixture backlog item; behavior stays unchanged until a checked fixture proves the boundary.",
|
|
26
|
+
"followUpLinkPlaceholder": "<fixture-backlog-issue>",
|
|
27
|
+
"nextCommand": "npm run fixtures:report"
|
|
28
|
+
},
|
|
29
|
+
"requiredEvidence": [
|
|
30
|
+
"The reduced example is public-safe and minimal.",
|
|
31
|
+
"The backlog item names the candidate rule id and expected quiet-pass or pass boundary.",
|
|
32
|
+
"The report does not request a rule change before fixture coverage exists."
|
|
33
|
+
],
|
|
34
|
+
"requiredChecks": ["npm run fixtures:check", "npm run fixtures:report", "npm run support:check"]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "rule-review-closeout",
|
|
38
|
+
"outcome": "rule-review-candidate",
|
|
39
|
+
"decisionRecord": {
|
|
40
|
+
"status": "candidate-opened",
|
|
41
|
+
"publicSummary": "Opened a rule-review candidate after repeated sanitized reports suggested a possible guidance or matching boundary.",
|
|
42
|
+
"userReply": "Thanks. I have linked this to a rule-review candidate. The rule remains unchanged while maintainers compare fixture evidence.",
|
|
43
|
+
"followUpLinkPlaceholder": "<rule-review-issue>",
|
|
44
|
+
"nextCommand": "node .\\dist\\cli.js tune <rule-id> --json"
|
|
45
|
+
},
|
|
46
|
+
"requiredEvidence": [
|
|
47
|
+
"At least two sanitized reports are linked or summarized.",
|
|
48
|
+
"Fixture evidence or `jester tune <rule-id> --json` output is referenced.",
|
|
49
|
+
"The public record avoids secrets, private project details, full logs, and exploitable security details."
|
|
50
|
+
],
|
|
51
|
+
"requiredChecks": ["npm run fixtures:report -- --markdown", "npm run support:check"]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Support Closeout Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist after a maintainer has classified a sanitized support report and sent a response snippet. It records what happened next without changing rule behavior or exposing private project details.
|
|
4
|
+
|
|
5
|
+
The checked source is [closeout-checklist.json](closeout-checklist.json). Keep closeout outcomes aligned with the [triage playbook](triage-playbook.json) and [response snippets](response-snippets.md):
|
|
6
|
+
|
|
7
|
+
- `docs-example`
|
|
8
|
+
- `fixture-backlog`
|
|
9
|
+
- `rule-review-candidate`
|
|
10
|
+
|
|
11
|
+
## Closeout Record
|
|
12
|
+
|
|
13
|
+
Every public closeout should include:
|
|
14
|
+
|
|
15
|
+
- outcome,
|
|
16
|
+
- public-safe summary,
|
|
17
|
+
- shipped or queued status,
|
|
18
|
+
- link placeholder for the docs change, fixture backlog item, or rule-review issue,
|
|
19
|
+
- next command for the user or maintainer,
|
|
20
|
+
- evidence that secrets, private code, private paths, customer data, full logs, and exploitable details were not included.
|
|
21
|
+
|
|
22
|
+
## Docs Clarification
|
|
23
|
+
|
|
24
|
+
Use when behavior was expected and the right follow-up is clearer wording.
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
Outcome: docs-example
|
|
28
|
+
Status: shipped-or-queued
|
|
29
|
+
Public summary: Clarified the checked report-gallery wording so the expected block verdict is easier to understand.
|
|
30
|
+
Follow-up: <docs-pr-or-commit>
|
|
31
|
+
Next command: npm run reports:check
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Fixture Backlog
|
|
35
|
+
|
|
36
|
+
Use when the report describes a plausible safe boundary but behavior should not change until fixture evidence exists.
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
Outcome: fixture-backlog
|
|
40
|
+
Status: backlog-created
|
|
41
|
+
Public summary: Created a redacted fixture backlog item for a plausible quiet-pass boundary.
|
|
42
|
+
Follow-up: <fixture-backlog-issue>
|
|
43
|
+
Next command: npm run fixtures:report
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Rule Review Candidate
|
|
47
|
+
|
|
48
|
+
Use when repeated sanitized reports suggest guidance or matching may need review.
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
Outcome: rule-review-candidate
|
|
52
|
+
Status: candidate-opened
|
|
53
|
+
Public summary: Opened a rule-review candidate after repeated sanitized reports suggested a possible guidance or matching boundary.
|
|
54
|
+
Follow-up: <rule-review-issue>
|
|
55
|
+
Next command: node .\dist\cli.js tune <rule-id> --json
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Checks
|
|
59
|
+
|
|
60
|
+
Run this after editing closeout records or support docs:
|
|
61
|
+
|
|
62
|
+
```powershell
|
|
63
|
+
npm run support:check
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Run fixture checks before closing a fixture-backed issue:
|
|
67
|
+
|
|
68
|
+
```powershell
|
|
69
|
+
npm run fixtures:check
|
|
70
|
+
npm run fixtures:report
|
|
71
|
+
npm run fixtures:report -- --markdown
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Do not include secrets, tokens, private repository code, private paths, customer data, full CI logs, unredacted SARIF, or exploitable security details in a public closeout. Use [SECURITY.md](../../SECURITY.md) for sensitive reports.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "docs-example-response",
|
|
4
|
+
"outcome": "docs-example",
|
|
5
|
+
"title": "Expected behavior, docs clarification",
|
|
6
|
+
"useWhen": "A sanitized report matches checked behavior, but the user expected different wording or severity.",
|
|
7
|
+
"labels": ["docs"],
|
|
8
|
+
"body": [
|
|
9
|
+
"Thanks for the report. This looks like expected behavior for the checked example, but the wording can be clearer.",
|
|
10
|
+
"Please do not paste private repo code, full logs, secrets, or private paths. If your local output differs from the checked example, share redacted `jester doctor --json` output and the smallest sanitized command summary.",
|
|
11
|
+
"Maintainer next step: update the report gallery wording or docs example, then run `npm run reports:check` and `npm run support:check`."
|
|
12
|
+
],
|
|
13
|
+
"requiredChecks": ["npm run reports:check", "npm run support:check"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "fixture-backlog-response",
|
|
17
|
+
"outcome": "fixture-backlog",
|
|
18
|
+
"title": "Plausible false positive, fixture backlog",
|
|
19
|
+
"useWhen": "A sanitized false-positive report describes a safe boundary that should be protected before changing rule behavior.",
|
|
20
|
+
"labels": ["false-positive", "rules"],
|
|
21
|
+
"body": [
|
|
22
|
+
"Thanks, this looks like a plausible safe boundary. Please keep the reproduction minimal and redacted, then share `jester tune <rule-id> --json`, redacted `jester doctor --json`, and the smallest command, plan, diff, or final-answer text that reproduces the result.",
|
|
23
|
+
"We will not loosen the rule from one report. If the reduced example is valid, the next step is a pass or quiet-pass fixture with `expectedRuleIds` or `absentRuleIds`.",
|
|
24
|
+
"Maintainer next step: add the fixture backlog item, then run `npm run fixtures:check`, `npm run fixtures:report`, and `npm run support:check`."
|
|
25
|
+
],
|
|
26
|
+
"requiredChecks": ["npm run fixtures:check", "npm run fixtures:report", "npm run support:check"]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "rule-review-candidate-response",
|
|
30
|
+
"outcome": "rule-review-candidate",
|
|
31
|
+
"title": "Repeated surprise, rule review candidate",
|
|
32
|
+
"useWhen": "A report may be expected on its own, but repeated sanitized reports suggest the rule guidance or matching boundary may need review.",
|
|
33
|
+
"labels": ["false-positive", "rules"],
|
|
34
|
+
"body": [
|
|
35
|
+
"Thanks. This may be expected caution for now, but repeated sanitized reports can become a rule-review candidate.",
|
|
36
|
+
"Please share redacted `jester doctor --json`, redacted `jester tune <rule-id> --json`, and the smallest public-safe input that reproduces the surprise. Do not paste secrets, private project details, full logs, or private paths.",
|
|
37
|
+
"Maintainer next step: collect at least two sanitized examples, compare `fixtureEvidence`, and only then decide whether this is docs, fixture backlog, guidance, or rule-matching work."
|
|
38
|
+
],
|
|
39
|
+
"requiredChecks": ["npm run fixtures:report -- --markdown", "npm run support:check"]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Maintainer Response Snippets
|
|
2
|
+
|
|
3
|
+
These public-safe snippets reduce maintainer response friction after a report has been classified with the [triage playbook](triage-playbook.json). They are intentionally generic: no private repository names, no customer data, no full logs, and no real credentials.
|
|
4
|
+
|
|
5
|
+
The checked source is [response-snippets.json](response-snippets.json). Keep the outcome IDs aligned with the playbook:
|
|
6
|
+
|
|
7
|
+
- `docs-example`
|
|
8
|
+
- `fixture-backlog`
|
|
9
|
+
- `rule-review-candidate`
|
|
10
|
+
|
|
11
|
+
## Docs Example Response
|
|
12
|
+
|
|
13
|
+
Use for `docs-example` outcomes when behavior is expected but wording or examples could be clearer.
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
Thanks for the report. This looks like expected behavior for the checked example, but the wording can be clearer.
|
|
17
|
+
|
|
18
|
+
Please do not paste private repo code, full logs, secrets, or private paths. If your local output differs from the checked example, share redacted `jester doctor --json` output and the smallest sanitized command summary.
|
|
19
|
+
|
|
20
|
+
Maintainer next step: update the report gallery wording or docs example, then run `npm run reports:check` and `npm run support:check`.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Fixture Backlog Response
|
|
24
|
+
|
|
25
|
+
Use for `fixture-backlog` outcomes when a minimized false-positive report looks like a safe boundary worth preserving.
|
|
26
|
+
|
|
27
|
+
```markdown
|
|
28
|
+
Thanks, this looks like a plausible safe boundary. Please keep the reproduction minimal and redacted, then share `jester tune <rule-id> --json`, redacted `jester doctor --json`, and the smallest command, plan, diff, or final-answer text that reproduces the result.
|
|
29
|
+
|
|
30
|
+
We will not loosen the rule from one report. If the reduced example is valid, the next step is a pass or quiet-pass fixture with `expectedRuleIds` or `absentRuleIds`.
|
|
31
|
+
|
|
32
|
+
Maintainer next step: add the fixture backlog item, then run `npm run fixtures:check`, `npm run fixtures:report`, and `npm run support:check`.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Rule Review Candidate Response
|
|
36
|
+
|
|
37
|
+
Use for `rule-review-candidate` outcomes when repeated sanitized reports suggest a rule boundary or guidance may need review.
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
Thanks. This may be expected caution for now, but repeated sanitized reports can become a rule-review candidate.
|
|
41
|
+
|
|
42
|
+
Please share redacted `jester doctor --json`, redacted `jester tune <rule-id> --json`, and the smallest public-safe input that reproduces the surprise. Do not paste secrets, private project details, full logs, or private paths.
|
|
43
|
+
|
|
44
|
+
Maintainer next step: collect at least two sanitized examples, compare `fixtureEvidence`, and only then decide whether this is docs, fixture backlog, guidance, or rule-matching work.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Run the guard after editing snippets:
|
|
48
|
+
|
|
49
|
+
```powershell
|
|
50
|
+
npm run support:check
|
|
51
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memento-mori-jester",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.92",
|
|
4
4
|
"description": "A local court-jester sidecar for AI coding agents: review plans, commands, diffs, and final claims before they get too pleased with themselves.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -94,6 +94,10 @@ for (const path of [
|
|
|
94
94
|
"examples/reports/feedback-template.md",
|
|
95
95
|
"examples/reports/report-gallery.json",
|
|
96
96
|
"examples/support/README.md",
|
|
97
|
+
"examples/support/closeout-checklist.md",
|
|
98
|
+
"examples/support/closeout-checklist.json",
|
|
99
|
+
"examples/support/response-snippets.md",
|
|
100
|
+
"examples/support/response-snippets.json",
|
|
97
101
|
"examples/support/triage-playbook.json",
|
|
98
102
|
"examples/presets/README.md",
|
|
99
103
|
"examples/tuning/README.md",
|
|
@@ -124,6 +128,8 @@ requireText("README.md", /consumer-quickstart/, "consumer quickstart smoke link"
|
|
|
124
128
|
requireText("README.md", /examples\/reports/, "report gallery link");
|
|
125
129
|
requireText("README.md", /feedback-template\.md/, "report gallery feedback template link");
|
|
126
130
|
requireText("README.md", /examples\/support/, "support triage playbook link");
|
|
131
|
+
requireText("README.md", /response-snippets\.md/, "support response snippets link");
|
|
132
|
+
requireText("README.md", /closeout-checklist\.md/, "support closeout checklist link");
|
|
127
133
|
requireText("README.md", /report gallery feedback/i, "report gallery feedback guidance");
|
|
128
134
|
requireText("README.md", /License: PolyForm Noncommercial/, "the noncommercial license badge");
|
|
129
135
|
requireText("docs/PRODUCTION_READINESS.md", /npm package/i, "npm package readiness");
|
|
@@ -145,6 +151,8 @@ requireText("docs/PRODUCTION_READINESS.md", /consumer:quickstart:check/, "consum
|
|
|
145
151
|
requireText("docs/PRODUCTION_READINESS.md", /reports:check/, "report gallery readiness");
|
|
146
152
|
requireText("docs/PRODUCTION_READINESS.md", /support:check/, "support triage readiness");
|
|
147
153
|
requireText("docs/PRODUCTION_READINESS.md", /examples\/support/, "support triage playbook readiness");
|
|
154
|
+
requireText("docs/PRODUCTION_READINESS.md", /response snippets/i, "support response snippets readiness");
|
|
155
|
+
requireText("docs/PRODUCTION_READINESS.md", /closeout checklist/i, "support closeout checklist readiness");
|
|
148
156
|
requireText("docs/PRODUCTION_READINESS.md", /quiet-pass/, "quiet-pass fixture readiness");
|
|
149
157
|
requireText("docs/CLI.md", /jester doctor --json/, "doctor JSON CLI docs");
|
|
150
158
|
requireText("docs/CLI.md", /quiet-pass fixture/, "quiet-pass fixture CLI docs");
|
|
@@ -169,6 +177,8 @@ requireText("docs/MAINTAINER_TRIAGE.md", /absentRuleIds/, "fixture absent rule g
|
|
|
169
177
|
requireText("docs/MAINTAINER_TRIAGE.md", /feedback-template\.md/, "report gallery feedback template link");
|
|
170
178
|
requireText("docs/MAINTAINER_TRIAGE.md", /report_gallery_feedback\.yml/, "report gallery issue template link");
|
|
171
179
|
requireText("docs/MAINTAINER_TRIAGE.md", /examples\/support/, "support triage playbook link");
|
|
180
|
+
requireText("docs/MAINTAINER_TRIAGE.md", /response-snippets\.md/, "support response snippets link");
|
|
181
|
+
requireText("docs/MAINTAINER_TRIAGE.md", /closeout-checklist\.md/, "support closeout checklist link");
|
|
172
182
|
requireText("docs/MAINTAINER_TRIAGE.md", /docs-example/, "docs example triage outcome");
|
|
173
183
|
requireText("docs/MAINTAINER_TRIAGE.md", /fixture-backlog/, "fixture backlog triage outcome");
|
|
174
184
|
requireText("docs/MAINTAINER_TRIAGE.md", /rule-review-candidate/, "rule review triage outcome");
|
|
@@ -201,12 +211,27 @@ requireText("examples/reports/feedback-template.md", /tune <rule-id> --json/, "f
|
|
|
201
211
|
requireText("examples/reports/feedback-template.md", /Privacy Checklist/, "feedback template privacy checklist");
|
|
202
212
|
requireText("examples/reports/feedback-template.md", /SECURITY\.md/, "feedback template security redirect");
|
|
203
213
|
requireText("examples/support/README.md", /triage-playbook\.json/, "support triage playbook JSON link");
|
|
214
|
+
requireText("examples/support/README.md", /response-snippets\.md/, "support response snippets link");
|
|
215
|
+
requireText("examples/support/README.md", /closeout-checklist\.md/, "support closeout checklist link");
|
|
204
216
|
requireText("examples/support/README.md", /docs-example/, "support triage docs outcome");
|
|
205
217
|
requireText("examples/support/README.md", /fixture-backlog/, "support triage fixture outcome");
|
|
206
218
|
requireText("examples/support/README.md", /rule-review-candidate/, "support triage rule-review outcome");
|
|
207
219
|
requireText("examples/support/triage-playbook.json", /gallery-expected-block-docs/, "support triage docs example");
|
|
208
220
|
requireText("examples/support/triage-playbook.json", /false-positive-fixture-backlog/, "support triage fixture example");
|
|
209
221
|
requireText("examples/support/triage-playbook.json", /repeated-risky-domain-rule-review/, "support triage rule-review example");
|
|
222
|
+
requireText("examples/support/response-snippets.md", /Maintainer Response Snippets/, "support response snippets heading");
|
|
223
|
+
requireText("examples/support/response-snippets.md", /response-snippets\.json/, "support response snippets JSON link");
|
|
224
|
+
requireText("examples/support/response-snippets.json", /docs-example-response/, "support docs response snippet");
|
|
225
|
+
requireText("examples/support/response-snippets.json", /fixture-backlog-response/, "support fixture response snippet");
|
|
226
|
+
requireText("examples/support/response-snippets.json", /rule-review-candidate-response/, "support rule-review response snippet");
|
|
227
|
+
requireText("examples/support/closeout-checklist.md", /Support Closeout Checklist/, "support closeout checklist heading");
|
|
228
|
+
requireText("examples/support/closeout-checklist.md", /closeout-checklist\.json/, "support closeout checklist JSON link");
|
|
229
|
+
requireText("examples/support/closeout-checklist.md", /shipped-or-queued/, "support docs closeout status");
|
|
230
|
+
requireText("examples/support/closeout-checklist.md", /backlog-created/, "support fixture closeout status");
|
|
231
|
+
requireText("examples/support/closeout-checklist.md", /candidate-opened/, "support rule-review closeout status");
|
|
232
|
+
requireText("examples/support/closeout-checklist.json", /docs-clarification-closeout/, "support docs closeout record");
|
|
233
|
+
requireText("examples/support/closeout-checklist.json", /fixture-backlog-closeout/, "support fixture closeout record");
|
|
234
|
+
requireText("examples/support/closeout-checklist.json", /rule-review-closeout/, "support rule-review closeout record");
|
|
210
235
|
requireText("examples/tuning/README.md", /framework-tuning-cookbook\.json/, "framework tuning cookbook JSON link");
|
|
211
236
|
requireText("examples/tuning/README.md", /framework:tuning:doctor/, "framework tuning doctor guidance");
|
|
212
237
|
requireText("examples/tuning/README.md", /jester tune <rule-id> --json|jester tune [a-z0-9-]+ --json/, "framework tuning command guidance");
|
|
@@ -240,6 +265,8 @@ requireText("scripts/check-report-gallery.mjs", /destructive-command-summary/, "
|
|
|
240
265
|
requireText("scripts/check-support-triage.mjs", /report_gallery_feedback\.yml/, "support triage issue template guard");
|
|
241
266
|
requireText("scripts/check-support-triage.mjs", /feedback-template\.md/, "support triage feedback template guard");
|
|
242
267
|
requireText("scripts/check-support-triage.mjs", /triage-playbook\.json/, "support triage playbook guard");
|
|
268
|
+
requireText("scripts/check-support-triage.mjs", /response-snippets\.json/, "support response snippets guard");
|
|
269
|
+
requireText("scripts/check-support-triage.mjs", /closeout-checklist\.json/, "support closeout checklist guard");
|
|
243
270
|
requireText("scripts/check-support-triage.mjs", /unsafeContentPatterns/, "support triage unsafe content checks");
|
|
244
271
|
requireText("package.json", /"fixtures:check": "node scripts\/check-fixtures\.mjs"/, "fixture authoring check script");
|
|
245
272
|
requireText("package.json", /"fixtures:report": "node scripts\/report-fixtures\.mjs"/, "fixture coverage report script");
|
|
@@ -25,7 +25,11 @@ const supportFiles = [
|
|
|
25
25
|
".github/ISSUE_TEMPLATE/config.yml",
|
|
26
26
|
"examples/reports/feedback-template.md",
|
|
27
27
|
"examples/reports/README.md",
|
|
28
|
+
"examples/support/closeout-checklist.md",
|
|
29
|
+
"examples/support/closeout-checklist.json",
|
|
28
30
|
"examples/support/README.md",
|
|
31
|
+
"examples/support/response-snippets.md",
|
|
32
|
+
"examples/support/response-snippets.json",
|
|
29
33
|
"examples/support/triage-playbook.json",
|
|
30
34
|
"docs/MAINTAINER_TRIAGE.md",
|
|
31
35
|
"docs/PRODUCTION_READINESS.md",
|
|
@@ -76,7 +80,9 @@ requireText("examples/reports/README.md", /npm run support:check/, "support chec
|
|
|
76
80
|
requireText("examples/reports/README.md", /examples\/support|Maintainer Triage Playbook/i, "maintainer triage playbook link");
|
|
77
81
|
|
|
78
82
|
requireText("examples/support/README.md", /Maintainer Triage Playbook/, "maintainer playbook heading");
|
|
83
|
+
requireText("examples/support/README.md", /closeout-checklist\.md/, "support closeout checklist link");
|
|
79
84
|
requireText("examples/support/README.md", /triage-playbook\.json/, "maintainer playbook JSON link");
|
|
85
|
+
requireText("examples/support/README.md", /response-snippets\.md/, "maintainer response snippets link");
|
|
80
86
|
requireText("examples/support/README.md", /gallery-expected-block-docs/, "docs example playbook case");
|
|
81
87
|
requireText("examples/support/README.md", /false-positive-fixture-backlog/, "fixture backlog playbook case");
|
|
82
88
|
requireText("examples/support/README.md", /repeated-risky-domain-rule-review/, "rule review playbook case");
|
|
@@ -87,23 +93,53 @@ requireText("examples/support/README.md", /fixture-backlog/, "fixture backlog ou
|
|
|
87
93
|
requireText("examples/support/README.md", /rule-review-candidate/, "rule review outcome");
|
|
88
94
|
requireText("examples/support/README.md", /SECURITY\.md/, "security redirect");
|
|
89
95
|
requireText("examples/support/README.md", /npm run support:check/, "support checker command");
|
|
96
|
+
requireText("examples/support/closeout-checklist.md", /Support Closeout Checklist/, "closeout checklist heading");
|
|
97
|
+
requireText("examples/support/closeout-checklist.md", /closeout-checklist\.json/, "closeout checklist JSON link");
|
|
98
|
+
requireText("examples/support/closeout-checklist.md", /docs-example/, "docs closeout outcome");
|
|
99
|
+
requireText("examples/support/closeout-checklist.md", /fixture-backlog/, "fixture closeout outcome");
|
|
100
|
+
requireText("examples/support/closeout-checklist.md", /rule-review-candidate/, "rule-review closeout outcome");
|
|
101
|
+
requireText("examples/support/closeout-checklist.md", /shipped-or-queued/, "docs closeout status");
|
|
102
|
+
requireText("examples/support/closeout-checklist.md", /backlog-created/, "fixture closeout status");
|
|
103
|
+
requireText("examples/support/closeout-checklist.md", /candidate-opened/, "rule-review closeout status");
|
|
104
|
+
requireText("examples/support/closeout-checklist.md", /npm run support:check/, "support checker closeout command");
|
|
105
|
+
requireText("examples/support/closeout-checklist.md", /SECURITY\.md/, "closeout security redirect");
|
|
106
|
+
requireText("examples/support/closeout-checklist.json", /docs-clarification-closeout/, "docs closeout record");
|
|
107
|
+
requireText("examples/support/closeout-checklist.json", /fixture-backlog-closeout/, "fixture closeout record");
|
|
108
|
+
requireText("examples/support/closeout-checklist.json", /rule-review-closeout/, "rule-review closeout record");
|
|
109
|
+
requireText("examples/support/response-snippets.md", /Maintainer Response Snippets/, "response snippets heading");
|
|
110
|
+
requireText("examples/support/response-snippets.md", /response-snippets\.json/, "response snippets JSON link");
|
|
111
|
+
requireText("examples/support/response-snippets.md", /docs-example/, "docs response outcome");
|
|
112
|
+
requireText("examples/support/response-snippets.md", /fixture-backlog/, "fixture backlog response outcome");
|
|
113
|
+
requireText("examples/support/response-snippets.md", /rule-review-candidate/, "rule review response outcome");
|
|
114
|
+
requireText("examples/support/response-snippets.md", /jester doctor --json/, "doctor JSON response prompt");
|
|
115
|
+
requireText("examples/support/response-snippets.md", /jester tune <rule-id> --json/, "tune JSON response prompt");
|
|
116
|
+
requireText("examples/support/response-snippets.md", /npm run support:check/, "support checker response command");
|
|
117
|
+
requireText("examples/support/response-snippets.json", /docs-example-response/, "docs response snippet");
|
|
118
|
+
requireText("examples/support/response-snippets.json", /fixture-backlog-response/, "fixture response snippet");
|
|
119
|
+
requireText("examples/support/response-snippets.json", /rule-review-candidate-response/, "rule review response snippet");
|
|
90
120
|
|
|
91
121
|
requireText("docs/MAINTAINER_TRIAGE.md", /feedback-template\.md/, "feedback template triage link");
|
|
92
122
|
requireText("docs/MAINTAINER_TRIAGE.md", /report_gallery_feedback\.yml/, "report gallery issue template triage link");
|
|
93
123
|
requireText("docs/MAINTAINER_TRIAGE.md", /examples\/support/, "maintainer playbook triage link");
|
|
124
|
+
requireText("docs/MAINTAINER_TRIAGE.md", /closeout-checklist\.md/, "support closeout checklist triage link");
|
|
125
|
+
requireText("docs/MAINTAINER_TRIAGE.md", /response-snippets\.md/, "maintainer response snippets triage link");
|
|
94
126
|
requireText("docs/MAINTAINER_TRIAGE.md", /docs-example/, "docs example triage outcome");
|
|
95
127
|
requireText("docs/MAINTAINER_TRIAGE.md", /fixture-backlog/, "fixture backlog triage outcome");
|
|
96
128
|
requireText("docs/MAINTAINER_TRIAGE.md", /rule-review-candidate/, "rule review triage outcome");
|
|
97
129
|
requireText("docs/MAINTAINER_TRIAGE.md", /npm(?:\.cmd)? run support:check/, "support checker triage command");
|
|
98
130
|
requireText("docs/PRODUCTION_READINESS.md", /support:check/, "support checker readiness");
|
|
99
131
|
requireText("README.md", /feedback-template\.md/, "feedback template README link");
|
|
132
|
+
requireText("README.md", /closeout-checklist\.md/, "support closeout checklist README link");
|
|
100
133
|
requireText("README.md", /examples\/support/, "maintainer triage playbook README link");
|
|
134
|
+
requireText("README.md", /response-snippets\.md/, "maintainer response snippets README link");
|
|
101
135
|
requireText("README.md", /report gallery feedback/i, "report gallery feedback guidance");
|
|
102
136
|
|
|
103
137
|
requireText("package.json", /"support:check": "node scripts\/check-support-triage\.mjs"/, "support checker script");
|
|
104
138
|
requireText("package.json", /npm run support:check/, "support checker in npm test");
|
|
105
139
|
|
|
106
140
|
checkTriagePlaybook();
|
|
141
|
+
checkResponseSnippets();
|
|
142
|
+
checkCloseoutChecklist();
|
|
107
143
|
|
|
108
144
|
if (failures.length > 0) {
|
|
109
145
|
console.error("Support triage check failed:");
|
|
@@ -232,3 +268,169 @@ function checkTriagePlaybook() {
|
|
|
232
268
|
}
|
|
233
269
|
}
|
|
234
270
|
}
|
|
271
|
+
|
|
272
|
+
function checkResponseSnippets() {
|
|
273
|
+
const path = "examples/support/response-snippets.json";
|
|
274
|
+
const snippets = readJson(path);
|
|
275
|
+
if (!snippets) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (!Array.isArray(snippets) || snippets.length !== 3) {
|
|
280
|
+
failures.push(`${path} should contain exactly three maintainer response snippets.`);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const expected = [
|
|
285
|
+
{ id: "docs-example-response", outcome: "docs-example", checks: ["npm run reports:check", "npm run support:check"] },
|
|
286
|
+
{ id: "fixture-backlog-response", outcome: "fixture-backlog", checks: ["npm run fixtures:check", "npm run fixtures:report", "npm run support:check"] },
|
|
287
|
+
{ id: "rule-review-candidate-response", outcome: "rule-review-candidate", checks: ["npm run fixtures:report -- --markdown", "npm run support:check"] }
|
|
288
|
+
];
|
|
289
|
+
const seenIds = new Set();
|
|
290
|
+
|
|
291
|
+
for (const [index, snippet] of snippets.entries()) {
|
|
292
|
+
const expectedSnippet = expected[index];
|
|
293
|
+
if (snippet?.id !== expectedSnippet.id) {
|
|
294
|
+
failures.push(`${path} entry ${index + 1} should have id ${expectedSnippet.id}.`);
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (seenIds.has(snippet.id)) {
|
|
299
|
+
failures.push(`${path} has duplicate id ${snippet.id}.`);
|
|
300
|
+
}
|
|
301
|
+
seenIds.add(snippet.id);
|
|
302
|
+
|
|
303
|
+
if (snippet.outcome !== expectedSnippet.outcome) {
|
|
304
|
+
failures.push(`${snippet.id}.outcome should be ${expectedSnippet.outcome}.`);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (typeof snippet.title !== "string" || snippet.title.length < 10) {
|
|
308
|
+
failures.push(`${snippet.id}.title should be a useful string.`);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (typeof snippet.useWhen !== "string" || snippet.useWhen.length < 30) {
|
|
312
|
+
failures.push(`${snippet.id}.useWhen should explain when to use the response.`);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (!Array.isArray(snippet.labels) || snippet.labels.length === 0) {
|
|
316
|
+
failures.push(`${snippet.id}.labels should be a non-empty array.`);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (!Array.isArray(snippet.body) || snippet.body.length !== 3) {
|
|
320
|
+
failures.push(`${snippet.id}.body should contain exactly three response paragraphs.`);
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const bodyText = snippet.body.join("\n");
|
|
325
|
+
if (!bodyText.includes("doctor --json")) {
|
|
326
|
+
failures.push(`${snippet.id}.body should ask for or mention redacted doctor --json diagnostics.`);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (!/secret|private|redacted/i.test(bodyText)) {
|
|
330
|
+
failures.push(`${snippet.id}.body should include privacy or redaction guidance.`);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if (!Array.isArray(snippet.requiredChecks)) {
|
|
334
|
+
failures.push(`${snippet.id}.requiredChecks should be an array.`);
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
for (const check of expectedSnippet.checks) {
|
|
339
|
+
if (!snippet.requiredChecks.includes(check)) {
|
|
340
|
+
failures.push(`${snippet.id}.requiredChecks should include ${check}.`);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function checkCloseoutChecklist() {
|
|
347
|
+
const path = "examples/support/closeout-checklist.json";
|
|
348
|
+
const closeouts = readJson(path);
|
|
349
|
+
if (!closeouts) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (!Array.isArray(closeouts) || closeouts.length !== 3) {
|
|
354
|
+
failures.push(`${path} should contain exactly three support closeout records.`);
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
const expected = [
|
|
359
|
+
{
|
|
360
|
+
id: "docs-clarification-closeout",
|
|
361
|
+
outcome: "docs-example",
|
|
362
|
+
status: "shipped-or-queued",
|
|
363
|
+
checks: ["npm run reports:check", "npm run support:check"]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id: "fixture-backlog-closeout",
|
|
367
|
+
outcome: "fixture-backlog",
|
|
368
|
+
status: "backlog-created",
|
|
369
|
+
checks: ["npm run fixtures:check", "npm run fixtures:report", "npm run support:check"]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
id: "rule-review-closeout",
|
|
373
|
+
outcome: "rule-review-candidate",
|
|
374
|
+
status: "candidate-opened",
|
|
375
|
+
checks: ["npm run fixtures:report -- --markdown", "npm run support:check"]
|
|
376
|
+
}
|
|
377
|
+
];
|
|
378
|
+
const seenIds = new Set();
|
|
379
|
+
|
|
380
|
+
for (const [index, closeout] of closeouts.entries()) {
|
|
381
|
+
const expectedCloseout = expected[index];
|
|
382
|
+
if (closeout?.id !== expectedCloseout.id) {
|
|
383
|
+
failures.push(`${path} entry ${index + 1} should have id ${expectedCloseout.id}.`);
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (seenIds.has(closeout.id)) {
|
|
388
|
+
failures.push(`${path} has duplicate id ${closeout.id}.`);
|
|
389
|
+
}
|
|
390
|
+
seenIds.add(closeout.id);
|
|
391
|
+
|
|
392
|
+
if (closeout.outcome !== expectedCloseout.outcome) {
|
|
393
|
+
failures.push(`${closeout.id}.outcome should be ${expectedCloseout.outcome}.`);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (closeout.decisionRecord?.status !== expectedCloseout.status) {
|
|
397
|
+
failures.push(`${closeout.id}.decisionRecord.status should be ${expectedCloseout.status}.`);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (typeof closeout.decisionRecord?.publicSummary !== "string" || closeout.decisionRecord.publicSummary.length < 30) {
|
|
401
|
+
failures.push(`${closeout.id}.decisionRecord.publicSummary should be a useful public summary.`);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (typeof closeout.decisionRecord?.userReply !== "string" || closeout.decisionRecord.userReply.length < 30) {
|
|
405
|
+
failures.push(`${closeout.id}.decisionRecord.userReply should be a useful closeout reply.`);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (typeof closeout.decisionRecord?.followUpLinkPlaceholder !== "string" || !closeout.decisionRecord.followUpLinkPlaceholder.startsWith("<")) {
|
|
409
|
+
failures.push(`${closeout.id}.decisionRecord.followUpLinkPlaceholder should be a placeholder.`);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
if (typeof closeout.decisionRecord?.nextCommand !== "string" || closeout.decisionRecord.nextCommand.length < 8) {
|
|
413
|
+
failures.push(`${closeout.id}.decisionRecord.nextCommand should include a next command.`);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (!Array.isArray(closeout.requiredEvidence) || closeout.requiredEvidence.length < 3) {
|
|
417
|
+
failures.push(`${closeout.id}.requiredEvidence should contain at least three evidence checks.`);
|
|
418
|
+
} else {
|
|
419
|
+
const evidenceText = closeout.requiredEvidence.join("\n");
|
|
420
|
+
if (!/secret|private|redacted|public-safe/i.test(evidenceText)) {
|
|
421
|
+
failures.push(`${closeout.id}.requiredEvidence should include privacy or redaction evidence.`);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (!Array.isArray(closeout.requiredChecks)) {
|
|
426
|
+
failures.push(`${closeout.id}.requiredChecks should be an array.`);
|
|
427
|
+
continue;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
for (const check of expectedCloseout.checks) {
|
|
431
|
+
if (!closeout.requiredChecks.includes(check)) {
|
|
432
|
+
failures.push(`${closeout.id}.requiredChecks should include ${check}.`);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|