@warpgogol/forge 9.7.0 → 9.7.1
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/CHANGELOG.md +25 -0
- package/dist/os/adr/handlers/archive.d.ts.map +1 -1
- package/dist/os/adr/handlers/archive.js +3 -7
- package/dist/os/adr/handlers/archive.js.map +1 -1
- package/dist/os/adr/handlers/list-create.d.ts.map +1 -1
- package/dist/os/adr/handlers/list-create.js +8 -6
- package/dist/os/adr/handlers/list-create.js.map +1 -1
- package/dist/os/audit/handlers/archive.d.ts.map +1 -1
- package/dist/os/audit/handlers/archive.js +3 -7
- package/dist/os/audit/handlers/archive.js.map +1 -1
- package/dist/os/core/archive-regen.d.ts +1 -0
- package/dist/os/core/archive-regen.d.ts.map +1 -1
- package/dist/os/core/archive-regen.js +31 -6
- package/dist/os/core/archive-regen.js.map +1 -1
- package/dist/os/core/core.module.d.ts.map +1 -1
- package/dist/os/core/core.module.js +5 -0
- package/dist/os/core/core.module.js.map +1 -1
- package/dist/os/core/handlers/pinned-check.d.ts +13 -0
- package/dist/os/core/handlers/pinned-check.d.ts.map +1 -1
- package/dist/os/core/handlers/pinned-check.js +25 -0
- package/dist/os/core/handlers/pinned-check.js.map +1 -1
- package/dist/os/core/handlers/pinned-types.d.ts +7 -0
- package/dist/os/core/handlers/pinned-types.d.ts.map +1 -1
- package/dist/os/core/handlers/pinned-validate.d.ts.map +1 -1
- package/dist/os/core/handlers/pinned-validate.js +24 -1
- package/dist/os/core/handlers/pinned-validate.js.map +1 -1
- package/dist/os/flow/digest.d.ts +73 -1
- package/dist/os/flow/digest.d.ts.map +1 -1
- package/dist/os/flow/digest.js +344 -92
- package/dist/os/flow/digest.js.map +1 -1
- package/dist/os/flow/evidence-lock.d.ts +36 -0
- package/dist/os/flow/evidence-lock.d.ts.map +1 -0
- package/dist/os/flow/evidence-lock.js +156 -0
- package/dist/os/flow/evidence-lock.js.map +1 -0
- package/dist/os/flow/flow.module.d.ts.map +1 -1
- package/dist/os/flow/flow.module.js +36 -14
- package/dist/os/flow/flow.module.js.map +1 -1
- package/dist/os/flow/git.d.ts +50 -3
- package/dist/os/flow/git.d.ts.map +1 -1
- package/dist/os/flow/git.js +144 -12
- package/dist/os/flow/git.js.map +1 -1
- package/dist/os/flow/handlers/flow-digest.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-digest.js +3 -5
- package/dist/os/flow/handlers/flow-digest.js.map +1 -1
- package/dist/os/flow/handlers/flow-push.d.ts +81 -0
- package/dist/os/flow/handlers/flow-push.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-push.js +642 -138
- package/dist/os/flow/handlers/flow-push.js.map +1 -1
- package/dist/os/flow/locks.d.ts +8 -0
- package/dist/os/flow/locks.d.ts.map +1 -1
- package/dist/os/flow/locks.js +6 -3
- package/dist/os/flow/locks.js.map +1 -1
- package/dist/os/flow/preflight.d.ts.map +1 -1
- package/dist/os/flow/preflight.js +4 -2
- package/dist/os/flow/preflight.js.map +1 -1
- package/dist/os/flow/registry.d.ts +9 -5
- package/dist/os/flow/registry.d.ts.map +1 -1
- package/dist/os/flow/registry.js +2 -2
- package/dist/os/flow/registry.js.map +1 -1
- package/dist/os/friction/friction.module.d.ts.map +1 -1
- package/dist/os/friction/friction.module.js +30 -5
- package/dist/os/friction/friction.module.js.map +1 -1
- package/dist/os/friction/handlers/friction-add.d.ts.map +1 -1
- package/dist/os/friction/handlers/friction-add.js +10 -17
- package/dist/os/friction/handlers/friction-add.js.map +1 -1
- package/dist/os/friction/handlers/friction-migrate.d.ts.map +1 -1
- package/dist/os/friction/handlers/friction-migrate.js +188 -2
- package/dist/os/friction/handlers/friction-migrate.js.map +1 -1
- package/dist/os/friction/store.d.ts +4 -0
- package/dist/os/friction/store.d.ts.map +1 -1
- package/dist/os/friction/store.js +20 -0
- package/dist/os/friction/store.js.map +1 -1
- package/dist/os/friction/types.d.ts +12 -0
- package/dist/os/friction/types.d.ts.map +1 -1
- package/dist/os/friction/types.js +8 -0
- package/dist/os/friction/types.js.map +1 -1
- package/dist/os/gate/handlers/gate-probe-catalog.d.ts.map +1 -1
- package/dist/os/gate/handlers/gate-probe-catalog.js +38 -5
- package/dist/os/gate/handlers/gate-probe-catalog.js.map +1 -1
- package/dist/os/mission/handlers/archive.d.ts.map +1 -1
- package/dist/os/mission/handlers/archive.js +3 -7
- package/dist/os/mission/handlers/archive.js.map +1 -1
- package/dist/os/plan/handlers/archive.d.ts.map +1 -1
- package/dist/os/plan/handlers/archive.js +3 -7
- package/dist/os/plan/handlers/archive.js.map +1 -1
- package/dist/os/rfc/handlers/archive.d.ts.map +1 -1
- package/dist/os/rfc/handlers/archive.js +3 -7
- package/dist/os/rfc/handlers/archive.js.map +1 -1
- package/dist/os/rfc/handlers/list-create.d.ts.map +1 -1
- package/dist/os/rfc/handlers/list-create.js +15 -7
- package/dist/os/rfc/handlers/list-create.js.map +1 -1
- package/dist/os/session/handlers/archive.d.ts.map +1 -1
- package/dist/os/session/handlers/archive.js +3 -7
- package/dist/os/session/handlers/archive.js.map +1 -1
- package/dist/os/system/handlers/system-product-register.d.ts +24 -0
- package/dist/os/system/handlers/system-product-register.d.ts.map +1 -0
- package/dist/os/system/handlers/system-product-register.js +322 -0
- package/dist/os/system/handlers/system-product-register.js.map +1 -0
- package/dist/os/system/handlers/system-products-status.d.ts +23 -0
- package/dist/os/system/handlers/system-products-status.d.ts.map +1 -0
- package/dist/os/system/handlers/system-products-status.js +235 -0
- package/dist/os/system/handlers/system-products-status.js.map +1 -0
- package/dist/os/system/schemas.d.ts +13 -0
- package/dist/os/system/schemas.d.ts.map +1 -1
- package/dist/os/system/schemas.js +15 -0
- package/dist/os/system/schemas.js.map +1 -1
- package/dist/os/system/system.module.d.ts.map +1 -1
- package/dist/os/system/system.module.js +113 -3
- package/dist/os/system/system.module.js.map +1 -1
- package/dist/src/config/forge-config.d.ts +2 -0
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +11 -10
- package/dist/src/config/forge-config.js.map +1 -1
- package/dist/src/onboarding/create.d.ts.map +1 -1
- package/dist/src/onboarding/create.js +27 -2
- package/dist/src/onboarding/create.js.map +1 -1
- package/dist/src/profiles/stack-profile.js +2 -2
- package/dist/src/types.js +2 -2
- package/dist/src/utils/verifier-git.d.ts +27 -1
- package/dist/src/utils/verifier-git.d.ts.map +1 -1
- package/dist/src/utils/verifier-git.js +36 -6
- package/dist/src/utils/verifier-git.js.map +1 -1
- package/docs/reference/system-hub.md +104 -0
- package/os/adr/handlers/archive.ts +3 -11
- package/os/adr/handlers/list-create.test.ts +174 -0
- package/os/adr/handlers/list-create.ts +16 -8
- package/os/audit/handlers/archive.ts +3 -11
- package/os/core/archive-regen.ts +33 -7
- package/os/core/core.module.ts +7 -0
- package/os/core/docs-archive.test.ts +25 -0
- package/os/core/handlers/pinned-check.ts +30 -0
- package/os/core/handlers/pinned-types.ts +7 -0
- package/os/core/handlers/pinned-validate.ts +28 -3
- package/os/flow/digest.ts +436 -95
- package/os/flow/evidence-lock.ts +184 -0
- package/os/flow/flow.module.ts +37 -14
- package/os/flow/git.ts +206 -11
- package/os/flow/handlers/flow-digest.ts +12 -8
- package/os/flow/handlers/flow-push.ts +725 -137
- package/os/flow/locks.ts +24 -7
- package/os/flow/preflight.ts +4 -2
- package/os/flow/registry.ts +7 -3
- package/os/flow/tests/digest-id-inputs.test.ts +106 -0
- package/os/flow/tests/digest-persist.test.ts +243 -0
- package/os/flow/tests/evidence-preflight-surface-skip.test.ts +218 -0
- package/os/flow/tests/flow-push-attest.test.ts +137 -0
- package/os/flow/tests/flow-push-review-baseline.test.ts +339 -0
- package/os/flow/tests/flow-push-verifier-batch.test.ts +134 -0
- package/os/friction/friction-add.test.ts +42 -0
- package/os/friction/friction-migrate.test.ts +67 -2
- package/os/friction/friction.module.ts +33 -5
- package/os/friction/handlers/friction-add.ts +10 -15
- package/os/friction/handlers/friction-migrate.ts +220 -1
- package/os/friction/store.ts +19 -0
- package/os/friction/types.ts +8 -0
- package/os/gate/handlers/gate-probe-catalog.ts +39 -7
- package/os/gate/handlers/gate-probe-ratchet.test.ts +57 -22
- package/os/mission/handlers/archive.ts +3 -11
- package/os/plan/handlers/archive.ts +3 -11
- package/os/rfc/handlers/archive.ts +3 -11
- package/os/rfc/handlers/list-create.ts +22 -17
- package/os/session/handlers/archive.ts +3 -11
- package/os/system/handlers/system-product-register.ts +492 -0
- package/os/system/handlers/system-products-status.ts +395 -0
- package/os/system/schemas.ts +17 -0
- package/os/system/system.module.ts +117 -3
- package/os/system/tests/system-product-register.test.ts +304 -0
- package/os/system/tests/system-products-status.test.ts +154 -0
- package/package.json +1 -1
- package/profiles/root-agents-system.md +82 -0
- package/profiles/system.yaml +1 -0
- package/src/config/forge-config.ts +16 -11
- package/src/onboarding/create-superfolder-guard.test.ts +73 -0
- package/src/onboarding/create.ts +28 -2
- package/src/profiles/stack-profile.ts +2 -2
- package/src/tests/evidence-consult-serialization.test.ts +202 -0
- package/src/tests/pinned-validate.test.ts +194 -0
- package/src/tests/profile-flow-hooks.test.ts +1 -0
- package/src/tests/profile-schema.test.ts +1 -0
- package/src/tests/stack-profile.test.ts +1 -0
- package/src/types.ts +2 -2
- package/src/utils/verifier-git.ts +53 -5
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
type MissionArchiveSkip,
|
|
47
47
|
type MissionArchiveResult,
|
|
48
48
|
} from "../types.ts";
|
|
49
|
-
import { loadPinnedManifest,
|
|
49
|
+
import { loadPinnedManifest, isArchiveBlocked } from "../../core/handlers/pinned-check.ts";
|
|
50
50
|
import { pruneMissionImportersFromLockfile, execFileSyncAdapter } from "../lockfile.ts";
|
|
51
51
|
import { resolveStateRoots } from "../../flow/worktree-path.ts";
|
|
52
52
|
|
|
@@ -502,11 +502,7 @@ export async function runMissionArchive(
|
|
|
502
502
|
|
|
503
503
|
// RFC-0733: Check if mission directory is pinned before moving
|
|
504
504
|
// Gap fix: exempt intra-directory moves (dir stays within the same pinned parent)
|
|
505
|
-
if (
|
|
506
|
-
pinnedManifest &&
|
|
507
|
-
isPinned(pinnedManifest, sourceRel) &&
|
|
508
|
-
!isIntraDirMove(pinnedManifest, sourceRel, targetRel)
|
|
509
|
-
) {
|
|
505
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, sourceRel, targetRel)) {
|
|
510
506
|
skipped.push({
|
|
511
507
|
missionId,
|
|
512
508
|
dir: sourceRel,
|
|
@@ -597,11 +593,7 @@ export async function runMissionArchive(
|
|
|
597
593
|
|
|
598
594
|
// RFC-0733: Check if mission directory is pinned before moving
|
|
599
595
|
// Gap fix: exempt intra-directory moves (dir stays within the same pinned parent)
|
|
600
|
-
if (
|
|
601
|
-
pinnedManifest &&
|
|
602
|
-
isPinned(pinnedManifest, sourceRel) &&
|
|
603
|
-
!isIntraDirMove(pinnedManifest, sourceRel, targetRel)
|
|
604
|
-
) {
|
|
596
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, sourceRel, targetRel)) {
|
|
605
597
|
skipped.push({
|
|
606
598
|
missionId,
|
|
607
599
|
dir: sourceRel,
|
|
@@ -28,7 +28,7 @@ import type {
|
|
|
28
28
|
} from "../../../src/types.ts";
|
|
29
29
|
import { PLAN_DIR } from "../types.ts";
|
|
30
30
|
import type { PlanArchiveResult } from "../types.ts";
|
|
31
|
-
import { loadPinnedManifest,
|
|
31
|
+
import { loadPinnedManifest, isArchiveBlocked } from "../../core/handlers/pinned-check.ts";
|
|
32
32
|
|
|
33
33
|
const TERMINAL_STATUSES = ["implemented", "rejected", "superseded"] as const;
|
|
34
34
|
|
|
@@ -98,11 +98,7 @@ export async function runPlanArchive(
|
|
|
98
98
|
|
|
99
99
|
// RFC-0733: Check if file is pinned before moving
|
|
100
100
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
101
|
-
if (
|
|
102
|
-
pinnedManifest &&
|
|
103
|
-
isPinned(pinnedManifest, relFile) &&
|
|
104
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
105
|
-
) {
|
|
101
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
106
102
|
skipped.push({
|
|
107
103
|
id: rfcId,
|
|
108
104
|
file: relFile,
|
|
@@ -151,11 +147,7 @@ export async function runPlanArchive(
|
|
|
151
147
|
|
|
152
148
|
// RFC-0733: Check if file is pinned before moving
|
|
153
149
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
154
|
-
if (
|
|
155
|
-
pinnedManifest &&
|
|
156
|
-
isPinned(pinnedManifest, relFile) &&
|
|
157
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
158
|
-
) {
|
|
150
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
159
151
|
skipped.push({
|
|
160
152
|
id: rfcId,
|
|
161
153
|
file: relFile,
|
|
@@ -33,7 +33,7 @@ import type {
|
|
|
33
33
|
} from "../../../src/types.ts";
|
|
34
34
|
import { RFC_DIR } from "../types.ts";
|
|
35
35
|
import { toIsoDate } from "./shared.ts";
|
|
36
|
-
import { loadPinnedManifest,
|
|
36
|
+
import { loadPinnedManifest, isArchiveBlocked } from "../../core/handlers/pinned-check.ts";
|
|
37
37
|
|
|
38
38
|
export const RFC_TERMINAL_STATUSES = ["implemented", "rejected", "superseded"] as const;
|
|
39
39
|
|
|
@@ -124,11 +124,7 @@ export async function runRfcArchive(
|
|
|
124
124
|
|
|
125
125
|
// RFC-0733: Check if file is pinned before moving
|
|
126
126
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
127
|
-
if (
|
|
128
|
-
pinnedManifest &&
|
|
129
|
-
isPinned(pinnedManifest, relFile) &&
|
|
130
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
131
|
-
) {
|
|
127
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
132
128
|
skipped.push({ id, file: relFile, reason: "pinned (protected by .forge/pinned.yaml)" });
|
|
133
129
|
if (outputFormat === "pretty") {
|
|
134
130
|
logger.warn(` pinned: skipping ${relFile} (protected)`);
|
|
@@ -173,11 +169,7 @@ export async function runRfcArchive(
|
|
|
173
169
|
|
|
174
170
|
// RFC-0733: Check if file is pinned before moving
|
|
175
171
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
176
|
-
if (
|
|
177
|
-
pinnedManifest &&
|
|
178
|
-
isPinned(pinnedManifest, relFile) &&
|
|
179
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
180
|
-
) {
|
|
172
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
181
173
|
skipped.push({ id, file: relFile, reason: "pinned (protected by .forge/pinned.yaml)" });
|
|
182
174
|
if (outputFormat === "pretty") {
|
|
183
175
|
logger.warn(` pinned: skipping ${relFile} (protected)`);
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1482: emit validation-compliant RFC skeletons and surface contract breaches at authoring time</item>
|
|
10
9
|
<item>RFC-1534: --amends flag seeds amends: and merges the draft id into the amended file's amendedBy[] in the same pass (line-level, F-0056); unreadable counterpart downgrades to a pending report.</item>
|
|
11
10
|
<item>RFC-1514: attach corrected invocations to blocking diagnostics so retry is one-shot</item>
|
|
12
11
|
<item>RFC-1536: owning-checkout routing, FLOW-OPEN-01 dirty-primary warning, shared governance-id allocation (RFC+ADR)</item>
|
|
13
12
|
<item>RFC-1546: derive-and-repair recoverable state across flow surfaces (AC-1..AC-5)</item>
|
|
14
|
-
<
|
|
13
|
+
<item>RFC-1536: degrade rfc.create session hint when the enclosing repo is unverifiable</item>
|
|
14
|
+
<history>RFC-0303, RFC-1097, RFC-1138, RFC-1139, RFC-1364, RFC-1467, RFC-1482</history>
|
|
15
15
|
</CHANGE_SUMMARY>
|
|
16
16
|
*/
|
|
17
17
|
|
|
@@ -281,8 +281,7 @@ export async function runRfcCreate(
|
|
|
281
281
|
.join("; ");
|
|
282
282
|
const reviewBand = byId(
|
|
283
283
|
scoredAll.filter(
|
|
284
|
-
(d) =>
|
|
285
|
-
TERMINAL_KINDS.has(d.kind) && d.score >= REVIEW_SCORE && d.score < REPROPOSED_SCORE,
|
|
284
|
+
(d) => TERMINAL_KINDS.has(d.kind) && d.score >= REVIEW_SCORE && d.score < REPROPOSED_SCORE,
|
|
286
285
|
),
|
|
287
286
|
);
|
|
288
287
|
const reviewBandIds = reviewBand.map((d) => d.rfcId);
|
|
@@ -439,9 +438,7 @@ export async function runRfcCreate(
|
|
|
439
438
|
const closing = content.indexOf("\n---\n");
|
|
440
439
|
if (closing !== -1) {
|
|
441
440
|
content =
|
|
442
|
-
content.slice(0, closing + 1) +
|
|
443
|
-
`acceptance:\n${stubs}\n` +
|
|
444
|
-
content.slice(closing + 1);
|
|
441
|
+
content.slice(0, closing + 1) + `acceptance:\n${stubs}\n` + content.slice(closing + 1);
|
|
445
442
|
}
|
|
446
443
|
}
|
|
447
444
|
// RFC-1467: cite the acknowledged/review-band precedents in `related`
|
|
@@ -468,14 +465,24 @@ export async function runRfcCreate(
|
|
|
468
465
|
const targetPath = path.join(rfcDirPath, fileName);
|
|
469
466
|
// RFC-1536: reserve on the shared surface BEFORE the file write — a
|
|
470
467
|
// sibling session sees the claimed id even if this write never lands.
|
|
471
|
-
const landed = new Set<number>(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
468
|
+
const landed = new Set<number>(
|
|
469
|
+
files.map((f) => {
|
|
470
|
+
const m = path.basename(f).match(/^rfc-(\d{4})/);
|
|
471
|
+
return m ? parseInt(m[1]!, 10) : 0;
|
|
472
|
+
}),
|
|
473
|
+
);
|
|
475
474
|
const reserved = await appendReservation(
|
|
476
475
|
io,
|
|
477
476
|
workspaceRoot,
|
|
478
|
-
{
|
|
477
|
+
{
|
|
478
|
+
kind: "rfc",
|
|
479
|
+
id: candidate,
|
|
480
|
+
// RFC-1536: `session` is a lifecycle hint, not a claim input — an
|
|
481
|
+
// unverifiable enclosing repo (phantom .git plant, load refusal)
|
|
482
|
+
// degrades to null like friction's "manual" attribution rather
|
|
483
|
+
// than sinking the whole create on a metadata read.
|
|
484
|
+
session: await currentBranch(workspaceRoot, io).catch(() => null),
|
|
485
|
+
},
|
|
479
486
|
landed,
|
|
480
487
|
);
|
|
481
488
|
for (const warning of reserved.warnings) {
|
|
@@ -511,11 +518,9 @@ export async function runRfcCreate(
|
|
|
511
518
|
}
|
|
512
519
|
}
|
|
513
520
|
const wrote = amendedFile
|
|
514
|
-
? await appendRfcFrontmatterListEntry(
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
[nextId],
|
|
518
|
-
)
|
|
521
|
+
? await appendRfcFrontmatterListEntry(path.join(rfcDirPath, amendedFile), "amendedBy", [
|
|
522
|
+
nextId,
|
|
523
|
+
])
|
|
519
524
|
: undefined;
|
|
520
525
|
amendsSync = { amended: amendsId, wroteCounterpart: wrote !== undefined };
|
|
521
526
|
}
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
type SessionArchiveMove,
|
|
36
36
|
type SessionArchiveSkip,
|
|
37
37
|
} from "../types.ts";
|
|
38
|
-
import { loadPinnedManifest,
|
|
38
|
+
import { loadPinnedManifest, isArchiveBlocked } from "../../core/handlers/pinned-check.ts";
|
|
39
39
|
|
|
40
40
|
const DEFAULT_MAX_AGE_DAYS = 7;
|
|
41
41
|
|
|
@@ -118,11 +118,7 @@ export async function runSessionArchive(
|
|
|
118
118
|
|
|
119
119
|
// RFC-0733: Check if file is pinned before moving
|
|
120
120
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
121
|
-
if (
|
|
122
|
-
pinnedManifest &&
|
|
123
|
-
isPinned(pinnedManifest, relFile) &&
|
|
124
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
125
|
-
) {
|
|
121
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
126
122
|
skipped.push({ id, file: relFile, reason: "pinned (protected by .forge/pinned.yaml)" });
|
|
127
123
|
if (outputFormat === "pretty") {
|
|
128
124
|
logger.warn(` pinned: skipping ${relFile} (protected)`);
|
|
@@ -206,11 +202,7 @@ export async function runSessionArchive(
|
|
|
206
202
|
|
|
207
203
|
// RFC-0733: Check if file is pinned before moving
|
|
208
204
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
209
|
-
if (
|
|
210
|
-
pinnedManifest &&
|
|
211
|
-
isPinned(pinnedManifest, archRelFile) &&
|
|
212
|
-
!isIntraDirMove(pinnedManifest, archRelFile, targetRel)
|
|
213
|
-
) {
|
|
205
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, archRelFile, targetRel)) {
|
|
214
206
|
skipped.push({ id, file: archRelFile, reason: "pinned (protected by .forge/pinned.yaml)" });
|
|
215
207
|
if (outputFormat === "pretty") {
|
|
216
208
|
logger.warn(` pinned: skipping ${archRelFile} (protected)`);
|