giles
d697709f60
Tech debt cleanup: fix session.py, remove stale references, update docs
...
- db/session.py: fix indentation (2→4 space), pool_size=0 (unlimited),
remove "ned to look at this" typo
- Remove glue.models from alembic env.py import list
- Update shared __init__.py, menu_item.py docstring, calendar_impl.py,
handlers/__init__.py to remove glue terminology
- Remove federation_handlers.py tombstone file
- Remove TODO comments (replace with explanatory comments)
- Rewrite README.md to reflect current architecture
- Update anchoring.py TODO to plain comment
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-22 15:11:31 +00:00
giles
8850a0106a
Add federation/ActivityPub models, contracts, and services
...
Phase 0+1 of ActivityPub integration:
- 6 ORM models (ActorProfile, APActivity, APFollower, APInboxItem, APAnchor, IPFSPin)
- FederationService protocol + SqlFederationService implementation + stub
- 4 DTOs (ActorProfileDTO, APActivityDTO, APFollowerDTO, APAnchorDTO)
- Registry slot for federation service
- Alembic migration for federation tables
- IPFS async client (httpx-based)
- HTTP Signatures (RSA-2048 sign/verify)
- login_url() now uses AUTH_APP env var for flexible auth routing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-21 15:10:08 +00:00
giles
2c4ab9e3c8
Add glue layer support: MenuNode templates, factory registration, migration
...
- Templates: item.post.X → item.X (MenuNode has label/slug/feature_image directly)
- factory.py: add glue.models to import loop + register_glue_handlers() at startup
- alembic env.py: add glue.models to import loop
- New migration: container_relations + menu_nodes tables with backfill from existing data
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-11 23:37:35 +00:00
giles
4dd25526b9
Add requirements.txt and guard app model imports in env.py
...
requirements.txt copied from shared_lib for Docker build compatibility.
Alembic env.py now uses try/except for app-specific model imports so
upgrade head works in Docker where only one app's code is present.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-11 13:16:04 +00:00
giles
ef806f8fbb
feat: extract shared infrastructure from shared_lib
...
Phase 1-3 of decoupling plan:
- Shared DB, models, infrastructure, browser, config, utils
- Event infrastructure (domain_events outbox, bus, processor)
- Structured logging
- Generic container concept (container_type/container_id)
- Alembic migrations for all schema changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-11 12:45:56 +00:00