Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
---
name: Bug report
about: Report a CivicComms defect
about: Report a Townlight Communications defect
title: "[Bug]: "
labels: bug
assignees: ""
---

## What happened?

## What should CivicComms have done instead?
<a id="what-should-civiccomms-have-done-instead"></a>

## What should Townlight Communications have done instead?

## Steps to reproduce

## Environment

- CivicComms version:
- Townlight Communications version:
- Python version:
- Operating system:
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Feature request
about: Suggest a CivicComms capability
about: Suggest a Townlight Communications capability
title: "[Feature]: "
labels: enhancement
assignees: ""
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Summary

Describe the CivicComms change in one or two sentences.
Describe the Townlight Communications change in one or two sentences.

## Verification

Expand Down
16 changes: 9 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# CivicComms Agent Board
<a id="civiccomms-agent-board"></a>

# Townlight Communications Agent Board

## Operating Contract

- Upstream suite spec: `CivicSuite/civicsuite/docs/CivicSuiteUnifiedSpec.md`, especially the CivicComms catalog entry and suite-wide non-negotiables.
- CivicComms supports source-backed public explainers, meeting summaries, ordinance summaries, newsletters, FAQs, and audience-specific draft variants.
- Upstream suite spec: `townlight/townlight/docs/CivicSuiteUnifiedSpec.md`, especially the Townlight Communications catalog entry and suite-wide non-negotiables.
- Townlight Communications supports source-backed public explainers, meeting summaries, ordinance summaries, newsletters, FAQs, and audience-specific draft variants.
- AGPL-3.0-only for code (with the TownLight Public Institution Exception for qualifying deployments), CC BY 4.0 for documentation.
- Every change must keep docs, tests, browser QA evidence, and version surfaces in sync.

## Hard Boundaries

- CivicComms never publishes autonomously, creates campaign or advocacy content, provides legal advice, certifies translations, posts to social media, or updates a communications system of record.
- CivicComms v0.1.1 must not call live LLMs or live publishing/social-media/communications systems.
- Townlight Communications never publishes autonomously, creates campaign or advocacy content, provides legal advice, certifies translations, posts to social media, or updates a communications system of record.
- Townlight Communications v0.1.1 must not call live LLMs or live publishing/social-media/communications systems.
- Every generated artifact is a draft requiring staff review, citation verification, approval, and publication through official city channels.
- CivicComms depends on CivicCore; CivicCore must never depend on CivicComms.
- CivicComms may reference CivicClerk, CivicCode, and CivicAccess concepts only through released APIs or deterministic sample data in v0.1.1.
- Townlight Communications depends on Townlight Core; Townlight Core must never depend on Townlight Communications.
- Townlight Communications may reference Townlight Meetings, Townlight Code, and Townlight Access concepts only through released APIs or deterministic sample data in v0.1.1.

## Verification

Expand Down
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Contributing to CivicComms
<a id="contributing-to-civiccomms"></a>

Thank you for helping CivicComms become useful municipal software.
# Contributing to Townlight Communications

Thank you for helping Townlight Communications become useful municipal software.

## Local setup

Expand All @@ -12,7 +14,7 @@ bash scripts/verify-release.sh

## Boundaries

- CivicComms gives source-backed communication draft support, not autonomous publication, campaign content, legal advice, certified translation, or official social media posting.
- Townlight Communications gives source-backed communication draft support, not autonomous publication, campaign content, legal advice, certified translation, or official social media posting.
- Do not present generated summaries, explainers, newsletters, FAQs, or audience variants as publish-ready without staff review and citation verification.
- Do not add live LLM, social-media, publishing-system, or communications-system integrations without updating docs, tests, browser QA evidence, and the release gate.

Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# CivicComms
<a id="civiccomms"></a>

CivicComms is the CivicSuite module for source-backed public explainers, meeting summaries, ordinance summaries, newsletters, FAQs, and audience-specific draft variants.
# Townlight Communications

Townlight Communications is the Townlight module for source-backed public explainers, meeting summaries, ordinance summaries, newsletters, FAQs, and audience-specific draft variants.

Current state: **v0.1.1 public communications foundation plus draft persistence release**. This repo ships a FastAPI package, health/root endpoints, documentation gates, deterministic source-readiness review, meeting summary draft outlines, optional database-backed source review and meeting summary draft records, ordinance explainer drafts, newsletter scaffolds, FAQ prompts, audience-variant drafts, and accessible public sample UI at `/civiccomms`. It does **not** ship autonomous publication, campaign or advocacy content, legal advice, certified translation, live LLM calls, social media posting, or communications system-of-record integrations.

## What CivicComms Does
<a id="what-civiccomms-does"></a>

## What Townlight Communications Does

- Check that draft work starts from named source material and citations.
- Create deterministic meeting summary draft outlines.
Expand All @@ -14,7 +18,9 @@ Current state: **v0.1.1 public communications foundation plus draft persistence
- Produce audience-specific variants without changing source facts.
- Demonstrate a public communications-support UI at `/civiccomms`.

## What CivicComms Does Not Do
<a id="what-civiccomms-does-not-do"></a>

## What Townlight Communications Does Not Do

- It does not publish or post autonomously.
- It does not produce campaign, advocacy, or partisan content.
Expand All @@ -26,7 +32,7 @@ Current state: **v0.1.1 public communications foundation plus draft persistence
## API Surface

- `GET /` returns the shipped/planned boundary.
- `GET /health` returns package and CivicCore versions.
- `GET /health` returns package and Townlight Core versions.
- `GET /civiccomms` returns the accessible public sample UI.
- `POST /api/v1/civiccomms/source-review` returns source-readiness checks.
- `GET /api/v1/civiccomms/source-review/{review_id}` retrieves a persisted source review when `CIVICCOMMS_DRAFT_DB_URL` is configured.
Expand All @@ -39,11 +45,11 @@ Current state: **v0.1.1 public communications foundation plus draft persistence

## Optional Persistence

Set `CIVICCOMMS_DRAFT_DB_URL` to enable local SQLAlchemy-backed source review and meeting summary records. Without that variable, CivicComms remains deterministic and stateless. Retrieval endpoints return actionable `503` responses that name the required configuration.
Set `CIVICCOMMS_DRAFT_DB_URL` to enable local SQLAlchemy-backed source review and meeting summary records. Without that variable, Townlight Communications remains deterministic and stateless. Retrieval endpoints return actionable `503` responses that name the required configuration.

## Local Development

CivicComms v0.1.1 is pinned to `civiccore==0.3.0`.
Townlight Communications v0.1.1 is pinned to `civiccore==0.3.0`.

```bash
python -m pip install -e ".[dev]"
Expand Down
6 changes: 3 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CivicComms
Townlight Communications
==========

CivicComms is the CivicSuite module for source-backed public explainers, meeting summaries, ordinance summaries, newsletters, FAQs, and audience-specific draft variants.
Townlight Communications is the Townlight module for source-backed public explainers, meeting summaries, ordinance summaries, newsletters, FAQs, and audience-specific draft variants.

Current state: v0.1.1 public communications foundation plus draft persistence release. This repo ships a FastAPI package, health/root endpoints, documentation gates, deterministic source-readiness review, meeting summary draft outlines, optional database-backed source review and meeting summary draft records, ordinance explainer drafts, newsletter scaffolds, FAQ prompts, audience-variant drafts, and accessible public sample UI at /civiccomms.

Expand All @@ -20,7 +20,7 @@ API:
- POST /api/v1/civiccomms/faq
- POST /api/v1/civiccomms/audience-variant

Optional persistence: set CIVICCOMMS_DRAFT_DB_URL to enable SQLAlchemy-backed source review and meeting summary draft records. Without it, CivicComms remains deterministic and stateless.
Optional persistence: set CIVICCOMMS_DRAFT_DB_URL to enable SQLAlchemy-backed source review and meeting summary draft records. Without it, Townlight Communications remains deterministic and stateless.

Run:

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Security Policy

CivicComms is early-stage software. Current version: `0.1.1`. Do not deploy it as a communications system of record until a release explicitly says it is production-ready.
Townlight Communications is early-stage software. Current version: `0.1.1`. Do not deploy it as a communications system of record until a release explicitly says it is production-ready.

Report security issues privately through GitHub Security Advisories when available. Do not disclose exploitable details in public issues.
2 changes: 1 addition & 1 deletion SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Support

CivicComms is not a hosted service. Cities or implementers operate their own installation.
Townlight Communications is not a hosted service. Cities or implementers operate their own installation.

For bugs, use GitHub Issues. For security concerns, use GitHub Security Advisories when available.
14 changes: 8 additions & 6 deletions USER-MANUAL.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# CivicComms User Manual
<a id="civiccomms-user-manual"></a>

# Townlight Communications User Manual

## For Non-Technical Users

CivicComms helps staff turn city source material into public-facing draft communications. It can review whether sources and citations are present, outline meeting summaries, draft ordinance explainers, structure newsletters, suggest FAQ prompts, and create audience-specific variants.
Townlight Communications helps staff turn city source material into public-facing draft communications. It can review whether sources and citations are present, outline meeting summaries, draft ordinance explainers, structure newsletters, suggest FAQ prompts, and create audience-specific variants.

Current state: `0.1.1` public communications foundation plus draft persistence release. CivicComms can optionally save source review and meeting summary draft records when IT configures `CIVICCOMMS_DRAFT_DB_URL`. CivicComms does not publish or post autonomously, create campaign or advocacy content, provide legal advice, certify translations, call live LLMs, post to social media, or replace a communications system of record. Staff own every draft, citation, approval, and publication decision.
Current state: `0.1.1` public communications foundation plus draft persistence release. Townlight Communications can optionally save source review and meeting summary draft records when IT configures `CIVICCOMMS_DRAFT_DB_URL`. Townlight Communications does not publish or post autonomously, create campaign or advocacy content, provide legal advice, certify translations, call live LLMs, post to social media, or replace a communications system of record. Staff own every draft, citation, approval, and publication decision.

## For IT and Technical Staff

CivicComms is a FastAPI Python package pinned to `civiccore==0.3.0`. The current runtime exposes:
Townlight Communications is a FastAPI Python package pinned to `civiccore==0.3.0`. The current runtime exposes:

- `GET /`
- `GET /health`
Expand All @@ -30,7 +32,7 @@ python -m pytest -q
bash scripts/verify-release.sh
```

Set `CIVICCOMMS_DRAFT_DB_URL` to enable local SQLAlchemy-backed source review and meeting summary draft records. If the variable is not set, CivicComms keeps deterministic stateless behavior and retrieval endpoints return actionable configuration guidance.
Set `CIVICCOMMS_DRAFT_DB_URL` to enable local SQLAlchemy-backed source review and meeting summary draft records. If the variable is not set, Townlight Communications keeps deterministic stateless behavior and retrieval endpoints return actionable configuration guidance.

## Architecture

Expand All @@ -44,4 +46,4 @@ flowchart LR
CivicComms --> Drafts["Human-approved draft artifacts"]
```

CivicComms depends on CivicCore. CivicCore does not depend on CivicComms. CivicComms v0.1.1 uses deterministic sample source-backed drafting plus optional local draft persistence; autonomous publication, campaign or advocacy content, legal advice, certified translation, live LLM calls, social media posting, and production communications-system integrations are future work.
Townlight Communications depends on Townlight Core. Townlight Core does not depend on Townlight Communications. Townlight Communications v0.1.1 uses deterministic sample source-backed drafting plus optional local draft persistence; autonomous publication, campaign or advocacy content, legal advice, certified translation, live LLM calls, social media posting, and production communications-system integrations are future work.
12 changes: 6 additions & 6 deletions USER-MANUAL.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
CivicComms User Manual
Townlight Communications User Manual
======================

For Non-Technical Users
-----------------------

CivicComms helps staff turn city source material into public-facing draft communications. It can review whether sources and citations are present, outline meeting summaries, draft ordinance explainers, structure newsletters, suggest FAQ prompts, and create audience-specific variants.
Townlight Communications helps staff turn city source material into public-facing draft communications. It can review whether sources and citations are present, outline meeting summaries, draft ordinance explainers, structure newsletters, suggest FAQ prompts, and create audience-specific variants.

Current state: 0.1.1 public communications foundation plus draft persistence release. CivicComms can optionally save source review and meeting summary draft records when IT configures CIVICCOMMS_DRAFT_DB_URL. CivicComms does not publish or post autonomously, create campaign or advocacy content, provide legal advice, certify translations, call live LLMs, post to social media, or replace a communications system of record. Staff own every draft, citation, approval, and publication decision.
Current state: 0.1.1 public communications foundation plus draft persistence release. Townlight Communications can optionally save source review and meeting summary draft records when IT configures CIVICCOMMS_DRAFT_DB_URL. Townlight Communications does not publish or post autonomously, create campaign or advocacy content, provide legal advice, certify translations, call live LLMs, post to social media, or replace a communications system of record. Staff own every draft, citation, approval, and publication decision.

For IT and Technical Staff
--------------------------

CivicComms is a FastAPI Python package pinned to civiccore==0.3.0. The current runtime exposes:
Townlight Communications is a FastAPI Python package pinned to civiccore==0.3.0. The current runtime exposes:

- GET /
- GET /health
Expand All @@ -31,9 +31,9 @@ python -m pip install -e ".[dev]"
python -m pytest -q
bash scripts/verify-release.sh

Set CIVICCOMMS_DRAFT_DB_URL to enable local SQLAlchemy-backed source review and meeting summary draft records. If the variable is not set, CivicComms keeps deterministic stateless behavior and retrieval endpoints return actionable configuration guidance.
Set CIVICCOMMS_DRAFT_DB_URL to enable local SQLAlchemy-backed source review and meeting summary draft records. If the variable is not set, Townlight Communications keeps deterministic stateless behavior and retrieval endpoints return actionable configuration guidance.

Architecture
------------

CivicComms depends on CivicCore. CivicCore does not depend on CivicComms. CivicComms v0.1.1 uses deterministic sample source-backed drafting plus optional local draft persistence; autonomous publication, campaign or advocacy content, legal advice, certified translation, live LLM calls, social media posting, and production communications-system integrations are future work.
Townlight Communications depends on Townlight Core. Townlight Core does not depend on Townlight Communications. Townlight Communications v0.1.1 uses deterministic sample source-backed drafting plus optional local draft persistence; autonomous publication, campaign or advocacy content, legal advice, certified translation, live LLM calls, social media posting, and production communications-system integrations are future work.
2 changes: 1 addition & 1 deletion civiccomms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""CivicComms runtime foundation package."""
"""Townlight Communications runtime foundation package."""

__version__ = "0.1.1"
4 changes: 2 additions & 2 deletions civiccomms/audience_variants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Audience variant draft helper for CivicComms."""
"""Audience variant draft helper for Townlight Communications."""

from dataclasses import dataclass

Expand All @@ -24,7 +24,7 @@ def draft_audience_variant(
review_notes=[
"Verify this version preserves the source facts.",
"Confirm tone is neutral, factual, and non-advocacy.",
"Send multilingual or accessibility variants through CivicAccess review.",
"Send multilingual or accessibility variants through Townlight Access review.",
],
boundary="Variant draft only; no autonomous posting or translation certification.",
)
2 changes: 1 addition & 1 deletion civiccomms/faq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""FAQ draft helper for CivicComms."""
"""FAQ draft helper for Townlight Communications."""

from dataclasses import dataclass

Expand Down
Loading
Loading