The workshop of the Rune realm. Every change to rune is proved here before it is committed there.
Never change Rune without testing it like a user. — The Workshop
| Repo | Role |
|---|---|
| rune | the product: the only repo that is developed and released |
| rune-dev (this repo) | the workshop: runites that use Rune like a user, and their trials |
| lore | DEVNEET's global knowledge: Rune's lore, reference and chronicle |
rune holds only what ships (Law 19). Notes, trials and experiments live here; documentation lives in lore.
your-folder/
├── rune/ clone of devneet-id/rune (the code under test)
└── rune-dev/ this repo
├── composer.json maps Rune\ → ../rune/
├── cast the workshop runite: `php cast scenario` runs every trial
├── scenario/ runites per scenario + their trials (the safety net); proof in <name>/.proof/
└── exploration/ the beyond: evolution, federation, liberation
composer.json maps Rune\ to ../rune/, so every runite here runs your local copy of Rune, not the Packagist release.
One runite per scenario, from easy to complex, each with a test cast (its trial). Together they aim to touch every entity and manifest of the origin runes, measured as Phantasm node coverage. Rune's development is grounded in these scenarios: when one feature changes, all trials run, so a side effect on any other rune is caught. See scenario/README.md.
For the advanced modes, which unlock folders next to the runite and do not fit an ordinary scenario. See exploration/README.md.
rune/ and rune-dev/ sit side by side. rune-dev takes Rune from the folder next to it — never from Packagist — so every trial tests the code you are changing.
git clone https://github.com/devneet-id/rune
git clone https://github.com/devneet-id/rune-dev
cd rune-dev
composer dump-autoload
php cast scenario --here- Use
composer dump-autoload, notcomposer installorcomposer update. It only writesvendor/autoload.php, mappingRune\to../rune/(seecomposer.json). There is nothing to download. composer.jsonhas norequireand the repo has nocomposer.lockon purpose. Arequire "devneet/rune"would install the Packagist release intovendor/as a second source forRune\: a class missing from../runewould then load silently from the old release, and a trial could pass on code you are not testing.- Run
composer dump-autoloadagain only whencomposer.jsonchanges. Ifphp castfails after a pull, deletevendor/and run it again. - To test the released package (what users get), use another folder with its own
composer.jsonandcomposer require devneet/rune— see The Workshop.
- rune-dev — write or extend a scenario until its trial fails and shows the problem. A fix without a trial is a guess.
- rune — fix or add the feature. Keep files CRLF,
php -levery changed PHP file, keep the Laws. - rune — raise the Phantasm version of every rune that changed (
php evolute sentinel --phantasm-repair=<Rune>or--phantasm-upgrade=<Rune>fromexploration/). - rune-dev — run every trial until green, then check coverage:
Each scenario leaves its proof in
php cast scenario # each scenario in a new terminal; --here for this terminal cd scenario/coverage && php cast coverage
scenario/<name>/.proof/(report + what it made). - lore — update the reference, Known Issues and Versioning, then add a chronicle entry.
- Trials back up and restore the data they touch; a glitch fails one check instead of ending the run.
- Every runite without
.phpstarts with#!/usr/bin/env phpon line 1 and<?phpon line 2. .echoes/(runtime memory) and.proof/(the proof of the last trial) are never committed (see.gitignore).- Mode folders created by
exploration/(@evolution/,@federation/,@liberation/,relics/) stay out of git.