Alien-TinyCDB
view release on metacpan or search on metacpan
.claude/rules/alien-tinycdb-rules.md view on Meta::CPAN
# Alien::TinyCDB House Rules
Apply to every task in this distribution unless explicitly overridden. Bias: caution over
speed on non-trivial work; use judgment on trivial tasks. Loaded automatically at launch
(same priority as `CLAUDE.md`). Subagents get their conventions from the skills
force-loaded via `briefing.skills` â this file is for the orchestrating agent.
## Engineering discipline
1. **Think before coding** â State assumptions; ask rather than guess. Push back when a
simpler approach exists. Stop when confused; name what's unclear.
2. **Simplicity first, surgically applied** â Minimum code that solves the problem,
nothing speculative. This dist is deliberately tiny: `dist.ini` build config, a
POD-only `.pm`, one smoke test. Touch only what you must.
3. **Goal-driven execution** â Define success criteria, loop until verified.
4. **Surface conflicts, don't average them** â Contradicting patterns: pick one, explain
why, flag the other. Don't blend.
5. **Read before you write** â Read the `alienfile` end to end before changing any part;
probe, download, `make` and the gathered flags are one chain.
6. **Tests verify intent, not just behavior** â `t/load.t` asserts the consumer contract;
assert the actual flags, not a proxy. Reproduce a bug before fixing it; leave the
regression test behind.
7. **A red test is a claim before it is a failure** â Before changing code to turn a test
green, say what the test asserts and whether your fix keeps that claim or replaces it.
8. **Checkpoint and fail loud** â Summarize done / verified / left after each significant
step. "Done" is wrong if anything was skipped silently; "tests pass" is wrong if any
were skipped â say so.
9. **Match the codebase's conventions, even if you disagree** â Conformance > taste.
## Delegation
Depends on whether the Agent/Task tool is available to you.
- **You can spawn subagents** (orchestrating main agent): Do NOT touch behavior-relevant
code yourself â delegate. Your lane: coordinate, inspect, plan, review diffs, run
tests, manage git, edit `Changes`/`README.md`. When in doubt, delegate. Why: only the
`alien-tinycdb-*` agents get their skills force-loaded via `briefing.skills`; you get no
briefing and would edit the build config without the Alien and TinyCDB context.
| Task | Agent |
|---|---|
| Implement / refactor / debug the `alienfile`/`dist.ini` build config, the `.pm`, or `t/` | `alien-tinycdb-worker` (default) |
| Pre-release audit | `alien-tinycdb-release-checker` |
- **You cannot spawn subagents** (you ARE an `alien-tinycdb-*` agent): the lock does not
apply â implement, refactor, debug and test per these rules.
Behavior-relevant = the `alienfile` build recipe and `dist.ini`'s `alien_build=1` config
(probe/download/build/install), `lib/Alien/TinyCDB.pm`, and `t/`. Prose in `README.md` and
`Changes` bullets are not.
## Coordination â karr board (always in scope)
Ticket coordination is the orchestrating agent's job, so `karr` is always in scope â don't
invoke the `kanban-issues-karr-cli` skill first, just use it. Git-native kanban; state
lives in `refs/karr/*`.
- `karr list --compact` / `karr board` â open work · `karr show ID` â detail
- `karr create "Title" --priority high --tags a,b --body 'â¦'` · `karr edit ID -a "note"`
· `karr move ID in-progress --claim NAME` · `karr handoff ID --claim NAME --note "â¦"`
â full surface: skill `kanban-issues-karr-cli`
Record drift and follow-up work as tickets rather than growing the current change.
**Serialize board mutations when fanning out** â parallel implementation is fine, but
collect results and then loop `karr move`/`handoff`/`sync` sequentially.
## Release â never without permission
`dzil build` / `dzil test` are fine anytime. `dzil release` and any CPAN upload are
STRICTLY forbidden without the maintainer's explicit go-ahead â even if a ticket lists
"release" as the next step. For anything heading toward release: stop and ask. Only the
local repo state matters; CPAN lag is never a blocker and never a ticket.
## Hazards specific to this distribution
- **The build lives in the `alienfile` (Alien::Build path).** `[@Author::GETTY]` carries
`alien_build = 1`, which generates a `Makefile.PL` via `Alien::Build::MM` (MakeMaker
stays; there is no `Build.PL`). Change build behaviour by editing the `alienfile`, not
`dist.ini`. A worker looking for `Alien::Base::ModuleBuild` `alien_*` keys in `dist.ini`
is looking at the removed world. Mechanism: skill `alien-tinycdb-core`.
- **Upstream is fetched at build time, not vendored, and the version is not pinned.** The
share build downloads the newest `tinycdb-*.tar.gz` from the `alienfile`'s `start_url`
and runs `make`, so it needs network + a C compiler + `make`, and a host without a
system TinyCDB is the path that actually exercises the build. Pinning a version is an
`alienfile` change and a maintainer decision.
- **An untracked file does not exist as far as dzil is concerned.** `Git::GatherDir` skips
it; `prove` runs it and passes while the release tarball omits it. `git add` new files
as soon as they exist.
- **Shared skills under `.claude/skills/` are hardlinks.** `Edit`/`Write` on one detaches
it from the library silently. Only `alien-tinycdb-core` is owned here; everything else
changes via `manage-skills` in its home repo.
## Perl / Alien conventions â reference, don't restate
The Alien mechanics and consumer contract live in `perl-alien`; the XS/link side in
`perl-xs`; the release flow in `getty-perl-release-author-getty` and
`perl-release-dist-ini`; the TinyCDB specifics in `alien-tinycdb-core` (all force-loaded
per lane via `briefing.skills`). Do not duplicate that content here.
( run in 0.919 second using v1.01-cache-2.11-cpan-c32d3c3b8f1 )