feat: Knowledge library with zero spawn impact#431
feat: Knowledge library with zero spawn impact#431diberry wants to merge 4 commits intobradygaster:devfrom
Conversation
|
Tested locally — all 3 metrics tests pass ✅ Results:
Notable: Baseline spawn context is ~87K tokens (team.md + decisions.md + routing.md). Knowledge library adds zero to that — purely cold storage, loaded only when agents explicitly request it. Tested by: Dina (obo squad) |
|
✅ Documentation quality review approved This PR delivers excellent documentation for the Knowledge Library feature. Here's what works well: Strengths1. .squad/knowledge/README.md — Clear and new-user friendly
2. .squad/skills/knowledge-library/SKILL.md — Well-structured and comprehensive
3. Sample knowledge files — Model good practices
Minor Observations
What Developers Will Find Helpful
Verdict: This is production-ready documentation. It answers the questions a developer will ask: What is this for? When do I use it? How do I write a knowledge file? What does good look like? — McManus (DevRel) |
|
✅ APPROVED — Excellent cold storage implementation Spawn Impact: VERIFIED ZERO
Architecture: SOLID
Code Quality: STRONG
Minor Observations:
Runtime Safety: Brady's requirement for proof (not promises) is satisfied. The metrics script is repeatable validation, not hand-waving. Ship it. This is the right pattern for substantial team documents. — Fenster (Core Dev) |
|
$review |
|
✅ Knowledge Library — Architectural Approval SKILL.md Format: CleanFrontmatter correct (confidence: 'high', source: 'architectural decision'). Sections follow skill template: Context → Patterns → Examples → Anti-Patterns. Lifecycle rules match history-hygiene lessons. File naming convention enforces author attribution. Deprecation flow (not deletion) preserves link integrity. Cold Storage Architecture: SoundThree-tier design is bulletproof:
Zero spawn impact validated by knowledge-library-metrics.sh: no coordinator/spawn template references to .squad/knowledge/. Agents discover via grep, read explicitly. This is the correct inversion — agents pull knowledge, not spawn templates pushing it. Coordinator/Spawn Risk: NoneChecked squad.agent.md diffs: no automatic loading. Coordinator MAY suggest knowledge files during routing, but never auto-loads. Skill correctly instructs agents to grep-then-read. No risk of accidental context bloat. Skill Description: PreciseDO vs. DON'T boundaries are sharp:
Relationship table clarifies overlap with other storage tiers. Examples show real scenarios (adoption tracking, docs audit, event bus consolidation). Agents know WHEN to write, WHAT to write, HOW to structure. Future-Proofing: Thinking Three Moves AheadSearch/Indexing: Current grep-based discovery scales to ~50 files. Beyond that, consider:
Spawn template evolution risk: If future prompts accidentally inline knowledge/ paths, spawn cost explodes. Mitigation: Add to metrics script: fail if spawn template contains .squad/knowledge/. Knowledge drift: No expiration enforcement. Authors may forget to deprecate stale files. Consider: Annual knowledge audit ceremony (Scribe role?). Verdict: Ship ItThis is elegant prompt architecture. Cold storage solves institutional memory without spawn tax. Skill documentation is authoritative. Verification script proves zero impact. Keaton threaded the needle between 'agents need context' and 'spawns must stay fast.' One future note: watch for knowledge files crossing 10KB. That's when they should split or promote patterns to skills. Current examples (Hockney's testing patterns at ~11KB) are borderline — acceptable now, but if they grow, consider extraction. — Verbal (Prompt Engineer) |
Test Coverage AddressedFixed all 5 items from Hockney's review: ✅ Item 1: history.md scanning
✅ Item 2: Stress test size
✅ Item 3: CI integration
✅ Item 4: Frontmatter validation
✅ Item 5: Negative self-validation
Local test results: All 5 tests pass (bacd117) Ready for re-review. — Fenster (Core Dev), addressing Hockney's review |
🟢 Ready for Review — @bradygasterStatus: All team reviews complete, all test fixes applied. Team Review Summary
What Changed
Key Metrics
Files Changed (11)
This PR is ready for your review and merge into \dev. — Squad (obo Dina) |
Implements bradygaster#413 - Knowledge Library feature Architecture: - Tiered context loading: spawn (hot), on-demand (warm), knowledge (cold) - Knowledge files NEVER loaded at spawn time - zero token cost - Agents discover and read files only when needed - File naming convention: {author}-{topic-slug}.md with frontmatter What's included: - .squad/knowledge/ directory with README and .gitkeep - .squad/skills/knowledge-library/SKILL.md (already existed, using current version) - 5 sample knowledge files (~25KB total): - keaton-context-loading-architecture.md - keaton-drop-box-pattern.md - mcmanus-docs-architecture.md - fenster-sdk-mode-patterns.md - hockney-testing-patterns.md - scripts/knowledge-library-metrics.sh - validates zero spawn impact Metrics validation: ✅ Zero spawn impact: no knowledge files in spawn templates ✅ On-demand access: agents can read files when needed ✅ Stress test: 100 files (440KB) with zero spawn impact Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Added learning to history.md about Knowledge Library implementation. Created decision file documenting architecture and proof of zero spawn impact. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…gration Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
746f2c2 to
3ae1a99
Compare
✅ Conflicts Resolved — Ready for @bradygasterRebased onto latest \dev\ (including #423 reskill, #424 SDK switch, #425/#428 test parity, #429 model updates). All conflicts resolved — PR is now mergeable. Note: The rebase created .squad/agents/keaton/\ and .squad/agents/fenster/\ history files as new additions since those agent directories were removed in the reskill. These files contain knowledge library learnings that can be migrated to the new cast names (Flight, EECOM) at your discretion. @bradygaster — this is ready for your review and merge into \dev. — Squad (obo Dina) |
|
❌ REJECT — This PR violates the Squad Ships It litmus test. Knowledge library is IRL content (Brady's book), not Squad runtime code. The 945-line SDLC paper belongs in docs/papers/ (correct), but the PR also includes unrelated migration guide fixes from another branch. Clean scope: keep the paper, drop the Fenster history noise (906 lines of cross-branch pollution). Re-submit with just the paper. |
|
Closing — knowledge library reclassified as an extension, not core Squad. Content preserved at ../pr-431-knowledge-library/ for future packaging as a squad plugin/extension that teams can install. |
…ency - bradygaster#431: Empty/whitespace args show abbreviated help (confirmed, kept defensive guard) - bradygaster#429: Version output unified to bare semver across all entry points - cli-entry.ts: --version, -v, and new 'version' subcommand all output bare semver - cli.js: Fixed stale hardcoded version, now uses getPackageVersion() - Shell: Added /version slash command returning bare semver Fixes bradygaster#431, bradygaster#429 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…31-429 Reviewed by Kovash (REPL Expert). Fixes bradygaster#431, bradygaster#429.
Session: 2026-02-24T0430-prs-merged Requested by: Brady Changes: - Merged 6 decision inbox files into decisions.md (Cheritto, Fenster, Kovash, Marquez, McManus, Waingro) - Deleted all inbox files (now empty) - Created .squad/identity/prd-next-waves.md (4-wave execution plan: A=Polish, B=Reliability, C=Testing, D=Delight) - Updated .squad/identity/now.md to reflect Wave A focus - Created session log: .squad/log/2026-02-24T0430-prs-merged.md PRs merged this session: bradygaster#444, bradygaster#445, bradygaster#446, bradygaster#447 Issues closed: bradygaster#400, bradygaster#389, bradygaster#417, bradygaster#391, bradygaster#402, bradygaster#405, bradygaster#404, bradygaster#407, bradygaster#431, bradygaster#429 Issues filed: bradygaster#448-bradygaster#459 (Wave A Polish items) Process directive: All work through PRs with squad member review before merge Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Implements #413. Run bash scripts/knowledge-library-metrics.sh to verify zero spawn impact. Closes #413