Claude Skill

risk

Risk analysis, regulatory risk assessment, competitive risk, macro risk, technology risk, litigation risk, financial risk assessment, enterprise risk, operational risk, geopolitical risk exposure

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download agentii-ai-agentii-investment-intelligence-plugins_vertical-plugins_equity-research-core_skills_agentii_risk-3b0a195.zip · 10 KB
Part of agentii-ai/agentii-investment-intelligence — 46 skills

Install

skills CLI npx skills add https://github.com/agentii-ai/agentii-investment-intelligence/tree/main/plugins/vertical-plugins/equity-research-core/skills/agentii/risk
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install agentii-ai-agentii-investment-intelligence@llmmart
Git git clone https://github.com/agentii-ai/agentii-investment-intelligence.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole agentii-ai/agentii-investment-intelligence collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Preflight

Run the canonical pre-flight sequence — MCP health probe, ticker resolution, workspace style.md override, memory load, and coverage check. See contracts/preflight.md.

Include the X-Agentii-Trace header on every tool call per contracts/x-agentii-trace-header.md.

Triggers

  • analyze dim risk analysis
  • run dim risk analysis analysis
  • produce dim risk analysis report
  • dim risk analysis breakdown
  • dim risk analysis deep dive
  • build a dim risk analysis
  • assess dim risk analysis
  • quantify dim risk analysis
  • compare dim risk analysis across peers
  • review dim risk analysis for
  • generate dim risk analysis on
  • dim risk analysis for investment decision

Defaults

Parameter Default Notes
lookback_years 3 Historical data window
include_peers false Whether to surface a peer comparison block

Methodology

Retrieval Scope

This skill performs unstructured document search at scale (10-K, 10-Q, 8-K filings and earnings call transcripts spanning multiple fiscal periods). The three-layer agent-use-ready retrieval protocol (Document Discovery → Page Map → Deep Read) applies to all unstructured document search at scale.

Retrieval Strategy

Follow the retrieval strategy decision tree in contracts/retrieval.md. This skill uses:

  • Branch (a) for structured financial metrics via search_xbrl_facts with list_xbrl_concepts pre-condition for unfamiliar concepts.
  • Branch (c) for single-period document queries via direct read_source_outline → read_source_pages.
  • Branch (d) for simple lookups via get_company_profile / search_earnings_calendar.

**Layer 1 secondary_label allowlist **: prefer ?secondary_labels=other_events_8_01 to surface risk-event 8-Ks (litigation, regulatory action, cyber incidents) before Layer 2. Also score Layer 2 pages whose labels.general.keywords contain "risk factors" entity terms.

Temporal Scope

Default: 4 fiscal quarters (max 8). Risk analysis: trailing 4 quarters for near-term risk exposure + forward indicators

Tool Allowlist

See frontmatter allowed_tools.

Protocol

This skill delivers analyst-grade output via 4 addressable mode(s); invoke with --mode=<slug> / --modes=<slug1>,<slug2> / --mode=all (see Mode syntax. The default invocation (no flag) runs the essentials_modes subset declared in this skill's frontmatter.

Analyst Modes

This skill exposes addressable analysis modes (--mode=<slug> / --modes=<s1>,<s2> / --mode=all; see Mode syntax). The full mode definitions and their output templates live in references/modes.md. The default invocation runs the essentials subset.

Tool Fallbacks

Per-tool failure modes and fallback actions are tabulated in references/tool-fallbacks.md.

Output File

Write the final deliverable to {ticker}/{YYYY-MM-DD_HHMM}_risk_risk-assessment.md .

Output Structure

The deliverable is a structured markdown report written to the path in ## Output File. Full section-by-section template (headings, tables, and field definitions) lives in references/output-structure.md. Required elements:

  1. Executive Summary — headline conclusions (≤200 words).
  2. Core analysis sections — per this skill's methodology and analyst modes.
  3. Data classification — tag findings [FACT] / [DEDUCTED] / [VIEW] per contracts/snapshot-synthesis.md.
  4. Coverage Gaps & Citations — inline /v/ citations are PRIMARY (immediately after each fact); the bottom Citations section is a non-duplicative roll-up index.
  5. Output frontmatter — emit the FR-090 structured block per contracts/output-frontmatter-schema.md.

Citations & memory: follow contracts/citation-and-memory.md — ≥1 citation per 200 words; every material fact, table row, and metric is immediately followed by its inline clickable https://agentii.ai/v/{ticker}/{citation_id}/{N} link; a bottom Citations section provides a non-duplicative roll-up index; the closing TUI reply includes a compact Key Citations list (headline 5–10 facts) of clickable /v/ URLs; and append the run to agentii.md per contracts/agentii-md-schema.md.

Memory & Snapshot

  • Memory load (pre-flight): load prior workspace context for the ticker before retrieval — see contracts/memory-load.md.
  • Structured output frontmatter: emit the FR-090 block (key_metrics, conclusions, facts_count, deducted_count, views_count, citation_count) per contracts/output-frontmatter-schema.md.
  • Snapshot synthesis: after writing the deliverable, update the two-tier snapshot and classify findings as [FACT]/[DEDUCTED]/[VIEW] — see contracts/snapshot-synthesis.md.
  • Session archival: record the run under sessions/{YYYY-MM-DD}/ and update sessions/INDEX.md per contracts/session-format.md.

Final Summary (TUI)

End the closing chat reply with a compact Key Citations list (headline 5–10 facts), each a clickable https://agentii.ai/v/{ticker}/{citation_id}/{N} link, so the user can cmd+click straight to the exact SEC page. See contracts/citation-and-memory.md.

Error Handling

Failure Mode Detection Action User-Facing Message
Missing data Data API returns empty result set Widen date range and retry once "No data available for in requested window."
Partial data Data API returns <80% expected records Proceed with coverage gaps section "Analysis based on partial data; see Coverage Gaps section."
Sector mismatch Peer sector != target sector Filter out mismatched peers "Removed peer(s) due to sector mismatch."
Insufficient history Ticker <3 years on public markets Downgrade to limited-history profile "Limited historical data; analysis adjusted accordingly."
MCP unreachable Preflight probe fails Halt with actionable error "agentii data plane unreachable; check connection."
Files (agentii-investment-intelligence)
  • references
    • knowledge-frameworks.md 2.2 KB
      # Knowledge Frameworks — {SKILL_NAME}
      
      This file augments the skill methodology with practitioner frameworks, case precedents,
      and sector-specific analysis rubrics from the agentii knowledge base (spec 037).
      It is progressively disclosed — loaded on demand, not at skill activation (FR-014).
      
      ## How to Use
      
      Before executing the analysis, scan the relevant frameworks below for the target sector
      and analysis type. Where a framework applies, incorporate its methodology alongside the
      standard protocol. Cite knowledge entries by their `/v/knowledge/{citation_id}` link.
      
      ## Practitioner Frameworks
      
      ### Fundamental Analysis (L2)
      - **Fisher Scuttlebutt Method**: Channel checks, supplier interviews, customer surveys — validate management claims through primary research.
      - **Morningstar Moats**: Network effects, switching costs, intangible assets, cost advantage, efficient scale — score competitive durability.
      - **Greenblatt Magic Formula**: Rank on earnings yield + ROIC — quantitative screen for quality-at-a-reasonable-price.
      - **Mauboussin Expectations Investing**: Price-implied expectations vs. fundamentals — identify the gap.
      
      ### Management Assessment
      - **CEO/CFO track record**: Past capital allocation decisions, M&A history, share buyback timing.
      - **Incentive alignment**: Compensation structure, insider ownership, option grants.
      
      ### Sector-Specific Playbooks
      - **Healthcare (Pharma/Biotech)**: Pipeline depth analysis, FDA catalyst calendar, patent cliff exposure, drug pricing risk.
      - **Technology**: Adoption S-curves, network effects quantification, R&D efficiency, platform ecosystem lock-in.
      - **Financials**: Spread analysis (NIM), credit cycle positioning, loan loss reserve adequacy, capital return capacity.
      - **Consumer**: Brand strength metrics, unit economics, channel mix trends, customer acquisition cost payback.
      
      ## Historical Analogues
      
      When the current situation matches a known pattern, query `search_by_analogue` with the
      appropriate `market_regime`/`event_type`/`company_situation` tags. Cite relevant cases as
      precedent.
      
      ## References
      
      All frameworks sourced from `gold.knowledge_entries` (spec 037). See `contracts/citation-and-memory.md`
      for citation format conventions.
      
    • modes.md 2.3 KB
      # risk — Analyst Mode Definitions
      
      Extracted from SKILL.md for progressive disclosure (US5). The skill body keeps a pointer under `## Methodology → Analyst Modes`.
      
      ### Mode: general-risk-factors-identification-assessment
      
      **Display name**: General Risk Factors Identification & Assessment
      
      <!-- ported_from: references/prompts/6/6.yaml -->
      
      ### Objective
      
      Conduct comprehensive risk factor identification and assessment using official issuer
      disclosures to identify performance stagnation indicators and assess near-term and
      long-term impact across standardized risk categories.
      
       - executive_summary
       - long_term_risk_assessment
       - near_term_risk_assessment
       - novel_risk_factors
       - risk_identification
       - risk_trend_analysis
      
      ### Mode: technology-disruption-risk-analysis
      
      **Display name**: Technology Disruption Risk Analysis
      
      <!-- ported_from: references/prompts/6/6_1.yaml -->
      
      ### Objective
      
      Assess technology disruption risk exposure by evaluating secular technology trend
      impacts and emerging technology effects on the company's competitive positioning,
      business model resilience, and long-term strategic viability.
      
       - emerging_technology_analysis
       - executive_summary
       - risk_factors
       - secular_trend_analysis
       - strategic_response_assessment
      
      ### Mode: regulatory-compliance-risk-assessment
      
      **Display name**: Regulatory & Compliance Risk Assessment
      
      <!-- ported_from: references/prompts/6/6_4.yaml -->
      
      ### Objective
      
      Assess regulatory and compliance risk exposure by evaluating recent regulatory
      developments and forward-looking policy risks that could materially impact
      operations, earnings outlook, or strategic initiatives.
      
       - executive_summary
       - forward_policy_risk_analysis
       - recent_regulatory_developments
       - regulatory_preparedness
       - risk_mitigation
      
      ### Mode: external-shock-macro-risk-evaluation
      
      **Display name**: External Shock & Macro Risk Evaluation
      
      <!-- ported_from: references/prompts/6/6_5.yaml -->
      
      ### Objective
      
      Assess external shock and macroeconomic risk exposure by evaluating recent
      macro, geopolitical, and environmental events and analyzing financial
      sensitivity to external volatility factors.
      
       - executive_summary
       - external_shock_analysis
       - financial_sensitivity_analysis
       - risk_management_assessment
       - vulnerability_analysis
      
      <!-- END port-dimension-prompts methodology + modes -->
      
    • output-structure.md 1.1 KB
      # risk — Output Structure (full template)
      
      Extracted from SKILL.md for progressive disclosure (US5). The skill body keeps a compact summary under `## Output Structure`.
      
      The final deliverable MUST be written as a markdown file to the workspace using the convention :
      
      ```
      {ticker}/{YYYY-MM-DD_HHMM}_risk_{affix}.md
      ```
      
      Where `affix` is a short descriptive slug (e.g., `risk-matrix`, `regulatory-exposure`, `tech-disruption`, `macro-sensitivity`). Examples:
      
      - `LLY/2026-05-25_1430_risk_risk-matrix.md`
      - `NVDA/2026-05-25_1545_risk_tech-disruption.md`
      
      The path is RELATIVE to the agent's invocation cwd. Skills MUST NOT write under absolute paths.
      
      **Citations & memory**: follow `contracts/citation-and-memory.md` — ≥1 citation per 200 words; every material fact, table row, and metric is immediately followed by its inline clickable `https://agentii.ai/v/{ticker}/{citation_id}/{N}` link; a bottom **Citations** section provides a non-duplicative roll-up index; the closing TUI reply includes a compact **Key Citations** list (headline 5–10 facts) of clickable `/v/` URLs; and append the run to `agentii.md` per `contracts/agentii-md-schema.md`.
      
    • tool-fallbacks.md 1.8 KB
      # risk — Tool Fallbacks
      
      Extracted from SKILL.md for progressive disclosure (US5).
      
      | Tool | Failure Mode | Fallback Action | Coverage Annotation |
      |------|-------------|-----------------|---------------------|
      | `read_source_pages` | SQL error / PROXY_ERROR | Use `search_keyword_in_source(document_id, keyword)` if document_id known; otherwise `search_documents` with same query | "source file unavailable; used keyword search instead" |
      | `read_source_deep_outline` | PROXY_ERROR / 404 | Use lightweight `read_source_outline` and flag `deep_outline_degraded: true` | "deep outline unavailable; used lightweight page map instead" |
      | `read_source_outline` | PROXY_ERROR / 404 | Use `list_sources` for document-level metadata | "page map unavailable; used document listing instead" |
      | `list_xbrl_concepts` | Timeout / 503 | Use direct `search_xbrl_facts` with standard US-GAAP concepts (Revenues, NetIncomeLoss, EarningsPerShareDiluted, OperatingIncomeLoss, Assets) | "concept discovery skipped due to timeout; using standard US-GAAP concepts" |
      | `get_company_fiscal_calendar` | Cross-validation failed | Use XBRL-derived period grid from `search_xbrl_facts` `period_end` dates | "fiscal calendar mismatch; using XBRL-derived period grid" |
      | `search_unified` | Intermittent error | Use parallel `search_documents` + `search_xbrl_facts` with the same query | "unified search unavailable; used parallel document + XBRL search" |
      | `batch_search` | PROXY_ERROR | Use sequential individual calls (one per sub-query) | "batch search unavailable; used sequential calls" |
      
      Tool errors are retried ONCE with the fallback action before escalating to the retrieval gaps failure policy. If both Layer 2 and Layer 3 tools are unavailable, enter document access degradation mode (structured data + metadata only, flag output as degraded).
      
    • wsp-methodology.md 6.7 KB
      # risk -- Financial Report Risk Analysis Protocol
      
      Institutional methodology for extracting risk signals from SEC filings. Applied to risk factor assessment, off-balance-sheet detection, covenant stress testing, pension analysis, contingency evaluation, and going concern assessment.
      
      ## Protocol
      
      ### Risk Factor Analysis: Signal vs. Boilerplate
      
      Item 1A lists risks that are overwhelmingly generic--designed for SEC compliance and litigation protection, not investor insight. Apply three filters to each risk factor:
      
      **Specificity test.** Does the risk cite company-specific metrics, contract terms, customer concentrations, or geographic exposures? If the same language could appear in any competitor's 10-K, classify as boilerplate.
      
      **Financial statement mapping test.** Can the risk be traced to a specific FS line item? A raw materials cost risk must be matched against COGS composition in the footnotes. A foreign exchange risk must map to geographic revenue disclosure. Risks without a financial statement anchor are unactionable.
      
      **Historical materialization test.** Has this risk produced actual financial impact in prior periods? Cross-reference the MD&A for evidence. A risk disclosed annually but never materializing is either effectively hedged or overstated.
      
      Genuine risks passing all three filters demand quantified scenario analysis. Companies burying specific risks within boilerplate language signal reduced management transparency.
      
      ### Off-Balance-Sheet Liability Detection
      
      Reported debt is only one portion of total obligations. Off-balance-sheet liabilities can exceed on-balance-sheet debt by a material multiple.
      
      **Operating lease capitalization.** Extract future minimum lease payments from the lease footnote. Discount to present value using the company's incremental borrowing rate (approximated from the debt footnote's weighted-average interest rate). Add to reported debt. Recalculate all credit ratios with and without capitalized leases--the impact frequently exceeds one full turn of leverage; for retailers and airlines, three or more turns.
      
      **Purchase commitments.** Aggregated supply-chain obligations (Apple disclosed $18.6B in manufacturing and component commitments) are not legal debt but represent fixed cash outflows that compete with debt service. Size total commitments against annual CFFO.
      
      **Unconsolidated entities.** When companies consolidate subsidiaries differently for management reporting than GAAP, the Corporate segment reconciliation in the segment footnote reveals the magnitude of noncontrolling interest adjustments and entity-level obligations not reflected in consolidated debt.
      
      ### Debt Covenant and Default Risk Assessment
      
      **Revolver borrowing base.** Calculate current headroom: maximum borrowing capacity (typically 85% of eligible receivables plus 85% of inventory liquidation value) minus drawn amount. Track quarterly--a declining borrowing base reduces liquidity even without incremental draws.
      
      **Maturity wall identification.** Construct a year-by-year principal repayment timeline from the debt footnote. Flag any year where maturities exceed 50% of annual CFFO. A concentrated maturity wall exposes the company to refinancing risk external to its control.
      
      **Weighted-average interest rate trajectory.** Track year-over-year against the risk-free rate. A rising weighted-average rate when benchmarks are flat signals deteriorating credit quality priced into new issuances.
      
      **Covenant breach scenarios.** For each material covenant, calculate the EBITDA decline required to trigger breach. Compare that buffer to historical EBITDA volatility. A covenant with only 15-20% headroom against normal-cycle variance is a live risk.
      
      ### Pension Liability Analysis
      
      **Funded status.** The pension footnote discloses PBO, plan assets, and funded status. An underfunded pension is debt-like: the company must contribute cash to close the gap. Size the shortfall against total debt and EBITDA.
      
      **Assumptions sensitivity.** Test a 50-basis-point adverse move in the discount rate (increases PBO), expected return on plan assets (increases reported expense), and healthcare cost trend rate (increases OPEB obligation). Companies using aggressive assumptions--discount rates materially above AA corporate bond yields, or expected returns above long-term historical equity returns--are systematically understating pension burdens.
      
      **OPEB.** Retiree healthcare obligations typically have no dedicated asset pool and are entirely unfunded, making them more debt-like than pension obligations. Aggregate pension underfunding plus OPEB for total retirement-related leverage.
      
      ### Contingency Disclosure Interpretation
      
      GAAP classifies contingencies as probable/estimable (accrued), reasonably possible (disclosed only), or remote (not disclosed). Analytical value lies almost entirely in the "reasonably possible" category.
      
      **Probability-weighted expected loss.** Construct: sum of (probability_i * loss_i). Compare expected value against cash balance and annual CFFO. A 20% probability of a $500M loss against $200M CFFO is thesis-level risk regardless of the most likely outcome.
      
      **Management framing skepticism.** Disclosure is legally protected by safe harbor provisions, creating an incentive to present worst-case scenarios while arguing unlikelihood. Independently assess legal merits. Apple disclosed a $368M patent verdict without accrual, citing its belief in valid defenses--the analyst must evaluate the legal basis, not accept management's characterization.
      
      **Pattern recognition.** New contingencies signal emerging risk. Contingencies growing in estimated magnitude over successive periods signal deteriorating prospects. Disappearing contingencies without resolution disclosure require investigation.
      
      ### Going Concern Evaluation
      
      **Liquidity runway.** Divide total available liquidity (cash + undrawn revolver) by quarterly cash burn (CFFO minus maintenance capex minus mandatory debt service). Under four quarters requires imminent improvement or financing. Under two quarters is existential.
      
      **Financing access.** Examine the cash flow statement for recent capital market access. Companies with declining-price equity issuances or rising-spread debt issuances face deteriorating conditions. A capital raise more than 12 months old may not be replicable.
      
      **Consumption classification.** Distinguish growth investment cash consumption (capex exceeding D&A, working capital supporting revenue) from negative unit economics (gross margin insufficient to cover opex). The former is sustainable with financing; the latter is terminal without business model reset.
      
      **Integrated stress scenario.** Combine covenant breach trigger, adverse contingency outcome, and pension contribution requirement into a single worst-plausible 12-month model. If survival requires external rescue, flag going concern risk.
      
  • SKILL.md 6.9 KB
    ---
    name: risk
    multi_ticker_semantics: single_target
    description: Risk analysis, regulatory risk assessment, competitive risk, macro risk, technology risk, litigation risk, financial risk assessment, enterprise risk, operational risk, geopolitical risk exposure
    essentials_modes: [general-risk-factors-identification-assessment, technology-disruption-risk-analysis, regulatory-compliance-risk-assessment]
    temporal_scope:
     default_quarters: 4
     max_quarters: 10
     description: "Typical lookback: 4 quarters, max: 10"
    allowed_tools:
     - search_companies
     - search_xbrl_facts
     - search_documents
     - search_sec_filings
     - get_company_financials
     - list_coverage
     - read_source_outline
     - read_source_deep_outline
     - list_xbrl_concepts
     - read_source_pages
     - search_keyword_in_source
     - search_knowledge_entries
     - get_knowledge_entry
     - search_by_analogue
    retrieval_scope: unstructured_document_search
    min_tool_diversity: 10
    ---
    
    <!-- analog: thesis-tracker -->
    
    ## Preflight
    
    Run the canonical pre-flight sequence — MCP health probe, ticker resolution, workspace `style.md` override, memory load, and coverage check. See `contracts/preflight.md`.
    
    Include the `X-Agentii-Trace` header on every tool call per `contracts/x-agentii-trace-header.md`.
    ## Triggers
    
    - analyze dim risk analysis
    - run dim risk analysis analysis
    - produce dim risk analysis report
    - dim risk analysis breakdown
    - dim risk analysis deep dive
    - build a dim risk analysis
    - assess dim risk analysis
    - quantify dim risk analysis
    - compare dim risk analysis across peers
    - review dim risk analysis for
    - generate dim risk analysis on
    - dim risk analysis for investment decision
    
    ## Defaults
    
    | Parameter | Default | Notes |
    |---|---|---|
    | lookback_years | 3 | Historical data window |
    | include_peers | false | Whether to surface a peer comparison block |
    
    <!-- BEGIN port-dimension-prompts methodology + modes -->
    
    ## Methodology
    
    ### Retrieval Scope
    
    This skill performs unstructured document search at scale (10-K, 10-Q, 8-K filings and earnings call transcripts spanning multiple fiscal periods). The three-layer agent-use-ready retrieval protocol (Document Discovery → Page Map → Deep Read) applies to all unstructured document search at scale.
    
    ### Retrieval Strategy
    
    Follow the retrieval strategy decision tree in `contracts/retrieval.md`. This skill uses:
    - Branch (a) for structured financial metrics via `search_xbrl_facts` with `list_xbrl_concepts` pre-condition for unfamiliar concepts.
    - Branch (c) for single-period document queries via direct `read_source_outline` → `read_source_pages`.
    - Branch (d) for simple lookups via `get_company_profile` / `search_earnings_calendar`.
    
    **Layer 1 `secondary_label` allowlist **: prefer `?secondary_labels=other_events_8_01` to surface risk-event 8-Ks (litigation, regulatory action, cyber incidents) before Layer 2. Also score Layer 2 pages whose `labels.general.keywords` contain "risk factors" entity terms.
    
    ### Temporal Scope
    
    Default: 4 fiscal quarters (max 8). Risk analysis: trailing 4 quarters for near-term risk exposure + forward indicators
    
    ### Tool Allowlist
    
    See frontmatter `allowed_tools`.
    
    ### Protocol
    
    This skill delivers analyst-grade output via 4 addressable mode(s); invoke with `--mode=<slug>` / `--modes=<slug1>,<slug2>` / `--mode=all` (see [Mode syntax](../../../../docs/commands/MODE_SYNTAX.md). The default invocation (no flag) runs the `essentials_modes` subset declared in this skill's frontmatter.
    
    ### Analyst Modes
    
    This skill exposes addressable analysis modes (`--mode=<slug>` / `--modes=<s1>,<s2>` / `--mode=all`; see [Mode syntax](../../../../docs/commands/MODE_SYNTAX.md)). The full mode definitions and their output templates live in `references/modes.md`. The default invocation runs the essentials subset.
    
    ## Tool Fallbacks
    
    Per-tool failure modes and fallback actions are tabulated in `references/tool-fallbacks.md`.
    
    ## Output File
    
    Write the final deliverable to `{ticker}/{YYYY-MM-DD_HHMM}_risk_risk-assessment.md` .
    
    ## Output Structure
    
    The deliverable is a structured markdown report written to the path in `## Output File`. Full section-by-section template (headings, tables, and field definitions) lives in `references/output-structure.md`. Required elements:
    
    1. **Executive Summary** — headline conclusions (≤200 words).
    2. **Core analysis sections** — per this skill's methodology and analyst modes.
    3. **Data classification** — tag findings `[FACT]` / `[DEDUCTED]` / `[VIEW]` per `contracts/snapshot-synthesis.md`.
    4. **Coverage Gaps & Citations** — inline `/v/` citations are PRIMARY (immediately after each fact); the bottom **Citations** section is a non-duplicative roll-up index.
    5. **Output frontmatter** — emit the FR-090 structured block per `contracts/output-frontmatter-schema.md`.
    
    **Citations & memory**: follow `contracts/citation-and-memory.md` — ≥1 citation per 200 words; every material fact, table row, and metric is immediately followed by its inline clickable `https://agentii.ai/v/{ticker}/{citation_id}/{N}` link; a bottom **Citations** section provides a non-duplicative roll-up index; the closing TUI reply includes a compact **Key Citations** list (headline 5–10 facts) of clickable `/v/` URLs; and append the run to `agentii.md` per `contracts/agentii-md-schema.md`.
    
    ## Memory & Snapshot
    
    - **Memory load** (pre-flight): load prior workspace context for the ticker before retrieval — see `contracts/memory-load.md`.
    - **Structured output frontmatter**: emit the FR-090 block (`key_metrics`, `conclusions`, `facts_count`, `deducted_count`, `views_count`, `citation_count`) per `contracts/output-frontmatter-schema.md`.
    - **Snapshot synthesis**: after writing the deliverable, update the two-tier snapshot and classify findings as `[FACT]`/`[DEDUCTED]`/`[VIEW]` — see `contracts/snapshot-synthesis.md`.
    - **Session archival**: record the run under `sessions/{YYYY-MM-DD}/` and update `sessions/INDEX.md` per `contracts/session-format.md`.
    
    ## Final Summary (TUI)
    
    End the closing chat reply with a compact **Key Citations** list (headline 5–10 facts), each a clickable `https://agentii.ai/v/{ticker}/{citation_id}/{N}` link, so the user can cmd+click straight to the exact SEC page. See `contracts/citation-and-memory.md`.
    
    ## Error Handling
    
    | Failure Mode | Detection | Action | User-Facing Message |
    |---|---|---|---|
    | Missing data | Data API returns empty result set | Widen date range and retry once | "No data available for {ticker} in requested window." |
    | Partial data | Data API returns <80% expected records | Proceed with coverage gaps section | "Analysis based on partial data; see Coverage Gaps section." |
    | Sector mismatch | Peer sector != target sector | Filter out mismatched peers | "Removed {n} peer(s) due to sector mismatch." |
    | Insufficient history | Ticker <3 years on public markets | Downgrade to limited-history profile | "Limited historical data; analysis adjusted accordingly." |
    | MCP unreachable | Preflight probe fails | Halt with actionable error | "agentii data plane unreachable; check connection." |
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related