Skip to content
townlightPublic

About

Townlight Contracts contract repository and renewal visibility support module for Townlight

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Windows 1.11.0.1 current release

Townlight for Windows 1.11.0.1 is the current signed public beta. See the release notes and acceptance record.

For an existing city, make and verify a backup, close Townlight, run the signed Windows 1.11.0.1 MSI, then reopen Townlight under the same Windows account and existing profile. The upgrade from 1.10.0.1 kept existing data; Elections approval after the upgrade and data preservation after uninstall are not yet verified.

Windows 1.9.1.1 historical Station recorder release

Windows 1.9.1.1 improves the clerk workflows for Records, Meetings, and Code, adds Open Hall icons, and fixes the ten-second Station preview.

Release and downloads · Acceptance and limits.

Townlight Contracts

Shared meeting imports · Windows 1.8.1.1

Windows 1.8.1.1 adds shared meeting imports for 31 source families, with 34 supported source/format pairs. Installed Windows Sandbox checks exercised preview, save and durable readback using public captures and fixtures, plus the documented Townlight handoffs. These checks do not establish automatic discovery on every live portal or a complete retest of every module.

All 31 sources, formats and handoffs · Installed acceptance.

Windows 1.9.1.1 contains Station 0.4.4, Records 1.8.0.dev4, Townlight Runtime 0.3.3 and Meetings 1.0.6. The release acceptance summary identifies the verified workflows and the builds that produced the evidence.

Townlight Contracts is the Townlight module for central contract registry support, clause topic lookup, expiration tracking, renewal visibility, and public-records-aware exports.

In the Windows suite

Register executed agreements, store their signed PDFs, and track staff-entered renewal deadlines. Install the signed Townlight Windows beta 1.11.0.1 and select the full profile. See the staff operating guide. The package examples below describe the standalone development interface.

Current state: v0.2.1 contract repository foundation plus registry persistence release. This repo ships a FastAPI package, health/root endpoints, documentation gates, deterministic sample contract registry, clause topic lookup, expiration tracking helper, renewal visibility helper, optional database-backed contract registry and renewal visibility records, public-records export checklist, and accessible public sample UI at /townlight_contracts, aligned to townlight-core==1.3.0.dev2. It does not ship live contract management platforms, official legal interpretation, legal advice, live LLM calls, contract execution workflows, or contract system-of-record integrations.

What Townlight Contracts Does

  • Create sample contract registry stubs and review notes.
  • Persist contract registry and renewal visibility records when TOWNLIGHT_CONTRACTS_REGISTRY_DB_URL is configured.
  • Flag common clause topics for staff/legal review.
  • Build expiration reminder plans.
  • Summarize renewal visibility without approving renewals.
  • Produce public-records-aware export checklists.
  • Demonstrate a public contract-support UI at /townlight_contracts.

What Townlight Contracts Does Not Do

  • It does not interpret legal obligations.
  • It does not approve renewals or execute contracts.
  • It does not provide legal advice.
  • It does not call live LLMs in v0.2.1.
  • It does not replace a contract system of record.

API Surface

  • GET / returns the shipped/planned boundary.
  • GET /health returns package and Townlight Core versions.
  • GET /townlight_contracts returns the accessible public sample UI.
  • POST /api/v1/townlight_contracts/registry returns a sample contract registry stub.
  • GET /api/v1/townlight_contracts/registry/{contract_id} retrieves a persisted contract registry record when TOWNLIGHT_CONTRACTS_REGISTRY_DB_URL is configured.
  • POST /api/v1/townlight_contracts/clauses/lookup returns clause topic flags.
  • POST /api/v1/townlight_contracts/expirations returns expiration reminders.
  • POST /api/v1/townlight_contracts/renewals/summary returns renewal visibility items.
  • GET /api/v1/townlight_contracts/renewals/{contract_id} retrieves a persisted renewal visibility record when TOWNLIGHT_CONTRACTS_REGISTRY_DB_URL is configured.
  • POST /api/v1/townlight_contracts/export returns a public-records export checklist.

Optional Persistence

Set TOWNLIGHT_CONTRACTS_REGISTRY_DB_URL to enable local SQLAlchemy-backed contract registry and renewal visibility records.

Local Development

python -m pip install -e ".[dev]"
python -m pytest -q
bash scripts/verify-release.sh

License

Code: AGPL-3.0-only, with the TownLight Public Institution Exception for qualifying deployments. See LICENSE and LICENSE-EXCEPTION.md. Documentation is CC BY 4.0.

Standalone staff API authentication — unreleased source correction

The standalone /api/v1/townlight_contracts/ endpoints require X-Townlight-Contracts-Role: staff and X-Townlight-Contracts-Staff-Key: <configured secret>. Set TOWNLIGHT_CONTRACTS_STAFF_API_KEY in the service environment; never place the secret in URLs or public examples. Missing configuration returns 503; missing, invalid or non-staff credentials return 403. Health and the deterministic sample page remain public. This reuses Core's staff-key contract and is not individual staff-account administration.

The installed Windows suite uses its existing named staff sessions and role checks through municipal_staff.py, rather than this standalone API. This source correction is not present in the unchanged Windows 1.8.1.1 MSI.

About

Townlight Contracts contract repository and renewal visibility support module for Townlight

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages