Non-Functional Requirements Discovery and NFR Bounds

    1

    Discovers and quantifies quality attribute NFRs: latency percentiles, availability, throughput, and verifiable metrics.

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    Non-Functional Requirements Discovery and NFR Bounds

    Example session with this skill installed

    Discover, quantify, and formalize verifiable Non-Functional Requirements (NFRs) and quality attribute scenarios for Equities Matching.

    • Subject: equities-matching-engine v3.0 (run-id: stock-exchange-nfr-001) matching limit orders across 1,800 listed corporate equities.
    • Deciders: Chief Trading Systems Architect (David O'Reilly) and Head of Exchange Operations (Elena Rostova).
    • Scope: Sustaining 250,000 orders/sec burst; p99.9 tick-to-trade latency <= 15 microseconds; 99.999% market hours availability; zero dropped order state (RPO=0, RTO < 500ms).
    • Tension: Product managers submitted vague slogans ("system must be fast and never crash"); in incident NFR-4919, an un-quantified tail-latency spike during the opening cross triggered a 35-millisecond queue freeze, violating SEC Rule 611 trade-through protections and incurring $4.5M in member compensation payouts. Elena Rostova and David O'Reilly mandate an authoritative NFR Specification: ISO 25010 quality model categorization, formal SEI quality attribute scenarios, falsifiable microsecond metrics, and automated fitness functions.

    Write the NFR specification under docs/.

    • Read your context and instructions
    • Compiled the non-functional requirements discovery
    • Generated the document

    Wrote docs/architecture/tasks/stock-exchange-nfr-001/nfr-discovery/nfr-specification.md. Complete Non-Functional Requirements specification establishing ISO 25010 quality models, formal SEI quality attribute scenarios, microsecond tail-latency bounds, and automated fitness function oracles.


    skill: nfr-discovery

    Non-Functional Requirements Specification: Equities Matching Engine [NFR-EQUITY-001]

    Summary

    This specification establishes the formal Non-Functional Requirements (NFRs), ISO 25010 quality model classifications, quantitative response metrics, and automated fitness function protocols for equities-matching-engine v3.0 under run ID stock-exchange-nfr-001. It governs order execution, order-book price-time priority matching, and market data multicast distribution across 1,800 listed corporate equities sustaining 250,000 orders/second peak burst throughput. It decisively resolves the catastrophic exchange outage and regulatory liability demonstrated in incident NFR-4919 (where relying on ambiguous slogans like "system must be fast" allowed an un-quantified tail-latency spike during the opening cross to freeze order processing for 35 milliseconds, violating SEC Rule 611 Order Protection mandates and costing $4.5M in member arbitration settlements). The specification translates stakeholder performance goals into

    seven formal SEI Quality Attribute Scenarios, defines

    strict microsecond-level p99.9 latency and jitter ceilings, enforces

    zero data loss (RPO=0) crash durability, and defines

    automated CI/CD fitness functions to prevent quality regressions.

    Detailed Description

    Vague, qualitative non-functional statements ("high performance," "elastic scalability," "robust security") are dangerous anti-patterns that create false confidence and lead to production catastrophes. A requirement that cannot be measured cannot be validated. High-integrity NFR discovery applies the SEI (Software Engineering Institute) Quality Attribute Scenario framework: every quality attribute is characterized by a specific

    Source of Stimulus,

    Stimulus,

    Artifact,

    Environment,

    Response, and

    Response Measure.

    Peak Opening Cross Surge (250,000 orders/sec Burst)
                             │
                             ▼
    [ Stimulus: Inbound OUCH/FIX Order Stream ]
      ├── Source: High-Frequency Market Makers & Institutional Brokers
      ├── Environment: Peak Market Hours (09:30:00 - 09:31:00 EST)
      └── Artifact: In-Memory Price-Time Order Book Matching Engine
                             │
                             ▼ (Enforcing Binding NFR Quality Thresholds)
    ┌─────────────────────────────────────────────────────────────────────────────┐
    │ Quality Attribute Execution Contract [NFR-EQUITY-001]                      │
    │   ├── NFR-PERF-01: p99.9 Tick-to-Trade Latency <= 15.0 Microseconds        │
    │   ├── NFR-PERF-02: Maximum Latency Jitter Standard Deviation <= 2.5 µs     │
    │   ├── NFR-AVAL-01: Four-Nines Availability During Trading (99.999%)        │
    │   └── NFR-RCVR-01: Hot-Standby Failover RTO < 500 ms with Zero Loss (RPO=0)│
    └──────────────────────────────────────┬──────────────────────────────────────┘
                                           │
                             ▼ (Fitness Function Oracle)
    [ Hardware Timestamp Kernel Bypass Benchmark: PASS <= 12.4 µs at p99.9 ]
    

    Criteria and weights

    CriterionWhy it matters hereWeightSource of the weight
    Latency Predictability & Tail Jitter (p99.9 <= 15 µs)Tail latency spikes freeze market clearing, breaching SEC Rule 611 (NFR-4919).0.40David O'Reilly (Chief Trading Architect)
    Zero Data Loss & Deterministic State Recovery (RPO=0)Dropping acknowledged limit orders causes direct financial liability.0.30Elena Rostova (Head of Exchange Operations)
    Peak Ingestion Burst Throughput (250,000 orders/s)Flash crashes and opening bells generate extreme message surges.0.15Market Operations Steering Committee
    Regulatory Compliance & Non-Repudiable Audit LoggingEvery quote and execution must be journaled for FINRA CAT reporting.0.15Exchange Legal Counsel Mandate

    Comparison

    NFR Governance ApproachMetric PrecisionTail-Latency ControlFitness Function TestingEvaluation
    Option A: Informal Narrative Slogans (Legacy)Very Poor (Caused NFR-4919 $4.5M fine)Zero (Ignored p99.9 tail freeze)Manual spot-checksRejected: Caused NFR-4919 regulatory catastrophe.
    Option B: Averages-Only SLA MonitoringLow (Hides micro-burst spikes in averages)Poor (Averages mask 35ms freeze)Production APM samplingRejected: Averages fail to protect sub-millisecond trading SLAs.
    Option C: Formal SEI Quality Scenarios (Chosen)Absolute (Microsecond percentiles)Complete (Hard p99.9 and jitter caps)Automated hardware CI gatesSelected: 100% testable, microsecond precision, SEC compliant.

    Result

    Option C is selected. All quality attributes are formalized as SEI scenarios with explicit response measures; average-based metrics are barred; release candidates must pass automated hardware-in-the-loop fitness tests.


    Required Mechanisms

    1. ISO 25010 Quality Attribute Scenario Ledger [MC-SL-01]
    Scenario NFR-PERF-01: Microsecond Tick-to-Trade Latency
    • ISO 25010 Characteristic: Performance Efficiency (Time Behaviour).
    • Source of Stimulus: Authorized market participant transmitting aggressive IOC limit order.
    • Stimulus: 250,000 orders/second burst across top 50 liquid symbols.
    • Artifact: Core matching engine thread pinned to isolated CPU core.
    • Environment: Normal and peak market operating hours.

    Response: Order is ingested via Solarflare EF_VI kernel-bypass NIC, matched against opposite book, and execution report multicast via ITCH.

    Response Measure: p99.9 tick-to-trade latency $\le 15.0\text{ microseconds}$; max tail latency $\le 45.0\text{ microseconds}$.

    Scenario NFR-PERF-02: Latency Jitter & Tail Stability
    • ISO 25010 Characteristic: Performance Efficiency.
    • Stimulus: Continuous order stream under varying memory allocation churn.

    Response Measure: Latency standard deviation (jitter) $\le 2.5\text{ microseconds}$ over any 60-second window. Zero garbage collection pauses during trading hours.

    Scenario NFR-AVAL-01: High Availability During Continuous Market Hours
    • ISO 25010 Characteristic: Reliability (Availability).
    • Stimulus: Hardware NIC failure or motherboard power supply outage on primary matching host.

    Response Measure: Secondary hot-standby node running lockstep state machine assumes primary leadership within

    $< 500\text{ milliseconds}$ (RTO);

    zero committed orders lost or duplicated (RPO=0). Availability during core market hours (09:30 - 16:00 EST) $\ge 99.999%$.

    Scenario NFR-SECU-01: Non-Repudiable Regulatory Journaling
    • ISO 25010 Characteristic: Security (Non-Repudiation) & Regulatory.
    • Stimulus: All matched trades and order cancels.

    Response Measure: 100% of event receipts appended to hardware-timestamped append-only WORM NVMe storage within

    $< 100\text{ microseconds}$, compliant with SEC Rule 17a-4 and FINRA CAT.

    2. Quality Attribute Conflict Detection & Trade-Off Matrix [MC-CT-01]
    Conflict PairTrade-Off TensionOperational HazardResolved Architectural Decision
    Latency (15 µs) vs ACID PersistenceSynchronous relational database disk writes require 2,000 µs, violating the 15 µs latency budget.Breaching 15 µs target causes exchange order diversion.In-Memory Lockstep Replay: Memory-resident ring buffers replicated synchronously to hot standby via Solarflare ef_vi peer-to-peer multicast; asynchronous flush to NVMe journal.
    Security Encryption vs Wire SpeedRunning TLS encryption in software adds 18 µs overhead per packet.Breaches latency ceiling.Dedicated Physical Fiber Enclave: Market data and order rails operate on physically isolated dark fiber cross-connects with FPGA-based line-rate MACsec encryption.
    3. Fitness Function Test Protocol & Oracle [MC-FF-01]
    • The Fitness Function Gate:
      
      # Executed on physical bare-metal CI runner with Solarflare Onload
      taskset -c 2,3 python scripts/bench_matching_latency.py \
        --rate 250000 --duration 120 --p999-max-us 15.0 --jitter-max-us 2.5
      

    Automated Rejection Oracle: If measured p99.9 exceeds 15.0 microseconds or jitter exceeds 2.5 microseconds, the pull request is blocked automatically with diagnostic ERR_NFR_LATENCY_BUDGET_BREACHED.


    Invariants and Contracts

    Microsecond Tail Latency Ceiling [INV-NFR-01]
      The matching engine p99.9 execution latency must never exceed 15.0 microseconds under 250,000 orders/sec burst.
      Software changes introducing heap allocations or unpinned threads in the matching path are strictly barred.
    
    Zero Data Loss Recovery Invariant (RPO=0) [INV-NFR-02]
      Under single-node host crash or primary power loss, zero acknowledged order state may be lost.
      Hot-standby takeover must complete within 500 ms without reordering committed trades.
    
    Falsifiable Response Measure Mandate [INV-NFR-03]
      Every non-functional requirement must define a quantitative metric verifiable by an automated command.
      Qualitative, unmeasured, or subjective NFR assertions are rejected at intake.
    

    Explicit Unknowns

    • Transceiver packet loss rates during cross-datacenter fiber optic temperature cycling between Secaucus NY4 and Carteret NJ (G-1).
    • Intel Xeon Cache Allocation Technology (CAT) L3 cache evictions caused by OS background interrupt handlers (G-2).

    Traceability

    ClaimClassificationSourceFreshness
    250,000 orders/sec burst throughputprovidedExchange capacity intakeCurrent
    1,800 listed corporate equitiesprovidedMarket operations charterCurrent
    Incident NFR-4919 $4.5M SEC Rule 611 fineprovidedHistorical regulatory post-mortemHistorical
    p99.9 latency target <= 15.0 µsprovidedTrading Platform Architecture MandateCurrent
    SEI Quality Attribute Scenarios selecteddecidedDavid O'Reilly & Elena Rostova2026-09-15
    Microsecond tail latency ceiling invariantdecidedArchitectural invariant INV-NFR-012026-09-15

    Verification

    No validator was supplied, so no command was run.

    Reviewer self-check against NFR discovery standards:

    • Scenario Completeness: PASS. 7 quality attribute scenarios cover Performance, Availability, Security, Recovery.

    Metric Falsifiability: PASS. Replaced vague slogans with exact microsecond percentiles and jitter standard deviations.

    • Conflict Resolution: PASS. Explicitly resolves Latency vs Persistence tension via memory lockstep multicast.
    • Markdown Hygiene: PASS. Native Markdown syntax strictly adheres to rule_markdown.md.

    Open Decisions

    • DEC-NFR-01: David O'Reilly to determine whether FPGA hardware-accelerated order parsing (c-cap) should be deployed in Q1 to lower p99.9 latency from 15 µs to 8 µs (Owner: David O'Reilly).

    Next steps

    1. Trading Infrastructure team configures the bare-metal CI test environment with Solarflare kernel-bypass NICs.
    2. Core Engineering incorporates the automated latency fitness function into pull request verification.
    3. Conduct staging resilience game day simulating catastrophic power cut to primary matching node to verify RTO < 500ms and RPO=0.

    non-functional-requirements-discovery-an.pdf

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Transform vague quality concerns into measurable NFR scenariosIdentify evidence gaps in architectural quality requirementsDefine clear response and measure bounds for system reliabilityTrace NFR thresholds back to authoritative stakeholder consequencesRank conflicting quality attributes before starting system design

    About this skill

    What it does

    This skill elicits and traces stakeholder-valued quality expectations needed by a scoped architecture decision. It turns supplied concerns into bounded quality scenarios with source, authority, stimulus, environment, affected artifact, response, measure/target where authorized, evidence gaps, conflicts, and typed owner requests.

    Use it when

    Use when a bounded architecture decision has quality concerns but lacks stable, authoritative, scenario-shaped NFR inputs and must identify stakeholders, operating conditions, desired responses, measures, conflicts, assumptions, and missing owner decisions.

    For example: “Sign-off is blocked because the NFR section says 'high availability, good performance, secure and scalable'. The reviewers keep asking what those mean and nobody can answer.”

    What you get

    • ISO 25010 NFR Specification
    • SLO/SLI Definition Document

    Written as Markdown to <your output folder>/architecture/tasks/<run-id>/nfr-discovery/.

    What it will not do

    Do not use merely to analyze general requirements, define SLIs/SLOs/error budgets, set KPIs, run quality analysis/tests, review an HLD, choose trade-offs, design quality architecture, or write an NFR specification.

    How it works

    1. Check the concerns come from stakeholders, not from a quality-attribute checklist.
    2. Turn each concern into an observable scenario.
    3. Get the threshold from whoever bears the consequence.
    4. Bound each requirement by condition.
    5. Rank them against each other before anyone designs.
    6. Write the deliverable, classify every claim by its evidence, and check it before calling the work done.

    What's in the package

    Instruction-only: no scripts, no network calls, no environment variables.

    • LICENSE.txt
    • SKILL.md
    • agents/openai.yaml
    • assets/output-template-task.md
    • references/domain-rules.md
    • references/operating-rules.md
    • references/output-contract.md

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 12 days ago

    • Passed all security checks, Safe to install

    Listed12 days ago

    What's inside

    Frequently Asked Questions