Syntax
Description
Thefeedback relocate command updates the anchor location of a feedback entry when the original anchor has become stale or inaccurate due to spec changes.
When you relocate feedback:
- A new anchor is created at the specified line
- The original location is preserved in
anchor.original_location - Anchor status is set to
"relocated" - The
updated_attimestamp is updated - Changes are exported to JSONL
- Feedback shows as stale but content still exists in spec
- Line numbers shifted due to spec edits
- You know the correct new location for the feedback
- Anchor needs manual correction
Arguments
FB-004The feedback entry whose anchor needs updating.Options
--line 50Must be a valid positive integer within the spec’s line range.Examples
Relocate Stale Anchor
Fix a stale anchor by moving it to the correct line:Expected output
Expected output
Relocate After Spec Edit
After adding content that shifted line numbers:Check stale anchors
View spec
Relocate
Expected output
Expected output
Relocate Multiple Anchors
Fix several stale anchors:Expected output
Expected output
Invalid Line Number
Attempt to relocate to invalid line:Expected output
Expected output
Non-Existent Feedback
Attempt to relocate feedback that doesn’t exist:Expected output
Expected output
JSON Output
Get machine-readable output:JSON output
JSON output
anchor_statusis now"relocated"original_locationpreserves the original line 38- New
line_numberis 50 updated_attimestamp reflects the relocation
What Happens During Relocation
Fetch spec content
Create new anchor
- New line number
- Updated section heading
- New text snippet
- Context before/after
Preserve original
anchor.original_location:- Original line number
- Original section heading
Set status
"relocated"Update feedback
Update timestamp
updated_at is set to current timeExport to JSONL
feedback.jsonlUnderstanding Relocated Status
After relocation, the feedback anchor has"relocated" status:
valid
- Never moved
- Content unchanged
- No original_location
relocated
- Moved to new line
- Original preserved
- Intentional update
stale
- Content changed
- Location uncertain
- Requires relocation
relocated status indicates:
- The anchor was manually updated (not stale detection)
- The original location is preserved for audit trail
- The feedback is now accurately anchored
Common Workflows
Fix Stale Anchors
Find stale anchors
Review first stale feedback
View spec
Identify new line
Relocate
Verify
After Major Spec Update
Update spec
Check for stale anchors
Batch relocate
Verify all fixed
Calculate New Line After Insertion
If you inserted 10 lines at line 20:Interactive Relocation
Review and relocate interactively:Scripting Examples
Bulk Relocate with Mapping
If you know the line number changes:Calculate Offset Relocation
If all lines shifted by same amount:Generate Relocation Plan
Finding the Correct Line
Method 1: Search by Snippet
Method 2: Search by Section
Method 3: Manual Review
Common Questions
Can I relocate an already relocated anchor?
Can I relocate an already relocated anchor?
original_location always refers to the first anchor location.How do I know what line to relocate to?
How do I know what line to relocate to?
- Show the feedback to see the snippet:
- Search the spec for that content:
- Use the line number from grep output
Can I relocate feedback to a different spec?
Can I relocate feedback to a different spec?
- Dismiss the old feedback
- Create new feedback on the new spec
What happens to original_location after multiple relocations?
What happens to original_location after multiple relocations?
Can I relocate valid anchors?
Can I relocate valid anchors?
Is there a way to undo a relocation?
Is there a way to undo a relocation?
Troubleshooting
Error: Invalid line number
Error: Invalid line number
Error: Feedback not found
Error: Feedback not found
Error: Spec not found
Error: Spec not found
Relocation succeeded but anchor still shows as stale
Relocation succeeded but anchor still shows as stale
Can't calculate correct line number after major spec rewrite
Can't calculate correct line number after major spec rewrite
Related Commands
feedback stale
feedback show
feedback dismiss
spec show
feedback list
Next Steps
Find stale anchors
Show feedback details
View spec
Relocate
Verify

