-
Notifications
You must be signed in to change notification settings - Fork 0
chore: recover kit stash 0 #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3a792db
docs: add repo and agent charters
gapview01 132cc95
feat: add BUS-FIRST INVARIANT block to CLAUDE.md
gapview01 e21e6a1
wip: auto-sync 2026-04-13
gapview01 351b415
chore: recover kit stash 0
gapview01 c26ce80
Merge branch 'main' into chore/recover-stash-kit-0-20260427
gapview01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| # KPIs — kit | ||
|
|
||
| Canonical measurement definitions owned by **analytics**. Thresholds, ownership, and interventions owned by **coo**. This repo authors and exposes the signal. | ||
|
|
||
| The 20% of KPIs that drive 80% of this repo's charter outcomes and time-to-revenue. | ||
|
|
||
| ## Pareto KPIs | ||
|
|
||
| ### kpi.kit.build-and-test-pass-rate | ||
|
|
||
| - **Measures:** Percentage of CI runs (main branch) where all packages (@toreva/sdk, @toreva/cli, @toreva/mcp, @toreva/types) build and all Vitest tests pass | ||
| - **Charter outcome:** "All packages build and pass Vitest tests" | ||
| - **Time-to-revenue link:** A red main blocks any third-party developer or AI-agent integration release; kit is the acquisition surface for the AI-agent distribution channel | ||
| - **Type:** leading | ||
| - **Target:** `>= 99%` | ||
| - **Cadence:** weekly | ||
| - **Source:** CI pipeline logs | ||
| - **Owner:** kit agent (accountable) — analytics agent (measurement) — coo agent (threshold) | ||
| - **Intervention trigger:** any red main unresolved more than 4 hours | ||
|
|
||
| ### kpi.kit.gateway-contract-parity | ||
|
|
||
| - **Measures:** Percentage of gateway tool names, relay types, and schema fields that match canonical kit type definitions (@toreva/types) | ||
| - **Charter outcome:** "Tool names and relay types are canonical (match gateway contract)" and "never use `protocolId` — always use `venue`" | ||
| - **Time-to-revenue link:** Contract drift causes silent integration breakage for third-party agents and developers — every broken integration loses an inbound user and erodes trust | ||
| - **Type:** leading | ||
| - **Target:** `100%` | ||
| - **Cadence:** weekly | ||
| - **Source:** schema diff between gateway contract and @toreva/types | ||
| - **Owner:** kit agent (accountable) — analytics agent (measurement) — coo agent (threshold) | ||
| - **Intervention trigger:** any drift detected, or any use of forbidden field `protocolId` | ||
|
|
||
| ### kpi.kit.gateway-only-communication-compliance | ||
|
|
||
| - **Measures:** Count of detected network calls from any kit package to endpoints other than `gateway.toreva.com` | ||
| - **Charter outcome:** "SDK, CLI, and MCP server all communicate exclusively through gateway.toreva.com" and "Zero secrets or internal URLs in published code" | ||
| - **Time-to-revenue link:** Non-gateway calls leak internal surface area and create security/compliance risks that directly threaten licensing and third-party trust | ||
| - **Type:** leading | ||
| - **Target:** `0` | ||
| - **Cadence:** weekly | ||
| - **Source:** static analysis of published packages + network audit in tests | ||
| - **Owner:** kit agent (accountable) — analytics agent (measurement) — coo agent (threshold) | ||
| - **Intervention trigger:** any occurrence | ||
|
|
||
| ### kpi.kit.mcp-server-smoke-test-success | ||
|
|
||
| - **Measures:** Percentage of scheduled MCP server smoke tests (stdio and remote modes) that complete all declared skill invocations successfully | ||
| - **Charter outcome:** "MCP server works in both stdio and remote modes" | ||
| - **Time-to-revenue link:** MCP is the primary AI-agent acquisition surface (Claude, Codex, Grok); smoke test failures silently cut off inbound AI-agent developer users | ||
| - **Type:** leading | ||
| - **Target:** `>= 99%` | ||
| - **Cadence:** weekly | ||
| - **Source:** MCP smoke test job logs | ||
| - **Owner:** kit agent (accountable) — analytics agent (measurement) — coo agent (threshold) | ||
| - **Intervention trigger:** any failed skill invocation unresolved within 12 hours | ||
|
|
||
| ### kpi.kit.disclaimer-and-notice-presence | ||
|
|
||
| - **Measures:** Percentage of published packages where required regulatory notices and disclaimers are present and unmodified | ||
| - **Charter outcome:** "Include proper regulatory notices and disclaimers in public-facing packages" and "Never modify or remove regulatory notices" | ||
| - **Time-to-revenue link:** Missing disclaimers on a public-facing package in the AUSTRAC/ASIC window is a direct compliance event that can block the license path | ||
| - **Type:** leading | ||
| - **Target:** `100%` | ||
| - **Cadence:** weekly | ||
| - **Source:** published package content audit vs canonical disclaimer templates | ||
| - **Owner:** kit agent (accountable) — analytics agent (measurement) — coo agent (threshold) | ||
| - **Intervention trigger:** any package missing or modified disclaimer | ||
|
|
||
| ### kpi.kit.business-logic-leakage-count | ||
|
|
||
| - **Measures:** Count of detected business logic primitives (routing, scoring, fee enforcement, strategy execution) in any kit package after static analysis | ||
| - **Charter outcome:** "Zero business logic in any package (routing, scoring, fee enforcement)" | ||
| - **Time-to-revenue link:** Business logic in the thin client violates the gateway-first architecture, creates divergence risk between kit and gateway, and puts unaudited code in front of regulators | ||
| - **Type:** leading | ||
| - **Target:** `0` | ||
| - **Cadence:** weekly | ||
| - **Source:** static analysis linter over kit packages | ||
| - **Owner:** kit agent (accountable) — analytics agent (measurement) — coo agent (threshold) | ||
| - **Intervention trigger:** any occurrence | ||
|
|
||
| ## Registry | ||
|
|
||
| Canonical index: `/analytics/kpis/registry/README.md` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # MEMORY — kit | ||
|
|
||
| **Layer-2 curated intelligence.** Read this at the START of every session. Append curated entries at the END of every session. | ||
|
|
||
| This file is distinct from: | ||
| - `CLAUDE.md` / `AGENTS.md` — instructions, conventions, rules | ||
| - Tool-specific auto-memory — Claude Code `.memory/`, Codex `~/.codex/memories/`, Cursor DB, Copilot workspace | ||
| - Org-wide memory — `/memory/objects/` (promoted from here) | ||
|
|
||
| Full spec: [`/memory/playbooks/layer-2-memory-file.md`](../memory/playbooks/layer-2-memory-file.md) | ||
|
|
||
| ## Session-start protocol | ||
|
|
||
| 1. Read **Active lessons** and **Open questions** below — apply them before acting. | ||
| 2. Check **Recent decisions** for anything that supersedes your current direction. | ||
| 3. At session end, distil learnings (not tasks done) and append qualifying entries to the appropriate section using the YAML template. | ||
|
|
||
| ## Quality gate (all five must hold) | ||
|
|
||
| 1. **Future-relevant** — useful beyond the current task | ||
| 2. **Non-obvious** — not derivable from code, charters, or docs | ||
| 3. **Actionable** — shapes a future decision or approach | ||
| 4. **Traceable** — has a source (session ref, PR, doc) | ||
| 5. **Durable** — half-life ≥ 7 days | ||
|
|
||
| Reject conversation context, one-off task state, things already documented elsewhere, PII/credentials, unreleased commercial strategy, opinions without evidence. | ||
|
|
||
| ## Entry template | ||
|
|
||
| ```yaml | ||
| - id: mem.kit.yyyymmdd.slug | ||
| title: short title | ||
| type: decision | pattern | lesson | constraint | assumption | anti-pattern | ||
| captured: YYYY-MM-DD | ||
| source: claude-code | codex | cursor | copilot | human | ||
| session_ref: optional path/hash | ||
| objectives: [OBJ-08, OBJ-14] | ||
| summary: high-signal statement (not raw transcript) | ||
| applies_when: trigger context cue for future sessions | ||
| evidence: anecdotal | repeated | measured | ||
| promote: local | candidate | ||
| ``` | ||
|
|
||
| Objective IDs: see `coordinator/bus/registries/system-objectives.v1.json` (OBJ-01..OBJ-20). | ||
|
|
||
| --- | ||
|
|
||
| ## Active lessons | ||
|
|
||
| Curated Pareto entries — keep top ~20 by utility. Overflow migrates to **Superseded / retired**. | ||
|
|
||
| _No entries yet — file initialised 2026-04-13._ | ||
|
|
||
| --- | ||
|
|
||
| ## Open questions | ||
|
|
||
| Live unknowns that should inform the next session's direction. | ||
|
|
||
| _No entries yet._ | ||
|
|
||
| --- | ||
|
|
||
| ## Recent decisions | ||
|
|
||
| Decisions with rationale. Material decisions also emit `docs/decisions/DEC-*.md`. | ||
|
|
||
| _No entries yet._ | ||
|
|
||
| --- | ||
|
|
||
| ## Superseded / retired | ||
|
|
||
| Entries moved out of Active — kept for history. | ||
|
|
||
| _No entries yet._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # kit — plans | ||
|
|
||
| Quarterly → 6 × 2-week sprints → daily DoDs. Rolls forward. | ||
| 50/50 self-vs-system split. See [../coo/docs/doctrine/focus-split-50-50.md](../../coo/docs/doctrine/focus-split-50-50.md). | ||
|
|
||
| - `quarterly/Q<X>-<YYYY>.md` — quarterly plan | ||
| - `sprints/Q<X>-<YYYY>-S<N>.md` — sprint plan + retro | ||
| - `daily/YYYY-MM-DD.md` — daily DoD + loop log | ||
| - `masterplan.md` — optional multi-quarter capability upgrade | ||
|
|
||
| Templates: `memory/playbooks/plan-templates/`. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # kit — 2026-04-13 | ||
|
|
||
| Sprint: Q2-2026 S1 · Loop day: 1 | ||
|
|
||
| ## Orient (start of loop) | ||
| - Read: MEMORY.md active lessons, open bus envelopes for me, today's row in sprint plan. | ||
| - Inherited blockers: ... | ||
|
|
||
| ## Predict | ||
| - What I expect to happen in my domain today: ... | ||
| - Confidence: low / med / high | ||
| - (Logged to PHI-P-AGENT as prediction-ref: `2026-04-13-kit-01`) | ||
|
|
||
| ## Definition of done today | ||
| Every DoD item must be measurable by end of day. | ||
|
|
||
| - [ ] DOD-1: ... (bucket: self / system) | ||
| - [ ] DOD-2: ... | ||
| - [ ] DOD-3: ... | ||
|
|
||
| ## Act — bus envelopes I publish today | ||
| - ... | ||
|
|
||
| ## Measure — actual vs. prediction | ||
| _Filled at end of day._ | ||
| - Actual: ... | ||
| - Delta to prediction: ... | ||
| - Which error class: model / data / execution / external | ||
|
|
||
| ## Learn — MEMORY candidates | ||
| _Distilled at end of day. 5-gate filter applies._ | ||
| - ... | ||
|
|
||
| ## Improve — next-best improvement identified | ||
| _What's the compounding move queued for tomorrow or next sprint?_ | ||
| - ... | ||
|
|
||
| ## Human check-in required? | ||
| - [ ] Yes → surface with context block below | ||
| - [x] No | ||
|
|
||
| _Only surface if Class A, Day-1 downtime risk, or uncertainty is high enough that continuing risks wasted effort._ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link points to
../../coo/..., but this repository/workspace does not contain that path, so the primary planning guidance resolves to a dead link for anyone reading the repo in isolation. Since this README is the entry point for plans, the broken reference makes the documented workflow non-actionable; use an in-repo document or a valid public URL instead.Useful? React with 👍 / 👎.