Skip to content

--context <url|path>: first-class context sources beyond Confluence (SharePoint, Jira, Notion, local design docs) with a coverage section that names each one #125

Closed

Description

@vsn411

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:

  1. --context on secfoo run (keep --confluence as an alias that prepends to the same list). Accept https:// URLs and local file or directory paths. Local Markdown, text, PDF, DOCX and PPTX are extracted with docext.py and inlined (size-capped, with the cap visible in the brief); URLs are listed for tool-based retrieval. Reject http:// and anything inside the scanned target (the target is untrusted; context should be the reviewer's own documents).
  2. 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.
  3. Coverage section, generalized. Rename the brief's section to "Documentation coverage", require one row per --context source (source | type | reached | notes), and parse that table into the run record (storage: a context_sources table) so the dashboard's run detail page can show green/red per source and the --json document carries it. A source that was not reached is a visible gap on the run, not a line of prose.
  4. Config defaults: [defaults].context = [...] in config.toml for sources that apply to every run of a project (e.g. the security standards page), merged with the flag.
  5. Skills: update security-architecture-review.md ("Documented vs. implemented") and threat-modeling.md, secret-scanning.md, responsible-ai-compliance.md to refer to "the provided documentation sources" rather than Confluence specifically.
  6. Docs and README: docs/REFERENCE.md (Usage), docs/CI.md (passing --context in 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

  1. added
    enhancement
    help wanted
    hackathon
    difficulty: medium
    on Nov 15, 2026
  2. saryeljaramany commented on Nov 15, 2026

    @saryeljaramany
    Contributor

    i am working on this

  3. vsn411 commented on Nov 15, 2026

    @vsn411
    CollaboratorAuthor

    i am working on this

    Thank you, please attach testing and validation screenshots as well

  4. saryeljaramany commented on Nov 16, 2026

    @saryeljaramany
    Contributor

    i am working on this

    Thank you, please attach testing and validation screenshots as well

    Thanks! I'll attach test and validation screenshots to the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: mediumenhancementhackathonhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions