Skip to content

Commit 4b98b37

Browse files
committed
chore(sync): apply remaining canonical fleet drift fixes
1 parent 4e9a391 commit 4b98b37

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

.config/oxfmtrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"**/scripts/ai-lint-fix.mts",
6868
"**/scripts/ai-lint-fix/cli.mts",
6969
"**/scripts/ai-lint-fix/rule-guidance.mts",
70+
"**/scripts/check-lock-step-refs.mts",
7071
"**/scripts/check-paths.mts",
7172
"**/scripts/check-paths/allowlist.mts",
7273
"**/scripts/check-paths/cli.mts",

.config/oxlintrc.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3-
"plugins": ["typescript", "unicorn", "import"],
4-
"jsPlugins": ["./oxlint-plugin/index.mts"],
3+
"plugins": [
4+
"typescript",
5+
"unicorn",
6+
"import"
7+
],
8+
"jsPlugins": [
9+
"./oxlint-plugin/index.mts"
10+
],
511
"categories": {
612
"correctness": "error",
713
"suspicious": "error"
@@ -132,6 +138,7 @@
132138
"**/scripts/ai-lint-fix.mts",
133139
"**/scripts/ai-lint-fix/cli.mts",
134140
"**/scripts/ai-lint-fix/rule-guidance.mts",
141+
"**/scripts/check-lock-step-refs.mts",
135142
"**/scripts/check-paths.mts",
136143
"**/scripts/check-paths/allowlist.mts",
137144
"**/scripts/check-paths/cli.mts",

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ packages/build-infra/release-assets.schema.json linguist-generated=true
446446
scripts/ai-lint-fix.mts linguist-generated=true
447447
scripts/ai-lint-fix/cli.mts linguist-generated=true
448448
scripts/ai-lint-fix/rule-guidance.mts linguist-generated=true
449+
scripts/check-lock-step-refs.mts linguist-generated=true
449450
scripts/check-paths.mts linguist-generated=true
450451
scripts/check-paths/allowlist.mts linguist-generated=true
451452
scripts/check-paths/cli.mts linguist-generated=true

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ For non-trivial work (multi-file refactor, new feature, migration), the plan its
144144

145145
### Code style
146146

147-
Default to no comments (enforced by `.claude/hooks/no-meta-comments-guard/` for meta-labels + removed-code refs); when written, write for a junior reader. Parsers mirroring an upstream get the exception ([`docs/claude.md/fleet/parser-comments.md`](docs/claude.md/fleet/parser-comments.md)). Pointer comments (`// see X`) need both the destination and an inline one-line claim (enforced by `.claude/hooks/pointer-comment-guard/`). Heaviest invariants: no `TODO`/`FIXME`/stubs; `undefined` over `null`; `httpJson`/`httpText` from `@socketsecurity/lib/http-request` over `fetch()`; `safeDelete()` from `@socketsecurity/lib/fs` over `fs.rm`; Edit tool over `sed`/`awk`; `'CI' in process.env` presence check over truthy; `import os from 'node:os'` over named imports; `getDefaultLogger()` over `console.*` (enforced by `.claude/hooks/logger-guard/`); doc filenames `lowercase-with-hyphens.md` under `docs/` or `.claude/` (enforced by `.claude/hooks/markdown-filename-guard/`). Full ruleset (object literals, imports, subprocesses, file existence, generated reports, sorting, Promise.race, Safe suffix, `node:smol-*`, inclusive language) in [`docs/claude.md/fleet/code-style.md`](docs/claude.md/fleet/code-style.md). See also [`docs/claude.md/fleet/sorting.md`](docs/claude.md/fleet/sorting.md) and [`docs/claude.md/fleet/inclusive-language.md`](docs/claude.md/fleet/inclusive-language.md).
147+
Default to no comments (enforced by `.claude/hooks/no-meta-comments-guard/` for meta-labels + removed-code refs); when written, write for a junior reader. Parsers mirroring an upstream get the exception ([`docs/claude.md/fleet/parser-comments.md`](docs/claude.md/fleet/parser-comments.md)). Cross-port files (Rust↔Go↔C++↔TS acorn ports; socket-btm `mcp/*.cpp` ports of upstream) use `Lock-step` comments — `//! Lock-step from <path>` for port provenance, `//! Lock-step with <Lang>: <path>` on the canonical side, inline `// Lock-step with <Lang>: <path>:<lines>` for specific cross-refs (point up at the source-of-truth, never down at a port), and `// Lock-step note: <why>` for _deliberate_ divergence (full forms in [`docs/claude.md/fleet/parser-comments.md`](docs/claude.md/fleet/parser-comments.md) §5–6). Pointer comments (`// see X`) need both the destination and an inline one-line claim (enforced by `.claude/hooks/pointer-comment-guard/`). Heaviest invariants: no `TODO`/`FIXME`/stubs; `undefined` over `null`; `httpJson`/`httpText` from `@socketsecurity/lib/http-request` over `fetch()`; `safeDelete()` from `@socketsecurity/lib/fs` over `fs.rm`; Edit tool over `sed`/`awk`; `'CI' in process.env` presence check over truthy; `import os from 'node:os'` over named imports; `getDefaultLogger()` over `console.*` (enforced by `.claude/hooks/logger-guard/`); doc filenames `lowercase-with-hyphens.md` under `docs/` or `.claude/` (enforced by `.claude/hooks/markdown-filename-guard/`). Full ruleset (object literals, imports, subprocesses, file existence, generated reports, sorting, Promise.race, Safe suffix, `node:smol-*`, inclusive language) in [`docs/claude.md/fleet/code-style.md`](docs/claude.md/fleet/code-style.md). See also [`docs/claude.md/fleet/sorting.md`](docs/claude.md/fleet/sorting.md) and [`docs/claude.md/fleet/inclusive-language.md`](docs/claude.md/fleet/inclusive-language.md).
148148

149149
### File size
150150

0 commit comments

Comments
 (0)