From a1d7fdedee6ea536b132556c8044081df72e388d Mon Sep 17 00:00:00 2001 From: Varun Poojari <83573233+Varunpoojari@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:15:39 +0000 Subject: [PATCH 1/3] docs: describe secfoo the same way in --help, CITATION.cff and PyPI `secfoo --help` still said "Context-based security architectural assessment." while the README and the PyPI description say "AI security review CLI ...". Use the PyPI summary as the single source: the Typer app help (and the root callback docstring) carry its first sentence and the CITATION.cff abstract carries the full description. Add test_product_description_is_the_same_everywhere so the three cannot drift apart again. Part of #120 (item 4). Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd --- CITATION.cff | 2 +- tests/test_docs_consistency.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CITATION.cff b/CITATION.cff index 9d25d75..e7f5d86 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,7 +1,7 @@ cff-version: 1.2.0 message: "If you use secfoo in your research or tooling, please cite it as below." title: "secfoo" -abstract: "Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them." +abstract: "AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review with Claude Code, Copilot, Codex, Gemini, Cursor or an API key. Reads your design docs, Confluence and Jira through MCP. SARIF output for CI." authors: - name: "RakFort" repository-code: "https://github.com/secfoo-com/secfoo" diff --git a/tests/test_docs_consistency.py b/tests/test_docs_consistency.py index e7256ce..6595d4a 100644 --- a/tests/test_docs_consistency.py +++ b/tests/test_docs_consistency.py @@ -55,3 +55,21 @@ def test_the_on_block_parser_sees_triggers_after_a_blank_line() -> None: assert _has_push_trigger(_top_level_on_block('"on": [push, workflow_dispatch]\njobs: {}\n')) commented = "on:\n workflow_dispatch:\n\n# the GHCR push needs packages: write\njobs: {}\n" assert not _has_push_trigger(_top_level_on_block(commented)) + + +def test_product_description_is_the_same_everywhere() -> None: + """The Typer help, CITATION.cff abstract and PyPI description tell one story.""" + try: + import tomllib + except ModuleNotFoundError: # Python 3.10 + import tomli as tomllib + + from secfoo.cli import app + + description = tomllib.loads((ROOT / "pyproject.toml").read_text(encoding="utf-8"))["project"]["description"] + abstract = re.search(r'^abstract:\s*"(.*)"\s*$', (ROOT / "CITATION.cff").read_text(encoding="utf-8"), re.MULTILINE) + assert abstract, "CITATION.cff has no abstract" + assert abstract.group(1) == description + assert app.info.help + assert description.startswith(app.info.help.rstrip(".")) + assert "Context-based" not in app.info.help From 5463eb9d246378513501e8b5a24101e041393e01 Mon Sep 17 00:00:00 2001 From: Varun Poojari <83573233+Varunpoojari@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:19:39 +0000 Subject: [PATCH 2/3] docs: use the PyPI description for the Typer app help `secfoo --help` said "Context-based security architectural assessment." while the README, pyproject.toml and CITATION.cff say "AI security review CLI ...". Change the Typer app help and the root callback docstring to the first sentence of the PyPI description. Part of #120 (item 4). Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd --- src/secfoo/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/secfoo/cli.py b/src/secfoo/cli.py index 5219955..7436601 100644 --- a/src/secfoo/cli.py +++ b/src/secfoo/cli.py @@ -43,7 +43,7 @@ from secfoo.storage.repository import RunRepository from secfoo.targets.resolver import TargetResolutionError, resolve_target -app = typer.Typer(name="secfoo", help="Context-based security architectural assessment.") +app = typer.Typer(name="secfoo", help="AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review.") mcp_app = typer.Typer(name="mcp", help="Manage MCP servers configured in ~/.secfoo/config.toml.") config_app = typer.Typer(name="config", help="Manage ~/.secfoo/config.toml.") assessment_app = typer.Typer(name="assessment", help="Manage assessment case files.") @@ -87,7 +87,7 @@ def _root( typer.Option("--version", "-V", is_eager=True, callback=_show_version, help="Show the installed version and exit."), ] = False, ) -> None: - """Context-based security architectural assessment.""" + """AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review.""" @app.command() From cac8b2a73277f411ec2af46b58b4d6282985f83c Mon Sep 17 00:00:00 2001 From: Satyanarayana Vuppala Date: Fri, 20 Nov 2026 12:12:18 +0000 Subject: [PATCH 3/3] Align the npm package description too; check the --help docstring The npm package.json description and README still carried the old 'Context-based ...' tagline. The consistency test now also checks the root callback docstring (which --help can show) and the npm description. Co-Authored-By: Claude Opus 5.5 --- npm/secfoo/README.md | 6 +++--- npm/secfoo/package.json | 2 +- tests/test_docs_consistency.py | 11 ++++++++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/npm/secfoo/README.md b/npm/secfoo/README.md index f45cce0..e9fb1c4 100644 --- a/npm/secfoo/README.md +++ b/npm/secfoo/README.md @@ -1,8 +1,8 @@ # @rakfortltd/secfoo -Context-based security architectural assessment orchestrator — a -standalone binary distributed via npm's `optionalDependencies` pattern -(no Python required). +AI security review CLI: SAST, secret scanning, SCA, threat modeling and +architecture review, as a standalone binary distributed via npm's +`optionalDependencies` pattern (no Python required). ```bash npm install -g @rakfortltd/secfoo diff --git a/npm/secfoo/package.json b/npm/secfoo/package.json index 38cd160..c5f4299 100644 --- a/npm/secfoo/package.json +++ b/npm/secfoo/package.json @@ -1,7 +1,7 @@ { "name": "@rakfortltd/secfoo", "version": "0.1.1", - "description": "Context-based security architectural assessment orchestrator (threat modeling, SAST/SCA checks, and OWASP-aligned reporting via your choice of coding-agent CLI)", + "description": "AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review with Claude Code, Copilot, Codex, Gemini, Cursor or an API key. Reads your design docs, Confluence and Jira through MCP. SARIF output for CI.", "bin": { "secfoo": "bin/secfoo.js" }, diff --git a/tests/test_docs_consistency.py b/tests/test_docs_consistency.py index 6595d4a..10ab72e 100644 --- a/tests/test_docs_consistency.py +++ b/tests/test_docs_consistency.py @@ -2,6 +2,8 @@ from __future__ import annotations +import inspect +import json import re from pathlib import Path @@ -72,4 +74,11 @@ def test_product_description_is_the_same_everywhere() -> None: assert abstract.group(1) == description assert app.info.help assert description.startswith(app.info.help.rstrip(".")) - assert "Context-based" not in app.info.help + # `secfoo --help` can show the root callback's docstring instead of Typer(help=...). + assert inspect.getdoc(app.registered_callback.callback) == app.info.help + # The npm package page is the third public listing. + npm = json.loads((ROOT / "npm/secfoo/package.json").read_text(encoding="utf-8")) + assert npm["description"] == description + for path in (ROOT / "src/secfoo/cli.py", ROOT / "CITATION.cff", ROOT / "npm/secfoo/package.json", + ROOT / "npm/secfoo/README.md"): + assert "Context-based security architectural assessment" not in path.read_text(encoding="utf-8"), path