Metadata-Version: 2.5
Name: golded-ftn-tosser
Version: 1.0.0
Summary: FTN tosser journal, packet import, scan, routing, AreaFix and HELD quarantine
Project-URL: Repository, https://github.com/golded-dev/golded-ftn-tosser-python
Project-URL: Issues, https://github.com/golded-dev/golded-ftn-tosser-python/issues
Project-URL: Changelog, https://github.com/golded-dev/golded-ftn-tosser-python/blob/main/CHANGELOG.md
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: golded-ftn-binkp<2,>=1.0.0
Requires-Dist: golded-ftn-hudson<2,>=1.3.0
Requires-Dist: golded-ftn-jam<2,>=1.3.0
Requires-Dist: golded-ftn-msg<2,>=1.4.0
Requires-Dist: golded-ftn-nodelist<2,>=1.0.0
Requires-Dist: golded-ftn-packet<2,>=1.0.0
Requires-Dist: golded-ftn-squish<2,>=1.3.0
Requires-Dist: golded-ftn<2,>=1.4.0
Description-Content-Type: text/markdown

# golded-ftn-tosser

Version 1.0.0 is the T1 tosser: SQLite journal, packet import, base scan, netmail
routing, echomail fanout, dupe ledger, AreaFix, and HELD quarantine, plus the L0
typed diagnostic logging foundation.

Python 3.12 or newer. Distribution `golded-ftn-tosser`, import `golded_ftn_tosser`.

Governing contracts (English): `../ftn-node-work/contracts/k1.md`,
`logging-v1.md`, `recovery-v1.md`, `packet-v1.md`, `nodelist-v1.md`, and
`bso-binkp-v1.md`. The Danish plan section 07 is informational only.

## Logging (L0, preserved)

```python
import tomllib
from golded_ftn_tosser import resolve_log_level

config = tomllib.loads('[logging]\nlevel = "INFO"')
level = resolve_log_level(config, cli_override="DEBUG")
```

Levels are OFF, ERROR, WARNING, INFO, and DEBUG. Precedence is CLI `--log-level`
then TOML `[logging].level` then INFO. The library never configures the process
root logger. `EventEmitter`, `SafeStreamHandler`, and `resolve_log_level` remain
the public diagnostic API. OFF does not disable the journal.

## Node pipeline

```python
from golded_ftn_tosser import TosserNode

node = TosserNode.from_path("node.toml")
node.check()
node.toss()
node.scan()
node.status()
```

Node TOML declares domains, AKAs, links (session password distinct from AreaFix
password), areas keyed by `(domain, tag)`, mailbox routes, charset fallback
(default CP850), optional Squish IANA timezone, and inbound/outbound/BSO/receipt
state paths. `product_id` is required and never invented.

Netmail is delivered only to a configured mailbox or an explicit route. Unknown
routes stay queued with `unknown_route`; there is no open relay. Echomail fans
out to links with export rights except the ingress link, in the same domain, with
2D SEEN-BY/PATH plus a full 5D identity ledger. Outbound forwarding uses
canonical imported packet bytes from the journal, never a lossy base re-read.

## Verification

```sh
uv sync
.venv/bin/pytest -q
.venv/bin/ruff check src tests
.venv/bin/ruff format --check src tests
.venv/bin/mypy --strict src tests
```

The 61 L0 logging tests remain. T1 adds journal, lock-order, routing, AreaFix,
HELD, ZIP safety, and confidentiality tests. Use synthetic fixtures only.

## Version 1.0.0

Initial typed diagnostics and SQLite journal; authenticated packet import, recovery, scan, explicit netmail routes, echomail fanout, AreaFix, dupe suppression and HELD quarantine.

Linux and macOS, Python 3.12–3.14, are the release targets. Windows is outside
this candidate's test and compatibility promises. See [release preparation](docs/release.md).

Installation, a runnable example, complete public signatures and operational limits:
[package guide](docs/api.md).
