Repository navigation
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 astoo-large(an error in mode block) instead of being cut. A.pytest 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. Seedocs/LIMITS.md. -
A test file that pharn-ci could not read now fails
test-integrity: blockinstead of warning (CORE-351). In mode
warnnothing changes. Each case is a per-fileTEST_INTEGRITY_INDEX_UNAVAILABLEerror that the accept label lowers
to a warning; the whole-run error for a modified.pytest file with no Python interpreter (python-not-found)
stays and the label never lowers it. The cases:- a runner whose
python3is 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.pytest file; - a
.pytest file whose headpython3cannot parse (syntax-error, Python 2 syntax included, ortoo-deep,
too-large,parser-threw), whatever the merge base held; - added
.pytest files, for every reason above and forpython-not-found; - a modified test file of any language that the sources reader dropped as
over-file-caporover-total-capon
either side (this closes the 16 MiB padding evasion), or astoo-large,binaryorunsafe-pathon one side
while the other side was read;too-largeorbinaryon both sides andmissingstay 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 modeblock. No message
code, field or reason changes. Seedocs/LIMITS.md. - a runner whose
-
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_modeand the otheragentsanddependencieskeys. 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. Seedocs/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 wholeinjectionkey (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 raisedinjection.signalsseverities 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,cmdandbat
fences and a PowerShellPS …>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 asdocs/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 (```textinside 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 under1. 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.tomlwith 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]thenpytest.ini_options.testpaths = …) or an inline table, or written with a quoted
header part, was not seen at all, so narrowingtestpathsthat way passed; it is now read and judged. A file that is
not valid TOML anywhere is refused asinvalid-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'sfix.hintfor 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.hintkeeps its text except for TI03, TI09, TI10, TI13, TI17,
TEST_INTEGRITY_ACCEPTED, D05 andDEPENDENCY_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-hostsfor 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 messagecodedescription inschema/report.v2.jsonis now
one sentence that links to the code table indocs/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, abinaryattribute, a truncated
coverage file). TheHint:line andfix.hintchange together; every code and kind is unchanged. -
The local
git diffof the CLI and the Action names the base andHEADcommit 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 isHEADor 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-fileat the base commit, as the
Action does, so a branch that removes aninjection.phrasesentry 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), atHEADalso when there is no diff to measure because the checkout is still
the head under review: abase-refthat resolves toHEADor after it, or a run with no base (a push without
base-ref). Before, it reportedAGENT_CONFIG_SECRET_UNSCANNEDthere; the CLI already scanned. PR-number mode, a
compare-API diff and apull_request_targetcheckout 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-filethe CLI also reads the files rule P13 compares, which it does not run without a pull
request, and--dependencies lookupalways 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) wasinfo, 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) wasinfoand silent on the default
shallow checkout, and it cost agit logcall per instruction file, which is gone: the stale-instruction reader no
longer runsgit log.TEST_INTEGRITY_TI15andSETUP_STALE_SI04stay inschema/report.v2.json, so an older
report that holds them still validates, and a policy'stest_integrity.signals.TI15still 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_IGNOREDnames 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 endsfailed, as in every other run. The policy response'setag,updatedAtand
settings.redactMessagesare optional and not read. -
pharn-ci testtrusts only a JUnit file this run wrote (CORE-121). After a failed command it exited0when 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 exit0. 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 exits0still exits0. -
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 defaultGITHUB_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.requireddescription says it makes
unreadable agent settings files an error in an app policy, and that only thepolicy: requiredinput makes a policy
fetch failure block;agents.require_human_approvaland P12 are validated and not applied;docs/policy.mdexplains
how afile:policy is changed (every edit is a P09 block);docs/LIMITS.mdsays thedependencieskeys 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: writeand the token request
threw, timed out or returned no token,policy: autoskipped the org policy with no message, so the team believed
its policy applied. That is now aPOLICY_UNAVAILABLEwarning with the reasonno-oidc-token(an error under
policy: required, as before); a job that does not grantid-token: writestays 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 readscommentUrlfrom the
answer toPOST /api/v1/runsand skips its comment only when it is anhttpsURL 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: falsestill
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-1andorg/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 namedmain, 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 orsetup.expecttool is skipped, the rest of the policy (threshold, mode, protected paths)
applies, and one newPOLICY_KEYS_UNKNOWNwarning names up to 20 skipped keys. A known key with a bad value still
makes the policy unavailable, afile:policy with an unknown key still fails the step, andupdatedAtmay carry a
numeric offset such as+00:00. -
Docs:
docs/LIMITS.mdlists, 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.lockpackage's sdist and wheel URLs (CORE-9 R4.8). D05 judged a uv package by its
sourcealone, so a package that keptsource = { registry = "https://pypi.org/simple" }and pointed
wheels[].urlorsdist.urlat another host passed, anduv sync --frozendownloads from those URLs. Now the
urlofsdistand of everywheelsitem, 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. Ansdistthat is not a table, awheelsthat is not an array of tables, or aurlthat 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.lockoruv.lockpackage'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 takesourcefrom it whether it is a sub-table, an inline
table or dotted keys, and the packages may also be a staticpackage = [ … ]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 apackageorsourcethat is not a table. In apyproject.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 namedevil.git. -
Dependency safety reads pnpm-lock.yaml the way pnpm reads it (CORE-110). The reader took
key: valueonly with one
space after the colon and none before it, sotarball:<tab>https://…orresolution : {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,repoordirectorythat 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 asshlexsplits them, and a\continuation joined as
pip joins it. An option line pip refuses (an unknown option, a prefix of several such as--eor--no, a missing
value) makes the file unread:DEPENDENCY_CHECK_INCOMPLETE, an error, where the line was skipped before. -
Dependency safety reads
package.jsonoverrides and three more spec forms (CORE-115). npm'soverrides(every
nested leaf), yarn'sresolutionsandpnpm.overridesare now read like the dependency sections: an override that
points a package at a git repository, a URL, a local path orjsr: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/afternpm:,workspace:,catalog:andpatch:is off the registry:ssh://git@host/x.git,
user@host:x.gitandhttps:host/xwere classed as registry versions and are now D05.jsr:is D05 unless
npm.jsr.iois 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.tomlin 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]
withgit = "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), theurlof each[[tool.poetry.source]]and[[tool.uv.index]]
(whatever its priority,explicitordefault) and uv'sindex-url,extra-index-urlandfind-linksin
[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 todocs/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 underdocs/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.jsonnow says that
COVERAGE_FILE_TRACKED,CONFIG_CHANGED_IN_DIFFandDIFF_BINARY_COVERED_FILEcan be errors where report v1 had
them as warnings, thatDEPENDENCY_CHECK_INCOMPLETEis an error unless git caused every unread file (with the
32 MiB cap for one file), thatINJECTION_TEXT_TRUNCATEDis an error when an instruction or Markdown file is cut
(two budgets of 8,000,000 UTF-16 code units), and thatTESTS_NOT_EXERCISING_CHANGEScovers 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 laterAGENTS.md.
INJECTION_TEXT_TRUNCATEDis now an error (verdictfail) 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_FILEis 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_INCOMPLETEat 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 MiBpnpm-lock.yamlis read and judged in about 0.2 s). Withdependencies: nevernothing changes. -
The tests-exercise warning covers Python (CORE-104).
TESTS_NOT_EXERCISING_CHANGESnow also asks for each changed
.pysource 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 addssrc/pkg/billing.pywith no test now gets the warning, as the same change in TypeScript did. A
module name maps topkg/billing.pyorpkg/billing/__init__.pyat the repository root or undersrc/. The Python
index returns the import names (at most 1000 per file) from the sameastpass. Still a warning; no new code or
report field. Without a usablepython3for the touched Python test files, Python files are not asked. -
Docs:
docs/LIMITS.mdnames 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_TRACKEDis 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.ymland for the file the
configinput or--confignames. A PR could addcoverage.exclude: ["**"]to its own config and pass with a
threshold in force; now its own edits tocoverage.exclude,coverage.file,coverage.root,coverage.threshold,
setup,test_integrityanddependenciesdo 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 itsdependencies.lookup: trueturns nothing on. When the base copy cannot be read (a shallow
checkout), the check runs with no config andCONFIG_CHANGED_IN_DIFFis an error under a threshold or in
test-integrity: block(its text namesfetch-depth: 0), a warning otherwise; a base copy that does not parse fails
the step.CONFIG_CHANGED_IN_DIFFnow 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 thatthresholdadds the diff-coverage gate. They now grantid-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 pinpharn-dev/pharn-cito the full commit SHA
ofv0.11.0, like every other action in them. -
Docs: the README's Safety model,
SECURITY.md's Security surface anddocs/MARKETPLACE.md(the Marketplace
listing text) now name the registry lookups among the Action's network calls (CORE-126): with thedependencies
modelookup(the input,dependencies.lookup: truein.pharn/ci.yml, or an org policy), oneGETper added
unscoped package toregistry.npmjs.org,api.npmjs.orgorpypi.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.mdcor.claude/commands/x.spec.mdnow gives PI01 to
PI04 where it passed.fixtures/,__fixtures__/andtestdata/, and an app policy'sinjection.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'spython3(ast.parse). The Action has
three direct runtime dependencies, not two:typescript5ships as the sha256-pinnedpackages/action/dist/typescript.js. -
Fixed: a
pyproject.tomlwhose 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_INCOMPLETEwarning, 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 inpyproject.tomlhonours them too. -
Docs: the README says what the code does (CORE-129). The Config section states each
.pharn/ci.ymlsetting's rule
against a flag or input (a flag replacesfile,formatandroot; the larger threshold applies;excludeand
expectare merged;setup.require,test_integrity.modeand the dependency minimums only tighten), and so does
the comment in this repo's.pharn/ci.yml. The README, and theaccept-labelinput description inaction.yml,
say an app policy'stest_integrity.accept_labelreplaces the input's name. The Skylos sentence names v0.11.0, the
message-code table gains the sevenDEPENDENCY_*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/coreis private), the development table lists
packages/node-io, and the@pharn-ci/corepackage description says Report v2. Thegithub-tokeninput row says
the agent-PR commit list is read on every run that has a pull request, not only onpull_requestruns. -
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.mdlinks 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.jsmatched 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.jsandsrc/a/b.jstracked, 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.mdgains a Python precision corpus (CORE-72): 600 merged PRs oflangchain-ai/langchain,
pydantic/pydanticandpython-poetry/poetry, frozen indocs/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
.skipin its name (CORE-52). The test index
readsskip,todoandfailsin an options object (it("t", { skip: true }, fn), or as the third argument): a
literaltrueblocks likeit.skip, any other value butfalseis a conditional skip (warn). An empty
.each([])or.for([])table blocks likeit.skip, and a test newly wrapped in anif, or moved into a function
nothing in the file calls, is a conditional skip (warn). A loop, adescribecallback 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,guardedandemptyTable; 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 testdefor class put under anif(a conditional skip,warn); an emptyparametrizelist or
tuple, a laterdefof the same name,del test_x,test_x.__test__ = Falseandraise unittest.SkipTest(…)in
the body (an unconditional skip, the mode's level); a module-levelpytest.importorskip(…)orpytest.skip(…, allow_module_level=True)(onewarnfinding 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-difforbinary
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_UNAVAILABLEan error inblock(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 abinarytext 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-difforbinaryattribute already marks. The accept label clears each of them. -
CORE-69: in
test-integrity: blockthe 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.pyfile on a runner with nopython3orpython(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 toblockstill names the label in its hint. The hints of TI02, TI03, TI05, TI09, TI10 and TI13 are unchanged. -
Fixed: a test under
skipIforrunIf(in Python@pytest.mark.skipif,@unittest.skipIf,
@unittest.skipUnlessor a conditionalpytest.skip()) is no longer exempt from TI05 and TI06: its condition can
let it run, so emptying or weakening it is reported. Onlyskipandtodostill excuse a test, since TI03 reports
those (docs/LIMITS.md). This can add findings on repositories that keep platform tests underskipIfand 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,--ciand a few more, and-vor-qfor pytest,python -m unittest, tox andgo test) as the same
step, sopytesttopytest --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
warnfor a coverage hint that marks one line or branch (# pragma: no cover, an Istanbul, V8 or C8ignore next,
ignore iforignore 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_DELETEDmessage count a test file renamed so that its name matches no test file
pattern, even when it lands in atest,testsor__tests__directory (src/cart.test.tsto
src/__tests__/cart.test.ts.bak,tests/test_cart.pytotests/test_cart.txt). The package exemption is narrower:
only deleted JS/TS and Python source files of the package make a deleted test fileinfo, and only when no JS/TS or
Python file of the package is left in the tracked-file list, so a deletedNOTES.md, or a package that still holds
code, no longer softens the deletion; it is ablock(warnin modewarn). A test file deleted with a source file
of the same name is stillinfo. 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 atwarn, and a config that existed at base on vitestdir,
testNamePatternandroot, jestrootsandmodulePathIgnorePatterns, and a pytestaddoptspath 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--excludeor--testPathIgnorePatterns, and compares thescriptsobjects of apackage.json
when both texts are in the test sources, so apackage.jsonwritten on one line is read. A pull request that adds
an unfiltered pipe or one of these keys can now go frompasstowarnorfail; 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 (audiencepharn.dev) before the org policy request and the run upload;
GET /pulls/{n}/commitsonpull_request_targetand PR-number runs too, not onlypull_request; the comment's logo,
which a reader's browser loads fromraw.githubusercontent.comthrough 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 withfetch-depth: 0and nofilter:). No behaviour changes.