Skip to content

Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299

Closed

Description

@mstomar125

Summary

Add scripts/check-pro-boundary.ts, a ratchet in the style of scripts/check-code-references.ts. It counts Pro/sync markers across core and fails when any count moves off its checked-in baseline, in either direction. Its bun test is the enforcement point, through bun run test:scripts and the merge gate.

In the same PR, write into CLAUDE.md the rules every later migration PR relies on:

  • Pro/sync features go in nodespace-sync (ADR-081, proposed);
  • the three accepted classes of baseline raise;
  • the absence-test convention.

Also route Pro/sync issues to nodespace-sync, in CLAUDE.md's Finding Tasks section and in the issue-management skill.

Context

Scope

  • New file: scripts/check-pro-boundary.ts.
    • Exported values: REPO, SCAN_PREFIXES = ["packages/", "scripts/"], SCAN_ROOT_FILES = ["README.md"], SCANNED_EXTENSIONS, EXCLUDED_FILES, TEST_PATH, MARKERS, EXEMPTIONS and BASELINES.
    • Exported types: LineMarkerName, MarkerName (LineMarkerName | "proNamedFiles") and Exemption.
    • Exported functions: isProNamedFile(path), listScannedFiles(repoRoot?), countMarkers(files, repoRoot?, exemptions?), exemptionProblems(exemptions?, repoRoot?), changedFilesSinceMain(repoRoot?), formatBaselines(counts) and baselineFailures(counts, baselines?, changedFiles?).
    • A CLI under if (import.meta.main).
  • New file: scripts/check-pro-boundary.test.ts. It uses bun:test and is DOM-free, as CLAUDE.md requires for scripts/.
  • CLAUDE.md:
    • a new section, ## Pro / Sync Boundary (CRITICAL), between ## Architecture & Docs and ## Node Type System & Schema Architecture (CRITICAL);
    • one paragraph in ## Finding Tasks, directly after the "Never assign an issue at creation time" paragraph.
  • .claude/skills/github-issue-management/SKILL.md: a new ### Step 0: Confirm the issue belongs in nodespace-core under ## Pre-Operation Steps, before ### Step 1: Read the Workflow Guide (MANDATORY).

Marker definitions

Each entry in MARKERS is { pattern: RegExp; summary: string }. These are the exact patterns, and each trailing comment is that marker's summary.

The pattern is tested once per line, so a line counts at most once per marker, and one line can count under several markers.

proCommands:       /\bpro_[a-z][a-z0-9_]*/                        // pro_* Tauri commands, the pro_sync / pro_client modules, pro_env
proSyncModule:     /[pP]roSync|pro-sync/                          // the proSync store, resolveProSyncVariant, isProSyncActive, pro-sync imports
proProtocol:       /nodespace_pro\b|nodespace\.pro\.v1|CloudSyncService|\bPro(?:Client|Tier)\b|pro\.nodespace\.ai|127\.0\.0\.1:8787/   // the Pro proto, CloudSyncService, ProClient / ProTier, Pro Worker URLs
proEvents:         /pro:tier-detected|['"`]sync:(?:status|error)['"`]/      // quoted pro:tier-detected, sync:status and sync:error event names
membershipService: /membershipService|MembershipService|membership-service/   // the Pro membership service
editionBranching:  /\bis_pro(?:_build)?\b|NODESPACED?_PRO_|feature\s*=\s*"pro"|nodespaced-pro|(?:daemon|ui|incompatible-database)(?:-dev)?-pro\.(?:sock|pid|json)|PRO_DAEMON_BINARY_NAME|tauri\.pro\.conf|\.daemon(?:\.dev)?\.pro\b|--edition\b(?!\s*=?\s*20\d\d)|FORCE_COMMUNITY/   // Pro build, daemon, socket, launchd and installer branching
cloudBindState:    /bound_?[tT]enant|[bB]oundTenant|sync_?[eE]nabled|[sS]yncEnabled|auth_?[sS]tatus|[aA]uthStatus/   // tenant binding, sync_enabled and auth_status state
cloudSyncHooks:    /apply_remote_embeddings|embeddings_modified_since|get_multi_membership_edges/   // cloud embedding and membership-edge sync hooks
cloudWording:      /[Ss]upabase|\bRLS\b|pgvector|nodespace[-_]sync|[Pp]ro daemon/   // Supabase, RLS, pgvector, nodespace-sync and "Pro daemon" wording
tenantWording:     /tenant/i                                      // the word tenant (one fixture exempt, see EXEMPTIONS)
proWording:        /(?<!\b(?:M\d|V\d|MacBook|iPad|iPhone) )\bPro\b/   // the word Pro, except chip and model names such as "M2 Pro", "DeepSeek V4 Pro"
// plus proNamedFiles: scanned files whose basename matches /(^|[-_.])pro([-_.]|$)/   (summary: files whose basename has a pro segment)

The implementation must preserve three properties:

File selection

  • A path is scanned when it is README.md, or when it starts with a SCAN_PREFIXES entry and either:
    • its extension is in SCANNED_EXTENSIONS (.rs .ts .svelte .js .proto .toml .md .json .sh .plist .css .html .py); or
    • it has no extension.
  • The extension is the part of the basename from its last ., unless that . is the first character. A dotfile such as .gitignore therefore has no extension, and is scanned.
  • EXCLUDED_FILES are dropped: scripts/check-pro-boundary.ts and scripts/check-pro-boundary.test.ts. Both match their own patterns, and the checker's own name is Pro-named.
  • CLAUDE.md and .claude/ are left out on purpose. They sit outside the prefixes, and CLAUDE.md states the rule and names the markers.

Exemptions

export const TEST_PATH = /(^|\/)(tests?|__tests__)\/|\.(test|spec)\.ts$|_tests?\.rs$|(^|\/)tests\.rs$/;

export type Exemption = { file: string; markers: readonly LineMarkerName[]; reason: string };

export const EXEMPTIONS: readonly Exemption[] = [
  {
    file: "packages/agent/tests/it/live_embedding_prefix_measurement.rs",
    markers: ["tenantWording"],
    reason: 'lease-agreement fixture prose ("a replacement tenant"), not tenant code',
  },
];
  • An entry hides only its own markers, and only in its own file. That file's other markers still count, and the same marker still counts in every other file.
  • exemptionProblems reports one message per bad entry, and the real-repo test fails on any of them. An entry is bad when:
    • its file is missing from the scan;
    • its file doesn't match TEST_PATH;
    • its reason is empty;
    • it names no marker, or an unknown one;
    • it has no raw hit left for one of its markers. A stale exemption would silently hide the next real hit.
  • proNamedFiles can't be exempted. The type excludes it. An absence test must not have a Pro-named file name.

The absence-test convention

Some tests exist to assert that Pro code is absent: a guard that greps for a Pro name, a fixture that proves a removed field is ignored, or a test that a removed flag is rejected. Such a test must not contain the marker it looks for. It has two options.

  1. Build the needle from fragments, which no marker matches:
    • TypeScript: ["pro", "tier"].join("_"), new RegExp(["ten", "ant"].join(""), "i"), "sync:" + "status";
    • Rust: concat!("--edi", "tion"), ["NODESPACE", "PRO", "SUPABASE_URL"].join("_").
  2. Add an EXEMPTIONS entry for that file and those markers, with the reason. This is only for a file matching TEST_PATH where fragments are impractical.

Three more points:

  • Inline Rust test modules in product files (#[cfg(test)] mod tests) don't match TEST_PATH, so they must use fragments.
  • Fragments belong only in absence tests. In product code they hide Pro code, and review rejects them.
  • This is not the same as src/tests/free-user-guardrail.test.ts, which imports the Pro modules to prove they stay inert in the free build. That suite counts normally, and it leaves core along with the code it tests.

Baselines at af8ddb6

Take the real numbers from the CLI at your base commit. Do not copy these.

Marker Baseline
proCommands 275
proSyncModule 360
proProtocol 95
proEvents 87
membershipService 54
editionBranching 122
cloudBindState 322
cloudSyncHooks 15
cloudWording 89
tenantWording 507 (raw 508; the one exemption removes 1)
proWording 314
proNamedFiles 16

That run scanned 1,400 files. The 16 Pro-named files are listed below. Paths that start with src-tauri/ or src/ are under packages/desktop-app/.

  • packages/desktop-app/src-tauri/proto/nodespace_pro.proto
  • src-tauri/src/commands/pro_sync.rs
  • src-tauri/src/services/pro_client.rs
  • src-tauri/tauri.pro.conf.json
  • src/lib/components/first-pro-consent-modal.svelte
  • src/lib/components/first-pro-consent-slot.svelte
  • src/lib/components/pro-relogin-modal.svelte
  • src/lib/components/pro-relogin-slot.svelte
  • src/lib/plugins/pro-plugin.ts
  • src/lib/stores/pro-sync.svelte.ts
  • src/tests/components/first-pro-consent-modal.test.ts
  • src/tests/components/first-pro-consent-slot.test.ts
  • src/tests/components/pro-relogin-modal.test.ts
  • src/tests/stores/pro-sync-settings-refresh.test.ts
  • src/tests/stores/pro-sync.test.ts
  • scripts/refresh-pro-proto.ts

BASELINES layout

export const BASELINES = {
  // pro_* Tauri commands, the pro_sync / pro_client modules, pro_env
  proCommands: 275,
  // the proSync store, resolveProSyncVariant, isProSyncActive, pro-sync imports
  proSyncModule: 360,
  // …one summary comment line and one value line per marker, in MARKERS order…
  // files whose basename has a pro segment
  proNamedFiles: 16,
} satisfies Record<MarkerName, number>;

formatBaselines(counts) returns exactly this text for any set of counts, built from each marker's summary. A test holds the checker's own source to formatBaselines(BASELINES). Pasting the printed block therefore changes only the numbers that moved.

Out of scope

Steps

  1. Confirm ADR-081 is merged. Work from an up-to-date main, in a worktree. <docs> is your nodespace-docs checkout: ../nodespace-docs in CLAUDE.md's layout, ../docs on some machines.

    git -C <docs> fetch origin main
    git -C <docs> ls-tree --name-only origin/main decisions/ | grep '^decisions/081-'

    Always check origin/main, never a local checkout that may be stale. The draft is named 081-pro-is-a-separate-app-core-ships-no-pro-code.md; link whatever name actually merged.

  2. Write scripts/check-pro-boundary.ts.

    1. Header comment, in the template's voice. Cover:

      • why the check exists (ADR-081);
      • what it counts;
      • that baselines are exact, are lowered in the same PR that removes code, and are never raised to land Pro code;
      • the three accepted raise classes and the absence-test convention, by pointing to CLAUDE.md's "Pro / Sync Boundary" section;
      • why discovery uses git;
      • why each baseline has its own comment line.

      Include no issue numbers, and no nodespace-docs/ or docs/<section>/ path. check-code-references.ts scans this file, and its doc-path baseline is 0.

    2. listScannedFiles(repoRoot = REPO). Run git -C <repoRoot> ls-files -z --cached --others --exclude-standard, split the output on NUL, and apply the file selection rules above. If git fails, throw an Error saying the check needs a git checkout. Never return [] silently.

    3. countMarkers(files, repoRoot = REPO, exemptions = EXEMPTIONS).

      • Read each file as UTF-8. Skip any file that can't be read, such as a path still in the index but deleted from the working tree.
      • For every line, and every marker not exempt for that file, record a hit path:line: trimmed text when the pattern matches.
      • Count proNamedFiles with isProNamedFile. Its hits are the paths.
      • Return { counts: Record<MarkerName, number>, hits: Record<MarkerName, string[]> }.
    4. exemptionProblems(exemptions = EXEMPTIONS, repoRoot = REPO). Return one message per problem listed under Exemptions. The stale check counts raw hits with the marker's pattern, ignoring exemptions.

    5. changedFilesSinceMain(repoRoot = REPO), best effort. Take git merge-base origin/main HEAD, then git diff --name-only --no-renames <base>, plus untracked files, the same way changedFiles() in scripts/gate-scope.ts does. Return [] on any error.

    6. formatBaselines(counts). Return the export const BASELINES = { … } satisfies Record<MarkerName, number>; text in the layout above: one summary comment line and one value line per marker, in MARKERS order, then proNamedFiles.

    7. baselineFailures(counts, baselines = BASELINES, changedFiles = []). Return one message per marker that is off its baseline.

      • Above the baseline. Give the marker, its summary, the count and the baseline, then this text: "Pro and sync code belongs in nodespace-sync (ADR-081); core may only expose a generic extension point. A test that asserts Pro code is absent builds its needle from fragments or gets an EXEMPTIONS entry. Only the accepted raise classes in CLAUDE.md ('Pro / Sync Boundary') may raise a baseline, and the PR description must name them."
        • Then list the hits in changedFiles first, under "In files this branch changed:", followed by every hit.
        • For a marker whose baseline is 0, say the marker is fully removed from core.
      • Below the baseline. "<marker> is now N, below its baseline M: lower BASELINES.<marker> to N in scripts/check-pro-boundary.ts in this change."
      • When any message is returned, also append one block holding formatBaselines(counts), introduced as "Paste over BASELINES in scripts/check-pro-boundary.ts:".
    8. CLI.

      • With no arguments, print a table of marker, count and baseline, then any exemptionProblems and baselineFailures. Exit 1 if there are any, otherwise exit 0.
      • --list <marker> prints every hit for that marker, grouped by file. Migration PRs use it to find what they are removing.
      • --changed prints, per marker, the hits in files this branch changed. PR descriptions quote it for any raise.
  3. Write scripts/check-pro-boundary.test.ts, as described in "Tests and verification" below.

  4. Set the baselines. Run bun run scripts/check-pro-boundary.ts and paste the printed block over BASELINES.

  5. Add the CLAUDE.md section:

    ## Pro / Sync Boundary (CRITICAL)
    
    Core is the complete free product. NodeSpace Pro is a separate app that nodespace-sync builds on top of core; it replaces the installed app and keeps the same local database ([ADR-081](../nodespace-docs/decisions/081-<slug>.md)).
    
    - **Pro and sync features go in nodespace-sync, not here:** Pro UI (components, stores, settings sections, modals), Pro Tauri commands and their client, the Pro proto, tenant / invite / admission logic, cloud identity, and the Pro build config, installer and update channel.
    - **Core may contain only what ADR-081 lists:** generic extension points, the "Share / Sync this database" entry that opens the website, and local features that sync also uses (echo suppression, event batching, OCC and the conflict journal, collections, `member_of`, the person model). Name an extension point for what it does, not for who uses it: no "Pro daemon", Supabase, tenant or nodespace-sync wording in new core code or comments.
    - **`scripts/check-pro-boundary.ts` enforces this.** It counts Pro markers in `packages/`, `scripts/` and `README.md`, and runs in `bun run test:scripts` (every merge gate). Its baselines are exact and only go down: a change that removes Pro code lowers them in the same PR. The check fails until it does, and prints the `BASELINES` block to paste.
    - **Never raise a baseline to land Pro code.** Only three kinds of change may raise one, and the PR description names the class, each raised marker (old → new) and its lines (`bun run scripts/check-pro-boundary.ts --changed`):
      1. the core side of the ADR-084 upgrade flow: the "Share / Sync this database" entry and its copy, and the installer and CLI guards ADR-084 assigns to core;
      2. a fix to Pro code that has not moved to nodespace-sync yet (prefer a net-zero edit);
      3. a planned move of Pro code already in core, by a Pro-boundary migration issue, that adds no behaviour (for example, splitting Pro gating into its own file so a later issue deletes it whole). Name the issue that will delete the moved code.
    
      A false positive gets a narrow, tested fix in the checker (a pattern change or an `EXEMPTIONS` entry), never a raise.
    - **A test that asserts Pro code is absent must not contain the marker it looks for.** Build the needle from fragments (`["pro", "tier"].join("_")`, `new RegExp(["ten", "ant"].join(""), "i")`, `concat!("--edi", "tion")`). Where that is impractical in a test file, add a per-file, per-marker `EXEMPTIONS` entry with its reason. Fragments belong only in absence tests; in product code they hide Pro code, and review rejects them.
    - `bun run test:changed` skips the scripts tier for frontend-only and `.md`-only diffs, so run `bun run scripts/check-pro-boundary.ts` before pushing any change near Pro code.
  6. Add the Finding Tasks paragraph, directly after "Never assign an issue at creation time":

    Pro and sync issues belong in nodespace-sync (ADR-081): anything about Pro UI, Pro commands, tenants, membership invites or admission, Supabase, or the Pro installer or update channel. Don't file them here. A generic extension point that the Pro app uses is core work and is filed here.

    In the skill, add ### Step 0: Confirm the issue belongs in nodespace-core with the same routing, ending: "If it belongs in nodespace-sync, file it there and stop."

  7. Verify and open the PR. Run the verification and the mutation checks below. The PR description must list each mutation check and its result.

Acceptance criteria

  • scripts/check-pro-boundary.ts and scripts/check-pro-boundary.test.ts exist, export the API above, and pass bun run quality:scripts:check (eslint and tsc).
  • bun run scripts/check-pro-boundary.ts exits 0 on the PR branch and prints all 12 counts, each equal to its baseline.
  • Adding one Pro marker line anywhere in scope fails bun run test:scripts. The message names the marker, shows the new line under "In files this branch changed", and points to the absence-test convention and the raise classes.
  • Removing one marker line fails with the "lower BASELINES.<marker> to N" message and the paste block. Pasting the block makes the check pass, and changes only that marker's value line.
  • The BASELINES literal in the source equals formatBaselines(BASELINES), with one summary comment line above each value line.
  • Gitignored files never change the counts: the staged src-tauri/resources/skill/ copy, src-tauri/binaries/, .svelte-kit/ and target/. Untracked files that are not ignored do count.
  • CLAUDE.md and the checker's own two files are not counted. packages/agent is counted.
  • EXEMPTIONS holds exactly one entry: packages/agent/tests/it/live_embedding_prefix_measurement.rs, exempt from tenantWording only.
  • exemptionProblems() is empty on the real repo, and a fixture catches each kind of problem.
  • Fragment-built needles count 0 for every marker, and the same needles written literally do count.
  • bun run scripts/check-code-references.ts still passes: the new files add no issue-number or docs-path references.
  • CLAUDE.md has the new section, including the three raise classes and the absence-test convention, and the Finding Tasks paragraph. It links ADR-081 by its merged filename. The skill has Step 0.
  • No product code changed. git diff --stat origin/main lists only the two new scripts, CLAUDE.md and the skill file.

Tests and verification

scripts/check-pro-boundary.test.ts uses bun:test, with a temporary directory per test. The discovery, exemption and layout tests run git init in that directory, as scripts/merge-queue.test.ts already does.

Pattern tests. Each marker gets a table of lines that must match and lines that must not. Build any fixture that contains regex-special characters in code.

Marker Must match Must not match
proCommands invoke('pro_list_members'), commands::pro_sync::pro_tier,, pub mod pro_client; is_pro_build(), approve_request, macro_rules!
proSyncModule import { proSync } from '$lib/stores/pro-sync.svelte', resolveProSyncVariant() project-sync, prosync
proProtocol tonic::include_proto!("nodespace.pro.v1"), CloudSyncServiceClient, app.try_state::<ProClient>(), "https://pro.nodespace.ai" use nodespace_proto::socket;, ProcessTier
proEvents listen('pro:tier-detected', cb), app.emit("sync:status", p) unquoted prose sync:status updates
membershipService import { membershipService } from '$lib/services/membership-service' collection membership, member_of
editionBranching is_pro_build(), fn f(is_debug: bool, is_pro: bool), option_env!("NODESPACE_PRO_SUPABASE_URL"), NODESPACED_PRO_ANON_KEY, cfg!(feature = "pro"), "daemon-dev-pro.sock", "ui-pro.pid", "incompatible-database-pro.json", app.nodespace.daemon.pro, tauri.pro.conf.json, nodespaced --edition, NODESPACE_FORCE_COMMUNITY rustfmt --edition 2021, edition = "2021", "daemon-dev.sock", app.nodespace.daemon.dev
cloudBindState bound_tenant_schema, boundTenantCollection, sync_enabled, labsFlags.syncEnabled, auth_status, authStatus synced, authenticate
cloudSyncHooks each of the three names upsert_embeddings
cloudWording Supabase, supabase, Postgres RLS, pgvector, nodespace-sync, nodespace_sync::, the Pro daemon URLS, sync service
tenantWording tenant, TENANT_ADMIN_ROLES, boundTenant maintenance
proWording // the Pro build, NodeSpace Pro, Pro-only M2 Pro, DeepSeek V4 Pro, MacBook Pro, Protocol, Provider, lowercase pro, NodeSpaceProduct
isProNamedFile pro-plugin.ts, pro_sync.rs, tauri.pro.conf.json, nodespace_pro.proto, first-pro-consent-modal.svelte, pro-sync.svelte.ts provider.ts, process.rs, node_service.proto, protocol.ts, project-sync.ts, approve.ts, repro.ts

Discovery tests, in a temporary git repo:

  • Tracked files, and untracked files that are not ignored, are counted.
  • A path listed in .gitignore is not counted. Cover both a directory, such as resources/skill/, and an extensionless binary name, such as binaries/nodespaced-pro-x.
  • Files outside packages/ and scripts/ are not counted, except README.md. A CLAUDE.md full of markers counts 0.
  • .proto, .md, .json, extensionless files and dotfiles are scanned; .png is not.
  • The checker's own two paths are skipped.
  • A file deleted from the working tree but still in the index does not throw.
  • A directory that isn't a git repo throws a clear error.

Counting tests:

  • Each line counts once per marker. Two markers on one line count once each.
  • Hits are formatted as a repo-relative path:line: text.

Exemption tests:

  • An entry hides only its own markers, in its own file. In that file a proWording line still counts, and a tenant line in another file still counts.
  • exemptionProblems reports each problem, each tested in its own fixture:
    • a file missing from the scan;
    • a path that isn't a test path, such as packages/x/src/lib.rs;
    • an empty reason;
    • an empty marker list, an unknown marker, or proNamedFiles;
    • a marker with no raw hit left in the file.
  • TEST_PATH matches src/tests/stores/x.test.ts, packages/core/tests/it/a.rs, scripts/a.test.ts, src/models/foo_test.rs and src/x/tests.rs.
  • TEST_PATH does not match src/lib/stores/x.svelte.ts, packages/daemon/src/main.rs or src/contest.rs.

Absence-convention tests:

  • A fixture test file whose needles are built from fragments counts 0 for every marker. It uses each form listed in the convention.
  • The same file with the needles written literally counts under proCommands, tenantWording, proEvents and editionBranching. This control keeps the first test from passing vacuously.

Layout tests:

  • The checker's source contains formatBaselines(BASELINES) verbatim.
  • formatBaselines puts exactly one summary comment line before each value line.
  • In a temporary git repo holding formatBaselines(counts):
    • a branch that lowers proCommands and a branch that lowers proSyncModule, which are adjacent in order, cherry-pick onto each other without conflict;
    • two branches that set proCommands to different values do conflict.

baselineFailures tests:

  • Above the baseline: the message names the marker, mentions the absence convention and the raise classes, and lists hits in changed files before the full list.
  • Below the baseline: the lower-it message.
  • Equal to the baseline: [].
  • A baseline of 0 gets the "fully removed" wording.
  • The paste block equals formatBaselines(counts).

Real-repo tests:

  • Both baselineFailures(countMarkers(listScannedFiles()).counts, BASELINES, changedFilesSinceMain()) and exemptionProblems() are empty. Otherwise the test throws the joined messages, as the template does.
  • Object.keys(BASELINES) equals the line-marker names plus proNamedFiles, in MARKERS order.

Commands to run:

  • bun run test:scripts
  • bun run quality:scripts:check
  • bun run scripts/check-pro-boundary.ts
  • bun run scripts/check-pro-boundary.ts --list proNamedFiles
  • bun run scripts/check-pro-boundary.ts --changed
  • bun run scripts/check-code-references.ts
  • bun run test:changed. The diff is scripts/ plus inert .md and .claude files, so only the scripts tier runs.

Mutation checks. Run each one, confirm it fails as described, then revert it.

  1. Add await invoke('pro_example'); to any non-Pro frontend file. The real-repo test fails on proCommands and shows that line under "In files this branch changed".
  2. Delete the README's nodespaced-pro sentence. You get lower-it failures for editionBranching, proWording and tenantWording. Pasting the printed block passes, and git diff shows only those three value lines.
  3. Run touch packages/desktop-app/src/lib/components/pro-upsell.svelte. proNamedFiles fails.
  4. Remove the \b from nodespace_pro\b. The nodespace_proto pattern test fails.
  5. Delete the agent EXEMPTIONS entry. The real-repo tenantWording count rises to 508 and fails.
  6. Change the agent entry's markers to ["proWording"]. exemptionProblems reports it as stale, and tenantWording rises to 508.
  7. Replace one fragment needle in the absence fixture with its literal. The absence-convention test fails.
  8. Make formatBaselines drop the comment lines. The source-layout test and the cherry-pick test both fail.
  9. Put a .md file with markers under the gitignored packages/desktop-app/src-tauri/resources/skill/. The counts don't change.

Dependencies

  • NodeSpaceAI/nodespace-docs#88 (ADR-081): ADR-081 accepted and merged. The freeze is ADR-081's policy, and CLAUDE.md links to it.

Risks and rollback

  • A false positive blocks an unrelated PR. Fix it in the checker with a pattern change, or with an EXEMPTIONS entry if the file is a test, plus a test for the fix. Never raise the baseline for it.
  • Exact baselines and parallel PRs. Thanks to the comment-line layout, only PRs that change the same marker conflict on BASELINES. The merge queue ejects the second one; rebase it, rerun the CLI and paste the block.
  • Relocation raises are enforced by review, not by the checker. The PR description must name the sub-issue doing the move and the one that deletes the moved code. The reviewer checks that the raise covers only what the move itself adds.
  • Transitional Pro hotfixes. A fix to Pro code that still lives in core may need a raise under class 2. Prefer net-zero edits.
  • packages/agent is counted. A new tenant or Pro line in the agent lane fails the check. The directive intends this, but the owners of that lane should know.
  • Rollback. Revert the PR. It touches only tooling and docs: no product code, no build output and no data.

Plan key: C1.1 (pro-boundary DAG).

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. added
    pro-boundary
    on Sep 30, 2026
  3. 18 remaining items

  4. added 4 commits that reference this issue on Sep 30, 2026
    a3c0ab0
    529ddc0
    7441bb0
    ebf7838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions