Condense collaboration procedures, protocol field inventories and repeated audit or experiment narration into their existing owners. Keep accepted decisions, unresolved work, primary sources and measurement limits. Detailed historical trials remain accessible at their measured Git revision without a second archive tree. Align both language guides with the existing contribution value criteria. Keep local operating instructions out of public contributor guidance. Independent reviews preserved closed baseline choices and single-run evidence limits. Documentation and repository hygiene checks pass; this phase changes no runtime code.
154 lines
11 KiB
Markdown
154 lines
11 KiB
Markdown
# Documentation Ownership
|
|
|
|
The repository is the durable source across sessions, devices and agents.
|
|
Use [the documentation map](../README.md) to find a topic, then update its owner.
|
|
Chat, agent summaries and an old branch do not replace current code, contracts
|
|
and evidence. Task authority stays in [AGENTS.md](../../AGENTS.md); delivery and
|
|
verification procedures stay in [CONTRIBUTING.md](../../CONTRIBUTING.md).
|
|
|
|
## Owners
|
|
|
|
| Topic | Owner | Keep here |
|
|
| --- | --- | --- |
|
|
| Settled core design | [Canon](../canon.md) | Founding design principles |
|
|
| Universal constraints and navigation | `AGENTS.md` | Short mandatory boundaries and links; no procedure manual |
|
|
| Reusable agent methods | `.agents/skills/*/SKILL.md` | Task triggers and methods under project constraints; link to domain rules and delivery rather than repeat them |
|
|
| Branches, review, validation, PRs, releases and cleanup | `CONTRIBUTING.md` | Executable workflow |
|
|
| Review in flight between agents | `.agents/handoff/` | Pending review work and open decisions |
|
|
| Module boundaries, interface discipline and ablation | [Engineering](./engineering.md) | Module, contract, lifecycle and source navigation; shared coding rules |
|
|
| Names, terminology, voice and interface languages | [Naming and copy](./naming.md) | Product/tool names, role labels, Chinese/English writing conventions and UI language selection |
|
|
| Translation contributions | [Translation guide](../guide/translating.md) and its Chinese counterpart | Catalog editing, new-language registration and translation review |
|
|
| Action grouping, surfaces, accessible layout, illustration, palette and motion | [Visual language](./visual-language.md) | Shared Browser/App design grammar |
|
|
| Status projection | [Media status](./media-status.md) | Which facts each display surface may express |
|
|
| 3.0 media | [Media quality](./media-quality.md) | Browser and App capture, encoders, adaptation and audio |
|
|
| 3.0 remote input | [Remote control](./remote-control.md) | Grants, targets and release; usage stays in the reader guide |
|
|
| Release identity and compatibility | [Versioning](./versioning.md) | Version roles, protected interfaces and public-readiness boundary |
|
|
| Published 2.x behavior | [2.x standards on main](https://github.com/TNTcraftHIM/Piik/blob/main/docs/standards/README.md) | Maintained on `main`; this tree links them instead of keeping copies |
|
|
| 3.0 architecture | [ADR-0016](../adr/0016-shared-rust-core.md) | Shared core, runtime adapters and version scope |
|
|
| Current 3.0 domain models | [Site/network model](../research/channel-network-design.md), [room-data model](../research/channel-storage-and-identity.md) | Detailed authority, runtime, routing and persistence boundaries |
|
|
| 3.0 forwarding design | [Channel, room and activity forwarding](../research/channel-forwarding-plan.md) | Target forwarding model and candidate delivery details |
|
|
| 3.0 hosting design | [Server hosting design](../research/server-hosting-plan.md) | Target channel modes, authority and moderation |
|
|
| Architecture decisions | `docs/adr/` | Decision status, rationale and consequences; explicitly supersede changed clauses |
|
|
| Measurements and external evidence | `docs/research/` | Date, sources, observations, inference, limits and license scope |
|
|
| Deployment and configuration | `docs/deployment.md`, [Server and App runtime](../../prototype/channel-server/README.md#run), `docs/operations/` | Runnable operator reference; no per-release diary |
|
|
| Compact product map | `docs/project-memory.md` | Stable summaries and domain navigation, not implementation inventories |
|
|
| Current execution/deployment index | `docs/status.md` | Current boundaries and pointers; exact artifact identity stays in release metadata |
|
|
| Remaining work and decisions | `docs/todo.md` | One task ledger, with executable work separated from parked ideas |
|
|
| Evidence boundaries | `docs/verification-status.md` | Compact limits that affect product claims; no duplicate retest ledger |
|
|
| Completed history | Git commits and PRs | Changes and outcomes; do not reproduce them in memory or TODO |
|
|
|
|
Source schemas and existing conformance fixtures own exact interface fields;
|
|
package comments own local lock/resource invariants. The engineering reference
|
|
links to them instead of copying every field. README and guides explain how to
|
|
use the product; technical details link to the relevant owner. English/Chinese
|
|
entry guides are intentional translations and must change together; technical
|
|
references keep one version.
|
|
|
|
First-use guides stop at a working room. Detailed controls belong to task guides,
|
|
symptom-based checks to troubleshooting, and build/release procedures to maintainer
|
|
references. Remove repaired incident narratives instead of appending them to the
|
|
reader's path; retain checks for current platform and network limitations.
|
|
|
|
For public help, name the person taking the action and the control they will
|
|
see. For a value such as an address, say where to find it and where to use it.
|
|
Name links for the task or destination. [W3C link purpose](https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context.html)
|
|
|
|
The public documentation website renders selected repository Markdown without
|
|
owning another copy. Its [reader index](../guide/README.md) serves usage and support;
|
|
the repository map remains the developer/maintainer entry. The
|
|
[website runbook](../operations/website.md#documentation-build) owns generation and
|
|
publication. General symptoms and report collection belong to the troubleshooting
|
|
guide; browser/network connection procedures belong to the network guide.
|
|
Introductions and the general guide link to those procedures rather than duplicate them.
|
|
|
|
## Requirement Language
|
|
|
|
Use [BCP 14](https://datatracker.ietf.org/doc/html/bcp14) when a specification or
|
|
project rule needs explicit distinctions between obligations, recommendations
|
|
and optional behavior. The [RFC 2119 skill](../../.agents/skills/rfc2119/SKILL.md)
|
|
provides the writing method. Plain-language rules retain their existing force;
|
|
introducing keywords does not change an accepted requirement or decision owner.
|
|
Guides and product copy keep their ordinary reader-facing language.
|
|
|
|
## Updating A Rule
|
|
|
|
1. Locate the rule's owner and establish the design from the product contract,
|
|
actual callers and relevant primary references before changing implementation.
|
|
Distinguish accepted choices from observations and proposals. The standard
|
|
states the current rule with necessary references; Git owns change history.
|
|
2. Update the existing owner first. Add a new owner only for a distinct topic
|
|
with real consumers; give it an entry in the documentation map. Delete
|
|
replaced normative text elsewhere and link to the owner.
|
|
When an entry point moves or a cross-module responsibility changes, update
|
|
the engineering source index.
|
|
3. Update memory and status when their summaries materially change. Record
|
|
unresolved decisions in TODO and hold dependent implementation until resolved.
|
|
Remove work from TODO when its outcome is verified.
|
|
|
|
Keep raw logs, tool transcripts, temporary paths and completed checklists out
|
|
of durable product documentation. Keep evidence with its measured scope and
|
|
retain open issues with the observation or decision that would settle them.
|
|
|
|
Published copy describes Piik's behavior and design directly. Remove discarded
|
|
design labels, private operational details and conversational comparisons to
|
|
other products. Describe visual choices in Piik's own design vocabulary.
|
|
Retain relevant public technical references beside the claims they support,
|
|
using accurate names and direct links without implying affiliation or endorsement.
|
|
Local research inventories do not belong in product copy; keep source provenance
|
|
accurate rather than relabel private observations as public documentation.
|
|
Credit reused code and assets through their existing license and notice owners;
|
|
a reference or thank-you does not replace permission or required attribution.
|
|
Preserve accepted contributors' authorship under [CONTRIBUTING](../../CONTRIBUTING.md).
|
|
|
|
## Consolidation And Ablation
|
|
|
|
Keep one owner per fact, with short summaries where navigation needs them.
|
|
Consolidation is not concatenating documents into one giant manual. Remove
|
|
stale procedures and duplicated prescriptions; preserve still-consumed behavior,
|
|
failure boundaries, reasoning and reproducible evidence. An ADR can retain a
|
|
historical decision when its superseded status is clear.
|
|
|
|
Document cost is part of [engineering ablation](./engineering.md#ablation-and-review).
|
|
Do not delete a product promise solely to shrink a file. Archive completed work
|
|
in Git, keep candidate ideas out of active instructions, and never promote an
|
|
agent suggestion to accepted policy simply by writing it in a checklist.
|
|
|
|
The top-level context stays a map. Directory-specific instructions belong near
|
|
the code only when that module exists and the rule is needed every time.
|
|
The [context-governance research](../research/agent-context-governance.md) owns
|
|
the external rationale; the existing hygiene scripts own executable limits.
|
|
Their gardening warnings invite review, not arbitrary compression; hard failures
|
|
for broken links, required owners and instruction-loading limits remain binding.
|
|
|
|
## Agent Instructions And Skills
|
|
|
|
Keep broadly applicable project constraints near the top of `AGENTS.md`, with
|
|
explicit task triggers for required skills. Domain standards define accepted
|
|
behavior; skills explain how to do a recurring kind of work. Neither research
|
|
examples nor skill defaults can expand user authorization or replace a domain
|
|
decision. Use repo-linked adaptations when a global skill has the same name;
|
|
names alone do not establish which instructions were loaded.
|
|
|
|
Give each skill one recognizable purpose and a short description stating when
|
|
it applies. Keep useful, non-obvious decisions in its body. Link to existing
|
|
owners for details; add supporting files only when a real workflow needs them.
|
|
Do not create nested instruction files merely to split a short document, copy
|
|
the same rules into multiple tool formats, or require every installed skill on
|
|
every turn. A tool-specific entry file can import the shared instructions.
|
|
|
|
When changing instructions, check actual task behavior: would a scoped layout
|
|
fix trigger unrelated network gates, a review silently authorize edits, or a
|
|
simplicity rule permit incomplete UX? Check intended triggers and nearby tasks
|
|
that should not trigger the workflow. Preserve necessary safety and compatibility
|
|
while removing conflicting or redundant procedures. Use metadata/link checks
|
|
for structure and representative work for behavior; passing a schema validator
|
|
does not establish that a skill is effective. Add no permanent prompt test suite
|
|
or hooks without a demonstrated recurring need.
|
|
|
|
## Checks
|
|
|
|
Check that changed links resolve, owners agree and status reflects remaining
|
|
work. Preserve the source revision, environment and limits of measured evidence.
|
|
Use the existing documentation and repository checks.
|
|
[Verification entry points](../../CONTRIBUTING.md#verification-entrypoints)
|