@mc-and-his-agents/loom-installer 0.1.38 → 0.1.39
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/package.json +1 -1
- package/payload/manifest.json +42 -42
- package/payload/plugin/loom/skills/shared/scripts/governance_surface.py +2 -2
- package/payload/plugin/loom/skills/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-adopt/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-adopt/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-handoff/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-handoff/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-init/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-init/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-merge-ready/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-pre-review/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-pre-review/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-resume/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-resume/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-retire/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-retire/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-review/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-review/.loom-runtime/shared/scripts/loom_check.py +5 -1
- package/payload/skills/loom-spec-review/.loom-runtime/shared/scripts/governance_surface.py +2 -2
- package/payload/skills/loom-spec-review/.loom-runtime/shared/scripts/loom_check.py +5 -1
package/package.json
CHANGED
package/payload/manifest.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schema_version": "loom-installer-payload/v1",
|
|
3
3
|
"loom_version": "0.4.0",
|
|
4
4
|
"source_repository": "https://github.com/MC-and-his-Agents/Loom",
|
|
5
|
-
"source_commit": "
|
|
5
|
+
"source_commit": "a0094e42a22f72429dccc3f437df2d86b084544d",
|
|
6
6
|
"source_ref": "main",
|
|
7
|
-
"built_at": "2026-04-27T16:
|
|
7
|
+
"built_at": "2026-04-27T16:28:18+08:00",
|
|
8
8
|
"runtime": {
|
|
9
9
|
"python_minimum": "3.10",
|
|
10
10
|
"python_recommended": "3.11+"
|
|
@@ -628,13 +628,13 @@
|
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
"path": "plugin/loom/skills/shared/scripts/governance_surface.py",
|
|
631
|
-
"bytes":
|
|
632
|
-
"sha256": "
|
|
631
|
+
"bytes": 57013,
|
|
632
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "plugin/loom/skills/shared/scripts/loom_check.py",
|
|
636
|
-
"bytes":
|
|
637
|
-
"sha256": "
|
|
636
|
+
"bytes": 340603,
|
|
637
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
"path": "plugin/loom/skills/shared/scripts/loom_flow.py",
|
|
@@ -1218,13 +1218,13 @@
|
|
|
1218
1218
|
},
|
|
1219
1219
|
{
|
|
1220
1220
|
"path": "skills/loom-adopt/.loom-runtime/shared/scripts/governance_surface.py",
|
|
1221
|
-
"bytes":
|
|
1222
|
-
"sha256": "
|
|
1221
|
+
"bytes": 57013,
|
|
1222
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
1223
1223
|
},
|
|
1224
1224
|
{
|
|
1225
1225
|
"path": "skills/loom-adopt/.loom-runtime/shared/scripts/loom_check.py",
|
|
1226
|
-
"bytes":
|
|
1227
|
-
"sha256": "
|
|
1226
|
+
"bytes": 340603,
|
|
1227
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
1228
1228
|
},
|
|
1229
1229
|
{
|
|
1230
1230
|
"path": "skills/loom-adopt/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -1838,13 +1838,13 @@
|
|
|
1838
1838
|
},
|
|
1839
1839
|
{
|
|
1840
1840
|
"path": "skills/loom-handoff/.loom-runtime/shared/scripts/governance_surface.py",
|
|
1841
|
-
"bytes":
|
|
1842
|
-
"sha256": "
|
|
1841
|
+
"bytes": 57013,
|
|
1842
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
1843
1843
|
},
|
|
1844
1844
|
{
|
|
1845
1845
|
"path": "skills/loom-handoff/.loom-runtime/shared/scripts/loom_check.py",
|
|
1846
|
-
"bytes":
|
|
1847
|
-
"sha256": "
|
|
1846
|
+
"bytes": 340603,
|
|
1847
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
"path": "skills/loom-handoff/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -2458,13 +2458,13 @@
|
|
|
2458
2458
|
},
|
|
2459
2459
|
{
|
|
2460
2460
|
"path": "skills/loom-init/.loom-runtime/shared/scripts/governance_surface.py",
|
|
2461
|
-
"bytes":
|
|
2462
|
-
"sha256": "
|
|
2461
|
+
"bytes": 57013,
|
|
2462
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
2463
2463
|
},
|
|
2464
2464
|
{
|
|
2465
2465
|
"path": "skills/loom-init/.loom-runtime/shared/scripts/loom_check.py",
|
|
2466
|
-
"bytes":
|
|
2467
|
-
"sha256": "
|
|
2466
|
+
"bytes": 340603,
|
|
2467
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
2468
2468
|
},
|
|
2469
2469
|
{
|
|
2470
2470
|
"path": "skills/loom-init/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -3083,13 +3083,13 @@
|
|
|
3083
3083
|
},
|
|
3084
3084
|
{
|
|
3085
3085
|
"path": "skills/loom-merge-ready/.loom-runtime/shared/scripts/governance_surface.py",
|
|
3086
|
-
"bytes":
|
|
3087
|
-
"sha256": "
|
|
3086
|
+
"bytes": 57013,
|
|
3087
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
3088
3088
|
},
|
|
3089
3089
|
{
|
|
3090
3090
|
"path": "skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_check.py",
|
|
3091
|
-
"bytes":
|
|
3092
|
-
"sha256": "
|
|
3091
|
+
"bytes": 340603,
|
|
3092
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
3093
3093
|
},
|
|
3094
3094
|
{
|
|
3095
3095
|
"path": "skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -3703,13 +3703,13 @@
|
|
|
3703
3703
|
},
|
|
3704
3704
|
{
|
|
3705
3705
|
"path": "skills/loom-pre-review/.loom-runtime/shared/scripts/governance_surface.py",
|
|
3706
|
-
"bytes":
|
|
3707
|
-
"sha256": "
|
|
3706
|
+
"bytes": 57013,
|
|
3707
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
3708
3708
|
},
|
|
3709
3709
|
{
|
|
3710
3710
|
"path": "skills/loom-pre-review/.loom-runtime/shared/scripts/loom_check.py",
|
|
3711
|
-
"bytes":
|
|
3712
|
-
"sha256": "
|
|
3711
|
+
"bytes": 340603,
|
|
3712
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
3713
3713
|
},
|
|
3714
3714
|
{
|
|
3715
3715
|
"path": "skills/loom-pre-review/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -4323,13 +4323,13 @@
|
|
|
4323
4323
|
},
|
|
4324
4324
|
{
|
|
4325
4325
|
"path": "skills/loom-resume/.loom-runtime/shared/scripts/governance_surface.py",
|
|
4326
|
-
"bytes":
|
|
4327
|
-
"sha256": "
|
|
4326
|
+
"bytes": 57013,
|
|
4327
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
4328
4328
|
},
|
|
4329
4329
|
{
|
|
4330
4330
|
"path": "skills/loom-resume/.loom-runtime/shared/scripts/loom_check.py",
|
|
4331
|
-
"bytes":
|
|
4332
|
-
"sha256": "
|
|
4331
|
+
"bytes": 340603,
|
|
4332
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
4333
4333
|
},
|
|
4334
4334
|
{
|
|
4335
4335
|
"path": "skills/loom-resume/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -4943,13 +4943,13 @@
|
|
|
4943
4943
|
},
|
|
4944
4944
|
{
|
|
4945
4945
|
"path": "skills/loom-retire/.loom-runtime/shared/scripts/governance_surface.py",
|
|
4946
|
-
"bytes":
|
|
4947
|
-
"sha256": "
|
|
4946
|
+
"bytes": 57013,
|
|
4947
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
4948
4948
|
},
|
|
4949
4949
|
{
|
|
4950
4950
|
"path": "skills/loom-retire/.loom-runtime/shared/scripts/loom_check.py",
|
|
4951
|
-
"bytes":
|
|
4952
|
-
"sha256": "
|
|
4951
|
+
"bytes": 340603,
|
|
4952
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
4953
4953
|
},
|
|
4954
4954
|
{
|
|
4955
4955
|
"path": "skills/loom-retire/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -5563,13 +5563,13 @@
|
|
|
5563
5563
|
},
|
|
5564
5564
|
{
|
|
5565
5565
|
"path": "skills/loom-review/.loom-runtime/shared/scripts/governance_surface.py",
|
|
5566
|
-
"bytes":
|
|
5567
|
-
"sha256": "
|
|
5566
|
+
"bytes": 57013,
|
|
5567
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
5568
5568
|
},
|
|
5569
5569
|
{
|
|
5570
5570
|
"path": "skills/loom-review/.loom-runtime/shared/scripts/loom_check.py",
|
|
5571
|
-
"bytes":
|
|
5572
|
-
"sha256": "
|
|
5571
|
+
"bytes": 340603,
|
|
5572
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
5573
5573
|
},
|
|
5574
5574
|
{
|
|
5575
5575
|
"path": "skills/loom-review/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -6183,13 +6183,13 @@
|
|
|
6183
6183
|
},
|
|
6184
6184
|
{
|
|
6185
6185
|
"path": "skills/loom-spec-review/.loom-runtime/shared/scripts/governance_surface.py",
|
|
6186
|
-
"bytes":
|
|
6187
|
-
"sha256": "
|
|
6186
|
+
"bytes": 57013,
|
|
6187
|
+
"sha256": "902bba15e9da421b9a48a051940a67a2b019cd14b938d8acd2679c760734b2f5"
|
|
6188
6188
|
},
|
|
6189
6189
|
{
|
|
6190
6190
|
"path": "skills/loom-spec-review/.loom-runtime/shared/scripts/loom_check.py",
|
|
6191
|
-
"bytes":
|
|
6192
|
-
"sha256": "
|
|
6191
|
+
"bytes": 340603,
|
|
6192
|
+
"sha256": "8affea751d682b3bcb0fd975652b7c09c9af2cebe5a7dd069d0e64a3e9ce6858"
|
|
6193
6193
|
},
|
|
6194
6194
|
{
|
|
6195
6195
|
"path": "skills/loom-spec-review/.loom-runtime/shared/scripts/loom_flow.py",
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|
|
@@ -481,8 +481,8 @@ def locator_boundary_error(raw_locator: object, *, label: str) -> str:
|
|
|
481
481
|
locator = raw_locator.strip()
|
|
482
482
|
locator_path = Path(locator)
|
|
483
483
|
if locator_path.is_absolute() or ".." in locator_path.parts:
|
|
484
|
-
return f"{label} must stay
|
|
485
|
-
return f"{label} must stay
|
|
484
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
485
|
+
return f"{label} must stay within the repository root and must stay inside the repository: {locator}"
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
def resolve_locator(root: Path, raw_locator: object) -> tuple[str | None, Path | None]:
|
|
@@ -6453,7 +6453,11 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6453
6453
|
"repo_locator": "../outside.json",
|
|
6454
6454
|
},
|
|
6455
6455
|
)
|
|
6456
|
-
if not any(
|
|
6456
|
+
if not any(
|
|
6457
|
+
"must stay inside the repository" in error
|
|
6458
|
+
and "must stay within the repository root" in error
|
|
6459
|
+
for error in shadow_anchor_errors
|
|
6460
|
+
):
|
|
6457
6461
|
failures.append(Failure("adversarial-adoption", "shadow surface path-boundary errors must expose a stable repository anchor"))
|
|
6458
6462
|
|
|
6459
6463
|
spec_contract_target = base / "spec-contract"
|