[SLT.BETA.018] Anchors lifecycle: commands and flow
Overview
Introduce first-class anchor commands for managing refs/_shiplog/anchors/<env> so operators can bookmark significant deployments and generate "since last anchor" reports.
References & Assets
User Story
As a deploy operator, I want to create and move Shiplog anchors so that I can quickly diff or report changes since the last milestone deployment.
Acceptance Criteria
Definition of Done
Anchor commands implemented with tests and docs, and integration points surface anchor metadata for reporting.
Scope
In-Scope
- CLI commands for anchor lifecycle (create, move, show)
- Fast-forward enforcement and audit logging
- Documentation and tests
Out-of-Scope
- UI dashboards consuming anchors
- Automatic anchor scheduling
Deliverables
- Est. Lines of Code: ~220
- Est. Blast Radius:
lib/commands.sh, new anchor scripts, docs
Implementation Details
High-Level Approach
Define anchor ref layout, implement helper functions, wire CLI commands, and integrate optional anchor references into reporting workflows.
Affected Areas
- lib/commands.sh
- scripts/anchors.sh
- docs/features/anchors.md
- tests/anchors.bats
Implementation Steps
Test Plan
Happy Path
Edge Cases
Failure Cases
Monitoring & Success Metrics
QA Sign-off Matrix
| Environment |
Surface |
Owner |
Status |
Notes |
| Local Docker |
CLI |
TBD |
Pending |
Validated via make test |
Requirements
Hard Requirements
- Anchor updates must be fast-forward only
Soft Requirements
- Provide convenience output for "since anchor" queries
Runtime Requirements
- Works in offline/local sandbox environments
Dependencies & Approvals
Production Notes
Priority: 2 / 5
Useful workflow enhancer (P3 roadmap item).
Complexity: 3 / 5
Requires new ref management and CLI features.
Estimate: 18 - 26 hours
Includes CLI work, docs, and tests.
Risk & Rollback
- Primary Risks: Anchor rewrites causing history confusion
- Mitigations: Enforce fast-forward, thorough docs
- Rollback / Kill Switch: Disable anchor commands via feature flag
Additional Notes
Coordinate with reporting tooling to leverage anchors post-release.
[SLT.BETA.018] Anchors lifecycle: commands and flow
Overview
Introduce first-class anchor commands for managing
refs/_shiplog/anchors/<env>so operators can bookmark significant deployments and generate "since last anchor" reports.References & Assets
User Story
As a deploy operator, I want to create and move Shiplog anchors so that I can quickly diff or report changes since the last milestone deployment.
Acceptance Criteria
git shiplog anchor createrecords a named anchor underrefs/_shiplog/anchors/<env>write/runflows can optionally reference anchors for reportingDefinition of Done
Anchor commands implemented with tests and docs, and integration points surface anchor metadata for reporting.
Scope
In-Scope
Out-of-Scope
Deliverables
lib/commands.sh, new anchor scripts, docsImplementation Details
High-Level Approach
Define anchor ref layout, implement helper functions, wire CLI commands, and integrate optional anchor references into reporting workflows.
Affected Areas
Implementation Steps
Test Plan
Happy Path
Edge Cases
Failure Cases
Monitoring & Success Metrics
QA Sign-off Matrix
Requirements
Hard Requirements
Soft Requirements
Runtime Requirements
Dependencies & Approvals
Production Notes
Priority: 2 / 5
Useful workflow enhancer (P3 roadmap item).
Complexity: 3 / 5
Requires new ref management and CLI features.
Estimate: 18 - 26 hours
Includes CLI work, docs, and tests.
Risk & Rollback
Additional Notes
Coordinate with reporting tooling to leverage anchors post-release.