Skip to content

Integrate koni-docs standard#5000

Open
saltict wants to merge 62 commits into
subwallet-devfrom
ai-development
Open

Integrate koni-docs standard#5000
saltict wants to merge 62 commits into
subwallet-devfrom
ai-development

Conversation

@saltict

@saltict saltict commented Jun 2, 2026

Copy link
Copy Markdown

Summary

  • Install koni-docs skill from Koniverse/Koni-Skills into the monorepo (skills-lock.json + .agents/skills/koni-docs/).
  • Add AGENTS.md (canonical AI agent guide — single source of truth for Cursor / Gemini / Codex CLI / Claude Code).
  • Add CLAUDE.md (thin pointer to AGENTS.md + Koni-Docs Integration YAML block + Active Context).
  • Add VERSION file (1.3.79, synced with root package.json).
  • Add .active-context.example.md (per-developer Pattern B template); gitignore .active-context.md.

This is sub-task 1 of 3 on the ai-development umbrella. Out of scope (separate PRs to follow):

  • Sub-task 2: standardize docs/ content (BRIEF / PRD / ARCHITECTURE / CONTEXT / LESSONS / SETUP / sprints / CHANGELOG).
  • Sub-task 3: migrate GitHub issues to koni-docs stories / epics format.

Spec & plan

  • Design spec: docs/superpowers/specs/2026-06-02-koni-docs-integration-design.md
  • Implementation plan: docs/superpowers/plans/2026-06-02-koni-docs-integration-sub-task-1.md

Test plan

  • npx skills experimental_install reproduces .agents/skills/koni-docs/ from skills-lock.json (round-trip MATCH, byte-for-byte identical)
  • .active-context.md is gitignored (git check-ignore confirms rule at .gitignore:49)
  • No placeholder leakage in AGENTS.md / VERSION / .active-context.example.md (grep for <MONOREPO_TABLE_ROWS>, <TODO>, XXX-FIXME, fill in → no matches)
  • yarn install --immutable succeeds (~10 s, lockfile unchanged)
  • yarn koni-dev-build-ts (TypeScript build) succeeds
  • CLAUDE.md ## Koni-Docs Integration block parses as valid YAML with expected fields (plugins: [], docs_path: docs/, active_sprint: <TBD-after-sub-task-2>, version_file: VERSION)
  • AGENTS.md Section 4 commands verified to exist in root package.json (fixed in commit 76ff80b6f0 — original draft had 4 fabricated webpack:* aliases; replaced with real script names build:ui, watch-dev, webapp:dev, webapp:build, plus 2 new web-runner rows)
  • AGENTS.md has 10 H2 sections, 12 monorepo package rows

Known deferred items

  • koni-docs RULE-1 / RULE-2 (VERSION + CHANGELOG in same commit) enforcement is deferred until sub-task 2 creates docs/CHANGELOG.md.
  • packages/* use version 1.3.79-1 (with -1 monorepo internal suffix); VERSION uses 1.3.79 (root). Reconciliation deferred to sub-task 2.
  • active_sprint: in CLAUDE.md is <TBD-after-sub-task-2> — no active sprint until sub-task 2 starts one.
  • Root-level yarn run lint OOMs locally on the implementing machine due to a pre-existing heap limit; this is unrelated to this PR (CI is expected to run lint successfully).

Brainstorming + plan trail

Implementation followed the Superpowers brainstorming → writing-plans → subagent-driven-development flow. Spec + plan files are committed in docs/superpowers/. Every task went through two-stage review (spec compliance → code quality) before its commit was accepted. The only review iteration was Task 6 → fix commit 76ff80b6f0 (Section 4 fabricated commands).

🤖 Generated with Claude Code

@saltict

saltict commented Jun 2, 2026

Copy link
Copy Markdown
Author

🚀 Deployed on https://pr-5000--sw-web-runner.netlify.app

@saltict saltict temporarily deployed to pull request June 2, 2026 11:11 Inactive
Adapted from multica-ai/andrej-karpathy-skills CLAUDE.md. Adds 4 rules
(Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven
Execution) at the top so AI agents see them before project-specific
context. Existing sections renumbered 1-10 -> 2-11; no content changes.
@saltict saltict temporarily deployed to pull request June 3, 2026 03:27 Inactive
@saltict saltict changed the title chore: integrate koni-docs skill + AGENTS/CLAUDE.md (sub-task 1) Integrate koni-docs standard Jun 3, 2026
@saltict saltict temporarily deployed to pull request June 3, 2026 07:43 Inactive
tunghp2002 and others added 10 commits June 3, 2026 17:35
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
WAVE 4/5 subgraphs reused ids W4/W5 as node ids, breaking the
Mermaid render. Rename the nodes to W4N/W5N and update the wave
classDef list.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 3 header read "Bitcoin, Cardano, Multi-chain Ecosystem" but its
entries (D26-D30) are all swap/XCM scope decisions: cancel dynamic swap
pairs, cancel 1inch, stay on ParaSpell, migrate ParaSpell v1, remove the
Crowdloans tab. Retitle to "Swap/XCM Consolidation & Feature Pruning" so
the phase name matches the decisions it groups.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 2 header said "Earning, Swap, and Multi-chain Expansion" but it
has no swap decision (those are Phase 3) and omitted D21 Texterify (i18n)
and D22 Meld (fiat on-ramp). Retitle to "Earning Rebrand, XCM Bridge,
i18n & Fiat Tooling" so the name covers D20-D25.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Intake-B only flagged explicitly-worded decisions, so major integrations
(BTC, TON, Cardano, Bittensor, proxy, multisig) had 0 CONTEXT entries
despite being large feature areas — while trivial items like the
Crowdloans removal were captured. Per the koni-docs definition (an
architecture or scope decision / "why we picked X over Y"), mined the
real architecture/scope decisions for those areas from issues/PRs/
comments and merged them with the existing 30.

Result: 30 -> 59 decisions, renumbered D1-D59 chronologically, re-bucketed
into 5 phases with content-accurate titles. New-decision versions resolved
from the CHANGELOG issue->version map. All bodies preserved verbatim.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The AD table only had infra decisions (storage, ChainService, MV3,
keyring, monorepo, XCM toggle, fork). The major chain integrations
(Bitcoin, TON, Cardano, Bittensor) and account models (unified, proxy,
multisig) had no AD entry despite being core architecture — the same
gap just fixed in CONTEXT. Add AD-11..AD-19, each cross-referencing the
CONTEXT decision(s) and source issues.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@saltict saltict temporarily deployed to pull request June 11, 2026 08:18 Inactive
tunghp2002 and others added 2 commits June 11, 2026 18:26
- Move chain-management above security; merge chain-abstraction into it
- Split "DeFi & Governance" group into DeFi + Governance
- New Utilities epic = onboarding + campaign + notification (FR-149)
- Renumber every EPIC (1-19) and FR (1-161) by new document order
- Re-sync 7 FR cross-references in CONTEXT.md
- Record discussion notes (docs/notes/2026-06-11.md)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ARCHITECTURE intro claimed "four ecosystems / 100+ networks", contradicting
its own AD-11/AD-14 (Cardano) and the rest of the corpus (200+). AGENTS
project purpose was also missing Cardano.

- ARCHITECTURE.md: four -> five ecosystems (+ Cardano); 100+ -> 200+ networks
- AGENTS.md: add Cardano to the supported-ecosystems list

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@saltict saltict temporarily deployed to pull request June 11, 2026 11:39 Inactive
Pilot decomposition validating the koni-docs story/epic format across 3
groups: EPIC-3 (account), EPIC-11 (swap), EPIC-16 (hardware-wallet).

- epics/: FR Coverage tables fully numbered (US ids locked in FR order, no
  future renumber); Out-of-scope, cross-cutting invariants, stories tables.
- stories/: 2 example story files per epic on the canonical template
  (Given/When/Then AC, TASK→AC refs, verification, changelog). Points
  grounded in the §3a-bis calibration scale, marked retroactive.
- STATUS.md: auto-generated by `koni-docs status` (6 stories, backlog).
- notes/2026-06-11.md: clarify B6 as pilot/example only, not a rule.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@saltict saltict temporarily deployed to pull request June 12, 2026 03:53 Inactive
tunghp2002 and others added 7 commits June 16, 2026 15:06
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PRD: thin Epics & User Stories index (FR-centric), ✅/🚧/📋 status key, and
status corrections (FR-50/93/124/144/112 → planned, FR-99 TON, FR-117 LST text).
ARCHITECTURE: fix NftService class name (was NFTService).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds 17 epics + completes the 3 pilots. Sections tiered by story count per the
canonical epic template (Small/Medium/Large): Feature pillars + AD Coverage on
Medium+, and §9 Object map / §13 Cross-story testing / §14 Performance budgets
on Medium+ where applicable. Happy-path diagrams are shipped-only (no planned
steps); grounded in real services (ChainService, EarningService, SwapService,
KeyringService, RequestService, NftService, …).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
One story per FR (prd_ref → FR) plus per-epic hardening clusters (no FR).
All status: backlog (Stream-B conversion phase); real shipped state lives in
the PRD FR markers. Retroactive stories backfill commit/version_shipped in a
later reconciliation pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Auto-generated via koni-docs status.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…giene to EPIC-1

AD-20 (four-state MV3 lifecycle) is owned by EPIC-1/US-1.1; EPIC-20 now marks it
*referenced* (it refactors the lifecycle for perf, it doesn't own the contract),
resolving the double-ownership with EPIC-1.

US-20.7 (dependency auditability / supply-chain hygiene, NFR-19) was a junk-drawer
fit in a performance epic — it rode EPIC-1's AD-05/AD-06 and shared no surface with
the perf pillars. Folded into EPIC-1/US-1.5 as a 7th build/CI hardening theme and
removed from EPIC-20 (7 -> 6 stories); NFR-19 PRD pointer now -> US-1.5.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
EPIC-20 dropped to 6 stories after relocating supply-chain hygiene to EPIC-1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@saltict saltict temporarily deployed to pull request June 16, 2026 09:10 Inactive
saltict and others added 7 commits July 7, 2026 10:03
Review round after sub-task 3: assignee identity-resolution + history
backfill, koni-docs conformance gaps (5-layer/sprint/version drift),
web-surface base epic, public/private multi-repo governance, recurring-task
skills, and a docs/knowledge research layer proposal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add §L (master→main, subwallet-dev→dev cutover: CI, artifact names, webapp/
web-runner build re-org, propagate to Mobile + Chainlist) and reorder §K.
Concrete task breakdown deferred until the review meeting finalizes scope.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…map plan

- Strip all references to Branch rename and ERP-critical path
- Collapse from 6 waves to 5, removing the rename wave
- Update dependency diagram, gantt chart, and wave summary accordingly
- Keep existing branches unchanged for stability
…ries

- Create EPIC-21 (Docs & Conformance Infrastructure) with 3 stories:
  - US-21.1: Contributor identity map
  - US-21.2: History backfill
  - US-21.3: Conformance close-out
- Add gap stories from subwallet-dev merge:
  - US-8.13: Payload decode error handling (#4989)
  - US-4.24: Remove Polygon zkEVM (#5002)
  - US-12.17: Earning term & condition display (#5007)
- Update EPIC-4, EPIC-8, EPIC-12 story tables and PRD
- Regenerate STATUS.md (175 stories)
…-21.2

- Create sprint-2026-W28.md with EPIC-21 scope (3 stories)
- Assign US-21.1 → assignee: tunghp2002, status: in-progress; US-21.2/21.3 → assignee: tunghp2002
- Update US-21.2 Background/ACs/Dev notes for sprint archive and monthly naming
- Remove archive/ references and sprint-YYYY-MNN convention per user feedback
- Regenerate STATUS.md (175 stories)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants