diff --git a/README.docx b/README.docx index bb3c514..72f4fe8 100644 Binary files a/README.docx and b/README.docx differ diff --git a/README.md b/README.md index ac97989..cba7daf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ ## Windows 1.8.2.1 maintenance release +## Station recorder candidate + +Windows 1.9.0.1 / Station 0.4.0 is in development and has not been published. It adds integrated recorder setup/recovery, camera and microphone selection with a test clip, eight-hour/64 GiB recording limits and streamed Records attachment, and renewable authorized operator sessions. Existing released MSI and historical acceptance remain unchanged. Candidate verification and limits: [recorder completion record](https://github.com/townlight/station/blob/main/beta-1/docs/RECORDER-COMPLETION.md). Tagging/publication require the project owner’s approval. + + Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider. Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing `%LOCALAPPDATA%\CivicSuite` profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence. diff --git a/USER-MANUAL.docx b/USER-MANUAL.docx index bb3c514..72f4fe8 100644 Binary files a/USER-MANUAL.docx and b/USER-MANUAL.docx differ diff --git a/USER-MANUAL.md b/USER-MANUAL.md index 640c1d1..b47ca4f 100644 --- a/USER-MANUAL.md +++ b/USER-MANUAL.md @@ -1,5 +1,35 @@ ## Windows 1.8.2.1 maintenance release +## Windows recorder update — 1.9.0.1 candidate (not published) + +This section describes the new candidate. The public 1.8.2.1 MSI does not acquire these capabilities until a new release is approved and published. Candidate verification and its limits are recorded in the [recorder completion record](https://github.com/townlight/station/blob/main/beta-1/docs/RECORDER-COMPLETION.md); this is separate from the published 1.8.2.1 evidence. + +### Clerk and operator + +1. Install Townlight and complete normal first-run setup with the full Windows profile or a custom selection that includes Meetings and Records (Station is bundled). Finishing setup provisions the bundled recorder, a private database and Windows sign-in task. No PostgreSQL, Python or media-runtime installation commands are needed. Existing installations use Settings → Modules → Townlight Station → **Set up meeting recording**. +2. Keep Windows signed in and the computer awake while recording. The recorder runs in that user's device-access session, independently of the Townlight window. It is not a multi-user server or a full PEG station. Closing the recorder tab does not stop a recording. +3. Sign in with an existing authorized staff account. From Meetings choose **Open / reconnect to meeting recorder**. Select a meeting and its agenda items. In input setup, find devices, choose one camera/capture device and one microphone, and save. Record a ten-second input test, then play it to check the picture and sound; the meter responds during playback. This test clip is temporary and is not a canonical meeting record. Windows camera/microphone privacy settings and exclusive device use still apply. Configured UDP MPEG-TS input remains supported. +4. Start the meeting recording. The default duration limit is eight hours, with a 64 GiB file limit and at least 1 GiB reserved disk space. Admission estimates the configured duration and bitrate. Free space is monitored while recording; low space or a limit requests a graceful stop and displays the reason. These are configured limits, not a claim that every eight-hour meeting has been tested. Plan space for the recording, its Records copy and backups. Sleep, sign-out, power failure and unavailable hardware can interrupt capture. +5. An open operator page renews its fifteen-minute session against the current Townlight staff authority. Sign-out, revoked permissions and the underlying staff-session expiry still take effect. Reopen from Townlight to reconnect to an existing recording; reconnect never starts a second recording. Select **Stop recording** to drain and finalize the file. +6. After completion, an authorized Records user selects a request and explicitly attaches the recording. Records streams a separate managed copy and verifies SHA-256, size and provenance; files up to 64 GiB are accepted subject to available space. Attachment is not public release. Review, redaction and publication remain separate Records decisions. + +### Administrator and recovery + +Station setup uses bundled native dependencies and its existing pinned CivicCast media implementation; it never starts or changes CivicCast or CivicCast Lab. The per-user logon task owns a separate PostgreSQL instance on loopback port 15435; Station's API listens only on 127.0.0.1:8756. Townlight's existing staff authority remains on its configured Suite origin. Protected settings and database credentials remain in the recorder data directory, under the selected city data location. Setup refuses unrelated nonempty storage or an unrelated task with the same name. Retry setup after correcting readiness errors; inspect the private background, PostgreSQL, API and worker logs when needed. + +Use **Check recorder readiness**, **Back up Station**, and **Restore Station backup** in Settings → Modules. Finish queued and active recordings before backup or restore. Backups contain a PostgreSQL dump, recording/ingest files, saved source choices and a SHA-256 member manifest; they omit credentials and native executables. Restore verifies the members, creates a pre-restore recovery copy, and restores into this installation's separately protected database. Recheck input selection afterward. A Suite backup includes a coherent Station backup when paired; it does not copy the running Station database or its secrets. Suite restore preserves that live private directory and applies the included Station backup separately. + +```mermaid +flowchart LR + Staff[Existing Townlight staff authority] --> Operator[Station operator] + Camera[Camera and microphone or UDP feed] --> Recorder[Per-user background recorder] + Operator --> Recorder + Recorder --> Private[Private Station database and recording] + Private -->|Explicit hash-verified attachment| Records[Records managed copy] + Records --> Review[Separate review and release decision] +``` + + Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider. Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing `%LOCALAPPDATA%\CivicSuite` profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence. diff --git a/USER-MANUAL.pdf b/USER-MANUAL.pdf index 1e87ec2..7174d5b 100644 Binary files a/USER-MANUAL.pdf and b/USER-MANUAL.pdf differ diff --git a/USER-MANUAL.txt b/USER-MANUAL.txt index 12049e9..d5ab382 100644 --- a/USER-MANUAL.txt +++ b/USER-MANUAL.txt @@ -1,14 +1,118 @@ Windows 1.8.2.1 maintenance release -Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider. - -Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence. +Windows recorder update — 1.9.0.1 candidate (not published) + +This section describes the new candidate. The public 1.8.2.1 MSI does +not acquire these capabilities until a new release is approved and +published. Candidate verification and its limits are recorded in the +recorder completion record; this is separate from the published 1.8.2.1 +evidence. + +Clerk and operator + +1. Install Townlight and complete normal first-run setup with the full + Windows profile or a custom selection that includes Meetings and + Records (Station is bundled). Finishing setup provisions the bundled + recorder, a private database and Windows sign-in task. No + PostgreSQL, Python or media-runtime installation commands are + needed. Existing installations use Settings → Modules → Townlight + Station → Set up meeting recording. +2. Keep Windows signed in and the computer awake while recording. The + recorder runs in that user’s device-access session, independently of + the Townlight window. It is not a multi-user server or a full PEG + station. Closing the recorder tab does not stop a recording. +3. Sign in with an existing authorized staff account. From Meetings + choose Open / reconnect to meeting recorder. Select a meeting and + its agenda items. In input setup, find devices, choose one + camera/capture device and one microphone, and save. Record a + ten-second input test, then play it to check the picture and sound; + the meter responds during playback. This test clip is temporary and + is not a canonical meeting record. Windows camera/microphone privacy + settings and exclusive device use still apply. Configured UDP + MPEG-TS input remains supported. +4. Start the meeting recording. The default duration limit is eight + hours, with a 64 GiB file limit and at least 1 GiB reserved disk + space. Admission estimates the configured duration and bitrate. Free + space is monitored while recording; low space or a limit requests a + graceful stop and displays the reason. These are configured limits, + not a claim that every eight-hour meeting has been tested. Plan + space for the recording, its Records copy and backups. Sleep, + sign-out, power failure and unavailable hardware can interrupt + capture. +5. An open operator page renews its fifteen-minute session against the + current Townlight staff authority. Sign-out, revoked permissions and + the underlying staff-session expiry still take effect. Reopen from + Townlight to reconnect to an existing recording; reconnect never + starts a second recording. Select Stop recording to drain and + finalize the file. +6. After completion, an authorized Records user selects a request and + explicitly attaches the recording. Records streams a separate + managed copy and verifies SHA-256, size and provenance; files up to + 64 GiB are accepted subject to available space. Attachment is not + public release. Review, redaction and publication remain separate + Records decisions. + +Administrator and recovery + +Station setup uses bundled native dependencies and its existing pinned +CivicCast media implementation; it never starts or changes CivicCast or +CivicCast Lab. The per-user logon task owns a separate PostgreSQL +instance on loopback port 15435; Station’s API listens only on +127.0.0.1:8756. Townlight’s existing staff authority remains on its +configured Suite origin. Protected settings and database credentials +remain in the recorder data directory, under the selected city data +location. Setup refuses unrelated nonempty storage or an unrelated task +with the same name. Retry setup after correcting readiness errors; +inspect the private background, PostgreSQL, API and worker logs when +needed. + +Use Check recorder readiness, Back up Station, and Restore Station +backup in Settings → Modules. Finish queued and active recordings before +backup or restore. Backups contain a PostgreSQL dump, recording/ingest +files, saved source choices and a SHA-256 member manifest; they omit +credentials and native executables. Restore verifies the members, +creates a pre-restore recovery copy, and restores into this +installation’s separately protected database. Recheck input selection +afterward. A Suite backup includes a coherent Station backup when +paired; it does not copy the running Station database or its secrets. +Suite restore preserves that live private directory and applies the +included Station backup separately. + + flowchart LR + Staff[Existing Townlight staff authority] --> Operator[Station operator] + Camera[Camera and microphone or UDP feed] --> Recorder[Per-user background recorder] + Operator --> Recorder + Recorder --> Private[Private Station database and recording] + Private -->|Explicit hash-verified attachment| Records[Records managed copy] + Records --> Review[Separate review and release decision] + +Windows 1.8.2.1 packages the staff authorization, explicit database +configuration and component metadata corrections. Its exact signed +installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, +procurement/Contracts handoffs, backup/restore and uninstall retention. +Unchanged module and 31-source/34-format import evidence remains +attributed to the earlier build that produced it; this is not a new +exhaustive test of every module or live provider. + +Windows 1.8.2.1 has signed installed acceptance for fresh setup and an +in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city +data and settings, close Townlight, run the signed MSI, and reopen it +under the same Windows account with the existing +%LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a +restore path. Other upgrade paths are unverified. Station uses its +separately configured service. The acceptance summary distinguishes new +maintenance checks from reused workflow evidence. Release and downloads · Acceptance and limits. Windows x64 Beta 1 · MSI 1.8.2.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. +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. - Townlight Records Manual - Contents @@ -36,15 +140,30 @@ Townlight Records Manual 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. +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.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence. +Windows 1.8.2.1 has signed installed acceptance for fresh setup and an +in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city +data and settings, close Townlight, run the signed MSI, and reopen it +under the same Windows account with the existing +%LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a +restore path. Other upgrade paths are unverified. Station uses its +separately configured service. The acceptance summary distinguishes new +maintenance checks from reused workflow evidence. -Windows 1.8.2.1 contains Townlight Runtime 0.3.2 and Meetings 1.0.6. Its current component sources and installed evidence are identified in the maintenance acceptance summary. +Windows 1.8.2.1 contains Townlight Runtime 0.3.2 and Meetings 1.0.6. Its +current component sources and installed evidence are identified in the +maintenance acceptance summary. -Townlight Beta 1 · Naming candidate documentation edition 2 November 2026 +Townlight Beta 1 · Naming candidate documentation edition 2 November +2026 Contents @@ -70,16 +189,27 @@ Contents Using this manual -Townlight Records helps records officers, clerks and authorized reviewers. Records manages request intake, responsive evidence, review and the final response. Material received from another Townlight product is evidence for a request. Records separately controls release decisions, response approval, exports and fulfillment. +Townlight Records helps records officers, clerks and authorized +reviewers. Records manages request intake, responsive evidence, review +and the final response. Material received from another Townlight product +is evidence for a request. Records separately controls release +decisions, response approval, exports and fulfillment. -Staff should begin with First run and Daily workflow. Administrators should also read Architecture, Technical specifications, Configuration, Security and Recovery. Developers should use the exact API/data dictionary and examples. The table of contents and alphabetical subject index link to the relevant sections in the HTML edition; the PDF preserves headings and searchable text. An editable Word edition is included with the same documentation companion. +Staff should begin with First run and Daily workflow. Administrators +should also read Architecture, Technical specifications, Configuration, +Security and Recovery. Developers should use the exact API/data +dictionary and examples. The table of contents and alphabetical subject +index link to the relevant sections in the HTML edition; the PDF +preserves headings and searchable text. An editable Word edition is +included with the same documentation companion. Beta identity - ------------------------------------------------------------------------------------------------------------------------------------------------------------------ + ----------------------------------------------------------------------- Identity Value - ----------------------------------- ------------------------------------------------------------------------------------------------------------------------------ - Documentation Townlight Beta 1 naming, Access and Notice candidate + ----------------------------------- ----------------------------------- + Documentation Townlight Beta 1 naming, Access and + Notice candidate Windows MSI version 1.8.2.1 @@ -89,171 +219,380 @@ Beta identity Native desktop source version 1.8.2-1 - Candidate hashes SHA-256 checksums and Windows acceptance summary + Candidate hashes SHA-256 checksums and Windows + acceptance summary Current owned software license AGPL-3.0-only - Acceptance composition Windows 1.8.2.1: fresh-install and 1.8.1.1 upgrade acceptance. Select the full profile. Station uses separate configuration. - ------------------------------------------------------------------------------------------------------------------------------------------------------------------ - -Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence. + Acceptance composition Windows 1.8.2.1: fresh-install and + 1.8.1.1 upgrade acceptance. Select + the full profile. Station uses + separate configuration. + ----------------------------------------------------------------------- + +Windows 1.8.2.1 has signed installed acceptance for fresh setup and an +in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city +data and settings, close Townlight, run the signed MSI, and reopen it +under the same Windows account with the existing +%LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a +restore path. Other upgrade paths are unverified. Station uses its +separately configured service. The acceptance summary distinguishes new +maintenance checks from reused workflow evidence. First run -Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence. +Windows 1.8.2.1 has signed installed acceptance for fresh setup and an +in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city +data and settings, close Townlight, run the signed MSI, and reopen it +under the same Windows account with the existing +%LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a +restore path. Other upgrade paths are unverified. Station uses its +separately configured service. The acceptance summary distinguishes new +maintenance checks from reused workflow evidence. Fresh installation -Run the signed Windows 1.8.2.1 MSI and use an empty database and a new Townlight profile for first run. - -1. Download the signed MSI, matching source companion and checksums from the public Windows release. -2. Verify the MSI hash and Authenticode publisher before installation. See the Windows acceptance summary for the tested setup. -3. Launch Townlight under the intended named Windows account. Choose the storage folders. Select Townlight Inspections candidate (inspections-preview) for the bounded desktop composition, including Access and Notice. A narrower default selection will not expose all workspaces. -4. Enter the city profile, time zone and contacts. Create the first named local administrator, sign in and choose protected backup storage. Continue without local AI is valid for the deterministic workflows. -5. Run Health Check and wait for readiness. Open Townlight. In System Health select Finish Records Migration to activate the canonical Python/PostgreSQL runtime. Do not fabricate migration receipts or seed accounts. -6. Create named staff through Settings. Import authorized sources using each product’s source library. All examples in this package are synthetic; they are not municipal authority. -7. Provision Station separately if it is part of the beta exercise. Selecting the desktop composition does not start or configure Station. Configure vision explicitly only if automatic photo drafting is selected. +Run the signed Windows 1.8.2.1 MSI and use an empty database and a new +Townlight profile for first run. + +1. Download the signed MSI, matching source companion and checksums + from the public Windows release. +2. Verify the MSI hash and Authenticode publisher before installation. + See the Windows acceptance summary for the tested setup. +3. Launch Townlight under the intended named Windows account. Choose + the storage folders. Select Townlight Inspections candidate + (inspections-preview) for the bounded desktop composition, including + Access and Notice. A narrower default selection will not expose all + workspaces. +4. Enter the city profile, time zone and contacts. Create the first + named local administrator, sign in and choose protected backup + storage. Continue without local AI is valid for the deterministic + workflows. +5. Run Health Check and wait for readiness. Open Townlight. In System + Health select Finish Records Migration to activate the canonical + Python/PostgreSQL runtime. Do not fabricate migration receipts or + seed accounts. +6. Create named staff through Settings. Import authorized sources using + each product’s source library. All examples in this package are + synthetic; they are not municipal authority. +7. Provision Station separately if it is part of the beta exercise. + Selecting the desktop composition does not start or configure + Station. Configure vision explicitly only if automatic photo + drafting is selected. Daily workflow 1. Receive and identify the request -Create the request with its requester, description and recorded deadline basis. Save it and retain the request identifier. Record assignment, clarification and work in the request history. +Create the request with its requester, description and recorded deadline +basis. Save it and retain the request identifier. Record assignment, +clarification and work in the request history. 2. Find responsive evidence -Search only the permitted sources. Inspect the source title, date, citation, visibility and version before attaching responsive material. Open the saved attachment to confirm that it is the intended evidence. +Search only the permitted sources. Inspect the source title, date, +citation, visibility and version before attaching responsive material. +Open the saved attachment to confirm that it is the intended evidence. 3. Preserve the original -Keep original bytes and their hash. Add a separately reviewed release-ready or redacted copy when needed. Renaming a private file does not remove private content. +Keep original bytes and their hash. Add a separately reviewed +release-ready or redacted copy when needed. Renaming a private file does +not remove private content. 4. Record each release decision -Explicitly record release, redact or exempt for the relevant document, with the applicable reason and source. Do not treat an AI suggestion or another product’s review as the Records legal decision. +Explicitly record release, redact or exempt for the relevant document, +with the applicable reason and source. Do not treat an AI suggestion or +another product’s review as the Records legal decision. 5. Draft and approve -Draft the response and review the selected attachments. Record approval of the exact response text. Editing that text changes its hash and requires a new approval. +Draft the response and review the selected attachments. Record approval +of the exact response text. Editing that text changes its hash and +requires a new approval. 6. Export both artifacts -Export the approved response and the release package. If release is refused, inspect the missing decision, approval or source-permission message. Resolve that condition before trying again. +Export the approved response and the release package. If release is +refused, inspect the missing decision, approval or source-permission +message. Resolve that condition before trying again. 7. Fulfill and retain -Use the explicit fulfillment action only after checking the outgoing artifacts. Retain the response, package and history. A preview, attachment or export by itself does not fulfill the request. +Use the explicit fulfillment action only after checking the outgoing +artifacts. Retain the response, package and history. A preview, +attachment or export by itself does not fulfill the request. Working safely -Use your own named account and save before leaving a screen. A saved draft is durable; unsaved form text may not be. If a write has an unknown result, reopen its record before repeating it. +Use your own named account and save before leaving a screen. A saved +draft is durable; unsaved form text may not be. If a write has an +unknown result, reopen its record before repeating it. -Read source jurisdiction, dates, citation, version and visibility. A copied source hash identifies exact bytes, not their legal applicability. If a source changes or permission is removed, resolve the source problem rather than substituting stale cached content. +Read source jurisdiction, dates, citation, version and visibility. A +copied source hash identifies exact bytes, not their legal +applicability. If a source changes or permission is removed, resolve the +source problem rather than substituting stale cached content. -Keep originals and derivatives separate. Review the intended audience before export. A public summary excludes private fields only through the applicable copy contract and your review. A renamed private packet is still private content. +Keep originals and derivatives separate. Review the intended audience +before export. A public summary excludes private fields only through the +applicable copy contract and your review. A renamed private packet is +still private content. -Drafting, review, approval, attachment, export, fulfillment and publication are separate operations. A Townlight workpaper does not itself adopt law, issue a permit, impose a fine or release a records response. The responsible staff member records the applicable decision. +Drafting, review, approval, attachment, export, fulfillment and +publication are separate operations. A Townlight workpaper does not +itself adopt law, issue a permit, impose a fine or release a records +response. The responsible staff member records the applicable decision. Connected workflows -Receives selected evidence from Meetings, Code, Zoning, Planning, Permitting, Inspections and Station. Station originals are locked private evidence. A product’s public copy remains subject to the Records response workflow. +Receives selected evidence from Meetings, Code, Zoning, Planning, +Permitting, Inspections and Station. Station originals are locked +private evidence. A product’s public copy remains subject to the Records +response workflow. - ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + ----------------------------------------------------------------------- Direction Material - ----------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------ - Input A request description and requester, authorized source documents, explicit cross-product evidence selections and a reviewer’s decisions. - - Output A retained request history, reviewed attachments, approved response text and a release package after the applicable release checks. - ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + ----------------------------------- ----------------------------------- + Input A request description and + requester, authorized source + documents, explicit cross-product + evidence selections and a + reviewer’s decisions. + + Output A retained request history, + reviewed attachments, approved + response text and a release package + after the applicable release + checks. + ----------------------------------------------------------------------- Product boundary -The selected staff workflow is accepted. A resident internet deployment, every jurisdiction’s requirements, complete federation and exhaustive redaction/accessibility behavior are not certified by that acceptance. SMTP code exists; logging a message or outbox entry does not establish email delivery. +The selected staff workflow is accepted. A resident internet deployment, +every jurisdiction’s requirements, complete federation and exhaustive +redaction/accessibility behavior are not certified by that acceptance. +SMTP code exists; logging a message or outbox entry does not establish +email delivery. Architecture Townlight Records architecture and evidence flow -The drawing shows the principal staff/evidence path. Native commands carry trusted identity to Python business services; PostgreSQL and retained original files hold durable state. A downstream copy does not silently transfer decision authority. Station has its own configured authority/media boundary, database and mutable files. The connected-workflow text supplies the drawing’s reading order and accessibility alternative. +The drawing shows the principal staff/evidence path. Native commands +carry trusted identity to Python business services; PostgreSQL and +retained original files hold durable state. A downstream copy does not +silently transfer decision authority. Station has its own configured +authority/media boundary, database and mutable files. The +connected-workflow text supplies the drawing’s reading order and +accessibility alternative. Fees messages notifications and local intake Record a fee line or waiver -Open the saved request’s existing fee controls. Enter the description, adopted schedule/source basis and exact amount in dollars and cents. For example, a synthetic line can use description “Synthetic reproduction,” basis “Fictional test schedule” and amount 12.50. Save and reopen the request. Inspect fee_line_items, fee_status and the resulting estimate. The native line validator accepts positive exact cents; additional fractional cents, negative values and a zero line are refused. - -To waive the request fee, record the actual waiver reason and save through the waiver control. Reopen the request and confirm waived status and the zero-dollar waiver explanation. Adding a later line preserves the waiver in the current workflow; do not assume it reinstates a payable balance. These are Records workflow amounts and decisions, not an official permit-fee calculator or payment service. - -A trusted native client uses records_domain_request with operation: 'apply', the real request_id, and action/payload fields from the fragments below at the same level as operation and request_id. Examples of command payloads follow; IDs and permissions still come from the signed-in synthetic account. +Open the saved request’s existing fee controls. Enter the description, +adopted schedule/source basis and exact amount in dollars and cents. For +example, a synthetic line can use description “Synthetic reproduction,” +basis “Fictional test schedule” and amount 12.50. Save and reopen the +request. Inspect fee_line_items, fee_status and the resulting estimate. +The native line validator accepts positive exact cents; additional +fractional cents, negative values and a zero line are refused. + +To waive the request fee, record the actual waiver reason and save +through the waiver control. Reopen the request and confirm waived status +and the zero-dollar waiver explanation. Adding a later line preserves +the waiver in the current workflow; do not assume it reinstates a +payable balance. These are Records workflow amounts and decisions, not +an official permit-fee calculator or payment service. + +A trusted native client uses records_domain_request with +operation: 'apply', the real request_id, and action/payload fields from +the fragments below at the same level as operation and request_id. +Examples of command payloads follow; IDs and permissions still come from +the signed-in synthetic account. {"action":"add-records-fee-line","payload":{"feeLineDescription":"Synthetic reproduction","feeScheduleBasis":"Fictional test schedule","feeLineAmount":"12.50"}} {"action":"waive-records-fee","payload":{"feeWaiverReason":"Synthetic public-interest exercise"}} -Use the exact outer apply contract in the API reference rather than sending these command fragments to an arbitrary URL. After either operation, read the request again; a saved amount does not approve or fulfill the response. +Use the exact outer apply contract in the API reference rather than +sending these command fragments to an arbitrary URL. After either +operation, read the request again; a saved amount does not approve or +fulfill the response. Save staff and requester messages -In the saved request, enter a message and use its explicit send/save action. The native add-records-message command’s payload uses requestMessageBody, for example “Synthetic clarification received.” Inspect the retained message/timeline and intended audience before repeating the action. A persisted staff message or locally queued notification does not prove an email reached a requester. For a clarification requiring a response, retain the clarification note and keep the request’s actual status distinct from completion. +In the saved request, enter a message and use its explicit send/save +action. The native add-records-message command’s payload uses +requestMessageBody, for example “Synthetic clarification received.” +Inspect the retained message/timeline and intended audience before +repeating the action. A persisted staff message or locally queued +notification does not prove an email reached a requester. For a +clarification requiring a response, retain the clarification note and +keep the request’s actual status distinct from completion. Configure templates and inspect the outbox -Administrators use the existing /notifications/templates create/list/update API under the application’s real authenticated authority. A template supplies event_type, channel (default email), subject_template and body_template. Use the event name actually produced by the selected workflow and the variables it supplies; template existence alone does not cause that event to be emitted. Staff inspect /notifications/log for recipient, rendered content, status and error information. - -The existing delivery function is app.notifications.smtp_delivery.deliver_queued_notifications(session). A technical operator invokes it only in the matching configured application environment, with an application-owned async session. It processes queued email entries, commits sent or failed status, and returns counts. Missing SMTP configuration returns reason: smtp_not_configured. Missing rendered subject/body or recipient is a failure, not delivery. - -SMTP settings are SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_FROM_EMAIL and SMTP_USE_TLS. Keep secrets in protected process configuration. Inspect the actual setting names/defaults in that reference before selecting a mail server. This beta has no automatic failed-entry retry or native “Retry email” button: failed rows are not selected by the queued-only delivery loop. Preserve errors and resolve the cause through the owning deployment’s supported process; do not invent a retry or reset database rows by hand. The native notification “sent” acknowledgement is not an SMTP transmission receipt. External mail remains a separately selected deployment configuration, not a requirement to send email during synthetic development. +Administrators use the existing /notifications/templates +create/list/update API under the application’s real authenticated +authority. A template supplies event_type, channel (default email), +subject_template and body_template. Use the event name actually produced +by the selected workflow and the variables it supplies; template +existence alone does not cause that event to be emitted. Staff inspect +/notifications/log for recipient, rendered content, status and error +information. + +The existing delivery function is +app.notifications.smtp_delivery.deliver_queued_notifications(session). A +technical operator invokes it only in the matching configured +application environment, with an application-owned async session. It +processes queued email entries, commits sent or failed status, and +returns counts. Missing SMTP configuration returns +reason: smtp_not_configured. Missing rendered subject/body or recipient +is a failure, not delivery. + +SMTP settings are SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, +SMTP_FROM_EMAIL and SMTP_USE_TLS. Keep secrets in protected process +configuration. Inspect the actual setting names/defaults in that +reference before selecting a mail server. This beta has no automatic +failed-entry retry or native “Retry email” button: failed rows are not +selected by the queued-only delivery loop. Preserve errors and resolve +the cause through the owning deployment’s supported process; do not +invent a retry or reset database rows by hand. The native notification +“sent” acknowledgement is not an SMTP transmission receipt. External +mail remains a separately selected deployment configuration, not a +requirement to send email during synthetic development. Exercise existing local public intake and tracking -This is the existing local contract, not a new internet portal deployment. Under the application’s configured portal posture, a synthetic client can submit POST /desktop/v1/public/requests with: +This is the existing local contract, not a new internet portal +deployment. Under the application’s configured portal posture, a +synthetic client can submit POST /desktop/v1/public/requests with: {"requester":"Synthetic resident","requesterContact":"synthetic@example.invalid","summary":"Synthetic minutes request","deadline":""} -Retain the returned tracking information privately. POST /desktop/v1/public/lookup requires both trackingNumber and matching requesterContact; it returns the permitted public status rather than staff notes. /desktop/v1/public/messages additionally requires publicRequestMessage. Read the status/response detail and treat a portal-mode or identity refusal as a refusal. Do not remove that gate, expose tracking/contact values in logs or assume that changing PORTAL_MODE commissions a public website. Named staff still use their own authenticated workspace. - -Source contracts: app/desktop_bridge/schemas.py, app/requests/workflow.py, notification service/router/SMTP delivery, and the public desktop bridge routes. Full outer command shapes and endpoint authentication remain in the Records API reference. +Retain the returned tracking information privately. +POST /desktop/v1/public/lookup requires both trackingNumber and matching +requesterContact; it returns the permitted public status rather than +staff notes. /desktop/v1/public/messages additionally requires +publicRequestMessage. Read the status/response detail and treat a +portal-mode or identity refusal as a refusal. Do not remove that gate, +expose tracking/contact values in logs or assume that changing +PORTAL_MODE commissions a public website. Named staff still use their +own authenticated workspace. + +Source contracts: app/desktop_bridge/schemas.py, +app/requests/workflow.py, notification service/router/SMTP delivery, and +the public desktop bridge routes. Full outer command shapes and endpoint +authentication remain in the Records API reference. Technical specifications Runtime and storage -The Windows 1.8.2.1 package has signed fresh-install and 1.8.1.1 upgrade acceptance. Its native shell uses Rust 2021, Tauri 2 and Microsoft WebView2; browser assets are JavaScript built with Vite 8.1.6. This describes the native desktop frontend; Station has a separate React operator, specified below or in its product manual. Canonical business workflows use bundled CPython 3.13.5, FastAPI, Pydantic, SQLAlchemy and Alembic, with PostgreSQL 17 / PostGIS and managed original files. Bundled dependency versions are recorded with the release evidence. Package minimum Python requirements can differ from the bundled executable; the metadata reference preserves both. No stack rewrite is implied by the beta label. - -The native transport is fixed to loopback 127.0.0.1:15480; PostgreSQL uses the configured local runtime port (default 15432). Optional local model service defaults to 127.0.0.1:15434. Those are deployment defaults, not internet endpoints. The runtime has health, module and readiness endpoints; readiness is stronger than process existence. The task queue is the existing local Core task infrastructure, not an assertion that a separate Redis service is required for this desktop composition. - -The default native profile is %LOCALAPPDATA%\CivicSuite; the historical directory name remains part of compatibility. Do not rename it to Townlight. A configured TOWNLIGHT_PROFILE_ROOT must be absolute. Local configuration and secrets live under that profile; protected managed files and database state must be backed up coherently. Source/runtime identity is distinct from a product’s display label. +The Windows 1.8.2.1 package has signed fresh-install and 1.8.1.1 upgrade +acceptance. Its native shell uses Rust 2021, Tauri 2 and Microsoft +WebView2; browser assets are JavaScript built with Vite 8.1.6. This +describes the native desktop frontend; Station has a separate React +operator, specified below or in its product manual. Canonical business +workflows use bundled CPython 3.13.5, FastAPI, Pydantic, SQLAlchemy and +Alembic, with PostgreSQL 17 / PostGIS and managed original files. +Bundled dependency versions are recorded with the release evidence. +Package minimum Python requirements can differ from the bundled +executable; the metadata reference preserves both. No stack rewrite is +implied by the beta label. + +The native transport is fixed to loopback 127.0.0.1:15480; PostgreSQL +uses the configured local runtime port (default 15432). Optional local +model service defaults to 127.0.0.1:15434. Those are deployment +defaults, not internet endpoints. The runtime has health, module and +readiness endpoints; readiness is stronger than process existence. The +task queue is the existing local Core task infrastructure, not an +assertion that a separate Redis service is required for this desktop +composition. + +The default native profile is %LOCALAPPDATA%\CivicSuite; the historical +directory name remains part of compatibility. Do not rename it to +Townlight. A configured TOWNLIGHT_PROFILE_ROOT must be absolute. Local +configuration and secrets live under that profile; protected managed +files and database state must be backed up coherently. Source/runtime +identity is distinct from a product’s display label. Data and consistency -Requests; assignments and deadlines; search sessions; evidence attachments and original hashes; release copies; exemption decisions; messages; fee line items; response approvals; export artifacts and audit events. +Requests; assignments and deadlines; search sessions; evidence +attachments and original hashes; release copies; exemption decisions; +messages; fee line items; response approvals; export artifacts and audit +events. -Versioned saves use expected prior revision identifiers where defined. Reopen and reconcile on conflict. Exact exports and handoffs use source IDs, current visibility, revision and SHA256. Review belongs to the saved revision and does not transfer silently to edited text. Database changes use the owning product’s migrations; a request or readiness check is not an authorization to mutate schema. +Versioned saves use expected prior revision identifiers where defined. +Reopen and reconcile on conflict. Exact exports and handoffs use source +IDs, current visibility, revision and SHA256. Review belongs to the +saved revision and does not transfer silently to edited text. Database +changes use the owning product’s migrations; a request or readiness +check is not an authorization to mutate schema. Capacity and platform statements -This beta has synthetic single-profile workflow evidence. It does not have a published benchmark for concurrent staff capacity, minimum RAM/CPU, large-source limits or a field SLA. Do not turn a developer machine’s specification into a supported minimum. The release download lists the exact MSI size; allow additional disk for extracted runtime, database, originals, exports, media and backups. Select equipment/storage after sizing those actual workloads. +This beta has synthetic single-profile workflow evidence. It does not +have a published benchmark for concurrent staff capacity, minimum +RAM/CPU, large-source limits or a field SLA. Do not turn a developer +machine’s specification into a supported minimum. The release download +lists the exact MSI size; allow additional disk for extracted runtime, +database, originals, exports, media and backups. Select +equipment/storage after sizing those actual workloads. -The exact runtime payload lock records pinned files, sizes and hashes. The component metadata records shipped dependency declarations. These references are more precise than a manually copied dependency list. Third-party and historical license notices must accompany their matching payloads. +The exact runtime payload lock records pinned files, sizes and hashes. +The component metadata records shipped dependency declarations. These +references are more precise than a manually copied dependency list. +Third-party and historical license notices must accompany their matching +payloads. Configuration and administration Native deployment configuration -Use Setup, Settings and System Health for supported staff operation. Administrators provision folders, backup storage, named accounts and the city profile. Select inspections-preview for the bounded desktop composition, including Access and Notice. Station remains a separate service boundary. Do not use a standalone product’s demo server as a substitute for the installed workspace. - -Technical deployments use TOWNLIGHT_PRODUCT_PROFILE, TOWNLIGHT_PROFILE_ROOT, DATABASE_URL, TOWNLIGHT_RUNTIME_PORT, PORTAL_MODE and the runtime-managed secret files. Treat database URLs and native session proofs as secrets. The installed native domain runtime explicitly refuses non-loopback binding. PORTAL_MODE=private is the accepted posture; changing it does not by itself commission an internet portal, authentication provider or reverse proxy. - -The isolated documentation exporter sets a fictional profile and unusable synthetic database origin only to read schemas; those values are not deployment configuration. Keep deployment values in the intended process/account scope. An already-running process does not automatically inherit later environment edits. +Use Setup, Settings and System Health for supported staff operation. +Administrators provision folders, backup storage, named accounts and the +city profile. Select inspections-preview for the bounded desktop +composition, including Access and Notice. Station remains a separate +service boundary. Do not use a standalone product’s demo server as a +substitute for the installed workspace. + +Technical deployments use TOWNLIGHT_PRODUCT_PROFILE, +TOWNLIGHT_PROFILE_ROOT, DATABASE_URL, TOWNLIGHT_RUNTIME_PORT, +PORTAL_MODE and the runtime-managed secret files. Treat database URLs +and native session proofs as secrets. The installed native domain +runtime explicitly refuses non-loopback binding. PORTAL_MODE=private is +the accepted posture; changing it does not by itself commission an +internet portal, authentication provider or reverse proxy. + +The isolated documentation exporter sets a fictional profile and +unusable synthetic database origin only to read schemas; those values +are not deployment configuration. Keep deployment values in the intended +process/account scope. An already-running process does not automatically +inherit later environment edits. Communications and review configuration -SMTP settings include host, port, username/password, sender address and TLS choice. Configure and verify actual delivery only for a deployment that selects external mail. Connector host allowlists and encrypted data-source configuration are separate controls. Records fee schedules concern the records workflow; they do not authorize Permitting to calculate an official permit fee. Keep resident portal posture and self-registration separate from named local staff setup. +SMTP settings include host, port, username/password, sender address and +TLS choice. Configure and verify actual delivery only for a deployment +that selects external mail. Connector host allowlists and encrypted +data-source configuration are separate controls. Records fee schedules +concern the records workflow; they do not authorize Permitting to +calculate an official permit fee. Keep resident portal posture and +self-registration separate from named local staff setup. API and integration examples Native command example -The following JavaScript belongs in the existing trusted Townlight frontend/development environment with invoke imported from @tauri-apps/api/core. It is not a command for an arbitrary web page or an instruction for nontechnical staff. IDs must come from records created in an isolated synthetic exercise. +The following JavaScript belongs in the existing trusted Townlight +frontend/development environment with invoke imported from +@tauri-apps/api/core. It is not a command for an arbitrary web page or +an instruction for nontechnical staff. IDs must come from records +created in an isolated synthetic exercise. import { invoke } from '@tauri-apps/api/core'; const result = await invoke('records_domain_request', {request: {operation: 'view', request_id: requestId}}); @@ -261,7 +600,12 @@ The following JavaScript belongs in the existing trusted Townlight frontend/deve Trusted local HTTP example -An administrator/developer can inspect an already-configured isolated runtime from a trusted local process. This PowerShell example reads the signed-in synthetic profile’s existing proof into memory; it does not create a user, seed a session, reveal the proof in output or bypass a permission check. Do not use real city data in development examples. A read response does not prove approval or publication. +An administrator/developer can inspect an already-configured isolated +runtime from a trusted local process. This PowerShell example reads the +signed-in synthetic profile’s existing proof into memory; it does not +create a user, seed a session, reveal the proof in output or bypass a +permission check. Do not use real city data in development examples. A +read response does not prove approval or publication. $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite' $sessionPath = Join-Path $profilePath 'config\local-session.json' @@ -272,7 +616,11 @@ An administrator/developer can inspect an already-configured isolated runtime fr A synthetic write with subsequent readback -This example demonstrates the existing Meetings HTTP contract in an isolated exercise. It is intentionally fictional. It does not start a service. Its authentication setup is included so it can be run independently under the signed-in synthetic account. If a write times out, inspect current records before repeating it. +This example demonstrates the existing Meetings HTTP contract in an +isolated exercise. It is intentionally fictional. It does not start a +service. Its authentication setup is included so it can be run +independently under the signed-in synthetic account. If a write times +out, inspect current records before repeating it. $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite' $sessionPath = Join-Path $profilePath 'config/local-session.json' @@ -292,156 +640,344 @@ This example demonstrates the existing Meetings HTTP contract in an isolated exe -Headers $headers Remove-Variable session, headers -This write requires Meetings to be enabled and the signed-in staff role to permit it. It is a cross-suite integration example; for this product’s request models, use the complete technical reference below. +This write requires Meetings to be enabled and the signed-in staff role +to permit it. It is a cross-suite integration example; for this +product’s request models, use the complete technical reference below. Complete technical contract -Read the Records API reference for every documented operation, request field, constraint, response declaration and source supplement. Download the OpenAPI JSON for tools. For Station this is the suite-side schema only; its separate service contract is documented in the API supplement. The reference directory includes configuration/source inventories, dependency declarations, native command contracts, MCP signatures and candidate evidence. +Read the Records API reference for every documented operation, request +field, constraint, response declaration and source supplement. Download +the OpenAPI JSON for tools. For Station this is the suite-side schema +only; its separate service contract is documented in the API supplement. +The reference directory includes configuration/source inventories, +dependency declarations, native command contracts, MCP signatures and +candidate evidence. MCP and automation boundary -No direct product MCP server is exposed by the accepted Townlight desktop or Station boundary. Do not configure an invented townlight mcp command or assume an AI client has staff permissions. The integration surfaces for this beta are native IPC, the documented HTTP APIs, source bundle imports, exact exports and the existing Station CLI. +No direct product MCP server is exposed by the accepted Townlight +desktop or Station boundary. Do not configure an invented townlight mcp +command or assume an AI client has staff permissions. The integration +surfaces for this beta are native IPC, the documented HTTP APIs, source +bundle imports, exact exports and the existing Station CLI. -The bundled transcription code includes a TextFlowKit MCP adapter as a separate source capability. It offers job-based transcribe_media, get_transcript, list_jobs, get_job_status and export_transcript, and additional tools declared in that adapter. It uses stdio first and optional Streamable HTTP, with the MCP SDK as an optional extra. It is not automatically launched, authenticated as Townlight staff or accepted as a Townlight product MCP deployment. This documentation does not add such a service. +The bundled transcription code includes a TextFlowKit MCP adapter as a +separate source capability. It offers job-based transcribe_media, +get_transcript, list_jobs, get_job_status and export_transcript, and +additional tools declared in that adapter. It uses stdio first and +optional Streamable HTTP, with the MCP SDK as an optional extra. It is +not automatically launched, authenticated as Townlight staff or accepted +as a Townlight product MCP deployment. This documentation does not add +such a service. -For a transcription client already provisioned separately, an illustrative tool call is: +For a transcription client already provisioned separately, an +illustrative tool call is: {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}} -Use a job ID returned by that transcription service. This example does not create a Townlight record or bypass its review/Records handoff. The exact optional adapter tool signatures are supplied in the MCP source reference. Station meeting capture does not become live speech recognition because this optional donor adapter exists. +Use a job ID returned by that transcription service. This example does +not create a Townlight record or bypass its review/Records handoff. The +exact optional adapter tool signatures are supplied in the MCP source +reference. Station meeting capture does not become live speech +recognition because this optional donor adapter exists. Security and permissions -Use your own named account and save before leaving a screen. A saved draft is durable; unsaved form text may not be. If a write has an unknown result, reopen its record before repeating it. - -Read source jurisdiction, dates, citation, version and visibility. A copied source hash identifies exact bytes, not their legal applicability. If a source changes or permission is removed, resolve the source problem rather than substituting stale cached content. - -Keep originals and derivatives separate. Review the intended audience before export. A public summary excludes private fields only through the applicable copy contract and your review. A renamed private packet is still private content. - -Drafting, review, approval, attachment, export, fulfillment and publication are separate operations. A Townlight workpaper does not itself adopt law, issue a permit, impose a fine or release a records response. The responsible staff member records the applicable decision. - -The native session is validated and mapped to a persisted SQL identity. An editable actor/reviewer label is not authentication. Product/module permissions and source visibility apply at the server boundary. Revoked/unavailable authority fails closed for new Station operations; a previous permission result is not a perpetual authorization. - -Use protected local folders, account permissions and credential storage. Never include the native session file, database passwords, provider keys or unredacted support bundles in a public issue or generated public documentation. A local public view is not automatically a secured internet deployment. Keep network exposure and real equipment acceptance specific to the chosen beta site. +Use your own named account and save before leaving a screen. A saved +draft is durable; unsaved form text may not be. If a write has an +unknown result, reopen its record before repeating it. + +Read source jurisdiction, dates, citation, version and visibility. A +copied source hash identifies exact bytes, not their legal +applicability. If a source changes or permission is removed, resolve the +source problem rather than substituting stale cached content. + +Keep originals and derivatives separate. Review the intended audience +before export. A public summary excludes private fields only through the +applicable copy contract and your review. A renamed private packet is +still private content. + +Drafting, review, approval, attachment, export, fulfillment and +publication are separate operations. A Townlight workpaper does not +itself adopt law, issue a permit, impose a fine or release a records +response. The responsible staff member records the applicable decision. + +The native session is validated and mapped to a persisted SQL identity. +An editable actor/reviewer label is not authentication. Product/module +permissions and source visibility apply at the server boundary. +Revoked/unavailable authority fails closed for new Station operations; a +previous permission result is not a perpetual authorization. + +Use protected local folders, account permissions and credential storage. +Never include the native session file, database passwords, provider keys +or unredacted support bundles in a public issue or generated public +documentation. A local public view is not automatically a secured +internet deployment. Keep network exposure and real equipment acceptance +specific to the chosen beta site. Backup recovery and maintenance -Save work and use Core’s canonical Backup Now before maintenance. That operation stops writers. Preserve the coherent profile/database/document backup and its receipt, then use Start to resume. A source export is not a full backup. - -Use Restore Latest Backup through the supported controls. If the result says Restore needs service start, use Start, then Check, and reopen a known record. Do not repeat restore merely because services need to start. The Windows 1.6.0.1 Beta 1 fresh-install acceptance verified that a fulfilled request survived restore and a post-backup marker did not. - -Keep Station’s dedicated database and media evidence together in its own backup. Core’s native-profile backup must not be assumed to include an external Station data directory. Stop writers during a coordinated backup. Preserve failed media attempts and logs. - -On failure, record the time, selected composition, component/installer versions and exact message. Check System Health for stopped, starting, ready or failed dependencies. Use the existing Retry control after readiness; do not create duplicate business records to refresh a stale view. Share only a redacted diagnostic bundle. Preserve secrets, original evidence, recovery material and unrelated installations. +Save work and use Core’s canonical Backup Now before maintenance. That +operation stops writers. Preserve the coherent profile/database/document +backup and its receipt, then use Start to resume. A source export is not +a full backup. + +Use Restore Latest Backup through the supported controls. If the result +says Restore needs service start, use Start, then Check, and reopen a +known record. Do not repeat restore merely because services need to +start. The Windows 1.6.0.1 Beta 1 fresh-install acceptance verified that +a fulfilled request survived restore and a post-backup marker did not. + +Keep Station’s dedicated database and media evidence together in its own +backup. Core’s native-profile backup must not be assumed to include an +external Station data directory. Stop writers during a coordinated +backup. Preserve failed media attempts and logs. + +On failure, record the time, selected composition, component/installer +versions and exact message. Check System Health for stopped, starting, +ready or failed dependencies. Use the existing Retry control after +readiness; do not create duplicate business records to refresh a stale +view. Share only a redacted diagnostic bundle. Preserve secrets, +original evidence, recovery material and unrelated installations. Troubleshooting - --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Symptom Likely meaning Next action - ----------------------------- ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------- - Workspace absent Wrong product composition or unavailable canonical runtime. Check selected composition; activate through Finish Records Migration; wait for readiness. - - Cannot sign in / 401 Missing or expired named account session. Sign in normally; reopen a Station launch ticket if applicable. - - Permission denied / 403 Account, module, source or browser-origin permission. Ask the authorized administrator to inspect the intended permission; do not invent role headers. - - Save conflict / 409 The saved revision, expected source hash or lifecycle changed. Keep edits, reopen current state and reconcile deliberately. - - Invalid input / 422 Required field, format, geometry, source envelope or state is invalid. Read the field detail and correct the input/source; preserve originals. - - Service unavailable / 503 Database, schema, connected source or configuration unavailable. Inspect System Health and the named dependency. Preserve work; retry only after readiness. - - Export refused Missing exact review, approval, audience or source authorization. Read the refusal and complete the owning product’s explicit decision. - - Restore needs service start The snapshot was restored but services have not resumed. Use Start, then Check and verify a saved record; do not blindly repeat restore. - --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------- + Symptom Likely meaning Next action + ----------------------- ----------------------- ----------------------- + Workspace absent Wrong product Check selected + composition or composition; activate + unavailable canonical through Finish Records + runtime. Migration; wait for + readiness. + + Cannot sign in / 401 Missing or expired Sign in normally; + named account session. reopen a Station launch + ticket if applicable. + + Permission denied / 403 Account, module, source Ask the authorized + or browser-origin administrator to + permission. inspect the intended + permission; do not + invent role headers. + + Save conflict / 409 The saved revision, Keep edits, reopen + expected source hash or current state and + lifecycle changed. reconcile deliberately. + + Invalid input / 422 Required field, format, Read the field detail + geometry, source and correct the + envelope or state is input/source; preserve + invalid. originals. + + Service unavailable / Database, schema, Inspect System Health + 503 connected source or and the named + configuration dependency. Preserve + unavailable. work; retry only after + readiness. + + Export refused Missing exact review, Read the refusal and + approval, audience or complete the owning + source authorization. product’s explicit + decision. + + Restore needs service The snapshot was Use Start, then Check + start restored but services and verify a saved + have not resumed. record; do not blindly + repeat restore. + ----------------------------------------------------------------------- Verified workflows and limits -The table records selected synthetic workflows from the original Windows 1.6.0.1 Beta 1 Sandbox run. Station’s later delivery has separate Windows 1.6.0.1 acceptance. See the Windows 1.8.0.1 acceptance summary for the workflows and upgrade path exercised on the previous 1.8.0.1 MSI. +The table records selected synthetic workflows from the original Windows +1.6.0.1 Beta 1 Sandbox run. Station’s later delivery has separate +Windows 1.6.0.1 acceptance. See the Windows 1.8.0.1 acceptance summary +for the workflows and upgrade path exercised on the previous 1.8.0.1 +MSI. - --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------- Product Recorded result Precisely exercised - ----------------------- ----------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Records PASS Intake, note, original attachment/readback, separate release copy, explicit release decision, draft/approval, approved response and release package exports, fulfillment/readback and native workspace. - - --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - -The Windows 1.8.0.1 acceptance covers the tested installation paths and selected synthetic workflows, including Boards & Commissions, Contracts, and Procurement. Earlier results apply to their original builds. City field acceptance, physical equipment and network commissioning, Station automatic provisioning, and comprehensive UI and role coverage remain outside the 1.8.0.1 checks. + ----------------------- ----------------------- ----------------------- + Records PASS Intake, note, original + attachment/readback, + separate release copy, + explicit release + decision, + draft/approval, + approved response and + release package + exports, + fulfillment/readback + and native workspace. + + ----------------------------------------------------------------------- + +The Windows 1.8.0.1 acceptance covers the tested installation paths and +selected synthetic workflows, including Boards & Commissions, Contracts, +and Procurement. Earlier results apply to their original builds. City +field acceptance, physical equipment and network commissioning, Station +automatic provisioning, and comprehensive UI and role coverage remain +outside the 1.8.0.1 checks. Terms of service and license Scope and status -These terms describe the Townlight Beta 1 software and this documentation package. This public Windows beta is for evaluation. No uptime commitment, support response time, indemnity, data-processing agreement or paid service is created by these documents. A separate signed agreement, if any, governs services it actually provides. +These terms describe the Townlight Beta 1 software and this +documentation package. This public Windows beta is for evaluation. No +uptime commitment, support response time, indemnity, data-processing +agreement or paid service is created by these documents. A separate +signed agreement, if any, governs services it actually provides. Software license and rights -Current Townlight-owned distributions identified in this candidate use AGPL-3.0-only. The full license is supplied with this documentation and with the source companion. The license governs rights to run, copy, modify and convey the covered software; these operational terms do not add restrictions to those rights. Historical grants and dependency licenses retain their own terms. CivicCast remains a separate product and is not relicensed by this documentation work. - -When conveying covered software, retain applicable notices and provide the corresponding source and installation/build information required by the license. For a modified version supporting remote network interaction, follow section 13’s source-offer requirement. The companion archive identifies the source for this candidate; a link to a different public branch is not a substitute for the matching source. Read the supplied license for the complete conditions. See the GNU license reference and GNU licensing FAQ. +Current Townlight-owned distributions identified in this candidate use +AGPL-3.0-only. The full license is supplied with this documentation and +with the source companion. The license governs rights to run, copy, +modify and convey the covered software; these operational terms do not +add restrictions to those rights. Historical grants and dependency +licenses retain their own terms. CivicCast remains a separate product +and is not relicensed by this documentation work. + +When conveying covered software, retain applicable notices and provide +the corresponding source and installation/build information required by +the license. For a modified version supporting remote network +interaction, follow section 13’s source-offer requirement. The companion +archive identifies the source for this candidate; a link to a different +public branch is not a substitute for the matching source. Read the +supplied license for the complete conditions. See the GNU license +reference and GNU licensing FAQ. Data ownership and access -Importing a document does not transfer its ownership or grant permission to publish it. The operating organization controls its accounts, access decisions, lawful source use, retention and review/release policy. Keep resident information, credentials, private notes and restricted evidence in their authorized locations. Documentation examples contain fictional data. No real city account, credential or record is required to exercise these examples in an isolated test environment. +Importing a document does not transfer its ownership or grant permission +to publish it. The operating organization controls its accounts, access +decisions, lawful source use, retention and review/release policy. Keep +resident information, credentials, private notes and restricted evidence +in their authorized locations. Documentation examples contain fictional +data. No real city account, credential or record is required to exercise +these examples in an isolated test environment. Local operation and external processors -The accepted beta workflow is local and uses named staff accounts. Station has separate storage and credentials. Configure backup destinations and optional model/network providers deliberately. A configured external provider may receive submitted prompts, images or audio according to that configuration and provider’s terms; this documentation does not promise that every optional configuration is offline. An email outbox or local public view does not establish external delivery or an internet deployment. This static documentation site has no analytics, account collection or remote font dependency. +The accepted beta workflow is local and uses named staff accounts. +Station has separate storage and credentials. Configure backup +destinations and optional model/network providers deliberately. A +configured external provider may receive submitted prompts, images or +audio according to that configuration and provider’s terms; this +documentation does not promise that every optional configuration is +offline. An email outbox or local public view does not establish +external delivery or an internet deployment. This static documentation +site has no analytics, account collection or remote font dependency. Staff decisions and source applicability -Staff verify the jurisdiction, source currency, permissions, citations and proposed audience. Model output and generated guidance require review. No draft is automatically an official legal interpretation, zoning determination, permit approval, fee assessment, enforcement notice or records-release decision. Official permit fee authority remains with the adopted source and responsible organization; imported amounts do not become a new authoritative calculation. +Staff verify the jurisdiction, source currency, permissions, citations +and proposed audience. Model output and generated guidance require +review. No draft is automatically an official legal interpretation, +zoning determination, permit approval, fee assessment, enforcement +notice or records-release decision. Official permit fee authority +remains with the adopted source and responsible organization; imported +amounts do not become a new authoritative calculation. Beta operation and recovery -Windows 1.8.0.1 was tested for fresh installation and in-place upgrade from 1.7.2.1. Upgrade paths from versions older than 1.7.2.1 are unverified. Station uses its separately configured service. Keep backups and original evidence. Test your physical equipment and network and service configuration before relying on them. See the acceptance summary for the tested paths. +Windows 1.8.0.1 was tested for fresh installation and in-place upgrade +from 1.7.2.1. Upgrade paths from versions older than 1.7.2.1 are +unverified. Station uses its separately configured service. Keep backups +and original evidence. Test your physical equipment and network and +service configuration before relying on them. See the acceptance summary +for the tested paths. Warranty and liability -The covered software’s warranty and liability conditions are those in sections 15–17 of the supplied AGPL and any applicable separate written undertaking. This documentation creates no additional warranty or limitation beyond those terms. Third-party software is subject to its retained license notices. Nothing here removes rights that applicable law makes nonwaivable. +The covered software’s warranty and liability conditions are those in +sections 15–17 of the supplied AGPL and any applicable separate written +undertaking. This documentation creates no additional warranty or +limitation beyond those terms. Third-party software is subject to its +retained license notices. Nothing here removes rights that applicable +law makes nonwaivable. Support and incident reporting -Use the project’s existing SUPPORT and SECURITY guidance for its matching repository. Report reproducible behavior with the version, operation and redacted logs. Do not put credentials, resident records or unredacted evidence in a public issue. Coordinate sensitive reports through the channel designated in SECURITY. No new support address or service commitment is invented here. +Use the project’s existing SUPPORT and SECURITY guidance for its +matching repository. Report reproducible behavior with the version, +operation and redacted logs. Do not put credentials, resident records or +unredacted evidence in a public issue. Coordinate sensitive reports +through the channel designated in SECURITY. No new support address or +service commitment is invented here. Ending a beta exercise and document changes -When an organization ends testing, it controls retention/export and removes access according to its policy. Uninstall may retain data; back up and inspect the selected removal options. Ending an exercise does not revoke rights already granted by AGPL. Later software/documentation versions must identify their changed candidate and scope; historical receipts retain their original identities. These terms do not claim that a city has accepted a contract merely by reading a manual. +When an organization ends testing, it controls retention/export and +removes access according to its policy. Uninstall may retain data; back +up and inspect the selected removal options. Ending an exercise does not +revoke rights already granted by AGPL. Later software/documentation +versions must identify their changed candidate and scope; historical +receipts retain their original identities. These terms do not claim that +a city has accepted a contract merely by reading a manual. Glossary - --------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------- Term Meaning - ----------------------------------- --------------------------------------------------------------------------------------------------------------------- - Approval An explicit authorized decision on the saved text/artifact. It is separate from saving or attachment. + ----------------------------------- ----------------------------------- + Approval An explicit authorized decision on + the saved text/artifact. It is + separate from saving or attachment. - Canonical record The owning product’s retained identity and saved version, rather than an editable copied label. + Canonical record The owning product’s retained + identity and saved version, rather + than an editable copied label. - Composition The selected set of desktop modules; inspections-preview exposes the eight staff products. + Composition The selected set of desktop + modules; inspections-preview + exposes the eight staff products. - Corresponding source The source/build material matching the delivered covered program, subject to its license. + Corresponding source The source/build material matching + the delivered covered program, + subject to its license. - Derivative / Records copy A separately prepared document with its own intended audience and hash. + Derivative / Records copy A separately prepared document with + its own intended audience and hash. - Hash / SHA256 A fingerprint of exact bytes. It detects change; it does not establish legal authority. + Hash / SHA256 A fingerprint of exact bytes. It + detects change; it does not + establish legal authority. - Idempotency Repeating the same identified request has the same intended effect; changing its payload can be refused. + Idempotency Repeating the same identified + request has the same intended + effect; changing its payload can be + refused. - IPC The native desktop command boundary between its browser interface and Rust host. + IPC The native desktop command boundary + between its browser interface and + Rust host. - MCP Model Context Protocol; no direct Townlight product server is enabled by this beta. + MCP Model Context Protocol; no direct + Townlight product server is enabled + by this beta. - Original Retained source bytes. A reviewed derivative does not replace them. + Original Retained source bytes. A reviewed + derivative does not replace them. - Provenance Source, version, date, actor and relationship information retained with evidence. + Provenance Source, version, date, actor and + relationship information retained + with evidence. - Revision An immutable saved version. Later edits do not inherit an earlier review automatically. + Revision An immutable saved version. Later + edits do not inherit an earlier + review automatically. - Snapshot A fixed audience-specific copy tied to a source/reviewed revision. + Snapshot A fixed audience-specific copy tied + to a source/reviewed revision. - Station Townlight’s separate media boundary using a pinned CivicCast-derived engine; standalone CivicCast remains separate. - --------------------------------------------------------------------------------------------------------------------------------------------------------- + Station Townlight’s separate media boundary + using a pinned CivicCast-derived + engine; standalone CivicCast + remains separate. + ----------------------------------------------------------------------- Alphabetical subject index @@ -466,15 +1002,22 @@ Alphabetical subject index Operating subject links -- Configure templates and inspect the outbox — Configure templates and inspect the outbox. -- Exercise existing local public intake and tracking — Exercise existing local public intake and tracking. -- Fees messages notifications and local intake — Fees messages notifications and local intake. +- Configure templates and inspect the outbox — Configure templates and + inspect the outbox. +- Exercise existing local public intake and tracking — Exercise existing + local public intake and tracking. +- Fees messages notifications and local intake — Fees messages + notifications and local intake. - Record a fee line or waiver — Record a fee line or waiver. - Save staff and requester messages — Save staff and requester messages. Source and document control -This edition is authored from the immutable corresponding-source companion, the generated installed-domain schema and the retained workflow receipts. The current software versions and signed artifacts are unchanged. Public historical pages are not synchronized or published by this local documentation task. +This edition is authored from the immutable corresponding-source +companion, the generated installed-domain schema and the retained +workflow receipts. The current software versions and signed artifacts +are unchanged. Public historical pages are not synchronized or published +by this local documentation task. Workflow subject index @@ -502,4 +1045,5 @@ Workflow subject index - Full AGPL text -The resident portal is deployed separately. See the Townlight Portal Guide for its workflow and acceptance limits. +The resident portal is deployed separately. See the Townlight Portal +Guide for its workflow and acceptance limits. diff --git a/backend/alembic/versions/028_document_file_size_bigint.py b/backend/alembic/versions/028_document_file_size_bigint.py new file mode 100644 index 0000000..5194227 --- /dev/null +++ b/backend/alembic/versions/028_document_file_size_bigint.py @@ -0,0 +1,38 @@ +"""Store document sizes beyond the PostgreSQL integer range. + +Revision ID: 028_document_file_size_bigint +Revises: 027_import_artifact_order +""" +from alembic import op +import sqlalchemy as sa + + +revision = "028_document_file_size_bigint" +down_revision = "027_import_artifact_order" +branch_labels = None +depends_on = None + + +def upgrade() -> None: + op.alter_column( + "documents", + "file_size", + existing_type=sa.Integer(), + type_=sa.BigInteger(), + existing_nullable=False, + existing_server_default="0", + ) + + +def downgrade() -> None: + # PostgreSQL performs the int8 -> int4 rewrite transactionally and aborts + # if any value is out of int4 range; the rollback retains all data, so no + # truncation is performed here. + op.alter_column( + "documents", + "file_size", + existing_type=sa.BigInteger(), + type_=sa.Integer(), + existing_nullable=False, + existing_server_default="0", + ) diff --git a/backend/pyproject.toml b/backend/pyproject.toml index d07edb1..be6ba5c 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "townlight-records" -version = "1.8.0.dev3" +version = "1.8.0.dev4" description = "Open-source AI-powered open records support for American cities" requires-python = ">=3.12" license = "AGPL-3.0-only" diff --git a/backend/tests/test_station_storage_contract.py b/backend/tests/test_station_storage_contract.py new file mode 100644 index 0000000..dc285f6 --- /dev/null +++ b/backend/tests/test_station_storage_contract.py @@ -0,0 +1,33 @@ +"""Large recorder receipts and explicit first-run pairing, without allocating GiB fixtures.""" +import json +import pytest +from fastapi import HTTPException +from pydantic import ValidationError +from townlight_records.desktop_bridge.schemas import ManagedFileReceipt +from townlight_records.desktop_bridge.station import station_url + + +def test_large_managed_receipt_preserves_size_without_32_bit_truncation(): + value = dict(original_path='station://fixture', stored_path='recording.ts', file_name='recording.ts', sha256='a'*64, size_bytes=3*1024**3) + assert ManagedFileReceipt(**value).size_bytes == 3*1024**3 + for size in (64*1024**3+1, -1, True, '3000000000'): + with pytest.raises(ValidationError): + ManagedFileReceipt(**{**value, 'size_bytes': size}) + + +def test_setup_pairing_is_required_and_malformed_pairing_fails_closed(tmp_path, monkeypatch): + monkeypatch.delenv('TOWNLIGHT_STATION_URL', raising=False) + monkeypatch.setenv('TOWNLIGHT_PROFILE_ROOT', str(tmp_path)) + pairing = tmp_path/'config/station.json' + pairing.parent.mkdir() + with pytest.raises(HTTPException) as error: + station_url() + assert error.value.status_code == 503 + pairing.write_text(json.dumps({'configured': True})) + assert station_url() == 'http://127.0.0.1:8756' + pairing.write_text('corrupt') + with pytest.raises(HTTPException) as error: + station_url() + assert error.value.status_code == 503 + monkeypatch.setenv('TOWNLIGHT_STATION_URL', 'http://127.0.0.1:18756') + assert station_url() == 'http://127.0.0.1:18756' diff --git a/backend/tests/test_townlight_core_migration_gates.py b/backend/tests/test_townlight_core_migration_gates.py index b12bf74..eb36a63 100644 --- a/backend/tests/test_townlight_core_migration_gates.py +++ b/backend/tests/test_townlight_core_migration_gates.py @@ -109,9 +109,9 @@ # alembic_version_townlight_core so the upgrade path runs from a properly stamped # starting point — a real v1.3.0 operator's DB always has this row. TOWNLIGHT_CORE_V1_3_0_STARTING_REV: Final[str] = "townlight_core_0001" -# Records convergence adds migrations 022 through 027 after first-login +# Records adds migrations 022 through 028 after first-login # hardening. The historical v1.3.0 fixture still starts at 019. -RECORDS_HEAD_REV: Final[str] = "027_import_artifact_order" +RECORDS_HEAD_REV: Final[str] = "028_document_file_size_bigint" # v1.3.0 tag's records-side alembic head, captured 2026-04-25 from the v1.3.0 # git worktree using a Postgres testcontainer + pg_dump --schema-only. Source of diff --git a/backend/townlight_records/desktop_bridge/schemas.py b/backend/townlight_records/desktop_bridge/schemas.py index d45fe28..6562e13 100644 --- a/backend/townlight_records/desktop_bridge/schemas.py +++ b/backend/townlight_records/desktop_bridge/schemas.py @@ -355,7 +355,7 @@ class ManagedFileReceipt(NativePayload): stored_path: str = Field(min_length=1) file_name: str = Field(min_length=1, max_length=500) sha256: str = Field(pattern=r"^[0-9a-f]{64}$") - size_bytes: int = Field(ge=0, le=2147483647, strict=True) + size_bytes: int = Field(ge=0, le=64 * 1024**3, strict=True) class AttachDocument(NativePayload): diff --git a/backend/townlight_records/desktop_bridge/station.py b/backend/townlight_records/desktop_bridge/station.py index 9bb6f11..9c81b96 100644 --- a/backend/townlight_records/desktop_bridge/station.py +++ b/backend/townlight_records/desktop_bridge/station.py @@ -5,6 +5,7 @@ import sys from pathlib import Path import tempfile +import shutil from typing import Literal from urllib.parse import urlsplit from uuid import UUID, NAMESPACE_URL, uuid5 @@ -26,11 +27,24 @@ from townlight_records.audit.logger import write_audit_log router = APIRouter(tags=['station-integration']) -MAX_BYTES = 2_147_483_647 +MAX_BYTES = 64 * 1024**3 def station_url(): value = os.environ.get('TOWNLIGHT_STATION_URL', '').rstrip('/') + if not value: + profile = os.environ.get('TOWNLIGHT_PROFILE_ROOT') + if profile: + # Setup writes only the pairing, never the recorder's database credentials. + pairing = Path(profile)/'config/station.json' + if pairing.is_file(): + import json + try: + data = json.loads(pairing.read_text(encoding='utf-8')) + except (OSError, ValueError): + raise HTTPException(503, 'Station pairing is unreadable; retry recorder setup') from None + if isinstance(data, dict) and data.get('configured') is True: + value = 'http://127.0.0.1:8756' parsed = urlsplit(value) if (not parsed.hostname or parsed.username or parsed.password or parsed.query or parsed.fragment or parsed.path or (parsed.scheme != 'https' and not @@ -89,7 +103,7 @@ async def attach(request_id: UUID, data: Selection, request: Request, temporary = None try: async with httpx.AsyncClient(base_url=station_url(), trust_env=False, - follow_redirects=False, timeout=httpx.Timeout(30, read=120)) as client: + follow_redirects=False, timeout=httpx.Timeout(30, read=1800)) as client: headers = {'X-Townlight-Session': proof} response = await client.get(f'/v1/recordings/{data.recording_id}', headers=headers) if response.status_code in (401, 403, 404): @@ -104,6 +118,8 @@ async def attach(request_id: UUID, data: Selection, request: Request, identity = uuid5(NAMESPACE_URL, f'{request_id}:{data.recording_id}:{data.expected_sha256}') directory = files.managed_records_root(request.app.state.desktop_profile_root) / 'station' / str(identity) directory.mkdir(parents=True, exist_ok=True) + if shutil.disk_usage(directory).free < detail['size_bytes'] + 1024**3: + raise HTTPException(507, 'Insufficient Records storage space for this recording; free space and retry') destination = directory / 'recording.ts' # Staging is generated by Records, never a client-supplied path. with tempfile.NamedTemporaryFile(dir=directory, prefix='incoming-', delete=False) as out: diff --git a/backend/townlight_records/models/document.py b/backend/townlight_records/models/document.py index 799ea35..eb7c27d 100644 --- a/backend/townlight_records/models/document.py +++ b/backend/townlight_records/models/document.py @@ -5,7 +5,7 @@ from pgvector.sqlalchemy import Vector from sqlalchemy import ( - Boolean, DateTime, Enum, ForeignKey, Index, Integer, + BigInteger, Boolean, DateTime, Enum, ForeignKey, Index, Integer, String, Text, TypeDecorator, func, ) from sqlalchemy.dialects.postgresql import JSONB, UUID @@ -116,7 +116,7 @@ class Document(Base): filename: Mapped[str] = mapped_column(String(500)) file_type: Mapped[str] = mapped_column(String(50)) file_hash: Mapped[str] = mapped_column(String(64), index=True) - file_size: Mapped[int] = mapped_column(Integer, default=0) + file_size: Mapped[int] = mapped_column(BigInteger, default=0) ingestion_status: Mapped[IngestionStatus] = mapped_column(Enum(IngestionStatus, name="ingestion_status", create_type=False, values_callable=lambda e: [m.value for m in e]), default=IngestionStatus.PENDING) ingestion_error: Mapped[str | None] = mapped_column(Text, nullable=True) chunk_count: Mapped[int] = mapped_column(Integer, default=0) diff --git a/docs/beta-1/api/station-recorder-candidate-openapi.json b/docs/beta-1/api/station-recorder-candidate-openapi.json new file mode 100644 index 0000000..d268876 --- /dev/null +++ b/docs/beta-1/api/station-recorder-candidate-openapi.json @@ -0,0 +1,2359 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "Townlight Station", + "version": "0.4.0", + "description": "Unpublished Windows 1.9.0.1 / Station 0.4.0 candidate. Source API contract; installed acceptance is recorded separately." + }, + "paths": { + "/health": { + "get": { + "summary": "Health", + "operationId": "health_health_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + } + } + }, + "/v1/identity": { + "get": { + "summary": "Identity", + "operationId": "identity_v1_identity_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/recordings": { + "post": { + "summary": "Capture", + "operationId": "capture_v1_recordings_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Capture" + } + } + } + }, + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "get": { + "summary": "List Records", + "operationId": "list_records_v1_recordings_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/recordings/{identity}": { + "get": { + "summary": "Get Record", + "operationId": "get_record_v1_recordings__identity__get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/recordings/{identity}/content": { + "get": { + "summary": "Content", + "operationId": "content_v1_recordings__identity__content_get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/recordings/{identity}/retry": { + "post": { + "summary": "Retry", + "operationId": "retry_v1_recordings__identity__retry_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/live-sources": { + "get": { + "summary": "Live Sources", + "operationId": "live_sources_v1_live_sources_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/recordings/{identity}/stop": { + "post": { + "summary": "Stop Live", + "operationId": "stop_live_v1_recordings__identity__stop_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/civiccast-feeds": { + "get": { + "summary": "Catalog", + "operationId": "catalog_v1_civiccast_feeds_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/recordings/{identity}/youtube": { + "post": { + "summary": "Upload", + "operationId": "upload_v1_recordings__identity__youtube_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Upload" + } + } + } + }, + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/youtube-uploads": { + "get": { + "summary": "List Uploads", + "operationId": "list_uploads_v1_youtube_uploads_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/youtube-uploads/{identity}/retry": { + "post": { + "summary": "Retry", + "operationId": "retry_v1_youtube_uploads__identity__retry_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/schedules": { + "post": { + "summary": "Create Schedule", + "operationId": "create_schedule_v1_schedules_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScheduleRequest" + } + } + } + }, + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "get": { + "summary": "List Schedules", + "operationId": "list_schedules_v1_schedules_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/schedules/{identity}/cancel": { + "post": { + "summary": "Cancel Schedule", + "operationId": "cancel_schedule_v1_schedules__identity__cancel_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/playouts": { + "post": { + "summary": "Create Playout", + "operationId": "create_playout_v1_playouts_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlayoutRequest" + } + } + } + }, + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "get": { + "summary": "List Playouts", + "operationId": "list_playouts_v1_playouts_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/playouts/{identity}": { + "get": { + "summary": "Get Playout", + "operationId": "get_playout_v1_playouts__identity__get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/on-air": { + "get": { + "summary": "On Air", + "operationId": "on_air_v1_on_air_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/on-air/live": { + "post": { + "summary": "Live Override", + "description": "Put a configured live input on air, in place of the scheduled program.", + "operationId": "live_override_v1_on_air_live_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LiveOverrideRequest" + } + } + } + }, + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/on-air/return-to-schedule": { + "post": { + "summary": "Return To Schedule", + "operationId": "return_to_schedule_v1_on_air_return_to_schedule_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/playouts/{identity}/approve": { + "post": { + "summary": "Approve", + "operationId": "approve_v1_playouts__identity__approve_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequest" + } + } + } + }, + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/playouts/{identity}/publish": { + "post": { + "summary": "Publish", + "operationId": "publish_v1_playouts__identity__publish_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "202": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/public/playback/{identity}": { + "get": { + "summary": "Public Playback", + "operationId": "public_playback_v1_public_playback__identity__get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/public/playback/{identity}/captions": { + "get": { + "summary": "Public Captions", + "operationId": "public_captions_v1_public_playback__identity__captions_get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/public/playback/{identity}/program": { + "get": { + "summary": "Public Program", + "operationId": "public_program_v1_public_playback__identity__program_get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/v1/operator-ticket": { + "post": { + "summary": "Issue", + "operationId": "issue_v1_operator_ticket_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/session": { + "post": { + "summary": "Exchange", + "operationId": "exchange_operator_session_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Ticket" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/logout": { + "post": { + "summary": "Logout", + "operationId": "logout_operator_logout_post", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + } + } + }, + "/operator/renew": { + "post": { + "summary": "Renew", + "operationId": "renew_operator_renew_post", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + } + } + }, + "/operator/devices": { + "get": { + "summary": "Device List", + "operationId": "device_list_operator_devices_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "post": { + "summary": "Select Devices", + "operationId": "select_devices_operator_devices_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeviceSelection" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/input-test": { + "post": { + "summary": "Test Inputs", + "operationId": "test_inputs_operator_input_test_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/input-test/content": { + "get": { + "summary": "Input Preview", + "operationId": "input_preview_operator_input_test_content_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/storage": { + "get": { + "summary": "Capacity", + "operationId": "capacity_operator_storage_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/catalog": { + "get": { + "summary": "Catalog", + "operationId": "catalog_operator_catalog_get", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/meeting/{identity}": { + "get": { + "summary": "Meeting", + "operationId": "meeting_operator_meeting__identity__get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/meeting/{identity}/imported-recordings": { + "get": { + "summary": "Imported Recordings", + "operationId": "imported_recordings_operator_meeting__identity__imported_recordings_get", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "post": { + "summary": "Stage Imported Recording", + "operationId": "stage_imported_recording_operator_meeting__identity__imported_recordings_post", + "parameters": [ + { + "name": "identity", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity" + } + }, + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImportedRecording" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/operator/handoff": { + "post": { + "summary": "Handoff", + "operationId": "handoff_operator_handoff_post", + "parameters": [ + { + "name": "X-Townlight-Session", + "in": "header", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "X-Townlight-Session" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Handoff" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/": { + "get": { + "summary": "Page", + "operationId": "page__get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + } + } + }, + "/operator.js": { + "get": { + "summary": "Script", + "operationId": "script_operator_js_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + } + } + }, + "/operator.css": { + "get": { + "summary": "Style", + "operationId": "style_operator_css_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ApprovalRequest": { + "properties": { + "note": { + "type": "string", + "maxLength": 500, + "minLength": 3, + "title": "Note" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "note" + ], + "title": "ApprovalRequest" + }, + "Capture": { + "properties": { + "meeting_id": { + "type": "string", + "format": "uuid", + "title": "Meeting Id" + }, + "agenda_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100, + "title": "Agenda Ids" + }, + "source_file": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,180}$" + }, + { + "type": "null" + } + ], + "title": "Source File" + }, + "live_source_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9_-]{1,64}$" + }, + { + "type": "null" + } + ], + "title": "Live Source Id" + }, + "civiccast_feed_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9_-]{1,64}$" + }, + { + "type": "null" + } + ], + "title": "Civiccast Feed Id" + }, + "captions_file": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,180}\\.srt$" + }, + { + "type": "null" + } + ], + "title": "Captions File" + }, + "idempotency_key": { + "type": "string", + "maxLength": 100, + "minLength": 1, + "title": "Idempotency Key" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "meeting_id", + "idempotency_key" + ], + "title": "Capture" + }, + "DeviceSelection": { + "properties": { + "video_id": { + "type": "string", + "pattern": "^[a-f0-9]{64}$", + "title": "Video Id" + }, + "audio_id": { + "type": "string", + "pattern": "^[a-f0-9]{64}$", + "title": "Audio Id" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "video_id", + "audio_id" + ], + "title": "DeviceSelection" + }, + "HTTPValidationError": { + "properties": { + "detail": { + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "type": "array", + "title": "Detail" + } + }, + "type": "object", + "title": "HTTPValidationError" + }, + "Handoff": { + "properties": { + "request_id": { + "type": "string", + "format": "uuid", + "title": "Request Id" + }, + "recording_id": { + "type": "string", + "format": "uuid", + "title": "Recording Id" + }, + "expected_sha256": { + "type": "string", + "pattern": "^[0-9a-f]{64}$", + "title": "Expected Sha256" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "request_id", + "recording_id", + "expected_sha256" + ], + "title": "Handoff" + }, + "ImportedRecording": { + "properties": { + "index": { + "type": "integer", + "minimum": 0.0, + "title": "Index" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "index" + ], + "title": "ImportedRecording" + }, + "LiveOverrideRequest": { + "properties": { + "live_source_id": { + "type": "string", + "pattern": "^[A-Za-z0-9_-]{1,64}$", + "title": "Live Source Id" + }, + "reason": { + "type": "string", + "maxLength": 200, + "minLength": 3, + "title": "Reason" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "live_source_id", + "reason" + ], + "title": "LiveOverrideRequest", + "description": "An on-air override naming an administrator-configured live input." + }, + "PlayoutRequest": { + "properties": { + "recording_id": { + "type": "string", + "format": "uuid", + "title": "Recording Id" + }, + "mode": { + "type": "string", + "pattern": "^(dry-run|commit)$", + "title": "Mode" + }, + "idempotency_key": { + "type": "string", + "maxLength": 100, + "minLength": 1, + "title": "Idempotency Key" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "recording_id", + "mode", + "idempotency_key" + ], + "title": "PlayoutRequest" + }, + "ScheduleRequest": { + "properties": { + "meeting_id": { + "type": "string", + "format": "uuid", + "title": "Meeting Id" + }, + "agenda_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100, + "title": "Agenda Ids" + }, + "source_file": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,180}$" + }, + { + "type": "null" + } + ], + "title": "Source File" + }, + "live_source_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9_-]{1,64}$" + }, + { + "type": "null" + } + ], + "title": "Live Source Id" + }, + "captions_file": { + "anyOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,180}\\.srt$" + }, + { + "type": "null" + } + ], + "title": "Captions File" + }, + "start_at": { + "type": "string", + "format": "date-time", + "title": "Start At" + }, + "idempotency_key": { + "type": "string", + "maxLength": 100, + "minLength": 1, + "title": "Idempotency Key" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "meeting_id", + "start_at", + "idempotency_key" + ], + "title": "ScheduleRequest" + }, + "Ticket": { + "properties": { + "ticket": { + "type": "string", + "maxLength": 128, + "minLength": 32, + "title": "Ticket" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "ticket" + ], + "title": "Ticket" + }, + "Upload": { + "properties": { + "title": { + "type": "string", + "maxLength": 100, + "minLength": 1, + "pattern": "^[^<>\\x00-\\x1f]+$", + "title": "Title" + }, + "privacy": { + "type": "string", + "enum": [ + "private", + "unlisted", + "public" + ], + "title": "Privacy", + "default": "private" + }, + "approval_note": { + "type": "string", + "maxLength": 500, + "minLength": 3, + "title": "Approval Note" + }, + "idempotency_key": { + "type": "string", + "maxLength": 100, + "minLength": 1, + "title": "Idempotency Key" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "title", + "approval_note", + "idempotency_key" + ], + "title": "Upload" + }, + "ValidationError": { + "properties": { + "loc": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] + }, + "type": "array", + "title": "Location" + }, + "msg": { + "type": "string", + "title": "Message" + }, + "type": { + "type": "string", + "title": "Error Type" + }, + "input": { + "title": "Input" + }, + "ctx": { + "type": "object", + "title": "Context" + } + }, + "type": "object", + "required": [ + "loc", + "msg", + "type" + ], + "title": "ValidationError" + } + } + } +} diff --git a/docs/beta-1/api/station.html b/docs/beta-1/api/station.html index 068f9d5..f78acab 100644 --- a/docs/beta-1/api/station.html +++ b/docs/beta-1/api/station.html @@ -10,7 +10,7 @@ /* Townlight Open Hall documentation identity. Software adoption is separate. */ header .brand{display:inline-flex;align-items:center;max-width:100%;flex-shrink:0}header .brand img{display:block;width:217px;max-width:100%;height:auto} -pre{white-space:pre-wrap;overflow-wrap:anywhere}summary{cursor:pointer;padding:.6rem;font-weight:600}details{margin:.5rem 0}
Townlight

Windows 1.8.2.1 maintenance release

Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

Release and downloads · Acceptance and limits

Townlight Station API reference

+pre{white-space:pre-wrap;overflow-wrap:anywhere}summary{cursor:pointer;padding:.6rem;font-weight:600}details{margin:.5rem 0}
Townlight

Windows 1.9.0.1 recorder candidate (unpublished)

Station 0.4.0 adds normal first-run provisioning when Meetings and Records are selected, one camera and microphone with a ten-second test clip, an eight-hour/64-GiB policy, storage safeguards, and renewable authority-checked operator sessions. This is a candidate API description, not acceptance of the unchanged public 1.8.2.1 MSI.

Complete candidate OpenAPI contract · Operator, administrator and recovery instructions

  • POST /operator/renew: same-origin browser cookie renewal; rechecks current Townlight staff authority and rotates a server-generated token.
  • GET /operator/devices and POST /operator/devices: enumerate inputs and save explicit opaque camera/microphone IDs; capture role required.
  • POST /operator/input-test and GET /operator/input-test/content: ten-second native test and authorized MP4 preview. Refused during a recording.
  • GET /operator/storage: configured duration, size, free space and admission budget.
  • POST /operator/handoff: private streamed Records copy with size, SHA-256 and provenance verification; up to 64 GiB subject to capacity.

Native station_action supports setup, readiness, staff launch/reconnect, backup, restore and owned stop. Setup/backup/restore/stop require an existing administrator session. Per-user Windows DPAPI protects persistent credentials; an account-private memory pipe supplies initial database credentials. Backups omit credentials and native dependencies.

Published Windows 1.8.2.1 API snapshot

Windows 1.8.2.1 maintenance release

Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

Release and downloads · Acceptance and limits

Townlight Station API reference

Windows 1.8.2.1 source API reference. Route and validation contracts are source evidence; installed acceptance is reported separately.

Townlight Station 0.3.1. The HTTP host is Townlight Records 1.8.0.dev3. Component package versions and the host API version are separate identities.

Generated from the actual native inspections-preview composition without application lifespan, migrations or database/network access. It describes route and validation contracts; it does not establish endpoint behavior, individual authorization or installed acceptance. Standalone product applications have separate deployment boundaries.

diff --git a/docs/beta-1/docx/Townlight-Records-Manual-Beta-1.docx b/docs/beta-1/docx/Townlight-Records-Manual-Beta-1.docx index bb3c514..72f4fe8 100644 Binary files a/docs/beta-1/docx/Townlight-Records-Manual-Beta-1.docx and b/docs/beta-1/docx/Townlight-Records-Manual-Beta-1.docx differ diff --git a/docs/beta-1/docx/Townlight-Station-Manual-Beta-1.docx b/docs/beta-1/docx/Townlight-Station-Manual-Beta-1.docx index 3e9da8b..1b30d33 100644 Binary files a/docs/beta-1/docx/Townlight-Station-Manual-Beta-1.docx and b/docs/beta-1/docx/Townlight-Station-Manual-Beta-1.docx differ diff --git a/docs/beta-1/docx/Townlight-Suite-Manual-Beta-1.docx b/docs/beta-1/docx/Townlight-Suite-Manual-Beta-1.docx index 2d3f426..687c72d 100644 Binary files a/docs/beta-1/docx/Townlight-Suite-Manual-Beta-1.docx and b/docs/beta-1/docx/Townlight-Suite-Manual-Beta-1.docx differ diff --git a/docs/beta-1/manuals/records.html b/docs/beta-1/manuals/records.html index a1917ed..688717a 100644 --- a/docs/beta-1/manuals/records.html +++ b/docs/beta-1/manuals/records.html @@ -14,12 +14,15 @@ -

Windows 1.8.2.1 maintenance release

Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

Release and downloads · Acceptance and limits

+

Windows 1.8.2.1 maintenance release

+

Windows +recorder update — 1.9.0.1 candidate (not published)

+

This section describes the new candidate. The public 1.8.2.1 MSI does +not acquire these capabilities until a new release is approved and +published. Candidate verification and its limits are recorded in the recorder +completion record; this is separate from the published 1.8.2.1 +evidence.

+

Clerk and operator

+
    +
  1. Install Townlight and complete normal first-run setup with the full +Windows profile or a custom selection that includes Meetings and Records +(Station is bundled). Finishing setup provisions the bundled recorder, a +private database and Windows sign-in task. No PostgreSQL, Python or +media-runtime installation commands are needed. Existing installations +use Settings → Modules → Townlight Station → Set up meeting +recording.
  2. +
  3. Keep Windows signed in and the computer awake while recording. The +recorder runs in that user’s device-access session, independently of the +Townlight window. It is not a multi-user server or a full PEG station. +Closing the recorder tab does not stop a recording.
  4. +
  5. Sign in with an existing authorized staff account. From Meetings +choose Open / reconnect to meeting recorder. Select a +meeting and its agenda items. In input setup, find devices, choose one +camera/capture device and one microphone, and save. Record a ten-second +input test, then play it to check the picture and sound; the meter +responds during playback. This test clip is temporary and is not a +canonical meeting record. Windows camera/microphone privacy settings and +exclusive device use still apply. Configured UDP MPEG-TS input remains +supported.
  6. +
  7. Start the meeting recording. The default duration limit is eight +hours, with a 64 GiB file limit and at least 1 GiB reserved disk space. +Admission estimates the configured duration and bitrate. Free space is +monitored while recording; low space or a limit requests a graceful stop +and displays the reason. These are configured limits, not a claim that +every eight-hour meeting has been tested. Plan space for the recording, +its Records copy and backups. Sleep, sign-out, power failure and +unavailable hardware can interrupt capture.
  8. +
  9. An open operator page renews its fifteen-minute session against the +current Townlight staff authority. Sign-out, revoked permissions and the +underlying staff-session expiry still take effect. Reopen from Townlight +to reconnect to an existing recording; reconnect never starts a second +recording. Select Stop recording to drain and finalize +the file.
  10. +
  11. After completion, an authorized Records user selects a request and +explicitly attaches the recording. Records streams a separate managed +copy and verifies SHA-256, size and provenance; files up to 64 GiB are +accepted subject to available space. Attachment is not public release. +Review, redaction and publication remain separate Records +decisions.
  12. +
+

Administrator and recovery

+

Station setup uses bundled native dependencies and its existing +pinned CivicCast media implementation; it never starts or changes +CivicCast or CivicCast Lab. The per-user logon task owns a separate +PostgreSQL instance on loopback port 15435; Station’s API listens only +on 127.0.0.1:8756. Townlight’s existing staff authority remains on its +configured Suite origin. Protected settings and database credentials +remain in the recorder data directory, under the selected city data +location. Setup refuses unrelated nonempty storage or an unrelated task +with the same name. Retry setup after correcting readiness errors; +inspect the private background, PostgreSQL, API and worker logs when +needed.

+

Use Check recorder readiness, Back up +Station, and Restore Station backup in +Settings → Modules. Finish queued and active recordings before backup or +restore. Backups contain a PostgreSQL dump, recording/ingest files, +saved source choices and a SHA-256 member manifest; they omit +credentials and native executables. Restore verifies the members, +creates a pre-restore recovery copy, and restores into this +installation’s separately protected database. Recheck input selection +afterward. A Suite backup includes a coherent Station backup when +paired; it does not copy the running Station database or its secrets. +Suite restore preserves that live private directory and applies the +included Station backup separately.

+
flowchart LR
+    Staff[Existing Townlight staff authority] --> Operator[Station operator]
+    Camera[Camera and microphone or UDP feed] --> Recorder[Per-user background recorder]
+    Operator --> Recorder
+    Recorder --> Private[Private Station database and recording]
+    Private -->|Explicit hash-verified attachment| Records[Records managed copy]
+    Records --> Review[Separate review and release decision]

Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, @@ -316,7 +401,7 @@

Fresh installation

  1. Download the signed MSI, matching source companion and checksums from the public +href="https://github.com/townlight/townlight/releases/tag/townlight-windows-v1.8.1.1">public Windows release.
  2. Verify the MSI hash and Authenticode publisher before installation. See the Record a fee line or waiver at the same level as operation and request_id. Examples of command payloads follow; IDs and permissions still come from the signed-in synthetic account.

    -
    {"action":"add-records-fee-line","payload":{"feeLineDescription":"Synthetic reproduction","feeScheduleBasis":"Fictional test schedule","feeLineAmount":"12.50"}}
    {"action":"waive-records-fee","payload":{"feeWaiverReason":"Synthetic public-interest exercise"}}
    +class="sourceCode json">{"action":"add-records-fee-line","payload":{"feeLineDescription":"Synthetic reproduction","feeScheduleBasis":"Fictional test schedule","feeLineAmount":"12.50"}} +
    {"action":"waive-records-fee","payload":{"feeWaiverReason":"Synthetic public-interest exercise"}}

    Use the exact outer apply contract in the API reference rather than sending these command fragments to an arbitrary URL. After either operation, read the request again; a saved amount does not approve or @@ -532,8 +617,8 @@

    Exercise deployment. Under the application’s configured portal posture, a synthetic client can submit POST /desktop/v1/public/requests with:

    -
    {"requester":"Synthetic resident","requesterContact":"synthetic@example.invalid","summary":"Synthetic minutes request","deadline":""}
    +
    {"requester":"Synthetic resident","requesterContact":"synthetic@example.invalid","summary":"Synthetic minutes request","deadline":""}

    Retain the returned tracking information privately. POST /desktop/v1/public/lookup requires both trackingNumber and matching @@ -644,10 +729,10 @@

    Native command example

    @tauri-apps/api/core. It is not a command for an arbitrary web page or an instruction for nontechnical staff. IDs must come from records created in an isolated synthetic exercise.

    -
    import { invoke } from '@tauri-apps/api/core';
    -const result = await invoke('records_domain_request', {request: {operation: 'view', request_id: requestId}});
    -console.log(result);
    +
    import { invoke } from '@tauri-apps/api/core';
    +const result = await invoke('records_domain_request', {request: {operation: 'view', request_id: requestId}});
    +console.log(result);

    Trusted local HTTP example

    An administrator/developer can inspect an already-configured isolated runtime from a trusted local process. This PowerShell example reads the @@ -655,13 +740,13 @@

    Trusted local HTTP example

    create a user, seed a session, reveal the proof in output or bypass a permission check. Do not use real city data in development examples. A read response does not prove approval or publication.

    -
    $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
    -$sessionPath = Join-Path $profilePath 'config\local-session.json'
    -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
    -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
    -Invoke-RestMethod -Uri 'http://127.0.0.1:15480/desktop/v1/records-state' -Headers $headers
    -Remove-Variable session, headers
    +
    $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
    +$sessionPath = Join-Path $profilePath 'config\local-session.json'
    +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
    +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
    +Invoke-RestMethod -Uri 'http://127.0.0.1:15480/desktop/v1/records-state' -Headers $headers
    +Remove-Variable session, headers

    A synthetic write with subsequent readback

    This example demonstrates the existing Meetings HTTP contract in an @@ -669,24 +754,24 @@

    A synthetic write service. Its authentication setup is included so it can be run independently under the signed-in synthetic account. If a write times out, inspect current records before repeating it.

    -
    $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
    -$sessionPath = Join-Path $profilePath 'config/local-session.json'
    -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
    -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
    -$body = @{
    -  title = 'Synthetic documentation exercise'
    -  scheduled_start = '2026-11-05T18:00:00-07:00'
    -  location = 'Synthetic room'
    -  meeting_type = 'regular'
    -} | ConvertTo-Json
    -$meeting = Invoke-RestMethod -Method Post `
    -  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
    -  -Headers $headers -ContentType 'application/json' -Body $body
    -Invoke-RestMethod `
    -  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
    -  -Headers $headers
    -Remove-Variable session, headers
    +
    $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
    +$sessionPath = Join-Path $profilePath 'config/local-session.json'
    +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
    +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
    +$body = @{
    +  title = 'Synthetic documentation exercise'
    +  scheduled_start = '2026-11-05T18:00:00-07:00'
    +  location = 'Synthetic room'
    +  meeting_type = 'regular'
    +} | ConvertTo-Json
    +$meeting = Invoke-RestMethod -Method Post `
    +  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
    +  -Headers $headers -ContentType 'application/json' -Body $body
    +Invoke-RestMethod `
    +  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
    +  -Headers $headers
    +Remove-Variable session, headers

    This write requires Meetings to be enabled and the signed-in staff role to permit it. It is a cross-suite integration example; for this product’s request models, use the complete technical reference @@ -721,8 +806,8 @@

    MCP and automation boundary

    deployment. This documentation does not add such a service.

    For a transcription client already provisioned separately, an illustrative tool call is:

    -
    {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}
    +
    {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}

    Use a job ID returned by that transcription service. This example does not create a Townlight record or bypass its review/Records handoff. The exact optional adapter tool signatures are supplied in the Suite manual Versions and Windows release Terms and license -

    Windows 1.8.2.1 maintenance release

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

    Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

    Release and downloads · Acceptance and limits

    +

    Windows 1.8.2.1 maintenance release

    +

    Windows +recorder update — 1.9.0.1 candidate (not published)

    +

    This section describes the new candidate. The public 1.8.2.1 MSI does +not acquire these capabilities until a new release is approved and +published. Candidate verification and its limits are recorded in the recorder +completion record; this is separate from the published 1.8.2.1 +evidence.

    +

    Clerk and operator

    +
      +
    1. Install Townlight and complete normal first-run setup with the full +Windows profile or a custom selection that includes Meetings and Records +(Station is bundled). Finishing setup provisions the bundled recorder, a +private database and Windows sign-in task. No PostgreSQL, Python or +media-runtime installation commands are needed. Existing installations +use Settings → Modules → Townlight Station → Set up meeting +recording.
    2. +
    3. Keep Windows signed in and the computer awake while recording. The +recorder runs in that user’s device-access session, independently of the +Townlight window. It is not a multi-user server or a full PEG station. +Closing the recorder tab does not stop a recording.
    4. +
    5. Sign in with an existing authorized staff account. From Meetings +choose Open / reconnect to meeting recorder. Select a +meeting and its agenda items. In input setup, find devices, choose one +camera/capture device and one microphone, and save. Record a ten-second +input test, then play it to check the picture and sound; the meter +responds during playback. This test clip is temporary and is not a +canonical meeting record. Windows camera/microphone privacy settings and +exclusive device use still apply. Configured UDP MPEG-TS input remains +supported.
    6. +
    7. Start the meeting recording. The default duration limit is eight +hours, with a 64 GiB file limit and at least 1 GiB reserved disk space. +Admission estimates the configured duration and bitrate. Free space is +monitored while recording; low space or a limit requests a graceful stop +and displays the reason. These are configured limits, not a claim that +every eight-hour meeting has been tested. Plan space for the recording, +its Records copy and backups. Sleep, sign-out, power failure and +unavailable hardware can interrupt capture.
    8. +
    9. An open operator page renews its fifteen-minute session against the +current Townlight staff authority. Sign-out, revoked permissions and the +underlying staff-session expiry still take effect. Reopen from Townlight +to reconnect to an existing recording; reconnect never starts a second +recording. Select Stop recording to drain and finalize +the file.
    10. +
    11. After completion, an authorized Records user selects a request and +explicitly attaches the recording. Records streams a separate managed +copy and verifies SHA-256, size and provenance; files up to 64 GiB are +accepted subject to available space. Attachment is not public release. +Review, redaction and publication remain separate Records +decisions.
    12. +
    +

    Administrator and recovery

    +

    Station setup uses bundled native dependencies and its existing +pinned CivicCast media implementation; it never starts or changes +CivicCast or CivicCast Lab. The per-user logon task owns a separate +PostgreSQL instance on loopback port 15435; Station’s API listens only +on 127.0.0.1:8756. Townlight’s existing staff authority remains on its +configured Suite origin. Protected settings and database credentials +remain in the recorder data directory, under the selected city data +location. Setup refuses unrelated nonempty storage or an unrelated task +with the same name. Retry setup after correcting readiness errors; +inspect the private background, PostgreSQL, API and worker logs when +needed.

    +

    Use Check recorder readiness, Back up +Station, and Restore Station backup in +Settings → Modules. Finish queued and active recordings before backup or +restore. Backups contain a PostgreSQL dump, recording/ingest files, +saved source choices and a SHA-256 member manifest; they omit +credentials and native executables. Restore verifies the members, +creates a pre-restore recovery copy, and restores into this +installation’s separately protected database. Recheck input selection +afterward. A Suite backup includes a coherent Station backup when +paired; it does not copy the running Station database or its secrets. +Suite restore preserves that live private directory and applies the +included Station backup separately.

    +
    flowchart LR
    +    Staff[Existing Townlight staff authority] --> Operator[Station operator]
    +    Camera[Camera and microphone or UDP feed] --> Recorder[Per-user background recorder]
    +    Operator --> Recorder
    +    Recorder --> Private[Private Station database and recording]
    +    Private -->|Explicit hash-verified attachment| Records[Records managed copy]
    +    Records --> Review[Separate review and release decision]

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, @@ -267,7 +352,7 @@

    Fresh installation

    1. Download the signed MSI, matching source companion and checksums from the public +href="https://github.com/townlight/townlight/releases/tag/townlight-windows-v1.8.1.1">public Windows release.
    2. Verify the MSI hash and Authenticode publisher before installation. See the Schedule a API client should send an explicit timezone offset or Z; a timezone-less API datetime is interpreted as UTC. A synthetic POST /v1/schedules body is:

      -
      {"meeting_id":"11111111-1111-4111-8111-111111111111","agenda_ids":[],"source_file":"synthetic-program.mp4","captions_file":"synthetic-captions.srt","start_at":"2026-11-05T18:00:00-07:00","idempotency_key":"synthetic-schedule-001"}
      +
      {"meeting_id":"11111111-1111-4111-8111-111111111111","agenda_ids":[],"source_file":"synthetic-program.mp4","captions_file":"synthetic-captions.srt","start_at":"2026-11-05T18:00:00-07:00","idempotency_key":"synthetic-schedule-001"}

      Use a real synthetic meeting ID and intended future exercise time, with files already in managed ingest. The body selects exactly one file or configured live source; a live source cannot use a sidecar. Reusing @@ -454,8 +539,8 @@

      Check playout and commit mode: commit. Wait for the playout to be complete; failed rendering is not a successful switch.

      Equivalent POST /v1/playouts input is:

      -
      {"recording_id":"22222222-2222-4222-8222-222222222222","mode":"dry-run","idempotency_key":"synthetic-playout-check-001"}
      +
      {"recording_id":"22222222-2222-4222-8222-222222222222","mode":"dry-run","idempotency_key":"synthetic-playout-check-001"}

      Replace the recording ID with completed synthetic evidence. A separate deliberate commit uses mode: commit and a new key; do not reuse the check’s key with a changed mode. Inspect the returned @@ -672,26 +757,26 @@

      Store the independent Windows user. Keep this session for startup and shutdown. The dedicated parent holds configuration/logs; its data child is Station’s initially empty managed store.

      -
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      -$control = Join-Path $profilePath 'runtime\python\python.exe'
      -$payload = 'C:\Program Files\Townlight\_up_\runtime\payload\station'
      -$stationRoot = Join-Path $env:LOCALAPPDATA 'TownlightStation-Synthetic'
      -if (-not (Test-Path -LiteralPath $control)) { throw 'Complete normal Townlight setup first.' }
      -if (Test-Path -LiteralPath $stationRoot) { throw 'Existing Station directory: inspect it; do not overwrite.' }
      -New-Item -ItemType Directory -Path $stationRoot | Out-Null
      -$account = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
      -& icacls.exe $stationRoot /inheritance:r /grant:r "${account}:(OI)(CI)F" '*S-1-5-18:(OI)(CI)F' | Out-Null
      -if ($LASTEXITCODE -ne 0) { throw 'Cannot protect Station configuration directory.' }
      -New-Item -ItemType Directory -Path (Join-Path $stationRoot 'data'),(Join-Path $stationRoot 'logs') | Out-Null
      -$rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
      -$randomBytes = New-Object byte[] 32
      -$rng.GetBytes($randomBytes)
      -$rng.Dispose()
      -$stationPassword = -join ($randomBytes | ForEach-Object { $_.ToString('x2') })
      -$stationPassword | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString |
      -  Set-Content -LiteralPath (Join-Path $stationRoot 'station-password.dpapi')
      -Remove-Variable stationPassword,randomBytes
      +
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      +$control = Join-Path $profilePath 'runtime\python\python.exe'
      +$payload = 'C:\Program Files\Townlight\_up_\runtime\payload\station'
      +$stationRoot = Join-Path $env:LOCALAPPDATA 'TownlightStation-Synthetic'
      +if (-not (Test-Path -LiteralPath $control)) { throw 'Complete normal Townlight setup first.' }
      +if (Test-Path -LiteralPath $stationRoot) { throw 'Existing Station directory: inspect it; do not overwrite.' }
      +New-Item -ItemType Directory -Path $stationRoot | Out-Null
      +$account = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
      +& icacls.exe $stationRoot /inheritance:r /grant:r "${account}:(OI)(CI)F" '*S-1-5-18:(OI)(CI)F' | Out-Null
      +if ($LASTEXITCODE -ne 0) { throw 'Cannot protect Station configuration directory.' }
      +New-Item -ItemType Directory -Path (Join-Path $stationRoot 'data'),(Join-Path $stationRoot 'logs') | Out-Null
      +$rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
      +$randomBytes = New-Object byte[] 32
      +$rng.GetBytes($randomBytes)
      +$rng.Dispose()
      +$stationPassword = -join ($randomBytes | ForEach-Object { $_.ToString('x2') })
      +$stationPassword | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString |
      +  Set-Content -LiteralPath (Join-Path $stationRoot 'station-password.dpapi')
      +Remove-Variable stationPassword,randomBytes

      The password file uses the current Windows user’s DPAPI protection. It is not portable to a different user or machine without an explicit credential/recovery decision. Keep it out of source control, support @@ -702,32 +787,32 @@

      Store the independent $payload and $stationRoot to these same existing locations, then repeat this environment/start section, not the first-time provisioning section.

      -
      $secret = Get-Content -LiteralPath (Join-Path $stationRoot 'station-password.dpapi') -Raw |
      -  ConvertTo-SecureString
      -$stationPassword = [System.Net.NetworkCredential]::new('', $secret).Password
      -$nativePassword = (Get-Content -LiteralPath (Join-Path $profilePath 'config\secrets\postgres-password.txt') -Raw).Trim()
      -$encodedNative = [uri]::EscapeDataString($nativePassword)
      -$env:TOWNLIGHT_PROFILE_ROOT = $profilePath
      -$env:TOWNLIGHT_DATA_DIR = Join-Path $profilePath 'Data'
      -$env:TOWNLIGHT_FILE_STORAGE_DIR = Join-Path $profilePath 'Data\files'
      -$env:DATABASE_URL = "postgresql+asyncpg://townlight:${encodedNative}@127.0.0.1:15432/townlight"
      -$env:TOWNLIGHT_PRODUCT_PROFILE = 'inspections-preview'
      -$env:PORTAL_MODE = 'private'
      -$env:TOWNLIGHT_RUNTIME_HOST = '127.0.0.1'
      -$env:TOWNLIGHT_RUNTIME_PORT = '15481'
      -$env:TOWNLIGHT_STATION_URL = 'http://127.0.0.1:8756'
      -$env:TOWNLIGHT_STATION_SUITE_URL = 'http://127.0.0.1:15481'
      -$env:TOWNLIGHT_STATION_DATA_ROOT = Join-Path $stationRoot 'data'
      -$env:TOWNLIGHT_STATION_DATABASE_URL = "postgresql+psycopg2://townlight_beta_station_app:${stationPassword}@127.0.0.1:15432/townlight_beta_station"
      -$env:TOWNLIGHT_STATION_MEDIA_SOURCE = Join-Path $payload 'media-source'
      -$env:TOWNLIGHT_STATION_MEDIA_PYTHON = Join-Path $payload 'runtime\python.exe'
      -$env:TOWNLIGHT_STATION_MEDIA_RUNTIME = Join-Path $payload 'runtime'
      -$env:TOWNLIGHT_STATION_FFPROBE = Join-Path $payload 'bin\ffprobe.exe'
      -$env:PYTHONNOUSERSITE = '1'
      -$env:PYTHONDONTWRITEBYTECODE = '1'
      -Remove-Item Env:PYTHONPATH -ErrorAction SilentlyContinue
      -Remove-Variable nativePassword,encodedNative,stationPassword,secret
      +
      $secret = Get-Content -LiteralPath (Join-Path $stationRoot 'station-password.dpapi') -Raw |
      +  ConvertTo-SecureString
      +$stationPassword = [System.Net.NetworkCredential]::new('', $secret).Password
      +$nativePassword = (Get-Content -LiteralPath (Join-Path $profilePath 'config\secrets\postgres-password.txt') -Raw).Trim()
      +$encodedNative = [uri]::EscapeDataString($nativePassword)
      +$env:TOWNLIGHT_PROFILE_ROOT = $profilePath
      +$env:TOWNLIGHT_DATA_DIR = Join-Path $profilePath 'Data'
      +$env:TOWNLIGHT_FILE_STORAGE_DIR = Join-Path $profilePath 'Data\files'
      +$env:DATABASE_URL = "postgresql+asyncpg://townlight:${encodedNative}@127.0.0.1:15432/townlight"
      +$env:TOWNLIGHT_PRODUCT_PROFILE = 'inspections-preview'
      +$env:PORTAL_MODE = 'private'
      +$env:TOWNLIGHT_RUNTIME_HOST = '127.0.0.1'
      +$env:TOWNLIGHT_RUNTIME_PORT = '15481'
      +$env:TOWNLIGHT_STATION_URL = 'http://127.0.0.1:8756'
      +$env:TOWNLIGHT_STATION_SUITE_URL = 'http://127.0.0.1:15481'
      +$env:TOWNLIGHT_STATION_DATA_ROOT = Join-Path $stationRoot 'data'
      +$env:TOWNLIGHT_STATION_DATABASE_URL = "postgresql+psycopg2://townlight_beta_station_app:${stationPassword}@127.0.0.1:15432/townlight_beta_station"
      +$env:TOWNLIGHT_STATION_MEDIA_SOURCE = Join-Path $payload 'media-source'
      +$env:TOWNLIGHT_STATION_MEDIA_PYTHON = Join-Path $payload 'runtime\python.exe'
      +$env:TOWNLIGHT_STATION_MEDIA_RUNTIME = Join-Path $payload 'runtime'
      +$env:TOWNLIGHT_STATION_FFPROBE = Join-Path $payload 'bin\ffprobe.exe'
      +$env:PYTHONNOUSERSITE = '1'
      +$env:PYTHONDONTWRITEBYTECODE = '1'
      +Remove-Item Env:PYTHONPATH -ErrorAction SilentlyContinue
      +Remove-Variable nativePassword,encodedNative,stationPassword,secret

      Use the actual native PostgreSQL port/database/user if the deployment differs from the accepted defaults. Environment changes here apply to children of this shell, not the already running native supervisor. Keep @@ -742,37 +827,37 @@

      Provision the Station provisioned local database using the current profile’s protected credential. Existing role/database names cause a refusal before creation; do not drop or repurpose them automatically.

      -
      @'
      -import os
      -from pathlib import Path
      -import psycopg2
      -from psycopg2 import sql
      -from sqlalchemy.engine import make_url
      -
      -url = make_url(os.environ['TOWNLIGHT_STATION_DATABASE_URL'])
      -profile = Path(os.environ['TOWNLIGHT_PROFILE_ROOT'])
      -password = (profile/'config/secrets/postgres-password.txt').read_text().strip()
      -conn = psycopg2.connect(host='127.0.0.1', port=15432, user='townlight',
      -                        password=password, dbname='postgres')
      -conn.autocommit = True
      -try:
      -    with conn.cursor() as cur:
      -        cur.execute('SELECT 1 FROM pg_roles WHERE rolname=%s', (url.username,))
      -        role_exists = cur.fetchone() is not None
      -        cur.execute('SELECT 1 FROM pg_database WHERE datname=%s', (url.database,))
      -        if role_exists or cur.fetchone() is not None:
      -            raise RuntimeError('Dedicated role/database already exists; inspect before continuing')
      -        cur.execute(sql.SQL('CREATE ROLE {} LOGIN PASSWORD %s').format(
      -            sql.Identifier(url.username)), (url.password,))
      -        cur.execute(sql.SQL('CREATE DATABASE {} OWNER {}').format(
      -            sql.Identifier(url.database), sql.Identifier(url.username)))
      -finally:
      -    conn.close()
      -'@ | & $control -B -
      -if ($LASTEXITCODE -ne 0) { throw 'Station database provisioning did not complete; inspect before retrying.' }
      -& $control -B -m townlight_station.cli migrate
      -if ($LASTEXITCODE -ne 0) { throw 'Station migration failed; retain logs and inspect the dedicated schema.' }
      +
      @'
      +import os
      +from pathlib import Path
      +import psycopg2
      +from psycopg2 import sql
      +from sqlalchemy.engine import make_url
      +
      +url = make_url(os.environ['TOWNLIGHT_STATION_DATABASE_URL'])
      +profile = Path(os.environ['TOWNLIGHT_PROFILE_ROOT'])
      +password = (profile/'config/secrets/postgres-password.txt').read_text().strip()
      +conn = psycopg2.connect(host='127.0.0.1', port=15432, user='townlight',
      +                        password=password, dbname='postgres')
      +conn.autocommit = True
      +try:
      +    with conn.cursor() as cur:
      +        cur.execute('SELECT 1 FROM pg_roles WHERE rolname=%s', (url.username,))
      +        role_exists = cur.fetchone() is not None
      +        cur.execute('SELECT 1 FROM pg_database WHERE datname=%s', (url.database,))
      +        if role_exists or cur.fetchone() is not None:
      +            raise RuntimeError('Dedicated role/database already exists; inspect before continuing')
      +        cur.execute(sql.SQL('CREATE ROLE {} LOGIN PASSWORD %s').format(
      +            sql.Identifier(url.username)), (url.password,))
      +        cur.execute(sql.SQL('CREATE DATABASE {} OWNER {}').format(
      +            sql.Identifier(url.database), sql.Identifier(url.username)))
      +finally:
      +    conn.close()
      +'@ | & $control -B -
      +if ($LASTEXITCODE -ne 0) { throw 'Station database provisioning did not complete; inspect before retrying.' }
      +& $control -B -m townlight_station.cli migrate
      +if ($LASTEXITCODE -ne 0) { throw 'Station migration failed; retain logs and inspect the dedicated schema.' }

      If database creation fails after the role was created, the operation is partially complete: inspect that exact owned role/database before resuming. Do not rerun against guessed names or remove unrelated @@ -786,35 +871,35 @@

      Start and check the paired paired origin, not only the desktop’s canonical port. Startup below creates hidden children with private log files and records their identities; it does not focus windows or install services.

      -
      $owned = @()
      -function Start-StationRole([string]$name, [string[]]$arguments) {
      -  $p = Start-Process -FilePath $control -ArgumentList $arguments -WindowStyle Hidden -PassThru `
      -    -RedirectStandardOutput (Join-Path $stationRoot "logs\$name.out.log") `
      -    -RedirectStandardError (Join-Path $stationRoot "logs\$name.err.log")
      -  $script:owned += [pscustomobject]@{ Name=$name; Id=$p.Id; StartTime=$p.StartTime; Path=$p.Path }
      -  $script:owned | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $stationRoot 'owned-processes.json')
      -  return $p
      -}
      -function Wait-StationReady([string]$url, $process) {
      -  for ($attempt=0; $attempt -lt 40; $attempt++) {
      -    if ($process.HasExited) { throw "Owned process exited; inspect logs for $url" }
      -    try {
      -      $response = Invoke-WebRequest -Uri $url -UseBasicParsing -TimeoutSec 2
      -      if ($response.StatusCode -eq 200) { return }
      -    } catch { }
      -    Start-Sleep -Milliseconds 250
      -  }
      -  throw "Readiness not established: $url; inspect the owned logs"
      -}
      -$suite = Start-StationRole 'paired-suite' @('-B','-m','townlight_runtime.services')
      -Wait-StationReady 'http://127.0.0.1:15481/ready' $suite
      -$api = Start-StationRole 'station-api' @('-B','-m','townlight_station.cli','serve','--port','8756')
      -Wait-StationReady 'http://127.0.0.1:8756/health' $api
      -$worker = Start-StationRole 'station-worker' @('-B','-m','townlight_station.cli','worker')
      -# Only for the on-air profile:
      -$air = Start-StationRole 'station-air' @('-B','-m','townlight_station.cli','air')
      -$owned | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $stationRoot 'owned-processes.json')
      +
      $owned = @()
      +function Start-StationRole([string]$name, [string[]]$arguments) {
      +  $p = Start-Process -FilePath $control -ArgumentList $arguments -WindowStyle Hidden -PassThru `
      +    -RedirectStandardOutput (Join-Path $stationRoot "logs\$name.out.log") `
      +    -RedirectStandardError (Join-Path $stationRoot "logs\$name.err.log")
      +  $script:owned += [pscustomobject]@{ Name=$name; Id=$p.Id; StartTime=$p.StartTime; Path=$p.Path }
      +  $script:owned | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $stationRoot 'owned-processes.json')
      +  return $p
      +}
      +function Wait-StationReady([string]$url, $process) {
      +  for ($attempt=0; $attempt -lt 40; $attempt++) {
      +    if ($process.HasExited) { throw "Owned process exited; inspect logs for $url" }
      +    try {
      +      $response = Invoke-WebRequest -Uri $url -UseBasicParsing -TimeoutSec 2
      +      if ($response.StatusCode -eq 200) { return }
      +    } catch { }
      +    Start-Sleep -Milliseconds 250
      +  }
      +  throw "Readiness not established: $url; inspect the owned logs"
      +}
      +$suite = Start-StationRole 'paired-suite' @('-B','-m','townlight_runtime.services')
      +Wait-StationReady 'http://127.0.0.1:15481/ready' $suite
      +$api = Start-StationRole 'station-api' @('-B','-m','townlight_station.cli','serve','--port','8756')
      +Wait-StationReady 'http://127.0.0.1:8756/health' $api
      +$worker = Start-StationRole 'station-worker' @('-B','-m','townlight_station.cli','worker')
      +# Only for the on-air profile:
      +$air = Start-StationRole 'station-air' @('-B','-m','townlight_station.cli','air')
      +$owned | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $stationRoot 'owned-processes.json')

      Before launching, confirm ports 15481 and 8756 are unused. If readiness fails, inspect the relevant logs and retained profile/schema state; do not start another copy. A port that answers belongs to the @@ -832,15 +917,15 @@

      Configure a live data directory with the following fictional input. An actual sender must supply UDP MPEG-TS to that receiver; this configuration alone does not generate a signal.

      -
      [{"id":"synthetic-chamber","label":"Synthetic chamber feed","kind":"udp-mpegts","address":"127.0.0.1","port":19000}]
      +
      [{"id":"synthetic-chamber","label":"Synthetic chamber feed","kind":"udp-mpegts","address":"127.0.0.1","port":19000}]

      At most 32 rows are accepted. IDs are unique 1–64 letters/digits/underscore/hyphen; labels have 1–100 characters; IPv4 and ports 1024–65535 are validated. Each row has exactly the five shown keys. Protect the source network; UDP is not authenticated. Then, under the same signed-in native account:

      -
      & $control -B -m townlight_station.cli operator --profile-root $profilePath --port 8756
      +
      & $control -B -m townlight_station.cli operator --profile-root $profilePath --port 8756

      This normal operator command opens the operator for a future staff exercise. It reads the native session and exchanges a one-use launch ticket; it does not seed authority or put the native proof in a URL. @@ -865,15 +950,15 @@

      Bounds and shutdown

      child; force-stopping only its parent does not run Python cleanup. Stop only the process trees you started, checking each root’s identity before using a saved PID:

      -
      foreach ($entry in @($owned | Sort-Object StartTime -Descending)) {
      -  $process = Get-Process -Id $entry.Id -ErrorAction SilentlyContinue
      -  if ($process -and $process.StartTime -eq $entry.StartTime -and $process.Path -eq $entry.Path) {
      -    & taskkill.exe /PID $process.Id /T /F | Out-Null
      -    if ($LASTEXITCODE -ne 0) { throw 'Owned process tree did not stop; inspect before proceeding.' }
      -    $process.WaitForExit()
      -  }
      -}
      +
      foreach ($entry in @($owned | Sort-Object StartTime -Descending)) {
      +  $process = Get-Process -Id $entry.Id -ErrorAction SilentlyContinue
      +  if ($process -and $process.StartTime -eq $entry.StartTime -and $process.Path -eq $entry.Path) {
      +    & taskkill.exe /PID $process.Id /T /F | Out-Null
      +    if ($LASTEXITCODE -ne 0) { throw 'Owned process tree did not stop; inspect before proceeding.' }
      +    $process.WaitForExit()
      +  }
      +}

      Retain the ownership file if the shell must close; parse and verify its actual process paths/start times before acting. Do not terminate the native database/supervisor or CivicCast. Interrupting a worker during a @@ -888,10 +973,10 @@

      Native command example

      @tauri-apps/api/core. It is not a command for an arbitrary web page or an instruction for nontechnical staff. IDs must come from records created in an isolated synthetic exercise.

      -
      import { invoke } from '@tauri-apps/api/core';
      -const result = await invoke('meetings_domain_request', {request: {operation: 'get-meeting', id: meetingId}});
      -console.log(result);
      +
      import { invoke } from '@tauri-apps/api/core';
      +const result = await invoke('meetings_domain_request', {request: {operation: 'get-meeting', id: meetingId}});
      +console.log(result);

      Trusted local HTTP example

      An administrator/developer can inspect an already-configured isolated runtime from a trusted local process. This PowerShell example reads the @@ -899,9 +984,9 @@

      Trusted local HTTP example

      create a user, seed a session, reveal the proof in output or bypass a permission check. Do not use real city data in development examples. A read response does not prove approval or publication.

      -
      Invoke-RestMethod -Uri 'http://127.0.0.1:8756/health'
      -# Authenticated recording operations additionally require current native proof.
      +
      Invoke-RestMethod -Uri 'http://127.0.0.1:8756/health'
      +# Authenticated recording operations additionally require current native proof.

      A synthetic write with subsequent readback

      This example demonstrates the existing Meetings HTTP contract in an @@ -909,24 +994,24 @@

      A synthetic write service. Its authentication setup is included so it can be run independently under the signed-in synthetic account. If a write times out, inspect current records before repeating it.

      -
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      -$sessionPath = Join-Path $profilePath 'config/local-session.json'
      -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      -$body = @{
      -  title = 'Synthetic documentation exercise'
      -  scheduled_start = '2026-11-05T18:00:00-07:00'
      -  location = 'Synthetic room'
      -  meeting_type = 'regular'
      -} | ConvertTo-Json
      -$meeting = Invoke-RestMethod -Method Post `
      -  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
      -  -Headers $headers -ContentType 'application/json' -Body $body
      -Invoke-RestMethod `
      -  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
      -  -Headers $headers
      -Remove-Variable session, headers
      +
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      +$sessionPath = Join-Path $profilePath 'config/local-session.json'
      +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      +$body = @{
      +  title = 'Synthetic documentation exercise'
      +  scheduled_start = '2026-11-05T18:00:00-07:00'
      +  location = 'Synthetic room'
      +  meeting_type = 'regular'
      +} | ConvertTo-Json
      +$meeting = Invoke-RestMethod -Method Post `
      +  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
      +  -Headers $headers -ContentType 'application/json' -Body $body
      +Invoke-RestMethod `
      +  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
      +  -Headers $headers
      +Remove-Variable session, headers

      This write requires Meetings to be enabled and the signed-in staff role to permit it. It is a cross-suite integration example; for this product’s request models, use the complete technical reference @@ -938,13 +1023,13 @@

      Recording and Records X-Townlight-Session and this JSON, replacing the synthetic UUIDs with saved synthetic meeting/agenda IDs. Configure synthetic-chamber first.

      -
      {
      -  "meeting_id": "11111111-1111-4111-8111-111111111111",
      -  "agenda_ids": ["22222222-2222-4222-8222-222222222222"],
      -  "live_source_id": "synthetic-chamber",
      -  "idempotency_key": "synthetic-docs-capture-001"
      -}
      +
      {
      +  "meeting_id": "11111111-1111-4111-8111-111111111111",
      +  "agenda_ids": ["22222222-2222-4222-8222-222222222222"],
      +  "live_source_id": "synthetic-chamber",
      +  "idempotency_key": "synthetic-docs-capture-001"
      +}

      The initial response is 202 with a queued/running identity rather than completed media. Read /v1/recordings/{identity}, explicitly stop live capture @@ -953,11 +1038,11 @@

      Recording and Records authorized Records client calls POST /desktop/v1/requests/{request_id}/station-recordings on the paired Suite runtime with:

      -
      {
      -  "recording_id": "33333333-3333-4333-8333-333333333333",
      -  "expected_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      -}
      +
      {
      +  "recording_id": "33333333-3333-4333-8333-333333333333",
      +  "expected_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      +}

      The shown hash is deliberately a placeholder. Use the actual completed recording’s hash. A mismatched hash must fail. Repeating the identical completed handoff is idempotent; it does not create a release @@ -992,8 +1077,8 @@

      MCP and automation boundary

      deployment. This documentation does not add such a service.

      For a transcription client already provisioned separately, an illustrative tool call is:

      -
      {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}
      +
      {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}

      Use a job ID returned by that transcription service. This example does not create a Townlight record or bypass its review/Records handoff. The exact optional adapter tool signatures are supplied in the Administrator setup matched source/runtime and preserve the backup for rollback.

      Create civiccast-feeds.json in the private Station data directory:

      -
      [
      -  {
      -    "id": "peg",
      -    "label": "CivicCast council feed",
      -    "address": "192.0.2.10",
      -    "port": 10080,
      -    "secret_env": "TOWNLIGHT_STATION_SRT_PEG"
      -  }
      -]
      +
      [
      +  {
      +    "id": "peg",
      +    "label": "CivicCast council feed",
      +    "address": "192.0.2.10",
      +    "port": 10080,
      +    "secret_env": "TOWNLIGHT_STATION_SRT_PEG"
      +  }
      +]

      The address is a numeric IPv4 local interface bind address on Station, not the CivicCast computer. 192.0.2.10 is a documentation placeholder. Use the actual Station interface, an unused @@ -1573,12 +1658,12 @@

      Administrator setup

      Run the existing serve and capture worker, plus the separate upload consumer with the same Station settings and dedicated database:

      -
      townlight-station migrate
      -townlight-station serve
      -# In separate managed processes with the same explicit Station configuration:
      -townlight-station worker
      -townlight-station uploads
      +
      townlight-station migrate
      +townlight-station serve
      +# In separate managed processes with the same explicit Station configuration:
      +townlight-station worker
      +townlight-station uploads

      These are deployment commands, not commands executed against installed apps by this development task. Run only one capture worker and one upload worker per database. Each holds a distinct @@ -1637,21 +1722,21 @@

      HTTP API and examples

      Station’s generated /openapi.json includes the new routes and request schemas. Example bodies (use real canonical IDs from the selected deployment):

      -
      {
      -  "meeting_id": "11111111-1111-4111-8111-111111111111",
      -  "agenda_ids": [],
      -  "live_source_id": "chamber",
      -  "civiccast_feed_id": "peg",
      -  "idempotency_key": "council-live-2026-10-30"
      -}
      {
      -  "title": "City council meeting — 30 October 2026",
      -  "privacy": "private",
      -  "approval_note": "Reviewed completed recording for upload",
      -  "idempotency_key": "council-vod-2026-10-30"
      -}
      + "meeting_id": "11111111-1111-4111-8111-111111111111", + "agenda_ids": [], + "live_source_id": "chamber", + "civiccast_feed_id": "peg", + "idempotency_key": "council-live-2026-10-30" +} +
      {
      +  "title": "City council meeting — 30 October 2026",
      +  "privacy": "private",
      +  "approval_note": "Reviewed completed recording for upload",
      +  "idempotency_key": "council-vod-2026-10-30"
      +}

      Upload titles are 1–100 characters; control characters and angle brackets are rejected. Visibility is private/unlisted/public; approval note 3–500 characters; key 1–100 characters. Repeating the same key @@ -1696,11 +1781,11 @@

      Verification and release TypeScript compilation also apply.

      Example invocation from a development environment with existing dependencies:

      -
      $env:PYTHONPATH = (Resolve-Path ./beta-1).Path
      -$env:STATION_TEST_PG_BIN = 'C:/test-tools/postgres/bin'
      -$env:STATION_TEST_MEDIA_RUNTIME = 'C:/test-tools/station-media-runtime'
      -python -B ./beta-1/tests/accept_deliveries.py C:/test-output/station-deliveries-new
      +
      $env:PYTHONPATH = (Resolve-Path ./beta-1).Path
      +$env:STATION_TEST_PG_BIN = 'C:/test-tools/postgres/bin'
      +$env:STATION_TEST_MEDIA_RUNTIME = 'C:/test-tools/station-media-runtime'
      +python -B ./beta-1/tests/accept_deliveries.py C:/test-output/station-deliveries-new

      Use a new output directory; the script starts/stops only its owned disposable cluster and children. See the task’s retained acceptance receipts for actual results. This evidence establishes the diff --git a/docs/beta-1/manuals/suite.html b/docs/beta-1/manuals/suite.html index 8aeab4d..0e2ac86 100644 --- a/docs/beta-1/manuals/suite.html +++ b/docs/beta-1/manuals/suite.html @@ -14,12 +14,15 @@

      -

      Windows 1.8.2.1 maintenance release

      Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

      Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

      Release and downloads · Acceptance and limits

      +

      Windows 1.8.2.1 maintenance release

      +

      Windows +recorder update — 1.9.0.1 candidate (not published)

      +

      This section describes the new candidate. The public 1.8.2.1 MSI does +not acquire these capabilities until a new release is approved and +published. Candidate verification and its limits are recorded in the recorder +completion record; this is separate from the published 1.8.2.1 +evidence.

      +

      Clerk and operator

      +
        +
      1. Install Townlight and complete normal first-run setup with the full +Windows profile or a custom selection that includes Meetings and Records +(Station is bundled). Finishing setup provisions the bundled recorder, a +private database and Windows sign-in task. No PostgreSQL, Python or +media-runtime installation commands are needed. Existing installations +use Settings → Modules → Townlight Station → Set up meeting +recording.
      2. +
      3. Keep Windows signed in and the computer awake while recording. The +recorder runs in that user’s device-access session, independently of the +Townlight window. It is not a multi-user server or a full PEG station. +Closing the recorder tab does not stop a recording.
      4. +
      5. Sign in with an existing authorized staff account. From Meetings +choose Open / reconnect to meeting recorder. Select a +meeting and its agenda items. In input setup, find devices, choose one +camera/capture device and one microphone, and save. Record a ten-second +input test, then play it to check the picture and sound; the meter +responds during playback. This test clip is temporary and is not a +canonical meeting record. Windows camera/microphone privacy settings and +exclusive device use still apply. Configured UDP MPEG-TS input remains +supported.
      6. +
      7. Start the meeting recording. The default duration limit is eight +hours, with a 64 GiB file limit and at least 1 GiB reserved disk space. +Admission estimates the configured duration and bitrate. Free space is +monitored while recording; low space or a limit requests a graceful stop +and displays the reason. These are configured limits, not a claim that +every eight-hour meeting has been tested. Plan space for the recording, +its Records copy and backups. Sleep, sign-out, power failure and +unavailable hardware can interrupt capture.
      8. +
      9. An open operator page renews its fifteen-minute session against the +current Townlight staff authority. Sign-out, revoked permissions and the +underlying staff-session expiry still take effect. Reopen from Townlight +to reconnect to an existing recording; reconnect never starts a second +recording. Select Stop recording to drain and finalize +the file.
      10. +
      11. After completion, an authorized Records user selects a request and +explicitly attaches the recording. Records streams a separate managed +copy and verifies SHA-256, size and provenance; files up to 64 GiB are +accepted subject to available space. Attachment is not public release. +Review, redaction and publication remain separate Records +decisions.
      12. +
      +

      Administrator and recovery

      +

      Station setup uses bundled native dependencies and its existing +pinned CivicCast media implementation; it never starts or changes +CivicCast or CivicCast Lab. The per-user logon task owns a separate +PostgreSQL instance on loopback port 15435; Station’s API listens only +on 127.0.0.1:8756. Townlight’s existing staff authority remains on its +configured Suite origin. Protected settings and database credentials +remain in the recorder data directory, under the selected city data +location. Setup refuses unrelated nonempty storage or an unrelated task +with the same name. Retry setup after correcting readiness errors; +inspect the private background, PostgreSQL, API and worker logs when +needed.

      +

      Use Check recorder readiness, Back up +Station, and Restore Station backup in +Settings → Modules. Finish queued and active recordings before backup or +restore. Backups contain a PostgreSQL dump, recording/ingest files, +saved source choices and a SHA-256 member manifest; they omit +credentials and native executables. Restore verifies the members, +creates a pre-restore recovery copy, and restores into this +installation’s separately protected database. Recheck input selection +afterward. A Suite backup includes a coherent Station backup when +paired; it does not copy the running Station database or its secrets. +Suite restore preserves that live private directory and applies the +included Station backup separately.

      +
      flowchart LR
      +    Staff[Existing Townlight staff authority] --> Operator[Station operator]
      +    Camera[Camera and microphone or UDP feed] --> Recorder[Per-user background recorder]
      +    Operator --> Recorder
      +    Recorder --> Private[Private Station database and recording]
      +    Private -->|Explicit hash-verified attachment| Records[Records managed copy]
      +    Records --> Review[Separate review and release decision]

      Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, @@ -689,10 +774,10 @@

      Native command example

      @tauri-apps/api/core. It is not a command for an arbitrary web page or an instruction for nontechnical staff. IDs must come from records created in an isolated synthetic exercise.

      -
      import { invoke } from '@tauri-apps/api/core';
      -const result = await invoke('meetings_domain_request', {request: {operation: 'get-proceedings', id: meetingId}});
      -console.log(result);
      +
      import { invoke } from '@tauri-apps/api/core';
      +const result = await invoke('meetings_domain_request', {request: {operation: 'get-proceedings', id: meetingId}});
      +console.log(result);

      Trusted local HTTP example

      An administrator/developer can inspect an already-configured isolated runtime from a trusted local process. This PowerShell example reads the @@ -700,13 +785,13 @@

      Trusted local HTTP example

      create a user, seed a session, reveal the proof in output or bypass a permission check. Do not use real city data in development examples. A read response does not prove approval or publication.

      -
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      -$sessionPath = Join-Path $profilePath 'config\local-session.json'
      -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      -Invoke-RestMethod -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/station/catalog' -Headers $headers
      -Remove-Variable session, headers
      +
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      +$sessionPath = Join-Path $profilePath 'config\local-session.json'
      +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      +Invoke-RestMethod -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/station/catalog' -Headers $headers
      +Remove-Variable session, headers

      A synthetic write with subsequent readback

      This example demonstrates the existing Meetings HTTP contract in an @@ -714,24 +799,24 @@

      A synthetic write service. Its authentication setup is included so it can be run independently under the signed-in synthetic account. If a write times out, inspect current records before repeating it.

      -
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      -$sessionPath = Join-Path $profilePath 'config/local-session.json'
      -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      -$body = @{
      -  title = 'Synthetic documentation exercise'
      -  scheduled_start = '2026-11-05T18:00:00-07:00'
      -  location = 'Synthetic room'
      -  meeting_type = 'regular'
      -} | ConvertTo-Json
      -$meeting = Invoke-RestMethod -Method Post `
      -  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
      -  -Headers $headers -ContentType 'application/json' -Body $body
      -Invoke-RestMethod `
      -  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
      -  -Headers $headers
      -Remove-Variable session, headers
      +
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      +$sessionPath = Join-Path $profilePath 'config/local-session.json'
      +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      +$body = @{
      +  title = 'Synthetic documentation exercise'
      +  scheduled_start = '2026-11-05T18:00:00-07:00'
      +  location = 'Synthetic room'
      +  meeting_type = 'regular'
      +} | ConvertTo-Json
      +$meeting = Invoke-RestMethod -Method Post `
      +  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
      +  -Headers $headers -ContentType 'application/json' -Body $body
      +Invoke-RestMethod `
      +  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
      +  -Headers $headers
      +Remove-Variable session, headers

      This write requires Meetings to be enabled and the signed-in staff role to permit it. It is a cross-suite integration example; for this product’s request models, use the complete technical reference @@ -765,8 +850,8 @@

      MCP and automation boundary

      deployment. This documentation does not add such a service.

      For a transcription client already provisioned separately, an illustrative tool call is:

      -
      {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}
      +
      {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}

      Use a job ID returned by that transcription service. This example does not create a Townlight record or bypass its review/Records handoff. The exact optional adapter tool signatures are supplied in the Suite manual Versions and Windows release Terms and license -

      Windows 1.8.2.1 maintenance release

      Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

      Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

      Release and downloads · Acceptance and limits

      - +

      Windows 1.8.2.1 maintenance release

      +

      Station recorder candidate

      +

      Windows 1.9.0.1 / Station 0.4.0 is in development and has not been +published. It adds integrated recorder setup/recovery, camera and +microphone selection with a test clip, eight-hour/64 GiB recording +limits and streamed Records attachment, and renewable authorized +operator sessions. Existing released MSI and historical acceptance +remain unchanged. Candidate verification and limits: recorder +completion record. Tagging/publication require the project owner’s +approval.

      Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, @@ -316,7 +268,7 @@

      Fresh installation

      1. Download the signed MSI, matching source companion and checksums from the public +href="https://github.com/townlight/townlight/releases/tag/townlight-windows-v1.8.1.1">public Windows release.
      2. Verify the MSI hash and Authenticode publisher before installation. See the Workflow subject index

      href="https://townlight.github.io/manuals/portal.html">Townlight Portal Guide for its workflow and acceptance limits.

      +

      Source package installation

      +

      Use locally built wheels from the exact component sources in the +corresponding-source companion and verify their hashes. Do not relabel +historical release assets. Installation of these Python packages is a +developer/package check; the signed Windows MSI and its installed +acceptance remain separate.

      +

      In a new Windows virtual environment, replace the example +wheel-directory path with your locally built wheel directory from the +matching pinned source and verify its SHA256 manifest:

      +
      python -m venv .venv
      +.\.venv\Scripts\Activate.ps1
      +$candidateWheels = (Resolve-Path 'C:\path\to\candidate-wheels').Path
      +python -m pip install (Join-Path $candidateWheels 'townlight_core-1.3.0.dev2-py3-none-any.whl')
      +python -m pip install (Join-Path $candidateWheels 'townlight_records-1.8.0.dev2-py3-none-any.whl')
      +python -c "import townlight_records; from importlib.metadata import version; print(version('townlight-records'))"
      +

      Expected principal import: townlight_records; expected +distribution version: 1.8.0.dev2. For standalone component +workflow testing, use a fresh empty database and profile. These +component commands do not perform a Windows MSI upgrade. See First run +for the supported Windows upgrade.

      +

      License and responsible use

      +

      Current owned code is AGPL-3.0-only. Preserve full license, matching +corresponding source, dependency notices and historical grants. Terms of +use do not remove license rights. Source imports do not confer +permission to publish third-party material. Review all automatic drafts +and use the separate owning-product decision before official action. +CivicCast remains independent.

      +

      Earlier documentation

      +

      Previous editions are retained under +docs/history/pre-townlight-beta-1/. They describe their +original software and license grants. Use the current Townlight Beta 1 +manual for this candidate.

      +

      Public meeting +portal (separately deployed beta)

      +

      Townlight’s separately deployed portal can publish a reviewed +Meetings archive with an explicitly selected, verified Records release +copy of the matching completed Station recording. Staff must separately +approve publication; fulfilling a Records request does not make the copy +public. Review public text and the selected file, then use the Wagtail +superuser publication form. Explicit withdrawal hides the published +meeting and file. An unsuccessful sync preserves the previous +publication. Keep the private original and never expose the native +session proof. See the portal +guide for staff steps, setup, API, recovery and source +obligations.

      +

      This portal beta is distributed separately from the desktop +installer. The existing signed Beta 1 installer and historical Sandbox +results do not establish that it contains or deploys this portal. +CivicCast remains separate.

    \ No newline at end of file diff --git a/docs/beta-1/readmes/station.html b/docs/beta-1/readmes/station.html index c76da92..97d78ab 100644 --- a/docs/beta-1/readmes/station.html +++ b/docs/beta-1/readmes/station.html @@ -14,70 +14,24 @@ -

    Windows 1.8.2.1 maintenance release

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

    Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

    Release and downloads · Acceptance and limits

    - +
    +
    +

    Repository scope: the lightweight Python meeting +recorder remains in beta-1/. The experimental Rust +broadcast engine moved to private CivicCast Lab. See +docs/RUST-SEPARATION.md. Historical release evidence is +unchanged.

    +
    +

    Station recorder candidate

    +

    Windows 1.9.0.1 / Station 0.4.0 is in development and has not been +published. It adds integrated recorder setup/recovery, camera and +microphone selection with a test clip, eight-hour/64 GiB recording +limits and streamed Records attachment, and renewable authorized +operator sessions. Existing released MSI and historical acceptance +remain unchanged. Candidate verification and limits: recorder +completion record. Tagging/publication require the project owner’s +approval.

    Windows 1.8.2.1 maintenance release

    Windows 1.8.2.1 packages the staff authorization, explicit database @@ -267,7 +221,7 @@

    Fresh installation

    1. Download the signed MSI, matching source companion and checksums from the public +href="https://github.com/townlight/townlight/releases/tag/townlight-windows-v1.8.1.1">public Windows release.
    2. Verify the MSI hash and Authenticode publisher before installation. See the Delivery subject index href="https://townlight.github.io/manuals/portal.html">Townlight Portal Guide for its workflow and acceptance limits.

      -

      Shared meeting imports

      -

      Use Meetings → Import meeting records in Windows -1.8.1.1. Select a source and format, enter the original public URL, then -choose Preview import. For a saved response, select the -file before previewing. Choose a meeting and use Save selected -meeting. Townlight records the source URL, format, stable -source ID and capture hash with the canonical meeting. Reopening the -same capture returns the existing meeting. A changed capture for that -identity is reported for staff review.

      -

      The source and format selector lists the supported reader pairs -below. A public URL must serve the chosen format directly. Use a saved -public response for POST-only listings, portals that require a browser -session and sources whose page does not return the required response. -The importer reads what a municipality publishes in that response. -Fields and attachments vary by municipality and by meeting.

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      SourceInput to preview
      LegistarCore-format JSON export
      PrimeGovCore-format JSON export or public portal meeting list JSON
      GranicusCore-format JSON export or public ViewPublisher HTML
      NovusAGENDACore-format JSON export
      CivicPlus Agenda and Meeting Management SelectPublic Events JSON
      CivicPlus Agenda CenterPublic listing HTML
      Municode MeetingsPublic meetings HTML
      BoardBookPublic organization HTML
      eSCRIBEPublic calendar JSON
      SimbliPublic meeting listing HTML
      iCompass CivicWebPublic meeting-type listing HTML
      iQM2Public meeting list HTML
      Granicus SwagitPublic video archive HTML
      SuiteOne MediaPublic meeting archive HTML
      Granicus PeakPublic agenda center ViewPublisher HTML
      Utah Public Notice WebsitePublic notice detail HTML
      Destiny AgendaQuickPublic meeting list HTML
      Town Hall StreamsPublic archive HTML
      TelVuePublic playlist HTML
      CHAMPPublic event JSON
      Hyland OnBasePublic Agenda Online HTML
      Laserfiche WebLinkSaved public dated document folder HTML
      TownCloudSaved public agenda table JSON or public agenda detail HTML
      Digital TowpathPublic meeting detail HTML
      ClerkBasePublic meeting document HTML
      Municipality-published calendarPublic iCalendar feed
      WistiaPublic media JSON
      BoardablePublic Site meeting detail HTML
      gWorks FrontDeskPublic city meetings JSON
      Diligent BoardDocsUnencrypted printed agenda PDF with numbered items
      Tyler Meeting ManagerSaved public calendar JSON. Meeting information and item titles when -present.
      -

      Staff handoffs

      -
        -
      • Core and Meetings. Core's existing vendor formats -share the same preview and save path as the public readers. The saved -meeting and any structured agenda items open in the regular Meetings -workflow.
      • -
      • Records. In Meetings, load imported documents by -meeting ID, choose a PDF and enter the destination Records request ID. -The attachment retains the citation and file hash. An HTML viewer or a -dead document link may need staff to obtain the PDF separately.
      • -
      • Notice and Access. Use Review imported -text to start a Notice draft or accessibility review with the -source citation. Use each workspace's normal review and save -actions.
      • -
      • Station. In the configured Station operator page, -select the saved meeting and stage a direct MP4. Use the private capture -workflow to queue processing. Player-only references are visible without -a staging action.
      • -
      • Code. Use the existing ordinance proposal and -adoption workflow with the canonical imported meeting and agenda -IDs.
      • -
      • Boards, Contracts, Procurement, Zoning, Planning, Permitting -and Inspections. In the destination workspace use -Imported meeting evidence. Select an existing staff -record and the saved meeting, then save the citation. The destination's -existing role and workflow apply.
      • -
      -

      Shared interface

      -

      The installed Townlight Python runtime exposes a read-only CLI. -CivicCast and other local clients can consume its normalized JSON and -apply their own access and persistence rules.

      -
      python -m townlight_runtime.meeting_imports champ PUBLIC_EVENT_URL saved-event.json --format champ-event-json
      -

      Use --fetch in place of the saved file to read a -supported public response.

      -

      Interfaces and other -products

      -

      The version-1 normalized JSON contract is shared by the Python -function -townlight_runtime.meeting_imports.preview_export(connector, source_url, content, input_format=...) -and the CLI above. A saved response can also be read from stdin using --. Inputs are limited to 16 MiB. Preview is read-only; the -consuming application owns persistence, staff authorization and its own -data.

      -

      The installed native HTTP bridge exposes -GET /desktop/v1/meetings/imports/sources, -POST /desktop/v1/meetings/imports/preview, -POST /desktop/v1/meetings/imports/fetch, -POST /desktop/v1/meetings/imports/commit, and -meeting/link/document handoff operations in the native API -schema. Use the existing X-Townlight-Session -authentication, mapped staff roles and configured local PostgreSQL -service. This is a native application interface; there is no independent -anonymous importer HTTP service or importer MCP server.

      -

      CivicCast: opt in through its Townlight shared -importer source setting and TOWNLIGHT_IMPORT_PYTHON (the -absolute Python executable), TOWNLIGHT_IMPORT_CONNECTOR, -TOWNLIGHT_IMPORT_FORMAT, TOWNLIGHT_IMPORT_URL -and optional TOWNLIGHT_IMPORT_CAPTURE. The adapter saves -normalized items through the existing AgendaStore. Structured agenda -availability depends on the source response; a video listing can contain -meeting metadata without agenda items. Existing sources remain the -default.

      -

      CivicCast Brief: its existing PrimeGov and Granicus -discovery routes can opt into the shared reader using -TOWNLIGHT_IMPORT_PYTHON. Brief does not expose all 31 -sources as a new selection menu. Its existing caption/media workflow -remains the consuming path. See each project's shared-import client -documentation.

      -

      TownReporter, Describer Workbench and Textflowkit: -no shared-import adapter was added to these products. TownReporter -retains its own PrimeGov path. Describer Workbench and Textflowkit -expose their existing transcription APIs/MCP interfaces, which do not -constitute meeting-import integration. The shared engine ships inside -Townlight Runtime; a standalone library is outside this release.

      -

      Windows acceptance and -limits

      -

      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.

      -

      Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

      -

      Windows 1.8.2.1 contains Runtime 0.3.2 and Meetings 1.0.6 with corrected version displays.

      -

      Exact -Windows 1.8.1.1 acceptance and limits.

      -
    \ No newline at end of file +

    The accepted Station Python service is in beta-1/. The +Rust kernel is a separate development line; this documentation update +does not change it.

    +
    \ No newline at end of file diff --git a/docs/beta-1/readmes/suite.html b/docs/beta-1/readmes/suite.html index 8aeab4d..7f8a1c9 100644 --- a/docs/beta-1/readmes/suite.html +++ b/docs/beta-1/readmes/suite.html @@ -14,71 +14,19 @@ -

    Windows 1.8.2.1 maintenance release

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

    Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

    Release and downloads · Acceptance and limits

    - +

    Windows 1.8.2.1 maintenance release

    +

    Station recorder candidate

    +

    Windows 1.9.0.1 / Station 0.4.0 is in development and has not been +published. It adds integrated recorder setup/recovery, camera and +microphone selection with a test clip, eight-hour/64 GiB recording +limits and streamed Records attachment, and renewable authorized +operator sessions. Existing released MSI and historical acceptance +remain unchanged. Candidate verification and limits: recorder +completion record. Tagging/publication require the project owner’s +approval.

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, @@ -99,6 +47,27 @@

    Windows 1.8.2.1 maintenance and downloads · Acceptance and limits.

    +

    + + +Townlight — Municipal software cities can actually own. + +

    +

    Download +Windows beta 1.8.2.1 · Public +announcement · Support and +feedback

    +

    Windows 1.8.2.1 has signed installed acceptance for fresh setup and +an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city +data and settings, close Townlight, run the signed MSI, and reopen it +under the same Windows account with the existing +%LOCALAPPDATA%\CivicSuite profile. Keep the prior installer +and a restore path. Other upgrade paths are unverified. Station uses its +separately configured service. The acceptance summary distinguishes new +maintenance checks from reused workflow evidence.

    Windows x64 Beta 1 · MSI 1.8.2.1

    Windows 1.8.1.1 adds shared meeting imports for 31 source families, with 34 supported source/format pairs. Installed Windows Sandbox checks @@ -173,11 +142,9 @@

    Shared meeting imports · and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

    -

    Earlier installed workflow evidence used Records 1.8.0.dev2; the -current maintenance MSI includes Records 1.8.0.dev3. Windows 1.8.2.1 -contains Townlight Runtime 0.3.2 and Meetings 1.0.6. Its current -component sources and installed evidence are identified in the -maintenance acceptance summary.

    +

    Windows 1.8.2.1 contains Townlight Runtime 0.3.2 and Meetings 1.0.6. +Its current component sources and installed evidence are identified in +the maintenance acceptance summary.

    Windows 1.8.2.1 acceptance. Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from @@ -1287,4 +1254,6 @@

    Delivery subject index

    href="https://townlight.github.io/manuals/portal.html">Townlight Portal Guide for its workflow and acceptance limits.

    +

    Open Hall brand package +and usage guide.

    \ No newline at end of file diff --git a/docs/townlight_records-manual.docx b/docs/townlight_records-manual.docx index bb3c514..72f4fe8 100644 Binary files a/docs/townlight_records-manual.docx and b/docs/townlight_records-manual.docx differ diff --git a/docs/townlight_records-manual.html b/docs/townlight_records-manual.html index a1917ed..688717a 100644 --- a/docs/townlight_records-manual.html +++ b/docs/townlight_records-manual.html @@ -14,12 +14,15 @@ -

    Windows 1.8.2.1 maintenance release

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, procurement/Contracts handoffs, backup/restore and uninstall retention. Unchanged module and 31-source/34-format import evidence remains attributed to the earlier build that produced it; this is not a new exhaustive test of every module or live provider.

    Windows 1.8.2.1 has signed installed acceptance for fresh setup and an in-place upgrade from Windows 1.8.1.1. Before upgrading, back up city data and settings, close Townlight, run the signed MSI, and reopen it under the same Windows account with the existing %LOCALAPPDATA%\CivicSuite profile. Keep the prior installer and a restore path. Other upgrade paths are unverified. Station uses its separately configured service. The acceptance summary distinguishes new maintenance checks from reused workflow evidence.

    Release and downloads · Acceptance and limits

    +

    Windows 1.8.2.1 maintenance release

    +

    Windows +recorder update — 1.9.0.1 candidate (not published)

    +

    This section describes the new candidate. The public 1.8.2.1 MSI does +not acquire these capabilities until a new release is approved and +published. Candidate verification and its limits are recorded in the recorder +completion record; this is separate from the published 1.8.2.1 +evidence.

    +

    Clerk and operator

    +
      +
    1. Install Townlight and complete normal first-run setup with the full +Windows profile or a custom selection that includes Meetings and Records +(Station is bundled). Finishing setup provisions the bundled recorder, a +private database and Windows sign-in task. No PostgreSQL, Python or +media-runtime installation commands are needed. Existing installations +use Settings → Modules → Townlight Station → Set up meeting +recording.
    2. +
    3. Keep Windows signed in and the computer awake while recording. The +recorder runs in that user’s device-access session, independently of the +Townlight window. It is not a multi-user server or a full PEG station. +Closing the recorder tab does not stop a recording.
    4. +
    5. Sign in with an existing authorized staff account. From Meetings +choose Open / reconnect to meeting recorder. Select a +meeting and its agenda items. In input setup, find devices, choose one +camera/capture device and one microphone, and save. Record a ten-second +input test, then play it to check the picture and sound; the meter +responds during playback. This test clip is temporary and is not a +canonical meeting record. Windows camera/microphone privacy settings and +exclusive device use still apply. Configured UDP MPEG-TS input remains +supported.
    6. +
    7. Start the meeting recording. The default duration limit is eight +hours, with a 64 GiB file limit and at least 1 GiB reserved disk space. +Admission estimates the configured duration and bitrate. Free space is +monitored while recording; low space or a limit requests a graceful stop +and displays the reason. These are configured limits, not a claim that +every eight-hour meeting has been tested. Plan space for the recording, +its Records copy and backups. Sleep, sign-out, power failure and +unavailable hardware can interrupt capture.
    8. +
    9. An open operator page renews its fifteen-minute session against the +current Townlight staff authority. Sign-out, revoked permissions and the +underlying staff-session expiry still take effect. Reopen from Townlight +to reconnect to an existing recording; reconnect never starts a second +recording. Select Stop recording to drain and finalize +the file.
    10. +
    11. After completion, an authorized Records user selects a request and +explicitly attaches the recording. Records streams a separate managed +copy and verifies SHA-256, size and provenance; files up to 64 GiB are +accepted subject to available space. Attachment is not public release. +Review, redaction and publication remain separate Records +decisions.
    12. +
    +

    Administrator and recovery

    +

    Station setup uses bundled native dependencies and its existing +pinned CivicCast media implementation; it never starts or changes +CivicCast or CivicCast Lab. The per-user logon task owns a separate +PostgreSQL instance on loopback port 15435; Station’s API listens only +on 127.0.0.1:8756. Townlight’s existing staff authority remains on its +configured Suite origin. Protected settings and database credentials +remain in the recorder data directory, under the selected city data +location. Setup refuses unrelated nonempty storage or an unrelated task +with the same name. Retry setup after correcting readiness errors; +inspect the private background, PostgreSQL, API and worker logs when +needed.

    +

    Use Check recorder readiness, Back up +Station, and Restore Station backup in +Settings → Modules. Finish queued and active recordings before backup or +restore. Backups contain a PostgreSQL dump, recording/ingest files, +saved source choices and a SHA-256 member manifest; they omit +credentials and native executables. Restore verifies the members, +creates a pre-restore recovery copy, and restores into this +installation’s separately protected database. Recheck input selection +afterward. A Suite backup includes a coherent Station backup when +paired; it does not copy the running Station database or its secrets. +Suite restore preserves that live private directory and applies the +included Station backup separately.

    +
    flowchart LR
    +    Staff[Existing Townlight staff authority] --> Operator[Station operator]
    +    Camera[Camera and microphone or UDP feed] --> Recorder[Per-user background recorder]
    +    Operator --> Recorder
    +    Recorder --> Private[Private Station database and recording]
    +    Private -->|Explicit hash-verified attachment| Records[Records managed copy]
    +    Records --> Review[Separate review and release decision]

    Windows 1.8.2.1 packages the staff authorization, explicit database configuration and component metadata corrections. Its exact signed installed checks cover setup, the 1.8.1.1 upgrade, saved staff records, @@ -316,7 +401,7 @@

    Fresh installation

    1. Download the signed MSI, matching source companion and checksums from the public +href="https://github.com/townlight/townlight/releases/tag/townlight-windows-v1.8.1.1">public Windows release.
    2. Verify the MSI hash and Authenticode publisher before installation. See the Record a fee line or waiver at the same level as operation and request_id. Examples of command payloads follow; IDs and permissions still come from the signed-in synthetic account.

      -
      {"action":"add-records-fee-line","payload":{"feeLineDescription":"Synthetic reproduction","feeScheduleBasis":"Fictional test schedule","feeLineAmount":"12.50"}}
      {"action":"waive-records-fee","payload":{"feeWaiverReason":"Synthetic public-interest exercise"}}
      +class="sourceCode json">{"action":"add-records-fee-line","payload":{"feeLineDescription":"Synthetic reproduction","feeScheduleBasis":"Fictional test schedule","feeLineAmount":"12.50"}} +
      {"action":"waive-records-fee","payload":{"feeWaiverReason":"Synthetic public-interest exercise"}}

      Use the exact outer apply contract in the API reference rather than sending these command fragments to an arbitrary URL. After either operation, read the request again; a saved amount does not approve or @@ -532,8 +617,8 @@

      Exercise deployment. Under the application’s configured portal posture, a synthetic client can submit POST /desktop/v1/public/requests with:

      -
      {"requester":"Synthetic resident","requesterContact":"synthetic@example.invalid","summary":"Synthetic minutes request","deadline":""}
      +
      {"requester":"Synthetic resident","requesterContact":"synthetic@example.invalid","summary":"Synthetic minutes request","deadline":""}

      Retain the returned tracking information privately. POST /desktop/v1/public/lookup requires both trackingNumber and matching @@ -644,10 +729,10 @@

      Native command example

      @tauri-apps/api/core. It is not a command for an arbitrary web page or an instruction for nontechnical staff. IDs must come from records created in an isolated synthetic exercise.

      -
      import { invoke } from '@tauri-apps/api/core';
      -const result = await invoke('records_domain_request', {request: {operation: 'view', request_id: requestId}});
      -console.log(result);
      +
      import { invoke } from '@tauri-apps/api/core';
      +const result = await invoke('records_domain_request', {request: {operation: 'view', request_id: requestId}});
      +console.log(result);

      Trusted local HTTP example

      An administrator/developer can inspect an already-configured isolated runtime from a trusted local process. This PowerShell example reads the @@ -655,13 +740,13 @@

      Trusted local HTTP example

      create a user, seed a session, reveal the proof in output or bypass a permission check. Do not use real city data in development examples. A read response does not prove approval or publication.

      -
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      -$sessionPath = Join-Path $profilePath 'config\local-session.json'
      -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      -Invoke-RestMethod -Uri 'http://127.0.0.1:15480/desktop/v1/records-state' -Headers $headers
      -Remove-Variable session, headers
      +
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      +$sessionPath = Join-Path $profilePath 'config\local-session.json'
      +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      +Invoke-RestMethod -Uri 'http://127.0.0.1:15480/desktop/v1/records-state' -Headers $headers
      +Remove-Variable session, headers

      A synthetic write with subsequent readback

      This example demonstrates the existing Meetings HTTP contract in an @@ -669,24 +754,24 @@

      A synthetic write service. Its authentication setup is included so it can be run independently under the signed-in synthetic account. If a write times out, inspect current records before repeating it.

      -
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      -$sessionPath = Join-Path $profilePath 'config/local-session.json'
      -$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      -$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      -$body = @{
      -  title = 'Synthetic documentation exercise'
      -  scheduled_start = '2026-11-05T18:00:00-07:00'
      -  location = 'Synthetic room'
      -  meeting_type = 'regular'
      -} | ConvertTo-Json
      -$meeting = Invoke-RestMethod -Method Post `
      -  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
      -  -Headers $headers -ContentType 'application/json' -Body $body
      -Invoke-RestMethod `
      -  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
      -  -Headers $headers
      -Remove-Variable session, headers
      +
      $profilePath = Join-Path $env:LOCALAPPDATA 'CivicSuite'
      +$sessionPath = Join-Path $profilePath 'config/local-session.json'
      +$session = Get-Content -LiteralPath $sessionPath -Raw | ConvertFrom-Json
      +$headers = @{ 'X-Townlight-Session' = $session.session_hash }
      +$body = @{
      +  title = 'Synthetic documentation exercise'
      +  scheduled_start = '2026-11-05T18:00:00-07:00'
      +  location = 'Synthetic room'
      +  meeting_type = 'regular'
      +} | ConvertTo-Json
      +$meeting = Invoke-RestMethod -Method Post `
      +  -Uri 'http://127.0.0.1:15480/desktop/v1/meetings/meetings' `
      +  -Headers $headers -ContentType 'application/json' -Body $body
      +Invoke-RestMethod `
      +  -Uri ('http://127.0.0.1:15480/desktop/v1/meetings/meetings/' + $meeting.id) `
      +  -Headers $headers
      +Remove-Variable session, headers

      This write requires Meetings to be enabled and the signed-in staff role to permit it. It is a cross-suite integration example; for this product’s request models, use the complete technical reference @@ -721,8 +806,8 @@

      MCP and automation boundary

      deployment. This documentation does not add such a service.

      For a transcription client already provisioned separately, an illustrative tool call is:

      -
      {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}
      +
      {"name":"get_job_status","arguments":{"job_id":"synthetic-existing-job-id"}}

      Use a job ID returned by that transcription service. This example does not create a Townlight record or bypass its review/Records handoff. The exact optional adapter tool signatures are supplied in the