@cratis/pi 8.2.0 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -373,6 +373,8 @@ first. Non-empty `.ai-work/` directories, even when tracked, are additionally ke
373
373
  - Agent controls: `.claude/settings.json`, `.claude/settings.local.json`, `.mcp.json`,
374
374
  `.pi/settings.json`, `.pi/extensions/**`, `.cratis/ai.manifest.json` and `.cratis/ai.json`
375
375
  - The installed `.cratis/ai/**` corpus, including when its manifest is missing or unreadable.
376
+ Project-owned files inside it stay writable: `.cratis/ai/rules/project.md`,
377
+ `.cratis/ai/rules/project/**` and `.cratis/ai/quality-gates.project.json`.
376
378
  Adapter paths in `.claude/**` and `.pi/**` are protected according to the manifest's
377
379
  `Integrations` entries. Both addressed paths and symlink destinations are checked, including
378
380
  the Claude settings link to the hook template. Without an installation manifest, authored
@@ -462,7 +462,8 @@ agent_control_in_root() {
462
462
  return 1
463
463
  fi
464
464
  if [ -f "$policy_root/.cratis/ai.manifest.json" ] || [ -d "$policy_root/.cratis/ai" ]; then
465
- if control_match "$target_rel" '.cratis/ai/*'; then return 0; fi
465
+ # Project-owned files live inside the managed tree but belong to the repository, not the corpus.
466
+ if control_match "$target_rel" '.cratis/ai/*' && ! names_match "$target_rel" '.cratis/ai/rules/project.md' '.cratis/ai/rules/project/*' '.cratis/ai/quality-gates.project.json'; then return 0; fi
466
467
  if [ -f "$policy_root/.cratis/ai.manifest.json" ] && control_match "$target_rel" '.claude/*' '.pi/*'; then
467
468
  # Integration paths, not corpus Files, establish adapter ownership.
468
469
  managed="$(jq -r '
@@ -9,3 +9,10 @@
9
9
  branch.
10
10
  - A worktree costs its build output, not its source (gigabytes of `bin`, `obj`, `node_modules`). Build only the projects the lane changed, and let `cratis-cleanup-worktrees.sh` reclaim an idle lane's output.
11
11
  - Run builds and tests only through the gate command in the brief.
12
+
13
+ ## Build cost per worktree
14
+
15
+ - **Build and test the project you changed, not the solution.** `dotnet build path/to/Project.csproj` (and `dotnet test` on it) builds only that project and its `ProjectReference` closure; building the solution builds every project. Incremental build does not help here: it skips unchanged work inside one tree, but a new worktree starts with no `bin/` or `obj/`, so its first solution build compiles and copies everything.
16
+ - **Hardlinked output.** Where projects copy their dependencies next to themselves (executables and test hosts), `CreateHardLinksForCopyLocalIfPossible`, `CreateHardLinksForCopyFilesToOutputDirectoryIfPossible` and `CreateHardLinksForAdditionalFilesIfPossible` set to `true` (environment variables work) make each copy a hardlink instead of a full file copy. It only links within one volume, so keep the NuGet package folder (`globalPackagesFolder` in `NuGet.config`, or `NUGET_PACKAGES`) on the same volume as the worktrees; otherwise MSBuild silently copies. Verify with disk free before and after a build: `du` counts a linked file once per directory and overstates.
17
+ - **Never write through copied output.** With hardlinks, editing a file in `bin/` in place changes the NuGet cache entry or the other project's output too. Signing or patching steps must write a new file.
18
+ - Keep the setting out of CI: runners build once, and package caches there are often on a different filesystem.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [