refactor: restructure weekly analysis to analyst-style trend brief (#144)
* Scribe: Archive team sync — merge decisions inbox, trim Leela history - Merged 4 inbox decision files into .squad/decisions.md (Farnsworth: correlations/divergence/no-ai narratives; Leela: CI self-learning pipeline) - Cleared .squad/decisions/inbox/ (deleted leela-ci-self-learning.md; others not tracked) - Trimmed .squad/agents/leela/history.md from 15.9KB to 3.2KB (archived to history-archive.md) - Updated both agent histories with team sync completion record - Scribe tasks: PRE-CHECK (31.4KB decisions), ARCHIVE (none older than 30d), INBOX (4 files merged), LOG written, CROSS-AGENT appended, SUMMARIZATION executed Measured outcomes: - Before: decisions.md 31436B, inbox 4 files, Leela history 15927B - After: decisions.md (merged), inbox 0 files, Leela history 3183B, archive created - All squad/ changes staged and clean for commit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: use agent name not path in --agent flag The Copilot CLI --agent flag takes the agent name from YAML frontmatter, not a file path. Changed from '.github/agents/farnsworth.agent.md' to 'Farnsworth' in both the analysis and reskill jobs. Also simplified the -p prompts since the agent file already contains full identity and instructions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: use --agent squad with Farnsworth prompt in CI The --agent flag takes the agent name, not a file path. Use 'squad' to load the Squad coordinator, then address Farnsworth in the prompt to route the analysis work. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * refactor: restructure weekly analysis output to Gartner-style trend brief Replace repo-listing section structure with editorial trend brief format: - ## This Week's Trends (3-5 named macro trends with significance) - ## Where Industry Meets Code (press vs developer activity, not ML-sounding) - ## Signal & Noise (integrated prose, no mandatory sub-headings) - ## Blind Spots (replaces What's Missing/Gaps) - ## The Week Ahead (forward-looking close, replaces Conclusion) - ## Key References / ### Notable Projects / ### Press & Industry Key changes: - prompts/analyze-weekly.md: full rewrite of section structure and output template - docs/analysis-spec.md: updated required body structure and section guidance - scripts/analysis_gate.py: updated REQUIRED_HEADINGS list - scripts/analyze_fallback.py: updated fallback template to new headings - scripts/generate_rollups.py: backward-compat extraction (new headings first, falls back to old for existing analyzed files) - All 5 affected test files updated; 519 tests pass Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs: Merge article restructure decision, update agent histories - Merged Leela's article structure proposal with Farnsworth's implementation into decisions.md - Updated decision from "Proposed" to "Implemented" status - Cleared 2 inbox files after merge - Appended session notes to Leela and Farnsworth histories Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs: Merge article restructure decision, update agent histories - Merged Leela's article structure proposal with Farnsworth's implementation into decisions.md - Updated decision from 'Proposed' to 'Implemented' status - Cleared 2 inbox files after merge - Appended session notes to Leela and Farnsworth histories Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: address rubber-duck review findings for article restructure - Add missing unittest.mock import in test_generate_rollups.py - Guard blank 'Friction noted' lines in yearly rollups for new-format articles - Update Hugo archetype to new article section structure - Update rollout-checklist.md to reference new headings Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>