chore: Item 10 — migrate STATE.scm → STATE.a2ml v2 thin journal#43
Merged
Conversation
Replaces the v1 s-expr STATE.scm machine-state file with the canonical v2 "thin session journal" a2ml format per standards/a2ml-templates/STATE.a2ml.v2.spec.adoc. v2 deliberately keeps only what cannot be reconstructed from git/VeriSimDB: phase, next_action, last_action, updated, and active blockers. Derivable content (session history, milestones, file inventory, completion %) is intentionally dropped — it lives in git log / ROADMAP / VeriSimDB. Generated by state_scm_to_v2.py (robust s-expr → v2 converter). Note: a residual boilerplate reference to "STATE.scm" remains in .claude/CLAUDE.md (agent-instruction prose, non-executing) — left for a follow-up doc pass; nothing in build/CI references the file. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
🔍 Hypatia Security ScanFindings: 17 issues detected
View findings[
{
"reason": "Required file missing",
"type": "missing",
"file": "0-AI-MANIFEST.a2ml",
"action": "create",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "Nominal-only SAST in modshells: codeql.yml language matrix contains no language present in the repo and lacks `actions`, so CodeQL records zero results on every commit. Remediation: set the CodeQL matrix to `language: actions`.",
"type": "StaticAnalysis",
"file": "/home/runner/work/modshells/modshells",
"action": "auto_fix",
"rule_module": "scorecard",
"severity": "medium",
"remediation": "Add CodeQL or equivalent SAST workflow.",
"scorecard_check": "SAST"
},
{
"reason": "Repository has 3 non-main remote branch(es). Policy: single main branch only.",
"type": "GS007",
"file": ".",
"action": "delete_remote_branches",
"rule_module": "git_state",
"severity": "medium"
},
{
"reason": "Legacy .scm state file -- must be .a2ml in .machine_readable/6a2/",
"type": "SD001",
"file": ".machine_readable/META.scm",
"action": "convert_and_move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "Legacy .scm state file -- must be .a2ml in .machine_readable/6a2/",
"type": "SD001",
"file": ".machine_readable/ECOSYSTEM.scm",
"action": "convert_and_move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "Legacy .scm state file -- must be .a2ml in .machine_readable/6a2/",
"type": "SD001",
"file": ".machine_readable/AGENTIC.scm",
"action": "convert_and_move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "Legacy .scm state file -- must be .a2ml in .machine_readable/6a2/",
"type": "SD001",
"file": ".machine_readable/NEUROSYM.scm",
"action": "convert_and_move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "Legacy .scm state file -- must be .a2ml in .machine_readable/6a2/",
"type": "SD001",
"file": ".machine_readable/PLAYBOOK.scm",
"action": "convert_and_move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "6a2ml file outside canonical location -- must be in .machine_readable/6a2/",
"type": "SD004",
"file": ".machine_readable/STATE.a2ml",
"action": "move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "References STATE.scm -- should be .machine_readable/6a2/STATE.a2ml",
"type": "SD007",
"file": ".claude/CLAUDE.md",
"action": "update_reference",
"rule_module": "structural_drift",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
hyperpolymath
added a commit
that referenced
this pull request
May 17, 2026
Faithful, lossless migration of the remaining 5 machine-readable metadata files to the `.a2ml` extension, per the per-format specs in standards/<fmt>-a2ml/spec/ (FORMAT-SPEC + ABNF + JSON schema): the `.a2ml` form IS the same rich S-expression content; `.scm` is the deprecated legacy extension (deprecated estate-wide 2026-04-12). - META/AGENTIC/NEUROSYM/PLAYBOOK: byte-identical content, pure git mv. - ECOSYSTEM: Media-Type header normalized from the deprecated `application/vnd.ecosystem+scm` to the canonical `application/ecosystem+scm` (per ecosystem-a2ml IANA spec); body otherwise byte-identical. STATE was migrated separately to the Track-B v2 thin-journal (#43, merged) — it is the one format with an intentional reductive redesign. Validated: all 5 well-formed S-expressions, content losslessness verified against the pre-rename blobs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
hyperpolymath
added a commit
that referenced
this pull request
May 17, 2026
…ful) (#44) Faithful lossless rename of META/ECOSYSTEM/AGENTIC/NEUROSYM/PLAYBOOK `.scm`→`.a2ml` per the per-format specs (`standards/<fmt>-a2ml/spec/`): `.a2ml` = same rich S-expression, `.scm` = deprecated legacy extension. 4/5 byte-identical; ECOSYSTEM Media-Type normalized `vnd.ecosystem+scm`→`ecosystem+scm` per its IANA spec. STATE handled separately as Track-B v2 thin-journal (#43, merged). All 5 validated well-formed + losslessness-checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: hyperpolymath <hyperpolymath@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
hyperpolymath
added a commit
to hyperpolymath/standards
that referenced
this pull request
May 18, 2026
Companion converter to `state-migrate-v1-to-v2.sh` for Estate Item 10. Converts v1 STATE.scm s-expr machine state directly to the v2 thin-journal a2ml format per `STATE.a2ml.v2.spec.adoc`. Validated against 9/9 in-scope estate STATE.scm (clean, spec-conformant). First consumer PR: hyperpolymath/modshells#43. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: hyperpolymath <hyperpolymath@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
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.
Estate Tech-Debt — Item 10 (.scm → .a2ml v2 migration)
Migrates
.machine_readable/STATE.scm(v1 s-expr machine state) to thecanonical v2 thin session journal a2ml format.
Spec
standards/a2ml-templates/STATE.a2ml.v2.spec.adoc— v2 stores onlyphase,next_action,last_action,updated, and@blockers.Everything derivable (session history, milestones, %s, file lists) is
intentionally discarded per the spec ("v2 discards everything derivable").
Mapping applied
phase←(current-position (phase …))next_action← firstcritical-next-actionsitemlast_action← lastsession-historyaccomplishmentblockers←blockers-and-issues(critical/high/medium/low)updated←(metadata (updated …))Scope / safety
STATE.scmremoved (v2 is a clean break per spec — "a repo iseither v1 or v2; no forward-compat shim").
STATE.scmin this repo (verified)..claude/CLAUDE.mdmention is non-executing boilerplate → follow-up.Converted by
state_scm_to_v2.py; output verified against the v2 spec grammar.🤖 Generated with Claude Code