Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.459
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.462
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 4 commits
- 2 files changed
- 1 contributor
Commits on Aug 24, 2026
-
Fix Intent-Staleness Check to Read the Manifest's intentRef (#977)
`check_intent_staleness` compared six intent-fidelity entries (`.editorconfig`, `.editorconfig-checker.json`, `.gitattributes`, `version.json`, `AUDIT.md`, `spec/secrets.json`) against the hub file sharing their own path, because it only read the manifest's `reference` field, which none of the six set. Their entries declare `intentRef` instead, naming a different canonical, so the comparison ran against the wrong hub file in both directions: a false positive (`AUDIT.md`'s fleet-wide procedure changing flagged a downstream repo's unrelated self-audit doc) and a silent false negative (`docs/repo-config.md` changing raised nothing, since no entry declared it as anyone's canonical). Add `intent_canonical_rel(item, path)`: `reference`, then `intentRef`, then `path`, stripping an `intentRef`'s `#anchor` since it names a section for a reader rather than a narrower file to diff against. Covered by four cases in `_selftest()`. Verified: `--selftest` passes (including the four new cases), `ruff check`/`format --check`, `mypy`, `scripts/prose_lint.py`, `scripts/repo_gate.py`, and the `scripts/tests/` pytest suite (838 passed) all clean. A pre-existing `pyright` finding at `spec/audit.py:832` is unrelated to this change (present identically on `origin/develop`). Fixes #726 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved intent staleness checks by consistently resolving canonical reference paths. * Added fallback handling when preferred references are unavailable. * Correctly handles anchors while preserving literal `#` characters in paths. * **Validation** * Validates intent references for supported formats, safe repository paths, anchors, and existing target files. * Rejects absolute paths, parent traversal, backslashes, and Windows drive-letter paths. * **Tests** * Added coverage for reference precedence, fallback behavior, anchor handling, unsafe paths, and literal `#` characters. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for fbe363d - Browse repository at this point
Copy the full SHA fbe363dView commit details -
Resolve Symlinks Before Accepting a Canonical File (#979)
CodeRabbit finding on the develop -> main promotion PR (#978), against `spec/validate.py`'s new `is_file()` checks from PR #977: a tracked in-repo symlink whose target escapes `ROOT` passes both `escapes_repo_root()` (a lexical string check) and a bare `Path.is_file()` (which follows the link) the same way a real file would. The audit engine would then read that external target's live filesystem content while dating it from the symlink's own git history. Add `canonical_file_in_root()`, which resolves the candidate strictly and requires the result to both exist as a file and stay under `ROOT`, in place of the two `is_file()` calls. Verified by hand: symlinked a path inside this checkout to a file outside it, confirmed the new check rejects it while still accepting a real hub file and still rejecting a missing path and a directory, removed the symlink after. `--selftest`, `ruff`, `mypy`, `prose_lint.py`, `repo_gate.py`, and the `scripts/tests/` pytest suite (838 passed) all clean. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved validation of referenced files to ensure paths resolve to existing files within the repository. - Added protection against references that use symlinks or path variations to escape the repository boundary. - Updated `reference` and `intentRef` validation for more accurate and reliable results. - Invalid or out-of-bound file references are now rejected consistently. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 5e998dc - Browse repository at this point
Copy the full SHA 5e998dcView commit details -
Make intent_canonical_rel Crash-Safe on Malformed intentRef (#980)
qodo findings on PR #978, the develop -> main promotion PR: - `intent_canonical_rel()` called `.split()` on `intentRef` through a bare truthiness check, so a non-string value (a malformed `files.json` entry) still crashed the whole audit run. `spec/validate.py`'s own type check (added on PR #977) only helps a caller that runs it first, and `spec/audit.py` does not: it loads `files.json` directly. `reference`'s parallel or-based use elsewhere never method-calls the value, so it carried no matching risk, `isinstance` guards on this function specifically close the gap. Verified by hand: calling the function with a non-string `intentRef` used to raise `AttributeError`, now returns `path`. - `escapes_repo_root()`'s docstring, and one line of `intent_canonical_rel()`'s, still wrapped a single sentence across physical lines. `prose_lint.py`'s comment-wrap check reads `#` comments, not `"""` docstrings, so neither round that touched these functions caught it. Reformatted both to one sentence per line, plus a leftover `_selftest()` comment with the identical wrap. Verified: `--selftest` (new crash-safety case included), `ruff`, `mypy`, `prose_lint.py`, `repo_gate.py`, and the `scripts/tests/` pytest suite (838 passed) all clean. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved validation of intent references by rejecting malformed values and falling back to the item path when needed. * Preserved correct reference precedence and anchor stripping behavior. * **Documentation** * Clarified path validation behavior for parent-directory traversal, leading slashes, backslashes, and Windows drive letters. * **Tests** * Added coverage for invalid intent references and reference normalization. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 52db949 - Browse repository at this point
Copy the full SHA 52db949View commit details
Commits on Aug 25, 2026
-
Promote Develop to Main (#978)
Promotes issue #726's fix (squash-merged PR #977) from develop to main. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved validation for intent references, including anchored paths and invalid or unsafe path formats. * References must now resolve to existing files within the repository. * Staleness checks consistently use the canonical intent reference path. * **Tests** * Added coverage for reference precedence, fallback behavior, anchor handling, literal `#` characters, and path traversal scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for a49767e - Browse repository at this point
Copy the full SHA a49767eView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.0.459...2.0.462