---
id: DEC-000004
title: Privacy boundary and activity data
summary: Public and private material live in separate repositories; activity records stay in their source systems and enter the repository only as dataset snapshots.
schema: 1
revision: 1
status: draft
visibility: public
created: 2026-12-03
taxonomy: [TAX-000043, TAX-000044]
relations:
  - {type: supports, target: STD-000001}
contributors:
  - {name: xmzr, role: author}
  - {name: Claude Opus 5.5, role: drafting, agent: true}
changes: Initial draft.
---

## Context

The project brief requires an architectural separation between public and private material, and public release as an explicit act. It also proposes an activity layer for workouts, study sessions and measurements.

## Options

Table 1. Privacy boundary.

| Option | Failure mode |
|---|---|
| One repository, `visibility` field per object | A single wrong flag, or the git history of a once-private file, publishes private data |
| One repository, private directory excluded from the build | Same history exposure if the repository is ever made public |
| Two repositories with the same schema | Promotion requires a deliberate copy; history of the public repository never contains private data |

Table 2. Activity records.

| Option | Cost |
|---|---|
| One Activity log object per workout or session | Thousands of low-value documents; duplicates the source systems |
| Records stay in source systems; snapshots exported as datasets | Requires an export step per analysis |

## Decision

1. This repository is public by construction. The build rejects any object whose visibility is not `public`.
2. Private and restricted objects live in a separate private repository that uses the same schema and tools.
3. Publication of a private object is a reviewed copy into this repository, with personal data removed.
4. Activity records remain in the systems that collect them: workout tracker, study log, typing-practice application, task manager. An analysis exports a snapshot, which is registered as a Dataset with its export procedure.
5. The Activity log type (`LOG`) is reserved and not implemented.

## Consequences

- No manual double entry: source systems stay canonical for raw activity.
- Each exported dataset carries a provenance record that names its source system and export date.
- The private repository needs its own backup and access control. It does not exist yet and is created with its first object.
