Repository navigation
Description
Problem: The only way to hand the agent a documentation source today is --confluence <url> (src/secfoo/skills/renderer.py, _confluence_section), which renders an "Additional context (Confluence)" block and asks the agent to fetch the pages with whatever MCP tooling it has. A SharePoint page, a Jira epic, a Notion doc, a Google Drive design document, or a local docs/architecture.md cannot be named on the command line at all, even when an MCP server that could read it is configured. The coverage section in the report is also titled "Documentation & Confluence Coverage", so for every other source the agent has no slot to say what it read.
Goal: secfoo run --context <url-or-path> (repeatable) accepts any documentation source, the brief lists each with the tool most likely to read it, and the report's coverage table has one row per source with reached / not reached and why.
Build:
--contextonsecfoo run(keep--confluenceas an alias that prepends to the same list). Accepthttps://URLs and local file or directory paths. Local Markdown, text, PDF, DOCX and PPTX are extracted withdocext.pyand inlined (size-capped, with the cap visible in the brief); URLs are listed for tool-based retrieval. Rejecthttp://and anything inside the scanned target (the target is untrusted; context should be the reviewer's own documents).- Source hints in the brief. Classify each URL by host (Atlassian wiki, Atlassian Jira,
sharepoint.com,notion.so,docs.google.com, other) and tell the agent which configured MCP server is the likely reader, by server name from[[mcp_servers]], so it does not guess. If no server matches, say so in the brief so the gap is expected, not discovered. - Coverage section, generalized. Rename the brief's section to "Documentation coverage", require one row per
--contextsource (source | type | reached | notes), and parse that table into the run record (storage: acontext_sourcestable) so the dashboard's run detail page can show green/red per source and the--jsondocument carries it. A source that was not reached is a visible gap on the run, not a line of prose. - Config defaults:
[defaults].context = [...]inconfig.tomlfor sources that apply to every run of a project (e.g. the security standards page), merged with the flag. - Skills: update
security-architecture-review.md("Documented vs. implemented") andthreat-modeling.md,secret-scanning.md,responsible-ai-compliance.mdto refer to "the provided documentation sources" rather than Confluence specifically. - Docs and README:
docs/REFERENCE.md(Usage),docs/CI.md(passing--contextin pipelines), and the README's "Context, not just code" table and command.
Where to look: src/secfoo/cli.py (run, the confluence option), src/secfoo/runner.py (confluence_urls plumbing), src/secfoo/skills/renderer.py (TargetContext, _confluence_section, the coverage section text near line 685), src/secfoo/skills/definitions/*.md, src/secfoo/docext.py, src/secfoo/report/markdown.py (table parsing), src/secfoo/storage/, src/secfoo/web/routes/runs.py, tests/test_skills/, tests/test_cli.py.
Done when: --context works for a URL, a local Markdown file and a PDF (tests); --confluence still works; the brief names the matching MCP server per URL (tests with a fake config); the coverage table is parsed and shown on the run detail page; http:// and in-target paths are rejected; docs updated.
Activity
saryeljaramany commentedon Nov 15, 2026
i am working on this
Parse and reconcile the documentation coverage table (secfoo-com#125)
Store documentation coverage per run; show it in --json and on the ru…
vsn411 commentedon Nov 15, 2026
Thank you, please attach testing and validation screenshots as well
Add --context flag and [defaults].context with source validation (sec…
Add context brief: classify URL sources, inline local documents (secf…
Parse and reconcile the documentation coverage table (secfoo-com#125)
Store documentation coverage per run; show it in --json and on the ru…
Document --context, generalize skill wording, tidy runner tests (secf…
saryeljaramany commentedon Nov 16, 2026
Thanks! I'll attach test and validation screenshots to the PR.
Match coverage rows to sources by exact label, find the table at any …
Share one context pipeline between CLI and dashboard, store only Conf…
Wildcard hosts match subdomains only, ignore blank lines in the dashb…
fix(context): close symlink and dashboard holes, harden brief and cov…
feat(context): --context sources with host classification, MCP reader…