Repository navigation
Make coverage failures explicit; add bounded PHP, protocol and evidence analysis - #58
Conversation
|
Important Review skippedToo many files! This PR contains 156 files, which is 56 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dcfa2c2dab
ℹ️ 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".
Pull request was converted to draft
|
Add Carrot credits or activate Agent usage billing to use Autofix |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4f962ce111
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7872fb8f6
ℹ️ 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".
3b8e02f to
0320aab
Compare
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0320aab7fd
ℹ️ 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".
| let walker = ignore::WalkBuilder::new(root) | ||
| .standard_filters(false) |
There was a problem hiding this comment.
Preserve ignore rules during exclusion inventory
When .gitignore or .ponsignore excludes a directory that is unreadable, this second walk disables the standard filters and does not add the custom ignore file, so it still attempts to enumerate that directory. The resulting walk error is appended to skipped, making coverage partial and causing --fail-on-skips to exit 2 even though the operator explicitly excluded the subtree; ignored directories should be pruned or represented as opaque policy boundaries rather than traversed.
Useful? React with 👍 / 👎.
| ensure!( | ||
| s["files"].as_u64() == Some(analysed as u64), | ||
| "inventory/file count mismatch" | ||
| ); |
There was a problem hiding this comment.
Cross-check the reported language set
When validating an externally modified report, this code derives and checks the analyzed file count but never compares scanned.languages with the languages of those analyzed inventory entries. A Python-only report can therefore be changed to claim languages: ["php"] and still pass validate-report, so coverage consumers that rely on this documented summary receive a schema-valid contradictory language claim.
Useful? React with 👍 / 👎.
| ensure!( | ||
| r.rule == f["rule_id"] | ||
| && serde_json::to_value(r.tier)? == f["tier"] | ||
| && serde_json::to_value(r.evidence)? == f["evidence"] |
There was a problem hiding this comment.
Enforce native producer correlation identity
When an external report changes a record's producer and correlation_group to arbitrary nonempty strings, schema validation and validate_records accept them, and this record/finding comparison checks neither field. The report can consequently relabel Pons-native evidence as an independent producer or correlation group while validate-report declares it valid, allowing consumers to overcount correlated evidence; require the native pons producer and the tier-derived Pons correlation group.
Useful? React with 👍 / 👎.
| let commit = String::from_utf8_lossy(&output.stdout).trim().to_string(); | ||
| if commit.len() == 40 && commit.bytes().all(|b| b.is_ascii_hexdigit()) { | ||
| report.target.commit = Some(commit); |
There was a problem hiding this comment.
When scanning a repository initialized with Git's supported --object-format=sha256, git rev-parse HEAD returns a 64-character object ID, so this SHA-1-only check discards the commit and then skips dirty-state collection. The resulting evidence reports target.commit and target.dirty as null even though the target is a valid Git checkout; accept the repository's configured object format and update the report schema to permit its object-ID length.
Useful? React with 👍 / 👎.
…am prompts * `docs/CI-CD.adoc` — the contract this repository's CI holds itself to: what runs, what is required, what each gate may assume, and the failure modes this repository actually suffered. The invisible ones are the point: a workflow that calls a reusable under an owner the Actions allowlist does not admit dies at startup with no job and no check run, and `gh pr checks` shows nothing, because a rejected run produces no check run. * `docs/PR57-RECONCILIATION.adoc` — the final disposition. PR #57 branched before #58, #61 and #63 and was never rebased, so merging it forward as a branch would DELETE main's reconciled work, not merely conflict with it. The reconciliation above stands, and the reasons are now sharper: PR #57's generic `empty-php-function` rule is not a merge conflict but a CONTRADICTION of #63's contract, because main's `php-empty-security-function` negative corpus asserts that an empty non-security function produces no finding and PR #57's rule fires on it. The narrower rule that would be correct — empty ANONYMOUS callables, which PR #57's callback fixture covers and no existing rule does — is specified, and needs a compiler in hand. The six SonarCloud diagnostics that remain on main's fixtures are handled by the fixture-aware gate added in the previous commit, and the rule keys come from the analyser's source rather than from memory. * `docs/handoffs/upstream-prompts.adoc` — seven ready-to-paste prompts for the repositories that have to change for this work to be complete. The first is the merge blocker this repository could not fix alone: the estate's canonical Actions allowlist admits `hyperpolymath/*` and does not list `metadatastician/*`, so a caller that spells the transferred owner is refused at startup and the required context is never emitted. The others are the KYAML step-6 precondition, the canonical-bytes contract for reports that cross a trust boundary, the squabbler's consumer-side permission story, the `proven-bench` document contract for non-Idris harnesses, the panic-attack interop for a Rust producer, and the vocabulary for "structurally valid but not conformant" in DEED/K9. * `docs/handoffs/format-toolchain/05-pons-asinorum.md` — the standing prompt for this repository, with a status update: what is done, what is deliberately not done, and why. The library-level ijson-jcs adoption is explicitly still open, because it needs `Cargo.lock` regenerated against a git dependency. * `CHANGELOG.adoc` — the user-visible half of all of the above. Co-authored-by: arena-agent <[email protected]>
The first version of this branch carried a wrong diagnosis, and the correction is worth recording rather than quietly editing. What I first wrote: the shared reusable's owner spelling was refused because the estate's canonical Actions allowlist admits `hyperpolymath/*` and not `metadatastician/*`. What the measurement says: the allowlist is not the mechanism. The repository was transferred, GitHub's REST API follows the old name, and the **Actions resolver does not** — so a `uses:` under the old owner resolves to no repository at all. On the same pinned commit, with the same job key and the same grants, `hyperpolymath/standards/...` starts no job and files the run against the workflow FILE, while `metadatastician/standards/...` starts, runs and publishes the check. Two further corrections follow from the same measurement: * The stale pin, not the owner, is what left PR #57's branch failing. The branch pinned the reusable at `1f3eef62`, a revision that asked for more permission than the caller grants; main re-pinned to `cf8f9121` in #58 and the scanner has been green since. PR #57's move to `metadatastician/standards` was correct and is kept. * The estate-wide consequence is larger than this repository: every live caller that still spells the old owner — in `standards` itself, `cicd-suite`, `rsr-template-repo` and `cicd-squabbler` — is in the failure mode, and two of those repositories have not run since the transfer and do not know yet. The upstream prompt now says so, with the measurement and the affected files. The canonical allowlist still names only `hyperpolymath/*`, so a repository whose live policy has been migrated to the new owner is not a superset of the canonical list. That is asked upstream as well. Co-authored-by: arena-agent <[email protected]>




Unsupported source previously disappeared before skip accounting, allowing a strict scan to return success after analysing zero files. This change inventories inputs before grammar selection, reports coverage and execution outcomes, and fixes the Praxis conditional/comment false positive.
Adds native PHP parsing with three rules and bounded intraprocedural, context-specific CFG/taint analysis; explicit-event Wharf and portfolio protocol models; JSON schema 0.4.0 and evidence contract 1.0.0; scoped suppression metadata; fixtures, consumer examples and migration notes.
Pons's purpose and proof guide distinguishes structural/dataflow/protocol analysis from broad scanning and formal verification. Finite-domain dataflow solvers and supplied-trace checks exist. Source-derived protocol extraction, SMT integration and machine-checked soundness remain open. A misleading local proof-runner placeholder now explicitly reports that no proofs are checked.
Validation:
7831608; every strict scan exits 2 for remaining coverage gaps. Every report passes schema and semantic validation. Per-language coverage, resource measurements and exact raw reports are retained in FORMAT-REVIEW.adoc, alongside earlier historical baselines.Estate migration:
Limits:
PHP names, cross-file/callback/exception/template semantics remain partial. Protocol event flags are producer premises, not independent runtime proof. Haskell and Elixir remain unsupported. Runtime patch/configuration evidence is separate from application analysis. Regression-corpus results are not real-world precision/recall.
CI:
The previous implementation head passed required secret scanning, Rust CI, estate audit and CodeQL. The final head must pass these again. Exact relocated reusable-workflow allowances and repaired upstream lock pins are in place; unnecessary secrets inheritance was removed. SonarCloud still flags deliberate vulnerable PHP fixtures; findings are retained, with no broad exclusion or false resolution. CodeRabbit skipped review due to its limit; that is not a completed review.
Publication:
The reviewed final tree is
c120a42a253ac0162d2d48f3615fcff2128be596. Original API-created commits are preserved atcodex/pons-reviewed-unsigned-backup. Checkpoint PR #59 produced verified commit0320aab7fd7edc928d7800a8c01e69a89802c584on a non-main branch. Its tree exactly matches the reviewed tree; GitHub reports signature verificationvalid. This PR now uses that single signed commit. Main's protections remain unchanged.Related PR #57 overlaps inventory/PHP work with a different report shape. Its branch is unchanged; do not merge both implementations independently.