Repository navigation
Vector rename via aliases (Option A of #2991): Structural Surface Profile vocabulary, risk_* preserved - #2993
Merged
Merged
Conversation
…91, Option A)
Adds VECTOR_NAMES to RECORDING_SCHEMAS in standards/analysis_lens.py: the
new-name -> legacy risk_* mapping for the 13 per-file vectors approved in
gitgalaxy#2991 (disposition table + formula audit in the issue comments).
Wires it into the 5 definition sites (signal_processor.py, llm_recorder.py,
record_keeper.py, gpu_recorder.py, audit_recorder.py) as the single source
of truth.
Dual emission: RISK_SCHEMA, every DB column (record_keeper.py's risk_{r}
columns), every risk_vector JSON key, and audit_recorder.py's
EXPOSURE_LABELS/FRIENDLY_MAP-derived strings are UNCHANGED -- the latter is
exactly what tests/golden_master_audit.json and
tests/golden_master_zero_dep_audit.json bless byte-for-byte, so its output
must not move. record_keeper.py and gpu_recorder.py bind VECTOR_NAMES for
parity but don't consume it for output either, for the same reason (DB
schema / visualizer data-binding surfaces).
llm_recorder.py is the one site with a real display-layer change: its
generated markdown brief (auto-committed to
docs/gitgalaxy_architecture_brief.md by CI, not golden-mastered) now shows
the new vocabulary with "(formerly risk_X)" aliases, via a new
_surface_label()/_format_new_vector_name() helper pair, falling back
cleanly to the legacy label when VECTOR_NAMES isn't bound (existing tests
stub RECORDING_SCHEMAS without it). hist_stability/hist_churn are called
out as the PROMOTE-flagged predictive-layer family, pending
temporal-crucible#29 + gitgalaxy#2987.
ruff_audit_baseline.json regenerated: the 23 "new" findings ruff --ci
reported were exclusively line-number shifts from the comment/method
insertions above (same file:code:message triples at new line numbers,
confirmed via diff) -- no new finding types, per the audit's documented
SCOPE & LIMITATIONS regeneration path.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RS9yZk89DyCmECaARkBmdB
… (gitgalaxy#2991) Updates user-facing display strings across the WebGPU visualizer to the approved vocabulary from gitgalaxy#2991: dropdown option text, panel labels, the forensic-readout label map, and the about-panel prose in site/index.html; the case-studies prose in site/README.md; the risk-pillar labels in site/js/core/metavisualizer.html; and the accessibility narration strings in site/tools/ally.js. No functional JS changes: every `slug`/`keys`/array-index data-binding lookup (risk_vector_x1000 position, RISK_SCHEMA bare names) is untouched -- only the human-readable `label`/option-text/prose values changed, each noting "(formerly X)" on first use per the dual-emission requirement. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RS9yZk89DyCmECaARkBmdB
…y#2991) Adds docs/vectors.md: the per-vector reference for all 13 renamed vectors (name table, evidence-backed description, explicit non-claims, appropriate/ inappropriate uses per vector) filled in from the descriptive-layer draft with the approved names, plus a Deprecation section documenting risk_* as retained aliases with no scheduled removal. Adds docs/vector_formulas.md as its sibling appendix: the mechanical per-calculator formula audit (inputs, arithmetic, hardcoded constants, line refs), carried over from the scratchpad extraction with new names cross-referenced. README.md: renames the "Risk exposure: what GitGalaxy claims" section to "Structural Surface Profile: what GitGalaxy claims (formerly ...)" and restates its central claim honestly against the temporal-crucible validation record (epic #2982, linked): per-file standing risk was tested and falsified (equivalence-confirmed near-zero deltas, chance-level out-of-time AUC); the system-level finding that actually validated -- recidivism and change-entropy/HCM, both history metrics, currently zeroed by GITGALAXY_DISABLE_GIT_HISTORY -- is restated as the seed of a separate predictive layer gated on temporal-crucible#29 and gitgalaxy#2987. Also updates the "one graph, many consumers" table, the cics-genapp example's vector names, the risk_secrets_risk mention in the rosetta section, and adds Vector reference / Vector formula facts rows to the resource table. gitgalaxy/metrics/README.md: updates the module-level description and the signal_processor.py entry to the new vocabulary with a docs/vectors.md pointer. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RS9yZk89DyCmECaARkBmdB
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the approved Option A of #2991: the 13 per-file vectors get descriptive names, with every
risk_*DB column and emitted JSON key preserved byte-identical (dual emission — temporal-crucible queries, crucible bless baselines, golden masters, and SARIF consumers unaffected; full suite 8563 passed / 0 failures including the golden-crucible byte-comparisons).The mapping (canonical constant
VECTOR_NAMESinstandards/analysis_lens.py, consumed by all 5 definition sites): complexity_load · guard_balance · debt_markers · test_surface · connectivity · concurrency_surface · mutation_surface · dead_code_surface · spec_alignment · hist_stability · hist_churn · doc_surface · credential_material. Umbrella: "Structural Surface Profile" (formerly Risk Exposure).hist_*marks the family promoted toward the gated predictive layer (#2987, temporal-crucible#29).Changed (display only): LLM brief labels (with "(formerly risk_X)" aliases), site UI text (4 files), README (the claim section restated per the validation record — falsified per-file standing risk, system-level restatement, ledger links), metrics README, new
docs/vectors.md(per-vector evidence-cited documentation + deprecation note) anddocs/vector_formulas.md(formula-facts appendix; flags 11/13 density shapes).Unchanged (keys/schema):
RISK_SCHEMA, all DB columns,risk_vector/risk_vector_x1000payloads,EXPOSURE_LABELSgolden-master strings, gpu data bindings.Audits: ruff pass (baseline regenerated for line-shift-only entries, verified identical triples; pinned-path per repo convention), mypy pass, ruff format clean.
Known follow-ups:
docs/validation.mdrungs section is stale the same way the README was (left out of scope — needs its own pass); the architecture brief regenerates on its scheduled CI run.Evidence chain: #2991 (disposition + formula audit + inventory), #2982 (the record).
🤖 Generated with Claude Code