i365dev / i365dev/CraftDAG

Future: Define input adapter architecture

Open
#29 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5
Forks
1
Avg merge
1h 3m
Merged PRs (30d)
3

Description

Context

Arnis is useful as an example of a clean data-to-world pipeline. The relevant lesson for CraftDAG is not to copy OSM generation, but to make input sources modular.

Idea

Define a future adapter architecture where different inputs can eventually produce CraftDAG documents or VoxelPlans:

Prompt / template config → CraftDAG
Existing .schem → VoxelPlan
Future sketch/image input → CraftDAG or VoxelPlan
Future structure library → CraftDAG templates

Design principle

CraftDAG core should remain deterministic and small. Input adapters should live around the core and should not pollute schema/compiler responsibilities.

Suggested design

Possible package boundaries:

  • @craftdag/adapter-template
  • @craftdag/adapter-schematic
  • @craftdag/adapter-llm
  • @craftdag/adapter-sketch later

Each adapter should expose a clear output contract:

  • produce CraftDagDocument, or
  • produce VoxelPlan directly when semantic recovery is unavailable

Non-goals

  • Do not add OSM/geographic generation now.
  • Do not make adapter architecture block the current MinePilot MVP.
  • Do not let adapters bypass validation when producing CraftDAG.

Acceptance criteria for a design doc

  • A short docs/ADAPTERS.md exists.
  • It explains input adapter boundaries.
  • It explains when an adapter should output CraftDAG vs VoxelPlan.
  • It lists first candidate adapter: schematic-to-VoxelPlan.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the issue's proposed adapter boundaries and the repository's CraftDAG and VoxelPlan pipeline. Create docs/ADAPTERS.md covering adapter boundaries, when to output CraftDAG versus VoxelPlan, and the schematic-to-VoxelPlan adapter as the first candidate. Done means all three topics are documented without adding OSM generation or blocking the MinePilot MVP.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.