Skip to content

chore: Item 10 — migrate STATE.scm → STATE.a2ml v2 thin journal#43

Merged
hyperpolymath merged 1 commit into
mainfrom
chore/item10-state-scm-to-a2ml-v2
May 16, 2026
Merged

chore: Item 10 — migrate STATE.scm → STATE.a2ml v2 thin journal#43
hyperpolymath merged 1 commit into
mainfrom
chore/item10-state-scm-to-a2ml-v2

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Estate Tech-Debt — Item 10 (.scm → .a2ml v2 migration)

Migrates .machine_readable/STATE.scm (v1 s-expr machine state) to the
canonical v2 thin session journal a2ml format.

Spec

standards/a2ml-templates/STATE.a2ml.v2.spec.adoc — v2 stores only
phase, 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 ← first critical-next-actions item
  • last_action ← last session-history accomplishment
  • blockersblockers-and-issues (critical/high/medium/low)
  • updated(metadata (updated …))

Scope / safety

  • Source STATE.scm removed (v2 is a clean break per spec — "a repo is
    either v1 or v2; no forward-compat shim").
  • No build/CI/Justfile recipe references STATE.scm in this repo (verified).
  • Residual .claude/CLAUDE.md mention is non-executing boilerplate → follow-up.

Converted by state_scm_to_v2.py; output verified against the v2 spec grammar.

🤖 Generated with Claude Code

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>
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 17 issues detected

Severity Count
🔴 Critical 6
🟠 High 1
🟡 Medium 10

⚠️ Action Required: Critical security issues found!

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 hyperpolymath merged commit 3eae06e into main May 16, 2026
16 of 17 checks passed
@hyperpolymath hyperpolymath deleted the chore/item10-state-scm-to-a2ml-v2 branch May 16, 2026 23:55
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant