Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/prompts/00-base-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Before producing any analysis or article content, the agent MUST have read:

1. This module (`00-base-contract.md`) and every imported sibling module for the workflow.
2. [`analysis/methodologies/ai-driven-analysis-guide.md`](../../analysis/methodologies/ai-driven-analysis-guide.md) — DIW weighting, tier depths, Pass 1 / Pass 2 rules.
3. Every template file referenced by `04-analysis-pipeline.md` (the 9 core artifacts) — and for Tier-C workflows, the additional 5 templates referenced by `ext/tier-c-aggregation.md` (executive brief, scenario analysis, comparative international, methodology reflection, per-run README).
3. [`analysis/methodologies/osint-tradecraft-standards.md`](../../analysis/methodologies/osint-tradecraft-standards.md) — **tradecraft canon**: ICD 203 (9 standards), Admiralty Code (`[A-F][1-6]` → 5-level confidence), WEP / Kent Scale (7 bands with EN + SV phrasing, 4 horizons), SAT catalog (≥ 10 techniques attested in `methodology-reflection.md`), OSINT ethics (GDPR Art. 9 / Offentlighetsprincipen), DIW–Admiralty reconciliation, PIR handoff (standing PIR-1…7 + Tier-C continuity contract). Every evidence citation, every confidence marker, and every `methodology-reflection.md §ICD 203 audit` derives from this document.
4. Every template file referenced by `04-analysis-pipeline.md` — the **23 always-on artifacts** spanning Family A (Core Synthesis, 9 files incl. `executive-brief.md`), Family B (Structural Metadata, 2 files), Family C (Strategic Extensions — F3EAD Exploit→Analyze, 5 files incl. `methodology-reflection.md` ⭐), Family D (Electoral & Domain Lenses — F3EAD Analyze-continued, 7 files), plus Family E (per-document `{dok_id}-analysis.md`). Tier-C workflows additionally apply the period-scope multipliers and cross-type synthesis rules in `ext/tier-c-aggregation.md` — they do **not** add new files (all 23 are mandatory for every workflow).

No article sentence may be drafted until every required analysis artifact exists on disk and the gate in `05-analysis-gate.md` reports pass.

Expand All @@ -47,7 +48,7 @@ Analysis Pass 1 → Pass 1 snapshot → Analysis Pass 2 → Analysis Gate →
Stage analysis → Commit → ONE create_pull_request (analysis-only)
```

**Run 2 — Articles** (when `$ANALYSIS_DIR` already contains all 9 core artifacts):
**Run 2 — Articles** (when `$ANALYSIS_DIR` already contains all 23 required artifacts and the gate in `05-analysis-gate.md` passes):
```
MCP pre-warm → Detect existing analysis → Read all artifacts into context →
Optionally check for new data → Article Pass 1 → Article Pass 2 →
Expand Down
33 changes: 19 additions & 14 deletions .github/prompts/03-data-download.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@ Run this check as the **first action** after MCP pre-warm, before any download:
```bash
ANALYSIS_DIR="analysis/daily/$ARTICLE_DATE/$SUBFOLDER"

# 9 core artifacts required by every workflow
REQ=(synthesis-summary.md swot-analysis.md risk-assessment.md threat-analysis.md \
stakeholder-perspectives.md significance-scoring.md classification-results.md \
cross-reference-map.md data-download-manifest.md)

# Tier-C workflows require 5 additional artifacts (evening-analysis, week-ahead,
# month-ahead, weekly-review, monthly-review, realtime-*, deep-inspection).
# See ext/tier-c-aggregation.md for the full list.
case "$SUBFOLDER" in
evening-analysis|week-ahead|month-ahead|weekly-review|monthly-review|deep-inspection|realtime-*)
REQ+=(README.md executive-brief.md scenario-analysis.md \
comparative-international.md methodology-reflection.md)
;;
esac
# 23 required artifacts (Families A+B+C+D) — every workflow, every run
REQ=(
# Family A — Core Synthesis (9)
README.md executive-brief.md synthesis-summary.md significance-scoring.md \
classification-results.md swot-analysis.md risk-assessment.md \
threat-analysis.md stakeholder-perspectives.md \
# Family B — Structural Metadata (2)
data-download-manifest.md cross-reference-map.md \
# Family C — Strategic Extensions (5)
scenario-analysis.md comparative-international.md devils-advocate.md \
intelligence-assessment.md methodology-reflection.md \
# Family D — Electoral & Domain Lenses (7)
election-2026-analysis.md voter-segmentation.md coalition-mathematics.md \
historical-parallels.md media-framing-analysis.md \
implementation-feasibility.md forward-indicators.md)

# Tier-C workflows add no new files — all 23 are already mandatory. What Tier-C
# adds is the cross-type synthesis + period multipliers enforced by
# ext/tier-c-aggregation.md and the gate in 05-analysis-gate.md.

SKIP_ANALYSIS=false
ALL_PRESENT=true
Expand Down
Loading
Loading