Files
piik/docs/standards
T
AAA 9aac6ffcdc docs(engineering): state one failure boundary
The project said when to handle an edge case in about seven places: two
bullets in AGENTS.md, several implementation rules here, and Ponytail and
Stop That Shit. None gave a test. AGENTS.md required agreement before adding
a mechanism for a speculative race, then exempted "reachable defects", so
anything that could be shown to happen in principle counted as required.

A sample of 105 commits from the active line whose subjects named keeping,
preserving, recovering or racing shows where the weight comes from. 77 were
already the smallest correct response, and 36 of those were a currency
check, an ordering fix or a deleted limit with a median of one or two lines
and no later repair. Every repair chain found, ten of them, began at a
commit that introduced new state, a timer or a fallback. Four of the 105
cite an observation; the reasoned-only ones were the largest.

So the rule sorts by mechanism, not by "edge case". A condition with a
specified outcome is behaviour. One without stops where it is detected and
its owner recovers by the path it has. Cheap responses need no reason. New
state, a timer, a retry, a fallback, a queue or a second copy of a rule
needs one of five named reasons, and reachability is not one of them. It
rests on Armstrong's thesis (handle an error where it can be corrected, do
not program defensively), the end-to-end argument (one layer owns
recovery) and fail fast.

Removes the bullet "When a transition fails again", which the new section
covers, and points Ponytail at the section instead of restating it.
9aac6ffcdc · 2026-11-25 08:04:42 +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.