Skip to content

tracking: systematic test architecture remainder (resurrected from #807) #997

Closed

Description

@Sinity

Umbrella: systematic test architecture remainder (resurrected from #807)

This issue tracks the residual test-architecture work after the 2026-05-16 verifiability wave (#1058) and the PR #928 partial close. All implementation lives in child issues; this body is a navigation header.

Active children (decomposed 2026-05-17)

# Scope Size
#1181 Renderer/output stability snapshots M
#1182 Concurrency/race suite (blob GC, live watcher, FTS, ingest) L
#1183 Tiered scale fixtures (small/medium/large) M
#1184 Parser contract catalogs (Claude-AI, Gemini, Codex) M
#1185 Blob-store + schema-policy contract suites M
#1186 Per-domain closure matrix under docs/plans/ + lint M

Closure condition

This umbrella closes when:

  1. All six children above are closed (or any reframed into a successor with a #NNN), AND
  2. test(coverage): commit per-domain closure matrix as tracked artifact under docs/plans/ #1186's closure matrix exists and is wired into devtools verify so future test-domain accountability has a tracked artifact owner.

No further "systematic test architecture" work should accrue under this umbrella; new gaps are filed as standalone domain-scoped issues and listed in #1186's matrix.

History

Activity

  1. added
    type:tracking
    on May 9, 2026
  2. Sinity commented on May 11, 2026

    @Sinity
    OwnerAuthor

    Strengthening pass — systematic test architecture remainder

    Current source read: the repo has a broad unit suite, integration tests, property tests, fuzz target directory, benchmarks, proof-law tests, and generated validation lanes. The issue should therefore avoid generic “add more tests” wording and instead define domain-specific contracts that are currently under-proven.

    Recommended decomposition:

    • Fuzzing: promote at least one Atheris target per parser/security boundary into a documented, runnable campaign, with seed corpus and failure capture policy.
    • SQL injection / query binding: prove all user-controlled filters/search/query params use bound parameters or safe FTS escaping; include daemon HTTP and MCP entrypoints.
    • CLI contracts: argument parsing, exit codes, stdout/stderr split, JSON stability, plain/rich output differences, and shell completion behavior.
    • MCP contracts: tool schemas, error envelopes, pagination cursors, no-results diagnostics, permission/role surfaces.
    • Renderer/output stability: snapshots should pin user-facing output, but avoid snapshots that only freeze implementation noise.
    • Concurrency/race tests: live watcher, cursor retry, FTS repair, blob GC leases, daemon startup/shutdown, and ingest worker handoff.
    • Security/privacy: path leakage, raw payload redaction, browser/daemon API boundaries, attachment traversal.
    • Performance/regression: generated scale fixtures and benchmark campaigns tied to declared SLOs or growth-shape thresholds.

    Implementation anchors:

    • tests/unit/security/, tests/property/, tests/fuzz/, tests/benchmarks/, tests/integration/.
    • devtools/run-validation-lanes, devtools/mutmut-campaign, devtools/benchmark-campaign, devtools coverage-gate.
    • docs/test-quality-workflows.md and docs/plans/test-quality-coverage.yaml.

    Acceptance should require a matrix mapping each domain to: target files/surfaces, representative tests/campaigns, required gate or optional confidence gate, and explicit known gaps. Close only when the matrix is implemented or split into precise child issues.

  3. Sinity commented on May 15, 2026

    @Sinity
    OwnerAuthor

    Migration issue mapping

    #997's systematic test architecture remainder now has a concrete pytest-first verification direction:

    Closeout for #997 should eventually be a matrix of test domains -> pytest nodes/markers/artifacts -> required or lab gate -> known gaps. Avoid duplicating behavioral claims in proof catalog rows when pytest can express them directly.

  4. Sinity commented on May 17, 2026

    @Sinity
    OwnerAuthor

    Status update — partial matrix, leaving open

    Substantial coverage shipped via the 2026-05-16 PR wave:

    Domain (from 2026-05-11 matrix) Shipped via
    Fuzzing — promote at least one Atheris target per parser/security boundary with seed corpus + docs PR #1092 — tests/fuzz/README.md + test_fuzz_targets_executable.py
    SQL injection / query binding — bound params / safe FTS escape across CLI/MCP/daemon PR #1092 — static AST scan + Hypothesis runtime fuzz of ConversationFilter
    CLI contracts — arg parsing, exit codes, stdout/stderr split, JSON stability, --plain vs rich, completions PR #1080 (machine surface), PR #1084 (plain/help/completions)
    MCP contracts — tool schemas, error envelopes, pagination cursors, no-results diagnostics, permission/role surfaces PR #1081 (schemas/envelopes), PR #1085 (daemon HTTP)
    Security/privacy — path traversal, secret-leak in logs, attachment traversal PR #1092 — test_path_traversal_boundary.py, test_no_secret_leak_in_logs.py, test_sentinel_env_leak.py
    Storage/property — filter chain semantic laws PR #1077

    Remaining matrix bullets still owed:

    • Renderer/output stability — snapshots that pin user-facing output without freezing implementation noise; no dedicated PR in this wave
    • Concurrency/race tests — live watcher, cursor retry, FTS repair, blob GC leases, daemon startup/shutdown, ingest worker handoff; partially covered piecemeal but no consolidated suite
    • Performance/regression — generated scale fixtures and benchmark campaigns tied to declared SLOs/growth-shape thresholds; feat(verify): tier SLO catalog and enforce campaign artifact reality (#1063) #1086 / feat(benchmarks+devtools): campaigns, SLO, evidence-report (#998, #1063, #997) #1072 cover the catalog/campaign side, but the comprehensive scale-fixture tier separation (cheap local vs lab vs CI/nightly) per the AC is not fully concluded
    • Closure matrix as a tracked artifact — the AC asked for a per-domain matrix of target files → tests/campaigns → required/optional gate → known gaps; not yet committed

    Leaving open with these specific bullets as the residual scope.

  5. Sinity commented on May 17, 2026

    @Sinity
    OwnerAuthor

    Decomposed into child issues (2026-05-17)

    The partial-matrix status (this comment thread, 2026-05-16) is now broken into individually-closable child issues. Each is sized 1-3 days and has explicit acceptance criteria.

    Child Domain Size
    #1181 Renderer/output stability snapshots (Markdown, HTML, plain CLI) M
    #1182 Consolidated concurrency/race suite (blob GC leases, live watcher, FTS triggers, ingest handoff) L
    #1183 Tiered scale fixtures (small/medium/large + marker plumbing + lab/nightly gate) M
    #1184 Catalog-driven parser contract tests for Claude-AI, Gemini, Codex (mirror ChatGPT pattern) M
    #1185 Blob-store + schema-policy contract suites pinning docs/internals.md invariants M
    #1186 Per-domain closure matrix under docs/plans/ + devtools lint M

    Mapping to the four open bullets from the 2026-05-16 status comment:

    Plus the two uncovered-domain pockets carried over from the closeout-at-25% comment on the predecessor #807:

    Other domains called out in #807's closeout (codex events, browser capture, site/rendering, CLI insights, auth) are captured as gap rows inside #1186's closure-matrix work — they earn dedicated tests only if the matrix flags them as required gates. The matrix is the surviving accountability surface.

    Closing this umbrella after the six children are merged. No new tracking layer; each child is implementable directly.

  6. Sinity commented on May 25, 2026

    @Sinity
    OwnerAuthor

    All six decomposed children are merged and closed:

    The closure matrix under #1186 is the surviving accountability surface — remaining gap rows (codex events, browser capture, site/rendering, CLI insights, auth) are documented there as NOT required-gate or tracked elsewhere.

    Closing this umbrella as complete.

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

    type:testtype:tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions