Skip to main content

Spec Gap Scout terminal report

spec-gap-scout

spec-gap-scout checks whether requirements in a markdown spec have visible evidence in a repository. It is built for the awkward moment before a release review when a PRD, checklist, or customer promise says one thing and the code may say another.

Problem

Specs drift. A release checklist says "export CSV", "prevent duplicate retries", or "redact provider responses", but reviewers still have to search the repository by hand. spec-gap-scout extracts requirement-like lines, scans code and docs, scores evidence, and flags likely gaps without sending repository contents anywhere by default.

Install

pip install spec-gap-scout

Optional LLM risk notes need provider SDKs:

pip install "spec-gap-scout[llm]"

Quick Start

spec-gap-scout examples/product-spec.md --repo examples/sample_repo

Markdown and JSON reports are available:

spec-gap-scout SPEC.md --repo . --format markdown --output spec-gap-report.md
spec-gap-scout SPEC.md --repo . --format json --output spec-gap-report.json

The command exits with 1 when one or more requirements are missing, which makes it useful in release scripts and pre-merge checks.

LLM Risk Notes

The scanner is local-first. If you want a concise risk note from an LLM, choose a provider explicitly:

spec-gap-scout SPEC.md --repo . --format markdown --llm-provider openai
spec-gap-scout SPEC.md --repo . --llm-provider anthropic --llm-model claude-3-5-haiku-latest
spec-gap-scout SPEC.md --repo . --llm-provider ollama --llm-model llama3.1

Provider configuration uses the normal environment variables:

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • OLLAMA_HOST

Only the compact scan report is sent to the selected provider, not full source files.

What Counts as Evidence

For each requirement, the tool:

  • extracts keywords from requirement-like markdown bullets and numbered lines
  • scans common source, config, and documentation extensions
  • scores matching lines by keyword coverage, path relevance, and test/spec locations
  • redacts common key, token, secret, and password patterns in snippets
  • labels each requirement as covered, partial, or missing

This is not a proof of correctness. It is a fast review map that tells you where to look first.

Python API

from pathlib import Path
from spec_gap_scout import ScoutOptions, run_scan

report = run_scan(ScoutOptions(spec=Path("SPEC.md"), repo=Path(".")))
print(report["summary"])

Development

python3 -m venv .venv
. .venv/bin/activate
pip install -e . pytest
pytest

License

MIT

Metadata

Release files for spec-gap-scout 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spec-gap-scout 0.1.0
File Size Uploaded Provenance Actions
spec_gap_scout-0.1.0.tar.gz 10.0 kB Without provenance Details for spec_gap_scout-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spec-gap-scout 0.1.0
File Interpreter ABI Platform Actions
spec_gap_scout-0.1.0-py3-none-any.whl Python 3 none any Details for spec_gap_scout-0.1.0-py3-none-any.whl

Total release size: 20.6 kB

Release files / spec_gap_scout-0.1.0.tar.gz

Download URL spec_gap_scout-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
66590a75b02ebe7b9beca0724492dd8a1c896a60cb5f84c43d4b1791b0d452d7
BLAKE2b-256 checksum
How to use checksums
e7e78651e5d0d701fd82520ca7b3a88bb73181b875b4843bfb008a43cbb6b746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / spec_gap_scout-0.1.0-py3-none-any.whl

Download URL spec_gap_scout-0.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b72375f7a02eca72092da5f73e17bdd3da3a1f5a834e3c4ee40b461e8f18557
BLAKE2b-256 checksum
How to use checksums
a238ae5e7d171ff9bc334998a847b2a554e9fd700123cc8575a601ff34992a50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for spec-gap-scout 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page