Skip to content

Post-merge repairs: analysis fixes, e2e rc capture, de-bootstrap vendoring - #56

Merged
hyperpolymath merged 2 commits into
mainfrom
arena/3c54aee7-pons-asinorum
Oct 24, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
arena/3c54aee7-pons-asinorum

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Closes out what PR #55 merged unfinished. #55 landed the docs
reconciliation, SARIF invocation notifications, suppression/config, and
the catalogue/man/trace commands — but merged with four known repairs
still uncommitted, a red clippy run (40038238973, exit 101), two failing
e2e assertions, and the offline-verification scaffolding still in the
tree. This PR lands the repairs, fixes the harness bug the e2e failures
actually pointed at, and removes the scaffolding.

Repairs (commit 1, verified locally before push)

  • pons-cli (compile break): the merged CLI named
    Lang::Javascript/Lang::Typescript; the core enum is
    JavaScript/TypeScript. Any rustc rejects this — this was the
    CI clippy exit-101.
  • pons-core/cfg (portability): bind named_children iterator to a
    local in literal_non_empty; the block-tail temporary trips E0597 on
    newer borrow checking.
  • pons-rules/read_before_init (correctness): correlated guards are
    now sorted by source offset before pairing — the LIFO collection order
    made 'earlier guard' meaningless; mutation invalidation now also kills
    a guard when the target is a base of the mutated path; clippy
    question_mark in guard_key.
  • pons-core/suppress (test truth): the inline-allowance test
    contradicted inline_allowed's documented own-line-or-next contract
    and failed; rewritten to assert both lines plus string-literal
    non-suppression.
  • tests/e2e.sh (harness): run_pons recorded rc in a shell
    variable, which command substitution discards. Both ADR-0005
    default-scan assertions read a stale rc=1 (left over from the
    bad-trace check) while the scans exited 0 — and five earlier rc checks
    (version/help/catalogue/man/trace) passed vacuously on stale zeros. rc
    now travels via temp file + pons_rc; all 12 call sites migrated.

De-bootstrap (commit 2, no source changes)

Removes what #55 should not have shipped: vendor/ (~109MB), the
[source.crates-io] replacement, the cargo fmt alias shim
(tools/vendor-fmt) that committed formatting to the repo, and the
two one-branch auto-commit workflows. Dependency resolution returns to
the committed Cargo.lock + crates.io.

Verification evidence

Local (rustc/clippy/rustfmt 1.99.0, custom sysroot, vendored deps):

  • cargo-fmt --check --all — clean
  • cargo clippy --workspace --all-targets -- -D warnings — clean
  • cargo test --workspace — 185 passed, 0 failed
  • cargo build --release — ok
  • bash tests/e2e.sh — 46 PASS / 0 FAIL (was 44/2)

Remote: rust-ci on this PR is the authority for the de-bootstrapped
tree (rustup 1.97.1 per rust-toolchain.toml, crates.io per Cargo.lock).

Honest limitations

hyperpolymath and others added 2 commits October 24, 2026 10:26
Four analysis/compiler repairs and one harness repair, all verified
locally (rustc/clippy 1.99.0, 185 unit+doctests, release build, e2e
46/46):

- pons-cli: Lang::Javascript/Typescript -> Lang::JavaScript/TypeScript.
  The #55 merge carried a CLI that names two pons-core variants that do
  not exist; this is the compile break behind CI run 40038238973
  (exit 101 at clippy).
- pons-core/cfg: bind the named_children iterator to a local in
  literal_non_empty; the block-tail temporary form is rejected by
  newer rustc borrow checking (E0597).
- pons-rules/read_before_init: sort correlated guards by source offset
  before pairing (the LIFO collection order made 'earlier' meaningless);
  treat writes to a base of the target (a.b-pattern) as mutation;
  satisfy clippy::question_mark in guard_key.
- pons-core/suppress: the inline-allowance test asserted a comment does
  NOT allow its own line, contradicting inline_allowed's own-line-or-next
  contract; now asserts both lines plus the string-literal non-suppression.
- tests/e2e.sh: run_pons recorded rc in a shell variable, which a
  command substitution discards; callers read a stale rc. Both ADR-0005
  default-scan assertions read rc=1 while the scans exited 0, and five
  earlier rc checks passed vacuously on stale zeros. rc now travels
  through a temp file read by pons_rc; all 12 call sites migrated.

Co-authored-by: arena-agent <[email protected]>
The offline-verification scaffolding used while the agent sandbox had no
crates.io reachability did its job and must not ship as product:

- vendor/ (~109MB of vendored crates) and the [source.crates-io]
  replacement in .cargo/config.toml: CI and every normal build resolve
  from the committed Cargo.lock instead; the repo does not carry a
  second dependency store.
- tools/vendor-fmt and the [alias] fmt shim that made 'cargo fmt' commit
  to the repository: plain cargo fmt is restored for humans and CI.
- .github/workflows/lockfile.yml and autoformat.yml: one-branch
  auto-commit loops pinned to the retired arena/4457fb85 branch; they
  must never run on main.
- .gitignore: drop the temporary vendor exemption.

No Rust source changes; CI (rustup toolchain per rust-toolchain.toml,
crates.io fetch per Cargo.lock) verifies this tree end to end.

Co-authored-by: arena-agent <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Warning

Review details and warnings were omitted to fit the comment limit.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as ready for review October 24, 2026 10:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T10:33:05.994998Z 65400a1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65400a1d8f

ℹ️ 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".

// The DFS above uses a LIFO stack, so collection order is not source
// order. Correlation is only meaningful from the earlier guard to a later
// one, so restore source order before pairing.
guards.sort_by_key(|guard| guard.start);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Invalidate correlation for mutations inside the earlier guard

Sorting the guards now enables forward pruning even when the earlier if changes its own guard base. For example, an initial if c is not None: x = 1 with else: c = 1, followed by if c is not None: return x, raises UnboundLocalError when called with c=None, but this pass suppresses the finding. The mutation check starts at earlier.end, so it misses the assignment in the earlier else branch and incorrectly treats both conditions as correlated. Before this change, reverse traversal did not suppress that later read. Check mutations from the earlier condition through the later condition before pruning, and add a regression test for this case.

Useful? React with 👍 / 👎.

@hyperpolymath
hyperpolymath merged commit c4394f8 into main Oct 24, 2026
9 of 12 checks passed
@hyperpolymath
hyperpolymath deleted the arena/3c54aee7-pons-asinorum branch October 24, 2026 10:44
hyperpolymath added a commit that referenced this pull request Oct 25, 2026
…ruth (#65)

## Summary

Delivers the remaining estate obligations (the `.deed` /
`.k9-coordination` work per `metadatastician/standards` REQUIRED-FILES)
and the documentation reconciliation.

### Deed era (A2ML is retired — owner rulings D99, D269c, D312, D313)
- **`pons-asinorum_chora.deed`** — repository facts (identity,
authority, routing, status sources, licensing policy), modelled on the
canon repo's own deed. `#u8` uuid8 derived per ADR-008 profile C
(SHA-256 preimage
`gv-clade-index:github.com/hyperpolymath/pons-asinorum`).
- **`0-AI-MANIFEST.deed`** — agent front door: purpose, routing, pons'
evidence-discipline invariants (never dress a heuristic as a proof;
falsifier gate; no silent skips), startup checklist, attestation.
- **`coordination.k9`** — nerve receptor (schema `k9-coordination`
1.2.0): real Justfile recipes, seven invariants, protected paths,
architecture decisions, innervation, `do_not_create`, terminology,
ecosystem.
- Both deeds **pass the estate's normative deed_lint (grammar v1.2.0)**.
The v1.0.0 python linter predates `#u8` and is not normative (CI runs
the js linter at the pinned SHA).
- Legacy descriptiles stay frozen ("legacy source pointers, must not be
extended"), exactly as the canon repo treats its own.

### K9 contracts — 6/6 non-conforming → conforming
The old fork carried standards' documented §11.4 defect: phantom
`../k9/template-hunt.k9.ncl` imports (templates relocated estate-wide by
ADR-001) and a pre-v1.0.0 pedigree. Adopted canon contracts +
`_base.ncl` + `INDEX.a2ml` v2.1.0 from
`metadatastician/standards@8e48b1c`; all six verbs now pass
`k9-validate.sh` (L1 structural; L2 Nickel and L3 Ed25519 honestly
skipped locally — **CI's lane runs L2 with pinned Nickel**).

### CI
- `deed-conformance` + `k9-conformance` lanes calling the estate
reusables at a pinned SHA with the `metadatastician` owner spelling
(measured load-bearing in #64); `require-files: true` so an empty corpus
fails rather than passes vacuously.
- YAML ratchet's closed inventory updated for the two new workflow
files.

### Documentation truth
- **wiki/Home.md** — 13 registered rules over six grammars (PHP
included); verified vs remaining.
- **wiki/Roadmap.md** — rebuilt: shipped table (M0–M4, M7 + PHP family +
trace checker + deed-era metadata), remaining M5/M6/M8, the **precision
debt stated with its Wilson interval** (issue #47: 3/78, CI ≈ [1.3%,
10.7%]), D4 recorded as overtaken.
- **wiki/Rule-Catalogue.md** — rewritten from the live registry; planned
T2/T3 rules explicitly marked not-registered.
- **CHANGELOG.adoc** — records the previously unlogged #55/#56
hardening, this migration, and corrects the stale claim that the trace
protocol contracts are still deferred (they shipped).
- **README.adoc** — estate-metadata section for agents.

## Verification evidence (local)
- `deed_lint.js` (normative, node): both deeds **OK**.
- `k9-validate.sh`: six contracts **conforming** (skips reported as
skips).
- YAML ratchet: closed inventory re-totalled; KYAML style preserved.
- No Rust changes: rust-ci is expected green; the two new lanes are the
ones to watch.

## Flagged for the owner (frozen-file drift, not edited)
- Frozen `0-AI-MANIFEST.a2ml` says `MPL-2.0-or-later`; LICENSE, headers
and README say `MPL-2.0`.
- Frozen `PLAYBOOK.a2ml` names Justfile recipes (`bench`, `catalogue`,
`man`, `docs`, `container-build`) that no longer exist.

---------

Co-authored-by: arena-agent <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant