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
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ say in the PR which way you read it.
don't reopen them without a new reason.
- **Stop and ask a maintainer first** before you:
- add a dependency, a new tool or language, or a GitHub Actions workflow;
- change licensing, the published API shape (`api/`, `openapi/`), or URLs that
- change licensing, the published API shape (`src/domus/api/`, `src/frontend/openapi.json`), or URLs that
others may cite;
- Make incompatible data structure changes for backup/restore, so that
maintainers can decide it a new software version is needed.
Expand All @@ -49,6 +49,8 @@ say in the PR which way you read it.
| `scripts/` | Developer and CI helpers, such as `check_licenses.py` |
| `docs/` | Documentation; `docs/_prompts/` holds the design history and plans |
| `examples/` | Sample datasets, such as `examples/sample-home/` |
| `deploy/` | Dockerfile, Compose example, Caddy example |
| `mkdocs.yml` | Docs site config, built with Zensical |
| `.github/workflows/` | CI: lint, type check, tests, license check |

Run the same checks CI runs with `uv run ruff check .`, `uv run ruff format --check .`,
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ uv run pip-licenses --from=mixed --format=json | uv run python scripts/check_lic

Tests must not use the network; stub or mock every fetch.

The front end in `src/frontend/` has its own checks (ESLint, Prettier, TypeScript,
Vitest, build, and an npm license check); see [its README](src/frontend/README.md).

### Testing on PostgreSQL (experimental)

SQLite is the default. To run the same suite against a local PostgreSQL 15+
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ Holistic home helper: IOT inventory, mapping, control, and Home Assistant integr

## Status

Domus is in early development (v0.1). The design work so far, including the original spec, the decisions made, and the master plan, is in [`docs/_prompts/`](docs/_prompts/README.md).
Domus is in early development. The v0.1 features are merged on `main`; no release is tagged yet.

What v0.1 does: an inventory of Devices by Property, Building, Floor, and Area; maintenance tasks with due dates, **Mark done**, and an iCal feed; floor plans and wall photos with device pins; import from Home Assistant; search; roles (Admin, Maintainer, Resident, Guest) with access rules and critical items; and backups you can make in the web interface or the CLI, with restore from the CLI. What is still to do from the v0.1 plan, such as scheduled backups, is listed in [section 12 of the master plan](docs/_prompts/plan/HomeIOT-Master-Plan.md#12-v01-status-2026-11-07).

The design work, including the original spec, the decisions made, and the plans, is in [`docs/_prompts/`](docs/_prompts/README.md).

**No data compatibility before v0.3.** During v0.1 and v0.2, database structures, schemas, and backup contents may change in ways that older versions cannot read, and a newer version may not restore an older backup. Don't keep data you care about in Domus yet.

Expand Down
11 changes: 9 additions & 2 deletions docs/_prompts/01-decisions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Planning decisions

Decisions made by Shane Curcuru during the initial planning session on 2026-11-06, in the order they were made. The plan documents in [plan/](plan/) reflect all of them.
Decisions made by Shane Curcuru during planning and the v0.1 build (2026-11-06 to 2026-11-07). Numbers are in the order the decisions were recorded here, which is not always the order they were made: decisions 24 to 30 were made during the v0.1 build and recorded in pull requests or project threads before they were added to this list. The plan documents in [plan/](plan/) reflect all of them.

## Kickoff

Expand All @@ -20,7 +20,7 @@ Decisions made by Shane Curcuru during the initial planning session on 2026-11-0
| 8 | Notifications | iCal feed only for the first version. |
| 9 | Buildings | A property can have multiple buildings (house, garage, shed) with basic spatial relationships to each other; a future outdoor map covers landscape lighting and similar. |
| 10 | Python version | Python 3.14+ for all work. |
| 11 | Maintainer role | Add a Maintainer role: can add new items and program most IoT/HA items or integrations, but cannot change Admins and cannot edit selected "critical" components. Example: the teenager who adds a game console and TV but is not allowed to access the master bedroom controls. Storage design is proposed in the plan (critical flag + access rules) and awaits confirmation. |
| 11 | Maintainer role | Add a Maintainer role: can add new items and program most IoT/HA items or integrations, but cannot change Admins and cannot edit selected "critical" components. Example: the teenager who adds a game console and TV but is not allowed to access the master bedroom controls. Storage design: a critical flag plus access rules (data-storage-backup.md section 2.3.1), built as written in v0.1 (`src/domus/services/access.py`). |
| 12 | Name and repository | The project is named **Domus**; the repository is `punderthings/domus`. |
| 13 | Design docs location | Keep the design history in `docs/_prompts/` so all documentation is in one place. |
| 14 | AGENTS.md | The plan follows the repository's AGENTS.md (ASF Category A licenses for every dependency, uv, no-network tests, commit trailers, maintainer approval for new dependencies, workflows, and backup-incompatible changes). |
Expand All @@ -33,3 +33,10 @@ Decisions made by Shane Curcuru during the initial planning session on 2026-11-0
| 21 | Home Assistant client | Add `websockets` (BSD-3-Clause, no dependencies) as a core runtime dependency for the Home Assistant WebSocket API, which is the only API with the device, area, and floor registries (PR #10). |
| 22 | Imported device placement | When Home Assistant only knows a device's Area, the import puts it in one general location per Area, of the new location kind `unspecified` ("Somewhere in this area"), so Area filters and access rules cover it; users can move it later (PR #10). |
| 23 | Generic BSD license | Packages whose metadata says only "BSD License" are accepted across the board, with no per-package review; "BSD" and "BSD-3-Clause" are both acceptable (Shane, 2026-11-07). |
| 24 | Database layer | Synchronous SQLAlchemy 2 with the standard library `sqlite3` driver. PostgreSQL uses `pg8000>=1.31.5` (BSD-3-Clause, pure Python; 1.31.5 fixes CVE-2025-61385) as the optional `domus[postgres]` extra. This replaces the earlier aiosqlite and asyncpg proposal. Async code is still fine for the Home Assistant WebSocket client (Shane, 2026-11-06). |
| 25 | UI terms | The UI says **Area** (Home Assistant's word, which also covers outdoor spaces) and **Device** (what homeowners say, for a furnace as well as a smart plug). The API and data model keep `area` and `asset`. The display words live in `src/frontend/src/terms.ts` (Shane, 2026-11-06). |
| 26 | Docs site | Build the user docs with Zensical (MIT), configured in `mkdocs.yml`, in its own `docs` dependency group. Its `pathspec` dependency (MPL-2.0) is a build-only tool under decision 20 (Shane, 2026-11-06, PR #9). |
| 27 | Sample data in the UI | An Admin-only **Load sample data** button adds Sample Home as a second property, and the account menu gets a property switcher. The CLI import into a blank instance stays for manual testing (Shane, 2026-11-06, PR #9). |
| 28 | Data compatibility | No database, schema, or backup compatibility is promised during v0.1 and v0.2: schemas may change freely, and a newer version need not open older data or restore older backups. The "migrate forward" rule starts with v0.3 (Shane, 2026-11-06). |
| 29 | Guest uploads | Guests never get upload features: no photos, files, or floor plans. Uploads need Resident or above (Shane, 2026-11-07, PR #8). |
| 30 | Restore in v0.1 | The web UI makes, lists, and downloads backups (Admin of every property only, because a backup holds all of them). Restore stays CLI-only in v0.1, because it replaces the database under the running server (Shane, 2026-11-07, PR #12). |
Loading
Loading