Skip to content

Stop formatting files this repo doesn't own - #36

Open
bdelanghe wants to merge 1 commit into
mainfrom
claude/fmt-harness-files
Open

Stop formatting files this repo doesn't own#36
bdelanghe wants to merge 1 commit into
mainfrom
claude/fmt-harness-files

Conversation

@bdelanghe

Copy link
Copy Markdown
Collaborator

Closes #35. Unblocks #34, and every other PR against this repo.

deno task ci fails at its first step on an untouched checkout of main, and has since 2026-08-08standard.yml runs 14, 17 and 19 are all red:

error: Found 3 not formatted files in 111 files
  CLAUDE.md
  .claude/settings.json
  .github/workflows/front-desk-add.yml

All three are written by the org Claude harness, not by lone, and all three arrive with no trailing newline. deno fmt here takes no path arguments, so it covers Markdown, JSON and YAML too and rejects them. baobab carries the same files unformatted and is green only because its task is path-scoped (deno fmt --check src tests cli).

Why deno fmt is not the fix

Two of the three forbid it in their own text:

  • CLAUDE.md — the diff falls inside <!-- bounded-systems-org:begin — managed by adopt-claude-harness; do not hand-edit this block -->.
  • .github/workflows/front-desk-add.yml"THIS FILE IS THE CANONICAL SOURCE. reroll-front-desk-add.sh rolls it into EACH org repo … audit-front-desk-add.sh checks the deployed copies against it." Reformatting it would fail that audit.

And either way a formatting commit gets undone by the next re-roll — red again, same three files. Run 19's title is "Re-roll the org Claude harness baseline (#32)", which is presumably how it got here in the first place.

So they're excluded from fmt instead. They aren't lone's source; the gate exists for lone's TypeScript. lint and check are untouched, and nothing about how lone's own code is formatted changes.

The permanent fix is upstream

Filed as bounded-systems/.github#247: have the generator terminate every file it writes with \n, and test for it. Until that lands, this exclusion is the only lever this repo actually has — and it stays correct afterwards, since these files still aren't lone's to format.

Verified

deno task ci green — fmt --check, lint, check, 330 tests. Diff is 15 lines of deno.jsonc, no source touched.


Generated by Claude Code

`deno task ci` fails at its first step on an untouched checkout of main, and has
since 2026-08-08 — standard.yml runs 14, 17 and 19 are all red, and every PR
opened since has inherited it:

  error: Found 3 not formatted files in 111 files
    CLAUDE.md · .claude/settings.json · .github/workflows/front-desk-add.yml

All three are written by the org Claude harness, not by lone, and all three
arrive with no trailing newline. `deno fmt` here takes no path arguments, so it
covers Markdown, JSON and YAML too and rejects them. baobab carries the same
files unformatted and is green only because its task is path-scoped.

NOT FIXED BY RUNNING deno fmt. Two of the three forbid it in their own text:
CLAUDE.md's diff falls inside `managed by adopt-claude-harness; do not hand-edit
this block`, and front-desk-add.yml's header names itself a rolled copy of a
canonical template that audit-front-desk-add.sh checks the deployed copies
against. A formatting commit would fail that audit, and would be undone by the
next re-roll — red again, same three files. Run 19's title is "Re-roll the org
Claude harness baseline (#32)", which is presumably how it got here.

So they are excluded from fmt instead. They are not lone's source; the gate
exists for lone's TypeScript, and lint and check are untouched. The generator
side — emit a trailing newline, and test for it — is filed at
bounded-systems/.github#247, and until that lands this is the only lever this
repo actually has.

deno task ci green: fmt, lint, check, 330 tests.

Closes #35.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011HAtCZXs1B5mUVWf6iTmdp
@bdelanghe
bdelanghe marked this pull request as ready for review August 22, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

CI has been red on main since 2026-08-08 — deno fmt rejects three harness-written files

2 participants