Compare commits

..

No commits in common. "d56b936b48ea5e63d96391d6819a67197fe63592" and "561714e8ad3c934c4347e0ad9016be266c0fdf50" have entirely different histories.

175 changed files with 58 additions and 326 deletions

View File

@ -3,10 +3,10 @@ name: crdt-sync pre-commit
on:
push:
branches: [main]
paths: ['crdt-sync/**', '.github/workflows/crdt-sync-precommit.yml']
paths: ['crdt-sync/**']
pull_request:
branches: [main]
paths: ['crdt-sync/**', '.github/workflows/crdt-sync-precommit.yml']
paths: ['crdt-sync/**']
jobs:
pre-commit:
@ -16,25 +16,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: crdt-sync/requirements.txt
- name: Install dependencies
working-directory: crdt-sync
run: pip install -r requirements.txt
# Keyed on THIS package's config. pre-commit/action@v3.0.1 caches on
# hashFiles('.pre-commit-config.yaml') -- the repo ROOT's -- so all three
# package jobs shared one key, raced to overwrite it with hook sets built
# from four different configs, and editing a per-package config did not
# invalidate it. The cache was therefore silently wrong rather than
# missing, and the hooks reinstalled from scratch on every run (38-49s).
- uses: actions/cache@v4
- uses: pre-commit/action@v3.0.1
with:
path: ~/.cache/pre-commit
key: >-
pre-commit-crdt-sync-${{ env.pythonLocation }}-${{
hashFiles('crdt-sync/.pre-commit-config.yaml') }}
- name: Run the hooks
run: >-
pre-commit run --config crdt-sync/.pre-commit-config.yaml
--all-files --show-diff-on-failure
extra_args: --config crdt-sync/.pre-commit-config.yaml --all-files

View File

@ -3,10 +3,10 @@ name: crdt-sync tests
on:
push:
branches: [main]
paths: ['crdt-sync/**', '.github/workflows/crdt-sync-tests.yml']
paths: ['crdt-sync/**']
pull_request:
branches: [main]
paths: ['crdt-sync/**', '.github/workflows/crdt-sync-tests.yml']
paths: ['crdt-sync/**']
jobs:
test:
@ -21,8 +21,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: crdt-sync/requirements.txt
- name: Install dependencies
run: pip install -r requirements.txt

View File

@ -19,27 +19,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: freedays/requirements.txt
- name: Install the sibling package
run: pip install ./crdt-sync
- name: Install dependencies
working-directory: freedays
run: pip install -r requirements.txt
# Keyed on THIS package's config. pre-commit/action@v3.0.1 caches on
# hashFiles('.pre-commit-config.yaml') -- the repo ROOT's -- so all three
# package jobs shared one key, raced to overwrite it with hook sets built
# from four different configs, and editing a per-package config did not
# invalidate it. The cache was therefore silently wrong rather than
# missing, and the hooks reinstalled from scratch on every run (38-49s).
- uses: actions/cache@v4
- uses: pre-commit/action@v3.0.1
with:
path: ~/.cache/pre-commit
key: >-
pre-commit-freedays-${{ env.pythonLocation }}-${{
hashFiles('freedays/.pre-commit-config.yaml') }}
- name: Run the hooks
run: >-
pre-commit run --config freedays/.pre-commit-config.yaml
--all-files --show-diff-on-failure
extra_args: --config freedays/.pre-commit-config.yaml --all-files

View File

@ -24,8 +24,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: freedays/requirements.txt
# crdt-sync is a sibling in this repo, so it installs from the checkout
# rather than from a tag -- CI must test what is on this branch, not

View File

@ -18,25 +18,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: gatelock/requirements.txt
- name: Install dependencies
working-directory: gatelock
run: pip install -r requirements.txt
# Keyed on THIS package's config. pre-commit/action@v3.0.1 caches on
# hashFiles('.pre-commit-config.yaml') -- the repo ROOT's -- so all three
# package jobs shared one key, raced to overwrite it with hook sets built
# from four different configs, and editing a per-package config did not
# invalidate it. The cache was therefore silently wrong rather than
# missing, and the hooks reinstalled from scratch on every run (38-49s).
- uses: actions/cache@v4
- uses: pre-commit/action@v3.0.1
with:
path: ~/.cache/pre-commit
key: >-
pre-commit-gatelock-${{ env.pythonLocation }}-${{
hashFiles('gatelock/.pre-commit-config.yaml') }}
- name: Run the hooks
run: >-
pre-commit run --config gatelock/.pre-commit-config.yaml
--all-files --show-diff-on-failure
extra_args: --config gatelock/.pre-commit-config.yaml --all-files

View File

@ -23,8 +23,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: gatelock/requirements.txt
- name: Install dependencies
run: pip install -r requirements.txt

View File

@ -65,7 +65,7 @@ repos:
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.7
rev: v0.15.2
hooks:
- id: ruff
args: [--fix, --unsafe-fixes, --exit-non-zero-on-fix, --show-fixes]

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Shared CRDT merge scheme + pluggable remote sync transports."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Turning a Firebase auth response into a message, and reading its verdict.
Split from :mod:`crdt_sync._firebase_auth`, which keeps the token provider.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The one place every app learns how to reach Firebase.
Before this module each caller re-read ``~/.config/crdt-sync/firebase.json``

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Firebase credentials and the stores that persist them.
Split from :mod:`crdt_sync._firebase_auth`, which keeps the token provider.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""This device's stable sync identity.
Every device that pushes into a namespace needs an id that is *its own*: it

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The errors the Firebase sync backend raises.
Split from :mod:`crdt_sync._firebase` for the 250-line cap, mirroring

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Escaping arbitrary strings into Firebase Realtime Database keys.
Split from :mod:`crdt_sync._firebase`, which keeps the client. RTDB forbids

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Firebase Realtime Database as dumb keyed storage, over its REST API.
The RTDB REST endpoints are plain HTTPS, so this works identically under

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Firebase Authentication over its REST API, with no SDK dependency.
The Firebase Admin SDK authenticates with a service-account key, which

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The errors the GitHub sync backend raises.
Split from :mod:`crdt_sync._github` for the 250-line cap. Kept separate so a

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Minimal GitHub Contents API client used as dumb file storage.
GitHub is used purely as file storage via the REST Contents API, not a git

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Hybrid Logical Clock: a totally-ordered, monotonic per-node timestamp.
An HLC combines wall-clock time with a logical counter so that two ticks

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Pooled HTTP sessions, so every request does not re-handshake.
Every call site in this package used the module-level ``requests.get`` /

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Log: a collection of Records keyed by id, with a union-merge."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""A remote store that writes to two backends and reads from both.
Exists for the GitHub -> Firebase cutover: each app can move to Firebase

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Downloading peers' logs, skipping the ones we already have.
Split from :mod:`crdt_sync._sync`, which keeps the push half and the

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Record: a per-field LWW map with a sticky (monotonic) delete flag.
This is the unit CRDT merges operate on. It's deliberately domain-agnostic --

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Backend-neutral remote-storage contract that sync talks through.
Deliberately tiny: :func:`crdt_sync.sync_log` and every app-level sync

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The revision string a device publishes alongside its log.
Split from :mod:`crdt_sync._sync` so both the push and pull halves can import

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Local JSON persistence for a ``Log``.
Mirrors ``crdt_sync_dart``'s ``logToJson``/``FileLogPersistence`` serialization

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Domain-agnostic pull/merge/push sync orchestration.
Generalizes diet_guard's original ``_sync.py`` (pull every other device's

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The three argument bundles :func:`crdt_sync.sync_log` takes.
Split from :mod:`crdt_sync._sync` for the 250-line cap. Grouping sync_log's

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Where a device records what it has already pushed and pulled.
Split from :mod:`crdt_sync._sync`, which keeps the sync itself. The state is

View File

@ -1,2 +1 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the crdt_sync package."""

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Shared pytest fixtures for crdt_sync's test suite."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the shared Firebase configuration loader.
Every failure mode here is one that would otherwise surface as an

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for building a sync client from a config file.
Split from ``test_config.py`` (250-line cap);

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for reading the sync password and building a client from config.
Split from ``test_config.py`` (250-line cap), which keeps loading and

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for this device's persisted sync identity."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the Realtime Database sync client.
The HTTP layer is fully mocked, so every branch -- success, absent path,

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for Firebase Authentication over the REST API.
The HTTP layer is fully mocked, so every branch -- sign-in, refresh, rotated

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the Google sign-in path.
Split from ``test_firebase_auth.py`` (250-line cap), which keeps credential

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the auth session lifecycle.
Split from ``test_firebase_auth.py`` (250-line cap);

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ID-token refresh and the session lifecycle.
Split from ``test_firebase_auth.py`` (250-line cap), which keeps credential

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for Firebase writes, string maps and deletion.
Split from ``test_firebase.py`` (250-line cap), which keeps key escaping

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the GitHub Contents API sync client.
The HTTP layer is fully mocked (``requests.get``/``requests.put``), so every

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for GitHub writes and access checks.
Split from ``test_github.py`` (250-line cap), which keeps the read paths.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the Hybrid Logical Clock."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for merge_logs, including its CRDT convergence properties."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the dual-write client used during the GitHub -> Firebase cutover.
The asymmetry is the whole point and is what these assert: a primary failure

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for mirror fallback reads, revision maps and lifecycle.
Split from ``test_mirror.py`` (250-line cap), which keeps plain writes,

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for Record, merge_field, and merge_record."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for local Log persistence (dump/load and atomic file read/write)."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the pull/merge/push sync orchestration."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the revision tracking that keeps sync inside the free tier.
Two savings, both measured against the GitHub-backed history this replaces:

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for backends without bulk map reads, and publishing order.
Split from ``test_sync_revisions.py`` (250-line cap);

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for revision handling across peers.
Split from ``test_sync_revisions.py`` (250-line cap), which keeps revision

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the peer files sync_log declines to merge.
Split from ``test_sync.py`` (250-line cap). A peer whose pushed file is

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``tool/google_id_token``, the loopback OAuth ID-token minter.
No network and no browser. The callback server is replaced wholesale so the

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``tool/google_id_token``'s command line entry point.
Split from :mod:`test_tool_google_id_token` to stay under the repo's 250-line

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``tool/interop_seed``, the Python half of the interop check.
Patched at the module's own boundary -- ``firebase_client_for``,

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for token inspection and linking in ``tool/link_google``.
``main()`` and ``_read_token`` are covered in

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``_read_token`` and ``main()`` in ``tool/link_google``.
Split from :mod:`test_tool_link_google` to stay under the 250-line cap.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``describe_google_token`` in ``tool/link_google``.
Split from :mod:`test_tool_link_google` (which covers linking) and

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the GitHub-reading half of ``tool/migrate_github_to_firebase``.
``main()`` is covered in :mod:`test_tool_migrate_github_main`, split to stay

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``main()`` in ``tool/migrate_github_to_firebase``.
Split from :mod:`test_tool_migrate_github` to stay under the 250-line cap.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the one-shot OAuth redirect catcher in ``tool/_oauth_callback``.
No network access: everything binds 127.0.0.1 on a port the module itself

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for the individual checks in ``tool/preflight_firebase``.
``main()`` and the loading helpers are covered in

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``tool/preflight_firebase``'s loaders and ``main()``.
Split from :mod:`test_tool_preflight_firebase` to stay under the 250-line file

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``seed_apps`` in ``tool/seed_session``.
``main()`` is covered in :mod:`test_tool_seed_session_main`, split to stay

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for ``main()`` in ``tool/seed_session``.
Split from :mod:`test_tool_seed_session` to stay under the 250-line cap.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""One-shot operational scripts for crdt_sync.
A package rather than a loose directory so the linter treats these as real

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The one-shot local HTTP server that catches Google's OAuth redirect.
Split from :mod:`google_id_token`, which keeps the token exchange. Google

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Which apps keep a desktop Firebase session, and why the list is hand-kept.
Split out of ``seed_session.py`` for the 250-line cap. The rationale is worth

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
r"""Fetch a Google ID token for this project, via a local loopback OAuth flow.
``link_google.py`` needs a Google ID token whose ``aud`` claim is an OAuth

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Write the Python half of the live cross-language interop check.
``crdt_sync_dart/tool/interop_check.dart`` merges a Dart record into

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Link a Google identity to the existing sync account, keeping the same uid.
The security rules pin exactly one uid (``auth.uid === '<uid>'``), so signing

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""One-shot migration of the GitHub-backed sync repo into Firebase RTDB.
Reads through the GitHub API rather than a local clone: a checkout goes stale

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Validate ``~/.config/crdt-sync`` before anything is migrated.
Every failure this catches is one that would otherwise surface *after* data

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
r"""Reseed each app's desktop Firebase session by signing in with Google.
The sync account moved to Google-only sign-in, so the password flow that used

View File

@ -65,7 +65,7 @@ repos:
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.7
rev: v0.15.2
hooks:
- id: ruff
args: [--fix, --unsafe-fixes, --exit-non-zero-on-fix, --show-fixes]

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""One shared pool of pre-declared days on which every gate app stands down.
The whole point of this package fits in one call. A gate app asks::

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Ask, mark, release, report -- the whole public surface.
:func:`is_free_day` is the one every gate app calls, and it is deliberately

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Append-only, HMAC-signed trail of every mark and release.
Nothing reads this to make a decision -- the CRDT log is the truth, and this

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Calendar-year accounting for the pool.
One global pool, shared by every app: a day is either free everywhere or

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The ``freedays`` command: the only thing that ever talks about free days.
Every subcommand that says anything is pull, never push: nothing notifies,

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The one stdout/stderr sink every ``freedays`` subcommand writes through.
A thin wrapper over ``sys.stdout.write`` (the shape diet-guard and home-guard

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""On-disk locations, remote paths and the one policy number that matters.
Every path here is a *default*. Public functions take the corresponding

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""What "today" means, in one place.
The apps this package serves disagreed about this before it existed:

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Why a mark or un-mark was refused.
Each of these is a *policy* refusal with a message meant to be shown to the

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Signing the audit trail, using nothing but the standard library.
This deliberately does not call ``gatelock.log_integrity``, even though the

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Translating between a free day and a crdt-sync ``Record``.
The record id *is* the ISO date, so two devices marking the same day produce

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Every file this package owns, as one value that can be swapped wholesale.
Threading five separate ``*_path`` keyword arguments through the API was the

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Pushing and pulling the pool, so a day taken on the phone lands on the PC.
Sync is a *separate* operation from every decision in :mod:`freedays._api`.

View File

@ -1,2 +1 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Tests for :mod:`freedays`."""

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Redirect every on-disk path away from real user state, for every test.
This is one ``monkeypatch`` of one function, and that is the whole point.

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Marking, releasing, and the budget arithmetic behind both."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The audit trail: best-effort, signed, and never in the way."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The command line: the only surface that ever mentions free days."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Date handling: the one place allowed an opinion about "today"."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Signing, and the ways it is allowed to fail."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""Record translation, and the CRDT properties the design leans on."""
from __future__ import annotations

View File

@ -1,4 +1,3 @@
# Copyright (c) 2026 Krzysztof Rudnicki
"""The path bundle itself, exercised unpatched.
The autouse redirect in ``conftest`` replaces ``resolve_paths`` *as imported

Some files were not shown because too many files have changed in this diff Show More