# NousResearch/hermes-agent · Heredoc handling in approval hardline command guard

## Open now

- 1 issue, 0 PRs open on GitHub.
- #149601: \[Bug\]: Hardline guard treats heredoc body lines as commands

Members concern how the approval system's hardline/command floor treats heredoc bodies, with one issue reporting body lines being treated as commands and two pull requests addressing heredoc-aware parsing. One PR also mentions additional checks (fetch-then-run, pipe sinks, brace command words), whose details are not specified in the titles.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #155467. Verify it addresses your case.
- **Recommended:** read PR #155467 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #149601: \[Bug\]: Hardline guard treats heredoc body lines as commands

## Prior & competing PRs

- **#155467: fix(approval): heredoc-aware command floors; flag same-string fetch-then-run, group/interpreter pipe sinks, brace command words**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_approval_fetch_exec_shapes.py`, `tests/tools/test_heredoc_command_floors.py`, `tests/tools/test_heredoc_floor_union.py`, `tools/approval_detection.py`, `tools/approval_fetch_exec.py`, `tools/approval_pipe_launchers.py`, `tools/approval_quoted_newlines.py`, `tools/approval_wmic.py`, `tools/approval_wrappers.py`, `tools/shell_heredoc.py`
- **#149639: fix(approval): read data-only heredoc bodies as data in the hardline floor**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `e96221fa73`, `a09db3ddb9`, `216bd9b6e6`, `ad4fb4043b`, `350816aa5c`, `#155467`

## Fix status

- Merged to main in PR #155467 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-11-16`.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
