Skip to content

docs(issues): [#2349] add spec for the contract checker evidence boundary - #2350

Merged
josecelano merged 5 commits into
torrust:developfrom
josecelano:2349-2278-contract-checker-evidence-boundary-spec
Sep 27, 2026
Merged

josecelano merged 5 commits into
torrust:developfrom
josecelano:2349-2278-contract-checker-evidence-boundary-spec

Conversation

@josecelano

@josecelano josecelano commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Spec-only PR for #2349, EPIC #2278 order 6: make agent-review-report-contract state what it reads, so a passing run is never cited as audit evidence (friction items F56, false-evidence part, and F57).

At develop the checker reads 15 workflow documents and no audit record, but no hook, workflow, skill, agent, or template mentions it; the PR #2271, #2279, and #2300 audits nonetheless cite it as current-tree verification. It prints plain text, is unclassified in the CLI output-contract ADR, and pins template fields at mixed granularity.

The specification plans: one pin-granularity rule (label first; placeholder only when it states an admissible-value rule, with a comment); module docs naming the checked files and the audit-record boundary; migration to no-stdout-result (NDJSON failures on stderr, and one stderr pass record listing the checked files), approved by the maintainer under the ADR's migrate-when-touched rule; tests for that record and empty stdout; and one process-pr-review sentence. CI or pre-commit invocation, audit validation, and historical audit edits are out of scope.

The EPIC #2278 update also records the maintainer's ordering decision (order 6 now, order 5 after PR #2344 and #2347 triage) and the three approved decisions for the order 7 validator port.

Files touched

  • docs/issues/open/2349-2278-contract-checker-evidence-boundary/ISSUE.md: new specification.
  • docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/EPIC.md: order 6 row linked to Make agent-review-report-contract state what it reads #2349 and a progress-log entry.
  • docs/pr-reviews/pr-2350-review/PR-REVIEW.md: audit for review round 1.

Review Round 1

Copilot review 5326193009 (2 findings; audit docs/pr-reviews/pr-2350-review/PR-REVIEW.md):

  • docs(issues): link write-unit-test and qualify audit paths in the #2349 spec (audit F1, F2). write-unit-test is added to skill-links; no inline process-pr-review marker is added, because the semantic skill-link convention makes frontmatter canonical.
  • docs(pr-reviews): add PR #2350 review audit
  • docs(pr-reviews): record PR #2350 thread resolution

Notes for reviewers

Validation

Related to #2349
Related to #2278

Copilot AI lite review requested due to automatic review settings September 26, 2026 14:05

Copilot AI 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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Adds a new folder-style issue specification for #2349 (EPIC #2278 order 6) to define the evidence boundary and output-contract migration plan for agent-review-report-contract, and updates the parent EPIC to link and log the new subissue.

Changes:

  • Add a new spec document for #2349 describing scope, decisions, plan, verification, and acceptance criteria.
  • Update EPIC #2278 to assign subissue 6 to #2349 and record the maintainer’s sequencing decision in the progress log.
File Description
docs/​issues/​open/​2349-2278-contract-checker-evidence-boundary/​ISSUE.md New specification defining the checker’s evidence boundary, output-contract migration, pin-granularity rule, and verification plan.
docs/​issues/​open/​2278-2003-strengthen-pr-review-author-self-audit/​EPIC.md Links subissue 6 to #2349 and records the ordering decision and related approvals in the EPIC progress log.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano josecelano self-assigned this Sep 26, 2026
@josecelano
josecelano force-pushed the 2349-2278-contract-checker-evidence-boundary-spec branch from 1f01422 to 8ad6355 Compare September 27, 2026 06:15
@josecelano

Copy link
Copy Markdown
Member Author

ACK f47addb

@josecelano
josecelano merged commit 6a7f1db into torrust:develop Sep 27, 2026
1 check passed
@josecelano
josecelano deleted the 2349-2278-contract-checker-evidence-boundary-spec branch September 27, 2026 08:16
josecelano added a commit that referenced this pull request Sep 27, 2026
1268bef docs(pr-reviews): record PR #2353 thread resolution (Jose Celano)
3bbb970 docs(pr-reviews): add PR #2353 review audit (Jose Celano)
b010702 docs(pr-reviews): close PR #2339 audit after PR #2344 merge (Jose Celano)

Pull request description:

  ## Summary

  Closes the PR #2339 audit after its post-merge follow-up, PR #2344, merged into `develop` at `fcde51db`. This follows the PR #2276 precedent, which closed the PR #2269 audit after PR #2271 merged.

  - F1-F3 in `docs/pr-reviews/pr-2339-review/PR-REVIEW.md` move from `FOLLOW_UP`/`OPEN` to `FIXED`/`RESOLVED`. Their resolution references are the merged fix commits, `test(dev-tools): pin review-thread query fields and explicit nulls` (F1, F2) and `docs(issues): record the exact #2333 evidence commands` (F3).
  - Each `Reply URL` is now the final reply on its thread, which cites the merge. The earlier follow-up replies remain on the threads.
  - A Processing Log entry records the merge, the re-derivation of each fix at `develop`, and the resolution.

  GitHub-side actions already taken, as the approval record allows (<#2339 (comment)>): each of the three PR #2339 threads received a final reply citing `fcde51db` and was resolved. GraphQL shows 3 threads, 0 unresolved.

  ## Files touched

  - `docs/pr-reviews/pr-2339-review/PR-REVIEW.md`
  - `docs/pr-reviews/pr-2353-review/PR-REVIEW.md`: audit for this PR's review round 1.

  ## Review Round 1

  Copilot review 5329114076 raised one concern on three lines: use SHA permalinks instead of commit subjects in the `FIXED` resolution references. Recorded as F1, with F2 and F3 as re-raises, all `NO_ACTION`/`SUPERSEDED`. `process-pr-review` requires unique commit subjects and forbids branch SHAs, the EPIC #2278 Decision Record keeps that form, each cited subject matches exactly one commit, and each row already links PR #2344. Replied with the prescribed `Superseded by F1:` form and resolved.

  - `docs(pr-reviews): add PR #2353 review audit`
  - `docs(pr-reviews): record PR #2353 thread resolution`

  Rebased onto `develop` `6a7f1db5` (after PR #2350) before processing, and again onto `41e7938c` (after PR #2346) before merge; both rebases were clean.

  ## Validation

  - `validate-audit-record.py --pr-number 2339 --base a20e8f3` exits `0` (3 rows, 3 log entries). The base is the PR #2339 merge, so the merged fix commits are in range; the default base `develop` already contains them.
  - At `develop`, `cargo test --package github-review-threads` passes 15 unit and 7 CLI tests.
  - The pre-commit hook (including `linter all`) and the pre-push hook passed.

  Related to #2333
  Related to #2278

ACKs for top commit:
  josecelano:
    ACK 1268bef

Tree-SHA512: b175303681549518fdf713273ba82e564ac6ad56fa415fc131b8fa4b5fdebce671976ce5e1480e5bbc69bb9be8827c413c7d5d08def2f17fb623dc5a81d7523d
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.

2 participants