spotregen
Tooling for Regenerative Software in the sense of Chad Fowler: code is
disposable, the knowledge around it is the asset. A module is safely replaceable
when it can be deleted and rebuilt from knowledge that lives outside its
implementation. spotregen reads that knowledge from a tracked regen/ tree and
checks it against the source tree.
- Standard library only: zero runtime dependencies, Python 3.13 or later.
- It never imports the modules it describes; it reads the source with
ast. - A deterministic gate (
spotregen check) formake guard, plus reports (status,deletion-test,context,compact,new-unit) and two non-deterministic drivers (blind,local) that regenerate a unit with an LLM.
Install
uv add --dev spotregen
Use
spotregen check [--strict] # the gate: exit 1 on errors
spotregen status # units by pace and coverage
spotregen deletion-test UNIT # blast radius and knowledge gaps
spotregen context UNIT [-o FILE] # regeneration bundle, no bodies
spotregen compact # compaction candidates
spotregen new-unit MODULE --pace P --risk R [--dry-run]
spotregen blind UNIT [...] # regenerate with `claude -p` (needs claude)
spotregen local UNIT --model M [...] # regenerate with a local LM Studio model
--root DIR selects the repository (default: search upwards for
regen/architecture.toml); python -m spotregen works as well. A repository
carries:
regen/architecture.toml: the compilation target (allowed imports, accepted cycles, pace policy, conventions, scan directories).regen/units/<unit>.toml: one regenerable unit with intent, evaluations and consumers.regen/decisions/<id>.toml: provenance records.
The schema, the finding codes and the tutorials are in the documentation,
https://advm1.gm.fh-koeln.de/~bartz/spotregen/. A minimal repository for trying
it out is built by spotregen.make_sample_repo.
Develop
make sync && make test-fast # environment and fast tests
make verify # guard + lint + test + doc, the gate before a push
See CONTRIBUTING.md and RELEASING.md. The design is recorded in ADR 0001.
License
AGPL-3.0-or-later.
Metadata
Release files for spotregen 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spotregen-0.1.0.tar.gz | 42.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spotregen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 96.5 kB
Release files / spotregen-0.1.0.tar.gz
| Download URL | spotregen-0.1.0.tar.gz |
|---|---|
| Size | 42.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a5d0209899ed2f317645fc87e64c1beca8e6d67299a52a9e19e23d1be3b56d0
|
|
BLAKE2b-256 checksum How to use checksums |
a7f65dd6839ad3a310a1eb3eee895b62f5f681cc9f3481a13353d527ec9d6d54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / spotregen-0.1.0-py3-none-any.whl
| Download URL | spotregen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66677eb0986763c075376ce68e7b6042d5fbb30eb04446e3562b2a19b2ccb80a
|
|
BLAKE2b-256 checksum How to use checksums |
d55e83fd4cefc78da051545f7a8b49f9ac3a42c7870f8b577ffadc01dd984465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|