From 116d7f62e7540a5b5411ffae0c16b43e0ae5062b Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Nov 2026 18:12:11 -0500 Subject: [PATCH] docs(learnings): promote FEAT-LOOP-2026-0250's two staged lessons Co-Authored-By: Claude Opus 5.5 --- .specfuse/LEARNINGS.md | 13 +++++++++++++ .../LEARNINGS-pending.md | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/.specfuse/LEARNINGS.md b/.specfuse/LEARNINGS.md index 9f916a12..5657f556 100644 --- a/.specfuse/LEARNINGS.md +++ b/.specfuse/LEARNINGS.md @@ -4650,3 +4650,16 @@ compaction counterpart — it merges duplicates, retires superseded entries into previously uncalled code, name the ratchet update in its acceptance and run `tests.test_caller_check_ratchet` in its verification; a green narrow tier does not cover repo-wide ratchets. + +- [FEAT-LOOP-2026-0250/T04] **A unit that edits `docs/*.md` must also refresh that file's packaged + copy under `specfuse/loop/data/docs/` in the same unit.** T04 edited `docs/methodology.md` and + not its packaged copy; its narrow tier selected no docs-sync test, so it passed, and three + docs-sync tests went red only in the gate's broad run. Run `scripts/sync-scaffold.sh` before + reporting, and list the packaged copy in `produces:` so the diff guard sees it. + +- [FEAT-LOOP-2026-0250/T01] **A test that validates events through `validate_event` must pin the + real packaged schemas and clear the validator's module caches.** `test_emitted_events_validate` + passed alone and failed in the full suite because an earlier test left + `_DRIVER_EVENT_TYPES_CACHE` empty, dropping every driver event type from the enum. Copy the + pinning from `tests/test_event_gate_full_envelope.py` when writing the test, not after the broad + run fails. diff --git a/.specfuse/features/FEAT-LOOP-2026-0250-gate-timings/LEARNINGS-pending.md b/.specfuse/features/FEAT-LOOP-2026-0250-gate-timings/LEARNINGS-pending.md index 4840014c..80de3e0f 100644 --- a/.specfuse/features/FEAT-LOOP-2026-0250-gate-timings/LEARNINGS-pending.md +++ b/.specfuse/features/FEAT-LOOP-2026-0250-gate-timings/LEARNINGS-pending.md @@ -16,9 +16,13 @@ Licensed under the Apache License, Version 2.0. See LICENSE. docs-sync tests went red only in the gate's broad run. Run `scripts/sync-scaffold.sh` before reporting, and list the packaged copy in `produces:` so the diff guard sees it. + > **Accepted 2026-11-25** — promoted to `.specfuse/LEARNINGS.md` as `[FEAT-LOOP-2026-0250/T04]`. + - [FEAT-LOOP-2026-0250/T01] **A test that validates events through `validate_event` must pin the real packaged schemas and clear the validator's module caches.** `test_emitted_events_validate` passed alone and failed in the full suite because an earlier test left `_DRIVER_EVENT_TYPES_CACHE` empty, dropping every driver event type from the enum. Copy the pinning from `tests/test_event_gate_full_envelope.py` when writing the test, not after the broad run fails. + + > **Accepted 2026-11-25** — promoted to `.specfuse/LEARNINGS.md` as `[FEAT-LOOP-2026-0250/T01]`.