ε.κ.0 α1 — pre-aggregate.sh v1.4 — CLOSED outcome-VALIDATED

Why: ν.β §6 finding 1 identified that pre-aggregate.sh lacked research-direction exemption gate, causing manual override steps during ν.β REFERENCE aggregation. ε.κ.0 α1 was scoped to add spike_type: research-direction frontmatter-based exemption to pre-aggregate.sh.

Key findings at spike execution time:

  • v1.3 already existed at /home/richardd/.claude/skills/harvesting-spike-evidence/scripts/pre-aggregate.sh — NOT at docs-strategy/scripts/ as planning assumed
  • v1.3 ALREADY implemented research-direction exemption via n/a detection in bundle’s Placeholder cascade-Q file: field (V1.3 comment dated 2026-05-04)
  • Planning session had two wrong assumptions: (1) wrong location, (2) missing feature

What v1.4 delivered:

  1. Moved script to docs-strategy/scripts/pre-aggregate.sh (now repo-tracked in git)
  2. Added parse_spike_type() — reads T-file YAML frontmatter spike_type: field via awk
  3. Added EXEMPTED_SPIKE_TYPES=("research-direction") configurable list
  4. Added is_exempted_spike_type() — fail-safe: unknown types log NOTE, no exemption granted
  5. Belt-and-suspenders: when cascade-Q is NOT n/a but T-file has spike_type: research-direction, cascade-Q check auto-exempted

TDD: RED 5/6 (test 4 failed on v1.3 — no spike_type lookup), GREEN 6/6, REFACTOR 7/7.

Commits:

  • docs-strategy: 284e5c2tooling: pre-aggregate.sh v1.4 — research-direction spike-type exemption gate (ε.κ.0 α1)
  • off-github: 2f981e6 — T-file committed + pushed

Deferred action: skill’s scripts/pre-aggregate.sh still at v1.3. Operator should update harvesting skill to invoke from docs-strategy/scripts/pre-aggregate.sh or mirror v1.4 back to skill dir.

How to apply: When running pre-aggregate.sh v1.4 as the mandatory aggregation gate in harvesting-spike-evidence, use bash ~/testatetech/docs-strategy/scripts/pre-aggregate.sh <bundles>. Research-direction spikes exempt via n/a OR spike_type: research-direction in T-file.