Skip to main content

Syntax

Description

The feedback stale command finds feedback entries whose anchors have become stale due to spec content changes. Stale anchors occur when:
  • The spec content at the anchor location changed significantly
  • Line numbers shifted due to edits elsewhere in the file
  • The anchored section was removed or heavily modified
  • The text snippet no longer matches the content
When an anchor becomes stale:
  • Its anchor_status is set to "stale"
  • The original location is preserved for reference
  • The feedback may no longer point to the correct location
  • Manual relocation is recommended
Use this command to:
  • Identify feedback that needs attention after spec updates
  • Find anchors that may be pointing to wrong locations
  • Maintain feedback accuracy as specs evolve
  • Perform periodic anchor health checks
Automatic anchor relocation is planned but not yet fully implemented. This command helps identify anchors that need manual relocation.

Examples

Find Stale Anchors

Check for stale feedback:

No Stale Anchors

When all anchors are valid:

JSON Output

Get machine-readable output:

Understanding Stale Anchors

What Makes an Anchor Stale?

An anchor becomes stale when:
1

Content changes

The text at the anchor location was modified or deleted
2

Line shifts

Insertions or deletions elsewhere caused line numbers to change
3

Section removal

The section containing the anchor was removed or renamed
4

Structural changes

Major reorganization of the spec affected anchor accuracy

Anchor Status Lifecycle

valid

AccurateAnchor points to correct location, content matches, no action needed.Color: Green

relocated

MovedAnchor was manually updated to new location, original preserved.Color: Yellow

stale

OutdatedAnchor may be inaccurate, manual relocation needed.Color: Red

Why Anchors Become Stale

Scenario: Major rewrite of authentication sectionResult: Feedback anchored to line 42 now points to different contentSolution: Review the feedback context and relocate to correct line
Scenario: Feature was descoped, section removed from specResult: Anchor points to non-existent contentSolution: Dismiss feedback if no longer relevant, or relocate to related section
Scenario: New section added before anchored locationResult: Line numbers shifted down, anchor now points to wrong lineSolution: Calculate new line number and relocate
Scenario: Spec restructuring moved content to different locationResult: Anchor location is stale, content exists elsewhereSolution: Find new location and relocate anchor

Common Workflows

Periodic Anchor Maintenance

1

Check for stale anchors

2

Review each stale feedback

3

View current spec

Look for where the content actually is now
4

Relocate or dismiss

After Major Spec Update

1

Update spec

Make significant changes to specification
2

Check for stale anchors

3

Batch relocate

For each stale anchor, either relocate or dismiss
4

Verify

Should show no stale anchors

Investigate Stale Feedback

1

List stale feedback

2

Show full details

Note the original location
3

Check spec at original line

Look at line 38 (original location) to see what changed
4

Find correct location

Search spec for the snippet or related content
5

Relocate

Scripting Examples

Count Stale Anchors by Spec

List Specs with Stale Anchors

Batch Review

Generate Stale Anchor Report

Preventing Stale Anchors

1

Use text anchoring

Anchor to section headings when possible:
Headings are more stable than line numbers
2

Anchor to stable content

Choose anchor points unlikely to change, like major section titles
3

Check anchors after edits

Run feedback stale after significant spec changes
4

Keep feedback current

Dismiss outdated feedback promptly

Comparison with Other Commands

feedback stale

Find stale anchors
  • Shows only stale anchors
  • No filtering options
  • Focused on anchor health
  • Suggests relocation

feedback list

List all feedback
  • Shows all feedback (all statuses)
  • Multiple filter options
  • General feedback overview
  • Shows status in brackets
Use feedback stale when:
  • Performing anchor maintenance
  • After major spec updates
  • Doing periodic health checks
Use feedback list when:
  • Browsing all feedback
  • Filtering by spec/issue/type
  • General feedback review

Common Questions

Line numbers may have shifted due to edits elsewhere in the file. Even small changes above the anchor can cause line number mismatches.Review the anchor and relocate if needed:
Automatic relocation is planned but not yet fully implemented. Currently, use:
Relocate if:
  • Content still exists in spec
  • Feedback is still relevant
  • You know the new location
Dismiss if:
  • Content was removed from spec
  • Feedback is no longer relevant
  • Feature was descoped
Check after:
  • Major spec updates
  • Spec restructuring
  • Content removal
  • Weekly/monthly maintenance (depends on update frequency)
No, dismissed feedback is filtered out by default. Stale anchors only show active feedback.
Not entirely, but you can minimize it by:
  • Using text anchoring for stable sections
  • Anchoring to headings
  • Keeping specs stable
  • Reviewing anchors after edits

Troubleshooting

Cause: Either no stale anchors or command failedSolution: Check if there’s any feedback:
If feedback exists but no stale anchors, you’ll see:
Cause: Line number changed but content is sameSolution: Relocate to update the anchor:
This updates the anchor status to “relocated”
Cause: Major spec reorganizationSolution: Use batch relocation script:
Cause: Feedback may not have original_location dataSolution: Check full details:

feedback relocate

Manually relocate stale anchor

feedback list

List all feedback

feedback show

View feedback details

feedback dismiss

Dismiss feedback

spec show

View spec content

Next Steps

1

Check for stale anchors

2

Review each one

3

Find correct location

4

Relocate or dismiss

Feedback System Concept Guide

Learn more about the feedback system and anchor management