Skip to content

feat(roadmap): Allow read pipes to a table of allowed programs - #3838

Merged
dan-petty merged 3 commits into
mainfrom
feat/3520-read-pipe-table
Nov 6, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3520-read-pipe-table

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The shell of the implement agent refused every command with a pipe, so a read pipe such as git show X | head cost two calls. The shell now admits a pipe when each stage after the first is head, tail, grep or wc and writes no file. It reads a pipe in quotes, such as a grep alternation, as part of a word. It drops the exact prefix cd <checkout> &&. The pipe stays a denied operator, and any other program after it is refused with the table. The refusal log names a known program and writes an unknown first word as other: and a 12-character keyed digest, never the word.

Closes #3520

Change: openspec/changes/archive/2026-11-06-3520-read-pipe-table/

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence for this pull request.

  • New tests: tests/roadmap/test_roadmap_implement_read_pipe.py (58 cases) fails on the base, because it imports pipe_refusal and without_checkout_prefix, which do not exist there. It passes on this branch.
  • Narrow runs on this branch: the read pipe, shell policy, shell refusal, tool log and step test files pass (408 cases).
  • A run of the real shell tool of the harness in a scratch git repository: cd <checkout> && git log --oneline | head -n 1, cat a.txt | tail -n 1, cat a.txt | wc -l and grep -n 'one\|two' a.txt ran and returned output. cat a.txt | sh and cat a.txt | head > x.txt came back as refusals, and no file was written.
  • Full uv run devops ci (under the shared lock) before the last fix: 19,968 passed, 5 failed, 1 error. Three failures were mine and are fixed in this branch: two verification-reason tests (the list of allowed programs now holds wc), and the window test of test_roadmap_implement_step_rules.py (it now sizes its window from the measured inputs and no longer from a fixed 3000 tokens). The other failures are the known host failures tests/commands/test_devcontainer_install_tools_dry_run.py and tests/ai/test_tool_executor_contract.py (fix(ci): host state fails four tests and one case #3585). The test row took 10m 38s, over 5 minutes (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593). The full run was not repeated after the fixes: the changed test files were re-run and pass.
  • uv run devops openspec check, ruff check, ruff format and mypy src/devops_cli/roadmap pass.

Decisions for a person:

  • The digest of an unknown first word is an HMAC-SHA256 with a random key of the process. The issue says SHA-256. The log goes to GitHub comments, and a first word can be a weak password. A plain 12-character hash falls to a dictionary. The keyed digest groups the words of one run but differs between runs. If you need the same digest in every run, a person must allow the plain hash.
  • The table has head, tail, grep and wc. tail is added to the three of the issue, because the log of test(review): use PATH stand-ins for scanner tests #2116 shows head ... | tail.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 19:40
@dan-petty
dan-petty merged commit 89daf41 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3520-read-pipe-table branch November 6, 2026 19:41
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.73.0](v0.72.1...v0.73.0)
(2026-11-06)


### Features

* **pr:** check-readiness blocks a body that breaks the form
([#3849](#3849))
([6c973a5](6c973a5)),
closes [#3259](#3259)
* **roadmap:** Allow read pipes to a table of allowed programs
([#3838](#3838))
([89daf41](89daf41)),
closes [#3520](#3520)
* **roadmap:** size the runner Job resources from the plan
([#3848](#3848))
([32328b1](32328b1))


### Bug Fixes

* **ai:** fix MCP ai_benchmark models description
([#3840](#3840))
([26a0ef4](26a0ef4))
* **review:** catch findings.json validation errors
([#3841](#3841))
([bc5f241](bc5f241))
* **security:** Refuse Go, Yarn and uv env keys
([#3845](#3845))
([235a807](235a807))


### Performance Improvements

* **k8s:** use tag_digest HEAD for image pins
([#3843](#3843))
([a61d671](a61d671))


### Code Refactoring

* **roadmap:** the in-memory store leaves src
([#3839](#3839))
([558c5e0](558c5e0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): Allow read pipes to a table of allowed programs

1 participant