Repository navigation
ci: run Gaze on reading-stone with the PR's own analyzer build - #41
Conversation
…e#41 with 95.1% line coverage) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e#41 with 95.1% line coverage) Co-Authored-By: Claude Opus 5.5 <[email protected]>
b115daa to
fdb8aeb
Compare
jflowers
left a comment
There was a problem hiding this comment.
Council verdict: APPROVE WITH ADVISORIES (posted as COMMENT: GitHub does not allow approving or requesting changes on your own pull request.)
Review summary
Five Divisor reviewers (adversary, architect, curator, guard, sre) reviewed the 247-line diff; all five returned approving verdicts — 4 APPROVE, 1 APPROVE WITH ADVISORIES. Two LOW advisories (both divisor-sre); no CRITICAL or HIGH findings.
| Check | Status |
|---|---|
| gaze report | PASS |
| gaze-ai-report / Gaze AI Report | PASS |
| CI OK | PASS |
| test (22) | PASS |
| test (24) | PASS |
| scope / Scope | PASS |
| automerge / Auto-merge | SKIPPED |
Local gates: Gates ran at: cd9a051ddef653483106c9c6594556ca132c2c9d (worktree); config from 8f4092514dfe37ec3aa1480760ccdd2fe8b67c99 — all parity tools (biome, build, vitest) covered by passing CI; pre-flight PASS.
Advisories (2, both LOW)
- LOW — stale version text in spec artifacts (
openspec/changes/ci-gaze-report/proposal.md:14, also tasks.md 1.2): the proposal says the gaze job "installs Gaze v2.5.0"; the implemented workflow pinsGAZE_VERSIONto v2.7.0, as do design.md and the reusable workflow. Inline comment attached. - LOW — red-but-non-blocking gaze job (
.github/workflows/ci.yml): thegazejob fails on an analyzer/protocol regression as the spec requires, but the requiredCI OKgate does not depend ongazeorgaze-ai-report. Consistent with the report-only decision; the gap is recorded nowhere a maintainer would look when promoting Gaze to a required gate. Inline comment attached.
Security
No findings. The gaze job uses no secrets; gaze-ai-report passes OPENCODE_CONFIG_CONTENT only through the secrets context to a SHA-pinned reusable workflow; checkout sets persist-credentials: false; both new jobs hold contents: read.
Constitution compliance
No findings. Dogfooding the PR's own analyzer build supports Testability (IV); report-only static analysis supports Analysis Safety (V); no analyzer source changes (Protocol Fidelity and Detection Accuracy unaffected).
Linked issue
Closes #40 — 4/4 core criteria covered; the AI report (issue-out-of-scope) is covered by this PR's own OpenSpec change.
This review was generated by /uf.review-pr (AI-assisted).
| - `ci.yml`: the `test (24)` leg uploads `coverage/coverage-final.json` as an artifact. | ||
| - A new `gaze` job, which needs `test`: | ||
| - builds Reading Stone and downloads that coverage, failing if the file is missing; | ||
| - installs Gaze v2.5.0; |
There was a problem hiding this comment.
LOW (operational-documentation, divisor-sre): This line pins Gaze v2.5.0, but the implemented gaze job pins GAZE_VERSION: v2.7.0 (.github/workflows/ci.yml) and the reusable workflow is called at v2.7.0. design.md ("go install …/cmd/[email protected]") and task 3.1 confirm v2.7.0 is the current version, and tasks.md 1.2 carries the same stale v2.5.0 text. The spec artifacts were written around the v2.5.0 prototype and updated piecemeal on the move to v2.7.0; conflicting pinned versions are the value most likely to drift on the next Gaze bump.
| - installs Gaze v2.5.0; | |
| - installs Gaze v2.7.0; |
(tasks.md 1.2 needs the same one-word fix.)
| if-no-files-found: error | ||
| retention-days: 7 | ||
|
|
||
| # Gaze self-report (openspec ci-gaze-report). Report-only: no thresholds, |
There was a problem hiding this comment.
LOW (runtime-observability, divisor-sre): A failing gaze job shows red without blocking the merge. The spec requires the job to fail on an analyzer or protocol regression (openspec/changes/ci-gaze-report/specs/ci/spec.md, "An analyzer failure fails the job"), but the one required check ci-ok needs only [scope, test] — gaze and gaze-ai-report sit outside it. That matches the report-only decision, but this comment block records "Report-only: no thresholds" without recording that a red gaze check is non-blocking under branch protection. When a maintainer later promotes Gaze to a required gate, that gap is recorded nowhere they would look — one sentence here (or in design.md's Report-only decision) closes it.
…o-dot-force#40) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ze-report 1.1, 1.2, 2.1) The Node 24 test leg uploads coverage-final.json; a report-only gaze job builds reading-stone, links dist/main.js as gaze-analyzer-typescript, and runs gaze v2.5.0 on ./src/..., publishing the markdown report to the job summary and as an artifact. Refs zero-dot-force#40 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e#41 with 95.1% line coverage) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gaze v2.7.0's reusable AI-report workflow supports TypeScript analyzers (unbound-force/gaze#375). It needs the opencode-config secret, which fork PRs don't get, so the report-only gaze job stays and a gaze-ai-report job calling the reusable workflow is added next to it, reusing test (24)'s coverage. New tasks 3.1-3.3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…port 3.1, 3.2) gaze-ai-report calls unbound-force/gaze's reusable AI-report workflow at v2.7.0 (pinned by SHA) with test (24)'s coverage and this commit's build as gaze-analyzer-typescript. It runs the AI report where OPENCODE_CONFIG_CONTENT is available and skips it on fork PRs, where the gaze job keeps reporting. The coverage artifact now keeps its coverage/ prefix, the layout the reusable workflow downloads into the workspace root, and the gaze job moves to Gaze v2.7.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s hidden files) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…i-report skipped on the fork PR and passed) Co-Authored-By: Claude Opus 5.5 <[email protected]>
cd9a051 to
ab0a9d5
Compare
BotOrg was a single org, so my own PRs in zero-dot-force were reviewed as my gh login. /uf.review-pr then had to post its verdict as a COMMENT, since GitHub rejects approving your own PR, and the PR stayed blocked on a required review (zero-dot-force/reading-stone#41). uf-divisor is a member with write access there, so its approval counts. BotOrgs now lists unbound-force and zero-dot-force; InBotOrg matches any of them, which brings zero-dot-force into the bot review identity, the Queue until uf-divisor reviews the head, and auto review dispatch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…% line coverage) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #40.
What
testjob: the Node 24 leg uploadscoverage/coverage-final.jsonas thecoverageartifact.gaze reportjob (needstest,contents: read, no secrets). It:go install;dist/main.jsasgaze-analyzer-typescript;gaze report ./src/... --analyzer gaze-analyzer-typescript --format=markdown;gaze-reportartifact.test (22)andtest (24)gate releases (ci_checksinrelease.yml), so releases are unaffected.Spec:
openspec/changes/ci-gaze-report/, committed separately before the workflow change.Why it's built this way
gaze init.gaze initis already applied (--forceis a no-op), butgaze init --ciskips without ago.mod, and Gaze's reusable workflow is Go-only. That's tracked upstream in feat: CI support for external analyzers (non-Go repos) in the reusable AI-report workflow and gaze init --ci unbound-force/gaze#375../src/...: the default./...also scores 645 scaffolded.opencode/functions (CRAPload 280 instead of 9).--analyzer: Gaze doesn't yet honor--languagealone (gaze report: honor --language alone for external analyzer dispatch unbound-force/gaze#282).Local baseline (
src/, Gaze v2.5.0)Checks
actionlintpasses.npm ci,npx biome check src/ tests/,npm run buildandnpx vitest run --coveragepass: 1503 tests, 95.05% lines.Constitution check
🤖 Generated with Claude Code