Skip to content

Use the Map's mode, source and carried entries from Genesis - #9

Merged
DeanOuY merged 1 commit into
mainfrom
feat/map-mode-source-entries
Nov 23, 2026
Merged

DeanOuY merged 1 commit into
mainfrom
feat/map-mode-source-entries

Conversation

@DeanOuY

@DeanOuY DeanOuY commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Genesis now records what a Map covers (mode) and the code it was read from (source), and a change review can start from a committed Map (genesis map prepare --entries-from). See GenesisAgentInfra/genesis#45. Genesis EDD now uses all three.

  • Mode check. spec new refuses a Map whose mode is change, just as it already refuses one with change-report.json beside it. It also refuses a mode it does not know. A Map without mode, written by an older Genesis, is still accepted with a warning and recorded as unknown.
  • Freshness. It is no longer always unverified:
    • verified: a clean, complete Map whose every listed file has the same SHA-256 at the current commit, as Git stores it.
    • stale: a file differs or is gone.
    • unverified: there is no source, or the Map was read with uncommitted changes, or it left files out and every file it read is unchanged.
  • Final review. At the loop's final review, loop status returns next.genesis_review: the base commit and the Map copy to pass to every genesis map prepare of the Genesis review. That way the change lands on the Spec's flows on every clone.

The docs say these features need Genesis 9c0c914 or later. Genesis stays a separate tool and is not pinned.

Checks

  • npm run check passes.
  • npm test: 147 passed.

🤖 Generated with Claude Code

Genesis now records in business-map.json what a Map covers (mode), the
code it was read from (source), and lets a change review start from a
committed Map (map prepare --entries-from). Genesis EDD uses all three:

- spec new refuses a Map whose mode is change, as it already refuses one
  with change-report.json beside it. A Map without a mode, from an older
  Genesis, is still accepted, with a warning, and recorded as unknown.
- freshness is no longer always unverified. It is verified when a clean,
  complete Map's every file has the same SHA-256 at the current commit,
  as Git stores it; stale when a file differs or is gone; unverified
  without a source, when the Map was read with uncommitted changes, or
  when it left files out and every file it read is unchanged.
- At the loop's final review, loop status gives next.genesis_review: the
  base commit and the Map copy to pass to every genesis map prepare of a
  Genesis review, so the change lands on the Spec's flows on every clone.

Docs say these need Genesis 9c0c914 or later; Genesis stays a separate
tool and is not pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DeanOuY
DeanOuY merged commit 9e241d6 into main Nov 23, 2026
4 checks passed
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