Skip to content

docs: describe secfoo the same way in --help, CITATION.cff and PyPI - #157

Merged
vsn411 merged 4 commits into
mainfrom
docs/align-product-description
Nov 20, 2026
Merged

vsn411 merged 4 commits into
mainfrom
docs/align-product-description

Conversation

@Varunpoojari

@Varunpoojari Varunpoojari commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #120 (item 4). Deliberately not Fixes, because the other items in that issue are still open.

Problem

The tool was described three different ways:

Where Said
secfoo --help (Typer app help and root callback docstring) "Context-based security architectural assessment."
CITATION.cff abstract "Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them."
README, pyproject.toml description (PyPI summary) "AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review ..."

Changes

  • src/secfoo/cli.py: the Typer app help= and the _root callback docstring now carry the first sentence of the PyPI description: "AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review."
  • CITATION.cff: the abstract is now the full pyproject.toml description.
  • tests/test_docs_consistency.py: new test_product_description_is_the_same_everywhere. It checks that the CITATION.cff abstract equals the pyproject.toml description, that the Typer help is the opening of that description, and that "Context-based" is gone from the help. It uses the same tomllib/tomli fallback as the other test, so it works on Python 3.10.

pyproject.toml is the source of truth, so the README and PyPI page are untouched.

Checks run

  • The new test fails on main and passes on this branch.
  • tests/test_docs_consistency.py and tests/test_cli.py: 78 passed.
  • Full suite: 1803 passed, 1 skipped, 4 failed. The 4 failures are the diagram-rendering tests (test_activity_routes.py x3 and test_architecture_dashboard.py::test_dashboard_diagram_section_still_present_alongside_new_dashboard), which fail the same way on an unmodified main and don't touch these files.
  • ruff check: the new test file is clean. src/secfoo/cli.py shows the same error counts as main (the UP045/B008 backlog from Make lint and security scanning blocking in CI: ruff has 133 errors behind || true, bandit findings are unreviewed, pip-audit never runs #114), so this PR adds none.
  • python -m secfoo.cli --help shows the new description.

Notes

Varunpoojari and others added 2 commits November 20, 2026 11:15
`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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd
`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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd
Satyanarayana Vuppala and others added 2 commits November 20, 2026 12:12
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 <[email protected]>
# Conflicts:
#	tests/test_docs_consistency.py
@vsn411

vsn411 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Thanks @Varunpoojari! Clean change, and the test pinning pyproject.toml as the source of truth is the right design.

You flagged the npm wrapper as out of scope. I went ahead and folded it in, because the npm package page is the third public listing #120 item 4 is about:

  • npm wrapper. npm/secfoo/package.json description now equals the pyproject.toml description, and npm/secfoo/README.md uses the new tagline.
  • The test now also checks:
    • that the root callback's docstring matches Typer(help=...), because --help can show either one. I checked that it fails if the docstring alone reverts.
    • that the npm description matches.
    • that the old tagline is gone from all four files.

I also merged main in (it overlapped with #156 in tests/test_docs_consistency.py; both tests are kept). Merging once CI is green.

@vsn411
vsn411 merged commit 92ba986 into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants