Skip to main content

Longhouse Backend

FastAPI backend and CLI package for Longhouse.

Install

uv tool install longhouse
longhouse-server serve

Full docs and the recommended hosted/self-host flows live in the main repository README: https://github.com/cipher982/longhouse

Repairing held interactions

The live catalog owns provider-wait lifecycle. Execution end revokes held permissions and managed-push provider questions, but does not delete history or expire durable Longhouse questions merely because activity is stale. Run-less legacy exits are matched only to an unambiguous owning thread/run that started before the exit; later executions remain untouched.

Catalog maintenance also repairs historical no-expiry waits, stale runtime pointers, and run/connection rows contradicted by recorded execution exits. Run this in the Runtime Host's environment so catalogd_paths() uses its active live-store configuration. It talks to the single catalog writer, not SQLite:

import json
from datetime import UTC, datetime
from zerg.catalogd.client import call_catalogd_sync
from zerg.services.catalogd_supervisor import catalogd_paths

report = call_catalogd_sync(
    catalogd_paths()[1],
    "interaction.expire_due.v2",
    params={"now": datetime.now(UTC).isoformat(), "dry_run": True},
    timeout_seconds=60,
)
print(json.dumps(report, indent=2))

Set dry_run to False to apply the currently evidenced repairs, or add session_id to scope either operation to one session. Reports name affected interactions and runs. Repeated application is idempotent. Neither this repair nor normal lifecycle cleanup edits archive transcripts or activity timestamps.

Repairing imported Cursor activity clocks

Older Cursor imports could use ingestion time as session activity. The engine now reads provider metadata and matching managed turn receipts instead. longhouse-engine parse <agent-transcripts/...jsonl> prints last_activity from that same source resolver; a missing source clock is not evidence for a historical correction.

After verifying the source clock, use the same catalog client with method storage.cursor.activity.repair.v2 and parameters session_id, expected_started_at, expected_last_activity_at (the current stored values), source_started_at, source_last_activity_at (the verified provider values), now, and dry_run. Timestamps are ISO-8601. Preview with dry_run=True, then apply with False. Both clocks are compared before writing, preventing an older audit from overwriting concurrent updates. Source creation may move earlier, never later, and must precede source activity. Source activity cannot exceed the expected stored activity. This also repairs old imports that fabricated both creation and activity clocks. This corrects timeline recency without rewriting immutable transcript objects.

Release files for longhouse 0.1.47

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for longhouse 0.1.47
File Interpreter ABI Platform
longhouse-0.1.47-py3-none-any.whl Python 3 none any Details

Release files / longhouse-0.1.47-py3-none-any.whl

Download URL longhouse-0.1.47-py3-none-any.whl
Size 11.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e66d8856fca9ff27861df97882b5c902e4ee255a552381d64db37b189767114a
BLAKE2b-256 checksum
How to use checksums
af1b4b94cc9d516d20b764203be516c528798cee70a208546864c5dfb6746250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.50

1 release file

This release

0.1.47 This release

1 release file

0.1.46

1 release file

0.1.45

1 release file

0.1.44

1 release file

0.1.43

1 release file

0.1.42

1 release file

0.1.41

1 release file

0.1.40

1 release file

0.1.39

1 release file

0.1.38

1 release file

0.1.37

1 release file

0.1.36

1 release file

0.1.35

1 release file

0.1.34

1 release file

0.1.33

1 release file

0.1.32

1 release file

0.1.31

1 release file

0.1.30

1 release file

0.1.29

1 release file

0.1.28

1 release file

0.1.27

1 release file

0.1.26

1 release file

0.1.25

1 release file

0.1.24

1 release file

0.1.23

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.5

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page