From 5304fd1adbb3d42b0a1a11d40fcbbbbff8a283a5 Mon Sep 17 00:00:00 2001 From: EhsanAzish80 Date: Sat, 5 Dec 2026 20:11:03 +0300 Subject: [PATCH 1/4] Prepare Action 1.4.0 for factual CLI --- CHANGELOG.md | 7 +++++++ README.md | 25 ++++++++++++++++--------- action.yml | 4 ++-- examples/pr-comparison.yml | 4 ++-- examples/review.yml | 4 ++-- 5 files changed, 29 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3811296..0fe48a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 1.4.0 — 2026-12-05 + +- Uses Devscope CLI 0.4.0 by default. +- Removes predictive language from review guidance; Git history is presented as + factual context after the preregistered model and co-change claims failed. +- Keeps configured-warning and coverage gates separate, explicit and opt-in. + # 1.3.0 — 2026-12-04 - Opt-in review checklists, history evidence and package scopes. diff --git a/README.md b/README.md index ef36a68..b6ef1dc 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,14 @@ **Give reviewers a useful place to start.** -Add an evidence-led checklist to each PR: changed files, history, co-change -signals and optional patch coverage. Share an updated comment plus offline +Add an evidence-led checklist to each PR: changed files, co-change facts and +optional patch coverage. Share an updated comment plus offline HTML, JSON and Markdown reports. Start advisory; choose blocking gates later. +Devscope makes no predictive risk claim. Its preregistered evaluation could not +beat ranking by file size, so CLI 0.4.0 removes model scores and presents Git +history only as inspectable context. [Read the negative result](https://github.com/EhsanAzish80/Devscope/blob/main/docs/negative-result.md). + [![Tests](https://github.com/EhsanAzish80/devscope-action/actions/workflows/test.yml/badge.svg)](https://github.com/EhsanAzish80/devscope-action/actions/workflows/test.yml) ![Actual Devscope report on the integration PR](https://raw.githubusercontent.com/EhsanAzish80/Devscope/main/docs/assets/pr-comment.jpg) @@ -32,13 +36,13 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - uses: EhsanAzish80/devscope-action@v1.3.0 + - uses: EhsanAzish80/devscope-action@v1.4.0 with: review: 'true' - devscope-version: '0.3.0' + devscope-version: '0.4.0' ``` -Action 1.3.0 uses CLI 0.3.0 by default; the explicit version keeps your workflow +Action 1.4.0 uses CLI 0.4.0 by default; the explicit version keeps your workflow reproducible. `@v1` follows the latest compatible Action release. Prefer the versioned tag when you want deliberate upgrades. @@ -57,7 +61,7 @@ For a job summary with no comment permission, use the [CLI-only workflow](https: ![Offline demo report; all sample data is synthetic](https://raw.githubusercontent.com/EhsanAzish80/Devscope/main/docs/assets/html-report.jpg) -[Download the labelled sample HTML](https://github.com/EhsanAzish80/Devscope/releases/download/v0.3.0/devscope-demo.html) +[Download the labelled sample HTML](https://github.com/EhsanAzish80/Devscope/releases/download/v0.4.0/devscope-demo.html) ## Enable a new-warning gate when ready @@ -94,7 +98,7 @@ when the report records absolute paths from another machine. | `path` | `.` | Directory to scan; review/compare require the repository root | | `review` | `false` | PR checklist, history evidence and report artifacts | | `compare` | `false` | Compact PR count comparison; review supersedes it when both are enabled | -| `devscope-version` | `0.3.0` | Published CLI package version | +| `devscope-version` | `0.4.0` | Published CLI package version | | `devscope-ref` | unset | Advanced override: full upstream CLI commit SHA | | `fail-on-new` | `false` | Block new configured review warnings; requires review mode | | `package` | unset | Repository-relative package scope; requires review mode | @@ -121,6 +125,9 @@ setup instead of producing a default grade. | `new-warnings` | New warning count, empty outside review mode | | `health`, `grade`, `risk`, `onboarding` | Working-tree heuristic summary fields | +The legacy `risk` health label is a static code-health heuristic for compatibility; +it is not a defect probability or the removed history model. + Reports are available to later steps in the same job; advanced artifacts are retained for 7 days. Long comments/summaries point to complete report files. Reviews use committed snapshots; working-tree health metrics can also include @@ -138,7 +145,7 @@ node --test tests/comment.test.cjs ``` CI tests the published CLI on Ubuntu, macOS and Windows, including artifacts, -permissive gates, a real regression gate and the first-run demo. CLI 0.3.0 and -Action 1.3.0 replace the source pins needed during development. +permissive gates, a real regression gate and the first-run demo. CLI 0.4.0 and +Action 1.4.0 replace the source pins needed during development. MIT licensed. See [LICENSE](LICENSE). diff --git a/action.yml b/action.yml index bff7726..ac5c01d 100644 --- a/action.yml +++ b/action.yml @@ -30,7 +30,7 @@ inputs: devscope-version: description: 'PyPI version of devscope to install' required: false - default: '0.3.0' + default: '0.4.0' devscope-ref: description: 'Optional full commit SHA from EhsanAzish80/Devscope; overrides devscope-version' required: false @@ -40,7 +40,7 @@ inputs: required: false default: 'false' review: - description: 'Enable history-aware review guidance and HTML/JSON artifacts on pull requests (CLI 0.3.0+)' + description: 'Enable factual review guidance and HTML/JSON artifacts on pull requests (CLI 0.4.0+)' required: false default: 'false' fail-on-new: diff --git a/examples/pr-comparison.yml b/examples/pr-comparison.yml index 66df370..9c40649 100644 --- a/examples/pr-comparison.yml +++ b/examples/pr-comparison.yml @@ -11,7 +11,7 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - - uses: EhsanAzish80/devscope-action@v1.3.0 + - uses: EhsanAzish80/devscope-action@v1.4.0 with: compare: 'true' - devscope-version: '0.3.0' + devscope-version: '0.4.0' diff --git a/examples/review.yml b/examples/review.yml index 1372d18..c775d97 100644 --- a/examples/review.yml +++ b/examples/review.yml @@ -11,7 +11,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - uses: EhsanAzish80/devscope-action@v1.3.0 + - uses: EhsanAzish80/devscope-action@v1.4.0 with: review: 'true' - devscope-version: '0.3.0' + devscope-version: '0.4.0' From 238407cfe72bd388e7bcfe3a693ff17a05f17087 Mon Sep 17 00:00:00 2001 From: EhsanAzish80 Date: Sat, 5 Dec 2026 20:12:17 +0300 Subject: [PATCH 2/4] Test Action against CLI 0.4 release commit --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 602be5a..75335d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,6 +60,7 @@ jobs: id: test-basic with: path: test-repo + devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 - name: Verify outputs shell: bash @@ -80,6 +81,7 @@ jobs: uses: ./ with: path: test-repo + devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 fail-under: F max-risk: High max-onboarding: Hard @@ -90,6 +92,7 @@ jobs: id: comparison with: compare: 'true' + devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 - name: Verify comparison report if: github.event_name == 'pull_request' @@ -105,6 +108,7 @@ jobs: with: review: 'true' fail-on-new: 'true' + devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 - name: Verify advanced reports and real CLI regression gate if: github.event_name == 'pull_request' @@ -120,7 +124,7 @@ jobs: data = json.loads(pathlib.Path(os.environ['JSON_REPORT']).read_text(encoding='utf-8')) assert data['kind'] == 'review' and data['new_warnings'] == 0 assert os.environ['NEW_WARNINGS'] == '0' - assert 'Filter files and evidence' in html and 'History-aware hotspots' in html + assert 'Filter files and evidence' in html and 'All configured findings' in html fixture = pathlib.Path('test-repo').resolve() base = subprocess.check_output(['git', '-C', str(fixture), 'rev-parse', 'HEAD'], text=True).strip() (fixture / 'regression.py').write_text('pass\n' * 501, encoding='utf-8') From 09e92c64159f1c15536a170f746fffb3f41b8c54 Mon Sep 17 00:00:00 2001 From: EhsanAzish80 Date: Sat, 5 Dec 2026 20:15:06 +0300 Subject: [PATCH 3/4] Test published CLI 0.4 package --- .github/workflows/test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75335d6..cd94a72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,7 +60,6 @@ jobs: id: test-basic with: path: test-repo - devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 - name: Verify outputs shell: bash @@ -81,7 +80,6 @@ jobs: uses: ./ with: path: test-repo - devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 fail-under: F max-risk: High max-onboarding: Hard @@ -92,7 +90,6 @@ jobs: id: comparison with: compare: 'true' - devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 - name: Verify comparison report if: github.event_name == 'pull_request' @@ -108,7 +105,6 @@ jobs: with: review: 'true' fail-on-new: 'true' - devscope-ref: 69366ae91796dc341c8f40499fa785dcc5bb0ea9 - name: Verify advanced reports and real CLI regression gate if: github.event_name == 'pull_request' From b2832c5ee8e8c26412bbf909d22607760b8987b6 Mon Sep 17 00:00:00 2001 From: EhsanAzish80 Date: Sat, 5 Dec 2026 20:22:08 +0300 Subject: [PATCH 4/4] Use Devscope CLI 0.4.1 --- CHANGELOG.md | 2 +- README.md | 8 ++++---- action.yml | 4 ++-- examples/pr-comparison.yml | 2 +- examples/review.yml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fe48a0..f9179f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # 1.4.0 — 2026-12-05 -- Uses Devscope CLI 0.4.0 by default. +- Uses Devscope CLI 0.4.1 by default, including the corrected `--fail-on-new` process exit code. - Removes predictive language from review guidance; Git history is presented as factual context after the preregistered model and co-change claims failed. - Keeps configured-warning and coverage gates separate, explicit and opt-in. diff --git a/README.md b/README.md index b6ef1dc..c043795 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ jobs: - uses: EhsanAzish80/devscope-action@v1.4.0 with: review: 'true' - devscope-version: '0.4.0' + devscope-version: '0.4.1' ``` -Action 1.4.0 uses CLI 0.4.0 by default; the explicit version keeps your workflow +Action 1.4.0 uses CLI 0.4.1 by default; the explicit version keeps your workflow reproducible. `@v1` follows the latest compatible Action release. Prefer the versioned tag when you want deliberate upgrades. @@ -98,7 +98,7 @@ when the report records absolute paths from another machine. | `path` | `.` | Directory to scan; review/compare require the repository root | | `review` | `false` | PR checklist, history evidence and report artifacts | | `compare` | `false` | Compact PR count comparison; review supersedes it when both are enabled | -| `devscope-version` | `0.4.0` | Published CLI package version | +| `devscope-version` | `0.4.1` | Published CLI package version | | `devscope-ref` | unset | Advanced override: full upstream CLI commit SHA | | `fail-on-new` | `false` | Block new configured review warnings; requires review mode | | `package` | unset | Repository-relative package scope; requires review mode | @@ -145,7 +145,7 @@ node --test tests/comment.test.cjs ``` CI tests the published CLI on Ubuntu, macOS and Windows, including artifacts, -permissive gates, a real regression gate and the first-run demo. CLI 0.4.0 and +permissive gates, a real regression gate and the first-run demo. CLI 0.4.1 and Action 1.4.0 replace the source pins needed during development. MIT licensed. See [LICENSE](LICENSE). diff --git a/action.yml b/action.yml index ac5c01d..8bee1a5 100644 --- a/action.yml +++ b/action.yml @@ -30,7 +30,7 @@ inputs: devscope-version: description: 'PyPI version of devscope to install' required: false - default: '0.4.0' + default: '0.4.1' devscope-ref: description: 'Optional full commit SHA from EhsanAzish80/Devscope; overrides devscope-version' required: false @@ -40,7 +40,7 @@ inputs: required: false default: 'false' review: - description: 'Enable factual review guidance and HTML/JSON artifacts on pull requests (CLI 0.4.0+)' + description: 'Enable factual review guidance and HTML/JSON artifacts on pull requests (CLI 0.4.1+)' required: false default: 'false' fail-on-new: diff --git a/examples/pr-comparison.yml b/examples/pr-comparison.yml index 9c40649..a3cbf96 100644 --- a/examples/pr-comparison.yml +++ b/examples/pr-comparison.yml @@ -14,4 +14,4 @@ jobs: - uses: EhsanAzish80/devscope-action@v1.4.0 with: compare: 'true' - devscope-version: '0.4.0' + devscope-version: '0.4.1' diff --git a/examples/review.yml b/examples/review.yml index c775d97..915149d 100644 --- a/examples/review.yml +++ b/examples/review.yml @@ -14,4 +14,4 @@ jobs: - uses: EhsanAzish80/devscope-action@v1.4.0 with: review: 'true' - devscope-version: '0.4.0' + devscope-version: '0.4.1'