refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
# scripts/prompt-injection-scan.sh --file path/to/file # Scan a single file
|
||||
# scripts/prompt-injection-scan.sh --dir agents/ # Scan all files in a directory
|
||||
#
|
||||
# Exit codes (ADR-3889, #3908 — registered in gsd-core/bin/shared/exit-codes.json):
|
||||
# Exit codes (ADR-3889, #3908 — registered in msd-core/bin/shared/exit-codes.json):
|
||||
# 0 = clean
|
||||
# 1 = findings detected
|
||||
# $EXIT_USAGE (64) = usage error (bad argv, missing --file/--dir target)
|
||||
@@ -20,7 +20,7 @@ set -euo pipefail
|
||||
# literal integer, and never let a missing registry silently degrade to
|
||||
# exit 0.
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
EXIT_CODES_SH="$SCRIPT_DIR/../gsd-core/bin/shared/exit-codes.sh"
|
||||
EXIT_CODES_SH="$SCRIPT_DIR/../msd-core/bin/shared/exit-codes.sh"
|
||||
if [[ ! -f "$EXIT_CODES_SH" ]]; then
|
||||
echo "prompt-injection-scan: FATAL: exit-code registry not found at $EXIT_CODES_SH" >&2
|
||||
echo " Regenerate with: node scripts/gen-exit-code-registry.cjs --write" >&2
|
||||
@@ -120,9 +120,9 @@ ALLOWLIST=(
|
||||
'tests/security.test.cjs'
|
||||
'tests/prompt-injection-scan.security.test.cjs'
|
||||
'tests/verify.test.cjs'
|
||||
'gsd-core/bin/lib/security.cjs'
|
||||
'hooks/gsd-prompt-guard.js'
|
||||
'hooks/gsd-read-injection-scanner.js'
|
||||
'msd-core/bin/lib/security.cjs'
|
||||
'hooks/msd-prompt-guard.js'
|
||||
'hooks/msd-read-injection-scanner.js'
|
||||
'tests/read-injection-scanner.security.test.cjs'
|
||||
'tests/read-injection-scanner.property.test.cjs'
|
||||
'tests/security-prompt-injection.security.test.cjs'
|
||||
@@ -149,7 +149,7 @@ ALLOWLIST=(
|
||||
# exec command strings (execFileSync('npm', ['install'])) as test DATA the rule
|
||||
# must lint — not attack vectors. ADR-1703 Phase 4 (#1726).
|
||||
'tests/no-bare-npm-exec.rule.test.cjs'
|
||||
# #2547 — the Kimi field-shadowing regression proves gsd-prompt-guard still
|
||||
# #2547 — the Kimi field-shadowing regression proves msd-prompt-guard still
|
||||
# SCANS the reconstructed edit[].new content when a model-supplied new_string
|
||||
# tries to shadow it. The fixture must be a real injection phrase or the test
|
||||
# asserts nothing: it is the payload the guard is required to catch, carried
|
||||
@@ -179,9 +179,9 @@ ALLOWLIST=(
|
||||
# rendering, never a command. Same DEFECT.PROMPT-INJECTION-SCAN-COLLISION
|
||||
# class as the input-validator fixtures above.
|
||||
'tests/quick-batch.test.cjs'
|
||||
# #4209 — the regression test pinning gsd-code-reviewer.md's untrusted-evidence
|
||||
# #4209 — the regression test pinning msd-code-reviewer.md's untrusted-evidence
|
||||
# contract discusses the injection attack it defends against (embedded
|
||||
# redirection, "act as an instruction") without performing it. gsd-code-reviewer.md
|
||||
# redirection, "act as an instruction") without performing it. msd-code-reviewer.md
|
||||
# ITSELF is deliberately NOT allowlisted — R2 (#4209 review): a production prompt
|
||||
# that ingests untrusted third-party output should stay in-scope for this scanner,
|
||||
# not be exempted wholesale; its defense-contract wording was reworded instead to
|
||||
|
||||
Reference in New Issue
Block a user