Skip to content

impl: cascade-clear worker for orphaned dependency taints #7

@titaniumshovel

Description

@titaniumshovel

Tracking issue from PR#6 review

Post-merge implementation item surfaced during squad review of KNOWLEDGE-DECAY.md.

Problem

When a parent node is deleted (not just resolved to contested), its dependents retain dependency_taint: true with a taint_origin_id pointing to a deleted/retired node. Without a sweep, those taints are orphaned indefinitely.

Required behavior

The cascade-clear worker must:

  1. Check if taint_origin_id resolves to an existing, non-deleted node before processing
  2. If the origin node has been deleted/retired (tombstone check), auto-clear the taint on all dependents
  3. Log cleared orphan taints for audit trail

Notes

  • Depth-1 taint boundary means this sweep scope is bounded — only direct dependents of deleted nodes, not transitive
  • Can be implemented as a separate sweep pass or folded into the existing cascade-clear worker logic
  • See PR#6 comments and squad review thread for context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions