docs: bootstrap project metadata and DOX tree

Add the metadata layer from /init-project: canonical GPL-3.0-or-later LICENSE, CITATION.cff, seeded CHANGELOG, .editorconfig, and ADRs 0001-0003 recording the stack, license, and forge/CI decisions. README gains a forge badge and a License section.

Root AGENTS.md gains the DOX framework with child docs for docs/, docs/devlog/, and docs/adr/ so the doc tree has binding contracts.
This commit is contained in:
AlexKucera committed 2026-11-16 12:37:59 +01:00
1 parent 5b6614bbb8
commit 8599ae8176
12 files changed
+906

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# docs/ — Written Record
## Purpose
The project's written memory, split by lifetime: `devlog/` holds one session log per completed task, `adr/` holds architecture decision records that outlive any single session.
## Ownership
- Root AGENTS.md owns the "10 most recent" devlog window (between `write-log` markers) and the repo-wide rules.
- `docs/devlog/AGENTS.md` and `docs/adr/AGENTS.md` own their local contracts.
- No code lives here; nothing in docs/ is load-bearing at runtime.
## Local Contracts
- `devlog/` = per-task session logs; `adr/` = numbered, immutable decisions. Do not mix the two.
- Decision that changed the code goes in `devlog/`; decision that constrains the future goes in `adr/`.
## Work Guidance
- New ADRs follow the domain-modeling skill's `ADR-FORMAT.md` (title + 1–3 sentences; optional Considered Options / Consequences).
- New session logs are written via the write-log skill, never by hand.
## Verification
- Every devlog entry appears in `docs/devlog/INDEX.md`; the root window shows only the 10 most recent.
- ADR numbering is gap-free and sequential (`0001`, `0002`, `0003`, …).
## Child DOX Index
| Path | Scope |
|------|-------|
| devlog/AGENTS.md | Session logs (write-log skill owns INDEX and root window markers) |
| adr/AGENTS.md | Architecture decision records |
+3
View File
@@ -0,0 +1,3 @@
# TypeScript single-file extension, no manifest
Smart Compact is a Pi extension written as one TypeScript file (`index.ts`) with zero dependencies and deliberately no `package.json`: Pi discovers `*/index.ts` one level deep from its extensions directory, so a manifest would add metadata nothing reads. The test harness (`harness.ts`) runs via Node ≥ 22.18 native type stripping (`node --test harness.ts`), which is also why there is no build step. Do not "helpfully" add a manifest or bundler — npm distribution was rejected because the extension is symlinked from `~/.pi/agent/extensions/` and has nowhere to ship.
+3
View File
@@ -0,0 +1,3 @@
# GPL-3.0-or-later
The project carries GPL-3.0-or-later, chosen over MIT and Apache-2.0 during `/init-project` on 2026-11-16. This is personal infrastructure on a self-hosted forge, so strong copyleft keeps derived versions open with no practical downside for the author. SPDX id used everywhere: `GPL-3.0-or-later`.
+3
View File
@@ -0,0 +1,3 @@
# Forge is Gitea; CI deliberately none
The repo lives on the self-hosted Gitea instance at `git.babylondreams.de` (`origin`). No CI pipeline: adding a Woodpecker config was explicitly declined during `/init-project` on 2026-11-16. The verification contract is the committed harness — `node --test harness.ts` on Node ≥ 22.18 (14 tests, every guard path) — run locally after any `index.ts` change. If CI is ever wanted, the forge convention is `.woodpecker.yml` running exactly that command.
+28
View File
@@ -0,0 +1,28 @@
# docs/adr/ — Architecture Decision Records
## Purpose
Short, numbered records of decisions that are hard to reverse, surprising without context, or the result of a real trade-off. Existing decisions: 0001 stack (TypeScript single-file, no manifest), 0002 license (GPL-3.0-or-later), 0003 forge and CI (Gitea, no CI pipeline).
## Ownership
Created during `/init-project` (0001–0003 are reserved for stack / license / forge-and-CI); extended whenever a qualifying decision is made, per the domain-modeling skill's ADR conventions.
## Local Contracts
- File name `NNNN-slug.md`; number = highest existing + 1, gap-free.
- Body: `# {Short title}` + 1–3 sentences (context, decision, why). Optional sections only when they add value: Status, Considered Options, Consequences.
- Records are immutable once accepted — supersede via a new ADR with `Status: superseded by ADR-NNNN`, never rewrite history.
- Licenses are named by SPDX id (`GPL-3.0-or-later`, not "GPLv3").
## Work Guidance
Offer an ADR only when all three hold: hard to reverse, surprising without context, a real trade-off. Easy reversals and obvious choices are recorded in a session log instead.
## Verification
Numbering is sequential and gap-free; each file parses as the ADR format (heading + short paragraph).
## Child DOX Index
None — leaf directory.
+28
View File
@@ -0,0 +1,28 @@
# docs/devlog/ — Session Logs
## Purpose
One Markdown log per completed task, issue, or milestone: what was done, decisions and rationale, gotchas and fixes, next steps.
## Ownership
The write-log skill owns this directory's workflow: it creates logs, maintains `INDEX.md`, and updates the 10-recent window in the root AGENTS.md between `<!-- write-log: window-start -->` / `window-end` markers. Do not hand-edit those markers.
## Local Contracts
- Naming: `YYYYMMDD-<slug>_log.md` (one file per completed slice of work).
- `INDEX.md` is the complete history, newest first, one-line summaries with Type column.
- The root AGENTS.md shows only the 10 most recent entries — INDEX.md is the source of truth.
## Work Guidance
- Trigger the write-log skill at the end of a task ("write log", "session log", or automatically after a milestone); it updates all three surfaces consistently.
- Summaries stay one line; open the log for detail.
## Verification
Every log file in this directory has a row in `INDEX.md`, and the root window matches the 10 newest INDEX rows.
## Child DOX Index
None — leaf directory.