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

+396 -96
View File
@@ -1,128 +1,428 @@
# Design Documentation Index
This directory contains detailed design documents, feature specifications, and phase implementation plans for StarPunk CMS.
Implementation designs, developer questions and architect answers,
implementation reports (`YYYY-MM-DD-description.md`) and reviews, one
folder per release (see `docs/DOCUMENTATION.md`). Current system design
is in `../architecture/`; decisions are in `../decisions/` (ADRs).
## Project Structure
- **[project-structure.md](project-structure.md)** - Overall project structure and organization
- **[initial-files.md](initial-files.md)** - Initial file structure for the project
## Notes
## Phase Implementation Plans
- v1.6.0 (webmentions) was deployed but never committed; its code was
recovered from the production image on 2026-10-31 (commit `d3fa5b7`). Its
documents and tests were not in the image. The five v1.6.0 documents the
code cites were reconstructed from the implementation.
- Releases from v2.0.1 on that had no folder have a short implementation
report reconstructed from the changelog and git history.
- Documents marked *(reconstructed)* were written on 2026-11-03 after the fact.
- Every release from v2.0.0 on has a folder. Of the v1 releases, v1.0.1
and v1.1.0 have none: their documents are in `v1.1.1/` (and the v1.0.1
hotfix plan in `v1.0.0/`).
- Description = the document's title.
### Phase 1: Foundation
- **[phase-1.1-core-utilities.md](phase-1.1-core-utilities.md)** - Core utility functions and helpers
- **[phase-1.1-quick-reference.md](phase-1.1-quick-reference.md)** - Quick reference for Phase 1.1
- **[phase-1.2-data-models.md](phase-1.2-data-models.md)** - Data models and database schema
- **[phase-1.2-quick-reference.md](phase-1.2-quick-reference.md)** - Quick reference for Phase 1.2
## Contents
### Phase 2: Core Features
- **[phase-2.1-notes-management.md](phase-2.1-notes-management.md)** - Notes CRUD functionality
- **[phase-2.1-quick-reference.md](phase-2.1-quick-reference.md)** - Quick reference for Phase 2.1
[v1.0.0](#v100) · [v1.1.1](#v111) · [v1.1.2](#v112) · [v1.2.0](#v120) · [v1.3.0](#v130) · [v1.3.1](#v131) · [v1.4.0](#v140) · [v1.4.1](#v141) · [v1.4.2](#v142) · [v1.5.0](#v150) · [v1.6.0](#v160) · [v2.0.0](#v200) · [v2.0.1](#v201) · [v2.0.2](#v202) · [v2.1.0](#v210) · [v2.2.0](#v220) · [v2.3.0](#v230) · [v2.3.1](#v231) · [v2.3.2](#v232) · [v2.3.3](#v233) · [v2.4.0](#v240) · [v2.5.0](#v250) · [v2.6.0](#v260) · [v2.6.1](#v261) · [v2.6.2](#v262) · [v2.6.3](#v263) · [v2.6.4](#v264) · [v2.6.5](#v265) · [v2.6.6](#v266) · [v2.6.7](#v267) · [v2.6.8](#v268) · [v2.6.9](#v269) · [v2.7.0](#v270) · [v2.7.1](#v271) · [v2.7.2](#v272) · [v2.8.0](#v280) · [v2.8.1](#v281) · [v2.9.0](#v290) · [v2.10.0](#v2100) · [v2.10.1](#v2101) · [hotfix](#hotfix)
### Phase 3: Authentication
- **[phase-3-authentication.md](phase-3-authentication.md)** - Authentication system design
- **[phase-3-authentication-implementation.md](phase-3-authentication-implementation.md)** - Implementation details
- **[indieauth-pkce-authentication.md](indieauth-pkce-authentication.md)** - IndieAuth PKCE authentication design
## v1.0.0
### Phase 4: Web Interface
- **[phase-4-web-interface.md](phase-4-web-interface.md)** - Web interface design
- **[phase-4-quick-reference.md](phase-4-quick-reference.md)** - Quick reference for Phase 4
- **[phase-4-error-handling-fix.md](phase-4-error-handling-fix.md)** - Error handling improvements
V1 foundation: phases 1–5 (utilities, models, notes, auth, web UI, RSS, container), Micropub, migrations, IndieAuth fixes and the release candidates.
### Phase 5: RSS & Deployment
- **[phase-5-rss-and-container.md](phase-5-rss-and-container.md)** - RSS feed and container deployment
- **[phase-5-executive-summary.md](phase-5-executive-summary.md)** - Executive summary of Phase 5
- **[phase-5-quick-reference.md](phase-5-quick-reference.md)** - Quick reference for Phase 5
- [2025-11-18-auth-redirect-loop-fix.md](v1.0.0/2025-11-18-auth-redirect-loop-fix.md) — Auth Redirect Loop Fix - Implementation Report
- [2025-11-18-quickfix-auth-loop.md](v1.0.0/2025-11-18-quickfix-auth-loop.md) — QUICK FIX: Auth Redirect Loop
- [2025-11-19-container-implementation-summary.md](v1.0.0/2025-11-19-container-implementation-summary.md) — Phase 5 Containerization - Implementation Complete
- [2025-11-19-migration-implementation-quick-reference.md](v1.0.0/2025-11-19-migration-implementation-quick-reference.md) — Migration System - Quick Reference Card
- [2025-11-19-migration-system-implementation-guidance.md](v1.0.0/2025-11-19-migration-system-implementation-guidance.md) — Migration System Implementation Guidance
- [2025-11-19-migration-system-implementation-report.md](v1.0.0/2025-11-19-migration-system-implementation-report.md) — Migration System Implementation Report
- [2025-11-19-todo-test-updates.md](v1.0.0/2025-11-19-todo-test-updates.md) — Test Updates Required for ADR-019 Implementation
- [2025-11-22-auth-route-prefix-fix.md](v1.0.0/2025-11-22-auth-route-prefix-fix.md) — Auth Route Prefix Fix Implementation Report
- [2025-11-22-authorization-endpoint-fix.md](v1.0.0/2025-11-22-authorization-endpoint-fix.md) — IndieAuth Authentication Endpoint Correction
- [2025-11-22-grant-type-fix.md](v1.0.0/2025-11-22-grant-type-fix.md) — IndieAuth Token Exchange grant_type Fix
- [2025-11-24-endpoint-discovery-analysis.md](v1.0.0/2025-11-24-endpoint-discovery-analysis.md) — IndieAuth Endpoint Discovery Implementation Analysis
- [2025-11-24-indieauth-removal-complete.md](v1.0.0/2025-11-24-indieauth-removal-complete.md) — IndieAuth Server Removal - Complete Implementation Report
- [2025-11-24-migration-detection-hotfix-rc3.md](v1.0.0/2025-11-24-migration-detection-hotfix-rc3.md) — Migration Detection Hotfix - v1.0.0-rc.3
- [2025-11-24-migration-fix-v1.0.0-rc.2.md](v1.0.0/2025-11-24-migration-fix-v1.0.0-rc.2.md) — Implementation Report: Migration Fix for v1.0.0-rc.2
- [2025-11-24-phase1-indieauth-server-removal.md](v1.0.0/2025-11-24-phase1-indieauth-server-removal.md) — Phase 1: IndieAuth Authorization Server Removal - Implementation Report
- [2025-11-24-v1.0.0-rc.5-implementation.md](v1.0.0/2025-11-24-v1.0.0-rc.5-implementation.md) — v1.0.0-rc.5 Implementation Report
- [ADR-025-implementation-report.md](v1.0.0/ADR-025-implementation-report.md) — ADR-025 Implementation Report
- [ADR-025-implementation-summary.md](v1.0.0/ADR-025-implementation-summary.md) — ADR-025 Implementation Summary
- [ADR-025-versioning-guidance.md](v1.0.0/ADR-025-versioning-guidance.md) — ADR-019 Implementation: Versioning Guidance
- [ARCHITECT-FINAL-ANALYSIS.md](v1.0.0/ARCHITECT-FINAL-ANALYSIS.md) — Architect Final Analysis - Delete Route 404 Fix
- [container-deployment.md](v1.0.0/container-deployment.md) — StarPunk Container Deployment Guide
- [custom-slug-bug-diagnosis.md](v1.0.0/custom-slug-bug-diagnosis.md) — Custom Slug Bug Diagnosis Report
- [custom-slug-bug-implementation.md](v1.0.0/custom-slug-bug-implementation.md) — Custom Slug Bug Fix - Implementation Report
- [database-migration-architecture.md](v1.0.0/database-migration-architecture.md) — Database Migration Architecture
- [database-migration-conflict-diagnosis.md](v1.0.0/database-migration-conflict-diagnosis.md) — Database Migration Conflict Diagnosis Report
- [delete-nonexistent-note-error-analysis.md](v1.0.0/delete-nonexistent-note-error-analysis.md) — Delete Nonexistent Note Error Analysis
- [delete-route-404-fix-implementation.md](v1.0.0/delete-route-404-fix-implementation.md) — Delete Route 404 Fix - Implementation Report
- [delete-route-fix-summary.md](v1.0.0/delete-route-fix-summary.md) — Delete Route Fix - Developer Summary
- [delete-route-implementation-spec.md](v1.0.0/delete-route-implementation-spec.md) — Delete Route Implementation Specification
- [dependencies-diagram.md](v1.0.0/dependencies-diagram.md) — StarPunk V1 Dependencies Diagram
- [endpoint-discovery-answers.md](v1.0.0/endpoint-discovery-answers.md) — IndieAuth Endpoint Discovery: Definitive Implementation Answers
- [error-handling-rest-vs-web-patterns.md](v1.0.0/error-handling-rest-vs-web-patterns.md) — Architectural Review: Error Handling in Web Routes
- [feature-scope.md](v1.0.0/feature-scope.md) — StarPunk V1 Feature Scope
- [fix-hardcoded-endpoints.md](v1.0.0/fix-hardcoded-endpoints.md) — Migration Guide: Fixing Hardcoded IndieAuth Endpoints
- [identity-domain-validation-2025-11-19.md](v1.0.0/identity-domain-validation-2025-11-19.md) — Identity Domain Validation Report
- [identity-page-customization-guide.md](v1.0.0/identity-page-customization-guide.md) — IndieAuth Identity Page Customization Guide
- [identity-page.html](v1.0.0/identity-page.html) — Example IndieAuth identity page (HTML template)
- [implementation-guide-expose-deleted-at.md](v1.0.0/implementation-guide-expose-deleted-at.md) — Implementation Guide: Expose deleted_at in Note Model
- [implementation-plan.md](v1.0.0/implementation-plan.md) — StarPunk V1 Implementation Plan
- [indieauth-assessment.md](v1.0.0/indieauth-assessment.md) — IndieAuth Architecture Assessment
- [indieauth-client-diagnosis.md](v1.0.0/indieauth-client-diagnosis.md) — IndieAuth Client Registration Issue - Diagnosis Report
- [indieauth-client-discovery-analysis.md](v1.0.0/indieauth-client-discovery-analysis.md) — IndieAuth Client Discovery Error - Architectural Analysis
- [indieauth-client-discovery-fix-implementation.md](v1.0.0/indieauth-client-discovery-fix-implementation.md) — IndieAuth Client Discovery Fix - Implementation Report
- [indieauth-client-discovery-root-cause-analysis.md](v1.0.0/indieauth-client-discovery-root-cause-analysis.md) — IndieAuth Client Discovery Root Cause Analysis
- [indieauth-detailed-logging-implementation.md](v1.0.0/indieauth-detailed-logging-implementation.md) — IndieAuth Detailed Logging Implementation Report
- [indieauth-endpoint-discovery-security.md](v1.0.0/indieauth-endpoint-discovery-security.md) — IndieAuth Endpoint Discovery Security Analysis
- [indieauth-endpoint-discovery.md](v1.0.0/indieauth-endpoint-discovery.md) — IndieAuth Endpoint Discovery Architecture
- [indieauth-fix-summary.md](v1.0.0/indieauth-fix-summary.md) — IndieAuth Authentication Fix - Quick Summary
- [indieauth-identity-page.md](v1.0.0/indieauth-identity-page.md) — IndieAuth Identity Page Architecture
- [indieauth-questions-answered.md](v1.0.0/indieauth-questions-answered.md) — IndieAuth Implementation Questions - Answered
- [indieauth-removal-analysis.md](v1.0.0/indieauth-removal-analysis.md) — IndieAuth Removal Implementation Analysis
- [indieauth-removal-architectural-review.md](v1.0.0/indieauth-removal-architectural-review.md) — Architectural Review: IndieAuth Authorization Server Removal
- [indieauth-removal-implementation-guide.md](v1.0.0/indieauth-removal-implementation-guide.md) — IndieAuth Provider Removal - Implementation Guide
- [indieauth-removal-phases.md](v1.0.0/indieauth-removal-phases.md) — IndieAuth Removal: Phased Implementation Guide
- [indieauth-removal-plan.md](v1.0.0/indieauth-removal-plan.md) — IndieAuth Server Removal Plan
- [indieauth-removal-questions.md](v1.0.0/indieauth-removal-questions.md) — IndieAuth Removal - Questions for Architect
- [indieauth-spec-url-standardization-2025-11-24.md](v1.0.0/indieauth-spec-url-standardization-2025-11-24.md) — IndieAuth Specification URL Standardization Report
- [indieauth-token-verification-diagnosis.md](v1.0.0/indieauth-token-verification-diagnosis.md) — IndieAuth Token Verification Diagnosis
- [initial-files.md](v1.0.0/initial-files.md) — Initial Project Files Design
- [initial-schema-implementation-guide.md](v1.0.0/initial-schema-implementation-guide.md) — Initial Schema SQL Implementation Guide
- [initial-schema-quick-reference.md](v1.0.0/initial-schema-quick-reference.md) — INITIAL_SCHEMA_SQL Quick Reference
- [micropub-401-diagnosis.md](v1.0.0/micropub-401-diagnosis.md) — Micropub 401 Unauthorized Error - Architectural Diagnosis
- [micropub-endpoint-design.md](v1.0.0/micropub-endpoint-design.md) — Micropub Endpoint Design for StarPunk V1
- [micropub-phase1-architecture-review.md](v1.0.0/micropub-phase1-architecture-review.md) — Micropub V1 Implementation - Phase 1 Architecture Review
- [micropub-phase3-architecture-review.md](v1.0.0/micropub-phase3-architecture-review.md) — Micropub Phase 3 Implementation Architecture Review
- [micropub-v1-implementation-progress.md](v1.0.0/micropub-v1-implementation-progress.md) — Micropub V1 Implementation Progress Report
- [migration-failure-diagnosis-v1.0.0-rc.1.md](v1.0.0/migration-failure-diagnosis-v1.0.0-rc.1.md) — Migration Failure Diagnosis - v1.0.0-rc.1
- [migration-fix-quick-reference.md](v1.0.0/migration-fix-quick-reference.md) — Migration Race Condition Fix - Quick Implementation Reference
- [migration-race-condition-answers.md](v1.0.0/migration-race-condition-answers.md) — Migration Race Condition Fix - Architectural Answers
- [migration-race-condition-fix-implementation.md](v1.0.0/migration-race-condition-fix-implementation.md) — Migration Race Condition Fix - Implementation Guide
- [oauth-metadata-implementation-2025-11-19.md](v1.0.0/oauth-metadata-implementation-2025-11-19.md) — OAuth Client ID Metadata Document Implementation Report
- [phase-1.1-core-utilities.md](v1.0.0/phase-1.1-core-utilities.md) — Phase 1.1: Core Utilities Design
- [phase-1.1-quick-reference.md](v1.0.0/phase-1.1-quick-reference.md) — Phase 1.1 Quick Reference: Core Utilities
- [phase-1.2-data-models.md](v1.0.0/phase-1.2-data-models.md) — Phase 1.2: Data Models Design
- [phase-1.2-quick-reference.md](v1.0.0/phase-1.2-quick-reference.md) — Phase 1.2 Quick Reference: Data Models
- [phase-2-architectural-review.md](v1.0.0/phase-2-architectural-review.md) — Architectural Review: Phase 2 Implementation
- [phase-2-implementation-report.md](v1.0.0/phase-2-implementation-report.md) — Phase 2 Implementation Report: Authorization and Token Endpoints
- [phase-2.1-implementation-20251118.md](v1.0.0/phase-2.1-implementation-20251118.md) — Phase 2.1 Implementation Report: Notes Management
- [phase-2.1-notes-management.md](v1.0.0/phase-2.1-notes-management.md) — Phase 2.1: Notes Management Design
- [phase-2.1-quick-reference.md](v1.0.0/phase-2.1-quick-reference.md) — Phase 2.1: Notes Management - Quick Reference
- [phase-3-authentication-20251118.md](v1.0.0/phase-3-authentication-20251118.md) — Phase 3: Authentication Implementation Report
- [phase-3-authentication-architectural-review.md](v1.0.0/phase-3-authentication-architectural-review.md) — Phase 3: Authentication Implementation - Architectural Review
- [phase-3-authentication-implementation.md](v1.0.0/phase-3-authentication-implementation.md) — Phase 3: Authentication Implementation Design
- [phase-3-authentication.md](v1.0.0/phase-3-authentication.md) — Phase 3: Authentication Design
- [phase-4-architectural-assessment-20251118.md](v1.0.0/phase-4-architectural-assessment-20251118.md) — Phase 4: Architectural Assessment and Design Report
- [phase-4-error-handling-fix.md](v1.0.0/phase-4-error-handling-fix.md) — Phase 4: Error Handling Fix - Implementation Guide
- [phase-4-quick-reference.md](v1.0.0/phase-4-quick-reference.md) — Phase 4: Quick Reference
- [phase-4-test-fixes.md](v1.0.0/phase-4-test-fixes.md) — Phase 4 Test Fixes Report
- [phase-4-web-interface.md](v1.0.0/phase-4-web-interface.md) — Phase 4: Web Interface - Implementation Design
- [phase-5-approval-summary.md](v1.0.0/phase-5-approval-summary.md) — Phase 5 Containerization - Approval Summary
- [phase-5-container-architectural-review.md](v1.0.0/phase-5-container-architectural-review.md) — Phase 5 Containerization - Architectural Review
- [phase-5-container-implementation-report.md](v1.0.0/phase-5-container-implementation-report.md) — Phase 5 Container Implementation Report
- [phase-5-executive-summary.md](v1.0.0/phase-5-executive-summary.md) — Phase 5 Executive Summary
- [phase-5-pre-implementation-review.md](v1.0.0/phase-5-pre-implementation-review.md) — Phase 5 Pre-Implementation Review
- [phase-5-quick-reference.md](v1.0.0/phase-5-quick-reference.md) — Phase 5 Quick Reference Guide
- [phase-5-rss-and-container.md](v1.0.0/phase-5-rss-and-container.md) — Phase 5: RSS Feed & Production Container - Implementation Design
- [phase-5-rss-implementation-20251119.md](v1.0.0/phase-5-rss-implementation-20251119.md) — Phase 5: RSS Feed Implementation Report
- [phase-5-validation-report.md](v1.0.0/phase-5-validation-report.md) — Phase 5 RSS Feed Implementation - Architectural Validation Report
- [phase1-completion-guide.md](v1.0.0/phase1-completion-guide.md) — Phase 1 Completion Guide: Test Cleanup and Commit
- [project-structure.md](v1.0.0/project-structure.md) — Project Structure Design
- [quick-reference.md](v1.0.0/quick-reference.md) — StarPunk V1 Quick Reference
- [review-v1.0.0-rc.5.md](v1.0.0/review-v1.0.0-rc.5.md) — Architectural Review: v1.0.0-rc.5 Implementation
- [setup-complete-2025-11-18.md](v1.0.0/setup-complete-2025-11-18.md) — StarPunk Project Setup - Complete
- [test-failure-analysis-deleted-at-attribute.md](v1.0.0/test-failure-analysis-deleted-at-attribute.md) — Test Failure Analysis: Missing `deleted_at` Attribute on Note Model
- [troubleshooting.md](v1.0.0/troubleshooting.md) — StarPunk Troubleshooting Guide
- [v0.9.1-implementation-report.md](v1.0.0/v0.9.1-implementation-report.md) — StarPunk v0.9.1 Implementation Report
- [v1-planning-overview.md](v1.0.0/v1-planning-overview.md) — StarPunk V1 Project Plan
- [v1.0.0-rc.1-hotfix-instructions.md](v1.0.0/v1.0.0-rc.1-hotfix-instructions.md) — v1.0.0-rc.1 Production Hotfix Instructions
- [v1.0.0-rc.5-migration-race-condition-implementation.md](v1.0.0/v1.0.0-rc.5-migration-race-condition-implementation.md) — v1.0.0-rc.5 Migration Race Condition Fix - Implementation Report
- [v1.0.0-release-validation.md](v1.0.0/v1.0.0-release-validation.md) — StarPunk v1.0.0 Release Validation Report
- [v1.0.1-hotfix-plan.md](v1.0.0/v1.0.1-hotfix-plan.md) — StarPunk v1.0.1 Hotfix Release Plan
## Feature-Specific Design
## v1.1.1
### Micropub API
- **[micropub-endpoint-design.md](micropub-endpoint-design.md)** - Micropub endpoint detailed design
v1.1.0 "SearchLight" (search) and v1.1.1 "Polish" designs and reports; v1.0.1 hotfix.
### Authentication Fixes
- **[auth-redirect-loop-diagnosis.md](auth-redirect-loop-diagnosis.md)** - Diagnosis of redirect loop issues
- **[auth-redirect-loop-diagram.md](auth-redirect-loop-diagram.md)** - Visual diagrams of the problem
- **[auth-redirect-loop-executive-summary.md](auth-redirect-loop-executive-summary.md)** - Executive summary
- **[auth-redirect-loop-fix-implementation.md](auth-redirect-loop-fix-implementation.md)** - Implementation guide
- [2025-11-25-hotfix-v1.1.1-rc.2-implementation.md](v1.1.1/2025-11-25-hotfix-v1.1.1-rc.2-implementation.md) — Implementation Report: Hotfix v1.1.1-rc.2 - Admin Dashboard Route Conflict
- [2025-11-25-v1.0.1-micropub-url-fix.md](v1.1.1/2025-11-25-v1.0.1-micropub-url-fix.md) — v1.0.1 Hotfix Implementation Report
- [auth-redirect-loop-diagnosis.md](v1.1.1/auth-redirect-loop-diagnosis.md) — Authentication Redirect Loop Diagnosis - Phase 4
- [auth-redirect-loop-diagram.md](v1.1.1/auth-redirect-loop-diagram.md) — Auth Redirect Loop - Visual Diagram
- [auth-redirect-loop-executive-summary.md](v1.1.1/auth-redirect-loop-executive-summary.md) — Auth Redirect Loop - Executive Summary
- [auth-redirect-loop-fix-implementation.md](v1.1.1/auth-redirect-loop-fix-implementation.md) — Implementation Guide: Auth Redirect Loop Fix
- [hotfix-v1.1.1-rc2-consolidated.md](v1.1.1/hotfix-v1.1.1-rc2-consolidated.md) — Hotfix Design: v1.1.1-rc.2 - Metrics Dashboard Template Data Mismatch
- [hotfix-v1.1.1-rc2-review.md](v1.1.1/hotfix-v1.1.1-rc2-review.md) — Architectural Review: Hotfix v1.1.1-rc.2
- [hotfix-v1.1.1-rc2-route-conflict.md](v1.1.1/hotfix-v1.1.1-rc2-route-conflict.md) — Hotfix Design: v1.1.1-rc.2 Route Conflict Resolution
- [hotfix-validation-script.md](v1.1.1/hotfix-validation-script.md) — Hotfix Validation Script for v1.1.1-rc.2
- [indieauth-pkce-authentication.md](v1.1.1/indieauth-pkce-authentication.md) — IndieAuth PKCE Authentication - Technical Design
- [potential-features.md](v1.1.1/potential-features.md) — StarPunk V1.1: Potential Features
- [priority-work.md](v1.1.1/priority-work.md) — StarPunk v1.1.0: Priority Work Items
- [syndication-features.md](v1.1.1/syndication-features.md) — Syndication Features Specification
- [token-security-migration.md](v1.1.1/token-security-migration.md) — Token Security Migration Strategy
- [upgrade-to-v1.1.1.md](v1.1.1/upgrade-to-v1.1.1.md) — Upgrade Guide: StarPunk v1.1.1 "Polish"
- [v1.1.0-feature-architecture.md](v1.1.1/v1.1.0-feature-architecture.md) — StarPunk v1.1.0 Feature Architecture
- [v1.1.0-implementation-decisions.md](v1.1.1/v1.1.0-implementation-decisions.md) — V1.1.0 Implementation Decisions - Architectural Guidance
- [v1.1.0-implementation-plan.md](v1.1.1/v1.1.0-implementation-plan.md) — StarPunk v1.1.0 Implementation Plan
- [v1.1.0-implementation-report.md](v1.1.1/v1.1.0-implementation-report.md) — StarPunk v1.1.0 Implementation Report
- [v1.1.0-release-status.md](v1.1.1/v1.1.0-release-status.md) — StarPunk v1.1.0 "SearchLight" Release Status
- [v1.1.0-search-ui-validation.md](v1.1.1/v1.1.0-search-ui-validation.md) — StarPunk v1.1.0 Search UI Implementation Review
- [v1.1.0-validation-report.md](v1.1.1/v1.1.0-validation-report.md) — StarPunk v1.1.0 Implementation Validation & Search UI Design
- [v1.1.1-architecture-overview.md](v1.1.1/v1.1.1-architecture-overview.md) — v1.1.1 "Polish" Architecture Overview
- [v1.1.1-final-release-review.md](v1.1.1/v1.1.1-final-release-review.md) — StarPunk v1.1.1 "Polish" - Final Architectural Release Review
- [v1.1.1-instrumentation-assessment.md](v1.1.1/v1.1.1-instrumentation-assessment.md) — v1.1.1 Performance Monitoring Instrumentation Assessment
- [v1.1.1-phase1-architectural-review.md](v1.1.1/v1.1.1-phase1-architectural-review.md) — StarPunk v1.1.1 Phase 1 - Architectural Review Report
- [v1.1.1-phase1-implementation.md](v1.1.1/v1.1.1-phase1-implementation.md) — StarPunk v1.1.1 Phase 1 Implementation Report
- [v1.1.1-phase2-architectural-review.md](v1.1.1/v1.1.1-phase2-architectural-review.md) — StarPunk v1.1.1 "Polish" - Phase 2 Architectural Review
- [v1.1.1-phase2-implementation.md](v1.1.1/v1.1.1-phase2-implementation.md) — StarPunk v1.1.1 "Polish" - Phase 2 Implementation Report
- [v1.1.1-phase3-implementation.md](v1.1.1/v1.1.1-phase3-implementation.md) — StarPunk v1.1.1 "Polish" - Phase 3 Implementation Report
### Database Schema
- **[initial-schema-implementation-guide.md](initial-schema-implementation-guide.md)** - Schema implementation guide
- **[initial-schema-quick-reference.md](initial-schema-quick-reference.md)** - Quick reference
## v1.1.2
### Security
- **[token-security-migration.md](token-security-migration.md)** - Token security improvements
v1.1.2 "Syndicate": metrics, ATOM/JSON feeds, feed statistics, OPML.
## Version-Specific Design
- [2025-11-26-phase2-architect-review.md](v1.1.2/2025-11-26-phase2-architect-review.md) — Architectural Review: StarPunk v1.1.2 Phase 2 "Syndicate" - Feed Formats
- [2025-11-26-v1.1.2-phase1-review.md](v1.1.2/2025-11-26-v1.1.2-phase1-review.md) — StarPunk v1.1.2 Phase 1 Implementation Review
- [2025-11-26-v1.1.2-phase2-complete.md](v1.1.2/2025-11-26-v1.1.2-phase2-complete.md) — StarPunk v1.1.2 Phase 2 Feed Formats - Implementation Report (COMPLETE)
- [2025-11-26-v1.1.2-phase2-feed-formats-partial.md](v1.1.2/2025-11-26-v1.1.2-phase2-feed-formats-partial.md) — StarPunk v1.1.2 Phase 2 Feed Formats - Implementation Report (Partial)
- [2025-11-27-phase3-architect-review.md](v1.1.2/2025-11-27-phase3-architect-review.md) — StarPunk v1.1.2 Phase 3 - Architectural Review
- [2025-11-27-v1.1.2-phase3-complete.md](v1.1.2/2025-11-27-v1.1.2-phase3-complete.md) — v1.1.2 Phase 3 Implementation Report - Feed Statistics & OPML
- [2025-11-28-v1.1.2-rc.1-architect-review.md](v1.1.2/2025-11-28-v1.1.2-rc.1-architect-review.md) — Architect Review: v1.1.2-rc.1 Production Issues
- [2025-11-28-v1.1.2-rc.1-production-issues.md](v1.1.2/2025-11-28-v1.1.2-rc.1-production-issues.md) — v1.1.2-rc.1 Production Issues Investigation Report
- [2025-11-28-v1.1.2-rc.2-fixes.md](v1.1.2/2025-11-28-v1.1.2-rc.2-fixes.md) — v1.1.2-rc.2 Production Bug Fixes - Implementation Report
- [feed-media-handling-options.md](v1.1.2/feed-media-handling-options.md) — Feed Media Handling: Architecture Options Analysis
- [feed-media-option2-design.md](v1.1.2/feed-media-option2-design.md) — Feed Media Enhancement Design: Option 2 (RSS + Media RSS Extension)
- [upgrade-to-v1.1.2.md](v1.1.2/upgrade-to-v1.1.2.md) — Upgrade Guide: StarPunk v1.1.2 "Syndicate"
- [v1.1.2-caption-alttext-update.md](v1.1.2/v1.1.2-caption-alttext-update.md) — Caption Display Update - Alt Text Only (v1.1.2)
- [v1.1.2-options.md](v1.1.2/v1.1.2-options.md) — StarPunk v1.1.2 Release Plan Options
- [v1.1.2-phase1-metrics-implementation.md](v1.1.2/v1.1.2-phase1-metrics-implementation.md) — StarPunk v1.1.2 Phase 1: Metrics Instrumentation - Implementation Report
- [v1.1.2-syndicate-architecture.md](v1.1.2/v1.1.2-syndicate-architecture.md) — StarPunk v1.1.2 "Syndicate" - Architecture Overview
### v1.1.1
- **[v1.1.1/](v1.1.1/)** - v1.1.1 specific design documents
## v1.2.0
## Quick Reference Documents
Custom slugs, author discovery and microformats2, media upload and display.
Quick reference documents provide condensed, actionable information for developers:
- **phase-1.1-quick-reference.md** - Core utilities quick ref
- **phase-1.2-quick-reference.md** - Data models quick ref
- **phase-2.1-quick-reference.md** - Notes management quick ref
- **phase-4-quick-reference.md** - Web interface quick ref
- **phase-5-quick-reference.md** - RSS and deployment quick ref
- **initial-schema-quick-reference.md** - Database schema quick ref
- [2025-11-28-v1.2.0-design-complete.md](v1.2.0/2025-11-28-v1.2.0-design-complete.md) — v1.2.0 Design Review - Complete
- [2025-11-28-v1.2.0-media-display-fixes.md](v1.2.0/2025-11-28-v1.2.0-media-display-fixes.md) — Media Display Fixes Implementation Report
- [2025-11-28-v1.2.0-phase1-custom-slugs.md](v1.2.0/2025-11-28-v1.2.0-phase1-custom-slugs.md) — v1.2.0 Phase 1: Custom Slugs - Implementation Report
- [2025-11-28-v1.2.0-phase1-review.md](v1.2.0/2025-11-28-v1.2.0-phase1-review.md) — v1.2.0 Phase 1: Custom Slugs - Architectural Review
- [2025-11-28-v1.2.0-phase2-author-microformats.md](v1.2.0/2025-11-28-v1.2.0-phase2-author-microformats.md) — v1.2.0 Phase 2 Implementation Report: Author Discovery & Microformats2
- [2025-11-28-v1.2.0-phase2-review.md](v1.2.0/2025-11-28-v1.2.0-phase2-review.md) — v1.2.0 Phase 2 Architectural Review: Author Discovery & Microformats2
- [2025-11-28-v1.2.0-phase3-media-upload.md](v1.2.0/2025-11-28-v1.2.0-phase3-media-upload.md) — v1.2.0 Phase 3: Media Upload - Implementation Report
- [2025-11-28-v1.2.0-phase3-review.md](v1.2.0/2025-11-28-v1.2.0-phase3-review.md) — v1.2.0 Phase 3 Architecture Review: Media Upload
- [2025-12-09-feed-media-implementation.md](v1.2.0/2025-12-09-feed-media-implementation.md) — Feed Media Enhancement Implementation Report
- [2025-12-09-media-display-validation.md](v1.2.0/2025-12-09-media-display-validation.md) — Media Display Implementation Validation Report
- [2025-12-09-v1.2.0-release.md](v1.2.0/2025-12-09-v1.2.0-release.md) — v1.2.0 Release Report
- [2025-12-10-documentation-audit-v1.2.0.md](v1.2.0/2025-12-10-documentation-audit-v1.2.0.md) — Documentation Audit Report - Post v1.2.0 Release
- [media-display-fixes.md](v1.2.0/media-display-fixes.md) — Media Display Fixes - Architectural Design
- [v1.2.0-media-css-design.md](v1.2.0/v1.2.0-media-css-design.md) — CSS Design for Media Display (v1.2.0)
- [v1.X.X-indieweb-options.md](v1.2.0/v1.X.X-indieweb-options.md) — StarPunk v1.X.X IndieWeb-Focused Release Options
- [v1.X.X-options.md](v1.2.0/v1.X.X-options.md) — StarPunk Next Release Options
## How to Use This Documentation
## v1.3.0
### For Developers Implementing Features
1. Start with the relevant **phase** document (e.g., phase-2.1-notes-management.md)
2. Consult the **quick reference** for that phase
3. Check **feature-specific design** docs for details
4. Reference **ADRs** in ../decisions/ for architectural decisions
Microformats2 compliance and tags.
### For Planning New Features
1. Review similar **phase documents** for patterns
2. Check **project-structure.md** for organization guidelines
3. Create new design doc following existing format
4. Update this index with the new document
- [2025-12-10-phase1-implementation.md](v1.3.0/2025-12-10-phase1-implementation.md) — v1.3.0 Phase 1 Implementation Report
- [2025-12-10-phase2-implementation.md](v1.3.0/2025-12-10-phase2-implementation.md) — v1.3.0 Phase 2: Templates Implementation Report
- [2025-12-10-phase3-implementation.md](v1.3.0/2025-12-10-phase3-implementation.md) — v1.3.0 Phase 3 Implementation Report
- [2025-12-10-phase4-implementation.md](v1.3.0/2025-12-10-phase4-implementation.md) — v1.3.0 Phase 4: Validation Implementation Report
- [microformats-tags-design.md](v1.3.0/microformats-tags-design.md) — v1.3.0 Microformats2 Compliance and Tags Implementation Design
### For Understanding Existing Code
1. Find the **phase** that implemented the feature
2. Read the design document for context
3. Check **ADRs** for decision rationale
4. Review implementation reports in ../reports/
## v1.3.1
## Document Types
Tags in feeds.
### Phase Documents
Comprehensive plans for each development phase, including:
- Goals and scope
- Implementation tasks
- Dependencies
- Testing requirements
- [2025-12-10-feed-tags-implementation.md](v1.3.1/2025-12-10-feed-tags-implementation.md) — Feed Tags Implementation Report
- [feed-tags-design.md](v1.3.1/feed-tags-design.md) — Feed Tags Implementation Design
### Quick Reference Documents
Condensed information for rapid development:
- Key decisions
- Code patterns
- Common operations
- Gotchas and notes
## v1.4.0
### Feature Design Documents
Detailed specifications for specific features:
- Requirements
- API design
- Data models
- UI/UX considerations
"Media" release: image variants and media pipeline.
### Diagnostic Documents
Problem analysis and solutions:
- Issue description
- Root cause analysis
- Solution design
- Implementation plan
- [2025-12-16-phase4-implementation-report.md](v1.4.0/2025-12-16-phase4-implementation-report.md) — v1.4.0 Phase 4 Implementation Report
- [2025-12-16-v140-implementation-complete.md](v1.4.0/2025-12-16-v140-implementation-complete.md) — v1.4.0 "Media" Release - Implementation Complete
- [media-implementation-design.md](v1.4.0/media-implementation-design.md) — v1.4.0 "Media" Release - Implementation Design
## v1.4.1
Media upload logging.
- [2025-12-16-implementation-report.md](v1.4.1/2025-12-16-implementation-report.md) — Implementation Report - v1.4.1 Media Upload Logging
- [architect-responses.md](v1.4.1/architect-responses.md) — Architect Responses - v1.4.1 Media Upload Logging
- [developer-questions.md](v1.4.1/developer-questions.md) — Developer Questions - v1.4.1 Media Upload Logging
- [media-logging-design.md](v1.4.1/media-logging-design.md) — Media Upload Logging Design - v1.4.1
## v1.4.2
HEIC/MPO support and larger dimension limit.
- [2025-12-16-architect-review.md](v1.4.2/2025-12-16-architect-review.md) — Architect Review: v1.4.2 Implementation and End-to-End Media Pipeline
- [2025-12-16-developer-review.md](v1.4.2/2025-12-16-developer-review.md) — v1.4.2 Developer Review - HEIC/MPO Support and Dimension Limit Increase
- [2025-12-16-implementation-report.md](v1.4.2/2025-12-16-implementation-report.md) — v1.4.2 Implementation Report - HEIC Image Support
- [heic-support-design.md](v1.4.2/heic-support-design.md) — HEIC Image Support Design - v1.4.2
## v1.5.0
Timestamp slugs, debug file management, N+1 fix, atomic variants, test coverage.
- [2025-12-16-architect-responses.md](v1.5.0/2025-12-16-architect-responses.md) — Architect Responses - v1.5.0 Developer Questions
- [2025-12-16-developer-questions.md](v1.5.0/2025-12-16-developer-questions.md) — Developer Review Questions - v1.5.0 Release Plan
- [2025-12-16-phase-0-implementation-report.md](v1.5.0/2025-12-16-phase-0-implementation-report.md) — Phase 0 Implementation Report - Test Fixes
- [2025-12-16-phase2-architect-review.md](v1.5.0/2025-12-16-phase2-architect-review.md) — Phase 2 Architect Review: Debug File Management
- [2025-12-17-indieauth-discovery-fix.md](v1.5.0/2025-12-17-indieauth-discovery-fix.md) — IndieAuth Endpoint Discovery Regression Analysis
- [2025-12-17-phase-1-implementation-report.md](v1.5.0/2025-12-17-phase-1-implementation-report.md) — Phase 1 Implementation Report: Timestamp-Based Slugs
- [2025-12-17-phase3-architect-review.md](v1.5.0/2025-12-17-phase3-architect-review.md) — Phase 3 Architect Review: N+1 Query Fix
- [2025-12-17-phase3-implementation.md](v1.5.0/2025-12-17-phase3-implementation.md) — v1.5.0 Phase 3 Implementation Report
- [2025-12-17-phase4-architect-review.md](v1.5.0/2025-12-17-phase4-architect-review.md) — Phase 4 Architect Review: Atomic Variant Generation
- [2025-12-17-phase4-implementation.md](v1.5.0/2025-12-17-phase4-implementation.md) — v1.5.0 Phase 4: Atomic Variant Generation - Implementation Report
- [2025-12-17-phase5-architect-review.md](v1.5.0/2025-12-17-phase5-architect-review.md) — Phase 5 Architect Review: Test Coverage Expansion (FINAL)
- [2025-12-17-phase5-implementation.md](v1.5.0/2025-12-17-phase5-implementation.md) — v1.5.0 Phase 5: Test Coverage Expansion - Implementation Report
- [phase-2-implementation-report.md](v1.5.0/phase-2-implementation-report.md) — v1.5.0 Phase 2 Implementation Report: Debug File Management
## v1.6.0
Webmentions (receive, send, moderate), reply contexts, rate limiting. Original documents lost; reconstructed from the code.
- [api-contract.md](v1.6.0/api-contract.md) — v1.6.0 Design: Webmention API Contract *(reconstructed)*
- [background-worker.md](v1.6.0/background-worker.md) — v1.6.0 Design: Webmention Background Worker *(reconstructed)*
- [database-schema.md](v1.6.0/database-schema.md) — v1.6.0 Design: Webmention Database Schema *(reconstructed)*
- [display-moderation.md](v1.6.0/display-moderation.md) — v1.6.0 Design: Webmention Display and Moderation *(reconstructed)*
- [rate-limiting.md](v1.6.0/rate-limiting.md) — v1.6.0 Design: Webmention Rate Limiting *(reconstructed)*
## v2.0.0
OIDC admin login and built-in IndieAuth server.
- [2026-10-31-oidc-migration.md](v2.0.0/2026-10-31-oidc-migration.md) — v2.0.0 Implementation Report: OIDC Login and Built-in IndieAuth Server
## v2.0.1
- [2026-10-31-absolute-urls-and-ci-buildkit.md](v2.0.1/2026-10-31-absolute-urls-and-ci-buildkit.md) — Absolute URLs from SITE_URL; CI builds with BuildKit *(reconstructed)*
## v2.0.2
- [2026-10-31-ci-registry-token.md](v2.0.2/2026-10-31-ci-registry-token.md) — CI registry login with REGISTRY_TOKEN *(reconstructed)*
## v2.1.0
- [2026-10-31-gotosocial-crossposting.md](v2.1.0/2026-10-31-gotosocial-crossposting.md) — Crossposting to GoToSocial *(reconstructed)*
## v2.2.0
- [2026-10-31-bluesky-crossposting.md](v2.2.0/2026-10-31-bluesky-crossposting.md) — Crossposting to Bluesky *(reconstructed)*
## v2.3.0
- [2026-10-31-public-page-restyle.md](v2.3.0/2026-10-31-public-page-restyle.md) — Public page restyle *(reconstructed)*
## v2.3.1
- [2026-10-31-login-link-in-header.md](v2.3.1/2026-10-31-login-link-in-header.md) — "Log in" back in the header *(reconstructed)*
## v2.3.2
- [2026-10-31-header-admin-link.md](v2.3.2/2026-10-31-header-admin-link.md) — Header shows "Admin" when logged in *(reconstructed)*
## v2.3.3
- [2026-10-31-micropub-title-and-source-url.md](v2.3.3/2026-10-31-micropub-title-and-source-url.md) — Micropub titles, q=source URL, single title display
## v2.4.0
- [2026-10-31-micropub-update-delete-drafts.md](v2.4.0/2026-10-31-micropub-update-delete-drafts.md) — Micropub update, delete/undelete, drafts, replies *(reconstructed)*
## v2.5.0
- [2026-10-31-likes-and-reposts.md](v2.5.0/2026-10-31-likes-and-reposts.md) — Likes and reposts *(reconstructed)*
## v2.6.0
- [2026-10-31-threads-crossposting.md](v2.6.0/2026-10-31-threads-crossposting.md) — Crossposting to Threads
## v2.6.1
- [2026-10-31-threads-publish-retry.md](v2.6.1/2026-10-31-threads-publish-retry.md) — Retry Threads publish errors *(reconstructed)*
## v2.6.2
- [2026-10-31-threads-link-preview.md](v2.6.2/2026-10-31-threads-link-preview.md) — Let Threads build the link preview *(reconstructed)*
## v2.6.3
- [2026-11-01-crosspost-links-and-cards.md](v2.6.3/2026-11-01-crosspost-links-and-cards.md) — Crosspost cards show the note's own link *(reconstructed)*
## v2.6.4
- [2026-11-01-tag-entry-order.md](v2.6.4/2026-11-01-tag-entry-order.md) — Tags keep the order they were entered in *(reconstructed)*
## v2.6.5
- [2026-11-01-micropub-media-fixes.md](v2.6.5/2026-11-01-micropub-media-fixes.md) — Micropub media fixes
## v2.6.6
- [2026-11-02-crosspost-embedded-images.md](v2.6.6/2026-11-02-crosspost-embedded-images.md) — Crossposts include photos embedded in the text *(reconstructed)*
## v2.6.7
- [2026-11-02-admin-layout-width.md](v2.6.7/2026-11-02-admin-layout-width.md) — Admin pages line up with the header *(reconstructed)*
## v2.6.8
- [2026-11-03-webmention-worker-app-context.md](v2.6.8/2026-11-03-webmention-worker-app-context.md) — Webmention worker app context
## v2.6.9
- [2026-11-03-webmention-processing-fixes.md](v2.6.9/2026-11-03-webmention-processing-fixes.md) — Webmention processing fixes
## v2.7.0
- [2026-11-03-webmention-spec-compliance.md](v2.7.0/2026-11-03-webmention-spec-compliance.md) — Webmention W3C compliance
## v2.7.1
- [2026-11-03-ci-test-stage.md](v2.7.1/2026-11-03-ci-test-stage.md) — Tests run before release images are built *(reconstructed)*
## v2.7.2
- [2026-11-03-webmention-shoulds.md](v2.7.2/2026-11-03-webmention-shoulds.md) — Remaining Webmention SHOULDs
## v2.8.0
- [2026-11-03-microformats2-review.md](v2.8.0/2026-11-03-microformats2-review.md) — Microformats2 review
## v2.8.1
- [2026-11-03-migration-lock.md](v2.8.1/2026-11-03-migration-lock.md) — Migration lock held for the whole run
## v2.9.0
- [2026-11-03-micropub-review.md](v2.9.0/2026-11-03-micropub-review.md) — Micropub review
## v2.10.0
- [2026-11-03-websub-implementation.md](v2.10.0/2026-11-03-websub-implementation.md) — WebSub with a built-in hub (implementation report) *(reconstructed)*
## v2.10.1
- [2026-11-03-websub-hardening.md](v2.10.1/2026-11-03-websub-hardening.md) — WebSub hardening (implementation report) *(reconstructed)*
## hotfix
Not a release folder.
IndieAuth PKCE endpoint discovery hotfix (2025-12-17, between v1.5.0 and v1.6.0; no version of its own).
- [2025-12-17-indieauth-pkce-endpoint-discovery-hotfix-implementation-report.md](hotfix/2025-12-17-indieauth-pkce-endpoint-discovery-hotfix-implementation-report.md) — IndieAuth Endpoint Discovery Hotfix - Implementation Report
- [2025-12-17-indieauth-pkce-endpoint-discovery-hotfix.md](hotfix/2025-12-17-indieauth-pkce-endpoint-discovery-hotfix.md) — IndieAuth Endpoint Discovery Hotfix
## Related Documentation
- **[../architecture/](../architecture/)** - System architecture and overviews
- **[../decisions/](../decisions/)** - Architectural Decision Records (ADRs)
- **[../reports/](../reports/)** - Implementation reports
- **[../standards/](../standards/)** - Coding standards and conventions
- [../architecture/](../architecture/) - Current system architecture
- [../decisions/](../decisions/) - Architectural Decision Records (ADRs)
- [../projectplan/](../projectplan/) - Backlog and release plans
- [../standards/](../standards/) - Coding standards and conventions
- [../../CHANGELOG.md](../../CHANGELOG.md) - User-facing release notes
---
**Last Updated**: 2025-11-25
**Maintained By**: Documentation Manager Agent
**Last Updated**: 2026-11-03
+5 -5
View File
@@ -630,11 +630,11 @@ curl http://localhost:8000/health
### Documentation
- [Phase 5 Design](../designs/phase-5-rss-and-container.md)
- [Containerfile](../../Containerfile)
- [Compose Configuration](../../compose.yaml)
- [Caddy Example](../../Caddyfile.example)
- [Nginx Example](../../nginx.conf.example)
- [Phase 5 Design](phase-5-rss-and-container.md)
- [Containerfile](../../../Containerfile)
- [Compose Configuration](../../../compose.yaml)
- [Caddy Example](../../../Caddyfile.example)
- [Nginx Example](../../../nginx.conf.example)
### External Resources
+25 -25
View File
@@ -21,12 +21,12 @@ This document provides a comprehensive, dependency-ordered implementation plan f
|-------|--------|---------|---------------|--------|
| 1.1 - Core Utilities | ✅ Complete | 0.1.0 | >90% | N/A |
| 1.2 - Data Models | ✅ Complete | 0.1.0 | >90% | N/A |
| 2.1 - Notes Management | ✅ Complete | 0.3.0 | 86% (85 tests) | [Phase 2.1 Report](/home/phil/Projects/starpunk/docs/reports/phase-2.1-implementation-20251118.md) |
| 3.1 - Authentication | ✅ Complete | 0.8.0 | 96% (51 tests) | [Phase 3 Report](/home/phil/Projects/starpunk/docs/reports/phase-3-authentication-20251118.md) |
| 2.1 - Notes Management | ✅ Complete | 0.3.0 | 86% (85 tests) | [Phase 2.1 Report](phase-2.1-implementation-20251118.md) |
| 3.1 - Authentication | ✅ Complete | 0.8.0 | 96% (51 tests) | [Phase 3 Report](phase-3-authentication-20251118.md) |
| 4.1-4.4 - Web Interface | ✅ Complete | 0.5.2 | 87% (405 tests) | Phase 4 implementation |
| 5.1-5.2 - RSS Feed | ✅ Complete | 0.6.0 | 96% | ADR-014, ADR-015 |
| 6 - Micropub | ✅ Complete | 1.0.0 | 95% | [v1.0.0 Release](/home/phil/Projects/starpunk/docs/reports/v1.0.0-implementation-report.md) |
| V1.1 - Search & Enhancements | ✅ Complete | 1.1.0 | 598 tests | [v1.1.0 Report](/home/phil/Projects/starpunk/docs/reports/v1.1.0-implementation-report.md) |
| 6 - Micropub | ✅ Complete | 1.0.0 | 95% | v1.0.0 Release (`v1.0.0-implementation-report.md`, not preserved) |
| V1.1 - Search & Enhancements | ✅ Complete | 1.1.0 | 598 tests | [v1.1.0 Report](../v1.1.1/v1.1.0-implementation-report.md) |
### Current Status 🔵
@@ -1553,29 +1553,29 @@ Final steps before V1 release.
## References
### Project Documentation
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [Technology Stack](/home/phil/Projects/starpunk/docs/architecture/technology-stack.md)
- [ADR-001: Python Web Framework](/home/phil/Projects/starpunk/docs/decisions/ADR-001-python-web-framework.md)
- [ADR-002: Flask Extensions](/home/phil/Projects/starpunk/docs/decisions/ADR-002-flask-extensions.md)
- [ADR-003: Frontend Technology](/home/phil/Projects/starpunk/docs/decisions/ADR-003-frontend-technology.md)
- [ADR-004: File-Based Storage](/home/phil/Projects/starpunk/docs/decisions/ADR-004-file-based-note-storage.md)
- [ADR-005: IndieLogin Authentication](/home/phil/Projects/starpunk/docs/decisions/ADR-005-indielogin-authentication.md)
- [ADR-006: Python Virtual Environment](/home/phil/Projects/starpunk/docs/decisions/ADR-006-python-virtual-environment-uv.md)
- [ADR-007: Slug Generation Algorithm](/home/phil/Projects/starpunk/docs/decisions/ADR-007-slug-generation-algorithm.md)
- [ADR-008: Versioning Strategy](/home/phil/Projects/starpunk/docs/decisions/ADR-008-versioning-strategy.md)
- [ADR-009: Git Branching Strategy](/home/phil/Projects/starpunk/docs/decisions/ADR-009-git-branching-strategy.md)
- [ADR-010: Authentication Module Design](/home/phil/Projects/starpunk/docs/decisions/ADR-010-authentication-module-design.md)
- [ADR-011: Development Authentication Mechanism](/home/phil/Projects/starpunk/docs/decisions/ADR-011-development-authentication-mechanism.md)
- [Project Structure](/home/phil/Projects/starpunk/docs/design/project-structure.md)
- [Phase 4 Web Interface Design](/home/phil/Projects/starpunk/docs/design/phase-4-web-interface.md)
- [Python Coding Standards](/home/phil/Projects/starpunk/docs/standards/python-coding-standards.md)
- [Versioning Strategy](/home/phil/Projects/starpunk/docs/standards/versioning-strategy.md)
- [Git Branching Strategy](/home/phil/Projects/starpunk/docs/standards/git-branching-strategy.md)
- [Architecture Overview](../../architecture/overview.md)
- [Technology Stack](../../architecture/technology-stack.md)
- [ADR-001: Python Web Framework](../../decisions/ADR-001-python-web-framework.md)
- [ADR-002: Flask Extensions](../../decisions/ADR-002-flask-extensions.md)
- [ADR-003: Frontend Technology](../../decisions/ADR-003-frontend-technology.md)
- [ADR-004: File-Based Storage](../../decisions/ADR-004-file-based-note-storage.md)
- [ADR-005: IndieLogin Authentication](../../decisions/ADR-005-indielogin-authentication.md)
- [ADR-006: Python Virtual Environment](../../decisions/ADR-006-python-virtual-environment-uv.md)
- [ADR-007: Slug Generation Algorithm](../../decisions/ADR-007-slug-generation-algorithm.md)
- [ADR-008: Versioning Strategy](../../decisions/ADR-008-versioning-strategy.md)
- [ADR-009: Git Branching Strategy](../../decisions/ADR-009-git-branching-strategy.md)
- [ADR-010: Authentication Module Design](../../decisions/ADR-010-authentication-module-design.md)
- [ADR-011: Development Authentication Mechanism](../../decisions/ADR-011-development-authentication-mechanism.md)
- [Project Structure](project-structure.md)
- [Phase 4 Web Interface Design](phase-4-web-interface.md)
- [Python Coding Standards](../../standards/python-coding-standards.md)
- [Versioning Strategy](../../standards/versioning-strategy.md)
- [Git Branching Strategy](../../standards/git-branching-strategy.md)
### Implementation Reports
- [Phase 2.1 Implementation Report](/home/phil/Projects/starpunk/docs/reports/phase-2.1-implementation-20251118.md)
- [Phase 3 Authentication Report](/home/phil/Projects/starpunk/docs/reports/phase-3-authentication-20251118.md)
- [Phase 4 Architectural Assessment](/home/phil/Projects/starpunk/docs/reports/phase-4-architectural-assessment-20251118.md)
- [Phase 2.1 Implementation Report](phase-2.1-implementation-20251118.md)
- [Phase 3 Authentication Report](phase-3-authentication-20251118.md)
- [Phase 4 Architectural Assessment](phase-4-architectural-assessment-20251118.md)
### External Standards
- [Micropub Specification](https://micropub.spec.indieweb.org/)
@@ -333,8 +333,8 @@ This allows gradual migration without breaking existing integrations.
## References
### Architect Documentation
- [ADR-016: IndieAuth Client Discovery Mechanism](/home/phil/Projects/starpunk/docs/decisions/ADR-016-indieauth-client-discovery.md)
- [IndieAuth Client Discovery Analysis Report](/home/phil/Projects/starpunk/docs/reports/indieauth-client-discovery-analysis.md)
- [ADR-016: IndieAuth Client Discovery Mechanism](../../decisions/ADR-016-indieauth-client-discovery.md)
- [IndieAuth Client Discovery Analysis Report](indieauth-client-discovery-analysis.md)
### IndieWeb Standards
- [IndieAuth Specification](https://www.w3.org/TR/indieauth/)
@@ -342,9 +342,9 @@ This allows gradual migration without breaking existing integrations.
- [IndieLogin.com](https://indielogin.com/)
### Project Documentation
- [ADR-008: Versioning Strategy](/home/phil/Projects/starpunk/docs/decisions/ADR-008-versioning-strategy.md)
- [ADR-009: Git Branching Strategy](/home/phil/Projects/starpunk/docs/decisions/ADR-009-git-branching-strategy.md)
- [Phase 3: Authentication Design](/home/phil/Projects/starpunk/docs/design/phase-3-authentication.md)
- [ADR-008: Versioning Strategy](../../decisions/ADR-008-versioning-strategy.md)
- [ADR-009: Git Branching Strategy](../../decisions/ADR-009-git-branching-strategy.md)
- [Phase 3: Authentication Design](phase-3-authentication.md)
---
@@ -376,6 +376,6 @@ The implementation exactly follows the architect's specification in ADR-018, use
## Related Documentation
- [ADR-018: IndieAuth Detailed Logging Strategy](/home/phil/Projects/starpunk/docs/decisions/ADR-018-indieauth-detailed-logging.md)
- [Versioning Strategy](/home/phil/Projects/starpunk/docs/standards/versioning-strategy.md)
- [CHANGELOG.md](/home/phil/Projects/starpunk/CHANGELOG.md)
- [ADR-018: IndieAuth Detailed Logging Strategy](../../decisions/ADR-018-indieauth-detailed-logging.md)
- [Versioning Strategy](../../standards/versioning-strategy.md)
- [CHANGELOG.md](../../../CHANGELOG.md)
+4 -4
View File
@@ -1009,9 +1009,9 @@ echo "✓ Sensitive files are gitignored"
## References
- [Project Structure Design](/home/phil/Projects/starpunk/docs/design/project-structure.md)
- [Development Setup Standards](/home/phil/Projects/starpunk/docs/standards/development-setup.md)
- [ADR-002: Flask Extensions](/home/phil/Projects/starpunk/docs/decisions/ADR-002-flask-extensions.md)
- [ADR-006: Python Virtual Environment](/home/phil/Projects/starpunk/docs/decisions/ADR-006-python-virtual-environment-uv.md)
- [Project Structure Design](project-structure.md)
- [Development Setup Standards](../../standards/development-setup.md)
- [ADR-002: Flask Extensions](../../decisions/ADR-002-flask-extensions.md)
- [ADR-006: Python Virtual Environment](../../decisions/ADR-006-python-virtual-environment-uv.md)
- [Python Packaging Guide](https://packaging.python.org/)
- [Flask Configuration Handling](https://flask.palletsprojects.com/en/3.0.x/config/)
@@ -328,7 +328,7 @@ This client_id is not registered (https://starpunk.thesatelliteoflove.com)
- [IANA Well-Known URIs](https://www.iana.org/assignments/well-known-uris/)
### Project
- [ADR-017: OAuth Client ID Metadata Document Implementation](../decisions/ADR-017-oauth-client-metadata-document.md)
- [ADR-017: OAuth Client ID Metadata Document Implementation](../../decisions/ADR-017-oauth-client-metadata-document.md)
- [IndieAuth Fix Summary](indieauth-fix-summary.md)
- [Root Cause Analysis](indieauth-client-discovery-root-cause-analysis.md)
@@ -1365,9 +1365,9 @@ def extract_title(content: str) -> Optional[str]:
## References
- [ADR-004: File-Based Note Storage](/home/phil/Projects/starpunk/docs/decisions/ADR-004-file-based-note-storage.md)
- [Python Coding Standards](/home/phil/Projects/starpunk/docs/standards/python-coding-standards.md)
- [Project Structure](/home/phil/Projects/starpunk/docs/design/project-structure.md)
- [ADR-004: File-Based Note Storage](../../decisions/ADR-004-file-based-note-storage.md)
- [Python Coding Standards](../../standards/python-coding-standards.md)
- [Project Structure](project-structure.md)
- [CommonMark Specification](https://spec.commonmark.org/)
- [RSS 2.0 Specification](https://www.rssboard.org/rss-specification)
- [ISO 8601 Date Format](https://en.wikipedia.org/wiki/ISO_8601)
+4 -4
View File
@@ -1900,10 +1900,10 @@ class Webmention:
## References
- [ADR-004: File-Based Note Storage](/home/phil/Projects/starpunk/docs/decisions/ADR-004-file-based-note-storage.md)
- [Database Schema](/home/phil/Projects/starpunk/starpunk/database.py)
- [Phase 1.1: Core Utilities](/home/phil/Projects/starpunk/docs/design/phase-1.1-core-utilities.md)
- [Python Coding Standards](/home/phil/Projects/starpunk/docs/standards/python-coding-standards.md)
- [ADR-004: File-Based Note Storage](../../decisions/ADR-004-file-based-note-storage.md)
- [Database Schema](../../../starpunk/monitoring/database.py)
- [Phase 1.1: Core Utilities](phase-1.1-core-utilities.md)
- [Python Coding Standards](../../standards/python-coding-standards.md)
- [Python Dataclasses Documentation](https://docs.python.org/3/library/dataclasses.html)
- [Python-Markdown Documentation](https://python-markdown.github.io/)
@@ -2057,14 +2057,14 @@ Phase 2.1 is complete when:
## References
- [ADR-004: File-Based Note Storage](/home/phil/Projects/starpunk/docs/decisions/ADR-004-file-based-note-storage.md)
- [ADR-007: Slug Generation Algorithm](/home/phil/Projects/starpunk/docs/decisions/ADR-007-slug-generation-algorithm.md)
- [Phase 1.1: Core Utilities](/home/phil/Projects/starpunk/docs/design/phase-1.1-core-utilities.md)
- [Phase 1.2: Data Models](/home/phil/Projects/starpunk/docs/design/phase-1.2-data-models.md)
- [Database Schema](/home/phil/Projects/starpunk/starpunk/database.py)
- [Python Coding Standards](/home/phil/Projects/starpunk/docs/standards/python-coding-standards.md)
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [Security Architecture](/home/phil/Projects/starpunk/docs/architecture/security.md)
- [ADR-004: File-Based Note Storage](../../decisions/ADR-004-file-based-note-storage.md)
- [ADR-007: Slug Generation Algorithm](../../decisions/ADR-007-slug-generation-algorithm.md)
- [Phase 1.1: Core Utilities](phase-1.1-core-utilities.md)
- [Phase 1.2: Data Models](phase-1.2-data-models.md)
- [Database Schema](../../../starpunk/monitoring/database.py)
- [Python Coding Standards](../../standards/python-coding-standards.md)
- [Architecture Overview](../../architecture/overview.md)
- Security Architecture (`security.md`, not preserved)
---
@@ -607,10 +607,10 @@ After completing Phase 2.1:
## Help & Resources
- **Full Design Doc**: [phase-2.1-notes-management.md](/home/phil/Projects/starpunk/docs/design/phase-2.1-notes-management.md)
- **Utilities Design**: [phase-1.1-core-utilities.md](/home/phil/Projects/starpunk/docs/design/phase-1.1-core-utilities.md)
- **Models Design**: [phase-1.2-data-models.md](/home/phil/Projects/starpunk/docs/design/phase-1.2-data-models.md)
- **Coding Standards**: [python-coding-standards.md](/home/phil/Projects/starpunk/docs/standards/python-coding-standards.md)
- **Implementation Plan**: [implementation-plan.md](/home/phil/Projects/starpunk/docs/projectplan/v1/implementation-plan.md)
- **Full Design Doc**: [phase-2.1-notes-management.md](phase-2.1-notes-management.md)
- **Utilities Design**: [phase-1.1-core-utilities.md](phase-1.1-core-utilities.md)
- **Models Design**: [phase-1.2-data-models.md](phase-1.2-data-models.md)
- **Coding Standards**: [python-coding-standards.md](../../standards/python-coding-standards.md)
- **Implementation Plan**: [implementation-plan.md](implementation-plan.md)
Remember: "Every line of code must justify its existence. When in doubt, leave it out."
@@ -532,8 +532,8 @@ After Phase 3 completion:
## References
- [ADR-005: IndieLogin Authentication](/home/phil/Projects/starpunk/docs/decisions/ADR-005-indielogin-authentication.md)
- [ADR-010: Authentication Module Design](/home/phil/Projects/starpunk/docs/decisions/ADR-010-authentication-module-design.md)
- [ADR-005: IndieLogin Authentication](../../decisions/ADR-005-indielogin-authentication.md)
- [ADR-010: Authentication Module Design](../../decisions/ADR-010-authentication-module-design.md)
- [IndieAuth Specification](https://www.w3.org/TR/indieauth/)
- [IndieLogin API Documentation](https://indielogin.com/api)
- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)
+6 -6
View File
@@ -1292,12 +1292,12 @@ Deferred features:
## References
### Internal Documentation
- [ADR-003: Frontend Technology](/home/phil/Projects/starpunk/docs/decisions/ADR-003-frontend-technology.md)
- [ADR-005: IndieLogin Authentication](/home/phil/Projects/starpunk/docs/decisions/ADR-005-indielogin-authentication.md)
- [ADR-010: Authentication Module Design](/home/phil/Projects/starpunk/docs/decisions/ADR-010-authentication-module-design.md)
- [ADR-011: Development Authentication Mechanism](/home/phil/Projects/starpunk/docs/decisions/ADR-011-development-authentication-mechanism.md)
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [Phase 3 Report](/home/phil/Projects/starpunk/docs/reports/phase-3-authentication-20251118.md)
- [ADR-003: Frontend Technology](../../decisions/ADR-003-frontend-technology.md)
- [ADR-005: IndieLogin Authentication](../../decisions/ADR-005-indielogin-authentication.md)
- [ADR-010: Authentication Module Design](../../decisions/ADR-010-authentication-module-design.md)
- [ADR-011: Development Authentication Mechanism](../../decisions/ADR-011-development-authentication-mechanism.md)
- [Architecture Overview](../../architecture/overview.md)
- [Phase 3 Report](phase-3-authentication-20251118.md)
### External Standards
- [Microformats2 h-entry](http://microformats.org/wiki/h-entry)
@@ -382,10 +382,10 @@ The codebase is in excellent condition, all prerequisites are met, and comprehen
## Quick Access Links
**Primary Documents**:
- [Full Design Document](/home/phil/Projects/starpunk/docs/designs/phase-5-rss-and-container.md)
- [Quick Reference Guide](/home/phil/Projects/starpunk/docs/designs/phase-5-quick-reference.md)
- [ADR-014: RSS Implementation](/home/phil/Projects/starpunk/docs/decisions/ADR-014-rss-feed-implementation.md)
- [Pre-Implementation Review](/home/phil/Projects/starpunk/docs/reports/phase-5-pre-implementation-review.md)
- [Full Design Document](phase-5-rss-and-container.md)
- [Quick Reference Guide](phase-5-quick-reference.md)
- [ADR-014: RSS Implementation](../../decisions/ADR-014-rss-feed-implementation.md)
- [Pre-Implementation Review](phase-5-pre-implementation-review.md)
**Standards References**:
- [RSS 2.0 Specification](https://www.rssboard.org/rss-specification)
@@ -393,8 +393,8 @@ The codebase is in excellent condition, all prerequisites are met, and comprehen
- [Podman Documentation](https://docs.podman.io/)
**Project Standards**:
- [Versioning Strategy](/home/phil/Projects/starpunk/docs/standards/versioning-strategy.md)
- [Git Branching Strategy](/home/phil/Projects/starpunk/docs/standards/git-branching-strategy.md)
- [Versioning Strategy](../../standards/versioning-strategy.md)
- [Git Branching Strategy](../../standards/git-branching-strategy.md)
---
@@ -421,10 +421,10 @@ Phase 5 complete when:
## Reference Documents
- [Phase 5 Full Design](/home/phil/Projects/starpunk/docs/designs/phase-5-rss-and-container.md)
- [ADR-014: RSS Implementation](/home/phil/Projects/starpunk/docs/decisions/ADR-014-rss-feed-implementation.md)
- [Versioning Strategy](/home/phil/Projects/starpunk/docs/standards/versioning-strategy.md)
- [Git Branching Strategy](/home/phil/Projects/starpunk/docs/standards/git-branching-strategy.md)
- [Phase 5 Full Design](phase-5-rss-and-container.md)
- [ADR-014: RSS Implementation](../../decisions/ADR-014-rss-feed-implementation.md)
- [Versioning Strategy](../../standards/versioning-strategy.md)
- [Git Branching Strategy](../../standards/git-branching-strategy.md)
---
@@ -1236,10 +1236,10 @@ Deferred features:
## References
### Internal Documentation
- [Phase 4: Web Interface](/home/phil/Projects/starpunk/docs/design/phase-4-web-interface.md)
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [ADR-002: Flask Extensions](/home/phil/Projects/starpunk/docs/decisions/ADR-002-flask-extensions.md)
- [Versioning Strategy](/home/phil/Projects/starpunk/docs/standards/versioning-strategy.md)
- [Phase 4: Web Interface](phase-4-web-interface.md)
- [Architecture Overview](../../architecture/overview.md)
- [ADR-002: Flask Extensions](../../decisions/ADR-002-flask-extensions.md)
- [Versioning Strategy](../../standards/versioning-strategy.md)
### External Standards
- [RSS 2.0 Specification](https://www.rssboard.org/rss-specification)
+4 -4
View File
@@ -337,7 +337,7 @@ tests/
**Purpose**: Architecture, decisions, designs, and standards.
**Organization**: See [Documentation Organization Standard](/home/phil/Projects/starpunk/docs/standards/documentation-organization.md)
**Organization**: See [Documentation Organization Standard](../../standards/documentation-organization.md)
```
docs/
@@ -790,6 +790,6 @@ After creating project structure, verify:
- [Flask Project Layout](https://flask.palletsprojects.com/en/3.0.x/tutorial/layout/)
- [Pytest Good Practices](https://docs.pytest.org/en/stable/goodpractices.html)
- [PEP 8 Package Layout](https://peps.python.org/pep-0008/)
- [ADR-004: File-Based Note Storage](/home/phil/Projects/starpunk/docs/decisions/ADR-004-file-based-note-storage.md)
- [ADR-006: Python Virtual Environment](/home/phil/Projects/starpunk/docs/decisions/ADR-006-python-virtual-environment-uv.md)
- [Documentation Organization Standard](/home/phil/Projects/starpunk/docs/standards/documentation-organization.md)
- [ADR-004: File-Based Note Storage](../../decisions/ADR-004-file-based-note-storage.md)
- [ADR-006: Python Virtual Environment](../../decisions/ADR-006-python-virtual-environment-uv.md)
- [Documentation Organization Standard](../../standards/documentation-organization.md)
+2 -2
View File
@@ -318,8 +318,8 @@ Quick lookup for architectural decisions:
### Documentation
- [Full Implementation Plan](implementation-plan.md)
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [Technology Stack](/home/phil/Projects/starpunk/docs/architecture/technology-stack.md)
- [Architecture Overview](../../architecture/overview.md)
- [Technology Stack](../../architecture/technology-stack.md)
### External Specs
- [Micropub Spec](https://micropub.spec.indieweb.org/)
+10 -10
View File
@@ -200,18 +200,18 @@ All validators must pass before V1 release.
## Reference Documentation
### Project Documentation
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [Technology Stack](/home/phil/Projects/starpunk/docs/architecture/technology-stack.md)
- [Project Structure](/home/phil/Projects/starpunk/docs/design/project-structure.md)
- [Python Coding Standards](/home/phil/Projects/starpunk/docs/standards/python-coding-standards.md)
- [Architecture Overview](../../architecture/overview.md)
- [Technology Stack](../../architecture/technology-stack.md)
- [Project Structure](project-structure.md)
- [Python Coding Standards](../../standards/python-coding-standards.md)
### Architecture Decision Records (ADRs)
- [ADR-001: Python Web Framework](/home/phil/Projects/starpunk/docs/decisions/ADR-001-python-web-framework.md)
- [ADR-002: Flask Extensions](/home/phil/Projects/starpunk/docs/decisions/ADR-002-flask-extensions.md)
- [ADR-003: Frontend Technology](/home/phil/Projects/starpunk/docs/decisions/ADR-003-frontend-technology.md)
- [ADR-004: File-Based Storage](/home/phil/Projects/starpunk/docs/decisions/ADR-004-file-based-note-storage.md)
- [ADR-005: IndieLogin Authentication](/home/phil/Projects/starpunk/docs/decisions/ADR-005-indielogin-authentication.md)
- [ADR-006: Python Virtual Environment](/home/phil/Projects/starpunk/docs/decisions/ADR-006-python-virtual-environment-uv.md)
- [ADR-001: Python Web Framework](../../decisions/ADR-001-python-web-framework.md)
- [ADR-002: Flask Extensions](../../decisions/ADR-002-flask-extensions.md)
- [ADR-003: Frontend Technology](../../decisions/ADR-003-frontend-technology.md)
- [ADR-004: File-Based Storage](../../decisions/ADR-004-file-based-note-storage.md)
- [ADR-005: IndieLogin Authentication](../../decisions/ADR-005-indielogin-authentication.md)
- [ADR-006: Python Virtual Environment](../../decisions/ADR-006-python-virtual-environment-uv.md)
### External Standards
- [Micropub Specification](https://micropub.spec.indieweb.org/)
+4 -4
View File
@@ -6,8 +6,8 @@ This document tracks features that were considered for StarPunk V1.0 but have be
**Status**: Planning / Future Consideration
**Related Documents**:
- [V1.0 Implementation Plan](/home/phil/Projects/starpunk/docs/projectplan/v1/implementation-plan.md)
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [V1.0 Implementation Plan](../v1.0.0/implementation-plan.md)
- [Architecture Overview](../../architecture/overview.md)
## Feature Categories
@@ -424,8 +424,8 @@ When planning V1.1, features should be evaluated using:
## References
- [V1.0 Implementation Plan](/home/phil/Projects/starpunk/docs/projectplan/v1/implementation-plan.md)
- [Architecture Overview](/home/phil/Projects/starpunk/docs/architecture/overview.md)
- [V1.0 Implementation Plan](../v1.0.0/implementation-plan.md)
- [Architecture Overview](../../architecture/overview.md)
- [IndieWeb Principles](https://indieweb.org/principles)
- [Micropub Specification](https://www.w3.org/TR/micropub/)
- [Webmention Specification](https://www.w3.org/TR/webmention/)
+4 -4
View File
@@ -208,10 +208,10 @@ Before releasing v1.1.0:
## References
- [ADR-031: Database Migration System Redesign](/home/phil/Projects/starpunk/docs/decisions/ADR-031-database-migration-system-redesign.md)
- [ADR-032: Initial Schema SQL Implementation](/home/phil/Projects/starpunk/docs/decisions/ADR-032-initial-schema-sql-implementation.md)
- [v1.1 Potential Features](/home/phil/Projects/starpunk/docs/projectplan/v1.1/potential-features.md)
- [Migration Implementation Reports](/home/phil/Projects/starpunk/docs/reports/)
- [ADR-031: Database Migration System Redesign](../../decisions/ADR-031-database-migration-system-redesign.md)
- [ADR-032: Initial Schema SQL Implementation](../../decisions/ADR-032-initial-schema-sql-implementation.md)
- [v1.1 Potential Features](potential-features.md)
- Migration Implementation Reports (`reports`, not preserved)
---
@@ -368,11 +368,11 @@ Benchmarks
## Documentation References
- [Configuration System](/home/phil/Projects/starpunk/docs/decisions/ADR-052-configuration-system-architecture.md)
- [Performance Monitoring](/home/phil/Projects/starpunk/docs/decisions/ADR-053-performance-monitoring-strategy.md)
- [Structured Logging](/home/phil/Projects/starpunk/docs/decisions/ADR-054-structured-logging-architecture.md)
- [Error Handling](/home/phil/Projects/starpunk/docs/decisions/ADR-055-error-handling-philosophy.md)
- [Implementation Guide](/home/phil/Projects/starpunk/docs/design/v1.1.1/implementation-guide.md)
- [Configuration System](../../decisions/ADR-052-configuration-system-architecture.md)
- [Performance Monitoring](../../decisions/ADR-053-performance-monitoring-strategy.md)
- [Structured Logging](../../decisions/ADR-054-structured-logging-architecture.md)
- [Error Handling](../../decisions/ADR-055-error-handling-philosophy.md)
- Implementation Guide (`implementation-guide.md`, not preserved)
---
@@ -1652,7 +1652,7 @@ This pattern is used in:
- [W3C Micropub Specification](https://www.w3.org/TR/micropub/)
- [Media RSS Specification](https://www.rssboard.org/media-rss)
- [JSON Feed 1.1 Specification](https://jsonfeed.org/version/1.1)
- [ADR-057: Media Attachment Model](/home/phil/Projects/starpunk/docs/decisions/ADR-057-media-attachment-model.md)
- [ADR-058: Image Optimization Strategy](/home/phil/Projects/starpunk/docs/decisions/ADR-058-image-optimization-strategy.md)
- [ADR-059: Full Feed Media Standardization](/home/phil/Projects/starpunk/docs/decisions/ADR-059-full-feed-media-standardization.md)
- [v1.4.0 Release Definition](/home/phil/Projects/starpunk/docs/projectplan/v1.4.0/RELEASE.md)
- [ADR-057: Media Attachment Model](../../decisions/ADR-057-media-attachment-model.md)
- [ADR-058: Image Optimization Strategy](../../decisions/ADR-058-image-optimization-strategy.md)
- [ADR-059: Full Feed Media Standardization](../../decisions/ADR-059-full-feed-media-standardization.md)
- [v1.4.0 Release Definition](../../projectplan/v1.4.0/RELEASE.md)
+99
View File
@@ -0,0 +1,99 @@
# v1.6.0 Design: Webmention API Contract
> Reconstructed on 2026-11-03 from the implementation; the original v1.6.0 document was lost. Later changes: v2.6.8–v2.7.2 (see CHANGELOG).
> This describes the code as of v2.10.1 (`starpunk/routes/webmention.py`, `starpunk/webmention_processor.py`, `starpunk/__init__.py`).
Related: ADR-063, [background-worker.md](background-worker.md),
[rate-limiting.md](rate-limiting.md), W3C Webmention (https://www.w3.org/TR/webmention/).
## Endpoint discovery (what we advertise)
- Every `text/html` response gets `Link: </webmention>; rel="webmention"`
when `WEBMENTION_ENABLED` (default true). It is added alongside other
`Link` headers (v2.7.0; it used to replace them, e.g. the WebSub links).
- The endpoint URL is relative to the site root.
## `POST /webmention` (receiving)
Blueprint `webmention`, no authentication.
### Request
- `application/x-www-form-urlencoded` (spec) with `source` and `target`.
- `application/json` with the same keys is accepted as an extension.
### Processing order
1. **Rate limit** (`before_request`, POST only): see
[rate-limiting.md](rate-limiting.md). 429 if exceeded.
2. `source` and `target` present.
3. Both are http(s) URLs with a host, at most 2,048 characters.
4. `source != target`.
5. Target host and effective port equal `SITE_URL`'s (host compared
case-insensitively, default ports filled in; v2.7.0).
6. The fragment is removed from `target` (spec 3.2.1), so `#a` and `#b` are
one mention.
7. Target must be a published note: path `/note/<slug>` resolving to a
published note. Anything else (home page, tag pages, drafts, unknown
slugs) is refused (v2.7.0; before, such mentions were stored but never
shown).
8. UPSERT into `webmentions` on `(source_url, target_url)`: a new row is
`pending`/`pending`; an existing row is set back to
`validation_status = 'pending'` (an update or removal, spec 3.2.4),
keeping its moderation status.
All fetching happens later in the worker (spec 3.2: asynchronous
verification).
### Responses (JSON)
| Status | Body | When |
|---|---|---|
| 202 | `{"status": "accepted", "message": "Webmention queued for verification"}` | Stored |
| 400 | `{"error": "invalid_request", "error_description": "Missing required parameter: source"}` (or `target`) | Missing parameter |
| 400 | `invalid_request` / "Source must be a valid URL", "Target must be a valid URL" | Bad URL |
| 400 | `invalid_request` / "Source and target must be different" | Same URL |
| 400 | `invalid_target` / "Target URL is not on this site" | Other host |
| 400 | `invalid_target` / "Target URL does not accept webmentions" | Not a published note |
| 429 | `rate_limit_exceeded` with `Retry-After` | Rate limited |
| 500 | `server_error` / "Failed to queue webmention" | Database error |
## `GET /webmention`
Returns `{"name": "Webmention endpoint", "spec": "https://www.w3.org/TR/webmention/"}`.
Not rate limited.
## Deleted targets
A soft-deleted note's page answers **410 Gone** ("This post has been
deleted", v2.7.0), so senders can tell the post is gone. New webmentions to
it are refused (step 7).
## Content sanitisation (stored snippets)
`webmention_processor.sanitize_content()` uses `nh3`:
- Allowed tags: `p, br, strong, em, b, i, a, code, pre, blockquote`.
- Allowed attributes: `a[href]`; nh3 adds `rel="nofollow noopener"` to links
(the original contract listed `a[href, rel]`; `rel` is set by nh3 rather
than passed through).
- Snippets are cut to ~500 characters and sanitised again so a cut never
leaves a tag open (v2.7.0).
- Author URL and photo are stored only if http(s) (v2.6.9); everything is
rendered through Jinja autoescaping except the sanitised snippet.
## Extracted fields
`process_webmention()` returns: `mention_type` (`reply`, `like`, `repost`,
`bookmark`, `mention`), `author_name`, `author_url`, `author_photo`,
`content_snippet`, `source_post_url`, `source_uid`, `source_published`
(RFC 3339 UTC). See [background-worker.md](background-worker.md) for how
each is derived and [database-schema.md](database-schema.md) for storage.
## Sending (our requests to others)
- Endpoint discovery and POST as in [background-worker.md](background-worker.md).
- Body: `source=<note permalink>&target=<url>`, form-encoded.
- `User-Agent: StarPunk/<version> Webmention (+<SITE_URL>)`.
- Any 2xx is success; redirects from the endpoint are not followed and
count as failure (v2.7.0).
+196
View File
@@ -0,0 +1,196 @@
# v1.6.0 Design: Webmention Background Worker
> Reconstructed on 2026-11-03 from the implementation; the original v1.6.0 document was lost. Later changes: v2.6.8–v2.7.2 (see CHANGELOG).
> Also affected by v2.8.0 (source details, authorship, own-crosspost filter) and v2.10.1 (hard time limit on fetches). This describes the code as of v2.10.1.
Related: ADR-063 (Webmention implementation), [api-contract.md](api-contract.md),
[database-schema.md](database-schema.md), [rate-limiting.md](rate-limiting.md),
[display-moderation.md](display-moderation.md).
## Purpose
Webmention work that involves fetching remote URLs never happens inside a
request. `POST /webmention` only stores a row; a background thread validates
incoming webmentions and sends outgoing ones.
## Modules
| Module | Role |
|---|---|
| `starpunk/webmention_worker.py` | `WebmentionWorker` thread: queue loop, validation bookkeeping, endpoint discovery, sending, retries |
| `starpunk/webmention_processor.py` | Fetch source, verify link, parse mf2, extract type/author/content |
| `starpunk/webmention_sender.py` | Extract links from a note and queue outgoing webmentions |
| `starpunk/webmention_ssrf.py` | `safe_get` / `safe_post`: SSRF-checked, address-pinned HTTP |
| `starpunk/reply_context.py` | Fetch context for reply/like/repost targets (synchronous, see below) |
## Thread lifecycle
- Started in `create_app()` (`starpunk/__init__.py`) when
`WEBMENTION_WORKER_ENABLED` is true and `TESTING` is false. Stored as
`app.webmention_worker`. Daemon thread named `webmention-worker`, following
the `MemoryMonitor` pattern (a `threading.Event` for stop).
- There is no teardown hook: until v2.6.8 a `teardown_appcontext` handler
stopped the worker after the first request.
- Each poll runs inside `app.app_context()` (v2.6.8), because the SSRF checks
read `current_app.config` (`DEV_MODE`).
- `stop()` sets the event; the loop exits after the current pass.
### One worker across processes (v2.6.9)
Every gunicorn process starts a worker. Only the one holding an exclusive,
non-blocking `fcntl.flock` on `<db dir>/webmention-worker.lock` processes the
queues; the others poll the lock every `poll_interval`. The OS releases the
lock when the holder dies, so another process takes over.
### Orphan cleanup
When a worker first acquires the lock it resets `webmention_queue` rows stuck
in `sending` for more than 5 minutes back to `pending` (a previous holder
crashed mid-send).
## Main loop
```
while not stopped:
if not lock acquired: wait poll_interval; continue
with app.app_context():
n = process pending validations (incoming, oldest received first, batch_size)
n += process pending sends (outgoing, due rows, oldest first, batch_size)
if n == 0: wait poll_interval
on unexpected error: log, wait error_backoff
```
| Setting | Default | Meaning |
|---|---|---|
| `WEBMENTION_WORKER_ENABLED` | true | Start the thread |
| `WEBMENTION_POLL_INTERVAL` | 10 s | Sleep when idle / lock not held |
| `WEBMENTION_ERROR_BACKOFF` | 60 s | Sleep after a loop error |
| `WEBMENTION_BATCH_SIZE` | 5 | Rows per queue per pass |
| `WEBMENTION_AUTO_APPROVE` | true | New valid mentions start `approved` (else `pending`) |
`get_stats()` (running, last_processed, pending_validations, pending_sends)
is included in the basic (unauthenticated) `/health` response. Note it reports
the worker of whichever process answers, which may not hold the lock.
## Incoming: validation
For each `webmentions` row with `validation_status = 'pending'`:
1. `process_webmention(source, target, SITE_URL)`:
- `fetch_source`: `safe_get` with an `Accept` header preferring HTML,
following redirects (each hop checked). 4xx, SSRF block or >1 MB is a
`ValidationError`; network error, timeout, 3xx without location or 5xx is
a `TransientError`.
- `verify_link_presence` (spec 3.2.2): exact target match, fragments
ignored. HTML: any link-bearing attribute after resolving relative URLs
against the final URL; JSON: any string value; other `text/*`:
substring. Fails with "Source does not link to target".
- HTML only: `mf2py.parse`, then `mf2_utils.responding_entry` picks the
h-entry that responds to the target; `response_type` gives `reply`,
`like`, `repost`, `bookmark` or `mention`; `entry_author` applies the
authorship algorithm without extra fetches; `extract_content` takes
`e-content` (else `p-summary`) as a sanitized snippet of at most ~500
characters; `extract_source_details` gives the entry's `u-url`, `u-uid`
and `dt-published` (v2.8.0).
- Author URL and photo are kept only if they are http(s) URLs (v2.6.9);
the author URL falls back to the source, the name to its host.
2. If the source is one of the target note's own `u-syndication` copies
(`syndications.remote_url`, compared normalised), it is rejected (v2.8.0).
3. Success: the row becomes `valid` with the extracted fields. Moderation:
a first-time valid mention gets `approved`/`pending` per
`WEBMENTION_AUTO_APPROVE`; a mention that was valid before keeps its
moderation status, and `hidden`/`deleted` are never overwritten (v2.7.0).
4. Failure (`_mark_validation_failed`):
- Transient error and the mention was valid before (`validated_at` set,
no `validation_error`): restored to `valid` with its old data; nothing
disappears because the source was briefly down (v2.7.0).
- "does not link", "returned 4xx" or own syndicated copy: `invalid`.
- Anything else: `error`. Either way the error text is stored and the
mention is no longer displayed (spec 3.2.4 for 410/no link).
### Displayed responses are an update (v2.7.2, spec 3.1.4)
`_validate_webmention` compares `_display_state()` (what the note shows for
this mention: type, author, photo, snippet; `None` if hidden) before and
after validation. If it changed, `webmention_sender.note_responses_changed`
re-queues the target note's previously sent webmentions. A re-validation
that changes nothing sends nothing, so two sites doing the same don't
ping-pong.
## Outgoing: queueing
`webmention_sender.queue_webmentions_for_note()` is called by `notes.py`
after the note is committed, best-effort (failures are logged, never fail the
note):
- **Create** (published only): the response target first (`in_reply_to`,
else `like_of`, `repost_of`, `bookmark_of`), then `<a href>` links from the
rendered HTML in document order; links inside `<pre>`/`<code>` are skipped
(including a top-level `<pre>`, v2.7.0); only absolute http(s) URLs;
de-duplicated; at most 10 ("architect's answer to Q1").
- **Update** ("Phase 6" answers): queued when a note is published or
unpublished, or a published note's content or reply target changes. The
current targets (capped at 10) plus every target this note was queued for
before and every link the edit removed (not capped), so receivers can
update or remove the mention (v2.7.0).
- **Delete / undelete** (spec 3.1.5): `requeue_previous_webmentions` resets
all of the note's queue rows to `pending`; on hard delete with
`detach=True` the `source_note_id` is cleared so the rows survive the
cascade.
- Rows are UPSERTed on `(source_url, target_url)`; re-queueing resets
status, retry count, error and `endpoint_url`.
## Outgoing: sending
For each due `webmention_queue` row (`pending`, `next_retry_at` null or
past):
1. Mark `sending` with `started_at`.
2. Discover the endpoint (spec 3.1.2), every time (the v1.6.0 1–24 h
discovery cache was removed in v2.7.0): `safe_get` the target; 5xx raises
(retry); 4xx, blocked or too large means no endpoint. The first `Link`
header with `rel` containing the token `webmention` (case-insensitive,
several headers and multi-value rels handled) wins, then the first
`<link>`/`<a>` with that rel and an `href`, in document order. Relative
URLs resolve against the final URL; an empty `href` is the target itself.
No endpoint: status `no_endpoint` (permanent).
3. POST `source`/`target` form-encoded with `safe_post` (no redirects).
2xx: `sent`. 429 or 5xx: retry. Other (3xx, 4xx): `failed`. Network
error: retry. SSRF block: `failed`.
### Retries ("architect's answer to Q5")
`retry_count` is incremented after the failed attempt; at 4 the row is
`failed`. Delays after attempt 1, 2, 3: 1 h, 6 h, 24 h.
## Outbound safety (`webmention_ssrf.py`)
Used for every fetch and send (and since v2.9.0/v2.10.0 by Micropub photo
fetches and the WebSub hub):
- http(s) only; every address the host resolves to must be public (blocks
private, loopback, link-local, multicast, reserved, unspecified, CGNAT,
`0.0.0.0/8`, IPv4-mapped forms). `DEV_MODE` allows `localhost`.
- The connection goes to the checked address; the hostname is sent in
`Host` and TLS SNI so certificates are still verified (v2.7.2). IPv4
preferred.
- Redirects followed by hand, each hop checked, at most 10; 1 MB body
limit; 10 s total time limit enforced by a watchdog that closes the client
(v2.10.1).
- User-Agent `StarPunk/<version> Webmention (+SITE_URL)`.
## Reply context
`reply_context.fetch_reply_context()` is not run by the worker: `notes.py`
calls it synchronously after creating a reply/like/repost/bookmark (or when
an update sets `in_reply_to`). See [database-schema.md](database-schema.md).
## Known limits
- A DNS failure while fetching a source (`ResolutionError`, a `ValueError`)
is treated as a blocked request, i.e. a permanent `error`, not a transient
one; the WebSub worker retries DNS failures, the webmention worker does not.
- Between receipt of a re-sent webmention and its re-validation the row is
`pending` and not shown on the note (`get_webmentions_for_note` requires
`valid`), although `_display_state` counts it as shown.
- The worker opens its own `sqlite3` connections (not the request pool).
+102
View File
@@ -0,0 +1,102 @@
# v1.6.0 Design: Webmention Database Schema
> Reconstructed on 2026-11-03 from the implementation; the original v1.6.0 document was lost. Later changes: v2.6.8–v2.7.2 (see CHANGELOG).
> Schema from `migrations/010_add_webmentions.sql` plus `014_webmention_source_details.sql` (v2.8.0). The original document's story numbering is only known for Story 2.4 (reply context), cited in `starpunk/reply_context.py`.
Related: ADR-063, [background-worker.md](background-worker.md),
[display-moderation.md](display-moderation.md).
## Migration 010 (v1.6.0)
### `notes.in_reply_to TEXT`
URL the note replies to. Later migrations added `like_of`, `repost_of`
(013, v2.5.0) and `bookmark_of` (015, v2.9.0); `Note.reacts_to` is the first
of these that is set.
### `webmentions` (received)
| Column | Notes |
|---|---|
| `id` | PK |
| `source_url`, `target_url` | NOT NULL; `UNIQUE(source_url, target_url)`; target stored without fragment (v2.7.0) |
| `target_note_id` | FK `notes(id)` ON DELETE SET NULL; always set for new rows since v2.7.0 (only notes accept webmentions) |
| `mention_type` | `reply`, `like`, `repost`, `bookmark`, `mention` (default `mention`) |
| `author_name`, `author_url`, `author_photo` | From the authorship algorithm; URLs http(s) only |
| `content_snippet` | Sanitised HTML, ~500 chars max |
| `validation_status` | `pending` (default), `valid`, `invalid`, `error` |
| `moderation_status` | `pending` (default), `approved`, `hidden`, `deleted` |
| `validation_error` | Last error text, NULL when valid |
| `validated_at` | Last validation attempt; with `validation_error IS NULL` it means "was valid before" |
| `received_at`, `updated_at` | Timestamps |
| `source_post_url`, `source_published` | Migration 014 (v2.8.0): the source h-entry's `u-url` and `dt-published` (UTC) |
Indexes: `target_note_id`, `moderation_status`, `validation_status`,
`received_at DESC`.
Notes:
- `moderation_status = 'deleted'` is allowed by the CHECK but unused: admin
delete removes the row (`DELETE`). Validation never overwrites `hidden` or
`deleted`.
- A row is shown on a note only if `valid` and `approved`.
### `webmention_queue` (sent)
| Column | Notes |
|---|---|
| `source_url` | Our note's permalink (built from `SITE_URL`) |
| `target_url` | `UNIQUE(source_url, target_url)` |
| `source_note_id` | FK `notes(id)` ON DELETE CASCADE; cleared (`detach`) before a hard delete so the re-sent rows survive |
| `endpoint_url` | Endpoint found by the current attempt; reset on every re-queue (no cross-attempt cache since v2.7.0) |
| `status` | `pending`, `sending`, `sent`, `failed`, `no_endpoint` |
| `retry_count`, `next_retry_at`, `last_error` | Retry schedule 1 h / 6 h / 24 h, failed at 4 |
| `created_at`, `started_at`, `sent_at` | `started_at` drives orphan cleanup (>5 min in `sending`) |
Indexes: `status`, `next_retry_at`, `source_note_id`.
### `reply_contexts` (cache of what a note responds to)
| Column | Notes |
|---|---|
| `url` | UNIQUE; the `in_reply_to` / `like_of` / `repost_of` / `bookmark_of` URL |
| `title` | h-entry `p-name`, max 200 chars |
| `content_snippet` | Via `extract_content` |
| `published_at` | h-entry `dt-published` parsed with dateutil |
| `author_name`, `author_url`, `author_photo` | Via `extract_author` |
| `site_name` | First top-level h-card's name |
| `fetch_status` | `pending`, `fetched`, `error` |
| `fetch_error`, `fetched_at`, `created_at` | |
## Story 2.4: reply context
`starpunk/reply_context.py`, called synchronously from `notes.create_note`
(for any response URL) and `notes.update_note` (when `in_reply_to` is set),
best-effort:
1. If a row for the URL exists, return it (never refreshed).
2. Fetch with `webmention_processor.fetch_source` (SSRF-safe).
3. Non-HTML: store an `error` row ("Not HTML content").
4. Parse mf2; take the first top-level h-entry's name, content and
published time, and the author; store as `fetched` (`INSERT OR REPLACE`).
5. Any failure stores an `error` row; note creation is never affected.
Read side: `webmention_queries.get_reply_context(url)` for the note page
(`in_reply_to` h-cite), `routes.public.attach_contexts` for likes/reposts
(title and author lines, v2.5.0) and `syndication._target_title` for
crosspost text.
### Known defect (found during reconstruction)
Since v2.7.0, `fetch_source()` returns `(content, content_type, final_url)`,
but `fetch_reply_context()` still unpacks two values. The resulting
`ValueError` is caught by the generic handler, so every new URL gets an
`error` row ("Unexpected error: too many values to unpack") and no context.
Rows fetched before v2.7.0 are unaffected (they are never refreshed).
Tests replace `fetch_reply_context` with a stub, so this is not covered.
## Later schema touching webmentions
- 012 (v2.1.0) `syndications`: used to reject a note's own crossposts as
sources (v2.8.0).
- 013 / 015: response URL columns on `notes`, which become the first
outgoing webmention target.
+89
View File
@@ -0,0 +1,89 @@
# v1.6.0 Design: Webmention Display and Moderation
> Reconstructed on 2026-11-03 from the implementation; the original v1.6.0 document was lost. Later changes: v2.6.8–v2.7.2 (see CHANGELOG).
> Display markup was reworked in v2.8.0 (microformats2 review). Describes `starpunk/webmention_queries.py`, `starpunk/routes/admin.py`, `starpunk/routes/public.py`, `templates/note.html` and `templates/partials/responses.html` as of v2.10.1.
Related: ADR-063, [background-worker.md](background-worker.md),
[database-schema.md](database-schema.md).
## States
A received webmention has two independent states:
- `validation_status` (set by the worker): `pending`, `valid`, `invalid`, `error`.
- `moderation_status` (set by the worker on first validation, then by the
admin): `pending`, `approved`, `hidden` (`deleted` exists in the schema but
deleting removes the row).
A webmention is **shown** only when `valid` AND `approved`.
`WEBMENTION_AUTO_APPROVE=true` (default) makes a first-time valid mention
`approved`; with `false` it waits as `pending` for the admin. Re-validation
of a previously valid mention keeps the admin's decision (v2.7.0).
## Public display
`get_webmentions_for_note(note_id)` returns shown webmentions for a note,
ordered by type (reply, like, repost, bookmark, mention) then `received_at`
ascending, grouped into `replies`, `likes`, `reposts`, `bookmarks`,
`mentions`. `received_at` and `source_published` are parsed to datetimes
(unparseable `source_published` becomes `None`).
`routes/public.note` loads them only when `WEBMENTION_ENABLED`; errors are
logged and the page renders without them. The "Webmentions" section is
rendered only if at least one group is non-empty, with a heading and count
per group.
Markup (v2.8.0, `partials/responses.html`), each response an `h-cite` in a
property of the note's `h-entry`:
| Group | Property | Presentation |
|---|---|---|
| Replies | `u-comment h-cite` | Author card (name, link, 48px photo), sanitised `e-content` snippet, date link |
| Likes, reposts, bookmarks | `u-like` / `u-repost` / `u-bookmark` `h-cite` | Facepile of 32px photos (or a coloured initial); faces after the 8th are `hidden` on screen but stay in the markup for parsers, with "+N others" |
| Mentions | `u-mention h-cite` | Small author card, snippet with tags stripped and truncated to 200 chars |
- The response's link is the source's `u-url` (`source_post_url`) if given,
else the webmention source; its date is `source_published`, else
`received_at`, in UTC with `Z`.
- The author `h-card` puts `u-url` on an inner link, so it isn't read as the
`h-cite`'s URL.
- Snippets are stored sanitised (see [api-contract.md](api-contract.md)) and
output with `|safe`; all other fields are autoescaped.
## Admin moderation
All routes `@require_auth`, under `/admin`:
| Route | Purpose |
|---|---|
| `GET /admin/webmentions?status=&page=` | List, newest received first, 25 per page; filter tabs All / Pending / Approved / Hidden (by `moderation_status`) |
| `GET /admin/webmentions/<id>` | Detail: source, target (note link), type, author, snippet, validation status and error, timestamps, actions |
| `POST /admin/webmentions/<id>/action` | `action` = `approve` / `hide` / `delete` |
| `POST /admin/webmentions/bulk-action` | Same actions for `ids` (checkboxes) |
The dashboard shows a badge with the number of `pending` (moderation)
webmentions.
Query functions: `list_webmentions`, `get_webmention`, `count_webmentions`,
`update_webmention_status(ids, status)` (only `approved`, `hidden`,
`pending`), `delete_webmentions(ids)` (hard delete).
### Moderation changes re-send webmentions (v2.7.2, spec 3.1.4)
Before an update or delete, `_visibility_changes()` finds the target notes
of valid webmentions whose shown/not-shown state changes. After the commit,
`_notify_responses_changed()` calls
`webmention_sender.note_responses_changed()`, which re-queues every
webmention the (published, undeleted) note sent before. Best effort:
failures are logged.
## Known limits
- The admin list filters and shows only moderation status; validation
status and error appear on the detail page. A mention that never
validated keeps the default `moderation_status = 'pending'`, so it is
listed under Pending and counted in the dashboard badge although there is
nothing to approve.
- A webmention re-sent by its source is `pending` until the worker
re-validates it (seconds), and is not shown during that time.
- Hidden or invalid webmentions are kept indefinitely; there is no pruning.
+84
View File
@@ -0,0 +1,84 @@
# v1.6.0 Design: Webmention Rate Limiting
> Reconstructed on 2026-11-03 from the implementation; the original v1.6.0 document was lost. Later changes: v2.6.8–v2.7.2 (see CHANGELOG).
> The rate limiter itself has not changed since v1.6.0; v2.10.0 reused `RateLimiter` for the WebSub hub. Describes `starpunk/rate_limiter.py` and `starpunk/routes/webmention.py` as of v2.10.1.
Related: ADR-063, [api-contract.md](api-contract.md).
**Note on ADR numbering:** the code cites "ADR-064: Webmention Rate
Limiting". In this repository ADR-064 is the OIDC admin login decision
(v2.0.0); the webmention rate-limiting ADR from v1.6.0 was lost with the
other v1.6.0 documents and its number was reused. This document is the
surviving description of that decision.
## Goal
Stop `POST /webmention` from being used to fill the database or the
validation queue (each accepted webmention costs one outbound fetch).
## Algorithm
`RateLimiter(limit, window_seconds)`: sliding-window log, in memory.
- Per key, a list of request timestamps (`time.time()`), guarded by one
`threading.Lock`.
- `is_allowed(key)`: drop timestamps older than the window; if the count is
`>= limit` refuse (not recorded); otherwise record and allow.
- `get_retry_after(key)`: seconds until the oldest timestamp leaves the
window, clamped to 1..window.
- `cleanup(max_idle_seconds=300)`: drop keys with no recent requests.
- `get_request_count(key)`: current count (tests/logging).
In-memory state was chosen to match the other in-process caches (the
v1.6.0 code cites the worker's endpoint `_discovery_cache`, removed in
v2.7.0); no new table, no Redis.
## Webmention limits
Two module-level limiters, created by `init_rate_limiters(app)` in
`create_app()`:
| Setting | Default | Key |
|---|---|---|
| `WEBMENTION_RATE_LIMIT_ENABLED` | true | Off: both limiters are `None`, everything allowed |
| `WEBMENTION_RATE_LIMIT_IP` | 60 | Client IP |
| `WEBMENTION_RATE_LIMIT_DOMAIN` | 10 | Host (`netloc`) of the `source` URL |
| `WEBMENTION_RATE_LIMIT_WINDOW` | 60 s | Both |
`check_rate_limit(ip, source_domain)` checks the IP first, then the source
domain (if one could be parsed). Only POST is limited, in the webmention
blueprint's `before_request`, before any validation, reading `source` from
the form or JSON body.
Client IP (`get_client_ip`): the first `X-Forwarded-For` entry when
`TRUSTED_PROXY=true`, else `request.remote_addr`. Behind Caddy without
`TRUSTED_PROXY` every client shares the proxy's address (documented in
`.env.example` since v2.10.1).
## Response
```
HTTP/1.1 429
Retry-After: <WEBMENTION_RATE_LIMIT_WINDOW>
{"error": "rate_limit_exceeded",
"error_description": "Too many requests from your IP. Please retry after N seconds."}
```
The description carries the computed wait; the `Retry-After` header carries
the full window.
## Other users
`routes/websub.py` (v2.10.0) has its own `RateLimiter(30, 60)` per client
IP for subscription requests, calling `cleanup()` every 500 requests.
## Known limits
- Counters are per gunicorn process, so the effective limit is up to
limit × processes, and they reset on restart.
- `cleanup_rate_limiters()` exists but nothing calls it, so the webmention
limiters never drop a key (old timestamps are trimmed when the key is
checked again, but the key stays); memory grows slowly with distinct
client IPs and source domains until the process restarts.
- Requests refused by the IP limit are not recorded, and a request refused
by the domain limit has already been counted against the IP.
@@ -0,0 +1,38 @@
# v2.0.1: Absolute URLs from SITE_URL; CI builds with BuildKit
> Reconstructed on 2026-11-03 from the changelog and git history. Commits `b4e6cf3`, `2d0568d`.
## Summary
Behind Caddy the app is reached over plain HTTP, so
`url_for(..., _external=True)` produced `http://` links on the https site:
RSS/OPML `<link>`s and the microformats `u-url`/`u-uid` permalinks that
IndieWeb parsers treat as canonical. Separately, the container workflow
had never succeeded.
## Changes
- `starpunk/utils.py`: new `absolute_url_for(endpoint, **values)` =
`SITE_URL` (trailing slash stripped) + `url_for(endpoint, **values)`.
Registered as a Jinja global in `create_app()`.
- `templates/base.html`, `index.html`, `note.html`, `tag.html`: absolute
URLs use `absolute_url_for()`.
- `starpunk/indieauth.py`, `starpunk/routes/indieauth.py`: the IndieAuth
metadata used its own SITE_URL helper; it now shares `absolute_url_for()`.
- `.gitea/workflows/build-container.yml`: the runner no longer has a Docker
daemon. Build with `docker buildx` against the rootless BuildKit socket
(`unix:///run/buildkit/buildkit/buildkitd.sock`, remote driver) and log in
to `git.thesatelliteoflove.com` (the old workflow logged in to
`gitea:3000`, which did not resolve). Image name is lower-cased.
## Tests
`tests/test_absolute_urls.py`: links in pages and feeds use `SITE_URL`
even when the request arrives over http.
## Notes
- Any new absolute URL must use `absolute_url_for()`, not `_external=True`
(later used for outgoing webmention source URLs, v2.5.0).
- The registry login still used the automatic Actions token, which the
registry refused; fixed in v2.0.2.
@@ -0,0 +1,25 @@
# v2.0.2: CI registry login with REGISTRY_TOKEN
> Reconstructed on 2026-11-03 from the changelog and git history. Commits `011f7cc`, `94e8c67`.
## Summary
Release images still failed to push: the registry refused the automatic
Gitea Actions token (run 107: unauthorized). No application changes.
## Changes
- `.gitea/workflows/build-container.yml`: `docker login` uses the
repository secret `REGISTRY_TOKEN` (a personal access token with only
`write:package`) as `github.repository_owner`, instead of
`GITHUB_TOKEN` / `github.actor`.
- `starpunk/__init__.py`: version 2.0.2.
## Tests
None (CI only). Verified by the release workflow pushing the v2.0.2 image.
## Notes
The `REGISTRY_TOKEN` secret must exist in the repository settings for
releases to publish.
@@ -0,0 +1,52 @@
# v2.1.0: Crossposting to GoToSocial
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `57b02ad`. Design: ADR-065.
## Summary
Published notes are copied to a GoToSocial (or any Mastodon-API) account;
edits, unpublishing and deletes follow. Replaces Echofeed for this target.
Also fixes three `/notes/<slug>` (404) links and a nested form.
## Changes
- `migrations/012_add_syndications.sql`: `syndications` table, one row per
(note, target), `UNIQUE(note_id, target)`: `enabled`, `remote_id`,
`remote_url`, `state` (`pending`/`synced`/`failed`), `version`,
`attempts`, `last_error`, `next_attempt_at`, `claimed_until`. `note_id` has no foreign key so a hard-deleted note's remote post
can still be deleted.
- `starpunk/syndication.py` (new):
- `MastodonClient`: media upload (large variant, caption as alt text),
create/update (`PUT /api/v1/statuses/:id`)/delete status,
`Idempotency-Key` on create.
- `Target`, `get_targets()`, `resolve_targets()`, `select_targets()`;
`note_changed(note_id)` marks a note's rows pending.
- `compose_text()`: note Markdown + permalink + tags as hashtags,
shortened at a word boundary with the link kept.
- `process_due()` / `_claim()` / `_reconcile()` / `_finish()` / `_fail()`:
rows claimed atomically (one sender across gunicorn processes),
`version` keeps edits made during a send, network/5xx/429 retried with
exponential backoff (8 attempts), other 4xx fail at once.
- `SyndicationWorker` thread started in `create_app()` when a target is
configured.
- `starpunk/notes.py`: create/update/delete call `syndication.note_changed`.
- `starpunk/micropub.py`: `mp-syndicate-to` selects targets; `q=syndicate-to`
and `q=config` list them; `Location` header uses the real permalink.
- `starpunk/routes/admin.py`, `templates/admin/new.html`, `edit.html`:
per-target checkboxes (on by default for new notes), status, last error
and a retry button; delete button moved out of the edit form.
- `templates/note.html`: synced copies as `u-syndication` links.
- `starpunk/routes/search.py`: result links `/note/<slug>`.
- Config: `GOTOSOCIAL_URL`, `GOTOSOCIAL_ACCESS_TOKEN` (`.env.example`).
## Tests
`tests/test_syndication.py` (25 tests: composition, target selection,
claim/retry/version handling, delete and edit follow-up, Micropub
`mp-syndicate-to`); path fixes in Micropub and search tests.
## Notes
- Existing notes are never backfilled.
- Echofeed must stop posting to GoToSocial or posts appear twice.
- A remote post deleted by hand is re-created on the next edit.
@@ -0,0 +1,60 @@
# v2.10.0: WebSub with a built-in hub (implementation report)
> Reconstructed on 2026-11-03 from the changelog and git history. Commits `720a1e6` (ADR, proposed), `b520b8b`.
## Design
[ADR-071](../../decisions/ADR-071-websub.md), sections 1–11. This report
covers where it was implemented and how it was verified; it does not repeat
the design.
## Changes
- `starpunk/websub.py` (new): topics (`topic_url`, `tag_topic`,
`canonical_topic`, `topic_for_request`), discovery (`add_discovery_headers`
after-request hook for `Link: rel=hub` / `rel=self`, `template_links` for
`<link>`s in HTML, `embed_hub` for Atom/RSS/JSON Feed), change tracking
(`note_changed`, `queue_topics`, `get_content_version` /
`bump_content_version`), subscription requests
(`accept_subscription_request`), signing (`signature`: HMAC-SHA256),
`stats` for the dashboard.
- `starpunk/websub_worker.py` (new): `WebSubWorker`, one per gunicorn
process with a file lock so one process works the queues (webmention
worker pattern): `verify` (challenge GET), `render_topic` (renders inside
the app), `deliver` (signed POST, retries), `prune` (expired leases).
- `starpunk/routes/websub.py` (new): `POST /websub`, 202 on accept,
plain-text 4xx otherwise, per-IP `RateLimiter(30, 60)`.
- `migrations/016_websub.sql`: `websub_subscriptions`, `websub_intents`,
`websub_deliveries` (one per subscription, or per topic for pings to an
external hub), and `site_state.content_version`.
- `starpunk/notes.py`, `starpunk/micropub.py`: create/update/delete call
`websub.note_changed` (via `_websub_changed`), which bumps the content
version (all processes' feed caches go stale at once) and queues
deliveries.
- `starpunk/webmention_ssrf.py`: `safe_post` takes a raw body and reads
only a capped response; used for verification and delivery.
- `starpunk/feeds/rss.py`: self link `/feed.rss` (was `/feed.xml`).
- `starpunk/__init__.py`: discovery hook, worker start; the memory monitor's
`teardown_appcontext` stop removed (it stopped after the first request).
- `starpunk/routes/admin.py`, `templates/admin/dashboard.html`: subscribers
per topic, failing deliveries.
- Config: `WEBSUB_ENABLED`, `WEBSUB_HUB_URL`, `WEBSUB_MAX_SUBSCRIPTIONS`,
`WEBSUB_MAX_PER_HOST`.
## Tests
`tests/test_websub.py` (23 tests: discovery on every topic and format,
external hub, request validation, private callbacks, per-host limit,
verification success/failure, unsubscribe, re-subscribe, signed delivery,
drafts, tag topics incl. removed tags, delete, 410, retries, expiry, fresh
feed after posting).
## Verification
Deployed to production; the websub.rocks publisher test passed against the
live site.
## Notes
An adversarial review after release found worker, time-limit, lease and
spec 5.1 issues; fixed in v2.10.1 (ADR-071 Amendments).
@@ -0,0 +1,53 @@
# v2.10.1: WebSub hardening (implementation report)
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `b204328`.
## Design
[ADR-071](../../decisions/ADR-071-websub.md), "Amendments (v2.10.1)",
from an adversarial review of v2.10.0 against the W3C Recommendation.
## Changes
- `starpunk/websub_worker.py`: each intent/delivery handled in its own
try block (an error drops a verification or retries a delivery, never
stops the worker); failing subscribers kept until lease end; DNS failures
(`ResolutionError`) and render errors retried; a topic rendering 404/410
sends `hub.mode=denied` and ends its subscriptions; each topic rendered
once per pass; verification replies over 4 KB fail.
- `starpunk/webmention_ssrf.py`: `_Watchdog` closes the client when the
whole exchange exceeds the time limit (10 s), for `safe_get` and
`safe_post`, so webmention fetching benefits too; `ResolutionError`
distinguishes DNS failures.
- `starpunk/websub.py`: spec 5.1 fixes (unreserved percent-decoding,
requested topic echoed, lease/secret ignored on unsubscribe, empty secret
refused); callback validation (printable, ≤2,048 chars, not this site,
port 80/443/≥1024, IDNA host); limits count pending requests per callback
address, at most 200 pending; likes only queue `/likes` and tag pages;
unsubscribe works with an external hub.
- `starpunk/routes/websub.py`: case-insensitive Content-Type check.
- `migrations/017_websub_hardening.sql`: `request_id`, `requested_topic`,
`callback_ip` on intents; `callback_ip` on subscriptions.
- `starpunk/media.py`: `attach_media_to_note` announces the note
(photos are in the first delivery); `starpunk/notes.py`/`micropub.py`
skip the early announcement for notes with photos.
- `starpunk/feeds/cache.py`, `starpunk/routes/public.py`: cache key and
weak ETag from format + notes checksum incl. `content_version` (stable
across processes); `/feed` sends `Vary: Accept`.
- `.env.example`: `TRUSTED_PROXY` and the WebSub settings documented.
## Tests
`tests/test_websub_hardening.py` (24 tests, one or more per amendment:
oversized challenge, bad and IDN callbacks, per-item errors, photo notes,
slow callback cut off, lease kept, DNS/render retries, denial for gone
topics, pending-request limits, spec 5.1 cases, request-id race, render
once per pass, likes, stable ETag, `Vary: Accept`).
## Verification
Deployed to production; the websub.rocks publisher test passed again.
## Notes
Per-client rate limits only work behind Caddy with `TRUSTED_PROXY=true`.
@@ -0,0 +1,40 @@
# v2.2.0: Crossposting to Bluesky
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `e92c27a`. Design: ADR-066.
## Summary
A second syndication target, `bluesky`, behind the ADR-065 reconcile loop.
## Changes
- `starpunk/syndication.py`:
- `Post`: the note as the clients see it (text, permalink, tags, media).
Clients share `create` / `update` / `delete` / `can_edit`; the Mastodon
client was adapted (`_prepare`).
- `BlueskyClient`: `createSession` with an app password against
`BLUESKY_SERVICE`, writes to the PDS from the DID document, token
refresh with fallback to a new session; `upload_blob`; `_record`
builds the post with facets, images (max 4, alt text, aspect ratio) or a
link card; `_find_existing` checks recent posts for one linking to the
note before a retried create (no doubles).
- `plain_text()` (Markdown rendered and stripped), `bluesky_facets()`
(link and hashtag facets in UTF-8 byte offsets), `compose_text()` with a
hashtag budget (at most a third), 300-character limit; `_fit_image()`
re-encodes images over 1 MB as JPEG.
- `targets_configured()` so the worker starts for either target.
- Config: `BLUESKY_HANDLE`, `BLUESKY_APP_PASSWORD`, `BLUESKY_SERVICE`
(default `https://bsky.social`).
## Tests
`tests/test_syndication_bluesky.py` (14 tests: facets and byte offsets,
truncation, image shrinking, session refresh, duplicate check, delete).
## Notes
- Edits don't follow (`can_edit` false): rewriting the record would break
likes and replies. Unpublish, untick and delete remove the post.
- A post deleted by hand on Bluesky is not re-created.
- `__version_info__` was left at `(2, 1, 0)` from this release until v2.6.0
(`__version__` was correct).
@@ -0,0 +1,39 @@
# v2.3.0: Public page restyle
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `cc09098`.
## Summary
A styling pass over the public pages, plus three display bugs: note
metadata styled as the page footer, previews cut through HTML at 300
characters, and bare URLs not linked.
## Changes
- `templates/base.html`: compact header with `SITE_NAME`, nav, search;
page titles from the note text and `SITE_NAME`.
- `templates/partials/note_preview.html` (new): shared by `index.html` and
`tag.html`; short notes in full, titled notes show a summary and
"Read more". One-line metadata: date · #tags · Also on ….
- `templates/note.html`: same metadata line; author h-card kept for
parsers but visually hidden.
- `static/css/style.css`: serif reading font, dark mode via
`prefers-color-scheme`, footer pinned to the bottom, metadata no longer
inherits `footer` styles.
- `starpunk/markdown_ext.py` (new): `BareUrlExtension` links bare
`http(s)://` URLs (trailing punctuation excluded) and un-nests a link
inside a link.
- `starpunk/models.py`: `BareUrlExtension()` added to
`MARKDOWN_EXTENSIONS` (`extra`, `codehilite`, `nl2br`).
- "Log in" moved from the header to the footer (reverted in v2.3.1).
## Tests
`tests/test_public_style.py` (4 tests: bare URLs linked, a URL used as
link text not nested, home page shows full notes and `SITE_NAME`, note
page metadata line); one assertion updated in
`tests/test_routes_public.py`.
## Notes
The header only knew about logged-in users on `/admin` pages until v2.3.2.
@@ -0,0 +1,23 @@
# v2.3.1: "Log in" back in the header
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `2616ef5`.
## Summary
v2.3.0 moved "Log in" to the footer, where it was easy to miss.
## Changes
- `templates/base.html`: the header nav shows "Log in"
(`auth.login_form`) when `g.me` is not set, "Dashboard" when it is; the
footer link is removed.
## Tests
No new test; an existing test in `tests/test_public_style.py` now also
checks the header has the login link.
## Notes
Public pages never set `g.me`, so the header always showed "Log in" even
when logged in; fixed in v2.3.2.
@@ -0,0 +1,26 @@
# v2.3.2: Header shows "Admin" when logged in
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `c51cf72`.
## Summary
Only `/admin` routes checked the session, so public pages never knew the
admin was logged in and the header always said "Log in".
## Changes
- `starpunk/__init__.py`, `before_request`: if the request carries a
`starpunk_session` cookie, `auth.verify_session()` is called and
`g.user` / `g.me` are set. Requests without the cookie don't touch the
database; a verification error is treated as logged out.
- `templates/base.html`: the logged-in link reads "Admin" (was
"Dashboard").
## Tests
`tests/test_public_style.py`: with a valid session the header shows
"Admin" and no "Log in".
## Notes
Every public request with a session cookie now costs a session lookup.
@@ -0,0 +1,45 @@
# v2.4.0: Micropub update, delete/undelete, drafts, replies
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `0d3a5cd`. Design: ADR-067.
## Summary
The Micropub endpoint could only create published notes. It now supports
update, soft delete and undelete, drafts, replies, photos in multipart
requests and from remote URLs, and the `q=source` / `q=category` queries
editing apps need.
## Changes
- `starpunk/micropub.py` (largely rewritten):
- `handle_create`: `post-status` (`extract_post_status`), `in-reply-to`
(`extract_in_reply_to`), multipart uploads (`_save_uploads`), remote
photos (`_fetch_remote_photo`: public addresses only, 20 MB, max 4;
`_public_address`), own media URLs mapped back to media rows
(`_media_id_for_url`); unsupported `h=` types rejected (`_check_type`).
- `handle_update` (JSON, `update` scope): delete, then replace, then add,
for `content`, `name`, `category`, `photo`, `in-reply-to`,
`post-status`; other properties 400; success 204.
- `handle_delete` (`delete` scope), with `undelete=True` for undelete.
- `handle_query`: `q=source` with or without `url` (list incl. drafts,
`limit`/`offset`, `properties[]`), via `note_to_mf2`; `q=category`
(`_all_categories`, `filter`); `q=config` lists queries and post types.
- `_require_scope`; the media endpoint accepts the `media` scope.
- `starpunk/notes.py`: `undelete_note(slug)` restores a soft-deleted note
and its file from `.trash/`; crossposts removed on delete and re-posted
on undelete.
- `starpunk/routes/micropub.py`: dispatch on `action`; the media endpoint
is served at both `/micropub/media` (advertised) and `/media`.
## Tests
`tests/test_micropub_v240.py` (23 tests: each update operation, scopes,
delete/undelete, drafts, replies, multipart and remote photos, queries);
`tests/test_micropub.py` updated for the new responses.
## Notes
- `published` can be set on create but not changed by update.
- Remote photo fetching here used its own public-address check; v2.9.0
moved it onto the webmention SSRF fetcher (every redirect checked,
pinned connection).
@@ -0,0 +1,51 @@
# v2.5.0: Likes and reposts
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `e8c1b03`. Design: ADR-068.
## Summary
Micropub `like-of` and `repost-of` (optional comment as content), shown on
the site, sent a webmention, and crossposted natively where the target is
on that network. Also fixes outgoing webmention source URLs.
## Changes
- `migrations/013_add_likes_reposts.sql`: `notes.like_of`, `notes.repost_of`.
- `starpunk/models.py`: `Note.kind`, `Note.reacts_to` (the liked/reposted
URL), `Note.feed_html` (repost line + comment for feeds).
- `starpunk/micropub.py`: `extract_url_property()`; a post with both
`like-of` and `repost-of` is rejected; content optional for these.
- `starpunk/notes.py`: stores the new columns; the reacted-to URL is the
first outgoing webmention target and gets a reply context; webmention
source URLs built with `absolute_url_for()` (fixes `https://site//note/…`).
- `starpunk/routes/public.py`: likes excluded from the home page; new
`/likes` page (`templates/likes.html`, linked in the header);
`attach_contexts()` gives each like/repost its cached reply context.
- `templates/partials/reaction.html` (new): "🔁 Reposted" / like line with
the target's title and author, `u-like-of` / `u-repost-of`.
- `starpunk/feeds/atom.py`, `rss.py`, `json_feed.py`: likes left out,
reposts use `feed_html`.
- `starpunk/syndication.py`:
- GoToSocial: `find_status()` resolves fediverse URLs via
`/api/v2/search?resolve=true`; native favourite / reblog, stored as
`favourite:<id>` / `reblog:<id>` so deletes undo them.
- Bluesky: `resolve_post()` recognises `bsky.app/profile/<actor>/post/<rkey>`;
`_react()` creates like / repost records, a repost with a comment is a
quote post (`_record(..., embed=...)`).
- Otherwise `compose_repost_text()` posts "🔁 title url" (+ comment),
title from `_target_title()` (reply-context cache); likes of ordinary
pages are not crossposted.
## Tests
`tests/test_likes_reposts.py` (13 tests: storage and display, feeds,
webmention to the target with a clean URL, both kinds rejected, native and
link-post behaviour per target).
## Notes
- The GoToSocial token needs `read:search` and `write:favourites`.
- Editing a like/repost doesn't change a native favourite/boost.
- Bookmarks were declined here and added in v2.9.0.
- The CHANGELOG and ADR-068 date this release 2026-11-01; the commit and
tag are dated 2026-10-31.
@@ -0,0 +1,32 @@
# v2.6.1: Retry Threads publish errors
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `11e09a0`. Design: ADR-069.
## Summary
Meta's `threads_publish` step returned a one-off `HTTP 400 Fatal` for a
plain text post that published fine on retry; StarPunk treated it as
permanent.
## Changes
`starpunk/syndication.py` (Threads client):
- Publish-step errors are raised as retryable `SyndicationError`s unless
the Graph error code is in `_GRAPH_AUTH = {10, 190, 200}` (bad token or
missing permission). The retry's existing-post check prevents a double
post.
- Error messages include the Graph `code`, `error_subcode`,
`error_user_title` / `error_user_msg` and `fbtrace_id`; the code is kept on
the exception.
- A 2-second pause before the first container status poll (Meta can report
a container ready too early).
## Tests
`tests/test_syndication_threads.py`: `test_publish_fatal_is_retried`.
## Notes
The CHANGELOG dates this release 2026-11-01; the commit and tag are dated
2026-10-31.
@@ -0,0 +1,29 @@
# v2.6.2: Let Threads build the link preview
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `fade75f`. Design: ADR-069 (amended in this release).
## Summary
Every new note failed its first Threads crosspost with "Invalid Link
Attachment" (subcode 4279047) and only went out on the retry a minute
later: Meta rejects an explicit `link_attachment` for a URL it hasn't
fetched yet.
## Changes
- `starpunk/syndication.py`: text posts and reposts no longer send
`link_attachment`. Tested live with fresh URLs: without it the post
publishes first time and Threads still sets `link_attachment_url` from
the first link in the text.
- `docs/decisions/ADR-069-threads-syndication.md` updated accordingly.
## Tests
`tests/test_syndication_threads.py`: assertions changed to expect no
`link_attachment` in text and repost payloads.
## Notes
The preview shows the first link in the text; v2.6.3 (ADR-070) makes that
the note's own link when it has one. The CHANGELOG dates this release
2026-11-01; the commit and tag are dated 2026-10-31.
@@ -0,0 +1,39 @@
# v2.6.3: Crosspost cards show the note's own link
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `0fe3411`. Design: ADR-070.
## Summary
When a note links somewhere, the crosspost's preview card shows that page
instead of the note. Markdown links keep their URL on Bluesky and Threads,
and Threads stays within Meta's 5-link limit.
## Changes
`starpunk/syndication.py`:
- `note_links()` (with `_note_soup`, `_clean_url`, `_is_web`): the note's
own links (Markdown links, `<url>`, bare URLs) in reading order.
- `plain_text(markdown, links=..., max_urls=...)` / `plain_text_links()`:
link modes: Bluesky keeps link text and records anchors; Threads writes
"text (url)" and, after 4 distinct links, keeps only the text.
- `bluesky_facets(text, anchors)`: link-text facets in UTF-8 byte offsets.
- Bluesky `_link_card()` / `page_card()`: fetch the page's Open Graph,
Twitter or HTML title, description and image; image shrunk under 1 MB
(`_fit_image`) and uploaded as the thumbnail; an unreachable page still
gets a URL-only card. Images in the note still replace the card.
- `_fetch_public()`: http(s) only, public addresses, checked again at every
redirect; 512 KB for pages, 5 MB for images; failures never fail the post.
## Tests
`tests/test_syndication_bluesky.py` (9 new: card choice, unreachable page,
redirect to a private address not followed, images beat the card, link
order, link modes, URL budget, anchor facet offsets) and
`tests/test_syndication_threads.py` (2 new: the Markdown link comes first
for the preview, at most five links).
## Notes
One or two extra requests to the linked site per Bluesky crosspost.
Reposts are unchanged (their card is the reposted page).
@@ -0,0 +1,30 @@
# v2.6.4: Tags keep the order they were entered in
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `4b56f7c`.
## Summary
The first tag is the note's main tag (the Threads topic; Bluesky keeps the
first tags when space runs out), but crossposts used the alphabetically
first, and the editor and Micropub reordered tags alphabetically on save.
## Changes
- `starpunk/tags.py`: `add_tags_to_note()` already rewrites `note_tags` in
entry order on every save, so `note_tags.id` records the order.
`get_note_tags(note_id, entered_order=False)` reads it back when asked;
the default stays alphabetical.
- `entered_order=True` is used by `starpunk/syndication.py` (Threads topic,
Bluesky hashtags), `starpunk/routes/admin.py` (editor) and
`starpunk/micropub.py` (`q=source`, and updates that add/delete
categories).
- Public pages still list tags alphabetically.
## Tests
`tests/test_tag_order.py` (5 tests: default vs entered order, public page
alphabetical, editor round trip, Micropub source/update, crossposts).
## Notes
No migration: the order comes from existing row ids.
@@ -0,0 +1,34 @@
# v2.6.6: Crossposts include photos embedded in the text
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `39c8259`.
## Summary
Some Micropub clients (OutPost) upload to the media endpoint and then put
the image in `content` instead of sending `photo`. Those notes have no
attached media, so crossposts went out without the image.
## Changes
`starpunk/syndication.py`:
- `inline_images(markdown)`: images in the note text, with alt text.
- `_own_media_path(url)` / `_media_by_path(path)`: keep only images in this
site's media library.
- `_media_files(note_id, limit, content)`: attached media first, then
embedded own images, de-duplicated, within each target's photo limit,
alt text from the Markdown.
- `strip_images()`: GoToSocial's text no longer contains the image
Markdown.
## Tests
`tests/test_syndication.py` (4 tests: embedded own image attached, text
around the image kept, image both attached and embedded sent once, other
sites' images ignored).
## Notes
Images hosted on other sites are still left out of crossposts.
`__version_info__` was not bumped in v2.6.6 and v2.6.7 (stayed `(2, 6, 4)`;
`__version__` was correct).
@@ -0,0 +1,24 @@
# v2.6.7: Admin pages line up with the header
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `4b2ae4c`.
## Summary
Every page sat in the 40rem reading column, so the admin wrapper's 60rem
never applied and the notes table ran past the header's right edge.
## Changes
- `templates/base.html`: `<body{% block body_class %}{% endblock %}>`.
- `templates/admin/base.html`: sets `class="admin-page"`.
- `static/css/style.css`: `.admin-page { --max-width: 60rem; }` widens the
header, menu, content and footer together (replaces
`.admin-container { max-width: 60rem }`); `.table-scroll` scrolls tables
sideways on narrow screens; `.note-content-preview` wraps
(`overflow-wrap: anywhere`, `min-width: 14rem`).
- `templates/admin/dashboard.html`, `tokens.html`, `webmentions.html`:
tables wrapped in `.table-scroll`.
## Tests
None (CSS/templates only); checked visually.
@@ -0,0 +1,25 @@
# v2.7.1: Tests run before release images are built
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `6a76ee2`.
## Summary
Releases were built and pushed without running the test suite, and eight
tests had been failing unnoticed.
## Changes
- `Containerfile`: new `test` stage (same `python:3.11-slim` base and venv
as production, plus `pytest`, `pytest-mock`; CI-only `SESSION_SECRET`,
`SITE_URL`, `ADMIN_ME`), which runs `pytest -q tests`. The runtime stage
stays last, so it is still the default target.
- `.gitea/workflows/build-container.yml`: a "Run tests" step builds
`--target test` before the push step; a failing test stops the release.
- `tests/test_media_upload.py`: validation has returned a PIL `Image`
(not bytes) since v1.5.0; tests updated.
- `tests/test_migration_race_condition.py`: sets `TESTING` so the app
skips production configuration checks.
## Tests
The full suite passes in the `test` stage; no new tests.