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
12 changes: 12 additions & 0 deletions doc/README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This page says where each kind of document lives in this repository and how it c
- **`doc/<UTC>_research_<slug>/`.** Research packages. Each holds an exact request transcript, a main reference, a review order, a change log and one file per concept. `request-intake` creates them. [`planning/workflow/records.md`](../planning/workflow/records.md) defines the format.
- **[`doc/references/`](references/README.md).** Shared standards and reference material that more than one record cites.
- **[`doc/decisions/`](decisions/README.md).** The **fleet decision records** (FDR) index: one maintained page of convention, template, and an index of FDR-0001…, each record tying a durable ruling on queue claim/park/resume semantics, stop authority, cap policy, or attribution to its source ruling and implementation. A change to any of those semantics adds a record in the same body of work.
- **[`doc/living/`](living/README.md).** Living documents: programme-level maintained references that no package owns — catalogues and datasets kept current by recurring jobs and lanes. Each carries a metadata header (created, last-modified, revision) and a change log; see [Dated records vs living documents](#dated-records-vs-living-documents).
- **[`planning/`](../planning/README.md).** Maintained control documents:
- roadmaps;
- implementation plans ([`planning/plans/`](../planning/plans/README.md));
Expand All @@ -25,6 +26,17 @@ This page says where each kind of document lives in this repository and how it c
- **Package docs.** A component's living docs stay with its code and change with it. Examples: [`pkgs/id/ARCHITECTURE.md`](../pkgs/id/ARCHITECTURE.md), [`pkgs/id/AGENTS.md`](../pkgs/id/AGENTS.md), [`pkgs/id/TODO.md`](../pkgs/id/TODO.md), [`pkgs/mcpx/docs/`](../pkgs/mcpx/docs/) and [`pkgs/mcpx/TODO.md`](../pkgs/mcpx/TODO.md).
- **Agent skills.** `.agents/skills/` holds the workflow lifecycle skills and the shared skills. `.opencode/skills/` holds the OpenCode skill set.

## Dated records vs living documents

This repo keeps two kinds of documents, and the difference is load-bearing:

- **Dated records** (`doc/<UTC>_<kind>_<name>/`, including research packages) are point-in-time: they state what was known, found, or decided when they were written. While the work is active, sections may be appended; the record is **not rewritten later**. If the world changes, write a new record and let the old one stand as evidence.
- **Living documents** are maintained in place and expected to be edited over time: `doc/references/`, `doc/decisions/`, `planning/`, package docs (`pkgs/*/`), and [`doc/living/`](living/README.md). A living document carries a header — `created`, `last-modified`, `revision` — and a `## Change log` section. An edit bumps the revision, updates `last-modified`, and appends a change-log line, in the same PR as the edit.

When migrating or filing material, ask which kind it is before choosing a home: a snapshot belongs in a dated folder even if its subject is still evolving; a catalogue or dataset that recurring work keeps current belongs in `doc/living/` (or with its package) even if it began life as a snapshot.

**Framing rule for ecosystem and comparative documents** (Drew, 2026-11-23): describe the subject generically — its features, state, strengths and weaknesses on their own terms, useful to any reader. Material about how a system influences *our* decisions, *our* context, or *our* build belongs only in supplemental, clearly-marked additional sections — never as the lead framing. This applies to living documents as they are edited; dated records are point-in-time and are not rewritten to comply.

## Research packages

This list is the workflow's request catalog (`request_catalog` in [`.agents/research-workflow.json`](../.agents/research-workflow.json)). Add one line per new package. For a package's current state, run `python3 -I scripts/research_workflow.py status --package doc/<folder>`.
Expand Down
39 changes: 39 additions & 0 deletions doc/living/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
created: 2026-11-23
last-modified: 2026-11-23
revision: 1
---

# Living documents

This folder holds programme-level **living documents**: maintained references that no single package owns — catalogues and datasets kept current by recurring jobs and lanes. For the full taxonomy (dated records vs living documents, and the framing rule for ecosystem/comparative documents), see the [documentation map](../README.md#dated-records-vs-living-documents).

## The header contract

Every living document in this folder carries, at the top:

```
---
created: YYYY-MM-DD
last-modified: YYYY-MM-DD
revision: N
---
```

and a `## Change log` section. An edit to a living document, in the same PR:

1. bumps `revision`,
2. updates `last-modified`,
3. appends a change-log line (`- rN (YYYY-MM-DD): what changed.`).

Data files that are appended mechanically (e.g. dataset tables) may live beside a headed README instead of carrying a header themselves; the README's change log then covers the folder.

## Index

- [`flag-observations/`](flag-observations/README.md) — the execution-risk flag dataset: schema, standing practice, and the observation log lanes append to.
- [`iroh/`](iroh/) — iroh ecosystem catalogues maintained by the weekly iroh digest (blog catalogue; talks and announcements).
- [`roc/`](roc/) — Roc ecosystem catalogues maintained by the weekly Roc digest and media sweep (talks and announcements).

## Change log

- r1 (2026-11-23): Folder created under the DOCS-MIGRATION programme (#5983) with the header contract and the first living documents (flag-observations; iroh and roc catalogues follow in their own PRs).
68 changes: 68 additions & 0 deletions doc/living/flag-observations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
created: 2026-11-23
last-modified: 2026-11-23
revision: 1
---

# Flag observations — the execution-risk flag dataset

Started 2026-11-23 on Drew's order (15:19 CST): stop treating the platform
execution-risk flag as folklore. From now on we record, per observation,
**what** flagged, **where**, and **how it was executed**, so the pattern can
be figured out from data instead of from accumulated impressions.

The log itself is [observations.md](observations.md). This file is the
schema and the standing practice — the durable part.

## Schema — one row per observation

| Field | What goes in it |
|---|---|
| Date/time | CST (America/Chicago). If the record gives only a window, say so in the cell — never invent a precise time. |
| Actor | The lane / session / seat that ran the operation (e.g. "Lane OA2 (Muse lane)", "laptop OpenCode session oc-code-03"). |
| Repo + content kind | The repo, and what the checkout or content actually was, in plain words (e.g. "opencode fork — legacy share-service fix slice"). "A checkout of code" is not a content kind; say what the work was. |
| Operation | One of: clone / worktree-add / fetch / read / edit / build / copy / install / exec — or the honest words when the record doesn't name it. |
| Route | commander / laptop-agent http / ssh / laptop-ssh wrapper / laptop-local session / sandbox-local / not recorded. |
| Invocation form | fleet subcommand / raw command / wrapper — per the route-form matrix in code#13717. |
| Result | clean / flagged / transport-failed. A transport failure (the route itself broke, e.g. Cloudflare 1010) is **not** a flag and never gets recorded as one. |
| Source | A link to the issue comment or lane record the row rests on. **No row without a source.** |

### Marking conventions

- **[issue record]** — the source is a comment on the item's own GitHub issue/PR.
- **[daily log]** — the source is the contemporaneous daily log (`~/memory/2026-11-23.md` and successors), which digests the lane's report. One step removed from the lane itself; labelled as such.
- **[reconstructed]** — the row was assembled from a lane's final report; part of it (usually the route) is attested only there, not on the issue. Reconstructed rows say which part.
- **†** after a route/form — inferred from the lane standard of the time (Muse lanes reached the laptop via the `laptop-ssh` wrapper); the source record attests the operation, content, and result but does not name the route.
- Note on the wrapper: `laptop-ssh.sh` has delegated to the laptop-agent since 2026-11-04, so wrapper rows from this era effectively ran over the laptop-agent HTTP transport while presenting the wrapper form to the agent. Form and transport are recorded as the agent experienced them; this note carries the equivalence.

## Standing practice (Drew, 2026-11-23)

1. **Every lane that hits a flag appends its row(s) the same day.** So does
every lane that runs a bounded alternate-route probe. A flag with no row
is a lost data point.
2. **When a flag fires, one alternate-mechanic attempt happens before
routing, where the notice permits it** — a different route, a different
invocation form, a different operation shape — **and both outcomes are
recorded**: the original firing and the alternate attempt, whatever it
does. Routing flagged work to laptop sessions remains the standing
route; it is not a reason to stop gathering the comparison.
3. **Occasionally, when a new kind of checkout work starts and a probe is
cheap, run one bounded probe via an alternate form and record the
result either way** — clean results are data too. The dataset is
useless if it only contains firings.
4. Flagged checkouts are never re-entered (standing rule), so the dataset
has no within-checkout replications — comparisons are across checkouts,
sessions, and routes. Keep that limit in mind when reading patterns.

## Reading the log

The top of `observations.md` carries a **preliminary pattern read**: what
the seeded data does and does not support, with the confounders named.
Update it only when new rows actually change what it says, and date the
revision. Do not let it harden into doctrine — the confounders
(session context shared across lanes, content kind, operation kind,
approval state) are exactly what more rows are meant to separate.

## Change log

- r1 (2026-11-23): Migrated from hatch-personal `workspace/flag-observations/` under the DOCS-MIGRATION programme (#5983); living-doc header added. Content unchanged except this header and change log.
Loading