Skip to content

style(ncl): format Nickel files with nickel format - #106

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/format-nickel-files
Sep 22, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/format-nickel-files

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Formatting only — all 11 genuine Nickel files in this repo fail
nickel format --check.

This is the repo's own half of the Nickel red. The other half was a defect in
the shared gate, fixed in hyperpolymath/standards#985: it globbed *.ncl and so
also checked the 16 *.k9.ncl k9 contracts, which are a different format
(K9! sentinel on line 1) and can never pass. With that gate fix alone this repo
would still be red, on these 11 files, legitimately.

Verification

Run with the pipeline's own pinned nickel 1.18.0 (sha256-verified from the
workflow), not a local build — formatter output differs between releases.

control result
nickel pprint-ast byte-identical before vs after 11 / 11
SPDX + copyright headers unchanged 11 / 11
total comment lines 353 before, 353 after
files touched outside *.ncl 0
nickel format --check after passes on all 11

The AST comparison is the point: this is provably a cosmetic reformat, not a
semantic change.

Not an auto-fix

No --fix runs in CI. The pipeline still uses --check only; this is a
deliberate commit in a reviewable PR.

Remaining

Once standards#985 merges, this repo's caller needs re-pinning to that squash
SHA. Until then the pipeline check here still runs the old gate and will stay
red on the k9 contracts — that is expected and is not caused by this PR.

The 2 files importing build-time JSON (claude-md-data.json, clauses.json)
remain un-typecheckable standalone by design; standards#985 skips them and
discloses each skip by name rather than pretending to check them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ji1bq3TypfycfUPAR7hSxR

All 11 genuine Nickel files failed `nickel format --check`, so the
ci-pipeline Nickel gate reported a real defect once it stopped also
failing over `*.k9.ncl` k9 contracts (hyperpolymath/standards#985).

Formatting only. Verified semantics-preserving by comparing the parsed
AST: `nickel pprint-ast` output is byte-identical for 11 of 11 files
before and after. SPDX and copyright headers are unchanged, and the
total comment-line count is identical (353 before, 353 after).

Run with the pipeline's own pinned nickel 1.18.0 (sha256-verified), not
a local build, because formatter output differs between releases.

No CI auto-fix is involved: this is a deliberate commit, and the
pipeline still runs `--check` only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ji1bq3TypfycfUPAR7hSxR
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: c017ae99-a06d-4ffc-b566-44855759fcda

📥 Commits

Reviewing files that changed from the base of the PR and between 246b673 and 3f2b995.

📒 Files selected for processing (11)
  • .machine_readable/arrival-pack/arrival-pack.ncl
  • .machine_readable/coaptation/coapt.ncl
  • .machine_readable/coaptation/grades.ncl
  • .machine_readable/coaptation/witness-map.ncl
  • .machine_readable/contractiles/_base.ncl
  • .machine_readable/contractiles/adjust/adjust.ncl
  • .machine_readable/contractiles/bust/bust.ncl
  • .machine_readable/contractiles/dust/dust.ncl
  • .machine_readable/contractiles/intend/intend.ncl
  • .machine_readable/contractiles/must/must.ncl
  • .machine_readable/contractiles/trust/trust.ncl

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 6e40a86 into main Sep 22, 2026
48 of 49 checks passed
@hyperpolymath
hyperpolymath deleted the fix/format-nickel-files branch September 22, 2026 13:43
hyperpolymath added a commit to hyperpolymath/rsr-template-repo that referenced this pull request Sep 22, 2026
Formatting only — all 11 genuine Nickel files in the template fail
`nickel format --check`.

**This is where the defect originates.** Every repo seeded from this
template
inherits these files, so each one goes red on the ci-pipeline Nickel
gate over
boilerplate it did not write. `cicd-squabbler` is the measured case
(hyperpolymath/cicd-squabbler#106) — it went 100% red on template files,
never on
its own source. Fixing the template stops the defect propagating to new
seeds.

The other half of that red was a defect in the shared gate itself, fixed
in
hyperpolymath/standards#985: it globbed `*.ncl`, so it also checked the
18
`*.k9.ncl` **k9 contracts** here — a different format (`K9!` sentinel on
line 1)
that can never pass `nickel typecheck`. Those 18 files are untouched by
this PR.

## Verification

Run with the pipeline's **own pinned nickel 1.18.0** (sha256-verified
from the
workflow), not a local build — formatter output differs between
releases.

| control | result |
|---|---|
| `nickel pprint-ast` byte-identical before vs after | **11 / 11** |
| SPDX + copyright headers unchanged | 11 / 11 |
| total comment lines | 356 before, 356 after |
| files touched outside genuine `*.ncl` | 0 |
| `nickel format --check` after | passes on all 11 |

The AST comparison is the point: this is provably a cosmetic reformat,
not a
semantic change.

## Not an auto-fix

No `--fix` runs in CI. The pipeline still uses `--check` only; this is a
deliberate commit in a reviewable PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01Ji1bq3TypfycfUPAR7hSxR

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant