create-pmos 0.635.0 → 0.636.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-pmos.js +1 -0
- package/package.json +14 -20
- package/payload/KIT-VERSION +2 -2
- package/payload/README.md +37 -113
- package/payload/design-system/README.md +98 -0
- package/payload/design-system/components/Badge/README.md +16 -0
- package/payload/design-system/components/Badge/preview.html +8 -0
- package/payload/design-system/components/Button/README.md +20 -0
- package/payload/design-system/components/Button/preview.html +8 -0
- package/payload/design-system/components/Calendar/README.md +14 -0
- package/payload/design-system/components/Calendar/preview.html +11 -0
- package/payload/design-system/components/Chart/README.md +24 -0
- package/payload/design-system/components/Chart/preview.html +50 -0
- package/payload/design-system/components/Conversation/README.md +14 -0
- package/payload/design-system/components/Conversation/preview.html +8 -0
- package/payload/design-system/components/Detail/README.md +17 -0
- package/payload/design-system/components/Detail/preview.html +8 -0
- package/payload/design-system/components/Document/README.md +15 -0
- package/payload/design-system/components/Document/preview.html +8 -0
- package/payload/design-system/components/Event/README.md +13 -0
- package/payload/design-system/components/Event/preview.html +8 -0
- package/payload/design-system/components/Field/README.md +13 -0
- package/payload/design-system/components/Field/preview.html +8 -0
- package/payload/design-system/components/Icon/README.md +12 -0
- package/payload/design-system/components/Icon/preview.html +8 -0
- package/payload/design-system/components/Input/README.md +17 -0
- package/payload/design-system/components/Input/preview.html +8 -0
- package/payload/design-system/components/List/README.md +21 -0
- package/payload/design-system/components/List/preview.html +15 -0
- package/payload/design-system/components/ListRow/README.md +19 -0
- package/payload/design-system/components/ListRow/preview.html +8 -0
- package/payload/design-system/components/MainItem/README.md +13 -0
- package/payload/design-system/components/MainItem/preview.html +8 -0
- package/payload/design-system/components/MainSide/README.md +12 -0
- package/payload/design-system/components/MainSide/preview.html +8 -0
- package/payload/design-system/components/Menu/README.md +13 -0
- package/payload/design-system/components/Menu/preview.html +8 -0
- package/payload/design-system/components/Navigation/README.md +14 -0
- package/payload/design-system/components/Navigation/preview.html +8 -0
- package/payload/design-system/components/Number/README.md +17 -0
- package/payload/design-system/components/Number/preview.html +8 -0
- package/payload/design-system/components/Settings/README.md +13 -0
- package/payload/design-system/components/Settings/preview.html +10 -0
- package/payload/design-system/components/SingleColumn/README.md +12 -0
- package/payload/design-system/components/SingleColumn/preview.html +8 -0
- package/payload/design-system/components/Stage/README.md +13 -0
- package/payload/design-system/components/Stage/preview.html +8 -0
- package/payload/design-system/components/Suggestion/README.md +14 -0
- package/payload/design-system/components/Suggestion/preview.html +10 -0
- package/payload/design-system/components/Summary/README.md +19 -0
- package/payload/design-system/components/Summary/preview.html +10 -0
- package/payload/design-system/components/Switch/README.md +13 -0
- package/payload/design-system/components/Switch/preview.html +10 -0
- package/payload/design-system/components/Table/README.md +18 -0
- package/payload/design-system/components/Table/preview.html +23 -0
- package/payload/design-system/components/Tabs/README.md +13 -0
- package/payload/design-system/components/Tabs/preview.html +11 -0
- package/payload/design-system/components/Timeline/README.md +15 -0
- package/payload/design-system/components/Timeline/preview.html +8 -0
- package/payload/design-system/components/Toast/README.md +14 -0
- package/payload/design-system/components/Toast/preview.html +8 -0
- package/payload/design-system/components/TodayPage/README.md +12 -0
- package/payload/design-system/components/TodayPage/preview.html +8 -0
- package/payload/design-system/components/bundle.css +126 -0
- package/payload/design-system/interactions.md +48 -0
- package/payload/design-system/pages.md +34 -0
- package/payload/design-system/tokens.css +9 -0
- package/payload/design-system/tokens.json +339 -0
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/ci-checks.sh +3 -0
- package/workspace/design-system/README.md +98 -0
- package/workspace/design-system/components/Badge/README.md +16 -0
- package/workspace/design-system/components/Badge/preview.html +8 -0
- package/workspace/design-system/components/Button/README.md +20 -0
- package/workspace/design-system/components/Button/preview.html +8 -0
- package/workspace/design-system/components/Calendar/README.md +14 -0
- package/workspace/design-system/components/Calendar/preview.html +11 -0
- package/workspace/design-system/components/Chart/README.md +24 -0
- package/workspace/design-system/components/Chart/preview.html +50 -0
- package/workspace/design-system/components/Conversation/README.md +14 -0
- package/workspace/design-system/components/Conversation/preview.html +8 -0
- package/workspace/design-system/components/Detail/README.md +17 -0
- package/workspace/design-system/components/Detail/preview.html +8 -0
- package/workspace/design-system/components/Document/README.md +15 -0
- package/workspace/design-system/components/Document/preview.html +8 -0
- package/workspace/design-system/components/Event/README.md +13 -0
- package/workspace/design-system/components/Event/preview.html +8 -0
- package/workspace/design-system/components/Field/README.md +13 -0
- package/workspace/design-system/components/Field/preview.html +8 -0
- package/workspace/design-system/components/Icon/README.md +12 -0
- package/workspace/design-system/components/Icon/preview.html +8 -0
- package/workspace/design-system/components/Input/README.md +17 -0
- package/workspace/design-system/components/Input/preview.html +8 -0
- package/workspace/design-system/components/List/README.md +21 -0
- package/workspace/design-system/components/List/preview.html +15 -0
- package/workspace/design-system/components/ListRow/README.md +19 -0
- package/workspace/design-system/components/ListRow/preview.html +8 -0
- package/workspace/design-system/components/MainItem/README.md +13 -0
- package/workspace/design-system/components/MainItem/preview.html +8 -0
- package/workspace/design-system/components/MainSide/README.md +12 -0
- package/workspace/design-system/components/MainSide/preview.html +8 -0
- package/workspace/design-system/components/Menu/README.md +13 -0
- package/workspace/design-system/components/Menu/preview.html +8 -0
- package/workspace/design-system/components/Navigation/README.md +14 -0
- package/workspace/design-system/components/Navigation/preview.html +8 -0
- package/workspace/design-system/components/Number/README.md +17 -0
- package/workspace/design-system/components/Number/preview.html +8 -0
- package/workspace/design-system/components/Settings/README.md +13 -0
- package/workspace/design-system/components/Settings/preview.html +10 -0
- package/workspace/design-system/components/SingleColumn/README.md +12 -0
- package/workspace/design-system/components/SingleColumn/preview.html +8 -0
- package/workspace/design-system/components/Stage/README.md +13 -0
- package/workspace/design-system/components/Stage/preview.html +8 -0
- package/workspace/design-system/components/Suggestion/README.md +14 -0
- package/workspace/design-system/components/Suggestion/preview.html +10 -0
- package/workspace/design-system/components/Summary/README.md +19 -0
- package/workspace/design-system/components/Summary/preview.html +10 -0
- package/workspace/design-system/components/Switch/README.md +13 -0
- package/workspace/design-system/components/Switch/preview.html +10 -0
- package/workspace/design-system/components/Table/README.md +18 -0
- package/workspace/design-system/components/Table/preview.html +23 -0
- package/workspace/design-system/components/Tabs/README.md +13 -0
- package/workspace/design-system/components/Tabs/preview.html +11 -0
- package/workspace/design-system/components/Timeline/README.md +15 -0
- package/workspace/design-system/components/Timeline/preview.html +8 -0
- package/workspace/design-system/components/Toast/README.md +14 -0
- package/workspace/design-system/components/Toast/preview.html +8 -0
- package/workspace/design-system/components/TodayPage/README.md +12 -0
- package/workspace/design-system/components/TodayPage/preview.html +8 -0
- package/workspace/design-system/components/bundle.css +126 -0
- package/workspace/design-system/interactions.md +48 -0
- package/workspace/design-system/pages.md +34 -0
- package/workspace/design-system/tokens.css +9 -0
- package/workspace/design-system/tokens.json +339 -0
- package/workspace/guide/agent-capabilities.md +2 -2
- package/workspace/guide/layout.md +6 -0
- package/workspace/lib/design-system.js +145 -0
- package/workspace/lib/idle-lab-engine.js +5 -1
- package/workspace/lib/live-round.js +15 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/komorebi.css +145 -0
- package/workspace/public/pm/komorebi.js +240 -0
- package/workspace/run-tests.js +6 -1
- package/workspace/test-lists/design-system.json +9 -0
- package/workspace/test-lists/komorebi.json +9 -0
package/bin/create-pmos.js
CHANGED
|
@@ -39,6 +39,7 @@ const KERNEL = [
|
|
|
39
39
|
'okf/core',
|
|
40
40
|
'scripts',
|
|
41
41
|
'templates',
|
|
42
|
+
'design-system', // the PMOS UI design system (2026-11-19); --update refreshes it
|
|
42
43
|
'mods', // D81 — the cockpit mod; --update refreshes it, never the settings entry
|
|
43
44
|
'planning/evals/check_rubrics.py',
|
|
44
45
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.636.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.636.0",
|
|
38
|
+
"at": "2026-11-20T00:18:49.118Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1418,
|
|
43
|
+
"t": "The PMOS UI design system in the workspace, prototypes and the kit",
|
|
44
|
+
"s": "The PMOS UI design system in the workspace, prototypes and the kit",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.635.0",
|
|
38
51
|
"at": "2026-11-19T14:42:50.865Z",
|
|
@@ -327,25 +340,6 @@
|
|
|
327
340
|
"k": "fix"
|
|
328
341
|
}
|
|
329
342
|
]
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"v": "0.613.0",
|
|
333
|
-
"at": "2026-11-19T02:46:37.415Z",
|
|
334
|
-
"f": 4,
|
|
335
|
-
"prs": [
|
|
336
|
-
{
|
|
337
|
-
"n": 1390,
|
|
338
|
-
"t": "PMOS's own repository reads \"PMOS\" in the scope chip and Routine's Product column",
|
|
339
|
-
"s": "PMOS's own repository reads \"PMOS\" in the scope chip and Routine's Product column",
|
|
340
|
-
"k": "fix"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"n": 1389,
|
|
344
|
-
"t": "The Board's bar draws nothing for a row with no dates, so Work no longer throws",
|
|
345
|
-
"s": "The Board's bar draws nothing for a row with no dates, so Work no longer throws",
|
|
346
|
-
"k": "fix"
|
|
347
|
-
}
|
|
348
|
-
]
|
|
349
343
|
}
|
|
350
344
|
]
|
|
351
345
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-11-
|
|
1
|
+
kernel-source: pmos@d8eb304c
|
|
2
|
+
assembled: 2026-11-20
|
|
3
3
|
mode: vendor
|
package/payload/README.md
CHANGED
|
@@ -6,142 +6,66 @@ timestamp: 2026-07-23
|
|
|
6
6
|
|
|
7
7
|
# PMOS Portable Kit (file mode)
|
|
8
8
|
|
|
9
|
-
Run the PMOS workflow — initiative → PRD → eval rubric → pre-run contract → build →
|
|
10
|
-
Quality/Review/Acceptance gates — **entirely inside this repo**, with every piece of state as
|
|
11
|
-
git-versioned files. No database, no MCP connection, no network calls to any PMOS backend (D54).
|
|
12
|
-
Built for products whose data must not leave their own remote (e.g. company-owned products vs a
|
|
13
|
-
personally-owned PMOS backend).
|
|
9
|
+
Run the PMOS workflow — initiative → PRD → eval rubric → pre-run contract → build → Quality/Review/Acceptance gates — **entirely inside this repo**, with every piece of state as git-versioned files. No database, no MCP connection, no network calls to any PMOS backend (D54). Built for products whose data must not leave their own remote (e.g. company-owned products vs a personally-owned PMOS backend).
|
|
14
10
|
|
|
15
11
|
## What's in the folder
|
|
16
12
|
|
|
17
|
-
- `AGENTS.md` — the run protocol. **Start here; every agent session reads it first.** Contains the
|
|
18
|
-
|
|
19
|
-
- `
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- `
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- `
|
|
26
|
-
|
|
27
|
-
- `
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`okf/product/` — YOUR product's knowledge; drafted by ingest, approved via PR review.
|
|
32
|
-
- `planning/` — okrs, PRDs, rubrics (`agent-run-eval-rubric.md` is the per-initiative template),
|
|
33
|
-
`eval-calibration.md` (append every PM override of an evaluator verdict).
|
|
34
|
-
- `state/` — the operational record, **append-only**: `initiatives/<id>.md`, `runs.jsonl`,
|
|
35
|
-
`evals.jsonl`, `acceptances.jsonl`, `discoveries.md`. `tickets/NNN-slug.md` decompose an
|
|
36
|
-
initiative into ordered, dependency-numbered work (file-mode's board — see AGENTS.md).
|
|
37
|
-
- `scripts/` — `gate-initiative.sh` (the fail-closed CI gate), `metrics.py` (north star +
|
|
38
|
-
calibration + Goodhart tripwire), `kit-update.sh` (kernel refresh), `frontier.sh` (lists the
|
|
39
|
-
workable tickets — those not done whose blockers are all done), `workflow-sweep.js` (audits the
|
|
40
|
-
state everything above derives from — see below), plus `workflow-state.js`, `anchor-resolve.js`
|
|
41
|
-
and `delivery-index.js`, the readers it and the ladder share.
|
|
42
|
-
- **`scripts/workflow-sweep.js` — the state audit.** Everything PMOS reports is *derived*, which
|
|
43
|
-
makes it self-maintaining and does **not** make it self-correcting: a derivation is only as true
|
|
44
|
-
as what it reads. Run `node pmos/scripts/workflow-sweep.js` to find state that misreports —
|
|
45
|
-
ledger lines that do not parse (every reader drops them silently, so a torn acceptance reads as
|
|
46
|
-
"never accepted"), rows naming an initiative that does not exist, duplicate `run_id`s, records
|
|
47
|
-
pointing at files nobody wrote, merged branches with no record.
|
|
48
|
-
|
|
49
|
-
It separates two things and never mixes them: a **defect** is state that contradicts reality —
|
|
50
|
-
the board is lying — and an **owed** finding is work that honestly has not happened. `--fix`
|
|
51
|
-
repairs only the mechanical defects (a stale pointer, text an earlier commit can restore); it
|
|
52
|
-
**never** writes a run, an eval, an acceptance or any `.jsonl`, because a tool that closes your
|
|
53
|
-
loops by writing the rows produces a green board out of evidence nobody produced. `--gate` exits
|
|
54
|
-
non-zero on defects only, so it can run in CI without failing on your backlog.
|
|
13
|
+
- `AGENTS.md` — the run protocol. **Start here; every agent session reads it first.** Contains the state adapter: the table mapping each hosted PMOS tool to a file convention.
|
|
14
|
+
- `AGENTS-HUMAN.md` — the same loop for a **human** builder (D58): plain terms + the `scripts/pmos-log.sh` helper that appends validated state records in one command. Mixed human+agent teams share the same state.
|
|
15
|
+
- `SECURITY.md` — the kit's **security posture**: skills are executable instructions, what the kit does structurally to be safe to install, and what stays your responsibility. Read it before you install skills into your agent.
|
|
16
|
+
- `design-system/` — the PMOS UI design system (tokens, parts and a README for each). Read its `README.md` before you draw a page or a prototype; PMOS prototypes for this product use it. Slides get their own system later.
|
|
17
|
+
- `skills/` — the PMOS skill kernel (prd, eval-rubric, okr, evaluator, …). Single-sourced from the PMOS repo; where a skill names a hosted tool, apply the AGENTS.md state adapter.
|
|
18
|
+
- `skills-native/` — the same skills in **Agent-Skills standard** form (`<name>/SKILL.md` directories), generated from `skills/` so a Claude Code / Codex / skills.sh harness can load them. The flat `skills/` files stay the source of truth; this is the portable mirror.
|
|
19
|
+
- `okf/core/` — kernel concepts (the sdlc loop, the three-tier gate, watermelon flags, …). `okf/product/` — YOUR product's knowledge; drafted by ingest, approved via PR review.
|
|
20
|
+
- `planning/` — okrs, PRDs, rubrics (`agent-run-eval-rubric.md` is the per-initiative template), `eval-calibration.md` (append every PM override of an evaluator verdict).
|
|
21
|
+
- `state/` — the operational record, **append-only**: `initiatives/<id>.md`, `runs.jsonl`, `evals.jsonl`, `acceptances.jsonl`, `discoveries.md`. `tickets/NNN-slug.md` decompose an initiative into ordered, dependency-numbered work (file-mode's board — see AGENTS.md).
|
|
22
|
+
- `scripts/` — `gate-initiative.sh` (the fail-closed CI gate), `metrics.py` (north star + calibration + Goodhart tripwire), `kit-update.sh` (kernel refresh), `frontier.sh` (lists the workable tickets — those not done whose blockers are all done), `workflow-sweep.js` (audits the state everything above derives from — see below), plus `workflow-state.js`, `anchor-resolve.js` and `delivery-index.js`, the readers it and the ladder share.
|
|
23
|
+
- **`scripts/workflow-sweep.js` — the state audit.** Everything PMOS reports is *derived*, which makes it self-maintaining and does **not** make it self-correcting: a derivation is only as true as what it reads. Run `node pmos/scripts/workflow-sweep.js` to find state that misreports — ledger lines that do not parse (every reader drops them silently, so a torn acceptance reads as "never accepted"), rows naming an initiative that does not exist, duplicate `run_id`s, records pointing at files nobody wrote, merged branches with no record.
|
|
24
|
+
|
|
25
|
+
It separates two things and never mixes them: a **defect** is state that contradicts reality — the board is lying — and an **owed** finding is work that honestly has not happened. `--fix` repairs only the mechanical defects (a stale pointer, text an earlier commit can restore); it **never** writes a run, an eval, an acceptance or any `.jsonl`, because a tool that closes your loops by writing the rows produces a green board out of evidence nobody produced. `--gate` exits non-zero on defects only, so it can run in CI without failing on your backlog.
|
|
26
|
+
|
|
55
27
|
- `templates/pmos-gate.yml` — CI drop-in; copy to `.github/workflows/`.
|
|
56
28
|
- `KIT-VERSION` — which PMOS kernel this was assembled from.
|
|
57
29
|
|
|
58
30
|
## Install (once)
|
|
59
31
|
|
|
60
|
-
No PMOS repo access needed (D55): **`npx create-pmos@latest [target-dir]`** — then follow its
|
|
61
|
-
printed next steps (wire the CI workflow, point CLAUDE.md at `pmos/AGENTS.md`, commit).
|
|
62
|
-
From a PMOS checkout the equivalent is `kit/build-kit.sh <this-repo-root>`; the npm package's
|
|
63
|
-
payload is assembled by that same script at publish time, so the two never drift.
|
|
32
|
+
No PMOS repo access needed (D55): **`npx create-pmos@latest [target-dir]`** — then follow its printed next steps (wire the CI workflow, point CLAUDE.md at `pmos/AGENTS.md`, commit). From a PMOS checkout the equivalent is `kit/build-kit.sh <this-repo-root>`; the npm package's payload is assembled by that same script at publish time, so the two never drift.
|
|
64
33
|
|
|
65
|
-
**Empty folder / no repo yet?** `git init` first — git is required (branches and merges ARE the
|
|
66
|
-
workflow: `initiative/<id>` branches, merge = Acceptance), but GitHub is optional. With no
|
|
67
|
-
existing code there is nothing to ingest: start by seeding `planning/okrs/` (the okr skill) and a
|
|
68
|
-
first right-sized initiative; the product's code grows in the same folder.
|
|
34
|
+
**Empty folder / no repo yet?** `git init` first — git is required (branches and merges ARE the workflow: `initiative/<id>` branches, merge = Acceptance), but GitHub is optional. With no existing code there is nothing to ingest: start by seeding `planning/okrs/` (the okr skill) and a first right-sized initiative; the product's code grows in the same folder.
|
|
69
35
|
|
|
70
|
-
**403 on `npx` (corporate proxy/mirror)?** Try a plain terminal (not a sandboxed AI session); ask
|
|
71
|
-
IT to allowlist `create-pmos` (zero deps, no install scripts, no network code); or install
|
|
72
|
-
registry-free — download the `.tgz` from `registry.npmjs.org/create-pmos/-/create-pmos-<v>.tgz`
|
|
73
|
-
on any allowed network, then `tar xzf create-pmos-*.tgz && node package/bin/create-pmos.js <dir>`.
|
|
36
|
+
**403 on `npx` (corporate proxy/mirror)?** Try a plain terminal (not a sandboxed AI session); ask IT to allowlist `create-pmos` (zero deps, no install scripts, no network code); or install registry-free — download the `.tgz` from `registry.npmjs.org/create-pmos/-/create-pmos-<v>.tgz` on any allowed network, then `tar xzf create-pmos-*.tgz && node package/bin/create-pmos.js <dir>`.
|
|
74
37
|
|
|
75
|
-
**No GitHub?** Skip the workflow file and run the gate by hand before merging any initiative
|
|
76
|
-
branch: `HEAD_REF=$(git branch --show-current) bash pmos/scripts/gate-initiative.sh` — green means
|
|
77
|
-
anchored; your local `git merge` is the Acceptance Gate. If the repo later lands on GitHub, copy
|
|
78
|
-
`templates/pmos-gate.yml` into `.github/workflows/` and the gate becomes automatic.
|
|
38
|
+
**No GitHub?** Skip the workflow file and run the gate by hand before merging any initiative branch: `HEAD_REF=$(git branch --show-current) bash pmos/scripts/gate-initiative.sh` — green means anchored; your local `git merge` is the Acceptance Gate. If the repo later lands on GitHub, copy `templates/pmos-gate.yml` into `.github/workflows/` and the gate becomes automatic.
|
|
79
39
|
|
|
80
40
|
## Operate (every piece of work)
|
|
81
41
|
|
|
82
|
-
1. Create `pmos/state/initiatives/<id>.md` (stage `intake`, anchored to a KR in `planning/okrs/` — or to a health budget,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
templates), sprint contract, PM flips `PM_approved: true`; discovery: a spike brief (question +
|
|
88
|
-
timebox) the PM approves; chore: a one-paragraph `intent:`; incident: fix first, record within
|
|
89
|
-
48h.
|
|
90
|
-
3. Branch `initiative/<id>`, build, open a PR — the `pmos-gate` CI check fails any PR that isn't
|
|
91
|
-
anchored (branch or `Initiative: <id>` in the PR body; `no-initiative` label for anchor-free
|
|
92
|
-
trivia ONLY — a chore, spike, or incident takes its lane, D56).
|
|
93
|
-
4. Review Gate: run the evaluator skill against the rubric; append the verdict to
|
|
94
|
-
`state/evals.jsonl`. The verdict is advisory until locally calibrated.
|
|
95
|
-
5. Acceptance Gate: the **human PM** merges and disposes; append to `state/acceptances.jsonl`
|
|
96
|
-
(`accepted`, `pm_label`, corrections). Weekly: run `scripts/metrics.py`, read the red first.
|
|
42
|
+
1. Create `pmos/state/initiatives/<id>.md` (stage `intake`, anchored to a KR in `planning/okrs/` — or to a health budget, `parent_kr: health:<id>` from `planning/okrs/health-budgets.md` (D59)), with its **work-type lane**: `type: feature` (default) `| discovery | chore | incident | content` (D56/D58 — the lane table in `AGENTS.md` says what each requires).
|
|
43
|
+
2. Author the lane's spec artifacts **before building** — feature: PRD + rubric (copy the templates), sprint contract, PM flips `PM_approved: true`; discovery: a spike brief (question + timebox) the PM approves; chore: a one-paragraph `intent:`; incident: fix first, record within 48h.
|
|
44
|
+
3. Branch `initiative/<id>`, build, open a PR — the `pmos-gate` CI check fails any PR that isn't anchored (branch or `Initiative: <id>` in the PR body; `no-initiative` label for anchor-free trivia ONLY — a chore, spike, or incident takes its lane, D56).
|
|
45
|
+
4. Review Gate: run the evaluator skill against the rubric; append the verdict to `state/evals.jsonl`. The verdict is advisory until locally calibrated.
|
|
46
|
+
5. Acceptance Gate: the **human PM** merges and disposes; append to `state/acceptances.jsonl` (`accepted`, `pm_label`, corrections). Weekly: run `scripts/metrics.py`, read the red first.
|
|
97
47
|
|
|
98
48
|
## Sample prompts (copy-paste, no coding required)
|
|
99
49
|
|
|
100
50
|
Talk to your agent like a colleague; your task is direction and judgment, its task is the build.
|
|
101
51
|
|
|
102
|
-
- **Onboard an existing product:** "Read pmos/AGENTS.md. Then follow pmos/skills/ingest-repo.skill:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
- **
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- **
|
|
109
|
-
|
|
110
|
-
- **
|
|
111
|
-
|
|
112
|
-
spike brief — one question, a timebox — for my approval. Prototype code is throwaway."
|
|
113
|
-
- **Quick maintenance (chore lane):** "Read pmos/AGENTS.md. Open a chore initiative: [one-sentence
|
|
114
|
-
intent]. No PRD or rubric — just state the intent in the initiative file and do it."
|
|
115
|
-
- **Review Gate:** "Follow pmos/skills/evaluator.skill: score the work on branch initiative/[id]
|
|
116
|
-
against its rubric. Be skeptical — try to refute it. Append the verdict to pmos/state/evals.jsonl."
|
|
117
|
-
- **Acceptance:** "I accept this run. Append the acceptance to pmos/state/acceptances.jsonl with
|
|
118
|
-
pm_label 'pass' and corrections: [n]."
|
|
119
|
-
- **Weekly review:** "Read pmos/state/discoveries.md and run pmos/scripts/metrics.py. Tell me
|
|
120
|
-
what's red, what friction appeared more than once, and one improvement you'd propose. Don't
|
|
121
|
-
change anything yet."
|
|
122
|
-
- **Drift audit:** "List every merge in the last two weeks. For each: which initiative anchors it,
|
|
123
|
-
did the rubric exist before the build, and is there an acceptance record? Report gaps without
|
|
124
|
-
fixing them."
|
|
125
|
-
- **Dashboard on demand:** "Read pmos/state/ (initiatives, runs.jsonl, evals.jsonl,
|
|
126
|
-
acceptances.jsonl, discoveries.md). Generate a self-contained pmos/dashboard.html — no external
|
|
127
|
-
scripts or network — with a stage-column board of initiatives, north-star + pass-rate tiles, a
|
|
128
|
-
recent-runs timeline, and open frictions. Reds and gaps first." (Read-only view — the files stay
|
|
129
|
-
the system of record.)
|
|
52
|
+
- **Onboard an existing product:** "Read pmos/AGENTS.md. Then follow pmos/skills/ingest-repo.skill: scan this repository read-only and draft what you learn under pmos/okf/product/ for my review. Don't change any product code."
|
|
53
|
+
- **Greenfield:** "Read pmos/AGENTS.md. This is a new product: [two sentences]. Seed pmos/planning/okrs/ with one objective and 2–3 key results, then propose one small first initiative — fast first win, not completeness."
|
|
54
|
+
- **Start a piece of work:** "Read pmos/AGENTS.md. I want: [outcome]. Create the initiative file, then draft the PRD and eval rubric for my approval before you build anything."
|
|
55
|
+
- **Explore before committing (discovery lane):** "Read pmos/AGENTS.md. I don't know yet whether [idea] is worth building. Open a discovery initiative per pmos/skills/discovery.skill: draft the spike brief — one question, a timebox — for my approval. Prototype code is throwaway."
|
|
56
|
+
- **Quick maintenance (chore lane):** "Read pmos/AGENTS.md. Open a chore initiative: [one-sentence intent]. No PRD or rubric — just state the intent in the initiative file and do it."
|
|
57
|
+
- **Review Gate:** "Follow pmos/skills/evaluator.skill: score the work on branch initiative/[id] against its rubric. Be skeptical — try to refute it. Append the verdict to pmos/state/evals.jsonl."
|
|
58
|
+
- **Acceptance:** "I accept this run. Append the acceptance to pmos/state/acceptances.jsonl with pm_label 'pass' and corrections: [n]."
|
|
59
|
+
- **Weekly review:** "Read pmos/state/discoveries.md and run pmos/scripts/metrics.py. Tell me what's red, what friction appeared more than once, and one improvement you'd propose. Don't change anything yet."
|
|
60
|
+
- **Drift audit:** "List every merge in the last two weeks. For each: which initiative anchors it, did the rubric exist before the build, and is there an acceptance record? Report gaps without fixing them."
|
|
61
|
+
- **Dashboard on demand:** "Read pmos/state/ (initiatives, runs.jsonl, evals.jsonl, acceptances.jsonl, discoveries.md). Generate a self-contained pmos/dashboard.html — no external scripts or network — with a stage-column board of initiatives, north-star + pass-rate tiles, a recent-runs timeline, and open frictions. Reds and gaps first." (Read-only view — the files stay the system of record.)
|
|
130
62
|
|
|
131
63
|
## Update the kernel (occasionally)
|
|
132
64
|
|
|
133
|
-
`npx create-pmos@latest --update` (or `pmos/scripts/kit-update.sh <path-to-pmos-checkout>` from a
|
|
134
|
-
PMOS checkout) — refreshes ONLY the kernel (skills/okf-core/scripts/AGENTS.md/README/templates),
|
|
135
|
-
stamps `KIT-VERSION`, never touches `state/`, `planning/`, or `okf/product/`. Updates flow
|
|
136
|
-
one-way, PMOS → kit; review the diff as a normal PR.
|
|
65
|
+
`npx create-pmos@latest --update` (or `pmos/scripts/kit-update.sh <path-to-pmos-checkout>` from a PMOS checkout) — refreshes ONLY the kernel (skills/okf-core/scripts/AGENTS.md/README/templates), stamps `KIT-VERSION`, never touches `state/`, `planning/`, or `okf/product/`. Updates flow one-way, PMOS → kit; review the diff as a normal PR.
|
|
137
66
|
|
|
138
|
-
> Upgrade note (D59 kernel): the gate now rejects an initiative file with **no `parent_kr`**
|
|
139
|
-
> (hosted parity, D21). If a pre-D59 vendored file trips it, that file was always unanchored —
|
|
140
|
-
> add a real KR, or `parent_kr: health:<id>` from `planning/okrs/health-budgets.md` if it is
|
|
141
|
-
> honest maintenance. The gate failing is the fix working, not a regression.
|
|
67
|
+
> Upgrade note (D59 kernel): the gate now rejects an initiative file with **no `parent_kr`** (hosted parity, D21). If a pre-D59 vendored file trips it, that file was always unanchored — add a real KR, or `parent_kr: health:<id>` from `planning/okrs/health-budgets.md` if it is honest maintenance. The gate failing is the fix working, not a regression.
|
|
142
68
|
|
|
143
69
|
## The containment guarantee
|
|
144
70
|
|
|
145
|
-
The assembly script greps its own output and fails on any reference to the hosted PMOS backend.
|
|
146
|
-
Nothing in this folder phones home; the AGENTS.md protocol forbids connecting sessions from this
|
|
147
|
-
repo to any personal PMOS MCP. Isolation is the point.
|
|
71
|
+
The assembly script greps its own output and fails on any reference to the hosted PMOS backend. Nothing in this folder phones home; the AGENTS.md protocol forbids connecting sessions from this repo to any personal PMOS MCP. Isolation is the point.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system (Komorebi)"
|
|
4
|
+
description: "The one design system for the PMOS workspace, and PMOS prototypes (the UI system): rules, levels, colour, type, motion and voice."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# PMOS design system (Komorebi)
|
|
9
|
+
|
|
10
|
+
The UI design system for what PMOS draws on screen: the workspace and the prototypes PMOS makes. Slides get their own design system, made separately. It was agreed on 2026-11-19. These files are the copy that travels: the workspace builds its shared stylesheet from them, PMOS prototypes use them, and `create-pmos` puts them in every kit as `pmos/design-system/`.
|
|
11
|
+
|
|
12
|
+
## Files
|
|
13
|
+
|
|
14
|
+
| File | What it is |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `tokens.json` | Every foundation value: colour (light and dark), type, space, corners, shadow, motion. The source the CSS is made from. |
|
|
17
|
+
| `tokens.css` | The tokens as CSS custom properties, plus the type classes (`title`, `heading`, `body`, `small`, `code`). |
|
|
18
|
+
| `components/bundle.css` | Every element, component and block class (`pm-btn`, `pm-li`, `pm-block`…). |
|
|
19
|
+
| `components/<Name>/README.md` | What one part is for, what the consumer provides, and its empty, loading and error states. |
|
|
20
|
+
| `components/<Name>/preview.html` | A sample of that part. Load `tokens.css` and `components/bundle.css` to see it styled. |
|
|
21
|
+
| `interactions.md` | How parts behave: the rules, the keys and every block's states. |
|
|
22
|
+
| `pages.md` | Every PMOS workspace page, with its layout and blocks. |
|
|
23
|
+
|
|
24
|
+
## Use it in another project or session
|
|
25
|
+
|
|
26
|
+
1. Read this README first, then the README of each part you use.
|
|
27
|
+
2. In a page: `<link rel="stylesheet" href="tokens.css">` and `<link rel="stylesheet" href="components/bundle.css">`, then `<body class="pm">`.
|
|
28
|
+
3. Build only from the parts below. If no part does the job, add an option to a part and say so.
|
|
29
|
+
|
|
30
|
+
PMOS feels like light through leaves: calm, warm, and only one thing lit at a time. Four ideas shape every decision.
|
|
31
|
+
|
|
32
|
+
- **Ima wa ima, kondo wa kondo** (now is now, next time is next time). Only now is loud. Later folds away.
|
|
33
|
+
- **Komorebi** (sunlight through leaves). Light, not colour, shows what matters. The ground follows the clock.
|
|
34
|
+
- **Ikigai** (a reason to be). Every row says why it is there.
|
|
35
|
+
- **Kaizen** (small steady improvement). Drift is counted every week and brought down.
|
|
36
|
+
|
|
37
|
+
## The six levels
|
|
38
|
+
|
|
39
|
+
Each level is made only from the levels above it.
|
|
40
|
+
|
|
41
|
+
| Level | What it is | Examples |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| 0 · Foundations | The raw values and what each is for: colour, type, space, corners, shadow, light, motion speed and easing. | `ink`, `leaf`, `body`, `space-16`, `radius-card`, `raise`, `duration-enter` |
|
|
44
|
+
| 1 · Elements | The smallest things you can see. | Button, Input, Badge, Switch, Icon |
|
|
45
|
+
| 2 · Components | A few elements doing one job. Each says how it moves and which gestures it takes. | ListRow, Tabs, Field, Toast, Menu, Suggestion, Event, Chart |
|
|
46
|
+
| 3 · Blocks | A fixed set of components that makes one part of a screen, named by its job, with slots for data. | List, Table, Summary, Number, Detail, Timeline, Calendar, Conversation, Document, Stage, Settings, Navigation |
|
|
47
|
+
| 4 · Layouts | Where blocks sit on a page. | Main + side, Main + open item, Single column |
|
|
48
|
+
| 5 · Pages | A layout filled with blocks and real data. | Today, Work, Goals |
|
|
49
|
+
|
|
50
|
+
**The test for a block:** it does one job, it appears in more than one place, and it keeps the same arrangement everywhere. If a page needs something slightly different, give the block an option. Never make a page-specific block. Empty, loading and error are states of every block, not more blocks.
|
|
51
|
+
|
|
52
|
+
## Colour
|
|
53
|
+
|
|
54
|
+
- `ink` on `card`, `well` and `ground` for all text; `muted` for why lines and meta.
|
|
55
|
+
- `blue` means PMOS is speaking: the ✦, primary buttons, links, the main chart series.
|
|
56
|
+
- `leaf` means now: the focus ring (`glow`), the page you are on, the one Do first group. One lit thing per screen. Never text.
|
|
57
|
+
- `alert` means late, at risk, blocked or danger. Never decoration. On track gets no colour.
|
|
58
|
+
- Tints (`blue-tint`, `leaf-tint`, `alert-tint`) are the only fills behind meaning.
|
|
59
|
+
- The ground follows the clock: `ground-morning`, `ground-afternoon`, `ground-evening`; after 21:00 the page switches to the Dark theme (`ground-night`).
|
|
60
|
+
|
|
61
|
+
## Type
|
|
62
|
+
|
|
63
|
+
Plus Jakarta Sans for everything, IBM Plex Mono for keys and ids. Four workspace sizes only: `title` 26, `heading` 18, `body` 15, `small` 13. Bold (600) only on what you act on: row titles, headings, the chosen tab. Nothing smaller than 13 px.
|
|
64
|
+
|
|
65
|
+
## Space, corners, depth
|
|
66
|
+
|
|
67
|
+
- Space: `space-12` between panels, `space-16` between blocks, `space-32` inside a panel.
|
|
68
|
+
- Corners: `radius-sm` buttons, `radius-md` rows and inputs, `radius-card` blocks, `radius-panel` panels, `radius-pill` counts and switches.
|
|
69
|
+
- Two depths: Now is raised (`raise`); later is flat and dashed. `lift` only for things over things (toast, sheet, menu).
|
|
70
|
+
|
|
71
|
+
## Motion and gestures
|
|
72
|
+
|
|
73
|
+
- Motion means something changed. Nothing moves for decoration, nothing bounces, nothing loops except the ✦ while PMOS works.
|
|
74
|
+
- `duration-quick` for hover and press, `duration-enter` with `ease-out` for things that arrive, `ease-drift` for things that fold or reorder, `duration-leaf` for the leaf ring lighting up.
|
|
75
|
+
- Every gesture is a shortcut for a button that is always there, and every result has Undo. Phones: swipe right = done, swipe left = tomorrow, long press = more, swipe down closes a sheet. No pull to refresh, no swipe that deletes.
|
|
76
|
+
- Reduced motion: fades only.
|
|
77
|
+
|
|
78
|
+
## Voice
|
|
79
|
+
|
|
80
|
+
- Write from the person’s side, in short plain sentences. Say what happened: "Moved to tomorrow", not "Success".
|
|
81
|
+
- In the product, the assistant is **PMOS**. Never write "Claude" in the workspace, except where the person signs in to their Claude account.
|
|
82
|
+
- PMOS speaks once per page, in a Summary block, summary first.
|
|
83
|
+
- Zero is silence: no "0 items", no empty charts. One quiet line and the next thing instead.
|
|
84
|
+
- Buttons are icon-only with a label as tooltip and `aria-label`. PMOS recommends; the person approves (Yes / No). Safe actions happen at once with Undo; never "are you sure".
|
|
85
|
+
|
|
86
|
+
## Interaction
|
|
87
|
+
|
|
88
|
+
Every part responds the same way everywhere: hover explains, click acts, everything acts at once with Undo, and every mouse action has a key. Charts are interactive: hover for the value, click to open the items behind it, toggle series, switch the range. Each component’s page has its own Interaction section; the rules and keys are in the Interaction section of this system.
|
|
89
|
+
|
|
90
|
+
## Iconography
|
|
91
|
+
|
|
92
|
+
Stroke icons on a 24 px grid, 2 px stroke, `currentColor`, drawn at 16 or 18 px. The ✦ is PMOS and is always `blue`. The row icon names the kind of work (task, ask, decision, report). No emoji.
|
|
93
|
+
|
|
94
|
+
## Using this system
|
|
95
|
+
|
|
96
|
+
- **In a design or prototype:** load `tokens.css` and `components/bundle.css`, wrap the page in `class="pm"`, and build only from the components’ classes (`pm-btn`, `pm-li`, `pm-block`…). Pick a Layout, fill it with Blocks. If you need something no block does, add an option to a block and say so.
|
|
97
|
+
- **Slides are not part of this system.** Decks will have their own PMOS slide system.
|
|
98
|
+
- **In the PMOS workspace:** the same names become the workspace’s shared stylesheet and parts; a page may only use blocks from this list.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Badge"
|
|
4
|
+
description: "Small labels: `pm-badge` (state), `pm-count` (a number on the rail), `pm-chip` (a name or tag), `pm-kbd` (a key)."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Small labels: `pm-badge` (state), `pm-count` (a number on the rail), `pm-chip` (a name or tag), `pm-kbd` (a key).
|
|
9
|
+
|
|
10
|
+
- `alert` badge only for late, at risk or blocked. On track gets no badge (zero is silence).
|
|
11
|
+
- Never show a count of 0.
|
|
12
|
+
|
|
13
|
+
## Interaction
|
|
14
|
+
|
|
15
|
+
- Badges are not buttons. Hover shows the detail as a tooltip ("Due 29 Oct, 21 days late").
|
|
16
|
+
- A count that changes animates the number only (`duration-enter`), never the badge.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="1 · Elements" height=64 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div class="pm-row"><span class="pm-badge alert">21 days late</span><span class="pm-badge blue">due</span><span class="pm-badge">waiting 28 d</span><span class="pm-count">28</span><span class="pm-chip">Archana</span><span class="pm-kbd">x</span></div></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Button"
|
|
4
|
+
description: "Icon-only button, 32 px (44 px touch area on phones). Four kinds: ghost (default), `primary` (blue fill, the one main action), `outline` (the second choice next"
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Icon-only button, 32 px (44 px touch area on phones). Four kinds: ghost (default), `primary` (blue fill, the one main action), `outline` (the second choice next to primary), `danger` (alert ink).
|
|
9
|
+
|
|
10
|
+
- Every button has an `aria-label` and the same text as a tooltip. No text buttons in the workspace; the label is the tooltip.
|
|
11
|
+
- One primary per block. The pair "Yes / No" is always primary + outline.
|
|
12
|
+
- Focus shows the leaf ring (`glow`).
|
|
13
|
+
- Consumer provides: icon, label, kind, onClick.
|
|
14
|
+
|
|
15
|
+
## Interaction
|
|
16
|
+
|
|
17
|
+
- Hover: `well` fill in `duration-quick`. Press: 1 px down. Focus: the leaf ring (`glow`).
|
|
18
|
+
- The label shows as a tooltip after 400 ms of hover or on focus, and is the `aria-label`.
|
|
19
|
+
- Disabled buttons stay visible and say why in the tooltip ("Not available: no owner yet").
|
|
20
|
+
- After a click the result shows where the change happened, with Undo in a Toast. Never a confirm dialog.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="1 · Elements" height=72 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div class="pm-row"><button type="button" class="pm-btn " aria-label="Done" title="Done"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn primary" aria-label="Yes" title="Yes"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn outline" aria-label="No" title="No"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button><button type="button" class="pm-btn danger" aria-label="Delete" title="Delete"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button><button type="button" class="pm-btn" disabled aria-label="Not available"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Calendar"
|
|
4
|
+
description: "A month grid. Used for: Events, the date picker. Today carries the leaf ring; a blue dot marks days with events."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
A month grid. Used for: Events, the date picker. Today carries the leaf ring; a blue dot marks days with events.
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Click a day to see its events; double-click (or long press) on empty time to add one.
|
|
13
|
+
- Drag an event to move it; drag its bottom edge to change the end. A Toast offers Undo.
|
|
14
|
+
- Previous and next month: buttons, or Left and Right keys; `t` jumps to today.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=260 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="November"><div class="head"><h3 class="pm-h">November</h3><span class="sp"></span><button type="button" class="pm-btn " aria-label="Previous month" title="Previous month"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 10l4 4 4-4"/></svg></button><button type="button" class="pm-btn " aria-label="Next month" title="Next month"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div><div class="pm-cal"><span class="pm-meta">M</span><span class="pm-meta">T</span><span class="pm-meta">W</span><span class="pm-meta">T</span><span class="pm-meta">F</span><span class="pm-meta">S</span><span class="pm-meta">S</span><span class="">16</span><span class="">17</span><span class="">18</span><span class="today">19</span><span class="has">20</span><span class="">21</span><span class="">22</span><span class="">23</span><span class="has">24</span><span class="">25</span><span class="">26</span><span class="">27</span><span class="has">28</span><span class="">29</span></div></section><script>
|
|
7
|
+
(function(){var s=document.currentScript.previousElementSibling,c=s.querySelector('.pm-cal'),o=document.createElement('p');o.className='pm-meta';o.style.margin='0';o.textContent='Click a day to see its events.';s.appendChild(o);var ev={20:'Fri 20 · IDPF review 10:00',24:'Tue 24 · CRSM 2.0 demo 15:00',28:'Sat 28 · Email OTP beta ends',19:'Thu 19 · 3 meetings, the next at 16:00'};
|
|
8
|
+
c.addEventListener('click',function(e){var d=e.target.closest('span');if(!d||isNaN(+d.textContent))return;c.querySelectorAll('span').forEach(function(x){x.style.boxShadow=''});d.style.boxShadow='var(--glow)';o.textContent=ev[+d.textContent]||('Nothing on '+d.textContent+' Nov. Double-click to add.')})})();
|
|
9
|
+
</script></div>
|
|
10
|
+
</body>
|
|
11
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Chart"
|
|
4
|
+
description: "Charts are components: stacked bar, line (burndown), sparkline, area, meter, bar with goal."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Charts are components: stacked bar, line (burndown), sparkline, area, meter, bar with goal.
|
|
9
|
+
|
|
10
|
+
- The heading of the block that holds a chart says the answer ("Sprint will end with 14 points left"), never the chart name.
|
|
11
|
+
- Roles: `blue` = the series you read, `leaf` = done or goal, `muted` = plan or baseline, `alert` = risk only, `line` = grid.
|
|
12
|
+
- At most 3 series. Labels on the marks, no legends. No data = one quiet line, no empty chart. Every chart has its answer as `aria-label`.
|
|
13
|
+
|
|
14
|
+
## Interaction
|
|
15
|
+
|
|
16
|
+
Every chart is interactive. The interactions are the same on every chart, so people learn them once.
|
|
17
|
+
|
|
18
|
+
- **Hover or touch a point or bar:** a crosshair and a tooltip show the exact value, the date and what changed ("13 done · Thu 19 Nov · +4 vs plan"). The tooltip follows the pointer and never covers the point.
|
|
19
|
+
- **Click a point, bar or segment:** opens the items behind it beside the chart ("4 items done on 19 Nov"). The chosen mark stays lit with the leaf ring until another is picked or Esc.
|
|
20
|
+
- **Click a series label:** shows or hides that series. At least one series stays visible.
|
|
21
|
+
- **Range:** Tabs above the chart (Sprint, 30 days, Quarter) switch the period in place; the line redraws in `duration-enter`, it does not jump.
|
|
22
|
+
- **Keyboard:** the chart takes focus; Left and Right move between points and read the tooltip aloud; Enter opens the items; Esc leaves.
|
|
23
|
+
- **Phones:** press and drag along the chart to scrub; lift to keep the last value shown.
|
|
24
|
+
- **Never:** zoom by scroll wheel, legends, 3D, animation on every load. Reduced motion: no redraw animation.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!-- @dsCard group="2 · Components" height=300 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><div style="display:flex;flex-direction:column;gap:8px">
|
|
7
|
+
<div class="pm-row" style="justify-content:space-between">
|
|
8
|
+
<b style="font-size:15px">More done each day this sprint</b>
|
|
9
|
+
<div class="pm-tabs" role="tablist" aria-label="Range"><button class="pm-tab" role="tab" aria-selected="true" data-r="s">Sprint</button><button class="pm-tab" role="tab" aria-selected="false" data-r="m">30 days</button></div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="pm-leg"><button aria-pressed="true" data-s="done"><i style="background:var(--blue)"></i>Done</button><button aria-pressed="true" data-s="plan"><i style="background:var(--muted)"></i>Plan</button></div>
|
|
12
|
+
<div class="pm-chart" tabindex="0" role="img" aria-label="Done per day, rising from 3 to 13. Use Left and Right to read each day.">
|
|
13
|
+
<svg width="100%" height="150" viewBox="0 0 600 150" preserveAspectRatio="none" aria-hidden="true">
|
|
14
|
+
<line x1="0" x2="600" y1="140" y2="140" stroke="var(--line)"></line>
|
|
15
|
+
<g class="series" data-s="plan"><path class="line" d="" fill="none" stroke="var(--muted)" stroke-width="2" stroke-dasharray="4 4"></path></g>
|
|
16
|
+
<g class="series" data-s="done"><path class="line" d="" fill="none" stroke="var(--blue)" stroke-width="2.5" stroke-linejoin="round"></path><g class="pts"></g></g>
|
|
17
|
+
<line class="xh" x1="0" x2="0" y1="0" y2="140"></line>
|
|
18
|
+
<g class="hits"></g>
|
|
19
|
+
</svg>
|
|
20
|
+
<div class="pm-tip" role="status"></div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="pm-pick">Hover a day for its numbers. Click to open its items.</div>
|
|
23
|
+
</div>
|
|
24
|
+
<script>
|
|
25
|
+
(function(){
|
|
26
|
+
var D={s:{d:['10 Nov','11 Nov','12 Nov','13 Nov','14 Nov','17 Nov','18 Nov','19 Nov'],v:[3,5,4,8,7,10,9,13],p:[4,5,6,7,8,9,10,11]},
|
|
27
|
+
m:{d:['21 Oct','24 Oct','28 Oct','31 Oct','4 Nov','7 Nov','11 Nov','14 Nov','18 Nov','19 Nov'],v:[2,4,3,6,5,7,5,7,9,13],p:[4,4,5,5,6,6,7,8,10,11]}};
|
|
28
|
+
var r='s',sel=-1,hov=-1,root=document.currentScript.previousElementSibling,ch=root.querySelector('.pm-chart'),svg=ch.querySelector('svg'),tip=ch.querySelector('.pm-tip'),pick=root.querySelector('.pm-pick'),xh=svg.querySelector('.xh');
|
|
29
|
+
function X(i,n){return n<2?300:i*600/(n-1)}function Y(v){return 140-v*9}
|
|
30
|
+
function path(a){return a.map(function(v,i){return(i?'L':'M')+X(i,a.length).toFixed(1)+' '+Y(v)}).join(' ')}
|
|
31
|
+
function draw(){var d=D[r],n=d.v.length;svg.querySelector('[data-s=done] path').setAttribute('d',path(d.v));svg.querySelector('[data-s=plan] path').setAttribute('d',path(d.p));
|
|
32
|
+
var pts='',hits='',w=600/(n-1);for(var i=0;i<n;i++){pts+='<circle class="pt" cx="'+X(i,n)+'" cy="'+Y(d.v[i])+'" r="3.5"></circle>';hits+='<rect class="hit" data-i="'+i+'" x="'+(X(i,n)-w/2)+'" y="0" width="'+w+'" height="150"></rect>'}
|
|
33
|
+
svg.querySelector('.pts').innerHTML=pts;svg.querySelector('.hits').innerHTML=hits;mark()}
|
|
34
|
+
function mark(){[].forEach.call(svg.querySelectorAll('.pt'),function(c,i){c.setAttribute('r',i==hov||i==sel?6:3.5);c.classList.toggle('on',i==sel)})}
|
|
35
|
+
function show(i){var d=D[r],n=d.v.length;hov=i;mark();if(i<0){tip.classList.remove('on');xh.classList.remove('on');return}
|
|
36
|
+
var x=X(i,n);xh.setAttribute('x1',x);xh.setAttribute('x2',x);xh.classList.add('on');var dv=d.v[i]-d.p[i];
|
|
37
|
+
tip.innerHTML='<b>'+d.v[i]+' done</b> · '+d.d[i]+' · '+(dv>=0?'+':'')+dv+' vs plan';var bw=ch.clientWidth,px=x/600*bw;tip.style.left=Math.max(0,Math.min(bw-190,px-95))+'px';tip.style.top=Math.max(0,Y(d.v[i])-44)+'px';tip.classList.add('on')}
|
|
38
|
+
function choose(i){sel=i;mark();var d=D[r];pick.innerHTML=i<0?'Hover a day for its numbers. Click to open its items.':'<a href="#">'+d.v[i]+' items done on '+d.d[i]+'</a> open beside the chart · Esc clears'}
|
|
39
|
+
svg.addEventListener('mousemove',function(e){var t=e.target.closest('.hit');if(t)show(+t.dataset.i)});
|
|
40
|
+
svg.addEventListener('mouseleave',function(){show(-1)});
|
|
41
|
+
svg.addEventListener('click',function(e){var t=e.target.closest('.hit');if(t)choose(+t.dataset.i)});
|
|
42
|
+
ch.addEventListener('keydown',function(e){var n=D[r].v.length,i=hov<0?n-1:hov;if(e.key=='ArrowRight'){show(Math.min(n-1,i+1));e.preventDefault()}else if(e.key=='ArrowLeft'){show(Math.max(0,hov<0?n-1:i-1));e.preventDefault()}else if(e.key=='Enter'&&hov>=0){choose(hov)}else if(e.key=='Escape'){show(-1);choose(-1)}});
|
|
43
|
+
ch.addEventListener('blur',function(){show(-1)});
|
|
44
|
+
root.querySelectorAll('[data-r]').forEach(function(b){b.addEventListener('click',function(){r=b.dataset.r;sel=-1;hov=-1;root.querySelectorAll('[data-r]').forEach(function(x){x.setAttribute('aria-selected',x==b)});choose(-1);draw();show(-1)})});
|
|
45
|
+
root.querySelectorAll('.pm-leg button').forEach(function(b){b.addEventListener('click',function(){var on=b.getAttribute('aria-pressed')=='true',others=root.querySelectorAll('.pm-leg button[aria-pressed=true]').length;if(on&&others<2)return;b.setAttribute('aria-pressed',!on);svg.querySelector('.series[data-s='+b.dataset.s+']').classList.toggle('off',on)})});
|
|
46
|
+
draw();
|
|
47
|
+
})();
|
|
48
|
+
</script></div>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Conversation"
|
|
4
|
+
description: "Messages plus an input. Used for: Chat, Speak to PMOS, goal chat, report chat. One chat open at a time."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Messages plus an input. Used for: Chat, Speak to PMOS, goal chat, report chat. One chat open at a time.
|
|
9
|
+
|
|
10
|
+
## Interaction
|
|
11
|
+
|
|
12
|
+
- Enter sends; Shift+Enter is a new line. While PMOS answers, Send becomes Stop.
|
|
13
|
+
- Answers stream in; links in answers open beside. Each answer has Copy and Retry on hover.
|
|
14
|
+
- Up arrow in an empty input edits the last question.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=240 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="Chat"><div class="head"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z"/></svg><h3 class="pm-h-sm" style="flex:1">Chat</h3><button type="button" class="pm-btn " aria-label="Close" title="Close"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div><div class="pm-msg">What is blocking CRSM 2.0?</div><p class="pm-said" style="margin:0"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><span>WeChat Signup/Login has no owner, and Admin APIs waits for the new IDP.</span></p><div class="pm-row" style="flex-wrap:nowrap"><input class="pm-input" aria-label="Ask PMOS" placeholder="Ask PMOS"><button type="button" class="pm-btn primary" aria-label="Send" title="Send"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div></section></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: "PMOS design system: Detail"
|
|
4
|
+
description: "One thing: header with icon actions, then fields. Used for: an item, an initiative (mission, experiment, intent), a record preview, a routine, a workflow step."
|
|
5
|
+
timestamp: 2026-11-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
One thing: header with icon actions, then fields. Used for: an item, an initiative (mission, experiment, intent), a record preview, a routine, a workflow step.
|
|
9
|
+
|
|
10
|
+
- Consumer provides: icon, title, meta line, fields, actions.
|
|
11
|
+
- Editing happens in place on a field; no separate edit page.
|
|
12
|
+
|
|
13
|
+
## Interaction
|
|
14
|
+
|
|
15
|
+
- Every field edits in place (Field rules). Close (Esc) returns to the list with the row still selected.
|
|
16
|
+
- Previous and next item: `k` and `j`, or swipe left and right on phones.
|
|
17
|
+
- Actions sit in the header as icon buttons; the more menu holds the rest.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- @dsCard group="3 · Blocks" height=220 -->
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html>
|
|
4
|
+
<head><meta charset="utf-8"><title>preview</title></head>
|
|
5
|
+
<body>
|
|
6
|
+
<div class="pm"><section class="pm-block" aria-label="Item"><div class="head"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg><h3 class="pm-h" style="flex:1">Email OTP login</h3><button type="button" class="pm-btn " aria-label="Open in Jira" title="Open in Jira"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></svg></button><button type="button" class="pm-btn " aria-label="More" title="More"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h.01M12 12h.01M19 12h.01"/></svg></button><button type="button" class="pm-btn " aria-label="Close" title="Close"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div><span class="pm-meta">IDPF · Build · due 28 Nov</span><dl class="pm-field" style="margin:0"><dt>Owner</dt><dd>You</dd><dt>Done test</dt><dd>sign-up p50 under 2 min</dd><dt>Kill if</dt><dd>no lift by 15 Jan</dd></dl></section></div>
|
|
7
|
+
</body>
|
|
8
|
+
</html>
|