Files
piik/docs/standards
T
AAA 0d4f7f9796 docs(standards): give each lifetime one owner instead of per-await checks
The lifecycle rule had grown into one 28-line bullet. Four lines stated the
invariant and the rest were clauses added by individual fixes, which the
document's own rule against incident-specific exceptions forbids. It also
told the reader what to re-check after every await without naming a
structure that makes the check unnecessary, so a type could satisfy it at
each call site and still hold a dozen lifetimes in sibling fields.

Regroup the same content under the structure that makes it hold: one owner
per lifetime with one cancellation signal and one retirement path. Add the
two rules the audit found missing: a parent observes its children's exit by
any cause, and a second repair of the same transition means the owner is
restructured rather than guarded again. New clauses now need an invariant
that holds beyond the case; the case itself stays as a regression test.

Ponytail gains the matching check to run before adding a flag or option.
0d4f7f9796 · 2026-11-24 21:00:41 +08:00
History
..

Piik standards

Current product and engineering rules live here. Start with the affected subject; the ownership map explains where each fact belongs. AGENTS.md owns task authority and Contributing owns delivery.

The room, routing, media and lifecycle contracts below describe published 2.x. The 3.0 entries distinguish today's prototype from the target designs for hosting and routing. Engineering, visual language and delivery rules apply to both lines.

Subject Standard
Module responsibility, resources, interfaces and contextual consistency Engineering
Product names, terminology, Chinese/English voice and content layers Naming and copy
3.0 authority, activities, routing and runtime lifetimes Channel/network model
3.0 room policy, history, identity and file storage Room-data model
3.0 target channel modes, authority and moderation Server hosting design
3.0 target forwarding model and candidate delivery details Channel, room and activity forwarding
Published 2.x room authority, invitation/password access and persistence Rooms and access
Published 2.x routes, capacity, P2P/SFU transitions and route operations Routing and transport
Published 2.x capture, encoders, media adaptation and audio Media quality
Published 2.x workflow, playback and Browser/App lifecycle Presentation and lifecycle
3.0 App and Server UI language selection and launcher handoff Presentation and lifecycle · Visual Language
Evidence behind each status, indicator, overlay and notice Media status
Action ownership, grouping, layout, controls, cast, colour and motion Interface design and visual language
Website, README and introduction-film composition Public introduction
Runtime settings, defaults, bounds and diagnostics Configuration
Compatibility, build identity, publication and release notes Versioning
Documentation responsibilities and updating a rule Documentation ownership

Before another implementation of a familiar concept, identify its fact, owner, scope and lifetime. Apply the existing rule, or explain the contextual difference at that rule's owner. Source schemas and focused tests own exact implementation details; standards need not repeat every field or function.

ADRs preserve decisions and supersession. Research preserves dated observations and limits. TODO owns work that remains, including accepted targets not yet implemented. A recorded target is not a claim of completed verification. User guides remain in the documentation index.