[SLT.BETA.016] Configurable preview suppression
Overview
Provide a flag and environment variable to disable Shiplog's interactive preview output, keeping CI logs concise while preserving previews by default for humans.
References & Assets
User Story
As a CI pipeline owner, I want to suppress Shiplog previews in non-interactive runs so that logs remain clean without losing structured output.
Acceptance Criteria
Definition of Done
Preview suppression flag/env shipped, docs updated, and tests validate suppressed output.
Scope
In-Scope
- Flag/env plumbing in CLI
- Output path adjustments for preview suppression
- Documentation and tests
Out-of-Scope
- Changes to structured output formats
Deliverables
- Est. Lines of Code: ~90
- Est. Blast Radius:
lib/commands.sh, docs
Implementation Details
High-Level Approach
Detect flag/env before rendering preview, gate Bosun output accordingly, and ensure JSON output remains unchanged.
Affected Areas
- lib/commands.sh
- docs/features/run.md
- tests/run_preview.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 |
Covered via make test |
Requirements
Hard Requirements
- Structured output unaffected when preview suppressed
Soft Requirements
- Provide CLI feedback that preview is disabled
Runtime Requirements
- Works in non-interactive shells and CI containers
Dependencies & Approvals
Production Notes
Priority: 2 / 5
Quality-of-life improvement (P3).
Complexity: 2 / 5
Limited CLI change.
Estimate: 4 - 6 hours
Includes plumbing, docs, tests.
Risk & Rollback
- Primary Risks: Users unaware preview hidden inadvertently
- Mitigations: CLI warning or summary note when disabled
- Rollback / Kill Switch: Revert flag handling
Additional Notes
Feedback sourced from CI users requesting quieter logs.
[SLT.BETA.016] Configurable preview suppression
Overview
Provide a flag and environment variable to disable Shiplog's interactive preview output, keeping CI logs concise while preserving previews by default for humans.
References & Assets
User Story
As a CI pipeline owner, I want to suppress Shiplog previews in non-interactive runs so that logs remain clean without losing structured output.
Acceptance Criteria
--no-previewflag andSHIPLOG_NO_PREVIEWenv toggleDefinition of Done
Preview suppression flag/env shipped, docs updated, and tests validate suppressed output.
Scope
In-Scope
Out-of-Scope
Deliverables
lib/commands.sh, docsImplementation Details
High-Level Approach
Detect flag/env before rendering preview, gate Bosun output accordingly, and ensure JSON output remains unchanged.
Affected Areas
Implementation Steps
Test Plan
Happy Path
--no-previewhides preview but outputs structured dataEdge Cases
SHIPLOG_NO_PREVIEW=1overrides flag defaultsFailure Cases
Monitoring & Success Metrics
QA Sign-off Matrix
Requirements
Hard Requirements
Soft Requirements
Runtime Requirements
Dependencies & Approvals
Production Notes
Priority: 2 / 5
Quality-of-life improvement (P3).
Complexity: 2 / 5
Limited CLI change.
Estimate: 4 - 6 hours
Includes plumbing, docs, tests.
Risk & Rollback
Additional Notes
Feedback sourced from CI users requesting quieter logs.