Skip to content

Commit df8d720

Browse files
committed
chore(security): delete frozen _attic archive; document rsr_check false-positive
Triage of the Hypatia scan on #33: all findings pre-existing/informational (--exit-zero, gate passed), none from the merged PR. - Delete playground/experiments/_attic (17 retired demo files incl. stray npm package.json + a Julia demo). Clears both placeholder-secret 'criticals' + several highs at the source. - Clean all dangling _attic refs: deno.json excludes, bot_directives/hypatia.a2ml, .hypatia-ignore, playground README + Justfile (also drops a banned python3 call in a dead recipe). - Document rsr_check.rs unsafe_block as a verified false-positive (Hypatia matched the RSR checker's own 'unsafe {' detection string) in .hypatia-ignore + hypatia.a2ml. - STATE.a2ml: record this clean; correct prior 'deleted 2 stale branches' wording (git push --delete returned 403; they remain flagged for UI deletion). Deferred to a deliberate governance-hardening pass: secret-scanner.yml, scorecard job-perms, curl|sh install hardening. https://claude.ai/code/session_01BJmfoz1ZS1Pejy9LLMY742
1 parent a70fcda commit df8d720

23 files changed

Lines changed: 21 additions & 5197 deletions

File tree

.hypatia-ignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ web/Main.res:cicd_rules/banned_language_file
1212
web/MainTest.res:cicd_rules/banned_language_file
1313
web/Server.res:cicd_rules/banned_language_file
1414

15-
# Frozen archive (playground/experiments/_attic/, see its FROZEN.md): retired
16-
# demo experiments kept for design lineage, not shipped code. The ArangoDB demo
17-
# uses a placeholder DB password ("rootpassword"), not a real credential — this
18-
# is a false-positive that re-fires on every scan. (Disposition keep-frozen vs
19-
# delete is a checkpoint decision; until then, exempt the false-positive.)
20-
playground/experiments/_attic/database-demos/arangodb-demo/queries.js:code_safety/js_hardcoded_secret
15+
# False-positive: rsr_check.rs IS the RSR compliance checker — its "unsafe"
16+
# matches are string literals in its own detector (it scans other files for the
17+
# literal `unsafe {`), not real unsafe blocks. No unsafe code exists here.
18+
crates/jtv-cli/src/rsr_check.rs:code_safety/unsafe_block

.machine_readable/6a2/STATE.a2ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project = "julia-the-viper"
77
version = "0.0.1"
88
last-updated = "2026-06-15"
99
status = "active"
10-
session = "2026-06-15 — bookkeeping/tidying consolidation: lake build green (8 libs, 0 sorry/admit/axiom, 0 vacuity, 0 lint warnings); 4 stray branches resolved (2 stale-merged deleted + codeql weekly->monthly cron folded + estate-standardization salvaged: CODEOWNERS + 17 wiki SPDX headers); ADR-0007 gains the graded-comonad/tropical-grade characterization note; PMPL-1.0 vs MPL-2.0 header discrepancy flagged for governance decision (gap-006); number-system-semantics + v2 (c) bridge remain queued"
10+
session = "2026-06-15 — bookkeeping/tidying consolidation: lake build green (8 libs, 0 sorry/admit/axiom, 0 vacuity, 0 lint warnings); 4 stray branches resolved (2 stale-merged flagged for UI deletion — git push --delete returned 403 — + codeql weekly->monthly cron folded + estate-standardization salvaged: CODEOWNERS + 17 wiki SPDX headers); ADR-0007 gains the graded-comonad/tropical-grade characterization note; PMPL-1.0 vs MPL-2.0 header discrepancy flagged for governance decision (gap-006); number-system-semantics + v2 (c) bridge remain queued"
1111

1212
[project-context]
1313
name = "Julia The Viper"
@@ -82,7 +82,8 @@ sessions = [
8282
{ date = "2026-06-13", subject = "PR #26 merged: Lean suite repaired (JtvEcho.neg_injective; orphan JtvExtended wired in → 8 libs); Echo a structural type-system gate over BOTH reverse{} and reversible{}->tok (checked first, before type inference); fixed pre-existing failing reverse-block echo test; root-cause Rust-CI revival (rust-ci/coverage hashFiles-in-job-if startup failure since ~05-27); clippy lint cleared; workflow pins+timeouts; *.jtv/*.pata eol=lf" },
8383
{ date = "2026-06-13", subject = "PR #27 merged: de-vacuated 8 True-typed believeme theorems (string_not_executable, confluence, no_vulnerable_constructs, no_reverse_joinpoints, dataExpr_no_control, data_evaluation_secure, control_data_noninterference, rev_composition) into real compiled statements; NO-VACUITY + Int-only-scope recorded in capability matrix" },
8484
{ date = "2026-06-13", subject = "ADR-0007: addition-only mandate (absolute; ×/÷ generated, not primitive); subtraction = reverse addition (not 2s-complement/not primitive); Harvard-in-von-Neumann AOLD insertability; shortest-path-to-equality + Echo lineage + cross-system routing; additive-algebra → reversibility-tier (group→Safe / cancellative→Neutral / idempotent→Breaking; Echo's own join is idempotent)" },
85-
{ date = "2026-06-15", subject = "Bookkeeping/tidying consolidation: confirmed lake build green (8 libs); cleared all Lean unused-variable lint warnings (_-prefix); resolved 4 stray remote branches (deleted 2 stale-merged changelog/tech-debt whose content is already on main; folded codeql weekly->monthly cron; salvaged CODEOWNERS + 17 wiki SPDX headers from estate-standardization-20260607, dropped its superseded pre-repair Lean drafts + old contractiles); ADR-0007 graded-comonad/tropical-grade characterization note; flagged PMPL-1.0 vs MPL-2.0 discrepancy (gap-006)" }
85+
{ date = "2026-06-15", subject = "Bookkeeping/tidying consolidation: confirmed lake build green (8 libs); cleared all Lean unused-variable lint warnings (_-prefix); resolved 4 stray remote branches (flagged 2 stale-merged changelog/tech-debt for UI deletion — content already on main, git 403 blocked programmatic delete; folded codeql weekly->monthly cron; salvaged CODEOWNERS + 17 wiki SPDX headers from estate-standardization-20260607, dropped its superseded pre-repair Lean drafts + old contractiles); ADR-0007 graded-comonad/tropical-grade characterization note; flagged PMPL-1.0 vs MPL-2.0 discrepancy (gap-006)" },
86+
{ date = "2026-06-15", subject = "Security-hygiene clean (post-#33): triaged the Hypatia 67-finding report — informational (--exit-zero, gate passed), none originating from #33. Added CodeQL actions language; DELETED the frozen playground/experiments/_attic archive (17 files incl. stray npm package.json + a Julia demo), clearing both criticals + several highs at the source, with all dangling refs cleaned (deno.json excludes, bot_directives/hypatia.a2ml, .hypatia-ignore, playground README/Justfile); documented rsr_check.rs unsafe_block as a verified false-positive (Hypatia matched the RSR checker's own detection string). Deferred to a deliberate governance-hardening pass: secret-scanner.yml creation, scorecard job-perms, curl|sh install hardening." }
8687
]
8788

8889
[design-artefact-locations]

.machine_readable/bot_directives/hypatia.a2ml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[metadata]
66
repo = "julia-the-viper"
7-
last-updated = "2026-06-14"
7+
last-updated = "2026-06-15"
88
owner = "hyperpolymath"
99

1010
[scanner]
@@ -16,13 +16,14 @@ workflow = ".github/workflows/hypatia-scan.yml"
1616
# ============================================================
1717

1818
[[accepted-findings]]
19-
rule = "code_safety/js_hardcoded_secret"
20-
path = "playground/experiments/_attic/database-demos/arangodb-demo/queries.js"
19+
rule = "code_safety/unsafe_block"
20+
path = "crates/jtv-cli/src/rsr_check.rs"
2121
status = "verified-false-positive"
2222
reason = """
23-
Placeholder DB password ("rootpassword") in the FROZEN demo archive
24-
(playground/experiments/_attic/, see its FROZEN.md) — not a real
25-
credential and not shipped code. Exempted in .hypatia-ignore.
23+
rsr_check.rs IS the RSR compliance checker; its `unsafe` matches are string
24+
literals in its own detector (it scans other files for the literal `unsafe {`),
25+
not real unsafe blocks. No unsafe code exists in this file. Exempted in
26+
.hypatia-ignore.
2627
"""
2728

2829
[[accepted-findings]]

deno.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
"lint": {
3-
"exclude": [
4-
"playground/experiments/_attic/"
5-
]
3+
"exclude": []
64
},
75
"fmt": {
8-
"exclude": [
9-
"playground/experiments/_attic/"
10-
]
6+
"exclude": []
117
},
128
"test": {
13-
"exclude": [
14-
"playground/experiments/_attic/"
15-
]
9+
"exclude": []
1610
}
1711
}

playground/Justfile

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,6 @@ clean:
9292
@find . -type f -name "*.pyc" -delete 2>/dev/null || true
9393
@echo "Clean complete"
9494

95-
# ==============================================================================
96-
# LEGACY (QUARANTINED - per ANCHOR scope policy)
97-
# ==============================================================================
98-
99-
# Run legacy algorithm demos (frozen, no expansion)
100-
_legacy-algorithms:
101-
@echo "WARNING: Legacy code (frozen per ANCHOR scope policy)"
102-
@echo ""
103-
@cd experiments/_attic/algorithms && python3 sorting.py 2>/dev/null || echo "(algorithms not available)"
104-
105-
# List legacy experiments (frozen)
106-
_legacy-list:
107-
@echo "Legacy Experiments (frozen in _attic/):"
108-
@echo ""
109-
@find experiments/_attic -maxdepth 2 -name "README.md" -exec dirname {} \; 2>/dev/null || echo " (none)"
110-
11195
# ==============================================================================
11296
# REPOSITORY MANAGEMENT
11397
# ==============================================================================
@@ -150,8 +134,8 @@ scope:
150134
@echo " - Conformance tests and corpora"
151135
@echo ""
152136
@echo "LEGACY QUARANTINE:"
153-
@echo " - All non-JTV experiments in experiments/_attic/"
154-
@echo " - No expansion allowed"
137+
@echo " - Non-JTV experiments removed (formerly in experiments/_attic/)"
138+
@echo " - No new non-JTV experiments allowed"
155139
@echo ""
156140
@echo "FORBIDDEN:"
157141
@echo " - General polyglot experiments"

playground/README.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jtv-playground/
5555
│ ├── tests/corpus/ # Test corpus (valid/invalid)
5656
│ ├── repl/ # REPL prototype
5757
│ └── tools/ # Development tools
58-
├── experiments/_attic/ # Legacy experiments (frozen)
5958
├── .machine_read/ # Control plane files
6059
├── Justfile # Command interface
6160
└── Mustfile # Mandatory checks
@@ -75,8 +74,8 @@ Per `.machine_read/ANCHOR.scope-arrest.2026-01-01.scm`:
7574

7675
=== Legacy (Frozen)
7776

78-
* All non-JTV experiments are in `experiments/_attic/`
79-
* No new features or expansion permitted
77+
* Non-JTV experiments have been removed (formerly quarantined in `experiments/_attic/`)
78+
* No new non-JTV experiments or expansion permitted
8079

8180
=== Forbidden
8281

playground/experiments/_attic/FROZEN.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)