Skip to content

fix(review): correct feedback loop calibration and remediate verified session findings #349

Closed

Description

@dan-petty

Hand-verification of review session 20260920-124350 (55 findings) found that the loop itself was misbehaving as much as the code under review, in ways that are invisible from the output alone.

Verified defects to remediate

  • k8s/informer.py: the active watch.Watch() is never published to self._watcher, so stop() cannot interrupt the blocking stream and the worker thread survives until the next server-side resync.
  • k8s/informer.py: the resource cache grows without bound.
  • k8s/service.py: _set_cached accepts a ttl argument and silently ignores it, so short negative caches (a failed reachability probe asking for ~2s) are pinned for the full cache TTL.
  • commands/k8s/cluster_context.py: except Exception: pass hides genuine client-realignment failures.
  • github/client.py: get_repo_overview lets raw GraphQL transport errors escape and crash the CLI.

Loop defects to correct

  • Suppression catalog poisoning: auto-learning synthesizes each signature from a single keyword, so words such as unvalidated, traversal, insecure, and unbounded became complete suppression patterns matching nearly every genuine security finding. The documented safety invariant is enforced for pattern_keywords but not for signature_patterns.
  • Silent baseline loss: the builtin catalog is validated inside one try around a list comprehension, so a single malformed record discards all entries and the failure is logged only at debug level. Verification then runs on auto-learned entries alone.
  • Symptom fan-out: one root cause is reported as many findings (the informer defect produced five; the TTL defect two).
  • Segment-boundary false positives: controls implemented outside the reviewed slice are reported as absent, and declarations whose consumers live in another module are reported as dangling.
  • Unactionable findings: both CRITICAL findings carried an empty fix.

Acceptance criteria

  • Verified defects remediated with regression tests.
  • Degenerate single-word suppression signatures neutralized without a data migration.
  • Builtin catalog loads completely; malformed records skipped loudly.
  • Duplicate consolidation merges same-defect findings without merging distinct ones.
  • Prompts mandate root-cause consolidation, segment-boundary honesty, and a non-empty fix.
  • Failure modes and calibration metrics documented in docs/SELF_IMPROVEMENT.md.
  • Gated CI validation suite passes.

Activity

  1. added this to the v0.2.22 milestone on Sep 21, 2026
  2. added
    scope/ai
    priority/p1-high
    on Sep 21, 2026
  3. dan-petty commented on Sep 21, 2026

    @dan-petty
    OwnerAuthor

    Closed by #350, merged into release/v0.2.22.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Sep 22, 2026
  5. added
    type/bug
    and removed on Oct 30, 2026
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

    priority/p1-highscope/aitype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions