Skip to content

Add integration coverage for hygiene-broad-nodes CLI/store flow #4

@MichaelSchmidle

Description

@MichaelSchmidle

Why

The v0.5.2 heuristic retune for is in good shape and has focused heuristic tests, but current coverage stops at the core scoring/assessment logic.

We do not yet have an integration-style test that exercises the real CLI/store flow end to end.

Gap

Current tests cover:

  • recent broad weakly anchored nodes can be flagged
  • specific well-anchored nodes are not casually flagged
  • age increases severity but is not the admission gate

Current tests do not yet prove:

  • dry-run output over a real temp DB
  • apply path writes hygiene state as expected
  • clear path removes hygiene state cleanly
  • CLI argument handling stays wired correctly

Goal

Add one or two lightweight integration tests around the real script entry points and temp DB usage so future heuristic refactors cannot silently break the maintenance flow.

Notes

Keep this narrow. This is about CLI/store integration confidence for the hygiene maintenance script, not a redesign of the heuristic or store model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions