mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 09:20:03 +01:00
Carried over Grok's in-progress rebrand of user-visible copy: CONTRIBUTING, SECURITY, all content/thoughts/* essays, whitepaper, IP assignment memo (also correcting fleetwave GmbH → fleetcrown GmbH per the earlier user correction), agent-cli-registry-spec, and three src/ comment/identifier spots (control route, intent panel doc, refresh-event handler name). No behavior changes — purely copy + comments. Repository directory remains "cockpit" for git-history continuity per the legal memo's clarification. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
53 lines
1.3 KiB
Markdown
53 lines
1.3 KiB
Markdown
# Contributing
|
|
|
|
FleetCrown is optimized for clear ownership, tight feedback loops, and production
|
|
trust. Changes should be small enough to review and strong enough to ship.
|
|
|
|
## Before Editing
|
|
|
|
Read:
|
|
|
|
- `README.md`
|
|
- `CLAUDE.md`
|
|
- `docs/architecture-first-principles.md`
|
|
- relevant domain files in `src/db/schema`, `src/db/queries`, and
|
|
`src/components`
|
|
|
|
## Engineering Standards
|
|
|
|
- Keep source-of-truth boundaries intact.
|
|
- Prefer existing primitives, hooks, API helpers, and `ui-*` classes.
|
|
- Add abstractions only when they remove real duplication or clarify ownership.
|
|
- Validate API inputs at the route boundary.
|
|
- Preserve user/tenant scoping in database queries.
|
|
- Do not introduce raw design values in JSX.
|
|
- Keep local-runtime behavior behind daemon/bridge contracts.
|
|
|
|
## Required Checks
|
|
|
|
Run the relevant subset while developing. Before pushing a broad change, run:
|
|
|
|
```bash
|
|
npx tsc --noEmit
|
|
npm run lint
|
|
npm run check:design
|
|
npm run test:control-presenter
|
|
npm run test:home
|
|
npm run test:db-url
|
|
npm run test:orchestration-summary
|
|
npm run build
|
|
npm run smoke
|
|
```
|
|
|
|
## Pull Requests
|
|
|
|
A good PR explains:
|
|
|
|
- what changed
|
|
- why the change matters
|
|
- how it was verified
|
|
- any production or migration steps
|
|
- remaining risks or follow-up work
|
|
|
|
Do not hide known risk in a summary. Put it directly in the PR.
|