Repository navigation
fix(compiler): implement monospace semantic badging, restore ASCII tree alignment, and add Gate 14 audit - #5
Merged
Conversation
…ee alignment, and add Gate 14 audit
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.
Summary of Changes
1. Abolition of
⚡ TEXT Implementationscripts/build-docs.pywhere untagged ortext-tagged preformatted blocks were unconditionally stamped as⚡ TEXT Implementation.classify_code_block()to semantically inspect each monospace block and stamp content-aware cybernetic badges:⚡ Python 3.12+ Implementation,⚡ C99 Implementation,⚡ x86-64 Assembly Implementation(.dna-label-code)📐 Monospace Reference Matrix(.dna-label-matrix)🧬 Memory Architecture & Layout(.dna-label-memory)⏱️ Execution Trace & State Simulation(.dna-label-trace)🌳 Structural Hierarchy & Tree Topology(.dna-label-tree)📜 Algorithmic Blueprint(.dna-label-blueprint)📋 Technical Specification & Proof(.dna-label-spec)⚡ TEXT Implementationand⚡ NONE Implementationacross all 632 code blocks in the portal.2. Forensic Discovery & Fix for Tree Root Node Snapping
html.escape(code.strip()). Because Python'sstr.strip()strips whitespace from both ends of the entire string, line 1 of every monospace block had all its leading spaces stripped, violently snapping the root node (e.g.[ 50 ],[ Root: X ],12) to column 0 on the far left while line 2+ retained indentation, leaving the child branch slashes (/ \) hanging in space.code.strip()withclean_code_content(), which strictly strips leading/trailing empty lines while preserving 100% of the horizontal indentation on all content lines.3. Automated Verification & Gate 14 Audit Suite
scripts/audit_monospace_badging_and_trees.pyverifying:⚡ TEXT Implementationor⚡ NONE Implementationscripts/test-docs.shMakefile(make docs-test,make test-trees,make ci).github/workflows/ci.yml(14-Gate Living Docs Verification Suitejob)specs/SPEC-001-dsa-futuristic-docs-portal.md(Phase 18).agents/skills/dsa-docs-portal/SKILL.md