Skip to content

Truthful baseline (S0): a battery that runs the built shell, and what it drove - #233

Merged
hyperpolymath merged 20 commits into
mainfrom
claude/vsh-product-gate
Dec 6, 2026
Merged

hyperpolymath merged 20 commits into
mainfrom
claude/vsh-product-gate

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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 main merged 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

  1. A battery that runs the built shell, as a ratchet (3267450). tests/conformance/battery.jsonl holds 126 command lines with the output and exit status GNU bash 5.2.21 gave. tests/conformance_battery.rs runs each in a fresh directory. tests/conformance/known_failing.txt lists the cases that do not match. An unlisted failure fails the test, and so does a listed case that starts to pass.
  2. Three defects fixed (017ba69). [ ... ] always failed. exit N left 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).
  3. Built-in commands refuse what they do not handle (7803534). An unknown option or an extra operand is an error, and the command does nothing.
  4. help works, and four texts say what the proofs cover (4489143).
  5. Feature claims match the battery (69f7934): the root CLAUDE.md, README.adoc and ROADMAP.adoc.
  6. Review findings fixed (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.

  • An expanded variable could slip an option past the refusal. opt=-p; mkdir $opt made a directory named -p. Operands are now checked again after expansion.
  • exit 1 2 did not stop a script. It printed an error and carried on. A script now stops with status 1, as under bash and dash.
  • The interactive shell kept a stale exit status after a command that succeeded.
  • help <command> still pointed to a manual page that does not exist.
  • Help was paged even when captured, and was lost on a system with more and no less.
  • One battery case matched for the wrong reason (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 to known_failing.txt; the reason is in the commit.
  • The battery test read output only after the shell finished (a large output would have counted as not finishing), dropped a line without an id without 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.
  • A refusal made after expansion ended a function, a loop or an if (9038e78). It is now an ordinary failed command with status 1 at any depth.
  • exit nope 2 ended 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, and help topic > file ignored the redirection (38e68b8).
  • chmod -- 600 file was refused (38e68b8): the -- was taken for an option.
  • help mkdir 2>err printed nothing (57068b4), and so did echo hi 2>err and echo hi <in, on main too. 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.
  • A refused built-in stopped the whole list, condition or loop (9714586). The refusal was a parse error, so mkdir -p x || echo fallback printed nothing, an if with 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 on main and is fixed with it.
  • The list of known failures could grow unnoticed (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 rmdir recommended rm -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 an if or elif and the body of a loop now see the status of what ran just before.
  • A function whose last line cannot be read kept the result of the line before. It now fails with status 1.
  • undo many || echo no printed nothing. A count that cannot be read was an ordinary error. It is now a refusal like the others, so the command fails alone.
  • An EXIT trap ran only its first statement: its text was read as one command. Each statement now runs. Found while testing this: a statement of the trap that fails was dropped without a word. It is now reported (1139903).
  • Replay claimed a reversal theorem for every operation, an obliteration and a change to a variable included. It now says what the theorem shown for each step claims and counts the kinds apart. The composition theorem is shown with how many of the steps it covers. The undo path no longer ends at the first state when a step cannot be reversed.
  • Three theorem names the shell showed are declared in no proof file. I found this while checking the replay finding. obliterate_irreversible: the theorem is obliterate_not_injective, in Coq and Lean. hardware_erase_irreversible: the statement is hardwareEraseIrreversible, 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.
  • Help, CLAUDE.md and README.adoc gave chmod and chown one operand. They take a mode or an owner, then one file.
  • CLAUDE.md said every failing built-in ends a -c script. One that fails with an error does. A refused one and false do not.
  • The battery depended on the HOME of the runner (vars-09). Each child now gets one.
  • The battery README told developers to list a new failing case and raise the count. It no longer does: the list of known failures only shrinks.

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.

  • Refusals. mkdir -p a/b, rm -rf d, cp -r d e, touch a b c, ls -la and the like are now errors with status 1. Before, they did something else and reported success (mkdir -p a/b made 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.
  • obliterate refuses a second target and an unknown option. Before, obliterate --force a b destroyed a and said nothing about b.
  • undo and redo refuse a count they cannot read, and a count of 0. Before, undo many undid one operation.
  • exit: a status that is not a number gives status 2; exit 1 2 is 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.
  • help and ? are now command names of the shell.
  • Wording. replay and diff no longer print "all proven reversible"; proofs no longer says the Zig FFI layer checks preconditions; obliterate no longer calls its overwrite a "Purge" pattern. The owner's note with this item: the Zig work is in development in the atoma repository.
  • Two existing tests changed. Both in e2e_script_execution.rs asserted that mkdir -p ... parses. They passed only because -p was taken for the directory name.
  • A refusal is a failed command, not a line that cannot be read (9714586). mkdir -p x || echo fallback now runs the second command, and an if or a loop goes on from the failure. For a program that uses the library: parse_command("mkdir -p x") returns a Refused command where it returned an error. Two tests that asserted the error were changed to assert the refused command.
  • Built-ins with only a standard-error or an input redirection now print (57068b4): echo hi 2>err printed 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 an if or elif, and in the body of while and until.
  • An EXIT trap runs every statement of its text, and reports a statement that fails.
  • A function whose last line cannot be read fails with status 1.
  • undo and redo with a count that cannot be read fail their own command only. Before, the error stopped the rest of the line.
  • Replay wording. The theorem names shown for an obliteration, a hardware erase and a change to a variable, the note beside each step, the closing line, the composition line and the heading Undo path are new.
  • The rule for the list of known failures is stricter in the battery README. A new case that fails is not listed. It waits for the fix, or stays out of the battery with its gap recorded where the fix is planned. This follows the rule as CLAUDE.md states 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

  • Local, on 1139903: cargo fmt --check and cargo clippy --all-targets clean. cargo test --no-fail-fast: 880 passed, 0 failed, 15 ignored, with OLDPWD and PWD set and with both unset.
  • The branch holds main as of fa4d783 (d2cc391 merges it: a bump of action versions in eight workflow files, nothing under impl/). ec6aa14 corrects the comment at the top of main.rs, which called the shell "formally verified" and described a BEAM daemon and a Zig layer as if they were in use.
  • Mutation checks: the ratchet fails in both directions; the wait test fails when the 50 ms wait is put back; seven of the nine refusal tests fail against the old parser; each review fix, taken out or run against the code as pushed before, fails its test. For the sixth round: nineteen single mutations of the new code, and each fails a test.
  • Not compiled here: the Idris2 file that states the hardware-erase theorem. I read it; Idris2 is not installed in this environment. The new test checks only that the name is declared in the file.
  • By hand, in an interactive session: [ -d / ], exit 5 (the shell left with status 5), help.
  • CI on 1139903: fifteen checks pass and one fails. The failing one is the fuzzing check, pr_fuzzing (address): the fuzz target fuzz_glob_expansion ran out of memory (2,677 MB against a limit of 2,560 MB) inside the directory walk of the glob crate, and the runner reproduced it. This pull request changes neither impl/rust-cli/src/glob.rs nor the fuzz targets: both are the same as on main. The runner assumed that the change introduced the fault because no fuzzing build of main exists 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 on main (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

  • A failing built-in still ends a -c script. break, continue, ! cmd, nested for loops, expansion inside arguments and the quoting fault are still open: they are in the known-failing list.
  • The options of the file commands (-p, -r, -f). They belong to the engine's command-line tool (stage S1), checked against coreutils.
  • Test counts and other stale figures in the documents (route plan Phase F).
  • The proof reference table beyond its names. Most line numbers in the entries are out of date: mkdir_rmdir_reversible is shown at lines 45 to 62 of filesystem_model.v and 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).
  • Documents and bindings outside this change that still use the old names: impl/zig/ (README and src/main.zig), ffi/rust/src/, impl/elixir/test/vsh_test.exs, docs/PROOF_OVERVIEW.adoc, docs/SEAM_ANALYSIS_AND_IDRIS2_PLAN.adoc and proofs/idris2/README.adoc.

Limits

  • The battery is small and home-made, and runs only the non-interactive path (vsh -c).
  • The shell's own [op:…] receipt lines on standard output are ignored when comparing. Whether they belong there is an open question, recorded in the battery's README.
  • The battery test is built on Linux only.
  • Not verified: anything on macOS; the stress suite on this branch.

https://claude.ai/code/session_01J4QvDjNR1ZoYKEPxSKE2nq


Generated by Claude Code

…(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
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 18 issues detected

Severity Count
🔴 Critical 0
🟠 High 2
🟡 Medium 16
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

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 17, 2026 13:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T12:26:00.802504Z 8bd98a0 New commits
🔒 Security Review ✅ Completed 2026-12-02T12:21:05.178657Z 8bd98a0 New commits
ℹ️ 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" or "@codex security review".

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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
Repository owner deleted a comment from coderabbitai Bot Nov 17, 2026
Repository owner deleted a comment from github-actions Bot Nov 17, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 17, 2026
Repository owner deleted a comment from github-actions Bot Nov 17, 2026
@hyperpolymath
hyperpolymath enabled auto-merge (squash) November 17, 2026 14:01
…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
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 18 issues detected

Severity Count
🔴 Critical 0
🟠 High 2
🟡 Medium 16
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
@chatgpt-codex-connector

Copy link
Copy Markdown

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.

@hyperpolymath hyperpolymath changed the title Truthful baseline (S0): a conformance battery for the built shell, as a ratchet Truthful baseline (S0): a battery that runs the built shell, and what it drove Nov 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread impl/rust-cli/src/parser.rs Resolved
Comment thread impl/rust-cli/src/parser.rs Resolved
Comment thread impl/rust-cli/src/main.rs Resolved
Comment thread impl/rust-cli/src/executable.rs Resolved
Comment thread impl/rust-cli/src/parser.rs Resolved
Comment thread impl/rust-cli/src/executable.rs Resolved
Repository owner deleted a comment from coderabbitai Bot Nov 17, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 17, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 17, 2026
Repository owner deleted a comment from github-actions Bot Nov 17, 2026
…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
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 86060583-438f-44d8-be1a-ba1e8654cfe6
Commits

Reviewing files that changed from the base of the PR and between 8bd98a0 and 77dd3f4.

Files selected for processing: 30

  • CLAUDE.md
  • README.adoc
  • ROADMAP.adoc
  • impl/rust-cli/Cargo.toml
  • impl/rust-cli/src/commands.rs
  • impl/rust-cli/src/commands/secure_deletion.rs
  • impl/rust-cli/src/enhanced_repl.rs
  • impl/rust-cli/src/executable.rs
  • impl/rust-cli/src/external.rs
  • impl/rust-cli/src/help.rs
  • impl/rust-cli/src/main.rs
  • impl/rust-cli/src/pager.rs
  • impl/rust-cli/src/parser.rs
  • impl/rust-cli/src/proof_refs.rs
  • impl/rust-cli/src/redirection.rs
  • impl/rust-cli/src/repl.rs
  • impl/rust-cli/src/state.rs
  • impl/rust-cli/tests/builtin_strictness_tests.rs
  • impl/rust-cli/tests/command_boundary_tests.rs
  • impl/rust-cli/tests/conformance/README.adoc
  • impl/rust-cli/tests/conformance/battery.jsonl
  • impl/rust-cli/tests/conformance/known_failing.txt
  • impl/rust-cli/tests/conformance_battery.rs
  • impl/rust-cli/tests/e2e_script_execution.rs
  • impl/rust-cli/tests/external_wait_tests.rs
  • impl/rust-cli/tests/function_and_script_tests.rs
  • impl/rust-cli/tests/function_control_flow_tests.rs
  • impl/rust-cli/tests/function_frame_tests.rs
  • impl/rust-cli/tests/help_tests.rs
  • impl/rust-cli/tests/obliterate_rmo_tests.rs

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes

    • Shell commands now report success and failure statuses more consistently, including improved handling of exit in interactive sessions and scripts.
    • Help and command output are handled more reliably when redirected or sent to a non-terminal.
    • Built-in commands refuse unsupported options and incorrect operand counts. set -e now exits on applicable command failures.
    • Undo summaries distinguish model theorems from proven code behaviour and identify operations without reversal theorems.
  • Documentation

    • Shell compatibility is documented against a 128-case Bash comparison: 69 cases match, with known gaps listed.
    • Secure deletion guidance describes the overwrite operation as Clear-level at most, not Purge-level.
    • Help and undo documentation clarify available commands and limitations.

This change updates built-in argument validation, shell status and control-flow handling, help and output behaviour, and replay theorem reporting. It adds a bash conformance battery and revises documentation about measured shell behaviour, project priorities, verification claims and secure deletion.

Changes: Shell command execution

Layer / File(s) Summary
Built-in argument validation
impl/rust-cli/src/parser.rs, impl/rust-cli/src/executable.rs, impl/rust-cli/tests/builtin_strictness_tests.rs, impl/rust-cli/tests/e2e_script_execution.rs, impl/rust-cli/tests/obliterate_rmo_tests.rs
Built-ins validate supported options and operand counts. Expanded option-like operands are refused, and refusals return status 1. Tests check command results and filesystem effects.
Execution status and control flow
impl/rust-cli/src/state.rs, impl/rust-cli/src/repl.rs, impl/rust-cli/src/enhanced_repl.rs, impl/rust-cli/src/main.rs, impl/rust-cli/src/executable.rs, impl/rust-cli/tests/*, impl/rust-cli/Cargo.toml
Shell state tracks interactive mode and errexit. Execution updates command status, applies errexit suppression in selected contexts, restores function frames after errors, and runs EXIT traps after script exit. Tests cover command status, function frames and control-flow results.
Help, redirection and command output
impl/rust-cli/src/executable.rs, impl/rust-cli/src/help.rs, impl/rust-cli/src/pager.rs, impl/rust-cli/src/redirection.rs, impl/rust-cli/tests/help_tests.rs
Help supports topic expansion and redirection. Non-terminal output bypasses paging, and commands without stdout redirection avoid stdout capture.
External-command polling
impl/rust-cli/src/external.rs, impl/rust-cli/tests/external_wait_tests.rs
External-command polling uses an adaptive delay that starts at 200 microseconds and caps at 20 milliseconds. Tests check short-command and delayed-command timing.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Bug fix

Conformance battery and capability baseline

Layer / File(s) Summary
Conformance cases and ratchet
impl/rust-cli/tests/conformance/*, impl/rust-cli/tests/conformance_battery.rs
The battery adds shell cases with expected output and status. The Linux test runs the built shell, checks case results and enforces the known-failure list. The documentation describes comparison rules, limits and how to run the battery.
Measured capability and roadmap statements
CLAUDE.md, README.adoc, ROADMAP.adoc
The documents report 69 matching cases out of 128, describe supported and limited behaviour, and record that interpreter work is parked.

Assurance and secure-deletion descriptions

Layer / File(s) Summary
Model theorems and secure-deletion claims
impl/rust-cli/src/commands.rs, impl/rust-cli/src/proof_refs.rs, impl/rust-cli/src/commands/secure_deletion.rs
Replay output and proof references distinguish model theorems from tested code conformance. Three-pass overwriting is described as Clear at most, not Purge.

Possibly related issues

  • hyperpolymath/valence-shell#241 — The README changes capability and proof-related wording, but the issue’s cited lines are not identified as changed, so its reported overclaims may remain.

Possibly related PRs

Merge Risk: Moderate · previous review 8bd98

Several shell status and set -e behaviors from earlier review comments still look unresolved. Scripts can continue after failures that should stop them, or exit with the wrong status. These should be fixed or explicitly accepted before merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the baseline (S0) and the behaviour it checks, a battery that runs the built shell. The changeset adds that battery, its known-failing ratchet, and the fixes it exposed, so the title m…
Description check Passed The description is detailed and directly describes the changeset: a 126/128-case battery of built-shell tests, the known-failing ratchet, the three defect fixes, built-in refusals, help text, the proo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the baseline (S0) and the behaviour it checks, a battery that runs the built shell. The changeset adds that battery, its known-failing ratchet, and the fixes it exposed, so the title matches the main change. It is somewhat jargon-heavy ('S0') but is specific and relevant.

Full details: Description check

Explanation

The description is detailed and directly describes the changeset: a 126/128-case battery of built-shell tests, the known-failing ratchet, the three defect fixes, built-in refusals, help text, the proof-reference wording changes, review findings, and the CI and merge status. It is clearly related to the changes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

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.

@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 18 issues detected

Severity Count
🔴 Critical 0
🟠 High 2
🟡 Medium 16
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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread impl/rust-cli/src/executable.rs Resolved
Comment thread impl/rust-cli/src/executable.rs Resolved
Comment thread impl/rust-cli/src/executable.rs Resolved
Comment thread impl/rust-cli/src/main.rs Resolved
…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
coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 20, 2026
Repository owner deleted a comment from github-actions Bot Nov 21, 2026
@hyperpolymath
hyperpolymath enabled auto-merge (rebase) November 21, 2026 14:21
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
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 39 issues detected

Severity Count
🔴 Critical 0
🟠 High 4
🟡 Medium 35
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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread impl/rust-cli/src/executable.rs Resolved
Comment thread impl/rust-cli/src/main.rs Resolved
Comment thread impl/rust-cli/src/executable.rs Resolved
Comment thread impl/rust-cli/src/pager.rs Resolved
Comment thread impl/rust-cli/src/repl.rs Resolved
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 39 issues detected

Severity Count
🔴 Critical 0
🟠 High 4
🟡 Medium 35
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

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 39 issues detected

Severity Count
🔴 Critical 0
🟠 High 4
🟡 Medium 35
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

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 39 issues detected

Severity Count
🔴 Critical 0
🟠 High 4
🟡 Medium 35
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

@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 6, 2026 03:00
auto-merge was automatically disabled December 6, 2026 03:02

Pull request was closed

@hyperpolymath
hyperpolymath deleted the claude/vsh-product-gate branch December 6, 2026 03:02
@hyperpolymath
hyperpolymath restored the claude/vsh-product-gate branch December 6, 2026 03:17
@hyperpolymath hyperpolymath reopened this Dec 6, 2026
@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 39 issues detected

Severity Count
🔴 Critical 0
🟠 High 4
🟡 Medium 35
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

@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 6, 2026 07:04
@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 6, 2026 07:04
@sonarqubecloud

sonarqubecloud Bot commented Dec 6, 2026

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit fdd8bb9 into main Dec 6, 2026
35 of 37 checks passed
@hyperpolymath
hyperpolymath deleted the claude/vsh-product-gate branch December 6, 2026 07:06
@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 39 issues detected

Severity Count
🔴 Critical 0
🟠 High 4
🟡 Medium 35
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants