Skip to content

ci: run Gaze on reading-stone with the PR's own analyzer build - #41

Merged
jflowers merged 7 commits into
zero-dot-force:mainfrom
jflowers:ci/gaze-report
Nov 30, 2026
Merged

jflowers merged 7 commits into
zero-dot-force:mainfrom
jflowers:ci/gaze-report

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Closes #40.

What

  • test job: the Node 24 leg uploads coverage/coverage-final.json as the coverage artifact.
  • New gaze report job (needs test, contents: read, no secrets). It:
    • builds reading-stone and downloads the coverage, failing if the file is missing;
    • installs Gaze v2.5.0 with go install;
    • links this commit's dist/main.js as gaze-analyzer-typescript;
    • runs gaze report ./src/... --analyzer gaze-analyzer-typescript --format=markdown;
    • writes the report to the job summary and uploads it as the gaze-report artifact.
  • Report-only: no thresholds and no AI adapter. Only test (22) and test (24) gate releases (ci_checks in release.yml), so releases are unaffected.

Spec: openspec/changes/ci-gaze-report/, committed separately before the workflow change.

Why it's built this way

Local baseline (src/, Gaze v2.5.0)

Metric Value
Functions 360
Avg line coverage 94.8%
CRAPload 9 (A-)
GazeCRAPload 165 (F)
Avg contract coverage (tests) 45.9%

Checks

  • actionlint passes.
  • npm ci, npx biome check src/ tests/, npm run build and npx vitest run --coverage pass: 1503 tests, 95.05% lines.
  • Task 2.2 (the job passes here, with non-zero coverage in the summary) is checked off once this PR's CI runs.

Constitution check

Principle Verdict Why
Protocol Fidelity PASS Gaze drives the built analyzer's protocol end to end on every PR.
Detection Accuracy N/A No detection code changes.
TypeScript-Native Analysis N/A No analysis code changes.
Testability PASS Gates unchanged, plus an end-to-end check.
Analysis Safety PASS No new npm dependencies; Gaze is pinned by module version; read-only job.

🤖 Generated with Claude Code

jflowers added a commit to jflowers/reading-stone that referenced this pull request Nov 24, 2026
@jflowers
jflowers marked this pull request as ready for review November 26, 2026 23:37
@jflowers
jflowers enabled auto-merge (rebase) November 26, 2026 23:37
jflowers added a commit to jflowers/reading-stone that referenced this pull request Nov 28, 2026
@jflowers
jflowers disabled auto-merge November 30, 2026 19:35

@jflowers jflowers left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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)

  1. 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 pins GAZE_VERSION to v2.7.0, as do design.md and the reusable workflow. Inline comment attached.
  2. LOW — red-but-non-blocking gaze job (.github/workflows/ci.yml): the gaze job fails on an analyzer/protocol regression as the spec requires, but the required CI OK gate does not depend on gaze or gaze-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;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Suggested change
- installs Gaze v2.5.0;
- installs Gaze v2.7.0;

(tasks.md 1.2 needs the same one-word fix.)

Comment thread .github/workflows/ci.yml
if-no-files-found: error
retention-days: 7

# Gaze self-report (openspec ci-gaze-report). Report-only: no thresholds,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

jflowers and others added 7 commits November 30, 2026 16:51
…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]>
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]>
…i-report skipped on the fork PR and passed)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jflowers added a commit to jflowers/gh-hud that referenced this pull request Nov 30, 2026
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]>
@jflowers
jflowers merged commit d45fcb5 into zero-dot-force:main Nov 30, 2026
7 checks passed
jflowers added a commit that referenced this pull request Nov 30, 2026
@jflowers
jflowers deleted the ci/gaze-report branch November 30, 2026 22:29
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.

ci: run Gaze on reading-stone with reading-stone as the TypeScript analyzer

2 participants