oficina / equipo Public

fix: scan only tracked files for dead runner references

codex agent, operated by paul@keymail.dev pushed by claude agent, operated by paul@keymail.dev 3cf98b6e450dd6de0411fb84b8c0fddfe64ed0d5 parent a42c4ac
3 files changed, +186 −134
  • internal/equipotest/direct_cutover_test.go +17 −0
  • scripts/runner-dead-references.py +1 −1
  • scripts/runner-reference-allowlist.json +168 −133
diff --git a/internal/equipotest/direct_cutover_test.go b/internal/equipotest/direct_cutover_test.go
index cf8a65ff..6ec6f27e 100644
--- a/internal/equipotest/direct_cutover_test.go
+++ b/internal/equipotest/direct_cutover_test.go
@@ -381,3 +381,20 @@ func TestDirectLegacyEvidenceNotReconciled(t *testing.T) {
t.Fatal("legacy evidence was automatically reconciled")
}
}
+
+func TestDirectDeadReferencesTrackedOnly(t *testing.T) {
+ script, err := filepath.Abs("../../scripts/runner-dead-references.py")
+ executionMust(t, err)
+ root := t.TempDir()
+ executionMust(t, exec.Command("git", "init", "-q", root).Run())
+ executionMust(t, os.WriteFile(filepath.Join(root, "untracked.txt"), []byte("obsolete paseo dependency\n"), 0600))
+ executionMust(t, os.WriteFile(filepath.Join(root, ".gitignore"), []byte("ignored.txt\n"), 0600))
+ executionMust(t, os.WriteFile(filepath.Join(root, "ignored.txt"), []byte("obsolete node dependency\n"), 0600))
+ if out, err := exec.Command("python3", script, "--root", root).CombinedOutput(); err != nil {
+ t.Fatalf("untracked content scanned: %v %s", err, out)
+ }
+ executionMust(t, exec.Command("git", "-C", root, "add", "untracked.txt").Run())
+ if out, err := exec.Command("python3", script, "--root", root).CombinedOutput(); err == nil || !strings.Contains(string(out), "untracked.txt") {
+ t.Fatalf("tracked content missed: %v %s", err, out)
+ }
+}
diff --git a/scripts/runner-dead-references.py b/scripts/runner-dead-references.py
index b16a13ab..386eccf1 100644
--- a/scripts/runner-dead-references.py
+++ b/scripts/runner-dead-references.py
@@ -15,7 +15,7 @@ INVENTORY = "scripts/runner-reference-allowlist.json"
def scan(root, raw=False):
names = subprocess.check_output(
- ["git", "-C", str(root), "ls-files", "-z", "--cached", "--others", "--exclude-standard"]
+ ["git", "-C", str(root), "ls-files", "-z", "--cached"]
).decode().split("\0")
deleted = set(subprocess.check_output(
["git", "-C", str(root), "ls-files", "-z", "--deleted"]
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index 35ee1034..6bd0925f 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -1,4 +1,81 @@
[
+ {
+ "path": "Makefile",
+ "line_sha256": "e49e7ab801b09b83aa0815b168e4a5fa25417827c3064c17515dad4e40982143",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "Makefile",
+ "line_sha256": "a2275717fddecabc2b48be3b4492311ba22dfa9c7dac49c364a8a9a2ed3158a1",
+ "match": "equipo-runner",
+ "count": 2,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "Makefile",
+ "line_sha256": "adf2858b672e4f67ca028bdd9faa624c57bc91328dc9aeb6adbec784853eca09",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "488776b6907a5f5ef4c025485dd84cf4d0a29f412893e0f6187650a071a934cd",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "09d7c615c5157cda0690ff846ba01567b9a2b95ac949930ae03ab651d9ad1c2d",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "0a1352b302eb571fa3911b4ab118f94f8eb5bf1d20939615e77cc7cd2fb085ec",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "ee2be43c4a77ca66c5910155019971b86a0a7ba33067341670ab4ed4766741b4",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "d327f8de998efaf796e12d8c9ea974c2f43432c54105093e00b02ae88607e92b",
+ "match": "equipo-runner",
+ "count": 2,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "5eb49c570b81c4c2e8a8a8c15d78610934dda3eeb6945ec772e5a04c3ae728a5",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "68fc709d54529eece99058c0bfa2ede7e4a068756b6381a921132269a8d18f35",
+ "match": "equipo-runner",
+ "count": 2,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
+ {
+ "path": "docs/live-gate.md",
+ "line_sha256": "db1a58a88111420d95c23a0b5e71ea7977631abb34c54d5d3aca8e83dba3360e",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
{
"path": "docs/mockups/models.html",
"line_sha256": "b03ef2e13837ea9e91dfc11b109bae368cdf4600888aeb957d89364e260262af",
@@ -2008,6 +2085,27 @@
"count": 1,
"reason": "Archived design or controller evidence; this exact historical statement grants no execution authority."
},
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "c3758da3bef2404e80c6ed3b3d4a321b444eda2c9271e9c7cc44c7c29a8f263f",
+ "match": "node",
+ "count": 1,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "f36dfc22adfaa0336e43062c6f3a148b0391f6737d3d7d872dbb56b17392fb2f",
+ "match": "node",
+ "count": 2,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "3594ab59bd69830cf9fd984d87083d3998b277b7ccc89ad2564c71d416480b24",
+ "match": "paseo",
+ "count": 2,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
{
"path": "docs/superpowers/plans/CONTROLLER-REPORT-supervised-trial.md",
"line_sha256": "f0e48180e966336a337612fb6654504deae6843f8b3eb8078cf85cc11cf9a33e",
@@ -3842,6 +3940,20 @@
"count": 2,
"reason": "Archived design or controller evidence; this exact historical statement grants no execution authority."
},
+ {
+ "path": "internal/directlive/driver_test.go",
+ "line_sha256": "923d77db6d037ecd2880e1dddaf42dc6a51399c00388624a33e81ffd3a363815",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Direct runner executable used by the bounded fake CLI certification fixture, not historical daemon orchestration."
+ },
+ {
+ "path": "internal/directlive/driver_test.go",
+ "line_sha256": "7eaf771700dcc17c285635a37dcdfb767908a1a8dd94fe760cd09f986dd4e15b",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Direct runner executable used by the bounded fake CLI certification fixture, not historical daemon orchestration."
+ },
{
"path": "internal/equipo/connection_models.go",
"line_sha256": "61b085b63dae7c6a13fb2f775f1b1fe76e85a6ce1639d1f15de6021ff447de7c",
@@ -5081,6 +5193,20 @@
"count": 1,
"reason": "Explicit retirement regression, historical rows, or a scanner acceptance/rejection fixture."
},
+ {
+ "path": "internal/equipotest/direct_cutover_test.go",
+ "line_sha256": "1fed9b132e5c11f20e02eb431e1dbc2b09c25cbcc679d0a298200bf4f1a18343",
+ "match": "paseo",
+ "count": 1,
+ "reason": "Explicit retirement regression, historical rows, or a scanner acceptance/rejection fixture."
+ },
+ {
+ "path": "internal/equipotest/direct_cutover_test.go",
+ "line_sha256": "49e38b737aebb6030728c5f05ef7744a23a4590c9562175cd9baa644a226055b",
+ "match": "node",
+ "count": 1,
+ "reason": "Explicit retirement regression, historical rows, or a scanner acceptance/rejection fixture."
+ },
{
"path": "internal/equipotest/preparation_integration_test.go",
"line_sha256": "54a731472bc9a2aa9d4fedf4884c064e35b02161c4b32f33a432aa766158d28a",
@@ -5123,6 +5249,13 @@
"count": 3,
"reason": "Retained executable, service or command path; not an operating-system account requirement."
},
+ {
+ "path": "internal/equipotest/runner_release_test.go",
+ "line_sha256": "48b4a08ba0a705c90cd2d29589c35de5b1bf3579cf2a0dc8ce4bb41a32b79d82",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
+ },
{
"path": "internal/equipotest/specialists_test.go",
"line_sha256": "33a149ae572c0b6024b34fa89ce4b3ee1c53877f170a348d0e15b18eaf3ca8a8",
@@ -5165,6 +5298,13 @@
"count": 1,
"reason": "Negative command-policy test rejects an interpreter; it never executes or requires that interpreter."
},
+ {
+ "path": "internal/runner/checks/namespace.go",
+ "line_sha256": "54f493b37bb09696c8e34cbaa7b3b7e551ba2008d40e56c5de041f2fd18deeb1",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Retained namespace executable mount for isolated repository checks."
+ },
{
"path": "internal/runner/checks/sandbox_test.go",
"line_sha256": "60bdbbd1c294227318c1b94ba671f19f0859b9f08fc5f8e1eb635c6d934f6fdc",
@@ -5396,6 +5536,34 @@
"count": 1,
"reason": "Retained executable, service or command path; not an operating-system account requirement."
},
+ {
+ "path": "internal/runner/provider/codex/testdata/unauthenticated-0.165.0.json",
+ "line_sha256": "ee89b88a007a6ddf934260e02af77d2870941490bbb6b53d20e1d97902e83bdd",
+ "match": "node",
+ "count": 1,
+ "reason": "Pinned unauthenticated protocol fixture; default config keys only."
+ },
+ {
+ "path": "internal/runner/provider/codex/testdata/unauthenticated-0.165.0.json",
+ "line_sha256": "66ee17370d147577aa977c81d6832cf6651cf951779dbcb15d9be712373508da",
+ "match": "node",
+ "count": 1,
+ "reason": "Pinned unauthenticated protocol fixture; default config keys only."
+ },
+ {
+ "path": "internal/runner/provider/direct_live_config.go",
+ "line_sha256": "d1b28675f8ad00869e960a20d5cf0620c7164b5a3697728b33ec8b6d8c348b86",
+ "match": "node",
+ "count": 1,
+ "reason": "Lexical substring in refusedInode: checks directory identity to reject shared-home aliases; no JavaScript runtime."
+ },
+ {
+ "path": "internal/runner/provider/direct_live_config_test.go",
+ "line_sha256": "e2f5ce173d1ef47fa92bcd9672c38641c7755c706942426d6b701cd230423021",
+ "match": "paseo",
+ "count": 1,
+ "reason": "Negative fixture for refusing shared provider homes before live certification; not an execution dependency."
+ },
{
"path": "internal/runner/provider/policy.go",
"line_sha256": "6814039a22ef13dd880ebcdf8a688c17f3bba964294ce73e6adf5fba6481c9d9",
@@ -5731,138 +5899,5 @@
"match": "trial",
"count": 1,
"reason": "Required rejection pattern used by the reference scanner itself."
- },
- {
- "path": "Makefile",
- "line_sha256": "e49e7ab801b09b83aa0815b168e4a5fa25417827c3064c17515dad4e40982143",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "Makefile",
- "line_sha256": "a2275717fddecabc2b48be3b4492311ba22dfa9c7dac49c364a8a9a2ed3158a1",
- "match": "equipo-runner",
- "count": 2,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "Makefile",
- "line_sha256": "adf2858b672e4f67ca028bdd9faa624c57bc91328dc9aeb6adbec784853eca09",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "488776b6907a5f5ef4c025485dd84cf4d0a29f412893e0f6187650a071a934cd",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "09d7c615c5157cda0690ff846ba01567b9a2b95ac949930ae03ab651d9ad1c2d",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "0a1352b302eb571fa3911b4ab118f94f8eb5bf1d20939615e77cc7cd2fb085ec",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "ee2be43c4a77ca66c5910155019971b86a0a7ba33067341670ab4ed4766741b4",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "d327f8de998efaf796e12d8c9ea974c2f43432c54105093e00b02ae88607e92b",
- "match": "equipo-runner",
- "count": 2,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "5eb49c570b81c4c2e8a8a8c15d78610934dda3eeb6945ec772e5a04c3ae728a5",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "68fc709d54529eece99058c0bfa2ede7e4a068756b6381a921132269a8d18f35",
- "match": "equipo-runner",
- "count": 2,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/live-gate.md",
- "line_sha256": "db1a58a88111420d95c23a0b5e71ea7977631abb34c54d5d3aca8e83dba3360e",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
- "line_sha256": "c3758da3bef2404e80c6ed3b3d4a321b444eda2c9271e9c7cc44c7c29a8f263f",
- "match": "node",
- "count": 1,
- "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
- },
- {
- "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
- "line_sha256": "f36dfc22adfaa0336e43062c6f3a148b0391f6737d3d7d872dbb56b17392fb2f",
- "match": "node",
- "count": 2,
- "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
- },
- {
- "path": "internal/equipotest/runner_release_test.go",
- "line_sha256": "48b4a08ba0a705c90cd2d29589c35de5b1bf3579cf2a0dc8ce4bb41a32b79d82",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained runner executable, versioned package or user-service path in Task 11b release tooling, tests or draft operator steps."
- },
- {
- "path": "internal/runner/provider/direct_live_config.go",
- "line_sha256": "d1b28675f8ad00869e960a20d5cf0620c7164b5a3697728b33ec8b6d8c348b86",
- "match": "node",
- "count": 1,
- "reason": "Lexical substring in refusedInode: checks directory identity to reject shared-home aliases; no JavaScript runtime."
- },
- {
- "path": "internal/runner/provider/direct_live_config_test.go",
- "line_sha256": "e2f5ce173d1ef47fa92bcd9672c38641c7755c706942426d6b701cd230423021",
- "match": "paseo",
- "count": 1,
- "reason": "Negative fixture for refusing shared provider homes before live certification; not an execution dependency."
- },
- {
- "path": "internal/directlive/driver_test.go",
- "line_sha256": "923d77db6d037ecd2880e1dddaf42dc6a51399c00388624a33e81ffd3a363815",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Direct runner executable used by the bounded fake CLI certification fixture, not historical daemon orchestration."
- },
- {
- "path": "internal/directlive/driver_test.go",
- "line_sha256": "7eaf771700dcc17c285635a37dcdfb767908a1a8dd94fe760cd09f986dd4e15b",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Direct runner executable used by the bounded fake CLI certification fixture, not historical daemon orchestration."
- },
- {
- "path": "internal/runner/checks/namespace.go",
- "line_sha256": "54f493b37bb09696c8e34cbaa7b3b7e551ba2008d40e56c5de041f2fd18deeb1",
- "match": "equipo-runner",
- "count": 1,
- "reason": "Retained namespace executable mount for isolated repository checks."
}
]