Repository navigation
Truthful baseline (S0): a battery that runs the built shell, and what it drove - #233
Conversation
…(gate G0) First slice of the truthful baseline (owner ruling OD-43, stage S0 of the product review). Until now no test started the built `vsh`: every test file calls library functions, which is how `[ ... ]` and wildcard expansion pass their tests and fail in use. - tests/conformance/battery.jsonl: 126 everyday command lines with the standard output and exit status GNU bash 5.2.21 gave for each (five `rm` cases written by hand from POSIX). - tests/conformance_battery.rs: starts the built shell on each case in a fresh directory and compares output and exit status. Writes a report to target/tmp/conformance-report.txt. - tests/conformance/known_failing.txt: the 67 cases that do not match today. The list is a ratchet: an unlisted failure fails the test, and so does a listed case that passes. Both directions were checked by hand. Starting position on main's code: 59 of 126 match. The shell's own receipt lines on standard output are ignored when comparing; the README records that as an open question, not as settled. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
🔍 Hypatia Security ScanFindings: 18 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 2293,
"reason": "expect() in hot path (3 occurrences, CWE-754, line 2293, 2322, 2930)",
"type": "expect_in_hot_path",
"file": "/home/runner/work/valence-shell/valence-shell/impl/rust-cli/src/parser.rs",
"level": "epi",
"rule_module": "code_safety",
"action": "flag",
"severity": "medium",
"evidence": [
{
"span": {
"file": "/home/runner/work/valence-shell/valence-shell/impl/rust-cli/src/parser.rs",
"end_line": 2293,
"start_line": 2293
},
"rule": "code_safety/expect_in_hot_path",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 0 day(s) old",
"type": "CSA001",
"file": "docs/audits/2026-11-16-hypatia-remediation.adoc",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "docs/audits/2026-11-16-hypatia-remediation.adoc",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/code_safety/expect_in_hot_path -- Hypatia code_safety: expect_in_hot_path -- 0 day(s) old",
"type": "CSA001",
"file": "impl/rust-cli/src/parser.rs",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "impl/rust-cli/src/parser.rs",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/research_extensions/RE002 -- Hypatia research_extensions: RE002 -- 0 day(s) old",
"type": "CSA001",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "update",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/STATE.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/STATE.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/STATE.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/META.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/META.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/META.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/ECOSYSTEM.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/ECOSYSTEM.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/ECOSYSTEM.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/AGENTIC.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/AGENTIC.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/AGENTIC.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/NEUROSYM.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/NEUROSYM.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/NEUROSYM.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…per program Second slice of the truthful baseline (OD-43). Seven battery cases leave the known-failing list: 66 of 126 now match (was 59). - `[ ... ]` always failed with "missing ']'": the parser checked for and removed the closing bracket, and the evaluator then required it again. The evaluator is now told the bracket is already gone. - `exit N` left with status 0 and skipped the EXIT trap in scripts. `exit` now takes a status (low eight bits, as POSIX has it), keeps the last command's status when given none, refuses a non-number with status 2, and the EXIT trap runs before the shell leaves. The interactive shell leaves with the same status. - Every external program was checked on every 50 ms, so each one took at least that long: 100 runs of a short program took 5.07 s. The check now starts at 0.2 ms and doubles to a ceiling of 20 ms. The same 100 runs take about 0.3 s. Tests: tests/external_wait_tests.rs runs the built shell (the first of its two tests fails when the 50 ms wait is put back: checked). cargo fmt and clippy with -D warnings are clean. cargo test --no-fail-fast: 832 passed, 0 failed, 15 ignored. `[ -d / ]` and `exit 5` were also checked by hand in an interactive session. Not done here: a failing built-in still ends a `-c` script; `break`, `continue` and `! cmd` are still missing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 32674507c7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… handle Third slice of the truthful baseline (OD-43). The built-in file commands take fewer forms than the system ones. They took an option for a file name and dropped operands they had no room for, and reported success: mkdir -p a/b made a directory named `-p` touch a b c made only `a` chmod 600 a b changed only `a` rm -rf d tried to remove a file named `-rf` obliterate --force a b destroyed `a` and said nothing about `b` undo many undid one operation One helper in the parser now splits options from operands for mkdir, rmdir, touch, rm, cp, mv, chmod, chown, ln, ls, cd and obliterate. An option the built-in does not know, or an operand beyond what it takes, is an error at parse time: the command does nothing, the status is 1, and a script goes on. `--` ends the options, so a name that starts with `-` can still be given. `chmod -x f` still works: the first argument is the mode. `undo` and `redo` refuse a count they cannot read. Tests: tests/builtin_strictness_tests.rs, nine tests that run the built shell and check both the refusal and that the directory tree, contents and modes are unchanged. Seven of them fail against the old parser (checked). Two existing tests in e2e_script_execution.rs asserted that `mkdir -p ...` parses. They held only because `-p` was taken for the directory name. Both now use the forms the built-in handles, and one asserts the refusal. cargo fmt and clippy with -D warnings clean. cargo test --no-fail-fast: 841 passed, 0 failed, 15 ignored. The battery is unchanged at 66 of 126: these forms still differ from coreutils, but now loudly. Not done: the options themselves (-p, -r, -f and so on). Those belong to the engine's command-line tool (stage S1), checked against coreutils. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
…cover Fourth slice of the truthful baseline (OD-43). help - The interactive banner says "Type 'help'", and the default interactive loop answered "help: Command not found". `help [command]` is now a parsed command, so it works at the prompt and with -c. - The list shows every command that exists, with a summary where there is one. It no longer advertises `help -v` or `man vsh-<command>`, which do not exist, and it states the limit of the built-in file commands. Texts that said more than the proof ledger allows - `replay` and `diff` printed "all proven reversible" and "All reversals proven ✓". The theorems are about the model, and the link from the model to this code is tested, not proved. They now name the theorem as being about the model and show no tick. - `proofs` printed "✓ Zig FFI layer checks preconditions". That layer is not connected to the shell. The trust model now says so and lists the model-to-code link as open. - `obliterate` called its three overwrites a "NIST SP 800-88 Purge pattern". An overwrite with ordinary writes is the Clear level at most. The hardware-erase messages keep "Purge", where it is correct. - The manual-page text said an operation "is formally verified for correctness". Tests: tests/help_tests.rs (four tests, built shell). cargo fmt and clippy with -D warnings clean. cargo test --no-fail-fast: 845 passed, 0 failed, 15 ignored. `help` also checked by hand in an interactive session. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
🔍 Hypatia Security ScanFindings: 18 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 2300,
"reason": "expect() in hot path (3 occurrences, CWE-754, line 2300, 2329, 2937)",
"type": "expect_in_hot_path",
"file": "/home/runner/work/valence-shell/valence-shell/impl/rust-cli/src/parser.rs",
"level": "epi",
"rule_module": "code_safety",
"action": "flag",
"severity": "medium",
"evidence": [
{
"span": {
"file": "/home/runner/work/valence-shell/valence-shell/impl/rust-cli/src/parser.rs",
"end_line": 2300,
"start_line": 2300
},
"rule": "code_safety/expect_in_hot_path",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 0 day(s) old",
"type": "CSA001",
"file": "docs/audits/2026-11-16-hypatia-remediation.adoc",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "docs/audits/2026-11-16-hypatia-remediation.adoc",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/code_safety/expect_in_hot_path -- Hypatia code_safety: expect_in_hot_path -- 0 day(s) old",
"type": "CSA001",
"file": "impl/rust-cli/src/parser.rs",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "impl/rust-cli/src/parser.rs",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/research_extensions/RE002 -- Hypatia research_extensions: RE002 -- 0 day(s) old",
"type": "CSA001",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "update",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/STATE.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/STATE.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/STATE.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/META.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/META.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/META.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/ECOSYSTEM.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/ECOSYSTEM.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/ECOSYSTEM.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/AGENTIC.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/AGENTIC.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/AGENTIC.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/NEUROSYM.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/NEUROSYM.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/NEUROSYM.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
Fifth slice of the truthful baseline (OD-43). Documents only. The root CLAUDE.md listed as working a number of features that the built shell does not deliver: glob expansion, `[`, arithmetic and command substitution in arguments, quoting, `export`, job control. They exist in the source and pass unit tests, and fail when the shell is run. - CLAUDE.md "What Actually Works" now has two lists, both from the battery (66 of 126 command lines match bash on 2026-11-17): what works through the built shell, and what is in the source but does not. "Immediate Priorities" no longer lists POSIX items: they are parked by owner ruling OD-42, and the forward order is S0, the engine, then the capture experiment. Two rules are added under "What NOT to Do". - README.adoc "Shell Features": a note says how the list is measured, and eight ticked boxes become partial with the limit stated. - ROADMAP.adoc: the POSIX section is marked parked. The README's existing render error at line 43 (a level-0 section) is on main and is not touched here. Test counts and other stale figures in these files are left for the route plan's Phase F. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 69f7934f47
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…p and the battery Ten findings from the review of 69f7934. Nine are valid and fixed here. The tenth is not: `cd -` works (a lone `-` is an operand, and `test_parse_cd_dash` passes). Built-ins - An operand that only reads as an option once its variable is expanded got past the refusal: `opt=-p; mkdir $opt` made a directory named `-p`. Each built-in's operands are now checked again after expansion, and refused the same way. A word after `--` is still an operand, a `chmod` mode may still start with `-`, and a lone `-` still means the previous directory. Like a refusal found while parsing, it fails that command only and the script goes on. - `exit` with more than one operand printed an error and the script carried on: `vsh -c 'exit 1 2; touch after'` created `after` and ended with status 0. A script now stops there with status 1, as under bash 5.2.21 and dash (both run here). Typed at a prompt it is reported and the shell stays open. - The two interactive loops left the exit status as it was after a command that succeeded, so `false; echo ok; exit` ended the shell with status 1. A command that succeeds now sets 0, and one that fails sets 1. - `help <command>` still ended with "Run man vsh-<command>", and there are no manual pages. The line is gone. - Help was handed to a pager even when the output was captured or piped. With `more` and no `less` the pager was started with options it does not take and the text was lost. Output that is not going to a terminal is now written as it is. The battery - Case rm-05 matched for the wrong reason. It set up its files with `touch a b`, which the built-in refuses, so nothing was created and the `rm` had nothing to remove. It now creates the files one at a time, and fails, as it should: the built-in `rm` takes one operand. It is added to known_failing.txt. That file may otherwise only shrink; this entry is there because the case was wrong, not because the shell got worse. The other cases that match were checked for the same fault; none has it. - One case added, `exit 1 2; echo after`, recorded from bash. It matches. - The test read the shell's output only after the shell had finished, so a case that wrote more than a pipe holds would have been counted as not finishing. Output is now read while the shell runs, and a case that does not finish is stopped together with its process group. - A line without an `id` was dropped without a word. It is now an error. - The test is built on Linux only. Its expectations are from Linux, and it would have failed every macOS job in the test matrix. The battery now holds 127 cases and 66 match (61 listed as failing). Tests: 13 in builtin_strictness_tests.rs (4 new), 5 in help_tests.rs (1 new, 1 widened), 2 unit tests in each interactive loop, 5 new in conformance_battery.rs. Five mutation runs: each fix taken out fails its test. cargo fmt and clippy with -D warnings clean. cargo test --no-fail-fast: 859 passed, 0 failed, 15 ignored. Not changed: a built-in that fails for another reason (`mkdir` on a name that exists) still ends a script. That is one of the listed failures and belongs to the interpreter work that OD-42 parks. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
🔍 Hypatia Security ScanFindings: 18 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 2304,
"reason": "expect() in hot path (3 occurrences, CWE-754, line 2304, 2333, 2941)",
"type": "expect_in_hot_path",
"file": "/home/runner/work/valence-shell/valence-shell/impl/rust-cli/src/parser.rs",
"level": "epi",
"rule_module": "code_safety",
"action": "flag",
"severity": "medium",
"evidence": [
{
"span": {
"file": "/home/runner/work/valence-shell/valence-shell/impl/rust-cli/src/parser.rs",
"end_line": 2304,
"start_line": 2304
},
"rule": "code_safety/expect_in_hot_path",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 0 day(s) old",
"type": "CSA001",
"file": "docs/audits/2026-11-16-hypatia-remediation.adoc",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "docs/audits/2026-11-16-hypatia-remediation.adoc",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/code_safety/expect_in_hot_path -- Hypatia code_safety: expect_in_hot_path -- 0 day(s) old",
"type": "CSA001",
"file": "impl/rust-cli/src/parser.rs",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "impl/rust-cli/src/parser.rs",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Code scanning (Hypatia): hypatia/research_extensions/RE002 -- Hypatia research_extensions: RE002 -- 0 day(s) old",
"type": "CSA001",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "code_scanning_alerts",
"action": "update",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "code_scanning_alerts/CSA001",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/STATE.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/STATE.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/STATE.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/META.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/META.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/META.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/ECOSYSTEM.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/ECOSYSTEM.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/ECOSYSTEM.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/AGENTIC.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/AGENTIC.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/AGENTIC.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"reason": "Descriptile in retired location (layout drift, not a security issue); the current canon keeps descriptiles as clauses of the repo deed, converted by kyX (standards D312, D313)",
"type": "SD004",
"file": ".machine_readable/6a2/NEUROSYM.a2ml",
"level": "epi",
"target": ".machine_readable/descriptiles/NEUROSYM.a2ml",
"advisory": true,
"rule_module": "structural_drift",
"action": "move",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".machine_readable/6a2/NEUROSYM.a2ml",
"end_line": 0,
"start_line": 0
},
"rule": "structural_drift/SD004",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0305e3ab38
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…and help details Four findings from the review of 0305e3a. Three are fixed here. - A refusal made after expansion was an error that only the top-level script loop caught. Inside a function, a loop or an `if` it ended the whole enclosing command: `f() { opt=-p; mkdir $opt; echo after; }; f` never reached `echo after`. A refusal is now an ordinary result with status 1, so whatever ran the command goes on, at any depth. The special case in the script loop is gone. - `exit nope 2` reported "too many arguments" and ended with status 1. Under bash and dash a status that is not a number comes first: status 2 (both run here). The checks are now in that order. - `help "$topic"` looked up the literal text. The topic is now expanded like any other operand. Not changed, and answered on its thread: `name=-p; mkdir -- "$name"` is still refused. The parser does not hand on where `--` stood, so the check after expansion cannot tell that word from an unprotected one. Carrying it through means changing how every built-in holds its operands. The refusal does nothing and says how to name the file, so it is safe; whether to do the larger change is the owner's call. One battery case added, `exit nope 2; echo after`, recorded from bash (dash agrees). The battery holds 128 cases and 67 match. Tests: two new in builtin_strictness_tests.rs, one in help_tests.rs. Against the code as pushed in 0305e3a all three fail. cargo fmt and clippy with -D warnings clean. cargo test --no-fail-fast: 862 passed, 0 failed, 15 ignored, with OLDPWD and PWD set and with both unset. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
The test makes `inner` fail, then checks that the caller's frame is restored. It could also pass if the call failed before `inner`'s body ran. `inner` now makes a marker directory before the command that fails, and the test checks the marker is there. The change comes from CodeRabbit's review of #240, where its autofix commit (7f23cea) made it. That commit was unsigned, so #240 could not merge, and #240 was closed as superseded by this branch. This is the same check, carried over to this branch's version of the test (which checks a status rather than an error) and signed. cargo fmt --check and cargo clippy --all-targets -- -D warnings are clean; the test file passes (25 tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjYffb3HcnwwDyrsF9
🔍 Hypatia Security ScanFindings: 39 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 139,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:139 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 139,
"start_line": 139
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 144,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:144 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 144,
"start_line": 144
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 148,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:148 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 148,
"start_line": 148
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 16,
"reason": "hooks/validate-sha-pins.sh:16 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-sha-pins.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-sha-pins.sh",
"end_line": 16,
"start_line": 16
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 14,
"reason": "hooks/validate-spdx.sh:14 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-spdx.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-spdx.sh",
"end_line": 14,
"start_line": 14
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 74,
"reason": "scripts/security-audit.sh:74 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "scripts/security-audit.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "scripts/security-audit.sh",
"end_line": 74,
"start_line": 74
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 264,
"reason": "tests/integration_test.sh:264 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 264,
"start_line": 264
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 276,
"reason": "tests/integration_test.sh:276 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 276,
"start_line": 276
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 291,
"reason": "tests/integration_test.sh:291 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 291,
"start_line": 291
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8bd98a0d71
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🔍 Hypatia Security ScanFindings: 39 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 139,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:139 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 139,
"start_line": 139
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 144,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:144 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 144,
"start_line": 144
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 148,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:148 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 148,
"start_line": 148
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 16,
"reason": "hooks/validate-sha-pins.sh:16 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-sha-pins.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-sha-pins.sh",
"end_line": 16,
"start_line": 16
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 14,
"reason": "hooks/validate-spdx.sh:14 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-spdx.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-spdx.sh",
"end_line": 14,
"start_line": 14
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 74,
"reason": "scripts/security-audit.sh:74 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "scripts/security-audit.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "scripts/security-audit.sh",
"end_line": 74,
"start_line": 74
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 264,
"reason": "tests/integration_test.sh:264 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 264,
"start_line": 264
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 276,
"reason": "tests/integration_test.sh:276 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 276,
"start_line": 276
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 291,
"reason": "tests/integration_test.sh:291 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 291,
"start_line": 291
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
🔍 Hypatia Security ScanFindings: 39 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 139,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:139 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 139,
"start_line": 139
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 144,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:144 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 144,
"start_line": 144
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 148,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:148 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 148,
"start_line": 148
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 16,
"reason": "hooks/validate-sha-pins.sh:16 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-sha-pins.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-sha-pins.sh",
"end_line": 16,
"start_line": 16
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 14,
"reason": "hooks/validate-spdx.sh:14 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-spdx.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-spdx.sh",
"end_line": 14,
"start_line": 14
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 74,
"reason": "scripts/security-audit.sh:74 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "scripts/security-audit.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "scripts/security-audit.sh",
"end_line": 74,
"start_line": 74
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 264,
"reason": "tests/integration_test.sh:264 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 264,
"start_line": 264
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 276,
"reason": "tests/integration_test.sh:276 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 276,
"start_line": 276
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 291,
"reason": "tests/integration_test.sh:291 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 291,
"start_line": 291
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
… by Mistral Vibe)
🔍 Hypatia Security ScanFindings: 39 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 139,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:139 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 139,
"start_line": 139
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 144,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:144 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 144,
"start_line": 144
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 148,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:148 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 148,
"start_line": 148
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 16,
"reason": "hooks/validate-sha-pins.sh:16 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-sha-pins.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-sha-pins.sh",
"end_line": 16,
"start_line": 16
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 14,
"reason": "hooks/validate-spdx.sh:14 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-spdx.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-spdx.sh",
"end_line": 14,
"start_line": 14
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 74,
"reason": "scripts/security-audit.sh:74 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "scripts/security-audit.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "scripts/security-audit.sh",
"end_line": 74,
"start_line": 74
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 264,
"reason": "tests/integration_test.sh:264 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 264,
"start_line": 264
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 276,
"reason": "tests/integration_test.sh:276 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 276,
"start_line": 276
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 291,
"reason": "tests/integration_test.sh:291 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 291,
"start_line": 291
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
Pull request was closed
🔍 Hypatia Security ScanFindings: 39 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 139,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:139 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 139,
"start_line": 139
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 144,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:144 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 144,
"start_line": 144
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 148,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:148 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 148,
"start_line": 148
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 16,
"reason": "hooks/validate-sha-pins.sh:16 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-sha-pins.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-sha-pins.sh",
"end_line": 16,
"start_line": 16
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 14,
"reason": "hooks/validate-spdx.sh:14 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-spdx.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-spdx.sh",
"end_line": 14,
"start_line": 14
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 74,
"reason": "scripts/security-audit.sh:74 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "scripts/security-audit.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "scripts/security-audit.sh",
"end_line": 74,
"start_line": 74
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 264,
"reason": "tests/integration_test.sh:264 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 264,
"start_line": 264
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 276,
"reason": "tests/integration_test.sh:276 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 276,
"start_line": 276
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 291,
"reason": "tests/integration_test.sh:291 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 291,
"start_line": 291
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
|
🔍 Hypatia Security ScanFindings: 39 issues detected
View findings[
{
"line": null,
"reason": "workflow .github/workflows/hypatia-scan.yml runs harden-runner in `egress-policy: audit` — telemetry-only, never blocks; on a protected-branch trigger this is not containment",
"type": "RE002",
"file": ".github/workflows/hypatia-scan.yml",
"level": "epi",
"rule_module": "research_extensions",
"action": "report",
"severity": "high",
"evidence": [
{
"span": {
"file": ".github/workflows/hypatia-scan.yml",
"end_line": 0,
"start_line": 0
},
"rule": "research_extensions/RE002",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 139,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:139 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 139,
"start_line": 139
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 144,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:144 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 144,
"start_line": 144
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 148,
"reason": ".github/scripts/check-bridge-forbidden-phrases.sh:148 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": ".github/scripts/check-bridge-forbidden-phrases.sh",
"end_line": 148,
"start_line": 148
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 16,
"reason": "hooks/validate-sha-pins.sh:16 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-sha-pins.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-sha-pins.sh",
"end_line": 16,
"start_line": 16
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 14,
"reason": "hooks/validate-spdx.sh:14 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "hooks/validate-spdx.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "hooks/validate-spdx.sh",
"end_line": 14,
"start_line": 14
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 74,
"reason": "scripts/security-audit.sh:74 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "scripts/security-audit.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "scripts/security-audit.sh",
"end_line": 74,
"start_line": 74
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 264,
"reason": "tests/integration_test.sh:264 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 264,
"start_line": 264
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 276,
"reason": "tests/integration_test.sh:276 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 276,
"start_line": 276
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
},
{
"line": 291,
"reason": "tests/integration_test.sh:291 is a pipe into a quiet grep with pipefail in force (set in the script): `grep -q` exits at its first match, a writer still writing is killed by SIGPIPE, the pipeline's status is 141, and a match reads as no match. Fix: capture, then match: `out=$(writer); grep -q PATTERN <<<\"$out\"`",
"type": "RE011",
"file": "tests/integration_test.sh",
"level": "epi",
"advisory": true,
"rule_module": "research_extensions",
"action": "review",
"severity": "medium",
"evidence": [
{
"span": {
"file": "tests/integration_test.sh",
"end_line": 291,
"start_line": 291
},
"rule": "research_extensions/RE011",
"observations": 1,
"rule_version": "0.1.0"
}
],
"support": {
"kind": "pattern"
}
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |



The truthful baseline: stage S0 of the product review, ruled by the owner on 2026-11-17 (OD-43 in the route plan, which is on #230 until that merges). The owner went through the behaviour changes of the first five review rounds on 2026-11-17 and confirmed each of them, and confirmed those of the sixth round on 2026-11-18.
Status, 2026-11-18: standing down by the owner's ruling. Nothing can merge until the Actions allowed-actions list lets the two required checks start. Until the owner says so, review comments on this pull request are not being answered. The order for landing is this pull request first, then #232, then #230, with
mainmerged into each in between.Why
On 126 everyday command lines the built shell gave bash's result on 59. Until this branch no test started the built
vsh; every test file called library functions. That is how[ ... ]and wildcard expansion passed their tests and failed in use. The route plan's gates G1 to G11 never ask whether the shell works as a shell. This pull request adds that gate (G0) and uses it.What is here
3267450).tests/conformance/battery.jsonlholds 126 command lines with the output and exit status GNU bash 5.2.21 gave.tests/conformance_battery.rsruns each in a fresh directory.tests/conformance/known_failing.txtlists the cases that do not match. An unlisted failure fails the test, and so does a listed case that starts to pass.017ba69).[ ... ]always failed.exit Nleft with status 0 and skipped the EXIT trap. Every external program waited at least 50 ms (100 short programs: 5.07 s before, about 0.3 s now).7803534). An unknown option or an extra operand is an error, and the command does nothing.helpworks, and four texts say what the proofs cover (4489143).69f7934): the rootCLAUDE.md,README.adocandROADMAP.adoc.0305e3a,9038e78,38e68b8,57068b4,9714586,8e20abc,1139903), listed below.Result: 67 of 128 cases match. On the first 126 it was 59 before this branch. The other 61 are listed by id with their command line.
Review findings
Thirty-two findings over six rounds. Twenty-nine are valid and fixed. One is not valid (
cd -works, with the evidence on its thread). Two are the same question about--, which is valid and on which the owner has ruled (below). Every thread is answered and resolved.opt=-p; mkdir $optmade a directory named-p. Operands are now checked again after expansion.exit 1 2did not stop a script. It printed an error and carried on. A script now stops with status 1, as under bash and dash.help <command>still pointed to a manual page that does not exist.moreand noless.rm-05: its set-up was refused, so there was nothing to remove). It is corrected, now fails, and is listed. This is the one entry added toknown_failing.txt; the reason is in the commit.idwithout a word, and would have failed every macOS job. Output is now read while the shell runs, a malformed line is an error, and the test is built on Linux only.if(9038e78). It is now an ordinary failed command with status 1 at any depth.exit nope 2ended with status 1. Under bash and dash a status that is not a number comes first: status 2.help "$topic"looked up the literal text, andhelp topic > fileignored the redirection (38e68b8).chmod -- 600 filewas refused (38e68b8): the--was taken for an option.help mkdir 2>errprinted nothing (57068b4), and so didecho hi 2>errandecho hi <in, onmaintoo. The helper for built-ins that print captured standard output whenever any redirection was present, and wrote the text only to a target that takes standard output. It now captures only when standard output is redirected.9714586). The refusal was a parse error, somkdir -p x || echo fallbackprinted nothing, anifwith a refused condition ran neither branch, and a loop with a refusal in its body did not run. A refusal is now a command that prints its message and fails with status 1.mkdir || echo fallback(no operand) was wrong in the same way onmainand is fixed with it.9714586). The number of listed cases is now also written in the test, so a case added to the file fails the test until that number is raised too. A case taken off and another put on in one change is still not caught; that needs a check against the base branch.help rmdirrecommendedrm -r, which is refused (9714586).Sixth round (
8e20abc,1139903):$?was out of date after the left side of||or&&, and after a condition.false || echo "$?"printed the status of an earlier command. The right side of a list, the branch of aniforelifand the body of a loop now see the status of what ran just before.undo many || echo noprinted nothing. A count that cannot be read was an ordinary error. It is now a refusal like the others, so the command fails alone.1139903).obliterate_irreversible: the theorem isobliterate_not_injective, in Coq and Lean.hardware_erase_irreversible: the statement ishardwareEraseIrreversible, in the Idris2 layer only.variable_assignment_reversible: there is no theorem, and the three files its entry named do not exist. The entries are corrected. A unit test now reads the proof files and fails if a name the shell shows is not declared in a file its entry names.CLAUDE.mdandREADME.adocgavechmodandchownone operand. They take a mode or an owner, then one file.CLAUDE.mdsaid every failing built-in ends a-cscript. One that fails with an error does. A refused one andfalsedo not.HOMEof the runner (vars-09). Each child now gets one.Ruled by the owner (OD-47, 2026-11-17).
name=-p; mkdir -- "$name"is still refused. The parser does not hand on where--stood, so the check after expansion cannot tell that word from an unprotected one. The owner's ruling is the general answer: the parser is to hand every command its words with their kind (option, operand, operand after--, quoted or not). That work lands with the interpreter front end, after the first release of the engine, on its own branch and with an experiment first. Until then the refusal stays: it changes nothing on disk and says how to name the file (./-p). The thread is resolved. The sixth round raised the same question again and has the same answer.Behaviour changes (confirmed by the owner, 2026-11-17)
Each was put to the owner by selector and confirmed.
mkdir -p a/b,rm -rf d,cp -r d e,touch a b c,ls -laand the like are now errors with status 1. Before, they did something else and reported success (mkdir -p a/bmade a directory named-p). The same holds when the option comes from a variable (mkdir $opt). The options themselves are not added here.--ends the options.obliteraterefuses a second target and an unknown option. Before,obliterate --force a bdestroyedaand said nothing aboutb.undoandredorefuse a count they cannot read, and a count of 0. Before,undo manyundid one operation.exit: a status that is not a number gives status 2;exit 1 2is an error that stops a script with status 1 (at a prompt the shell stays open); the interactive shell now leaves with its last status.helpand?are now command names of the shell.replayanddiffno longer print "all proven reversible";proofsno longer says the Zig FFI layer checks preconditions;obliterateno longer calls its overwrite a "Purge" pattern. The owner's note with this item: the Zig work is in development in theatomarepository.e2e_script_execution.rsasserted thatmkdir -p ...parses. They passed only because-pwas taken for the directory name.9714586).mkdir -p x || echo fallbacknow runs the second command, and anifor a loop goes on from the failure. For a program that uses the library:parse_command("mkdir -p x")returns aRefusedcommand where it returned an error. Two tests that asserted the error were changed to assert the refused command.57068b4):echo hi 2>errprinted nothing before.Behaviour changes of the sixth round (confirmed by the owner, 2026-11-18)
Each was put to the owner by selector and confirmed. The first two give the behaviour of bash. The next two turn a wrong success, or a line that was lost, into an ordinary failure. The last two are wording and a rule.
$?after a list or a condition.false || echo "$?"prints 1. The same holds after&&, in the branch of aniforelif, and in the body ofwhileanduntil.undoandredowith a count that cannot be read fail their own command only. Before, the error stopped the rest of the line.Undo pathare new.CLAUDE.mdstates it. The owner ruled for it on 2026-11-18 ("Strict: only shrinks"), over a second list for measured gaps and over letting new failing cases be listed.Checks
1139903:cargo fmt --checkandcargo clippy --all-targetsclean.cargo test --no-fail-fast: 880 passed, 0 failed, 15 ignored, withOLDPWDandPWDset and with both unset.mainas offa4d783(d2cc391merges it: a bump of action versions in eight workflow files, nothing underimpl/).ec6aa14corrects the comment at the top ofmain.rs, which called the shell "formally verified" and described a BEAM daemon and a Zig layer as if they were in use.[ -d / ],exit 5(the shell left with status 5),help.1139903: fifteen checks pass and one fails. The failing one is the fuzzing check,pr_fuzzing (address): the fuzz targetfuzz_glob_expansionran out of memory (2,677 MB against a limit of 2,560 MB) inside the directory walk of theglobcrate, and the runner reproduced it. This pull request changes neitherimpl/rust-cli/src/glob.rsnor the fuzz targets: both are the same as onmain. The runner assumed that the change introduced the fault because no fuzzing build ofmainexists to compare with. It is recorded here and not fixed: a pattern that walks a large tree can use up memory, and a bound on glob expansion is work for Phase B. The Rust, Lean, correspondence, governance and secret-scanner workflows still fail before starting, on every branch and onmain(the Actions allowed-actions list), so nothing Rust here has been built by CI. The two required checks cannot start, so this cannot merge until that list is changed. Until then, this gate runs only locally.Not done here
-cscript.break,continue,! cmd, nestedforloops, expansion inside arguments and the quoting fault are still open: they are in the known-failing list.-p,-r,-f). They belong to the engine's command-line tool (stage S1), checked against coreutils.mkdir_rmdir_reversibleis shown at lines 45 to 62 offilesystem_model.vand is declared at line 207. One name is shown for three provers that do not all use it. The new test checks names only. The route plan has the table generated from a manifest (E5, gate G3).impl/zig/(README andsrc/main.zig),ffi/rust/src/,impl/elixir/test/vsh_test.exs,docs/PROOF_OVERVIEW.adoc,docs/SEAM_ANALYSIS_AND_IDRIS2_PLAN.adocandproofs/idris2/README.adoc.Limits
vsh -c).[op:…]receipt lines on standard output are ignored when comparing. Whether they belong there is an open question, recorded in the battery's README.https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq
Generated by Claude Code