Skip to content

Choose a tag to compare

@github-actions github-actions released this 24 Nov 12:43
· 34 commits to main since this release
Immutable release. Only release title and notes can be modified.
a370515

Added

Changed

  • TI03 reads Python import aliases (import pytest as pt) from the Python index (CORE-356); the hand-written column-0
    import reader is gone. Aliased skips in added Python test files, renamed-in files and new tests are resolved the same
    way. A file with more than 1000 pytest or unittest aliases, or an alias name over 500 characters, is refused by the
    index as too-large (an error in mode block) instead of being cut. A .py test file whose merge-base text the
    index refuses, or the sources dropped as missing,
    while its head indexes now gets TI03 findings for the skips of its head (compared against a base with no skip, at the
    normal TI03 levels; the index-unavailable warning stays). A side the index did not read resolves no aliased spelling,
    only the literal ones.

  • The TI01 and TI02 test pairing is one bounded loop (CORE-145): the prefix index, the moved-test-file matcher and the
    first-unused-entry list are replaced by one walk over the new-at-head tests, and each rule compares a removed test
    with at most 256 not-yet-paired new tests, in head order. Below 256 new tests the pairs are the same as before. A test
    whose match lies past the bound is reported, where the old index (which counted 256 posting entries) could sometimes
    still find it: a TI02 at the mode's level, and a deleted test file holding such a test stays at the mode's level for
    TI01. The accept label clears such a block when the test was in fact renamed or moved. See docs/LIMITS.md.

  • A test file that pharn-ci could not read now fails test-integrity: block instead of warning (CORE-351). In mode
    warn nothing changes. Each case is a per-file TEST_INTEGRITY_INDEX_UNAVAILABLE error that the accept label lowers
    to a warning; the whole-run error for a modified .py test file with no Python interpreter (python-not-found)
    stays and the label never lowers it. The cases:

    • a runner whose python3 is older than 3.8, or a Python index run that crashed, timed out, wrote too much output
      or wrote output it could not read (python-too-old, python-failed, timeout, output-too-large,
      bad-output), when the change modifies or adds a .py test file;
    • a .py test file whose head python3 cannot parse (syntax-error, Python 2 syntax included, or too-deep,
      too-large, parser-threw), whatever the merge base held;
    • added .py test files, for every reason above and for python-not-found;
    • a modified test file of any language that the sources reader dropped as over-file-cap or over-total-cap on
      either side (this closes the 16 MiB padding evasion), or as too-large, binary or unsafe-path on one side
      while the other side was read; too-large or binary on both sides and missing stay warnings.

    A file renamed from a non-test path into a test path is now read at HEAD only and counts as an added test file.
    The log line for an unavailable Python index names the reason and says the run fails in mode block. No message
    code, field or reason changes. See docs/LIMITS.md.

  • A file: policy a pull request edits can no longer loosen any setting the file may carry (CORE-348): the Action and
    the CLI read the file at the base commit (the base branch's copy) before applying it and unite the two copies key by
    key, so the stricter value applies for the threshold, the mode, setup.require, setup.expect, setup.consistency,
    the signal and rule severities, the agent-settings and file lists, the MCP allowlist, flaky.quarantine,
    agents.protected_paths_mode and the other agents and dependencies keys. Until now only the agent lists, the P14
    caps and the injection settings were united. A value the pull request has looser than the base is named in
    POLICY_OVERRIDE_IGNORED, with both numbers for a threshold; the keys a file may not set stay as they were. The base
    copy's injection phrases are now scanned first, so a pull request can no longer push them out of the 100-phrase scan
    by adding phrases that sort earlier. The union needs the base copy: when it is absent (the pull request adds the
    file), unreadable or not a valid policy, or there is no local diff to name the base (the Action in PR-number mode, a
    compare-API diff), only the pull request's copy applies, as before. See docs/policy.md.

  • A file: policy a pull request edits can no longer drop the injection phrases its copy at the base commit names by
    removing the whole injection key (CORE-14 follow-up): the base's phrases were united with the head's only when the
    head copy still had the key, in the Action and the CLI. The base's raised injection.signals severities now apply
    the same way, whether or not the head has the key, and a head value below one is listed as not applied. A base that
    cannot be read or has no policy file changes nothing, as before.

  • P07 and the stale-instruction check (SI01 to SI03) read instruction files with one set of line helpers (CORE-142),
    so the two no longer differ on the same line. The stale check now reads PowerShell, pwsh, ps1, cmd and bat
    fences and a PowerShell PS …> prompt in a console block, as P07 did, and no longer takes "no" out of "Noël" as a
    negation (a word may hold any letter, not only ASCII). P07 now reads a span after a word such as docs/not.md,
    which it read as the negation "not"; a word may hold a dot after its first letter, as in the stale check.

  • P07 and the stale-instruction check (SI01 to SI03) read code fences with one reader, as CommonMark reads them
    (CORE-14). A fence line with text after it (```text inside a block) is a line of the block, not its end: P07
    ended the block there, so the closing fence opened an unmarked (shell) block and the prose after it could declare a
    tool. A fence inside a list item, indented 4 spaces or more under 1. Install: or written on the marker's line
    (- ```bash), is read by both: the stale check skipped the first, and both scans took the second's closing fence
    for a new unmarked block. A fence line in an indented code block outside a list opens nothing, where P07 opened a
    block. A fence's language is its first word cut at {, or the word in a leading {…}: js{1,3}, {bash} and
    {.sh} are their language for both, where P07 read them as examples, and {.text}, {r} and {=html} are
    examples, where the stale check read them as shell.

  • TI09 reads the pytest tables of pyproject.toml with the TOML reader of dependency safety (CORE-142), so a table
    reads the same in every TOML spelling, as CORE-114 made it for dependencies. A [tool.pytest.ini_options] table
    moved to dotted keys ([tool] then pytest.ini_options.testpaths = …) or an inline table, or written with a quoted
    header part, was not seen at all, so narrowing testpaths that way passed; it is now read and judged. A file that is
    not valid TOML anywhere is refused as invalid-toml, as pytest refuses it, where before only the pytest tables had
    to parse, and a multi-line string value is compared whole, where only its first line was.

  • One extension-to-language mapper for the test-integrity signals (CORE-142). Every extension maps as before; a file
    whose whole name is an extension (tests/.ts, .py) is now JS/TS or Python for the test pairing and the source-file
    signals too, as the one-line test readers (TI03, TI04) already read it.

  • Each message code has one advice text (CORE-140). The Hint: line in the PR comment and the job summary is now the
    same sentence as the report's fix.hint for that code or finding, so the two can no longer disagree; for the
    test-integrity codes whose findings the accept label can lower, a clause at its end names the label, as before.
    The hint texts of the comment change. fix.hint keeps its text except for TI03, TI09, TI10, TI13, TI17,
    TEST_INTEGRITY_ACCEPTED, D05 and DEPENDENCY_CHECK_INCOMPLETE, whose one text carries what the comment's hint said
    (say in the PR why, a raised retry is a warning only, remove the accept label to judge a later push again,
    dependency-allowed-hosts for a registry your team runs, the 32 MiB cap). Every message code is unchanged. The
    test-integrity signal ids are written once, in one registry in the core, and the policy's signal ids, the message
    codes, their fix hints and messages derive from it. The message code description in schema/report.v2.json is now
    one sentence that links to the code table in docs/output.md; no field, type or pattern changes.

  • PR comment hints carry the setting or key to change again (CORE-14 follow-up). The fix hints of 51 message codes
    (and of the findings of their 16 signal ids) now name what the comment's own hints named before CORE-140: the input,
    config key or flag (coverage.file, coverage-root, --base, junit-paths, setup.expect, test-integrity),
    the workflow setting (fetch-depth: 0, permissions: id-token: write, if: always()), the cap (512 KiB, 200 test
    files, 250 commits, the JUnit caps) or the concrete cause (Python 3.8 or newer, a binary attribute, a truncated
    coverage file). The Hint: line and fix.hint change together; every code and kind is unchanged.

  • The local git diff of the CLI and the Action names the base and HEAD commit ids the run resolved once (CORE-14
    follow-up), not the base ref, so a ref that moves during the run can no longer make the diff and the check for a
    base that is HEAD or after it judge different commits. A base that does not resolve is diffed by name as before,
    and git's own error is still the one reported. The CLI now also reads a --policy-file at the base commit, as the
    Action does, so a branch that removes an injection.phrases entry from the file is still checked for that phrase.

  • The CLI and the Action gather what the checks read with one shared function (CORE-136), so they no longer differ on
    the same repository. The Action now scans the agent config files for secrets (A7), and reads the agent instruction
    (P07) and settings files (P02 to P06), at HEAD also when there is no diff to measure because the checkout is still
    the head under review: a base-ref that resolves to HEAD or after it, or a run with no base (a push without
    base-ref). Before, it reported AGENT_CONFIG_SECRET_UNSCANNED there; the CLI already scanned. PR-number mode, a
    compare-API diff and a pull_request_target checkout of the base still read nothing and say so. The CLI now logs a
    missing Python interpreter (or another unavailable Python test index) on stderr, as the Action logs it; it was
    silent. Under --policy-file the CLI also reads the files rule P13 compares, which it does not run without a pull
    request, and --dependencies lookup always says on stderr that the CLI makes no registry lookups.

  • TI15 and SI04 are no longer emitted (CORE-144, decision Q6). TI15 (a source condition that compares with a value
    the tests add) was info, 0 of 30 sampled findings were right (docs/PRECISION.md), and it missed its own Skylos
    case; SI04 (an old instruction file that names a file the change edits) was info and silent on the default
    shallow checkout, and it cost a git log call per instruction file, which is gone: the stale-instruction reader no
    longer runs git log. TEST_INTEGRITY_TI15 and SETUP_STALE_SI04 stay in schema/report.v2.json, so an older
    report that holds them still validates, and a policy's test_integrity.signals.TI15 still validates and changes
    nothing. The Skylos nine stay at 8 of 9.

  • Policy findings and messages are simpler (CORE-123). P09 no longer reports an edited agent settings or MCP file that
    complies (info) or that supplies a required deny rule or hook (warn); its block and warn entries for a file that
    fails P02 to P06 or could not be checked are unchanged. POLICY_OVERRIDE_IGNORED names each setting and no longer
    the layer it came from ((input), (config), (policy-file)); P09's verdicts on an edit of the config or a
    workflow are unchanged. An exception inside the upload no longer fails the step under debug logging (RUNNER_DEBUG=1): it is logged by its
    error class and the upload ends failed, as in every other run. The policy response's etag, updatedAt and
    settings.redactMessages are optional and not read.

  • pharn-ci test trusts only a JUnit file this run wrote (CORE-121). After a failed command it exited 0 when every
    failed test in the matched JUnit files was quarantined, also when a file was left by an earlier run, a cache or a
    commit, so a command that crashed before any test ran could exit 0. Now it records each matched file's
    modification time and sha256 before the command starts; after a non-zero exit, a file with both unchanged is stale,
    the command's own code is kept, and one stderr line names the stale files. A file rewritten with the same bytes (a
    new time) or with new bytes (the old time) is fresh. A command that exits 0 still exits 0.

  • The Action no longer adopts a marker comment written by a bot that wrote the pull request (CORE-120). With a token
    whose login is unknown (the default GITHUB_TOKEN, an App installation token), any bot's comment with pharn-ci's
    marker and scope line counted as pharn-ci's own, so a coding agent that opened the pull request could post one and
    edit the report pharn-ci wrote into it. Now a bot that is the pull request's author, or the author or committer of
    one of its commits, is never adopted, and when the author or the commits cannot all be read only
    github-actions[bot] is; pharn-ci posts its own comment instead and never edits or deletes the other one.
    github-actions[bot] is still adopted, also on a pull request a workflow opened. A known login is unchanged.

  • Docs: the policy docs say what each key does today (CORE-125). The policy.required description says it makes
    unreadable agent settings files an error in an app policy, and that only the policy: required input makes a policy
    fetch failure block; agents.require_human_approval and P12 are validated and not applied; docs/policy.md explains
    how a file: policy is changed (every edit is a P09 block); docs/LIMITS.md says the dependencies keys are
    applied; P13 and P14, like P11, use the agent-PR flag.

  • A failed OIDC token request is reported (CORE-122). When the job granted id-token: write and the token request
    threw, timed out or returned no token, policy: auto skipped the org policy with no message, so the team believed
    its policy applied. That is now a POLICY_UNAVAILABLE warning with the reason no-oidc-token (an error under
    policy: required, as before); a job that does not grant id-token: write stays silent. The message names no token,
    URL or error text, and the one job-log line names the error class only. The upload still skips such a run with one
    info line and no message. No new message code and no schema change.

  • An uploaded run keeps the Action's own pull request comment unless the Pharn GitHub App says it commented
    (CORE-119). After every successful upload the Action posted nothing and turned its earlier comment into a pointer,
    so when the App's comment failed the pull request had no comment at all. The Action now reads commentUrl from the
    answer to POST /api/v1/runs and skips its comment only when it is an https URL of at most 2,048 characters;
    null, a missing field (an older app) or any other value means it posts or updates its comment as a run without an
    upload does. The value is never logged or written to the report, the comment or an output; comment: false still
    posts nothing.

  • The PR comment no longer turns issue references in message text into links, and its logo is pinned to a commit
    (CORE-124). GitHub linked #1, org/repo#1, GH-1 and org/repo/issues/1 (also /pull/, /discussions/) in
    message text after the backslash escapes, and a link to another repository's issue adds a "mentioned this" entry
    there; each now gets a zero-width space before the number, as @ gets one after it. Text in code spans is
    unchanged. The logo URL named main, so a change to the file changed the image in every comment ever posted; it
    now names a 40-character commit SHA.

  • A policy the app serves with keys this version does not know is no longer dropped whole (CORE-118): a newer signal
    id, rule, response key or setup.expect tool is skipped, the rest of the policy (threshold, mode, protected paths)
    applies, and one new POLICY_KEYS_UNKNOWN warning names up to 20 skipped keys. A known key with a bad value still
    makes the policy unavailable, a file: policy with an unknown key still fails the step, and updatedAt may carry a
    numeric offset such as +00:00.

  • Docs: docs/LIMITS.md lists, in one place, the files and spellings dependency safety (D04 and D05) still does not
    read (CORE-117). The spellings closed by the lockfile and manifest readers stay described as read.

  • Dependency safety judges a uv.lock package's sdist and wheel URLs (CORE-9 R4.8). D05 judged a uv package by its
    source alone, so a package that kept source = { registry = "https://pypi.org/simple" } and pointed
    wheels[].url or sdist.url at another host passed, and uv sync --frozen downloads from those URLs. Now the
    url of sdist and of every wheels item, in any TOML spelling, must be https on the package's registry host, a
    file host of that registry (PyPI: files.pythonhosted.org) or an allowed host; anything else is D05 for the
    package, with the detail naming the sdist or wheel URL. A pull request that changes only an artifact URL is judged
    too. An sdist that is not a table, a wheels that is not an array of tables, or a url that is not a string makes
    the file unread (DEPENDENCY_CHECK_INCOMPLETE, an error). No new message code and no schema change.

  • Dependency safety reads a poetry.lock or uv.lock package's source in every TOML spelling (CORE-114). The poetry
    reader took the source only from a [package.source] sub-table and the uv reader only from an inline
    source = { … }, and the TOML reader kept a dotted key (source.url = …) as one flat key, so an off-registry source
    written the other way passed D05, and poetry and uv install from it. The TOML reader now folds dotted keys, headers
    and array tables into one nested document, both readers take source from it whether it is a sub-table, an inline
    table or dotted keys, and the packages may also be a static package = [ … ] array. What TOML forbids makes the
    file unread (DEPENDENCY_CHECK_INCOMPLETE, an error) where the reader used to keep the last value: a key or table
    defined twice, a dotted key that redefines a value or extends an inline table or a header's table, a header that
    reopens a table dotted keys defined, and a package or source that is not a table. In a pyproject.toml, a dotted
    key under a dependency table (evil.git = "https://…" under [tool.poetry.dependencies] or [tool.uv.sources]) is
    now that dependency's table, where it was a registry dependency named evil.git.

  • Dependency safety reads pnpm-lock.yaml the way pnpm reads it (CORE-110). The reader took key: value only with one
    space after the colon and none before it, so tarball:<tab>https://… or resolution : {tarball: …} passed D05, and
    pnpm installs from both; it now reads any spaces or tabs on either side of a key's colon, for the source (D05) and the
    integrity (D04). A hand-edited pnpm lockfile with a YAML anchor, alias, tag, block scalar or merge key, a value on the
    line after its key, a flow mapping across lines, a duplicated key, tab indentation, an extra document, or a
    tarball, type, repo or directory that is not a plain string now fails the check as unread
    (DEPENDENCY_CHECK_INCOMPLETE, an error), where it was read on a guess before; pnpm writes none of these. A pnpm 10
    env document (--- first) is read as well as the lockfile document, where its keys used to shadow the lockfile's.

  • Dependency safety reads a requirements file's options the way pip reads them (CORE-108). D05 read the index and
    editable options by their full names only, so --extra-index https://…, --index …, --find …, -ihttps://…,
    -egit+https://… and --extra-index=… passed, and pip installs from each. It now resolves a long option by any
    unique prefix of the options pip 20.3 to 26.3 allow in a requirements file (including --pypi-url), reads a value
    attached to a short option, every option on a line, quotes as shlex splits them, and a \ continuation joined as
    pip joins it. An option line pip refuses (an unknown option, a prefix of several such as --e or --no, a missing
    value) makes the file unread: DEPENDENCY_CHECK_INCOMPLETE, an error, where the line was skipped before.

  • Dependency safety reads package.json overrides and three more spec forms (CORE-115). npm's overrides (every
    nested leaf), yarn's resolutions and pnpm.overrides are now read like the dependency sections: an override that
    points a package at a git repository, a URL, a local path or jsr: is D05 (the detail names the field), and an
    override added, changed or removed without a lockfile change is D04, where neither was read before. A spec that holds
    a : or a / after npm:, workspace:, catalog: and patch: is off the registry: ssh://git@host/x.git,
    user@host:x.git and https:host/x were classed as registry versions and are now D05. jsr: is D05 unless
    npm.jsr.io is an allowed host. Stricter: a repository with an existing git or tarball override, or a dependency
    in one of the three forms, gets a D05 on the next pull request that adds or changes that entry (an entry unchanged
    since the merge base is not judged again). No new message code and no schema change.

  • Dependency safety reads pyproject.toml in every spelling and the places beside the dependency tables that name a
    package source (CORE-116). A poetry dependency written as its own sub-table ([tool.poetry.dependencies.evil-pkg]
    with git = "https://…", also under a poetry group) was not seen at all, honest or not; it is now the inline table it
    equals, for D05 and D04, because the reader takes every table from the nested TOML document whether it is a header,
    an inline table or dotted keys. Newly read: [build-system] requires (installed and run at build time: D05 and the
    lookups, never D04, since no lockfile records it), the url of each [[tool.poetry.source]] and [[tool.uv.index]]
    (whatever its priority, explicit or default) and uv's index-url, extra-index-url and find-links in
    [tool.uv] and [tool.uv.pip]: an index the change adds off the allowed registries is D05, as an index option in a
    requirements file is, and the detail names the table. An array of sources for one dependency (uv's multiple sources,
    poetry's multiple constraints) is read item by item, where it was one registry dependency, so a git item in it is
    D05. Stricter: a repository that adds such a source or index gets a D05 on that pull request. No new message code and
    no schema change.

  • Docs: the README is down from about 1,665 lines to about 250 and doubles as the Marketplace page (CORE-137): what
    pharn-ci is, a complete workflow checked in a sandbox repository, one paragraph per check, the most-used inputs, and
    what leaves the job. The reference chapters moved to docs/ with their text unchanged: the Action reference
    (docs/action.md), the CLI (docs/cli.md), the config (docs/config.md), Report v2 and the message codes
    (docs/output.md), the org policy (docs/policy.md), one page per check under docs/checks/, and an index in
    docs/README.md. Links into the old README sections point there now; a test checks that every relative link and
    anchor in the tracked Markdown files resolves.

  • Docs: the report schema's descriptions state the R3 levels (CORE-8). schema/report.v2.json now says that
    COVERAGE_FILE_TRACKED, CONFIG_CHANGED_IN_DIFF and DIFF_BINARY_COVERED_FILE can be errors where report v1 had
    them as warnings, that DEPENDENCY_CHECK_INCOMPLETE is an error unless git caused every unread file (with the
    32 MiB cap for one file), that INJECTION_TEXT_TRUNCATED is an error when an instruction or Markdown file is cut
    (two budgets of 8,000,000 UTF-16 code units), and that TESTS_NOT_EXERCISING_CHANGES covers Python. Descriptions
    only: no field, type, enum or code changes.

  • The prompt-injection scan and binary covered files fail closed (CORE-100, part 1). The diff reader keeps added text
    against two budgets of 8,000,000 characters, one for agent instruction files and Markdown files (.md, .mdx,
    .markdown, .mdc) and one for every other file, where it kept one budget for the whole diff in diff order: an
    8.1 MB generated file first in the diff no longer hides a bidi character in a later AGENTS.md.
    INJECTION_TEXT_TRUNCATED is now an error (verdict fail) when an instruction or Markdown file was cut, and stays
    a warning when only other files were (a 9 MB bundle); its text says which budget the cut files count against.
    DIFF_BINARY_COVERED_FILE is now an error when a diff-coverage threshold is set (0 included), where it was a
    warning, since a source file the diff shows as binary has no added lines to measure; it stays a warning without
    a threshold. No new message code and no schema change.

  • Dependency safety fails closed on a manifest or lockfile it could not read (CORE-100, part 2). A file the pull
    request can make unreadable (not valid, over a cap, binary, missing at its revision or at an unsafe path) now gives
    DEPENDENCY_CHECK_INCOMPLETE at level error and fails the check, where it was a warning, so a broken or oversized
    lockfile no longer passes where the same lockfile read would block on D05; the message names the cap a file went
    past. It stays a warning when git could not read a side at all (a diff not from local git, a shallow clone). The cap
    for one file rises from 5 MiB to 32 MiB, the same as for one side, so an honest large lockfile is read (a generated
    20 MiB pnpm-lock.yaml is read and judged in about 0.2 s). With dependencies: never nothing changes.

  • The tests-exercise warning covers Python (CORE-104). TESTS_NOT_EXERCISING_CHANGES now also asks for each changed
    .py source file whether an added or modified Python test file imports it (import pkg.billing, from pkg.billing import total, from . import billing, anywhere in the test file) and keeps or raises its assertion count, so a pull
    request that adds src/pkg/billing.py with no test now gets the warning, as the same change in TypeScript did. A
    module name maps to pkg/billing.py or pkg/billing/__init__.py at the repository root or under src/. The Python
    index returns the import names (at most 1000 per file) from the same ast pass. Still a warning; no new code or
    report field. Without a usable python3 for the touched Python test files, Python files are not asked.

  • Docs: docs/LIMITS.md names the release whose test-integrity signals catch 8 of the Skylos nine: "the signals of
    v0.11.0 catch 8 of 9", as the README does, where it said "the signals of this release" (CORE-129).

  • A coverage report the pull request commits fails a gated run (CORE-92). With a threshold (0 included),
    COVERAGE_FILE_TRACKED is now an error, so the verdict is fail and the CLI exits 1, when the diff adds, edits or
    renames to the tracked coverage file the gate reads; its text names the path and says to remove the report from git
    (git rm --cached <path>) and let the test run write it. A tracked report the diff leaves alone, or a run with no
    threshold, still gets the warning. A repository that commits regenerated coverage in its pull requests must untrack
    the file, or every such pull request now fails under a threshold.

  • Breaking: a pull request that edits the pharn-ci config in use is checked with the config as it is at the merge
    base; the edit applies after merge, as with CODEOWNERS (CORE-95). This holds for .pharn/ci.yml and for the file the
    config input or --config names. A PR could add coverage.exclude: ["**"] to its own config and pass with a
    threshold in force; now its own edits to coverage.exclude, coverage.file, coverage.root, coverage.threshold,
    setup, test_integrity and dependencies do not apply to it. A modified or deleted config is read from git
    objects at the merge base (never through a symbolic link); an added one counts as absent, so the defaults and the
    inputs apply and its dependencies.lookup: true turns nothing on. When the base copy cannot be read (a shallow
    checkout), the check runs with no config and CONFIG_CHANGED_IN_DIFF is an error under a threshold or in
    test-integrity: block (its text names fetch-depth: 0), a warning otherwise; a base copy that does not parse fails
    the step. CONFIG_CHANGED_IN_DIFF now says which copy was used, and TI14 says its looser setting applies to every
    later pull request once merged. The CLI does the same with --base; without it, it reads the working tree's config
    as before. Migration: merge a config change before the pull requests that rely on it.

  • Docs: the five workflows in examples/workflows/ no longer say the step never fails without a threshold (CORE-127).
    Their headers name what fails it by default: a secret in an agent config file (S01-S09), invisible Unicode (PI01),
    a dependency from outside the registry (D05), a dependency change the lockfile does not record (D04) and a run
    error, and say that threshold adds the diff-coverage gate. They now grant id-token: write, as the README quick
    start does, with the same one-line comment: it lets pharn-ci fetch the org policy and upload the redacted report to
    pharn.dev, and without it pharn-ci makes no call to pharn.dev. They pin pharn-dev/pharn-ci to the full commit SHA
    of v0.11.0, like every other action in them.

  • Docs: the README's Safety model, SECURITY.md's Security surface and docs/MARKETPLACE.md (the Marketplace
    listing text) now name the registry lookups among the Action's network calls (CORE-126): with the dependencies
    mode lookup (the input, dependencies.lookup: true in .pharn/ci.yml, or an org policy), one GET per added
    unscoped package to registry.npmjs.org, api.npmjs.org or pypi.org, sending only the package name. They said
    pharn-ci calls only GitHub and pharn.dev. No behaviour change.

  • Fixed: an agent instruction file named like a test file is scanned for prompt injection (CORE-93). The default
    name exemptions **/*.test.* and **/*.spec.* no longer apply to the instruction kinds PI04 reads, so hidden
    Unicode or a hidden instruction in .cursor/rules/a.test.mdc or .claude/commands/x.spec.md now gives PI01 to
    PI04 where it passed. fixtures/, __fixtures__/ and testdata/, and an app policy's injection.exempt, still
    exempt every path.

  • Docs: the README safety model and docs/THREAT-MODEL.md (row G2) count the parser dependency (CORE-128). Only the
    lcov, Cobertura, diff and config parsers are hand-written; JS/TS test and config files go through TypeScript's parser,
    used only to build a syntax tree, and Python test files through the runner's python3 (ast.parse). The Action has
    three direct runtime dependencies, not two: typescript5 ships as the sha256-pinned packages/action/dist/typescript.js.

  • Fixed: a pyproject.toml whose multi-line string holds an escaped quote ("""A \"""quoted\""" word""") is read
    (CORE-94). The TOML readers closed the string at the first """, read the valid file as broken and skipped it with a
    DEPENDENCY_CHECK_INCOMPLETE warning, so a git dependency in it went unreported. Multi-line basic strings are now
    read character by character with their escapes; the pytest table reader in pyproject.toml honours them too.

  • Docs: the README says what the code does (CORE-129). The Config section states each .pharn/ci.yml setting's rule
    against a flag or input (a flag replaces file, format and root; the larger threshold applies; exclude and
    expect are merged; setup.require, test_integrity.mode and the dependency minimums only tighten), and so does
    the comment in this repo's .pharn/ci.yml. The README, and the accept-label input description in action.yml,
    say an app policy's test_integrity.accept_label replaces the input's name. The Skylos sentence names v0.11.0, the
    message-code table gains the seven DEPENDENCY_* codes, the skills table lists all five pharn-ci skills (0.1.x to
    0.9.x), the secret redaction helpers are called internal (@pharn-ci/core is private), the development table lists
    packages/node-io, and the @pharn-ci/core package description says Report v2. The github-token input row says
    the agent-PR commit list is read on every run that has a pull request, not only on pull_request runs.

  • Docs: the README quick start gains "Make untested files count" (CORE-102): the setting that makes vitest
    (coverage.include), jest (collectCoverageFrom) and pytest-cov ([tool.coverage.run] source) list a new source
    file no test imports at 0%, so it counts against diff coverage instead of being left out. The vitest, jest and pytest
    example workflows name the setting and its config file; the cargo and .NET ones say an untested file is already
    reported. docs/LIMITS.md links to it.

  • Fixed: a changed file with a backslash in its name is no longer dropped from diff coverage (CORE-101). On Linux
    and macOS \ is a legal file-name character, but every coverage path's backslashes were turned into /, so lcov
    SF:src/a\b.js matched no tracked file and the file's untested lines passed the gate. A backslash is now part of
    the name when the path read that way is a tracked file, and a separator (a Windows report) otherwise; with both
    src/a\b.js and src/a/b.js tracked, each record goes to the file it names. lcov and Cobertura alike. The PR
    comment shows such a name with one backslash, not two.

  • Docs: docs/PRECISION.md gains a Python precision corpus (CORE-72): 600 merged PRs of langchain-ai/langchain,
    pydantic/pydantic and python-poetry/poetry, frozen in docs/precision/corpus-python/, with every block finding
    reviewed by hand. TI02 falsely blocks 6 of 600 Python PRs (1.0 %, tests renamed in place and rewritten); TI01 0.7 %;
    TI03, TI11 and TI13 0.2 % each. The TypeScript corpus, re-run at the current main, gives the same 14 block findings
    as the v0.3.0 run and no TI03 block. No signal changes.

  • Fixed: TI03 now sees an existing JS/TS test switched off without a .skip in its name (CORE-52). The test index
    reads skip, todo and fails in an options object (it("t", { skip: true }, fn), or as the third argument): a
    literal true blocks like it.skip, any other value but false is a conditional skip (warn). An empty
    .each([]) or .for([]) table blocks like it.skip, and a test newly wrapped in an if, or moved into a function
    nothing in the file calls, is a conditional skip (warn). A loop, a describe callback and a helper the file calls
    are not guards, and a test that was already guarded or skipped at the merge base gives nothing new. The test index
    gains two optional fields, guarded and emptyTable; the report is unchanged.

  • Fixed: the Python test index reads more ways a test is switched off (CORE-53). TI03 now reports a test that gained
    one at HEAD: a test def or class put under an if (a conditional skip, warn); an empty parametrize list or
    tuple, a later def of the same name, del test_x, test_x.__test__ = False and raise unittest.SkipTest(…) in
    the body (an unconditional skip, the mode's level); a module-level pytest.importorskip(…) or pytest.skip(…, allow_module_level=True) (one warn finding in every mode). Names in the index are cut to 500 characters, so one
    very long class name no longer pushes the index output past its 64 MiB cap and makes the index unavailable. This can
    add block findings on Python PRs that switch an existing test off these ways (docs/LIMITS.md).

  • Fixed: a test file, package.json, workflow file or pharn-ci config that git shows as binary (a -diff or binary
    attribute in .gitattributes, or non-text content) is no longer skipped silently (CORE-50). A deleted or renamed-away
    JS/TS, Python or Go test file is TI01 at the mode's level, a modified or renamed JS/TS or Python one makes
    TEST_INTEGRITY_INDEX_UNAVAILABLE an error in block (an added one is named there as a warning), and a binary
    package.json, workflow or config the change modifies is one TI10, TI11 or TI14 finding; a binary test-runner config
    is judged by TI09 from its text like a text one, and a binary text at HEAD is now an error reason. The hints name
    .gitattributes. This can add block findings: on a deleted binary helper file under a test directory (a
    conftest.py, a .d.ts), on a binary test file deleted with its source or its package, and on every PR that
    touches a file a long-standing -diff or binary attribute already marks. The accept label clears each of them.

  • CORE-69: in test-integrity: block the check now fails when a test file the change modifies cannot be read at HEAD
    (too-deep, too-large, over-file-cap), has more than 5000 changed lines (JS/TS, Python or Go test files), or is
    a .py file on a runner with no python3 or python (an older Python still only warns); modified test files are
    read first on both sides, and the accept label lowers the per-file errors but not the missing-Python one. Added test
    files and files already unreadable at the merge base still warn.

  • The comment hints for TI06, TI12 and TI17 no longer tell a reviewer to apply the accept label: these signals are
    warn, and the label is read only when a finding blocks, so applying it changed nothing. A finding an org policy
    raises to block still names the label in its hint. The hints of TI02, TI03, TI05, TI09, TI10 and TI13 are unchanged.

  • Fixed: a test under skipIf or runIf (in Python @pytest.mark.skipif, @unittest.skipIf,
    @unittest.skipUnless or a conditional pytest.skip()) is no longer exempt from TI05 and TI06: its condition can
    let it run, so emptying or weakening it is reported. Only skip and todo still excuse a test, since TI03 reports
    those (docs/LIMITS.md). This can add findings on repositories that keep platform tests under skipIf and change
    them.

  • Fixed: two honest edits no longer fail in mode block. TI11 treats a workflow test command that only gains report flags
    from an allow-list (--coverage, --cov, --cov=<value>, --cov-report, --coverage.reporter, --reporter,
    --junitxml, --ci and a few more, and -v or -q for pytest, python -m unittest, tox and go test) as the same
    step, so pytest to pytest --cov=src --cov-report=xml, the edit the README asks a Python user to make, is no longer
    a lost test step; a path, -k, || true, a flag that narrows or turns off coverage (--coverage.exclude,
    --cov-config, --coverage=false) or any other flag added still is. TI13 gives
    warn for a coverage hint that marks one line or branch (# pragma: no cover, an Istanbul, V8 or C8 ignore next,
    ignore if or ignore else) in a file the change adds; a whole-file or range hint in a new file, and any hint added
    to an existing file, still blocks (docs/LIMITS.md, "What TI11 misses" and "What TI13 misses").

  • Fixed: TI01 and the TEST_FILES_DELETED message count a test file renamed so that its name matches no test file
    pattern, even when it lands in a test, tests or __tests__ directory (src/cart.test.ts to
    src/__tests__/cart.test.ts.bak, tests/test_cart.py to tests/test_cart.txt). The package exemption is narrower:
    only deleted JS/TS and Python source files of the package make a deleted test file info, and only when no JS/TS or
    Python file of the package is left in the tracked-file list, so a deleted NOTES.md, or a package that still holds
    code, no longer softens the deletion; it is a block (warn in mode warn). A test file deleted with a source file
    of the same name is still info. This can add findings: a deleted Go test file whose package is deleted with it now
    blocks, and so does a Jest test renamed to a plain name under __tests__, which Jest still runs (docs/LIMITS.md,
    "What TI01 misses").

  • Fixed: TI09 and TI10 miss fewer narrowings. TI09 now judges a config new at head (a new file, a section or key new at head,
    or a config not found at base) on its narrowing keys at warn, and a config that existed at base on vitest dir,
    testNamePattern and root, jest roots and modulePathIgnorePatterns, and a pytest addopts path or
    -o python_functions=. TI10 now reads a single |, a single & that backgrounds the test run or ends the script
    (a server started in the background before the run gives nothing), a subshell after || or ;, a line feed in a
    script, and an added --exclude or --testPathIgnorePatterns, and compares the scripts objects of a package.json
    when both texts are in the test sources, so a package.json written on one line is read. A pull request that adds
    an unfiltered pipe or one of these keys can now go from pass to warn or fail; the rules are in
    docs/LIMITS.md, "What TI09 misses" and "What TI10 misses".

  • Docs: SECURITY.md "Data handling" now names four requests it left out (CORE-130): the OIDC token request to the
    runner's GitHub-run token service (audience pharn.dev) before the org policy request and the run upload;
    GET /pulls/{n}/commits on pull_request_target and PR-number runs too, not only pull_request; the comment's logo,
    which a reader's browser loads from raw.githubusercontent.com through GitHub's image proxy; and the objects git
    itself fetches from the remote on a partial clone (filter: blob:none), in the Action and the CLI, with how to avoid
    it (a full checkout with fetch-depth: 0 and no filter:). No behaviour changes.

Security