docs: Bring all documentation up to date for v2.10.1

- architecture/: overview, technology stack, auth (OIDC + built-in
  IndieAuth), syndication (POSSE) rewritten; new database.md,
  deployment.md and indieweb-protocols.md; legacy stack marked historical
- decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections
  (superseded auth ADRs, proposed -> accepted); INDEX rebuilt
- design/: reconstructed the v1.6.0 documents the webmention code cites;
  reports for 18 v2 releases without a design folder; INDEX rebuilt
- projectplan/: BACKLOG rewritten (shipped items removed, open issues from
  the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX
- standards/: development setup (uv, tests, DEV_MODE), testing (CI test
  stage), git and release flow, versioning, coding standards, cookies
- README, CLAUDE.md, .env.example (every setting the code reads, with
  defaults) brought up to date
- 137 broken links repaired (old absolute paths, moved files); stale ADR
  references in code comments corrected (comments only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-03 12:40:19 -07:00
1 parent fa551de197
commit 0716984958
143 files changed
+6222 -8660

No files matched your search

+42 -157
View File
@@ -1,169 +1,54 @@
# Standards Documentation Index
# Standards Index
This directory contains coding standards, conventions, processes, workflows, and best practices for StarPunk CMS development.
**Last Updated**: 2026-11-03 (v2.10.1)
## Core Standards
Standards for developing and releasing StarPunk. Folder rules are in
[../DOCUMENTATION.md](../DOCUMENTATION.md). All standards below were checked
against the code at v2.10.1.
### Code Quality
- **[python-coding-standards.md](python-coding-standards.md)** - Python code style, patterns, and best practices
- **[utility-function-patterns.md](utility-function-patterns.md)** - Patterns for writing utility functions
## Active standards
### Testing
- **[testing-checklist.md](testing-checklist.md)** - Comprehensive testing checklist and requirements
| Standard | Covers |
|---|---|
| [development-setup.md](development-setup.md) | uv environment, `.env`, running the app with `DEV_MODE`, running the tests |
| [testing-checklist.md](testing-checklist.md) | What to test, test conventions, the CI test stage, protocol validation tools |
| [git-branching-strategy.md](git-branching-strategy.md) | Branches, commits, **the release process** (worktree, `merge --no-ff`, tag, CI, deploy), migrations |
| [versioning-strategy.md](versioning-strategy.md) | Choosing MAJOR / MINOR / PATCH |
| [version-implementation-guide.md](version-implementation-guide.md) | Where the version lives, changelog entry and design note format |
| [python-coding-standards.md](python-coding-standards.md) | Style, naming, and project patterns (config, database, outbound HTTP, errors, routes, workers) |
| [utility-function-patterns.md](utility-function-patterns.md) | Patterns for small helper functions |
| [cookie-naming-convention.md](cookie-naming-convention.md) | `starpunk_` cookie prefix and the cookies in use |
| [documentation-organization.md](documentation-organization.md) | Templates and conventions for docs (folder rules: DOCUMENTATION.md) |
### Development Workflow
- **[development-setup.md](development-setup.md)** - Development environment setup guide
- **[git-branching-strategy.md](git-branching-strategy.md)** - Git workflow and branching model
- **[versioning-strategy.md](versioning-strategy.md)** - Semantic versioning guidelines
- **[version-implementation-guide.md](version-implementation-guide.md)** - How to implement version changes
## Where to start
### Conventions
- **[cookie-naming-convention.md](cookie-naming-convention.md)** - Cookie naming standards
- **[documentation-organization.md](documentation-organization.md)** - Documentation structure and organization
- **New to the code**: development-setup → python-coding-standards →
testing-checklist.
- **Making a release**: git-branching-strategy (release process), which
links to versioning-strategy and version-implementation-guide.
- **Writing an ADR or design note**: documentation-organization.
## Standards by Category
## Key rules in brief
### Python Development
- **python-coding-standards.md** - Style guide, linting, formatting
- **utility-function-patterns.md** - Reusable code patterns
- `uv` for environments, `uv run` for every command.
- Tests need `SESSION_SECRET`; the full suite takes about 6 minutes, 5 of
them in `tests/test_migration_race_condition.py`.
- Every release: branch in a worktree, bump `__version__` and
`__version_info__`, changelog entry, design note (or ADR amendment),
`git merge --no-ff`, annotated `vX.Y.Z` tag; CI tests and publishes the
image; deploy from the Ansible repository; back up the database first when
there is a migration.
- Formatters and linters are available but not enforced; match the file
you are editing.
### Version Control & Release Management
- **git-branching-strategy.md** - Branch naming, workflow, PRs
- **versioning-strategy.md** - SemVer guidelines, version bumping
- **version-implementation-guide.md** - Step-by-step version changes
## Deprecated standards
### Quality Assurance
- **testing-checklist.md** - Test coverage requirements, test types
Standards that no longer apply move to `DEPRECATED/` (none at
present). Earlier versions of the standards above are in git history.
### Development Environment
- **development-setup.md** - Local setup, dependencies, tools
## Related
### Project Organization
- **documentation-organization.md** - Where to put what docs
- **cookie-naming-convention.md** - Naming consistency
## How to Use These Standards
### For New Developers
1. **Start here**: [development-setup.md](development-setup.md)
2. **Read**: [python-coding-standards.md](python-coding-standards.md)
3. **Understand**: [git-branching-strategy.md](git-branching-strategy.md)
4. **Reference**: Other standards as needed
### Before Writing Code
- [ ] Review [python-coding-standards.md](python-coding-standards.md)
- [ ] Check [utility-function-patterns.md](utility-function-patterns.md) for reusable patterns
- [ ] Create feature branch per [git-branching-strategy.md](git-branching-strategy.md)
### Before Committing Code
- [ ] Run tests per [testing-checklist.md](testing-checklist.md)
- [ ] Verify code follows [python-coding-standards.md](python-coding-standards.md)
- [ ] Update version if needed per [versioning-strategy.md](versioning-strategy.md)
- [ ] Write clear commit message per [git-branching-strategy.md](git-branching-strategy.md)
### Before Creating PR
- [ ] All tests pass ([testing-checklist.md](testing-checklist.md))
- [ ] Documentation updated ([documentation-organization.md](documentation-organization.md))
- [ ] Version bumped if needed ([version-implementation-guide.md](version-implementation-guide.md))
- [ ] PR follows [git-branching-strategy.md](git-branching-strategy.md)
### When Reviewing Code
- [ ] Check adherence to [python-coding-standards.md](python-coding-standards.md)
- [ ] Verify test coverage per [testing-checklist.md](testing-checklist.md)
- [ ] Confirm naming conventions ([cookie-naming-convention.md](cookie-naming-convention.md))
- [ ] Validate documentation ([documentation-organization.md](documentation-organization.md))
## Key Principles
### Code Quality
- **Simplicity First**: "Every line of code must justify its existence"
- **Explicit Over Implicit**: Clear, readable code over clever tricks
- **Type Hints Required**: All functions must have type hints
- **Docstrings Required**: All public functions must have docstrings
### Testing
- **Test-Driven Development**: Write tests before implementation
- **Coverage Requirements**: Minimum 80% coverage, aim for 90%+
- **Test Types**: Unit, integration, and end-to-end tests
- **No Skipped Tests**: All tests must pass
### Version Control
- **Feature Branches**: All work happens in feature branches
- **Atomic Commits**: One logical change per commit
- **Clear Messages**: Commit messages follow conventional commits format
- **No Direct Commits to Main**: All changes via pull requests
### Versioning
- **Semantic Versioning**: MAJOR.MINOR.PATCH format
- **Version Bumping**: Update version in multiple locations consistently
- **Changelog Maintenance**: Document all user-facing changes
- **Tag Releases**: Git tags match version numbers
## Standards Compliance Checklist
Use this checklist for all code contributions:
### Code Standards
- [ ] Follows Python coding standards
- [ ] Uses approved utility patterns
- [ ] Has type hints on all functions
- [ ] Has docstrings on all public functions
- [ ] Passes linting (flake8, black)
### Testing Standards
- [ ] Unit tests written
- [ ] Integration tests if needed
- [ ] All tests pass
- [ ] Coverage meets minimum (80%)
### Git Standards
- [ ] Feature branch created
- [ ] Commits are atomic
- [ ] Commit messages are clear
- [ ] PR description is complete
### Versioning Standards
- [ ] Version updated if needed
- [ ] Changelog updated
- [ ] Version consistent across files
- [ ] Git tag created for releases
### Documentation Standards
- [ ] Code documented
- [ ] README updated if needed
- [ ] ADR created if architectural
- [ ] Implementation report written
## Enforcing Standards
### Automated Enforcement
- **Pre-commit hooks**: Run linting and formatting
- **CI/CD pipeline**: Run tests and checks
- **Code review**: Human verification of standards
### Manual Verification
- **Checklist review**: Use standards compliance checklist
- **Peer review**: Other developers verify adherence
- **Architect review**: For architectural changes
## Updating Standards
Standards are living documents that evolve:
1. **Propose Change**: Create ADR documenting why
2. **Discuss**: Get team consensus
3. **Update Standard**: Modify the relevant standard document
4. **Announce**: Communicate the change to team
5. **Enforce**: Update CI/CD and tooling
## Related Documentation
- **[../architecture/](../architecture/)** - System architecture
- **[../decisions/](../decisions/)** - Architectural Decision Records
- **[../design/](../design/)** - Feature designs
- **[../reports/](../reports/)** - Implementation reports
---
**Last Updated**: 2025-11-25
**Maintained By**: Documentation Manager Agent
**Total Standards**: 9
- [../architecture/](../architecture/): current system design
- [../decisions/](../decisions/): ADRs
- [../design/](../design/): per-release designs and reports
- [../projectplan/](../projectplan/): backlog and release plans