Skip to content

fix(manifest): allow missing safe diagnostic flags#95

Merged
jonchun merged 3 commits intomainfrom
fix/allow-diagnostic-flags
Feb 28, 2026
Merged

fix(manifest): allow missing safe diagnostic flags#95
jonchun merged 3 commits intomainfrom
fix/allow-diagnostic-flags

Conversation

@jonchun
Copy link
Copy Markdown
Collaborator

@jonchun jonchun commented Feb 28, 2026

Summary

  • Adds safe, read-only flags to manifests that were being rejected in production sessions
  • 6 unique rejected commands were found in session logs; all are now fixed
  • Additionally adds commonly-used safe flags to journalctl, ps, and top manifests to prevent future rejections

Flags added

journalctl: -t/--identifier, -k/--dmesg, -b, -o/--output, -r/--reverse, -x/--catalog, -p/--priority, --no-pager

systemctl list-units: --failed

ps: --sort, -p, -u, -C, --no-headers

top: -o, -p, -u, -w

Rejected commands that prompted this fix

Command Rejected Flag
systemctl list-units --failed --failed
journalctl -p err --since "1 hour ago" --no-pager -p, --no-pager
journalctl -t ... -t
ps -eo pid,%cpu --sort=-%cpu --sort
top -b -n 1 -o %CPU -o

Test plan

  • Verify build passes (go build ./...)
  • Test that previously rejected commands now pass validation
  • Verify denied flags (e.g. -f/--follow for journalctl) still reject

🤖 Generated with Claude Code

jonchun and others added 3 commits February 28, 2026 11:31
Add missing read-only flags that were causing command rejections:
- systemctl list-units: allow --failed (filters to failed units)
- journalctl: allow -p/--priority (filter by syslog priority) and
  --no-pager (essential for non-interactive use)

These flags were identified from production logs where legitimate
diagnostic commands were being rejected.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add commonly-used read-only flags that were rejected in production:
- journalctl: -t/--identifier, -k/--dmesg, -b, -o/--output, -r/--reverse, -x/--catalog
- ps: --sort, -p, -u, -C, --no-headers
- top: -o, -p, -u, -w

All flags are read-only/diagnostic and safe to allow.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jonchun jonchun merged commit 5b09938 into main Feb 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant