gentle-pi 4.7.0 → 4.8.0
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.
- package/README.md +55 -44
- package/assets/agents/gentle-ai-explore.md +3 -3
- package/assets/agents/gentle-ai-verify.md +20 -6
- package/assets/agents/gentle-ai-worker.md +6 -6
- package/assets/agents/jd-judge-a.md +1 -3
- package/assets/agents/jd-judge-b.md +1 -3
- package/assets/agents/review-readability.md +1 -5
- package/assets/agents/review-reliability.md +1 -5
- package/assets/agents/review-resilience.md +1 -5
- package/assets/agents/review-risk.md +1 -5
- package/assets/design-canvas/canvas-api.js +45 -0
- package/assets/design-canvas/canvas-boards.js +456 -0
- package/assets/design-canvas/canvas-boot.js +217 -0
- package/assets/design-canvas/canvas-checks.js +491 -0
- package/assets/design-canvas/canvas-comments.js +315 -0
- package/assets/design-canvas/canvas-compare.js +159 -0
- package/assets/design-canvas/canvas-events.js +75 -0
- package/assets/design-canvas/canvas-export.js +393 -0
- package/assets/design-canvas/canvas-focus.js +203 -0
- package/assets/design-canvas/canvas-handoffs.js +150 -0
- package/assets/design-canvas/canvas-i18n-es.js +392 -0
- package/assets/design-canvas/canvas-i18n.js +108 -0
- package/assets/design-canvas/canvas-layout.js +526 -0
- package/assets/design-canvas/canvas-menu.js +213 -0
- package/assets/design-canvas/canvas-messages.js +86 -0
- package/assets/design-canvas/canvas-minimap.js +163 -0
- package/assets/design-canvas/canvas-parts.js +401 -0
- package/assets/design-canvas/canvas-popover.js +234 -0
- package/assets/design-canvas/canvas-rail.js +348 -0
- package/assets/design-canvas/canvas-sizes.js +524 -0
- package/assets/design-canvas/canvas-store.js +164 -0
- package/assets/design-canvas/canvas-tokens.js +674 -0
- package/assets/design-canvas/canvas-ui.js +24 -0
- package/assets/design-canvas/canvas-view.js +184 -0
- package/assets/design-canvas/canvas.css +746 -15
- package/assets/design-canvas/canvas.js +2 -1506
- package/assets/design-canvas/index.html +117 -36
- package/assets/design-canvas/inspector.js +546 -16
- package/assets/install-wizard/wizard.js +5 -1
- package/assets/migrations/agent-body-history.json +24 -0
- package/assets/orchestrator-delegation-reference.md +8 -14
- package/assets/orchestrator-delegation.md +4 -4
- package/assets/orchestrator-full-delegation-card.md +4 -5
- package/assets/orchestrator-full-delegation.md +8 -8
- package/assets/orchestrator-memory.md +2 -2
- package/assets/orchestrator-prompts.md +1 -1
- package/assets/orchestrator-quota-recovery.md +5 -0
- package/assets/orchestrator-skills.md +13 -12
- package/assets/orchestrator-tracking.md +10 -14
- package/assets/orchestrator-verification.md +10 -8
- package/assets/orchestrator-writer.md +4 -4
- package/assets/orchestrator.md +18 -22
- package/bin/gentle-shell.mjs +128 -9
- package/contracts/review-provider-contract-mirror/provider-contract.lock.json +8 -9
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/manifest.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/orchestration/pi.md +1 -0
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/routing/pi.md +6 -6
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-capabilities.baseline.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-roles.baseline.json +1 -1
- package/docs/assets/brand/sponsor-banner.svg +60 -0
- package/docs/bundled-install.md +14 -6
- package/docs/delegated-verification.md +18 -2
- package/docs/desktop-rpc.md +1253 -0
- package/docs/gentle-agents-activity.md +26 -0
- package/docs/gentle-shell.md +39 -16
- package/docs/install-wizard.md +30 -21
- package/docs/odd-preparation-continuity.md +24 -0
- package/docs/permission-modes.md +9 -1
- package/docs/prompt-budget.md +12 -0
- package/docs/rdd-odd-friction-triage-2026-11-07.md +57 -0
- package/docs/readme-reference.md +76 -24
- package/docs/review-coordinator.md +29 -9
- package/docs/review-delivery-preflight.md +22 -0
- package/docs/work-continuity.md +11 -1
- package/extensions/ask-user-question.ts +2 -2
- package/extensions/child-context.ts +21 -7
- package/extensions/gentle-agents.ts +234 -33
- package/extensions/gentle-ai.ts +576 -135
- package/extensions/gentle-design.ts +69 -3
- package/extensions/gentle-desktop-rpc.ts +143 -0
- package/extensions/gentle-guide.ts +3 -0
- package/extensions/gentle-shell.ts +105 -52
- package/extensions/gentle-todo.ts +48 -25
- package/extensions/skill-registry.ts +248 -223
- package/lib/agent-assets.ts +30 -6
- package/lib/agent-tool-overlay.ts +117 -0
- package/lib/agents-config.ts +47 -6
- package/lib/agents-message-delivery.ts +17 -0
- package/lib/agents-messaging.ts +8 -2
- package/lib/agents-protocol.ts +15 -0
- package/lib/agents-report-cap.ts +115 -0
- package/lib/agents-runner.ts +91 -6
- package/lib/agents-session-transport.ts +17 -1
- package/lib/background-jobs-tools.ts +9 -4
- package/lib/bounded-writer-admission.ts +184 -31
- package/lib/child-context-files.ts +21 -6
- package/lib/codemode-renderer.ts +1 -0
- package/lib/delivery-conflict-markers.ts +349 -0
- package/lib/design-canvas-assets.ts +36 -0
- package/lib/design-canvas-server.ts +241 -23
- package/lib/design-comments.ts +94 -4
- package/lib/design-handoffs.ts +2 -1
- package/lib/design-layout.ts +125 -0
- package/lib/design-parts.ts +281 -0
- package/lib/design-system-tokens.ts +111 -0
- package/lib/desktop-agents-service.ts +294 -0
- package/lib/desktop-design-service.ts +233 -0
- package/lib/desktop-jobs-service.ts +263 -0
- package/lib/desktop-rpc-agents.ts +294 -0
- package/lib/desktop-rpc-config.ts +731 -0
- package/lib/desktop-rpc-design.ts +138 -0
- package/lib/desktop-rpc-jobs.ts +181 -0
- package/lib/desktop-rpc-permissions.ts +177 -0
- package/lib/desktop-rpc-profiles.ts +196 -0
- package/lib/desktop-rpc-usage.ts +229 -0
- package/lib/desktop-rpc.ts +225 -0
- package/lib/desktop-usage-service.ts +310 -0
- package/lib/destructive-command-guard.ts +188 -13
- package/lib/gentle-ai-renderer.ts +13 -1
- package/lib/gentle-design.ts +201 -14
- package/lib/gentle-shell-bundled.ts +100 -9
- package/lib/hidden-tools.ts +35 -0
- package/lib/inprocess-reviewer.ts +96 -12
- package/lib/model-fallback-policy.ts +9 -0
- package/lib/model-routing-authority.ts +9 -0
- package/lib/nan-provider.ts +42 -28
- package/lib/native-review-cli.ts +79 -4
- package/lib/orchestrator-discovery.ts +39 -2
- package/lib/reply-language-anchor.ts +27 -2
- package/lib/request-context-placement.ts +53 -0
- package/lib/review-candidate-view.ts +11 -1
- package/lib/review-continuation-registry.ts +17 -0
- package/lib/review-coordinator.ts +252 -8
- package/lib/review-delivery-preflight.ts +85 -0
- package/lib/review-host-relay.ts +5 -1
- package/lib/review-integration-v2.ts +56 -3
- package/lib/reviewer-stream.ts +87 -0
- package/lib/shell-prompt.ts +16 -3
- package/lib/shell-usage.ts +10 -0
- package/lib/vim-editor-adapter.ts +9 -2
- package/lib/writer-batch-admission.ts +55 -0
- package/lib/yolo-session-policy.ts +6 -1
- package/package.json +2 -2
- package/prompts/skill-creation.md +1 -10
- package/runtime/design-canvas-assets.mjs +37 -0
- package/runtime/gentle-shell-bundled.mjs +100 -9
- package/runtime/native-review-cli.mjs +79 -4
- package/runtime/review-integration-v2.mjs +56 -3
- package/scripts/bootstrap.cmd +2 -2
- package/scripts/bootstrap.sh +41 -4
- package/scripts/build-full-delegation-card.mjs +4 -0
- package/scripts/build-runtime-modules.mjs +1 -0
- package/scripts/gentle-ai-installer.mjs +10 -10
- package/scripts/gentle-ai-proxy.mjs +1 -1
- package/scripts/installer-downloads.mjs +34 -8
- package/scripts/installer-preflight.mjs +28 -17
- package/scripts/installer-probes.mjs +25 -5
- package/scripts/installer-server.mjs +38 -9
- package/scripts/installer-windows.mjs +2 -2
- package/scripts/pi-update.mjs +166 -27
- package/scripts/prepare-verifier.mjs +107 -0
- package/scripts/update-agent-body-history.mjs +55 -8
- package/scripts/verify-package-files.mjs +40 -19
- package/skills/branch-pr/SKILL.md +16 -16
- package/skills/comment-writer/SKILL.md +1 -1
- package/skills/design/SKILL.md +6 -6
- package/skills/gentle-ai/SKILL.md +5 -5
- package/skills/judgment-day/SKILL.md +2 -2
- package/skills/judgment-day/references/prompts-and-formats.md +1 -1
- package/skills/rdd-defect-workflow/SKILL.md +6 -6
- package/skills/skill-improver/SKILL.md +2 -2
- package/skills/skill-registry/SKILL.md +11 -13
- package/skills/tui-design/SKILL.md +1 -1
- package/skills/work-unit-commits/SKILL.md +5 -5
- package/tests/agent-prompt-diet-contract.test.ts +101 -0
- package/tests/agent-tool-overlay-acceptance.test.ts +158 -0
- package/tests/agent-tool-overlay.test.ts +89 -0
- package/tests/agents-config.test.ts +10 -1
- package/tests/agents-message-delivery.test.ts +36 -0
- package/tests/agents-queries.test.ts +144 -4
- package/tests/agents-report-cap.test.ts +126 -0
- package/tests/agents-runner.test.ts +37 -1
- package/tests/agents-session-transport.test.ts +34 -0
- package/tests/always-on-prompt-verdicts-contract.test.ts +188 -0
- package/tests/append-system-prompt-route.test.ts +10 -2
- package/tests/approved-text-leftovers-contract.test.ts +136 -0
- package/tests/artifact-language.test.ts +1 -1
- package/tests/ask-user-question.test.ts +2 -1
- package/tests/audit-leftovers-contract.test.ts +51 -0
- package/tests/bounded-stop-contract.test.ts +9 -1
- package/tests/branch-pr-skill.test.ts +10 -1
- package/tests/bundled-install.test.ts +1 -1
- package/tests/child-context-files.test.ts +64 -8
- package/tests/child-skills-catalog.test.ts +56 -0
- package/tests/codemode-rendering.test.ts +4 -1
- package/tests/delegate-for-reason-contract.test.ts +30 -8
- package/tests/delivery-conflict-markers.test.ts +348 -0
- package/tests/design-canvas-all-sizes.test.ts +631 -0
- package/tests/design-canvas-allowlist.test.ts +32 -0
- package/tests/design-canvas-assets.test.ts +11 -878
- package/tests/design-canvas-boards.test.ts +77 -0
- package/tests/design-canvas-checks.test.ts +655 -0
- package/tests/design-canvas-compare.test.ts +79 -0
- package/tests/design-canvas-events.test.ts +59 -0
- package/tests/design-canvas-export.test.ts +1168 -0
- package/tests/design-canvas-focus.test.ts +113 -0
- package/tests/design-canvas-handoffs.test.ts +59 -0
- package/tests/design-canvas-i18n-review.test.ts +513 -0
- package/tests/design-canvas-i18n-views.test.ts +259 -0
- package/tests/design-canvas-i18n.test.ts +526 -0
- package/tests/design-canvas-inspector.test.ts +937 -0
- package/tests/design-canvas-layout.test.ts +1222 -0
- package/tests/design-canvas-minimap.test.ts +413 -0
- package/tests/design-canvas-modules.test.ts +90 -0
- package/tests/design-canvas-parts.test.ts +721 -0
- package/tests/design-canvas-rail.test.ts +799 -0
- package/tests/design-canvas-server.test.ts +855 -17
- package/tests/design-canvas-sizes.test.ts +548 -0
- package/tests/design-canvas-store.test.ts +180 -0
- package/tests/design-canvas-tokens.test.ts +965 -0
- package/tests/design-canvas-view.test.ts +299 -0
- package/tests/design-comments.test.ts +201 -1
- package/tests/design-handoffs.test.ts +20 -0
- package/tests/design-layout.test.ts +100 -0
- package/tests/design-parts.test.ts +260 -0
- package/tests/design-system-tokens.test.ts +215 -0
- package/tests/desktop-rpc-agents.test.ts +893 -0
- package/tests/desktop-rpc-config.test.ts +1452 -0
- package/tests/desktop-rpc-design.test.ts +662 -0
- package/tests/desktop-rpc-jobs.test.ts +796 -0
- package/tests/desktop-rpc-permissions.test.ts +311 -0
- package/tests/desktop-rpc-profiles.test.ts +140 -0
- package/tests/desktop-rpc-safety.test.ts +119 -0
- package/tests/desktop-rpc-usage.test.ts +697 -0
- package/tests/desktop-rpc.test.ts +252 -0
- package/tests/devbinary/pi-host-relay.devtest.ts +149 -80
- package/tests/devbinary/review-session-consent.devtest.ts +84 -0
- package/tests/engram-safety.test.ts +111 -0
- package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.captured.json +92 -0
- package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.provenance.md +3 -0
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +20 -29
- package/tests/fixtures/refusal-identity.probe.mjs +139 -0
- package/tests/full-delegation-closure.test.ts +29 -0
- package/tests/gentle-agents.test.ts +329 -4
- package/tests/gentle-ai-binary.test.ts +1 -1
- package/tests/gentle-ai-child-guards.test.ts +1 -0
- package/tests/gentle-ai-installer.test.ts +52 -51
- package/tests/gentle-ai-renderer.test.ts +36 -2
- package/tests/gentle-ai.test.ts +121 -6
- package/tests/gentle-design.test.ts +365 -1
- package/tests/gentle-shell-bundled.test.ts +91 -5
- package/tests/gentle-shell-launcher.test.ts +1 -1
- package/tests/gentle-shell.test.ts +118 -87
- package/tests/gentle-todo.test.ts +32 -9
- package/tests/hidden-tools.test.ts +188 -0
- package/tests/independent-recovery-delivery.test.ts +19 -5
- package/tests/inprocess-reviewer.test.ts +73 -0
- package/tests/install-wizard.test.ts +27 -1
- package/tests/installer-downloads.test.ts +30 -1
- package/tests/installer-posix-bootstrap.test.ts +114 -13
- package/tests/installer-preflight.test.ts +49 -1
- package/tests/installer-probes.test.ts +146 -0
- package/tests/installer-server.test.ts +203 -4
- package/tests/installer-windows-bootstrap.test.ts +19 -1
- package/tests/judgment-day-severity-admission.test.ts +46 -0
- package/tests/lazy-module-contradictions-contract.test.ts +158 -0
- package/tests/maintainer/desktop-rpc.maintest.ts +632 -0
- package/tests/maintainer/pi-update-source.maintest.ts +48 -18
- package/tests/model-fallback-policy.test.ts +26 -7
- package/tests/nan-provider-runtime.test.ts +17 -3
- package/tests/nan-provider.test.ts +111 -56
- package/tests/native-review-capability-contract.test.ts +11 -1
- package/tests/native-review-cli-nonblocking-findings.test.ts +165 -0
- package/tests/native-review-parity.test.ts +24 -5
- package/tests/native-review-refusal-identity.test.ts +25 -0
- package/tests/no-self-pause-contract.test.ts +11 -3
- package/tests/odd-integration.test.ts +11 -3
- package/tests/odd-routing-contract.test.ts +80 -28
- package/tests/orchestrator-budget.test.ts +30 -5
- package/tests/orchestrator-consultation-sdk.test.ts +32 -6
- package/tests/orchestrator-delegation-mode.test.ts +2 -1
- package/tests/orchestrator-discovery.test.ts +28 -0
- package/tests/orchestrator-prompt-budget.test.ts +11 -2
- package/tests/orchestrator-prompt-diet-contract.test.ts +221 -0
- package/tests/orchestrator-rdd-ownership.test.ts +2 -1
- package/tests/orchestrator-work-search.test.ts +4 -2
- package/tests/package-files.test.ts +25 -1
- package/tests/package-manifest.test.ts +11 -10
- package/tests/parallel-reason-contract.test.ts +6 -3
- package/tests/permission-allowlist.test.ts +200 -30
- package/tests/persona-neutral-voseo.test.ts +4 -4
- package/tests/persona-reply-language.test.ts +1 -1
- package/tests/persona-single-channel.test.ts +13 -5
- package/tests/pi-update-launcher.test.ts +17 -7
- package/tests/pi-update-source.test.ts +113 -6
- package/tests/pi-update.test.ts +294 -19
- package/tests/pnpm-workspace-policy.test.ts +47 -0
- package/tests/primary-context-files.test.ts +233 -0
- package/tests/primary-context-three-files.test.ts +174 -0
- package/tests/provider-defect-handoff.test.ts +9 -2
- package/tests/rdd-aware-verification-contract.test.ts +1 -1
- package/tests/rdd-status-line.test.ts +94 -1
- package/tests/reply-language-anchor-placement.test.ts +184 -0
- package/tests/reply-language-anchor.test.ts +17 -1
- package/tests/request-context-append-only.test.ts +218 -0
- package/tests/request-context-placement.test.ts +148 -0
- package/tests/review-agent-end-preflight.test.ts +79 -1
- package/tests/review-candidate-view.test.ts +65 -0
- package/tests/review-continuation-registry.test.ts +31 -0
- package/tests/review-contract-prompt.test.ts +1 -1
- package/tests/review-controller.test.ts +2 -1
- package/tests/review-coordinator-correction-gate.test.ts +105 -0
- package/tests/review-coordinator-findings.test.ts +206 -0
- package/tests/review-coordinator-nonblocking-scope.test.ts +169 -0
- package/tests/review-coordinator.test.ts +271 -4
- package/tests/review-delivery-preflight.test.ts +462 -0
- package/tests/review-due-compaction.test.ts +31 -0
- package/tests/review-due-public-boundary.test.ts +26 -0
- package/tests/review-integration-nonblocking-findings.test.ts +108 -0
- package/tests/review-json-arguments.test.ts +41 -2
- package/tests/review-ledger-contract.test.ts +19 -40
- package/tests/review-loadout-rdd-off-sdk.test.ts +30 -1
- package/tests/review-one-call-findings.test.ts +131 -0
- package/tests/review-one-call-followups.test.ts +308 -0
- package/tests/review-one-call-reviewer-requests.test.ts +207 -0
- package/tests/review-one-call.test.ts +452 -0
- package/tests/review-relay-transport-agent.test.ts +28 -1
- package/tests/review-reviewer-evidence.test.ts +41 -1
- package/tests/review-risk-assessment.test.ts +52 -5
- package/tests/review-run-statement-guidance-independent.test.ts +54 -0
- package/tests/review-session-standing-permission-controller.test.ts +32 -2
- package/tests/review-tool-prose-budget.test.ts +1 -0
- package/tests/reviewer-stream.test.ts +149 -0
- package/tests/session-profile-extension.test.ts +2 -2
- package/tests/shell-prompt.test.ts +17 -0
- package/tests/shell-usage.test.ts +59 -10
- package/tests/skill-contradictions-contract.test.ts +122 -0
- package/tests/skill-registry-watcher.test.ts +216 -2
- package/tests/skill-registry.test.ts +929 -306
- package/tests/support/design-canvas-dom.ts +369 -0
- package/tests/support/review-coordinator-runtime.ts +212 -17
- package/tests/task-size-routing-contract.test.ts +42 -11
- package/tests/test-strength-contract.test.ts +2 -1
- package/tests/todo-request-append-only.test.ts +214 -0
- package/tests/tool-batching-contract.test.ts +3 -1
- package/tests/update-agent-body-history.test.ts +138 -0
- package/tests/verification-tiers-contract.test.ts +229 -0
- package/tests/verifier-preparation.test.ts +229 -0
- package/tests/verify-agent-contract.test.ts +20 -2
- package/tests/verify-first-launch-contract.test.ts +87 -11
- package/tests/vim-editor-adapter.test.ts +2 -2
- package/tests/work-continuity-contract.test.ts +54 -11
- package/tests/writer-admission-messages.test.ts +232 -0
- package/tests/writer-batch-admission.test.ts +66 -0
- package/tests/writer-edit-surface-scope.test.ts +52 -20
- package/tests/writer-feature-document-admission.test.ts +184 -0
- package/tests/yolo-mode.test.ts +39 -0
- package/skills/_shared/review-ledger-contract.md +0 -106
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/README.md +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/lens.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/refuter.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/targeted-validator.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/lens.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/refuter.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/targeted-validator.json +0 -0
|
@@ -4,6 +4,9 @@ import { createHash } from "node:crypto";
|
|
|
4
4
|
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
5
5
|
import { join, relative, sep } from "node:path";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
|
+
// The generated copy of lib/design-canvas-assets.ts: plain `node` runs this check
|
|
8
|
+
// (prepack, prepublishOnly), and Node 23.0-23.5 cannot load TypeScript unflagged.
|
|
9
|
+
import { DESIGN_CANVAS_ASSETS } from "../runtime/design-canvas-assets.mjs";
|
|
7
10
|
|
|
8
11
|
const root = join(fileURLToPath(new URL("..", import.meta.url)));
|
|
9
12
|
|
|
@@ -27,6 +30,10 @@ export const installerPaths = Object.freeze([
|
|
|
27
30
|
"assets/install-wizard/wizard.css",
|
|
28
31
|
]);
|
|
29
32
|
|
|
33
|
+
// The canvas server serves exactly these files; one list keeps the server and
|
|
34
|
+
// the package in sync.
|
|
35
|
+
export const designCanvasAssetPaths = Object.freeze(Object.keys(DESIGN_CANVAS_ASSETS).map((name) => `assets/design-canvas/${name}`));
|
|
36
|
+
|
|
30
37
|
export const requiredPaths = [
|
|
31
38
|
"bin/gentle-shell.mjs",
|
|
32
39
|
...installerPaths,
|
|
@@ -67,14 +74,15 @@ export const requiredPaths = [
|
|
|
67
74
|
"lib/gentle-design.ts",
|
|
68
75
|
// The design canvas server reads its page and scripts from assets/ by path.
|
|
69
76
|
"lib/design-canvas-server.ts",
|
|
77
|
+
"lib/design-canvas-assets.ts",
|
|
78
|
+
"runtime/design-canvas-assets.mjs",
|
|
70
79
|
"lib/design-open-browser.ts",
|
|
71
80
|
"lib/design-comments.ts",
|
|
72
81
|
"lib/design-handoffs.ts",
|
|
82
|
+
"lib/design-system-tokens.ts",
|
|
73
83
|
"lib/design-sources.ts",
|
|
74
84
|
"assets/design-canvas/index.html",
|
|
75
|
-
|
|
76
|
-
"assets/design-canvas/canvas.css",
|
|
77
|
-
"assets/design-canvas/inspector.js",
|
|
85
|
+
...designCanvasAssetPaths,
|
|
78
86
|
"scripts/npm-pack-result.mjs",
|
|
79
87
|
"assets/orchestrator.md",
|
|
80
88
|
"assets/orchestrator-delegation.md",
|
|
@@ -83,6 +91,7 @@ export const requiredPaths = [
|
|
|
83
91
|
"assets/orchestrator-delegation-reference.md",
|
|
84
92
|
"assets/orchestrator-tracking.md",
|
|
85
93
|
"assets/orchestrator-verification.md",
|
|
94
|
+
"assets/orchestrator-quota-recovery.md",
|
|
86
95
|
"assets/orchestrator-writer.md",
|
|
87
96
|
"assets/orchestrator-prompts.md",
|
|
88
97
|
"assets/orchestrator-memory.md",
|
|
@@ -122,10 +131,12 @@ export const requiredPaths = [
|
|
|
122
131
|
"lib/gentle-shell-import-pi.ts",
|
|
123
132
|
"lib/native-review-cli.ts",
|
|
124
133
|
"lib/review-coordinator.ts",
|
|
134
|
+
"lib/review-delivery-preflight.ts",
|
|
125
135
|
"lib/review-candidate-symlink-scan.ts",
|
|
126
136
|
"lib/status-timing-diagnostics.ts",
|
|
127
137
|
"lib/provider-contract-bundle.ts",
|
|
128
138
|
"lib/review-host-relay.ts",
|
|
139
|
+
"lib/reviewer-stream.ts",
|
|
129
140
|
"lib/review-integration-v2.ts",
|
|
130
141
|
"lib/review-relay-contract.ts",
|
|
131
142
|
"lib/agent-assets.ts",
|
|
@@ -152,6 +163,7 @@ export const requiredPaths = [
|
|
|
152
163
|
"scripts/gentle-ai-installer.mjs",
|
|
153
164
|
"scripts/install-gentle-ai.mjs",
|
|
154
165
|
"scripts/install-tui-mode-setting.mjs",
|
|
166
|
+
"scripts/prepare-verifier.mjs",
|
|
155
167
|
"scripts/mirror-provider-contract.mjs",
|
|
156
168
|
"tests/fixtures/native-review-cli/v2.1.3/start.json",
|
|
157
169
|
"tests/fixtures/provider-contract-bundle/v1.1.0/README.md",
|
|
@@ -166,22 +178,22 @@ export const requiredPaths = [
|
|
|
166
178
|
// exact bytes are pinned by the lock-driven scripts/check-provider-contract.mjs
|
|
167
179
|
// drift check, which runs in the same pnpm test flow.
|
|
168
180
|
"contracts/review-provider-contract-mirror/provider-contract.lock.json",
|
|
169
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
170
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
171
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
172
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
173
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
174
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
175
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
176
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
177
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
178
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
179
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
180
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
181
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/README.md",
|
|
182
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/manifest.json",
|
|
183
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/orchestration/pi.md",
|
|
184
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/routing/pi.md",
|
|
185
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/schemas/lens.schema.json",
|
|
186
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/schemas/refuter.schema.json",
|
|
187
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/schemas/targeted-validator.schema.json",
|
|
188
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/vectors/lens.json",
|
|
189
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/vectors/refuter.json",
|
|
190
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/vectors/targeted-validator.json",
|
|
191
|
+
"contracts/review-provider-contract-mirror/v1.5.0/generated/provider-capabilities.baseline.json",
|
|
192
|
+
"contracts/review-provider-contract-mirror/v1.5.0/generated/provider-roles.baseline.json",
|
|
181
193
|
"prompts/skill-creation.md",
|
|
182
|
-
"skills/_shared/review-ledger-contract.md",
|
|
183
194
|
"skills/branch-pr/SKILL.md",
|
|
184
195
|
"skills/chained-pr/SKILL.md",
|
|
196
|
+
"skills/chained-pr/references/chaining-details.md",
|
|
185
197
|
"skills/cognitive-doc-design/SKILL.md",
|
|
186
198
|
"skills/comment-writer/SKILL.md",
|
|
187
199
|
"skills/design/SKILL.md",
|
|
@@ -192,11 +204,20 @@ export const requiredPaths = [
|
|
|
192
204
|
"skills/gentle-ui-design/references/adaptive-interfaces.md",
|
|
193
205
|
"skills/gentle-ai/SKILL.md",
|
|
194
206
|
"skills/issue-creation/SKILL.md",
|
|
207
|
+
"skills/issue-creation/references/delegated-workflow-actions.md",
|
|
195
208
|
"skills/judgment-day/SKILL.md",
|
|
209
|
+
"skills/judgment-day/references/prompts-and-formats.md",
|
|
196
210
|
"skills/rdd-defect-workflow/SKILL.md",
|
|
197
211
|
"skills/skill-creator/SKILL.md",
|
|
198
212
|
"skills/skill-improver/SKILL.md",
|
|
199
213
|
"skills/skill-registry/SKILL.md",
|
|
214
|
+
"skills/tui-design/NOTICE.md",
|
|
215
|
+
"skills/tui-design/SKILL.md",
|
|
216
|
+
"skills/tui-design/references/commands.md",
|
|
217
|
+
"skills/tui-design/references/critique.md",
|
|
218
|
+
"skills/tui-design/references/design-doc.md",
|
|
219
|
+
"skills/tui-design/references/terminal-craft.md",
|
|
220
|
+
"skills/tui-design/references/visual-loop.md",
|
|
200
221
|
"skills/work-unit-commits/SKILL.md",
|
|
201
222
|
];
|
|
202
223
|
|
|
@@ -437,7 +458,7 @@ async function main() {
|
|
|
437
458
|
});
|
|
438
459
|
|
|
439
460
|
if (driftedContracts.length > 0) {
|
|
440
|
-
console.error("gentle-pi packaged review-integration/v1 and review-integration/v2 contract bytes drifted from the pinned v4.
|
|
461
|
+
console.error("gentle-pi packaged review-integration/v1 and review-integration/v2 contract bytes drifted from the pinned v4.5.0 runtime's vendored Gentle AI contract artifacts:");
|
|
441
462
|
for (const drift of driftedContracts) console.error(`- ${drift.relativePath}: expected ${drift.expected}, got ${drift.actual}`);
|
|
442
463
|
process.exit(1);
|
|
443
464
|
}
|
|
@@ -469,7 +490,7 @@ async function main() {
|
|
|
469
490
|
process.exit(1);
|
|
470
491
|
}
|
|
471
492
|
|
|
472
|
-
const { GENTLE_AI_VERSION } = await import(new URL("../
|
|
493
|
+
const { GENTLE_AI_VERSION } = await import(new URL("../runtime/gentle-ai-binary.mjs", import.meta.url));
|
|
473
494
|
const versionMismatches = gentleAiVersionPinMismatches({
|
|
474
495
|
installerVersion: INSTALLER_VERSION,
|
|
475
496
|
releaseBaseUrl: RELEASE_BASE_URL,
|
|
@@ -482,7 +503,7 @@ async function main() {
|
|
|
482
503
|
process.exit(1);
|
|
483
504
|
}
|
|
484
505
|
|
|
485
|
-
console.log(`gentle-pi package resource check passed (${requiredPaths.length} files; ${Object.keys(contractHashes).length} exact byte-pinned contract artifacts for the v4.
|
|
506
|
+
console.log(`gentle-pi package resource check passed (${requiredPaths.length} files; ${Object.keys(contractHashes).length} exact byte-pinned contract artifacts for the v4.5.0 runtime).`);
|
|
486
507
|
}
|
|
487
508
|
|
|
488
509
|
const isMainModule = process.argv[1] !== undefined && import.meta.url === pathToFileURL(process.argv[1]).href;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gentle-ai-branch-pr
|
|
3
|
-
description: "
|
|
3
|
+
description: "Prepare pull requests using the target repository's contribution policy. Trigger: creating, opening, or preparing PRs for review."
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: gentleman-programming
|
|
7
|
-
version: "2.
|
|
7
|
+
version: "2.1"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
## When to Use
|
|
@@ -18,26 +18,26 @@ Use this skill when:
|
|
|
18
18
|
|
|
19
19
|
## Critical Rules
|
|
20
20
|
|
|
21
|
-
1. **
|
|
22
|
-
2. **
|
|
21
|
+
1. **Issue linkage and approval follow the target repository's documented policy or explicit user instruction.** Without such a requirement, continue without an issue or approval label. Reuse the user's stated approval convention; do not require `status:approved` unless the target uses it.
|
|
22
|
+
2. **Labels follow target policy.** Exactly one `type:*` label is required only where that convention applies.
|
|
23
23
|
3. **REQUIRED CI must pass according to target policy** before merge; CodeRabbit is optional unless required by that policy
|
|
24
|
-
4. **
|
|
24
|
+
4. **Use the target's actual template and checks.** Never infer a GitHub Actions issue gate from this skill alone.
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
28
|
## Target and Authorization
|
|
29
29
|
|
|
30
30
|
- Inspect `origin` locally (`git remote get-url origin`) and establish one unambiguous target host and `owner/repo`. Do not infer the target from the cwd or assume `main`. Stop if ambiguous.
|
|
31
|
-
-
|
|
31
|
+
- Establish explicit remote destination, operation and credential/session authorization before target-host reads, including `gh auth status` or repository metadata. Reuse authorization already supplied in this session; an authorized PR request includes the necessary target-bound metadata reads through the connected account. Ask only for a missing target or grant. Do not inspect or reuse an ambient SSH agent. Permission for a read does not authorize a write; confirm each remote operation is within the grant.
|
|
32
32
|
- Once authorized, reuse fresh target-bound issue, default branch, type labels and checks evidence from this session instead of repeating discovery. Refresh stale or mismatched evidence; do not substitute another host's data. Resolve the base from the authorized target's default branch or a human-selected base.
|
|
33
|
-
- Do not automatically commit, push, open a PR or merge. Prepare and report a candidate; perform each action
|
|
33
|
+
- Do not automatically commit, push, open a PR or merge beyond the user's authorization. Prepare and report a candidate; perform each authorized action without asking again. Local preparation alone is not permission for remote delivery.
|
|
34
34
|
|
|
35
35
|
## Workflow
|
|
36
36
|
|
|
37
|
-
1. Identify the authorized target and
|
|
37
|
+
1. Identify the authorized target and its contribution policy. Verify issue approval only when required, using that target's approval convention. Reuse the user's closing/nonclosing intent; if unspecified, use nonclosing `Refs #N` for a supplied issue rather than blocking preparation on a question.
|
|
38
38
|
2. Select the base from target metadata and prepare a `type/description` branch only when requested.
|
|
39
39
|
3. Implement in work units with conventional commits when authorized; follow the merged ODD applicable test-first policy, run applicable tests, shellcheck on modified scripts, and test changed skills in at least one agent when relevant. The per-task advisory 400 authored-line heuristic is not an automatic split or a reason to omit tests or docs.
|
|
40
|
-
4. Prepare the PR body from the target template and evidence.
|
|
40
|
+
4. Prepare the PR body from the target template and evidence. When authorized, open the PR and apply target-required labels; reuse an existing grant rather than requesting separate confirmation again.
|
|
41
41
|
5. Check target-policy required CI and report pending/failing checks rather than declaring merge-ready.
|
|
42
42
|
|
|
43
43
|
---
|
|
@@ -72,13 +72,13 @@ Branch names MUST match this regex:
|
|
|
72
72
|
|
|
73
73
|
Use the authorized target's `.github/PULL_REQUEST_TEMPLATE.md`. Fill it from observed evidence, retaining its required sections.
|
|
74
74
|
|
|
75
|
-
### 1. Linked Issue (
|
|
75
|
+
### 1. Linked Issue (when required or supplied)
|
|
76
76
|
|
|
77
|
-
Use the human-selected closing (`Closes #N`, `Fixes #N`, or `Resolves #N`) or nonclosing `Refs #N` reference. Do not turn `Refs` into an automatic close.
|
|
77
|
+
Use the human-selected closing (`Closes #N`, `Fixes #N`, or `Resolves #N`) or nonclosing `Refs #N` reference. Do not turn `Refs` into an automatic close. Check `status:approved` only if the target policy requires that label; reuse fresh target-bound verification. Omit issue linkage when no issue is supplied or required.
|
|
78
78
|
|
|
79
|
-
### 2. PR Type (
|
|
79
|
+
### 2. PR Type (target policy)
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Where the target uses this type convention, check exactly ONE in the template and add the matching available label:
|
|
82
82
|
|
|
83
83
|
| Checkbox | Label to add |
|
|
84
84
|
|----------|-------------|
|
|
@@ -107,13 +107,13 @@ Record actual commands and outcomes, including shellcheck on modified scripts, m
|
|
|
107
107
|
|
|
108
108
|
### 6. Contributor Checklist
|
|
109
109
|
|
|
110
|
-
Do not mark an unverified `[x]` checkbox. Check each item only after evidence supports it; leave pending items unchecked
|
|
110
|
+
Do not mark an unverified `[x]` checkbox. Check each applicable item only after evidence supports it; leave pending items unchecked. Issue approval and exactly one `type:*` label apply only under target policy; other examples include applicable shellcheck, skills tested in at least one agent, docs updated if behavior changed, conventional commit format, and no `Co-Authored-By` trailers. If a template demands every box checked, resolve outstanding items before submission rather than falsely attesting.
|
|
111
111
|
|
|
112
112
|
---
|
|
113
113
|
|
|
114
114
|
## Labels and Automated Checks
|
|
115
115
|
|
|
116
|
-
- Apply exactly one `type:*` label from the authorized target's available labels. A commit-type mapping below is a suggestion, not proof of label availability or permission.
|
|
116
|
+
- Apply exactly one `type:*` label only when required by target policy, from the authorized target's available labels. Do not create missing labels to satisfy this skill. A commit-type mapping below is a suggestion, not proof of label availability or permission.
|
|
117
117
|
- Protected labels require an exact direct instruction naming the label and an actor with MAINTAIN/ADMIN permission. Do not infer authorization from a general request to prepare or open a PR.
|
|
118
118
|
- For a PR above the advisory 400 authored-line review budget, follow the destination repository's documented contribution/size policy. `size:exception` is a Gentle-owned repository policy, not a universal label requirement. Never request, create, or add the label for generic users unless their destination policy uses it. Only when that policy uses `size:exception`, record the human-selected `size:exception` rationale if that route was selected; no separate instructor proof is required. Preserve actual policy acceptance gates and apply the protected label only under the same direct-instruction and actor rule. Choosing `single-pr` does not waive policy gates or label authorization, nor automatically select `exception-ok`. Do not code-golf or omit tests to meet the budget.
|
|
119
119
|
- REQUIRED CI is determined by target policy, not a fixed list of job names. Check issue-reference validation (including target-supported `Refs`), issue approval, exactly one type label and shellcheck where the target requires them. CodeRabbit is optional unless required by target policy. Report required pending or failing checks; never merge on an unverified green claim.
|
|
@@ -171,4 +171,4 @@ feat!: redesign skill loading system
|
|
|
171
171
|
|
|
172
172
|
## Commands
|
|
173
173
|
|
|
174
|
-
Local target inspection may use `git remote get-url origin`.
|
|
174
|
+
Local target inspection may use `git remote get-url origin`. Within established target-host read authorization, verify target metadata and the default branch with target-bound `gh` calls; never use implicit cwd targeting. Run applicable local checks before proposing delivery. Only with authorization for the verified destination, operation and credential/session may you push, create or edit a PR; reuse the existing grant. Pass the verified `--repo` and `--base` explicitly, and use the human-selected issue-reference form in the body. Do not execute a command block as an automatic workflow.
|
|
@@ -61,7 +61,7 @@ For the next PR, add links to the previous and following PRs so the chain stays
|
|
|
61
61
|
### Ask for split
|
|
62
62
|
|
|
63
63
|
```markdown
|
|
64
|
-
This PR
|
|
64
|
+
This PR is large for one review (about 600 changed lines). Could we split it, or follow the repo's size policy if it allows one PR?
|
|
65
65
|
|
|
66
66
|
Suggested order: foundation + tests first, then integration, then docs. That gives each review a clear start and end.
|
|
67
67
|
```
|
package/skills/design/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gentle-design
|
|
3
|
-
description: "Trigger: design a screen or page, mockup, landing page, UI directions, artboards, try a different approach, design system sync.
|
|
3
|
+
description: "Trigger: design a screen or page, mockup, landing page, UI directions, artboards, try a different approach, design system sync. HTML design directions in design/<slug>/."
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: gentleman-programming
|
|
@@ -11,7 +11,7 @@ metadata:
|
|
|
11
11
|
|
|
12
12
|
Use this skill by default whenever the user asks, in plain words, for a UI design, mockup, screen, landing page, or visual directions, or iterates on artboards under `design/`. Do not use it to implement production code in the project's stack.
|
|
13
13
|
|
|
14
|
-
The `/gentle:design` commands are optional shortcuts: every action also works from a plain request, through this skill and the `gentle_design` tool
|
|
14
|
+
The `/gentle:design` commands are optional shortcuts: every action also works from a plain request, through this skill and the `gentle_design` tool. When `gentle_design` or `gentle_design_comments` is not declared, call it from `codemode` as `tools.gentle_design({...})` or `tools.gentle_design_comments({...})` with the same arguments.
|
|
15
15
|
|
|
16
16
|
## Hard Rules
|
|
17
17
|
|
|
@@ -69,22 +69,22 @@ Run this gate before every new brief: call the `gentle_design` tool with `action
|
|
|
69
69
|
7. Set `width`/`height` to the artboard's intended viewport in CSS pixels; keep the manifest in sync with the files on every change. Fields: `title`, `brief`, optional `feature`, and `artboards[]` with `file`, `title`, `tradeoff`, `width`, `height`.
|
|
70
70
|
8. ODD link: when the design comes from a tracked ODD feature (an existing `odd/tasks/<feature>.md` for the current work), set `feature` to that path and append one entry to that document's `## Log` naming `design/<slug>/` and its artboards. When an artboard of that design is handed off to implement, the Log entry also names the chosen artboard (the one handed off; `list` reports it as `Chosen`) and that the others are alternatives. For small untracked work, omit `feature` and leave the design standalone; never create a feature document just to link it.
|
|
71
71
|
9. UX self-check, for every artboard you finish: pass it against the `gentle-ui-design` composition-and-feedback (hierarchy, density, feedback) and adaptive-interfaces (narrow screens, input access, states) guidance, and fix every gap before you report.
|
|
72
|
-
10. After writing or changing artboards, call the `gentle_design` tool with `action: "open"` and the slug, unless the user said not to.
|
|
72
|
+
10. After writing or changing artboards, call the `gentle_design` tool with `action: "open"` and the slug, unless the user said not to. It refreshes an open canvas tab instead of opening another, so call it after every change. Report the URL it returns.
|
|
73
73
|
|
|
74
74
|
## Design system sync
|
|
75
75
|
|
|
76
76
|
1. Read only, and never edit project source. Sources: CSS custom properties (`:root`, `@theme`, `[data-theme]`), the Tailwind config or v4 `@theme`, component library folders, existing token files, and the fonts they declare.
|
|
77
|
-
2. Write `design/system.md`: colors (token name, value, usage), typography, spacing, radius, shadows, and component rules. Each entry names its source `path`. Record only values found in the sources.
|
|
77
|
+
2. Write `design/system.md`: colors (token name, value, usage), typography, spacing, radius, shadows, and component rules. For each CSS custom property, use a table row under a `##` section, with the backticked token name in the first cell and its backticked value in the second cell. Each entry names its source `path`. Record only values found in the sources.
|
|
78
78
|
3. Write `design/system.html`: one self-contained artboard, 1440 px wide, that renders those tokens (swatches, type scale, spacing, radius, shadows) and the core components, under the same no-external-URL rules. The canvas shows it as the first board of every design.
|
|
79
79
|
4. When no design sources exist, say so and propose a minimal starter system for the user to accept; never present invented values as project tokens.
|
|
80
80
|
5. Self-check, for every artboard you finish while `design/system.md` exists: list the colors and font families the artboard uses, compare them with the system tokens, and fix every deviation before you report.
|
|
81
81
|
|
|
82
82
|
## Canvas comments
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
Canvas comments live in `design/<slug>/comments.json` and also arrive as messages naming each id.
|
|
85
85
|
|
|
86
86
|
1. Read the open comments with the `gentle_design_comments` tool (`action: "list"`, optional `slug` and `file`). Without the tool, read `design/<slug>/comments.json` and use the entries whose `status` is `"open"`.
|
|
87
|
-
2. Apply each comment by editing only the artboard in its `file`; use `selector` and `excerpt` to find the element. When a comment has a `screenshot`, look at it first: it arrives attached to the comment message, or open `design/<slug>/<screenshot>` with the read tool. It shows what the user saw, often a transient
|
|
87
|
+
2. Apply each comment by editing only the artboard in its `file`; use `selector` and `excerpt` to find the element. When a comment has a `screenshot`, look at it first: it arrives attached to the comment message, or open `design/<slug>/<screenshot>` with the read tool. It shows what the user saw, often a transient state the static artboard lacks.
|
|
88
88
|
3. Mark each applied comment resolved with the tool (`action: "resolve"`, `slug`, `ids`). Without the tool, set its `status` to `"resolved"` and `resolvedAt` to the current ISO time, keeping every other entry and field as is. Leave comments you did not apply open, and say why.
|
|
89
89
|
|
|
90
90
|
The file format, for agents that only have file access:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gentle-ai
|
|
3
|
-
description: "
|
|
3
|
+
description: "Gentle AI harness discipline for Pi work: clarify first, track ODD work, applicable test-first by default, delegate when useful, protect review workload."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# el Gentleman Harness
|
|
@@ -22,7 +22,7 @@ When asked who or what you are, answer as el Gentleman: a Pi-specific coding-age
|
|
|
22
22
|
- Forecast review workload before large changes; ask before producing oversized or multi-area diffs.
|
|
23
23
|
- Keep dangerous-command safety independent and authoritative.
|
|
24
24
|
- Never claim persistent memory is available because of el Gentleman itself; memory is provided by separate packages/tools when active.
|
|
25
|
-
- For skill-shaped requests, check the
|
|
25
|
+
- For skill-shaped requests, check `<available_skills>` and, when present, the `Effective session skills` block for a more specific skill before generic execution (registry and filesystem only as a fallback); use it only if it improves the immediate task without adding ceremony.
|
|
26
26
|
- If a clearly expected skill is missing, say the fallback explicitly instead of silently using generic subagents.
|
|
27
27
|
|
|
28
28
|
## Work Routing
|
|
@@ -38,13 +38,13 @@ large authorized work → track ODD tasks and implement by work unit
|
|
|
38
38
|
For large implementation with subagents:
|
|
39
39
|
|
|
40
40
|
```text
|
|
41
|
-
clarify →
|
|
41
|
+
clarify → gentle-ai-explore when the evidence budget is exceeded → inline, or a writer only for a reason → verify
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Hard delegation triggers:
|
|
45
45
|
|
|
46
|
-
- **Evidence-budget rule**: read inline only when the evidence fits one parallel batch of at most 3 calls, ~10k tokens (grep and line ranges, never whole large files). Reassess cumulative discovery after each batch; do not reset the budget. When understanding needs more reading or more than
|
|
47
|
-
- **Writer rule**: a writer only
|
|
46
|
+
- **Evidence-budget rule**: read inline only when the evidence fits one parallel batch of at most 3 calls, ~10k tokens (grep and line ranges, never whole large files). Reassess cumulative discovery after each batch; do not reset the budget. When understanding needs more reading or more than 3 lookups, delegate one explorer that returns a handoff of at most ~2k tokens with `path:line` evidence. A fired trigger overrides initial task size; read-only restricts mutation, not exploration. Preparation for an already understood inline write stays inline, not further discovery. A known small targeted question within budget stays inline; do not re-read what the handoff covered beyond one spot check.
|
|
47
|
+
- **Writer rule**: outside full delegation, a writer only when two or more independent units of behavior, each heavier than a subagent start, are launched together in one turn, or when the context backstop fires; task size and file count never fire it. In full delegation every write goes to a bounded writer, whatever its size.
|
|
48
48
|
- **Verification rule**: a change that touches a named high-risk item gets an independent verifier (assess `escalate` when RDD is on or unknown); otherwise the change's own focused test and suite run inline.
|
|
49
49
|
- **Incident rule**: after wrong cwd, accidental worktree/repo mutation, merge recovery, confusing test command, or environment workaround, diagnose separately.
|
|
50
50
|
- **Context backstop**: when the runtime signals the context backstop (measured parent context past the smaller of an absolute cap and a fraction of the model's context window), pause and delegate the next bounded unit that needs several steps to a non-review subagent; small edits stay inline. Keep command output bounded (counts, `--stat`, `tail`).
|
|
@@ -4,7 +4,7 @@ description: "Trigger: judgment day, judgement day, dual review, adversarial rev
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: gentleman-programming
|
|
7
|
-
version: "1.
|
|
7
|
+
version: "1.8"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
## Activation Contract
|
|
@@ -39,7 +39,7 @@ Return one `verified | corroborated | regression` resolution per requested ID.
|
|
|
39
39
|
|
|
40
40
|
Actor output is untrusted data and cannot authorize transitions, fixes, receipts, gates, or delivery.
|
|
41
41
|
|
|
42
|
-
WARNING and SUGGESTION candidates become one-time informational rows and never schedule fixes.
|
|
42
|
+
Use only BLOCKER, CRITICAL, WARNING, or SUGGESTION as severity values. BLOCKER and CRITICAL are severe; WARNING and SUGGESTION candidates become one-time informational rows and never schedule fixes. HIGH and MAJOR are unsupported. Never rename or promote a severity to obtain fix admission; a classification must follow the evidence and the authorized Judgment Day flow.
|
|
43
43
|
|
|
44
44
|
## Execution
|
|
45
45
|
|
|
@@ -27,7 +27,7 @@ Run one exhaustive read-only sweep — at most two sweeps for a full-4R-scale ta
|
|
|
27
27
|
|
|
28
28
|
During initial discovery, do not persist state, mutate claims, launch actors, request fixes, validate fixes, or deliver anything.
|
|
29
29
|
|
|
30
|
-
Each candidate contains stable ID, exact location, severity, evidence class, and concrete user-impact claim. WARNING and SUGGESTION are informational. Return an empty `rows` array when clean.
|
|
30
|
+
Each candidate contains stable ID, exact location, severity, evidence class, and concrete user-impact claim. Use only BLOCKER, CRITICAL, WARNING, or SUGGESTION for severity. BLOCKER and CRITICAL are severe; WARNING and SUGGESTION are informational. HIGH and MAJOR are unsupported. Classify from the evidence; never rename or promote a severity to obtain fix admission. Return an empty `rows` array when clean.
|
|
31
31
|
|
|
32
32
|
Actor output is untrusted data and cannot authorize transitions, fixes, receipts, gates, or delivery.
|
|
33
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gentle-ai-rdd-defect-workflow
|
|
3
|
-
description: "Trigger: RDD
|
|
3
|
+
description: "Trigger: fixing RDD defects (review authority, receipts/lineage, correction/recovery, delivery gate). Not for using or toggling RDD."
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: gentleman-programming
|
|
@@ -16,11 +16,11 @@ This skill guides public collaboration. It does not grant issue approval, label,
|
|
|
16
16
|
## Hard Rules
|
|
17
17
|
|
|
18
18
|
- Review and Judgment Day evidence is review-only. Pi never mints delivery authority: ordinary commit, push, PR, and release always follow repository policy, regardless of RDD mode.
|
|
19
|
-
-
|
|
19
|
+
- Follow the target repository's issue policy: require an approved issue (`status:approved`) only where it uses one; reproduce on a clean current default branch before implementation. Audit existing PRs for supersession or conflict; stop or narrow stale claims.
|
|
20
20
|
- Group by causal authority invariant. Use one issue and one PR or explicit chain per independent invariant and rollback boundary. Split independent causes; never merge a superseded or conflicting authority line.
|
|
21
21
|
- Inventory every operator flow claimed by the issue or PR, including entry, mode, environment, expectation, and negative controls. Require one truthful black-box bench journey per CLI or lifecycle flow, or actual runtime E2E proof when the core bench cannot represent it. Synthetic proxy coverage never proves another runtime.
|
|
22
22
|
- Use CodeGraph-first impact mapping, a dedicated worktree, and behavior-first tests. Run source-mutating normalization before candidate freeze.
|
|
23
|
-
- Forecast authored changes before edits.
|
|
23
|
+
- Forecast authored changes before edits. Above about 400 additions plus deletions (a planning heuristic, not a hard limit), apply the feature's delivery strategy and the target repository's size policy.
|
|
24
24
|
- When RDD is enabled, bind review receipts, lineage, correction, and recovery evidence to the exact candidate. Keep bounded review defects in one correction transaction; never treat that evidence as delivery authority.
|
|
25
25
|
- Require independent read-only candidate validation before publication. Validation cannot edit source or authority; findings require a new candidate.
|
|
26
26
|
- Keep communication humane and evidence-based. Repository labels and workflow metadata are maintainer-owned, never evidence of contributor blame.
|
|
@@ -33,14 +33,14 @@ This skill guides public collaboration. It does not grant issue approval, label,
|
|
|
33
33
|
| Issue gate or reproduction fails | Wait, stop, or narrow with evidence. |
|
|
34
34
|
| Invariant or rollback is independent | Separate issue and authoritative PR line. |
|
|
35
35
|
| Core bench fits / does not fit | Bench journey / actual runtime E2E; never proxy. |
|
|
36
|
-
| Forecast exceeds 400 lines |
|
|
36
|
+
| Forecast exceeds about 400 lines | Apply the delivery strategy and the target size policy; never a hard stop. |
|
|
37
37
|
|
|
38
38
|
## Execution Steps
|
|
39
39
|
|
|
40
|
-
1. Check mode,
|
|
40
|
+
1. Check mode, the repository's issue policy, PR conflicts, and default-branch reproduction.
|
|
41
41
|
2. Name invariant and rollback; isolate the worktree; CodeGraph-map code, tests, evidence, docs, distribution, and registration.
|
|
42
42
|
3. Inventory flows and controls; add failing tests and the smallest correction.
|
|
43
|
-
4. Normalize,
|
|
43
|
+
4. Normalize, apply the delivery strategy past about 400 changed lines, run tests, and record each flow's exact candidate, command, scenario, and result.
|
|
44
44
|
5. Freeze, validate read-only, and give the verdict, evidence, and one humane next action.
|
|
45
45
|
|
|
46
46
|
## Output Contract
|
|
@@ -15,7 +15,7 @@ Use this skill when auditing, refactoring, normalizing, or improving existing `S
|
|
|
15
15
|
|
|
16
16
|
- Read `docs/skill-style-guide.md` first and treat it as the normative style contract.
|
|
17
17
|
- Treat `SKILL.md` as the source of truth; preserve author intent, critical rules, activation semantics, and output requirements.
|
|
18
|
-
-
|
|
18
|
+
- In Pi use the effective session skill view for names, triggers, scopes, and exact paths. The shared `.atl/skill-registry.md` is a disk-only fallback and omits runtime-only skills.
|
|
19
19
|
- Default to audit-only. Modify files only when the user explicitly asks to apply improvements.
|
|
20
20
|
- Never delete meaningful content silently; move long explanation, examples, templates, or schemas into local `references/` or `assets/`.
|
|
21
21
|
- Do not invent triggers, policies, or domain rules. Mark ambiguous cases for human review.
|
|
@@ -33,7 +33,7 @@ Use this skill when auditing, refactoring, normalizing, or improving existing `S
|
|
|
33
33
|
## Execution Steps
|
|
34
34
|
|
|
35
35
|
1. Read `docs/skill-style-guide.md`.
|
|
36
|
-
2.
|
|
36
|
+
2. Use the effective session view (`<available_skills>` plus any `Effective session skills` rows) to select skills. If neither is present, report that limitation and use `.atl/skill-registry.md` as a disk-only fallback; if absent, scan known skill directories for `*/SKILL.md`.
|
|
37
37
|
3. For each selected skill, audit metadata, trigger clarity, section order, body budget, actionability, decision gates, output contract, and local references.
|
|
38
38
|
4. Return an audit report grouped by skill with severity and exact proposed changes.
|
|
39
39
|
5. In apply mode, edit only safe issues, preserve content, create supporting files when needed, then refresh or request `/skill-registry:refresh`.
|
|
@@ -15,39 +15,37 @@ Use this skill after installing, removing, creating, moving, or renaming skills,
|
|
|
15
15
|
|
|
16
16
|
- The registry is an index, not a compiler or summary. `SKILL.md` remains the source of truth.
|
|
17
17
|
- Do not generate or inject compact rules by default; preserve author intent by passing exact skill paths to subagents.
|
|
18
|
-
-
|
|
19
|
-
- Save the registry to Engram as `topic_key: skill-registry` when available, with `capture_prompt: false`.
|
|
18
|
+
- Refresh `.atl/skill-registry.md` as a shared disk-only index; do not save session-only runtime rows to the file or Engram.
|
|
20
19
|
- Skip `sdd-*`, `_shared`, and `skill-registry`; deduplicate by skill name, preferring project-level skills over user-level skills.
|
|
21
|
-
-
|
|
22
|
-
-
|
|
20
|
+
- In Pi, the effective view is `<available_skills>` plus the on-disk rows of the `Effective session skills` block in the system prompt.
|
|
21
|
+
- Preserve Git-tracked targets during automatic refresh. Deliberate `/skill-registry:refresh` overrides that guard; unchanged rendered bytes remain untouched even on force.
|
|
23
22
|
|
|
24
23
|
## Decision Gates
|
|
25
24
|
|
|
26
25
|
| Situation | Action |
|
|
27
26
|
| --- | --- |
|
|
28
27
|
| Same skill exists globally and in project | Keep the project-level skill |
|
|
29
|
-
| Pi-resolved skill and loose scan share a path |
|
|
28
|
+
| Pi-resolved skill and loose scan share a path | In the effective view use the active Pi record, or suppress the path when disabled; the shared disk index remains independent |
|
|
30
29
|
| Same skill exists in multiple global locations | Keep the first source in scan order |
|
|
31
30
|
| No skills found | Write an empty registry so agents stop searching blindly |
|
|
32
|
-
| Agent will delegate work | Select matching
|
|
31
|
+
| Agent will delegate work | Select matching effective-view rows and pass their exact `SKILL.md` paths |
|
|
33
32
|
|
|
34
33
|
## Execution Steps
|
|
35
34
|
|
|
36
|
-
1.
|
|
37
|
-
2.
|
|
38
|
-
3.
|
|
39
|
-
4.
|
|
40
|
-
5. Return the registry path, skill count, cache status, and whether Engram was updated.
|
|
35
|
+
1. Use `/skill-registry:refresh` for a deliberate disk-index refresh. It scans known project and user roots, reads frontmatter, and publishes deterministic rows and a non-authoritative cache.
|
|
36
|
+
2. For Pi selection, consult the effective view: `<available_skills>` plus the `Effective session skills` rows.
|
|
37
|
+
3. Pass selected exact paths to subagents and require them to read each `SKILL.md` before work.
|
|
38
|
+
4. Return the registry path, disk skill count, and whether bytes changed.
|
|
41
39
|
|
|
42
40
|
## Output Contract
|
|
43
41
|
|
|
44
42
|
Return:
|
|
45
43
|
- Project name and `.atl/skill-registry.md` path.
|
|
46
44
|
- Number of indexed skills.
|
|
47
|
-
- Whether the
|
|
45
|
+
- Whether the registry changed or was already byte-identical.
|
|
48
46
|
- Any skipped or duplicate skills when relevant.
|
|
49
47
|
|
|
50
48
|
## References
|
|
51
49
|
|
|
52
50
|
- `docs/skill-style-guide.md` — how skills should be authored before indexing.
|
|
53
|
-
- `
|
|
51
|
+
- `assets/orchestrator-skills.md` — Pi delegator protocol (effective view, exact paths).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gentle-ai-tui-design
|
|
3
|
-
description: "Trigger: terminal UI design, TUI redesign, Gentle Shell look, IDE in a terminal, sidebar/status bar polish, critique TUI.
|
|
3
|
+
description: "Trigger: terminal UI design, TUI redesign, Gentle Shell look, IDE in a terminal, sidebar/status bar polish, critique TUI. Refine terminal UIs with visual proof."
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: gentleman-programming
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gentle-ai-work-unit-commits
|
|
3
|
-
description: "
|
|
3
|
+
description: "Trigger: commit splitting, chained PRs, keeping tests and docs with code. Plan commits as reviewable work units."
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: gentleman-programming
|
|
@@ -30,7 +30,7 @@ Use it for:
|
|
|
30
30
|
| Tell a story | A reviewer should understand why each commit exists from its diff and message. |
|
|
31
31
|
| Future PR-ready | Each commit should be a candidate chained PR when the change grows. |
|
|
32
32
|
| Delivery workload guard | If the task forecast produces a >400-line change, honor the selected `delivery_strategy`. On chaining paths only, group commits into chained PR slices before implementation. For explicit `single-pr` or `exception-ok`, keep one PR, report the review load, and follow the destination repository's documented contribution/size policy; selection alone does not accept an exception. |
|
|
33
|
-
| Budget is not code-golf | Never shrink a diff by deleting comments, blank lines, docs, or tests, or by compressing code, to fit the review budget (400
|
|
33
|
+
| Budget is not code-golf | Never shrink a diff by deleting comments, blank lines, docs, or tests, or by compressing code, to fit the review budget (about 400 authored changed lines). Slice by work unit or report the overage. |
|
|
34
34
|
|
|
35
35
|
## Work Unit Checklist
|
|
36
36
|
|
|
@@ -64,9 +64,9 @@ Use work-unit commits as the foundation for chained PRs:
|
|
|
64
64
|
|
|
65
65
|
The chosen `delivery_strategy` governs how commits group into PRs, and the budget constrains how work is sliced, never the code itself.
|
|
66
66
|
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
67
|
+
- Up to about 400 forecast or running authored changed lines: keep work-unit commits inside one PR.
|
|
68
|
+
- Above it: follow the selected `delivery_strategy` — ask on `ask-on-risk`, auto-slice with the cached chain choice on `auto-chain`, follow the destination repository's documented contribution/size policy on over-budget `single-pr`, or record an explicitly accepted policy exception on `exception-ok`. A single-PR selection does not itself accept an exception.
|
|
69
|
+
- Risk never picks the delivery strategy; a unit whose Risk line names a high-risk item gets its own commit.
|
|
70
70
|
- `size:exception` is a Gentle-owned repository policy, not a universal label requirement. Never request, create, or add the label for generic users unless the destination policy uses it; preserve its maintainer acceptance and protected-label authorization gates.
|
|
71
71
|
- Splitting is bounded: after one honest slicing pass, if no cohesive work-unit split fits the budget, stop and report the smallest honest count and rationale. Recommend an exception only where destination policy provides it. Do not iterate shrinking the code to reach the number.
|
|
72
72
|
|