You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ "${STUB_COUNT:-0}"-gt 0 ] && echo "🚨 $STUB_COUNT per-file analyses are stubs — read analysis/templates/per-file-political-intelligence.md and rewrite"
870
+
echo "📌 For per-file analyses: read analysis/templates/per-file-political-intelligence.md"
871
+
echo "📌 For daily synthesis: read the corresponding template in analysis/templates/"
872
+
echo "📌 Reference good examples: SWOT.md, THREAT_MODEL.md"
821
873
fi
822
874
```
823
875
@@ -827,7 +879,7 @@ fi
827
879
828
880
**Before deciding whether to generate articles or call noop, you MUST:**
829
881
830
-
1. **Review the analysis artifacts** in `analysis/daily/YYYY-MM-DD/` and per-file `.analysis.md` files — read `synthesis-summary.md` and significance scores to understand what was found
882
+
1. **Review the analysis artifacts** in `analysis/daily/YYYY-MM-DD/` and per-file `-analysis.md` files — read `synthesis-summary.md` and significance scores to understand what was found
831
883
2. **Summarize the analysis findings** — note how many documents were downloaded, their significance scores, key themes, and risk levels
832
884
3. **ALWAYS commit analysis artifacts** regardless of whether articles will be generated:
833
885
@@ -846,7 +898,7 @@ else
846
898
fi
847
899
```
848
900
849
-
> **🚨 CRITICAL RULE: Never call `safeoutputs___noop` if analysis artifacts exist.** If the analysis produced ANY output files (per-file `.analysis.md` or daily synthesis), you MUST commit them via `safeoutputs___create_pull_request` — even if no articles are generated. Use an analysis-only PR with title: `📊 Analysis Only - Evening Analysis - {date}` and label `analysis-only`. Only use `safeoutputs___noop` if NO analysis output was generated.
901
+
> **🚨 CRITICAL RULE: Never call `safeoutputs___noop` if analysis artifacts exist.** If the analysis produced ANY output files (per-file `-analysis.md` or daily synthesis), you MUST commit them via `safeoutputs___create_pull_request` — even if no articles are generated. Use an analysis-only PR with title: `📊 Analysis Only - Evening Analysis - {date}` and label `analysis-only`. Only use `safeoutputs___noop` if NO analysis output was generated.
Copy file name to clipboardExpand all lines: .github/workflows/news-realtime-monitor.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -295,7 +295,7 @@ fi
295
295
-`analysis/templates/stakeholder-impact.md`
296
296
-`analysis/templates/significance-scoring.md`
297
297
298
-
3.**For EVERY downloaded document/data file**: apply ALL 6 analytical lenses and create `{dok_id}.analysis.md` following the per-file template. Cite specific data (dok_id, vote counts, party names). Include ≥1 color-coded Mermaid diagram with `style` directives.
298
+
3.**For EVERY downloaded document/data file**: apply ALL 6 analytical lenses and create `{dok_id}-analysis.md` following the per-file template. Cite specific data (dok_id, vote counts, party names). Include ≥1 color-coded Mermaid diagram with `style` directives.
299
299
300
300
4.**Create/rewrite ALL 7 daily synthesis files** in `analysis/daily/$ARTICLE_DATE/` — each MUST follow its template EXACTLY (metadata header, Mermaid diagrams with color-coded style directives, structured evidence tables, confidence labels, no `[REQUIRED]` placeholders).
1. Follow the organization-wide **SHARED_PROMPT_PATTERNS Step 2 + Step 3** exactly: read **all 6 methodology guides** and **all 8 analysis templates** defined there (in `analysis/methodologies/` and `analysis/templates/`) **before writing any analysis**. Do NOT subset or skip any required document.
396
+
2. After completing SHARED_PROMPT_PATTERNS Steps 2–3, (re)read these **news-monitor-specific assets**:
397
+
-`view analysis/templates/per-file-political-intelligence.md` — read FULLY, note the required structure
398
+
-`view analysis/methodologies/ai-driven-analysis-guide.md` — read the "BAD vs GOOD" examples
**Step B — Create real per-file analyses** (for EVERY document):
400
402
1. List all downloaded documents: `find analysis/daily/${ARTICLE_DATE:-$(date -u +%Y-%m-%d)}/documents/ -name "*.json" -type f`
401
403
2. For EACH JSON file:
402
404
a. Read it with `view` — extract dok_id, titel, datum, parti, organ
403
405
b. Apply ALL 6 analytical lenses (classification, SWOT, risk, STRIDE, stakeholders, forward indicators)
404
-
c. Write or rewrite `{dok_id}-analysis.md` following the per-file template EXACTLY
406
+
c. Write or rewrite the per-file analysis markdown so that its filename matches the `*-analysis.md` convention (for example `{dok_id}-analysis.md`) and follows the per-file template EXACTLY
405
407
d. Include ≥1 color-coded Mermaid diagram with `style` directives and REAL data
406
408
e. Include structured evidence tables with dok_id, confidence, impact columns
407
409
f. SWOT quadrants must have REAL entries — NOT "_No strengths identified_"
@@ -529,7 +531,7 @@ fi
529
531
**Before deciding whether to generate articles or call noop, you MUST:**
530
532
531
533
1.**Verify data was downloaded** — `find analysis/data/ -name "*.json" -type f | wc -l` must be > 0
532
-
2.**Verify analysis was created** — every downloaded document has a `.analysis.md` file
534
+
2.**Verify analysis was created** — every downloaded document has a `-analysis.md` file
533
535
3.**Verify daily synthesis files follow templates** — no `[REQUIRED]` placeholders, Mermaid diagrams with real data
0 commit comments