@cratis/pi 7.154.0 → 7.156.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.
@@ -0,0 +1,44 @@
1
+ # Public-safe wording
2
+
3
+ A post-mortem and the issues filed from it may be public. Run this pass last,
4
+ over the review and over every issue body.
5
+
6
+ ## Remove or generalize
7
+
8
+ - Secrets of any kind: tokens, keys, passwords, connection strings. Write
9
+ `<redacted: kind>`; never the value, not even partly.
10
+ - Internal hostnames, addresses, cluster and bucket names, and local
11
+ filesystem paths. Use a role such as `<database-cluster>` or a repository
12
+ relative path.
13
+ - Personal names, emails and handles. Use roles: "the on-call engineer", "the
14
+ release owner".
15
+ - Customer names, and private repository or ticket titles that reveal
16
+ confidential work.
17
+ - Run, job and commit identifiers that only resolve in a private system. Keep a
18
+ stable public link, or write `<run-link>`.
19
+ - Speculation about a third party's fault. State what was observed.
20
+
21
+ ## Before and after
22
+
23
+ | Before | After |
24
+ |---|---|
25
+ | Alex approved it without review | The change was merged without review |
26
+ | Failed on db-07.corp.example | Failed on `<database-cluster>` |
27
+ | Read from a local home directory path | Read from `<local-config>` |
28
+ | Connection string pasted from the log | `<redacted: connection string>` |
29
+ | The vendor's bug broke our upload | Uploads failed after the tool upgrade; the cause is Unverified |
30
+
31
+ ## Scan checklist
32
+
33
+ Search the review and each issue body for these before publishing. A match is
34
+ either removed or justified as a public link.
35
+
36
+ - Local path prefixes for user home directories.
37
+ - `@` followed by a name, and email addresses.
38
+ - The words `token`, `key`, `password`, `secret`, `bearer`.
39
+ - IPv4 addresses and internal hostname suffixes.
40
+ - Long hexadecimal strings, which are often commit or key material.
41
+ - Private tracker identifiers that do not resolve publicly.
42
+
43
+ Finish with a **Redaction note** in the review naming the categories removed,
44
+ never the values.
@@ -0,0 +1,168 @@
1
+ # Post-mortem review template
2
+
3
+ ## Contents
4
+
5
+ - Template
6
+ - Column and value rules
7
+ - Synthetic example
8
+
9
+ Copy the template below, fill every section and delete the guidance in
10
+ parentheses. A section with nothing to say states that in one line; it is never
11
+ removed. The synthetic example at the end shows the level of detail.
12
+
13
+ ## Template
14
+
15
+ ```markdown
16
+ # Post-mortem: <short title>
17
+
18
+ Blameless. Status: **Draft | Final**. Times UTC. Every claim carries a
19
+ confidence: Verified, Inferred or Unverified. (State when tracker status was
20
+ read, for example "as read at write time".)
21
+
22
+ ## Summary
23
+ (3-5 sentences, facts only: what failed, the exposure window with start, end
24
+ and total duration, who or what was affected, how it was fixed, how it was
25
+ found. Only Verified material is stated as fact.)
26
+
27
+ ## Status and scope
28
+ (Incident window in UTC, severity, repositories and systems involved, review
29
+ date, whether the incident is over, what is still exposed.)
30
+
31
+ ## Impact
32
+ (A short text: how long, how much and how, with the measure and source of each
33
+ number; estimates say so. Remaining exposure. Mitigations that held, how each
34
+ was verified and its limits.)
35
+
36
+ **Affected**
37
+ - <who or what> (Confidence: Verified)
38
+ - <who or what> (Confidence: Inferred, from <the evidence it is derived from>)
39
+ - <who or what> (Confidence: Unverified)
40
+
41
+ ## Timeline (UTC)
42
+ | Time (UTC) | Event | Source | Confidence |
43
+ |---|---|---|---|
44
+ | <date> HH:MM:SSZ | <what happened> | <link> | Verified |
45
+ | **<date> HH:MM:SSZ** | **<outage start>** | <link> | Verified |
46
+ | <date> HH:MM:SSZ | <what follows from the evidence> | <link> | Inferred (from <evidence>) |
47
+ | <date> HH:MM:SSZ | <what someone reported> | <link> | Unverified |
48
+ | **<date> HH:MM:SSZ** | **<outage end>** | <link> | Verified |
49
+
50
+ (Durations: total, start to fix released, fix released to deployed.)
51
+
52
+ ## Evidence
53
+ (Every source with a stable link and what was read.)
54
+
55
+ **Evidence gaps:** (sources that could not be read, and what is unknown as a
56
+ result.)
57
+
58
+ ## Verified facts
59
+ (Each fact followed by its source.)
60
+
61
+ ## Unverified claims
62
+ - <claim> (raised by <role>). Confidence: Unverified | Inferred (from
63
+ <evidence>). Why unverified: <reason>. How to verify: <step>.
64
+
65
+ ## Detection
66
+ - <how and when it was found>
67
+ - <a reason it was not found sooner: the check that could not see it, the
68
+ status it accepted, the signal that does not exist>
69
+
70
+ ## Root causes
71
+ - **Trigger:** (the event that started it.)
72
+ - **Root cause:** **Primary** (why-chain: <effect> because <cause> because
73
+ <cause>, until the last cause is something a change can prevent.)
74
+ - **Root cause:** (another why-chain; mark it **Primary** only if it is one of
75
+ the main causes. A cause shared by several actions is named once.)
76
+ - **Contributing factors:** (conditions that made it worse or longer.)
77
+ - **Detection and response gaps:** (what slowed finding or fixing it.)
78
+
79
+ ## What went well
80
+ - <item>
81
+
82
+ ## What went poorly
83
+ - <item>
84
+
85
+ ## Where we were lucky
86
+ - <item>
87
+
88
+ ## Actions
89
+ | # | Action | Type | Owner | Issue | Status |
90
+ |---|---|---|---|---|---|
91
+ | 1 | <outcome, one action> | prevent | @<team-or-person> | <owner/repo>#<n> | Open |
92
+
93
+ (Type: prevent, detect, mitigate, fix, verify or process. Status: Needs
94
+ decision, Open, In progress, Done or Declined with the reason. In a **Draft**
95
+ review the Owner may be a proposed owner (a role or team) and Status may be
96
+ "Needs decision"; the Issue may be pending. The review becomes **Final** only
97
+ when every action has one named accountable owner and one linked issue, in the
98
+ repository that owns the work. Never "TBD" or "everyone" in a Final review. Add
99
+ a Filing column with `linked-existing` or `filed-new` when actions are filed
100
+ by an agent.)
101
+
102
+ ## Lessons
103
+ - <one line, phrased as a rule that can become a gate>
104
+
105
+ ## Redaction note
106
+ (Categories removed or generalized, not their values.)
107
+ ```
108
+
109
+ ## Column and value rules
110
+
111
+ - **Time.** ISO-8601 UTC. When the source used a local zone, convert and keep
112
+ the original in the Event cell ("09:15 local, converted").
113
+ - **Confidence.** Exactly `Verified`, `Inferred` or `Unverified`, in the
114
+ timeline, the Affected list and the claims. `Verified` needs a source.
115
+ `Inferred` means derived from verified evidence but not directly observed,
116
+ and names what it is inferred from. Everything else is `Unverified`.
117
+ - **Type.** Prefer `prevent` and `detect` actions that add or change a gate
118
+ over `process` reminders. A hold, freeze or override action carries an
119
+ expiry and a watcher.
120
+ - **One action, one issue.** Never cover two actions with one issue; never file
121
+ without a duplicate search.
122
+
123
+ ## Synthetic example
124
+
125
+ A short, fictional review that shows the shape; the worked examples in
126
+ `examples/` show a full one.
127
+
128
+ ```markdown
129
+ # Post-mortem: Nightly export skipped for three days
130
+
131
+ Blameless. Status: **Final**. Times UTC. Every claim carries a confidence.
132
+
133
+ ## Summary
134
+ The nightly export did not run from <date> 02:00Z to <date+3> 02:00Z, a gap of
135
+ 72 hours. A scheduler upgrade reset the job's enabled flag. A user noticed the
136
+ missing file and the job was re-enabled the same hour.
137
+
138
+ ## Impact
139
+ Three nightly exports were missed (72 hours), counted from the scheduler log.
140
+
141
+ **Affected**
142
+ - The downstream report that reads the export (Confidence: Verified)
143
+ - Two partner dashboards (Confidence: Inferred, from their read of the same
144
+ report)
145
+
146
+ ## Timeline (UTC)
147
+ | Time (UTC) | Event | Source | Confidence |
148
+ |---|---|---|---|
149
+ | <date> 01:40Z | Scheduler upgraded | deploy run link | Verified |
150
+ | **<date> 02:00Z** | **Export job did not start** | scheduler log link | Verified |
151
+ | <date+3> 09:12Z | User reports missing file | support ticket link | Verified |
152
+ | **<date+3> 09:48Z** | **Job re-enabled; export ran** | scheduler log link | Verified |
153
+
154
+ ## Unverified claims
155
+ - "The old version also dropped jobs" (raised by the on-call engineer).
156
+ Confidence: Unverified. Why unverified: no log of earlier runs is retained.
157
+ How to verify: check run history exports.
158
+
159
+ ## Root causes
160
+ - **Root cause:** **Primary** The job did not run because its enabled flag was
161
+ off, because the upgrade reset scheduler settings, because upgrades are not
162
+ followed by a check that jobs are enabled.
163
+
164
+ ## Actions
165
+ | # | Action | Type | Owner | Issue | Status |
166
+ |---|---|---|---|---|---|
167
+ | 1 | Alert when no export has finished in 26 hours | detect | @platform-team | <owner/repo>#<n> | Open |
168
+ ```
@@ -0,0 +1,13 @@
1
+ {
2
+ "skill": "cratis-engineering-post-mortem",
3
+ "input": "Write a post-mortem from an incident record with linked runs and a hearsay claim, with owned and linked actions.",
4
+ "fixtures": [],
5
+ "assertions": [
6
+ { "kind": "skill-contains", "value": "UTC" },
7
+ { "kind": "skill-contains", "value": "is derived from verified evidence" },
8
+ { "kind": "skill-contains", "value": "**Primary**" },
9
+ { "kind": "skill-contains", "value": "exactly one" },
10
+ { "kind": "skill-contains", "value": "search that tracker for an existing item" },
11
+ { "kind": "skill-contains", "value": "../../rules/secrets.md" }
12
+ ]
13
+ }
@@ -279,6 +279,7 @@
279
279
  "cratis-arc-command-validation",
280
280
  "cratis-arc-configuration",
281
281
  "cratis-arc-hosting",
282
+ "cratis-arc-mcp",
282
283
  "cratis-arc-neo4j",
283
284
  "cratis-arc-observable-query-http",
284
285
  "cratis-arc-query-paging"
@@ -1110,6 +1111,7 @@
1110
1111
  "cratis-engineering-issue-hygiene",
1111
1112
  "cratis-engineering-issue-design-note",
1112
1113
  "cratis-engineering-local-cross-repo-verification",
1114
+ "cratis-engineering-post-mortem",
1113
1115
  "cratis-engineering-regression-cluster",
1114
1116
  "cratis-engineering-release-trains",
1115
1117
  "cratis-engineering-review-rounds",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.154.0",
3
+ "version": "7.156.0",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [