MORNING_DOSSIER_GAP_ANALYSIS

MORNING_DOSSIER_GAP_ANALYSIS is an agent for coding agents from HomenShum/NodeBenchAI. It costs 0 tokens per session (1,930 once invoked), scanned A, original, MIT.

An implementation record for improving a Morning Dossier page that turns research feeds into an executive brief. It documents structured brief generation, evidence cards, filtered actions, and handling of backend failures.

In plain words
What is it for?
Use it as a reference when building or reviewing a research-summary page with generated briefs, prose-quality checks, evidence, and user actions.
Why use it?
It replaces raw feed messages and failure notices with organized editorial content and clearer status handling.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/homenshum/nodebenchai/morning_dossier_gap_analysis
Clone the repo
git clone --depth 1 https://github.com/HomenShum/NodeBenchAI

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for MORNING_DOSSIER_GAP_ANALYSIS

README.md
[![agentmods](https://agentmods.dev/badge/agents/homenshum/nodebenchai/morning_dossier_gap_analysis.svg)](https://agentmods.dev/agents/homenshum/nodebenchai/morning_dossier_gap_analysis)
Your own site
<a href="https://agentmods.dev/agents/homenshum/nodebenchai/morning_dossier_gap_analysis"><img src="https://agentmods.dev/badge/agents/homenshum/nodebenchai/morning_dossier_gap_analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01930
Opus 5 $0.00000 $0.00965
Sonnet 5 $0.00000 $0.00386
Haiku 4.5 $0.00000 $0.00193

Measured 4d ago against content hash 546b7d028872, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

MORNING_DOSSIER_GAP_ANALYSIS scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/convex/domains/agents/MORNING_DOSSIER_GAP_ANALYSIS.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Morning Dossier P0 Implementation

PR Date: December 14, 2025 Status: ✅ P0 Complete with Production Hardening Build: ✅ Passing


Problem / Goal

Before: The Morning Dossier page rendered raw RSS-style log lines ("Trending on Hacker News with 35 points and 6 comments") instead of editorial prose synthesis. Backend failures ("Pending — run this follow-up") leaked into the UI. No structured brief generation existed.

After: Users see a 3-Act executive intelligence brief with:

  • Act I: Coverage & Freshness summary
  • Act II: Signal cards with synthesis prose + evidence grids (when generatedBrief exists)
  • Act III: Filtered actions (backend failures suppressed via ActionStatus enum)

Changes by Subsystem

Backend (Convex)

convex/domains/research/briefGenerator.ts (NEW)

  • OpenAI Structured Outputs with DailyBriefJSONSchema
  • Production-grade prose hygiene enforcement with 14 lint rules:
    • Bullets, numbered lists, full URLs, www URLs, domain patterns
    • ISO timestamps, 12h/24h time patterns
    • Feed-log tells: "Trending on", "X points", "Y comments", "stars", "upvotes"
  • Regeneration loop with violation-specific feedback (up to 4 attempts)
  • Structured telemetry logging for monitoring (briefGenerator.generation_success, briefGenerator.validation_failed, briefGenerator.api_error, briefGenerator.generation_exhausted)

convex/domains/research/dailyBriefMemoryMutations.ts (MODIFIED)

  • Added updateMemoryContext internal mutation for storing generatedBrief
  • Already internal-only (internalMutation) — not client-callable ✅

Frontend (React)

src/features/research/components/SignalCard.tsx (NEW)

  • Expandable card with headline, synthesis prose, and EvidenceGrid
  • SignalList component for rendering arrays
  • Glassmorphism styling with Tailwind

src/features/research/components/EvidenceGrid.tsx (NEW)

  • Horizontal scrollable evidence cards with fade edges
  • EvidenceCard: favicon, title (linked), relevance badge, score indicator
  • Responsive layout

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 218 lines · 0 tokens per session scan A 546b7d028872

Subscribe to this mod's changes

MORNING_DOSSIER_GAP_ANALYSIS is an agent published in the GitHub repository HomenShum/NodeBenchAI (14 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,930 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.