session-orchestrator 3.20.0 → 3.22.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.
Files changed (202) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.cursor/rules/000-session-orchestrator.mdc +3 -2
  5. package/.cursor/rules/030-wave-execution.mdc +10 -8
  6. package/.cursor/rules/040-discovery.mdc +6 -6
  7. package/.cursor/rules/050-plan.mdc +8 -8
  8. package/CHANGELOG.md +515 -0
  9. package/README.md +16 -11
  10. package/agents/analyst.md +1 -1
  11. package/agents/architect-reviewer.md +1 -1
  12. package/agents/code-implementer.md +4 -2
  13. package/agents/db-specialist.md +1 -1
  14. package/agents/dialectic-deriver.md +1 -1
  15. package/agents/docs-writer.md +1 -1
  16. package/agents/memory-proposal-collector.md +7 -5
  17. package/agents/qa-strategist.md +1 -1
  18. package/agents/security-reviewer.md +1 -1
  19. package/agents/session-reviewer.md +42 -1
  20. package/agents/skill-applied-judge.md +1 -1
  21. package/agents/test-writer.md +1 -1
  22. package/agents/ui-developer.md +1 -1
  23. package/agents/ux-evaluator.md +1 -1
  24. package/commands/eli5.md +33 -0
  25. package/commands/release.md +62 -0
  26. package/commands/test.md +2 -2
  27. package/docs/components.md +6 -5
  28. package/docs/migration-v3.md +9 -6
  29. package/docs/persona-panel.md +3 -1
  30. package/docs/scope-collision-guard.md +167 -0
  31. package/docs/session-config-reference.md +31 -8
  32. package/hooks/_lib/lock-bootstrap.mjs +19 -13
  33. package/hooks/enforce-scope.mjs +103 -3
  34. package/hooks/hooks-codex.json +1 -1
  35. package/hooks/hooks.json +21 -1
  36. package/hooks/on-session-end.mjs +76 -97
  37. package/hooks/on-session-start.mjs +195 -104
  38. package/hooks/on-stop.mjs +127 -12
  39. package/hooks/post-bash-write-verify.mjs +8 -32
  40. package/hooks/pre-auq-clarity.mjs +787 -0
  41. package/hooks/pre-bash-issue-budget.mjs +17 -18
  42. package/hooks/pre-task-scope-disjoint.mjs +1042 -0
  43. package/package.json +3 -1
  44. package/pi/prompts/eli5.md +12 -0
  45. package/pi/prompts/release.md +12 -0
  46. package/scripts/auq-audit.mjs +825 -0
  47. package/scripts/autopilot.mjs +10 -9
  48. package/scripts/emit-session.mjs +42 -0
  49. package/scripts/export-hw-learnings.mjs +61 -2
  50. package/scripts/lib/auq/clarity.mjs +1314 -0
  51. package/scripts/lib/auq/parse.mjs +1006 -0
  52. package/scripts/lib/auq/schema.mjs +1457 -0
  53. package/scripts/lib/autopilot/worktree-pipeline.mjs +5 -5
  54. package/scripts/lib/backlog-scan.mjs +106 -15
  55. package/scripts/lib/build-live-signals.mjs +7 -3
  56. package/scripts/lib/ci-status-banner.mjs +267 -77
  57. package/scripts/lib/config/dispatcher-autonomy-capture.mjs +32 -9
  58. package/scripts/lib/config/vault-integration.mjs +12 -1
  59. package/scripts/lib/dispatcher/rank.mjs +4 -7
  60. package/scripts/lib/gates/gate-full.mjs +3 -3
  61. package/scripts/lib/gates/gate-helpers.mjs +17 -6
  62. package/scripts/lib/git-config-drift.mjs +471 -0
  63. package/scripts/lib/harness-audit/categories/category6.mjs +65 -12
  64. package/scripts/lib/io.mjs +432 -7
  65. package/scripts/lib/issue-budget.mjs +63 -9
  66. package/scripts/lib/learnings/select.mjs +157 -3
  67. package/scripts/lib/memory-cleanup-stamp.mjs +132 -8
  68. package/scripts/lib/mirror-issues-banner.mjs +266 -0
  69. package/scripts/lib/named-vault-resolver.mjs +105 -16
  70. package/scripts/lib/owner-interview.mjs +78 -32
  71. package/scripts/lib/peer-cards/schema.mjs +6 -2
  72. package/scripts/lib/peer-discovery.mjs +73 -22
  73. package/scripts/lib/project-hygiene.mjs +64 -4
  74. package/scripts/lib/reconcile/renderer.mjs +17 -4
  75. package/scripts/lib/reconcile/writer.mjs +69 -30
  76. package/scripts/lib/redact-spans.mjs +89 -0
  77. package/scripts/lib/resource-probe/evaluate.mjs +330 -149
  78. package/scripts/lib/resource-probe/probe-platform.mjs +35 -0
  79. package/scripts/lib/resource-probe.mjs +18 -2
  80. package/scripts/lib/scope-baseline.mjs +77 -17
  81. package/scripts/lib/scope-gate.mjs +658 -0
  82. package/scripts/lib/secret-masker.mjs +262 -0
  83. package/scripts/lib/session-lock.mjs +34 -10
  84. package/scripts/lib/session-registry.mjs +9 -1
  85. package/scripts/lib/spiral-carryover.mjs +23 -2
  86. package/scripts/lib/state-md/mission-status.mjs +164 -58
  87. package/scripts/lib/tmux-layout/vcs-detector.mjs +108 -4
  88. package/scripts/lib/validate/check-agents.mjs +77 -5
  89. package/scripts/lib/validate/check-auq-clarity.mjs +274 -0
  90. package/scripts/lib/validate/check-commands.mjs +2 -20
  91. package/scripts/lib/validate/check-doc-cli-commands.mjs +514 -0
  92. package/scripts/lib/validate/check-hooks-symmetry.mjs +48 -0
  93. package/scripts/lib/validate/check-owner-leakage.mjs +185 -17
  94. package/scripts/lib/validate/check-rules.mjs +153 -9
  95. package/scripts/lib/validate/check-skills.mjs +191 -0
  96. package/scripts/lib/validate/check-test-git-config-target.mjs +665 -0
  97. package/scripts/lib/validate/check-unicode-safety.mjs +22 -2
  98. package/scripts/lib/validate/check-untracked-test-deps.mjs +925 -0
  99. package/scripts/lib/validate/check-unwired-features.mjs +219 -11
  100. package/scripts/lib/validate/check-vcs-repo-flag.mjs +965 -0
  101. package/scripts/lib/validate/frontmatter-block.mjs +61 -0
  102. package/scripts/lib/validate/tier-inference.mjs +46 -8
  103. package/scripts/lib/vault-backfill/glab.mjs +91 -58
  104. package/scripts/lib/vault-backfill/manifest.mjs +28 -8
  105. package/scripts/lib/vault-mirror/namespace.mjs +146 -1
  106. package/scripts/lib/vault-mirror/process.mjs +264 -31
  107. package/scripts/lib/vault-mirror/render-sessions.mjs +115 -4
  108. package/scripts/lib/vault-status/board-writer.mjs +300 -56
  109. package/scripts/lib/vault-status/narrative-mirror.mjs +119 -5
  110. package/scripts/lib/vcs-repo-spec.mjs +680 -30
  111. package/scripts/lib/wave-resource-gate.mjs +67 -73
  112. package/scripts/materialize-wave-scope.mjs +281 -0
  113. package/scripts/print-learnings-index.mjs +30 -3
  114. package/scripts/release.mjs +983 -107
  115. package/scripts/run-quality-gate.mjs +14 -0
  116. package/scripts/site-numbers.mjs +1049 -0
  117. package/scripts/validate-plugin.mjs +64 -0
  118. package/scripts/validate-wave-scope.mjs +286 -12
  119. package/scripts/vault-backfill.mjs +32 -5
  120. package/scripts/vault-mirror.mjs +26 -1
  121. package/skills/_shared/monitor-patterns.md +24 -4
  122. package/skills/_shared/parallel-aware-auq.md +30 -24
  123. package/skills/_shared/parallel-aware-preamble.md +31 -2
  124. package/skills/_shared/state-ownership.md +49 -6
  125. package/skills/bootstrap/SKILL.md +2 -1
  126. package/skills/brainstorm/SKILL.md +18 -18
  127. package/skills/brainstorm/soul.md +12 -0
  128. package/skills/claude-md-drift-check/SKILL.md +9 -1
  129. package/skills/debug/SKILL.md +4 -1
  130. package/skills/discovery/SKILL.md +28 -24
  131. package/skills/discovery/issue-templates.md +4 -4
  132. package/skills/discovery/probes-code.md +2 -2
  133. package/skills/discovery/probes-feature.md +6 -6
  134. package/skills/discovery/probes-infra.md +2 -2
  135. package/skills/discovery/probes-session.md +5 -5
  136. package/skills/dispatcher/SKILL.md +10 -1
  137. package/skills/eli5/SKILL.md +43 -0
  138. package/skills/evolve/SKILL.md +8 -9
  139. package/skills/frontmatter-guard/SKILL.md +9 -1
  140. package/skills/gitlab-ops/SKILL.md +73 -59
  141. package/skills/gitlab-portfolio/SKILL.md +10 -1
  142. package/skills/grill/SKILL.md +6 -6
  143. package/skills/grill/soul.md +16 -0
  144. package/skills/memory-cleanup/SKILL.md +20 -7
  145. package/skills/npm-publish/SKILL.md +23 -51
  146. package/skills/peekaboo-driver/SKILL.md +3 -3
  147. package/skills/persona-panel/SKILL.md +3 -1
  148. package/skills/plan/SKILL.md +18 -16
  149. package/skills/plan/mode-feature.md +1 -1
  150. package/skills/plan/mode-new.md +42 -12
  151. package/skills/plan/soul.md +12 -0
  152. package/skills/reconcile/SKILL.md +3 -3
  153. package/skills/repo-audit/SKILL.md +10 -1
  154. package/skills/session-end/SKILL.md +97 -22
  155. package/skills/session-end/metrics-collection.md +1 -1
  156. package/skills/session-end/phase-3-6-tail.md +37 -2
  157. package/skills/session-end/session-metrics-write.md +4 -10
  158. package/skills/session-plan/SKILL.md +2 -2
  159. package/skills/session-plan/wave-template.md +1 -1
  160. package/skills/session-start/SKILL.md +82 -36
  161. package/skills/session-start/phase-2-5-docs-planning.md +8 -8
  162. package/skills/session-start/phase-4-5-resource-health.md +82 -19
  163. package/skills/session-start/soul.md +110 -0
  164. package/skills/spinout/SKILL.md +5 -1
  165. package/skills/sunset-review/SKILL.md +11 -1
  166. package/skills/test-runner/SKILL.md +2 -2
  167. package/skills/tmux-layout/SKILL.md +7 -2
  168. package/skills/using-orchestrator/SKILL.md +1 -1
  169. package/skills/vault-mirror/SKILL.md +10 -1
  170. package/skills/vault-sync/SKILL.md +10 -1
  171. package/skills/vault-sync/validator.mjs +55 -6
  172. package/skills/wave-executor/wave-loop.md +64 -12
  173. package/skills/write-executable-plan/SKILL.md +6 -6
  174. package/scripts/lib/mission-status-schema.mjs +0 -114
  175. package/scripts/tests/fixtures/fetch-baseline/sample-rule.md +0 -8
  176. package/skills/vault-sync/tests/fixtures/archive-test-vault/90-archive/bad-archived.md +0 -8
  177. package/skills/vault-sync/tests/fixtures/archive-test-vault/_meta/.gitkeep +0 -0
  178. package/skills/vault-sync/tests/fixtures/archive-test-vault/live-note.md +0 -8
  179. package/skills/vault-sync/tests/fixtures/broken-frontmatter-vault/_meta/.gitkeep +0 -0
  180. package/skills/vault-sync/tests/fixtures/broken-frontmatter-vault/bad-type.md +0 -8
  181. package/skills/vault-sync/tests/fixtures/broken-frontmatter-vault/good-note.md +0 -8
  182. package/skills/vault-sync/tests/fixtures/clean-vault/.obsidian/config.md +0 -8
  183. package/skills/vault-sync/tests/fixtures/clean-vault/01-projects/foo/projects-baseline.md +0 -10
  184. package/skills/vault-sync/tests/fixtures/clean-vault/03-daily/daily-2026-04-13.md +0 -8
  185. package/skills/vault-sync/tests/fixtures/clean-vault/README.md +0 -3
  186. package/skills/vault-sync/tests/fixtures/clean-vault/hello-world.md +0 -11
  187. package/skills/vault-sync/tests/fixtures/dangling-link-vault/_meta/.gitkeep +0 -0
  188. package/skills/vault-sync/tests/fixtures/dangling-link-vault/has-dangling.md +0 -9
  189. package/skills/vault-sync/tests/fixtures/dangling-link-vault/real-target.md +0 -8
  190. package/skills/vault-sync/tests/fixtures/empty-vault/_meta/.gitkeep +0 -0
  191. package/skills/vault-sync/tests/fixtures/missing-field-vault/_meta/.gitkeep +0 -0
  192. package/skills/vault-sync/tests/fixtures/missing-field-vault/missing-id.md +0 -7
  193. package/skills/vault-sync/tests/fixtures/nested-tag-vault/03-daily/daily-2026-04-13.md +0 -9
  194. package/skills/vault-sync/tests/fixtures/nested-tag-vault/_meta/.gitkeep +0 -0
  195. package/skills/vault-sync/tests/fixtures/nested-tag-vault/nested-tags-note.md +0 -11
  196. package/skills/vault-sync/tests/fixtures/no-frontmatter-vault/README.md +0 -3
  197. package/skills/vault-sync/tests/fixtures/no-frontmatter-vault/_MOC.md +0 -3
  198. package/skills/vault-sync/tests/fixtures/no-frontmatter-vault/_meta/.gitkeep +0 -0
  199. package/skills/vault-sync/tests/fixtures/with-moc-vault/_MOC.md +0 -11
  200. package/skills/vault-sync/tests/fixtures/with-moc-vault/_meta/.gitkeep +0 -0
  201. package/skills/vault-sync/tests/fixtures/with-moc-vault/hello-world.md +0 -11
  202. package/skills/vault-sync/tests/schema-drift.test.mjs +0 -133
@@ -44,7 +44,7 @@ import {
44
44
  import { buildLiveSignals } from './lib/build-live-signals.mjs';
45
45
  import { surfaceTopN, decayOptsFromConfig } from './lib/learnings/surface.mjs';
46
46
  import { selectMode } from './lib/mode-selector.mjs';
47
- import { probe, evaluate } from './lib/resource-probe.mjs';
47
+ import { probe, evaluate, DEFAULT_RESOURCE_THRESHOLDS } from './lib/resource-probe.mjs';
48
48
  import { detectPeers } from './lib/session-registry.mjs';
49
49
  import { normalizeSession } from './lib/session-schema.mjs';
50
50
 
@@ -112,13 +112,12 @@ const config = loadConfig();
112
112
  * @returns {object} thresholds object consumable by evaluate()
113
113
  */
114
114
  function loadResourceThresholds() {
115
- // Probe defaults (mirrors resource-probe hard-coded values)
116
- const DEFAULTS = {
117
- 'ram-free-min-gb': 2.0,
118
- 'ram-free-critical-gb': 0.5,
119
- 'cpu-load-max-pct': 85,
120
- 'concurrent-sessions-warn': 3,
121
- };
115
+ // #1089: this block used to hold its OWN four numbers (2.0 / 0.5 / 85 / 3)
116
+ // under a comment claiming it "mirrors resource-probe hard-coded values" —
117
+ // which it did not, and had not for some time. Autopilot therefore judged
118
+ // every host against a threshold set no other consumer used, and the comment
119
+ // is what made that invisible. Now sourced from the one canonical definition.
120
+ const DEFAULTS = { ...DEFAULT_RESOURCE_THRESHOLDS };
122
121
 
123
122
  const rt = config && config['resource-thresholds'];
124
123
  if (rt && typeof rt === 'object') {
@@ -228,9 +227,11 @@ let cachedProbeSnapshot = null;
228
227
  * @returns {Promise<{mode: string, confidence: number, rationale?: string, alternatives?: object[]}>}
229
228
  */
230
229
  async function modeSelector() {
230
+ // `backlogLimit` is intentionally NOT passed: the window default lives once,
231
+ // in backlog-scan.mjs (`DEFAULT_BACKLOG_LIMIT`). The hand-written 50 that
232
+ // stood here under-read this repo's own backlog and hid its critical issues.
231
233
  const signals = await buildLiveSignals({
232
234
  learnings: surfacedLearnings,
233
- backlogLimit: 50,
234
235
  });
235
236
  return selectMode(signals);
236
237
  }
@@ -25,8 +25,14 @@
25
25
  */
26
26
 
27
27
  import { readFileSync } from 'node:fs';
28
+ import { dirname, join } from 'node:path';
28
29
  import { fileURLToPath } from 'node:url';
29
30
  import { appendJsonl } from './lib/common.mjs';
31
+ import {
32
+ MEMORY_CLEANUP_EVENT,
33
+ deriveMemoryCleanupSignal,
34
+ stampMemoryCleanup,
35
+ } from './lib/memory-cleanup-stamp.mjs';
30
36
  import { serializeSessionLineChecked } from './lib/session-schema/serializer.mjs';
31
37
  import {
32
38
  validateSession,
@@ -111,6 +117,42 @@ async function main() {
111
117
  );
112
118
  }
113
119
 
120
+ // `memory_cleanup_at` derivation (#699 follow-up — Disziplin statt Mechanik).
121
+ // The flag used to be a boolean the coordinator-LLM remembered to pass at
122
+ // session-end; it was forgotten on 2026-08-14 and the cadence marker stalled
123
+ // 29 days behind the operator's own notes. It is now READ from the session's
124
+ // own `orchestrator.memory.cleanup_completed` events, sitting in the sibling
125
+ // events.jsonl of the target sessions.jsonl (same `.orchestrator/metrics/`
126
+ // directory in production, same tmp dir under test — no env plumbing).
127
+ //
128
+ // Precedence: an EXPLICIT `memory_cleanup_at` on the incoming record WINS and
129
+ // is never overwritten — an explicit stamp is a caller's positive assertion,
130
+ // while derivation only fills the gap left by silence.
131
+ const alreadyStamped =
132
+ typeof repaired.memory_cleanup_at === 'string' && repaired.memory_cleanup_at.length > 0;
133
+ if (!alreadyStamped) {
134
+ const eventsFile = join(dirname(args.file), 'events.jsonl');
135
+ const signal = deriveMemoryCleanupSignal({
136
+ eventsFile,
137
+ sessionId: repaired.session_id,
138
+ startedAt: repaired.started_at,
139
+ completedAt: repaired.completed_at,
140
+ });
141
+ if (signal.ranCleanup) {
142
+ const before = repaired;
143
+ repaired = stampMemoryCleanup(repaired, {
144
+ ranCleanup: true,
145
+ completedAt: repaired.completed_at,
146
+ });
147
+ if (repaired !== before) {
148
+ process.stderr.write(
149
+ `emit-session: derived memory_cleanup_at=${repaired.memory_cleanup_at} from ` +
150
+ `${signal.matches} ${MEMORY_CLEANUP_EVENT} event(s) (latest ${signal.at})\n`
151
+ );
152
+ }
153
+ }
154
+ }
155
+
114
156
  let validated;
115
157
  try {
116
158
  validated = validateSession(repaired);
@@ -22,6 +22,8 @@
22
22
  *
23
23
  * ## Anonymization pipeline (enforced; no opt-out)
24
24
  *
25
+ * - Mask env-derived secret VALUES first (#1025, value-based — orthogonal to the
26
+ * form-based rules below; see the note above `maskSecretValues`)
25
27
  * - Strip all absolute paths (macOS, Linux system paths, Windows)
26
28
  * - Redact IPv4 addresses
27
29
  * - Redact GitHub/GitLab URLs containing org/repo paths
@@ -55,6 +57,7 @@ import {
55
57
  } from './lib/learnings.mjs';
56
58
  import { findProjectRoot, resolveInstructionFile, expandTilde } from './lib/common.mjs';
57
59
  import { parseSessionConfig } from './lib/config.mjs';
60
+ import { createSecretValueMasker } from './lib/secret-masker.mjs';
58
61
 
59
62
  // Vault-relative default write target (Epic #774 — docs Public-Split removed
60
63
  // the prior in-repo generated telemetry doc in favor of the private Meta-Vault).
@@ -135,6 +138,58 @@ const SIGNED_OFF_RE = /Signed-off-by:[^\n]+/g;
135
138
  // those never appear with a .local/.lan/.home suffix.
136
139
  const HOSTNAME_RE = /\b[A-Za-z0-9]+(?:[-.][A-Za-z0-9]+)*\.(?:local|lan|home|internal|corp)\b/g;
137
140
 
141
+ // ---------------------------------------------------------------------------
142
+ // Value-based secret masking (#1025) — the SECOND half of the pipeline
143
+ // ---------------------------------------------------------------------------
144
+ //
145
+ // `anonymizeString` below is FORM-based: eight regexes over the SHAPE of a
146
+ // string. `createSecretValueMasker` is VALUE-based: it looks for the literal
147
+ // values of secret-NAMED env vars. The two are orthogonal and BOTH are needed —
148
+ // measured on four probe secrets:
149
+ //
150
+ // AWS secret key (with slashes) FORM: secret survives VALUE: [REDACTED]
151
+ // DB password (short, symbols) FORM: secret survives VALUE: [REDACTED]
152
+ // GitLab PAT (token shape) FORM: <redacted-token> VALUE: [REDACTED]
153
+ // all-letter passphrase FORM: secret survives VALUE: [REDACTED]
154
+ //
155
+ // The AWS key is the sharpest case: `/` is outside TOKEN_RE's character class,
156
+ // so the key breaks into runs of 13/7/18 characters — every one of them BELOW
157
+ // the 20-character floor, hence not a single match. Conversely the form catches
158
+ // tokens of FOREIGN hosts that were never in `process.env`, which the value
159
+ // masker cannot see. Neither subsumes the other.
160
+ //
161
+ // ORDER IS LOAD-BEARING: mask FIRST, anonymize SECOND. `[REDACTED]` is 8
162
+ // characters with no digit, so it passes through `anonymizeString` untouched
163
+ // (TOKEN_RE requires ≥20 chars AND a digit). The reverse order blinds the
164
+ // masker: a value that `anonymizeString` has already rewritten to
165
+ // `<redacted-token>` is no longer findable as a literal, so a secret that only
166
+ // the VALUE filter would catch — because the form leaves a residue rather than
167
+ // the whole span — can no longer be matched.
168
+
169
+ /**
170
+ * Lazily-built, process-wide masker. `createSecretValueMasker` scans the whole
171
+ * env and compiles one RegExp per needle, so it is built ONCE per process and
172
+ * reused for every entry — never rebuilt per record.
173
+ *
174
+ * @type {{ mask: (text: string) => string, needleCount: number } | null}
175
+ */
176
+ let _secretMasker = null;
177
+
178
+ /**
179
+ * Mask env-derived secret VALUES in a free-form string.
180
+ *
181
+ * Fail-soft: non-strings pass through by reference, and a zero-needle env makes
182
+ * `mask` the identity — the masker must never be the reason an export dies.
183
+ *
184
+ * @param {string} s
185
+ * @returns {string}
186
+ */
187
+ function maskSecretValues(s) {
188
+ if (typeof s !== 'string') return s;
189
+ if (_secretMasker === null) _secretMasker = createSecretValueMasker(process.env);
190
+ return _secretMasker.mask(s);
191
+ }
192
+
138
193
  /**
139
194
  * Scrub a free-form string of PII / host-identifying content.
140
195
  * Order matters: author/signoff patterns first (they contain emails), then
@@ -185,8 +240,12 @@ export function anonymizeLearning(entry) {
185
240
  const e = normalizeLearning(entry);
186
241
  const out = {
187
242
  ...e,
188
- insight: anonymizeString(e.insight),
189
- evidence: anonymizeString(e.evidence),
243
+ // #1025: value-mask BEFORE form-anonymize — see the ORDER IS LOAD-BEARING
244
+ // note above `maskSecretValues`. This is the choke-point for BOTH write
245
+ // paths (promoteHwLearnings and exportHwLearnings both route through here);
246
+ // wiring at exportHwLearnings alone would leave the promote path unhardened.
247
+ insight: anonymizeString(maskSecretValues(e.insight)),
248
+ evidence: anonymizeString(maskSecretValues(e.evidence)),
190
249
  // Stamp after redaction so callers that write back through validateLearning
191
250
  // do not hit the scope=public contract check.
192
251
  anonymized: true,