mdcontext 0.0.1 → 0.2.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/.changeset/README.md +28 -0
- package/.changeset/config.json +11 -0
- package/.claude/settings.local.json +25 -0
- package/.github/workflows/ci.yml +83 -0
- package/.github/workflows/claude-code-review.yml +44 -0
- package/.github/workflows/claude.yml +85 -0
- package/.github/workflows/release.yml +113 -0
- package/.tldrignore +112 -0
- package/BACKLOG.md +338 -0
- package/CONTRIBUTING.md +186 -0
- package/NOTES/NOTES +44 -0
- package/README.md +434 -11
- package/biome.json +36 -0
- package/cspell.config.yaml +14 -0
- package/dist/chunk-23UPXDNL.js +3044 -0
- package/dist/chunk-2W7MO2DL.js +1366 -0
- package/dist/chunk-3NUAZGMA.js +1689 -0
- package/dist/chunk-7TOWB2XB.js +366 -0
- package/dist/chunk-7XOTOADQ.js +3065 -0
- package/dist/chunk-AH2PDM2K.js +3042 -0
- package/dist/chunk-BNXWSZ63.js +3742 -0
- package/dist/chunk-BTL5DJVU.js +3222 -0
- package/dist/chunk-HDHYG7E4.js +104 -0
- package/dist/chunk-HLR4KZBP.js +3234 -0
- package/dist/chunk-IP3FRFEB.js +1045 -0
- package/dist/chunk-KHU56VDO.js +3042 -0
- package/dist/chunk-KRYIFLQR.js +88 -0
- package/dist/chunk-LBSDNLEM.js +287 -0
- package/dist/chunk-MNTQ7HCP.js +2643 -0
- package/dist/chunk-MUJELQQ6.js +1387 -0
- package/dist/chunk-MXJGMSLV.js +2199 -0
- package/dist/chunk-N6QJGC3Z.js +2636 -0
- package/dist/chunk-OBELGBPM.js +1713 -0
- package/dist/chunk-OT7R5XTA.js +3192 -0
- package/dist/chunk-P7X4RA2T.js +106 -0
- package/dist/chunk-PIDUQNC2.js +3185 -0
- package/dist/chunk-POGCDIH4.js +3187 -0
- package/dist/chunk-PSIEOQGZ.js +3043 -0
- package/dist/chunk-PVRT3IHA.js +3238 -0
- package/dist/chunk-QNN4TT23.js +1430 -0
- package/dist/chunk-RE3R45RJ.js +3042 -0
- package/dist/chunk-S7E6TFX6.js +803 -0
- package/dist/chunk-SG6GLU4U.js +1378 -0
- package/dist/chunk-SJCDV2ST.js +274 -0
- package/dist/chunk-SYE5XLF3.js +104 -0
- package/dist/chunk-T5VLYBZD.js +103 -0
- package/dist/chunk-TOQB7VWU.js +3238 -0
- package/dist/chunk-VFNMZ4ZQ.js +3228 -0
- package/dist/chunk-VVTGZNBT.js +1629 -0
- package/dist/chunk-W7Q4RFEV.js +104 -0
- package/dist/chunk-XTYYVRLO.js +3190 -0
- package/dist/chunk-Y6MDYVJD.js +3063 -0
- package/dist/cli/main.d.ts +1 -0
- package/dist/cli/main.js +5458 -0
- package/dist/index.d.ts +653 -0
- package/dist/index.js +79 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +472 -0
- package/dist/schema-BAWSG7KY.js +22 -0
- package/dist/schema-E3QUPL26.js +20 -0
- package/dist/schema-EHL7WUT6.js +20 -0
- package/docs/019-USAGE.md +625 -0
- package/docs/020-current-implementation.md +364 -0
- package/docs/021-DOGFOODING-FINDINGS.md +175 -0
- package/docs/BACKLOG.md +80 -0
- package/docs/CONFIG.md +1123 -0
- package/docs/DESIGN.md +439 -0
- package/docs/ERRORS.md +383 -0
- package/docs/PROJECT.md +88 -0
- package/docs/ROADMAP.md +407 -0
- package/docs/summarization.md +320 -0
- package/docs/test-links.md +9 -0
- package/justfile +40 -0
- package/package.json +74 -9
- package/pnpm-workspace.yaml +5 -0
- package/research/INDEX.md +315 -0
- package/research/code-review/README.md +90 -0
- package/research/code-review/cli-error-handling-review.md +979 -0
- package/research/code-review/code-review-validation-report.md +464 -0
- package/research/code-review/main-ts-review.md +1128 -0
- package/research/config-analysis/01-current-implementation.md +470 -0
- package/research/config-analysis/02-strategy-recommendation.md +428 -0
- package/research/config-analysis/03-task-candidates.md +715 -0
- package/research/config-analysis/033-research-configuration-management.md +828 -0
- package/research/config-analysis/034-research-effect-cli-config.md +1504 -0
- package/research/config-analysis/04-consolidated-task-candidates.md +277 -0
- package/research/config-docs/SUMMARY.md +357 -0
- package/research/config-docs/TEST-RESULTS.md +776 -0
- package/research/config-docs/TODO.md +542 -0
- package/research/config-docs/analysis.md +744 -0
- package/research/config-docs/fix-validation.md +502 -0
- package/research/config-docs/help-audit.md +264 -0
- package/research/config-docs/help-system-analysis.md +890 -0
- package/research/dogfood/consolidated-tool-evaluation.md +373 -0
- package/research/dogfood/strategy-a/a-synthesis.md +184 -0
- package/research/dogfood/strategy-a/a1-docs.md +226 -0
- package/research/dogfood/strategy-a/a2-amorphic.md +156 -0
- package/research/dogfood/strategy-a/a3-llm.md +164 -0
- package/research/dogfood/strategy-b/b-synthesis.md +228 -0
- package/research/dogfood/strategy-b/b1-architecture.md +207 -0
- package/research/dogfood/strategy-b/b2-gaps.md +258 -0
- package/research/dogfood/strategy-b/b3-workflows.md +250 -0
- package/research/dogfood/strategy-c/c-synthesis.md +451 -0
- package/research/dogfood/strategy-c/c1-explorer.md +192 -0
- package/research/dogfood/strategy-c/c2-diver-memory.md +145 -0
- package/research/dogfood/strategy-c/c3-diver-control.md +148 -0
- package/research/dogfood/strategy-c/c4-diver-failure.md +151 -0
- package/research/dogfood/strategy-c/c5-diver-execution.md +221 -0
- package/research/dogfood/strategy-c/c6-diver-org.md +221 -0
- package/research/effect-cli-error-handling.md +845 -0
- package/research/effect-errors-as-values.md +943 -0
- package/research/errors-task-analysis/00-consolidated-tasks.md +207 -0
- package/research/errors-task-analysis/cli-commands-analysis.md +909 -0
- package/research/errors-task-analysis/embeddings-analysis.md +709 -0
- package/research/errors-task-analysis/index-search-analysis.md +812 -0
- package/research/frontmatter/COMMENTS-ARE-SKIPPED.md +149 -0
- package/research/frontmatter/LLM-CODE-NAVIGATION.md +276 -0
- package/research/issue-review.md +603 -0
- package/research/llm-summarization/agent-cli-tools-2026.md +1082 -0
- package/research/llm-summarization/alternative-providers-2026.md +1428 -0
- package/research/llm-summarization/anthropic-2026.md +367 -0
- package/research/llm-summarization/claude-cli-integration.md +1706 -0
- package/research/llm-summarization/cli-integration-patterns.md +3155 -0
- package/research/llm-summarization/openai-2026.md +473 -0
- package/research/llm-summarization/openai-compatible-providers-2026.md +1022 -0
- package/research/llm-summarization/opencode-cli-integration.md +1552 -0
- package/research/llm-summarization/prompt-engineering-2026.md +1426 -0
- package/research/llm-summarization/prototype-results.md +56 -0
- package/research/llm-summarization/provider-switching-patterns-2026.md +2153 -0
- package/research/llm-summarization/typescript-llm-libraries-2026.md +2436 -0
- package/research/mdcontext-error-analysis.md +521 -0
- package/research/mdcontext-pudding/00-EXECUTIVE-SUMMARY.md +282 -0
- package/research/mdcontext-pudding/01-index-embed.md +956 -0
- package/research/mdcontext-pudding/02-search-COMMANDS.md +142 -0
- package/research/mdcontext-pudding/02-search-SUMMARY.md +146 -0
- package/research/mdcontext-pudding/02-search.md +970 -0
- package/research/mdcontext-pudding/03-context.md +779 -0
- package/research/mdcontext-pudding/04-navigation-and-analytics.md +803 -0
- package/research/mdcontext-pudding/04-tree.md +704 -0
- package/research/mdcontext-pudding/05-config.md +1038 -0
- package/research/mdcontext-pudding/06-links-summary.txt +87 -0
- package/research/mdcontext-pudding/06-links.md +679 -0
- package/research/mdcontext-pudding/07-stats.md +693 -0
- package/research/mdcontext-pudding/BUG-FIX-PLAN.md +388 -0
- package/research/mdcontext-pudding/P0-BUG-VALIDATION.md +167 -0
- package/research/mdcontext-pudding/README.md +168 -0
- package/research/mdcontext-pudding/TESTING-SUMMARY.md +128 -0
- package/research/npm_publish/011-npm-workflow-research-agent2.md +792 -0
- package/research/npm_publish/012-npm-workflow-research-agent1.md +530 -0
- package/research/npm_publish/013-npm-workflow-research-agent3.md +722 -0
- package/research/npm_publish/014-npm-workflow-synthesis.md +556 -0
- package/research/npm_publish/031-npm-workflow-task-analysis.md +134 -0
- package/research/research-quality-review.md +834 -0
- package/research/semantic-search/002-research-embedding-models.md +490 -0
- package/research/semantic-search/003-research-rag-alternatives.md +523 -0
- package/research/semantic-search/004-research-vector-search.md +841 -0
- package/research/semantic-search/032-research-semantic-search.md +427 -0
- package/research/semantic-search/embedding-text-analysis.md +156 -0
- package/research/semantic-search/multi-word-failure-reproduction.md +171 -0
- package/research/semantic-search/query-processing-analysis.md +207 -0
- package/research/semantic-search/root-cause-and-solution.md +114 -0
- package/research/semantic-search/threshold-validation-report.md +69 -0
- package/research/semantic-search/vector-search-analysis.md +63 -0
- package/research/task-management-2026/00-synthesis-recommendations.md +295 -0
- package/research/task-management-2026/01-ai-workflow-tools.md +416 -0
- package/research/task-management-2026/02-agent-framework-patterns.md +476 -0
- package/research/task-management-2026/03-lightweight-file-based.md +567 -0
- package/research/task-management-2026/04-established-tools-ai-features.md +541 -0
- package/research/task-management-2026/linear/01-core-features-workflow.md +771 -0
- package/research/task-management-2026/linear/02-api-integrations.md +930 -0
- package/research/task-management-2026/linear/03-ai-features.md +368 -0
- package/research/task-management-2026/linear/04-pricing-setup.md +205 -0
- package/research/task-management-2026/linear/05-usage-patterns-best-practices.md +605 -0
- package/research/test-path-issues.md +276 -0
- package/review/ALP-76/1-error-type-design.md +962 -0
- package/review/ALP-76/2-error-handling-patterns.md +906 -0
- package/review/ALP-76/3-error-presentation.md +624 -0
- package/review/ALP-76/4-test-coverage.md +625 -0
- package/review/ALP-76/5-migration-completeness.md +440 -0
- package/review/ALP-76/6-effect-best-practices.md +755 -0
- package/scripts/apply-branch-protection.sh +47 -0
- package/scripts/branch-protection-templates.json +79 -0
- package/scripts/prototype-summarization.ts +346 -0
- package/scripts/rebuild-hnswlib.js +58 -0
- package/scripts/setup-branch-protection.sh +64 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/active-provider.json +7 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/bm25.json +541 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/bm25.meta.json +5 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/config.json +8 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/embeddings/openai_text-embedding-3-small_512/vectors.bin +0 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/embeddings/openai_text-embedding-3-small_512/vectors.meta.bin +0 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/indexes/documents.json +60 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/indexes/links.json +13 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/.mdcontext/indexes/sections.json +1197 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/configuration-management.md +99 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/distributed-systems.md +92 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/error-handling.md +78 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/failure-automation.md +55 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/job-context.md +69 -0
- package/src/__tests__/fixtures/semantic-search/multi-word-corpus/process-orchestration.md +99 -0
- package/src/cli/argv-preprocessor.test.ts +210 -0
- package/src/cli/argv-preprocessor.ts +202 -0
- package/src/cli/cli.test.ts +627 -0
- package/src/cli/commands/backlinks.ts +54 -0
- package/src/cli/commands/config-cmd.ts +642 -0
- package/src/cli/commands/context.ts +285 -0
- package/src/cli/commands/duplicates.ts +122 -0
- package/src/cli/commands/embeddings.ts +529 -0
- package/src/cli/commands/index-cmd.ts +480 -0
- package/src/cli/commands/index.ts +16 -0
- package/src/cli/commands/links.ts +52 -0
- package/src/cli/commands/search.ts +1281 -0
- package/src/cli/commands/stats.ts +149 -0
- package/src/cli/commands/tree.ts +128 -0
- package/src/cli/config-layer.ts +176 -0
- package/src/cli/error-handler.test.ts +235 -0
- package/src/cli/error-handler.ts +655 -0
- package/src/cli/flag-schemas.ts +341 -0
- package/src/cli/help.ts +588 -0
- package/src/cli/index.ts +9 -0
- package/src/cli/main.ts +435 -0
- package/src/cli/options.ts +41 -0
- package/src/cli/shared-error-handling.ts +199 -0
- package/src/cli/typo-suggester.test.ts +105 -0
- package/src/cli/typo-suggester.ts +130 -0
- package/src/cli/utils.ts +259 -0
- package/src/config/file-provider.test.ts +320 -0
- package/src/config/file-provider.ts +273 -0
- package/src/config/index.ts +72 -0
- package/src/config/integration.test.ts +667 -0
- package/src/config/precedence.test.ts +277 -0
- package/src/config/precedence.ts +451 -0
- package/src/config/schema.test.ts +414 -0
- package/src/config/schema.ts +603 -0
- package/src/config/service.test.ts +320 -0
- package/src/config/service.ts +243 -0
- package/src/config/testing.test.ts +264 -0
- package/src/config/testing.ts +110 -0
- package/src/core/index.ts +1 -0
- package/src/core/types.ts +113 -0
- package/src/duplicates/detector.test.ts +183 -0
- package/src/duplicates/detector.ts +414 -0
- package/src/duplicates/index.ts +18 -0
- package/src/embeddings/embedding-namespace.test.ts +300 -0
- package/src/embeddings/embedding-namespace.ts +947 -0
- package/src/embeddings/heading-boost.test.ts +222 -0
- package/src/embeddings/hnsw-build-options.test.ts +198 -0
- package/src/embeddings/hyde.test.ts +272 -0
- package/src/embeddings/hyde.ts +264 -0
- package/src/embeddings/index.ts +10 -0
- package/src/embeddings/openai-provider.ts +414 -0
- package/src/embeddings/pricing.json +22 -0
- package/src/embeddings/provider-constants.ts +204 -0
- package/src/embeddings/provider-errors.test.ts +967 -0
- package/src/embeddings/provider-errors.ts +565 -0
- package/src/embeddings/provider-factory.test.ts +240 -0
- package/src/embeddings/provider-factory.ts +225 -0
- package/src/embeddings/provider-integration.test.ts +788 -0
- package/src/embeddings/query-preprocessing.test.ts +187 -0
- package/src/embeddings/semantic-search-threshold.test.ts +508 -0
- package/src/embeddings/semantic-search.ts +1270 -0
- package/src/embeddings/types.ts +359 -0
- package/src/embeddings/vector-store.ts +708 -0
- package/src/embeddings/voyage-provider.ts +313 -0
- package/src/errors/errors.test.ts +845 -0
- package/src/errors/index.ts +533 -0
- package/src/index/ignore-patterns.test.ts +354 -0
- package/src/index/ignore-patterns.ts +305 -0
- package/src/index/index.ts +4 -0
- package/src/index/indexer.ts +684 -0
- package/src/index/storage.ts +260 -0
- package/src/index/types.ts +147 -0
- package/src/index/watcher.ts +189 -0
- package/src/index.ts +30 -0
- package/src/integration/search-keyword.test.ts +678 -0
- package/src/mcp/server.ts +612 -0
- package/src/parser/index.ts +1 -0
- package/src/parser/parser.test.ts +291 -0
- package/src/parser/parser.ts +394 -0
- package/src/parser/section-filter.test.ts +277 -0
- package/src/parser/section-filter.ts +392 -0
- package/src/search/__tests__/hybrid-search.test.ts +650 -0
- package/src/search/bm25-store.ts +366 -0
- package/src/search/cross-encoder.test.ts +253 -0
- package/src/search/cross-encoder.ts +406 -0
- package/src/search/fuzzy-search.test.ts +419 -0
- package/src/search/fuzzy-search.ts +273 -0
- package/src/search/hybrid-search.ts +448 -0
- package/src/search/path-matcher.test.ts +276 -0
- package/src/search/path-matcher.ts +33 -0
- package/src/search/query-parser.test.ts +260 -0
- package/src/search/query-parser.ts +319 -0
- package/src/search/searcher.test.ts +280 -0
- package/src/search/searcher.ts +724 -0
- package/src/search/wink-bm25.d.ts +30 -0
- package/src/summarization/cli-providers/claude.ts +202 -0
- package/src/summarization/cli-providers/detection.test.ts +273 -0
- package/src/summarization/cli-providers/detection.ts +118 -0
- package/src/summarization/cli-providers/index.ts +8 -0
- package/src/summarization/cost.test.ts +139 -0
- package/src/summarization/cost.ts +102 -0
- package/src/summarization/error-handler.test.ts +127 -0
- package/src/summarization/error-handler.ts +111 -0
- package/src/summarization/index.ts +102 -0
- package/src/summarization/pipeline.test.ts +498 -0
- package/src/summarization/pipeline.ts +231 -0
- package/src/summarization/prompts.test.ts +269 -0
- package/src/summarization/prompts.ts +133 -0
- package/src/summarization/provider-factory.test.ts +396 -0
- package/src/summarization/provider-factory.ts +178 -0
- package/src/summarization/types.ts +184 -0
- package/src/summarize/budget-bugs.test.ts +620 -0
- package/src/summarize/formatters.ts +419 -0
- package/src/summarize/index.ts +20 -0
- package/src/summarize/summarizer.test.ts +275 -0
- package/src/summarize/summarizer.ts +597 -0
- package/src/summarize/verify-bugs.test.ts +238 -0
- package/src/types/huggingface-transformers.d.ts +66 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/tokens.test.ts +142 -0
- package/src/utils/tokens.ts +186 -0
- package/tests/fixtures/cli/.mdcontext/active-provider.json +7 -0
- package/tests/fixtures/cli/.mdcontext/config.json +8 -0
- package/tests/fixtures/cli/.mdcontext/embeddings/openai_text-embedding-3-small_512/vectors.bin +0 -0
- package/tests/fixtures/cli/.mdcontext/embeddings/openai_text-embedding-3-small_512/vectors.meta.bin +0 -0
- package/tests/fixtures/cli/.mdcontext/indexes/documents.json +33 -0
- package/tests/fixtures/cli/.mdcontext/indexes/links.json +12 -0
- package/tests/fixtures/cli/.mdcontext/indexes/sections.json +247 -0
- package/tests/fixtures/cli/README.md +9 -0
- package/tests/fixtures/cli/api-reference.md +11 -0
- package/tests/fixtures/cli/getting-started.md +11 -0
- package/tests/integration/embed-index.test.ts +712 -0
- package/tests/integration/search-context.test.ts +469 -0
- package/tests/integration/search-semantic.test.ts +522 -0
- package/tsconfig.json +26 -0
- package/vitest.config.ts +16 -0
- package/vitest.setup.ts +12 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
# Strategy C Synthesis: Two-Phase Explore-Then-Dive
|
|
2
|
+
|
|
3
|
+
## 1. Executive Summary
|
|
4
|
+
|
|
5
|
+
Strategy C employed a **Two-Phase Explore-Then-Dive** methodology to comprehensively analyze the HumanWork documentation set (23 documents, 179K tokens, 924 sections).
|
|
6
|
+
|
|
7
|
+
**Phase 1** (C1 Explorer) mapped the documentation landscape, identified the structural organization across three folders (docs/, docs.amorphic/, docs.llm/), and prioritized five themes for deep investigation.
|
|
8
|
+
|
|
9
|
+
**Phase 2** deployed five specialized divers (C2-C6) who each conducted deep explorations into their assigned themes using the mdcontext tool.
|
|
10
|
+
|
|
11
|
+
### Key Framework Discovery
|
|
12
|
+
|
|
13
|
+
HumanWork is a framework for human-AI collaboration that explicitly rejects the "fully autonomous agent" paradigm. Its core innovations are:
|
|
14
|
+
|
|
15
|
+
1. **Three-Layer Memory Architecture** - Event Memory (immutable facts), Status Memory (derived state), Semantic Memory (knowledge graph) enabling time travel, branching, and perfect resumability
|
|
16
|
+
2. **Control Plane with Preemptive Authority** - Humans retain authority over all execution at all times
|
|
17
|
+
3. **Execution Model** - Jobs (intent), Execution Contexts (disposable actors), Workflows (guidance not execution)
|
|
18
|
+
4. **Org-Workspace Hierarchy** - Clear containment, cost attribution, and governance overlay architecture
|
|
19
|
+
|
|
20
|
+
### Collective Verdict
|
|
21
|
+
|
|
22
|
+
The HumanWork specification is **comprehensive, internally consistent, and architecturally sound**. The documentation clearly articulates both the philosophical "why" (failure analysis) and technical "what" (primitives, guarantees, anti-patterns). All six agents achieved high confidence in their findings.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Phase 1 Summary: Explorer Mapping
|
|
27
|
+
|
|
28
|
+
**Agent**: C1 Explorer
|
|
29
|
+
**Commands Run**: 37
|
|
30
|
+
**Coverage**: All 23 documents mapped
|
|
31
|
+
|
|
32
|
+
### Documentation Structure Identified
|
|
33
|
+
|
|
34
|
+
| Folder | Files | Tokens | Character |
|
|
35
|
+
| -------------- | ----- | ------ | ------------------------------------------------------- |
|
|
36
|
+
| docs/ | 10 | ~40K | Formal specification (primitives, architecture, models) |
|
|
37
|
+
| docs.amorphic/ | 9 | ~21K | Philosophy and vision (narrative, failure analysis) |
|
|
38
|
+
| docs.llm/ | 3 | ~89K | Aggregated versions for LLM consumption |
|
|
39
|
+
|
|
40
|
+
### Themes Identified for Deep-Dive
|
|
41
|
+
|
|
42
|
+
1. **Three-Layer Memory Architecture** - Most referenced, most complex
|
|
43
|
+
2. **Human-Agent Control Model** - Core differentiator from autonomous frameworks
|
|
44
|
+
3. **Failure of Pure Automation** - Explains design decisions
|
|
45
|
+
4. **Execution Model** - Operational complexity
|
|
46
|
+
5. **Org-Workspace Model** - Enterprise governance angle
|
|
47
|
+
|
|
48
|
+
### Additional Themes Noted (Not Assigned to Divers)
|
|
49
|
+
|
|
50
|
+
- Letta Integration (docs/LETTA_INTEGRATION_PLAN.md)
|
|
51
|
+
- Observability & Transparency
|
|
52
|
+
- 20 Formal Primitives (docs/02-PRIMITIVES.md)
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 3. Phase 2 Diver Findings
|
|
57
|
+
|
|
58
|
+
### C2: Memory Architecture
|
|
59
|
+
|
|
60
|
+
**Commands Run**: 27
|
|
61
|
+
**Key File**: docs/05-MEMORY_MODEL.md (6.8K tokens, 17 sections)
|
|
62
|
+
|
|
63
|
+
#### Core Findings
|
|
64
|
+
|
|
65
|
+
| Layer | Purpose | Authority | Tech Examples |
|
|
66
|
+
| --------------- | --------------------------- | ---------------------------------- | ----------------- |
|
|
67
|
+
| Event Memory | Immutable log of all events | **Source of truth** | EventStoreDB, WAL |
|
|
68
|
+
| Status Memory | Derived operational state | Ephemeral, recomputable | Redis, PostgreSQL |
|
|
69
|
+
| Semantic Memory | Knowledge graph | Advisory only, never authoritative | Neo4j, Graphiti |
|
|
70
|
+
|
|
71
|
+
#### Key Insights
|
|
72
|
+
|
|
73
|
+
- **Event Memory is the single source of truth** - All other layers can be rebuilt from it
|
|
74
|
+
- **Hard Rule**: "Status Memory must be fully derivable from Event Memory"
|
|
75
|
+
- **Non-Authoritative Rule**: "Semantic Memory advises but never controls"
|
|
76
|
+
- **Time travel is a query, not a feature** - Natural consequence of immutable events
|
|
77
|
+
- **5-Step Context Resumption Pattern**: Query Events -> Artifacts -> Status -> Semantic -> Assemble
|
|
78
|
+
|
|
79
|
+
#### Critical Quote
|
|
80
|
+
|
|
81
|
+
> "Memory is the connective tissue that enables long-running, interruptible human work with perfect continuity and trust."
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### C3: Human-Agent Control Model
|
|
86
|
+
|
|
87
|
+
**Commands Run**: 30
|
|
88
|
+
**Key Files**: docs/01-ARCHITECTURE.md, docs.amorphic/04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md
|
|
89
|
+
|
|
90
|
+
#### Core Findings
|
|
91
|
+
|
|
92
|
+
| Mechanism | Description |
|
|
93
|
+
| ------------------ | ------------------------------------------------------------ |
|
|
94
|
+
| Control Plane | Central authority with preemptive control over all execution |
|
|
95
|
+
| Authority Gradient | Dynamic spectrum from instructional to supervisory |
|
|
96
|
+
| Checkpoints | Deliberate pauses for human re-engagement |
|
|
97
|
+
| Override Principle | Every suggestion overridable, logged, not penalized |
|
|
98
|
+
|
|
99
|
+
#### Four Collaboration Modes
|
|
100
|
+
|
|
101
|
+
1. **Instructional** - Step-by-step human direction
|
|
102
|
+
2. **Consultative** - Human makes decisions with agent input
|
|
103
|
+
3. **Supervisory** - Broad autonomy with monitoring
|
|
104
|
+
4. **Exploratory** - Open-ended investigation
|
|
105
|
+
|
|
106
|
+
#### Key Insight
|
|
107
|
+
|
|
108
|
+
Humans can move anywhere along the authority gradient **at any moment, even mid-execution**.
|
|
109
|
+
|
|
110
|
+
#### Architectural Invariant
|
|
111
|
+
|
|
112
|
+
> "No loss of human authority" - explicitly listed as a system-wide invariant
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### C4: Failure Analysis
|
|
117
|
+
|
|
118
|
+
**Commands Run**: 20
|
|
119
|
+
**Key File**: docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md (2.8K tokens)
|
|
120
|
+
|
|
121
|
+
#### Six Failure Modes of Pure Automation
|
|
122
|
+
|
|
123
|
+
| # | Failure Mode | Core Problem |
|
|
124
|
+
| --- | ------------------------ | -------------------------------------------------------- |
|
|
125
|
+
| 1 | Brittleness | Combinatorial rule explosion creates rigid systems |
|
|
126
|
+
| 2 | Coordination Trap | Tools become the work, not enablers of work |
|
|
127
|
+
| 3 | Innovation Strangulation | System optimizes for processable, not valuable work |
|
|
128
|
+
| 4 | Human Bottleneck Paradox | Automating around humans creates new bottlenecks |
|
|
129
|
+
| 5 | Context Collapse | Context is conversational, not configurable |
|
|
130
|
+
| 6 | Judgment Gap | 80% flawless, 20% chaos - and the 20% often matters most |
|
|
131
|
+
|
|
132
|
+
#### Key Insight
|
|
133
|
+
|
|
134
|
+
Enterprise adoption has stalled due to two core issues: **Opacity** (we don't know how the agent works) and **Risk** (we can't trust it to run unsupervised).
|
|
135
|
+
|
|
136
|
+
#### Solution: Human-AI Symbiosis
|
|
137
|
+
|
|
138
|
+
> "This isn't about making AI more human or humans more machine-like. Instead... genuine cognitive partnerships where each intelligence type contributes its strengths."
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### C5: Execution Model
|
|
143
|
+
|
|
144
|
+
**Commands Run**: 32 (100% useful)
|
|
145
|
+
**Key Files**: docs/04-EXECUTION_MODEL.md (7.4K tokens), docs/06-WORKFLOWS.md (8.5K tokens)
|
|
146
|
+
|
|
147
|
+
#### Model Components
|
|
148
|
+
|
|
149
|
+
| Component | Role | Key Property |
|
|
150
|
+
| ------------------ | ----------------------------- | --------------------------------------------------- |
|
|
151
|
+
| Jobs | Human-meaningful coordination | Survives execution attempts, NO stored state |
|
|
152
|
+
| Execution Contexts | Disposable actors | Emit permanent records but are themselves temporary |
|
|
153
|
+
| Workflows | Guidance patterns | Do NOT execute - only coordinate |
|
|
154
|
+
| Steps | Atomic units | Owned by role, emit progress |
|
|
155
|
+
| Agents | Stateless workers | Receive assembled context, fully replaceable |
|
|
156
|
+
|
|
157
|
+
#### Hard Concurrency Rule
|
|
158
|
+
|
|
159
|
+
> "No two Execution Contexts may concurrently mutate the same scope of work."
|
|
160
|
+
|
|
161
|
+
#### Key Insight
|
|
162
|
+
|
|
163
|
+
Because the system is fully immutable:
|
|
164
|
+
|
|
165
|
+
- Contexts do not mutate - they produce new artifacts
|
|
166
|
+
- "Conflict" is just parallel alternatives
|
|
167
|
+
- Resolution is a separate, explicit act
|
|
168
|
+
|
|
169
|
+
> "This transforms conflicts from correctness problems into choice problems."
|
|
170
|
+
|
|
171
|
+
#### Seven System Guarantees
|
|
172
|
+
|
|
173
|
+
1. Single-scope coherence
|
|
174
|
+
2. Human control (always interruptible)
|
|
175
|
+
3. Deterministic replay
|
|
176
|
+
4. Cost attribution
|
|
177
|
+
5. No hidden state
|
|
178
|
+
6. Agent replaceability
|
|
179
|
+
7. Workflow interoperability
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
### C6: Org-Workspace Model
|
|
184
|
+
|
|
185
|
+
**Commands Run**: 29
|
|
186
|
+
**Key Files**: docs/03-ORG_WORKSPACE_MODEL.md, docs/07-EXAMPLE_WORKFLOWS.md
|
|
187
|
+
|
|
188
|
+
#### Two-Tier Hierarchy
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
Org (identity, ownership, learning)
|
|
192
|
+
|
|
|
193
|
+
Workspace (execution boundary, strict isolation)
|
|
194
|
+
|
|
|
195
|
+
Jobs -> Execution Contexts -> Steps/Agents
|
|
196
|
+
|
|
|
197
|
+
Artifacts/Records (immutable facts)
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
#### Key Invariant
|
|
201
|
+
|
|
202
|
+
> "Authority never flows downward" - Org-level artifacts can be suggested but never auto-attach, auto-execute, or auto-override.
|
|
203
|
+
|
|
204
|
+
#### Cost Attribution Model
|
|
205
|
+
|
|
206
|
+
| Level | Tracks |
|
|
207
|
+
| ----------------- | -------------------------------------- |
|
|
208
|
+
| Execution Context | Tokens, tool calls, compute time |
|
|
209
|
+
| Job | Aggregated contexts, visible to humans |
|
|
210
|
+
| Workspace | All jobs, org-level reporting |
|
|
211
|
+
|
|
212
|
+
#### Agent Limitations (Explicit)
|
|
213
|
+
|
|
214
|
+
Agents **cannot**:
|
|
215
|
+
|
|
216
|
+
- Create Workspaces
|
|
217
|
+
- Promote artifacts
|
|
218
|
+
- Invite users
|
|
219
|
+
- Have Org-level roles
|
|
220
|
+
|
|
221
|
+
> "Keeps humans firmly in control"
|
|
222
|
+
|
|
223
|
+
#### Governance Philosophy
|
|
224
|
+
|
|
225
|
+
Default is **permissive** (trust-by-default). Enterprise controls are **optional policy overlays**.
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## 4. Cross-Theme Patterns
|
|
230
|
+
|
|
231
|
+
Recurring themes that appeared across multiple divers:
|
|
232
|
+
|
|
233
|
+
### 4.1 Immutability as Foundation
|
|
234
|
+
|
|
235
|
+
| Agent | Observation |
|
|
236
|
+
| -------------- | ---------------------------------------------------- |
|
|
237
|
+
| C2 (Memory) | Event Memory is append-only, never mutated |
|
|
238
|
+
| C3 (Control) | Immutable records enable guaranteed interruptibility |
|
|
239
|
+
| C5 (Execution) | Contexts produce new artifacts, never mutate |
|
|
240
|
+
| C6 (Org) | Audit trail via immutable events |
|
|
241
|
+
|
|
242
|
+
### 4.2 Human Authority Preserved
|
|
243
|
+
|
|
244
|
+
| Agent | Observation |
|
|
245
|
+
| -------------- | ------------------------------------------------------- |
|
|
246
|
+
| C3 (Control) | "No loss of human authority" as architectural invariant |
|
|
247
|
+
| C4 (Failure) | Addresses "Opacity and Risk" barriers |
|
|
248
|
+
| C5 (Execution) | Human control guarantee in system guarantees |
|
|
249
|
+
| C6 (Org) | Agents explicitly excluded from org-level authority |
|
|
250
|
+
|
|
251
|
+
### 4.3 Derivation Hierarchy (No Circular Dependencies)
|
|
252
|
+
|
|
253
|
+
| Agent | Observation |
|
|
254
|
+
| -------------- | ----------------------------------------------- |
|
|
255
|
+
| C2 (Memory) | Event -> Status -> Semantic (clean derivation) |
|
|
256
|
+
| C5 (Execution) | Jobs derive status from signals, don't store it |
|
|
257
|
+
| C6 (Org) | Knowledge Graph is derived, not authoritative |
|
|
258
|
+
|
|
259
|
+
### 4.4 Disposable Execution, Durable Intent
|
|
260
|
+
|
|
261
|
+
| Agent | Observation |
|
|
262
|
+
| -------------- | ---------------------------------------- |
|
|
263
|
+
| C2 (Memory) | Status Memory can be deleted and rebuilt |
|
|
264
|
+
| C5 (Execution) | Contexts are disposable, Jobs survive |
|
|
265
|
+
| C6 (Org) | Dormant Workspaces incur minimal cost |
|
|
266
|
+
|
|
267
|
+
### 4.5 Advisory vs Authoritative Distinction
|
|
268
|
+
|
|
269
|
+
| Agent | Observation |
|
|
270
|
+
| -------------- | -------------------------------------------- |
|
|
271
|
+
| C2 (Memory) | Semantic Memory advises but never controls |
|
|
272
|
+
| C5 (Execution) | Workflows guide but do not execute |
|
|
273
|
+
| C6 (Org) | Org artifacts suggested, never auto-attached |
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## 5. Proposed Spec Changes
|
|
278
|
+
|
|
279
|
+
Consolidated and prioritized from all agents:
|
|
280
|
+
|
|
281
|
+
### High Priority (Mentioned by 2+ Agents)
|
|
282
|
+
|
|
283
|
+
| Proposal | Source(s) |
|
|
284
|
+
| ------------------------------------------------------------------------------ | --------- |
|
|
285
|
+
| Add comparison table: HumanWork vs other frameworks (LangGraph, AutoGPT, etc.) | C3, C4 |
|
|
286
|
+
| Document the Control Plane API/interface concretely | C3, C5 |
|
|
287
|
+
| Add diagrams for hierarchies (Memory layers, Job->Context->Steps->Agents) | C2, C5 |
|
|
288
|
+
| Clarify checkpoint enforcement mechanisms (how is "required" enforced?) | C3, C5 |
|
|
289
|
+
| Define retention/archival policies | C2, C6 |
|
|
290
|
+
|
|
291
|
+
### Medium Priority (Unique but Significant)
|
|
292
|
+
|
|
293
|
+
| Proposal | Source |
|
|
294
|
+
| ---------------------------------------------------------------------------------- | ------ |
|
|
295
|
+
| Clarify Event Memory vs Artifact Store distinction | C2 |
|
|
296
|
+
| Add concrete Record type schemas with examples | C2 |
|
|
297
|
+
| Specify max acceptable latency for Status Memory queries | C2 |
|
|
298
|
+
| Add "Human Authority Guarantees" section listing all control mechanisms | C3 |
|
|
299
|
+
| Add authority gradient transition examples (Supervisory -> Instructional mid-task) | C3 |
|
|
300
|
+
| Add "Failure Modes Addressed" section mapping features to failure modes | C4 |
|
|
301
|
+
| Document the "tools become the work" anti-pattern as key problem statement | C4 |
|
|
302
|
+
| Add "Opacity and Risk" as top-level enterprise adoption barriers | C4 |
|
|
303
|
+
| Add glossary entry clarifying "scope" types | C5 |
|
|
304
|
+
| Add guidance on when to use parallel vs serial execution patterns | C5 |
|
|
305
|
+
| Clarify Semantic Memory's contribution to context resumption | C5 |
|
|
306
|
+
| Add scope conflict resolution workflow example | C5 |
|
|
307
|
+
| Add cost budget alerts/limits API to Cost Model section | C6 |
|
|
308
|
+
| Define formal promotion workflow stages (propose, review, approve, publish) | C6 |
|
|
309
|
+
| Clarify how Org Knowledge Graph surfaces in Workspace UX | C6 |
|
|
310
|
+
| Define multi-Org scenarios and cross-Org patterns | C6 |
|
|
311
|
+
| Add monitoring/dashboard primitives for cost visibility | C6 |
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## 6. Tool Evaluation Synthesis
|
|
316
|
+
|
|
317
|
+
### 6.1 Aggregate Scores
|
|
318
|
+
|
|
319
|
+
| Agent | Would Use Again (1-5) | Confidence Level |
|
|
320
|
+
| ------------ | --------------------- | ---------------- |
|
|
321
|
+
| C1 Explorer | 4 | High |
|
|
322
|
+
| C2 Memory | 4 | High |
|
|
323
|
+
| C3 Control | 4 | High |
|
|
324
|
+
| C4 Failure | 4 | High |
|
|
325
|
+
| C5 Execution | **5** | High |
|
|
326
|
+
| C6 Org | 4 | High |
|
|
327
|
+
|
|
328
|
+
**Average Score**: 4.17/5
|
|
329
|
+
**Confidence**: 6/6 High
|
|
330
|
+
|
|
331
|
+
### 6.2 Common Praise (What Worked Well)
|
|
332
|
+
|
|
333
|
+
| Feature | Mentions | Details |
|
|
334
|
+
| ------------------------------------------------------------- | -------- | ------------------------------------------------------- |
|
|
335
|
+
| `mdcontext tree <file>` - Document outlines with token counts | 6/6 | "Perfect for planning", "Invaluable for prioritization" |
|
|
336
|
+
| `mdcontext context --section` - Precise section extraction | 5/6 | "Game-changer for deep dives", "Surgical extraction" |
|
|
337
|
+
| `mdcontext search` - Fast keyword discovery | 6/6 | "Found relevant content quickly", "Good context lines" |
|
|
338
|
+
| `mdcontext context --sections` - Section listing | 4/6 | "Essential for finding exact section names" |
|
|
339
|
+
| `mdcontext stats` - Quick index overview | 3/6 | "Instant scope understanding" |
|
|
340
|
+
| Token budgeting (`-t` flag) | 2/6 | "Respects limits while showing included/excluded" |
|
|
341
|
+
| Boolean operators (OR, AND) | 2/6 | "Worked as expected" |
|
|
342
|
+
|
|
343
|
+
### 6.3 Common Frustrations (Pain Points)
|
|
344
|
+
|
|
345
|
+
| Issue | Mentions | Details |
|
|
346
|
+
| ----------------------------------------------- | -------- | ------------------------------------------------------------------------ |
|
|
347
|
+
| Multi-word search returns 0 results | 5/6 | "failure automation", "job context", "pause resume terminate" all failed |
|
|
348
|
+
| Search results capped at 10 | 4/6 | "No pagination", "Sometimes wanted more matches" |
|
|
349
|
+
| Section name requires exact match | 3/6 | "Had to list sections first", "Numbering prefix required" |
|
|
350
|
+
| No embeddings/semantic search | 4/6 | "Would help with concept exploration" |
|
|
351
|
+
| Context command syntax confusion | 3/6 | Initial failures with positional arguments vs flags |
|
|
352
|
+
| Default context truncation unclear | 2/6 | "36% shown with no explicit warning" |
|
|
353
|
+
| Cannot search within specific file | 2/6 | "Had to search globally then filter mentally" |
|
|
354
|
+
| Cannot request multiple sections in one command | 2/6 | "Had to call once per section" |
|
|
355
|
+
|
|
356
|
+
### 6.4 Suggested Improvements with Frequency
|
|
357
|
+
|
|
358
|
+
| Improvement | Mentions |
|
|
359
|
+
| ----------------------------------------- | -------- |
|
|
360
|
+
| Enable semantic search (embeddings) | 4/6 |
|
|
361
|
+
| Support multi-word phrase search | 5/6 |
|
|
362
|
+
| Increase or remove search result limit | 4/6 |
|
|
363
|
+
| Add fuzzy/partial section name matching | 3/6 |
|
|
364
|
+
| Allow file-scoped search | 2/6 |
|
|
365
|
+
| Allow multiple `--section` flags | 2/6 |
|
|
366
|
+
| Add duplicate content detection | 1/6 |
|
|
367
|
+
| Add cross-file relationship detection | 1/6 |
|
|
368
|
+
| Show explicit "section won't fit" warning | 1/6 |
|
|
369
|
+
|
|
370
|
+
### 6.5 Overall Verdict on mdcontext Tool
|
|
371
|
+
|
|
372
|
+
**Highly Effective for Structured Documentation Research**
|
|
373
|
+
|
|
374
|
+
The mdcontext tool enabled efficient exploration of a large documentation corpus (179K tokens) that would be impossible to read directly. The **tree-search-context workflow** emerged as the optimal pattern:
|
|
375
|
+
|
|
376
|
+
1. `mdcontext tree <file>` - See structure and token counts
|
|
377
|
+
2. `mdcontext context --sections <file>` - Get exact section names
|
|
378
|
+
3. `mdcontext context <file> --section "X"` - Extract needed sections
|
|
379
|
+
4. `mdcontext search "term"` - Find cross-references
|
|
380
|
+
5. Repeat as needed
|
|
381
|
+
|
|
382
|
+
**Strengths**: Excellent for systematic exploration of well-structured markdown. Section-level extraction is a major differentiator. Token-aware budgeting enables efficient context management.
|
|
383
|
+
|
|
384
|
+
**Weaknesses**: Keyword search limitations (multi-word phrases, result caps) and lack of semantic search reduce effectiveness for conceptual exploration.
|
|
385
|
+
|
|
386
|
+
**Verdict**: Would recommend for structured documentation research. The 4.17/5 average with 100% high confidence indicates the tool successfully supported deep investigative work.
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
## 7. Methodology Assessment
|
|
391
|
+
|
|
392
|
+
### How Well Did Explore-Then-Dive Work?
|
|
393
|
+
|
|
394
|
+
**Very Effective** - The two-phase approach yielded comprehensive coverage with manageable cognitive load.
|
|
395
|
+
|
|
396
|
+
### Phase 1 Effectiveness
|
|
397
|
+
|
|
398
|
+
| Aspect | Assessment |
|
|
399
|
+
| -------------------- | ------------------------------------------------------------- |
|
|
400
|
+
| Theme identification | Excellent - 5 themes covered all major architectural concerns |
|
|
401
|
+
| Prioritization | Good - Memory and Control emerged as correctly prioritized |
|
|
402
|
+
| Discovery efficiency | High - 37 commands mapped 23 documents |
|
|
403
|
+
| Handoff quality | Good - Clear search hints and key files for divers |
|
|
404
|
+
|
|
405
|
+
### Phase 2 Effectiveness
|
|
406
|
+
|
|
407
|
+
| Aspect | Assessment |
|
|
408
|
+
| --------------------- | ------------------------------------------------ |
|
|
409
|
+
| Coverage depth | Excellent - All divers achieved high confidence |
|
|
410
|
+
| Finding consistency | High - Cross-theme patterns emerged naturally |
|
|
411
|
+
| Spec change proposals | Comprehensive - 20+ actionable suggestions |
|
|
412
|
+
| Tool evaluation | Detailed - Clear patterns for future improvement |
|
|
413
|
+
|
|
414
|
+
### Methodology Strengths
|
|
415
|
+
|
|
416
|
+
1. **Reduced duplication** - Explorer mapped landscape once, divers didn't repeat
|
|
417
|
+
2. **Parallel investigation** - Divers could work independently on themes
|
|
418
|
+
3. **Cross-pollination** - Cross-theme patterns emerged from synthesis
|
|
419
|
+
4. **Cognitive efficiency** - Each agent had focused, manageable scope
|
|
420
|
+
|
|
421
|
+
### Methodology Weaknesses
|
|
422
|
+
|
|
423
|
+
1. **Theme boundaries** - Some overlap (e.g., Control appears in both C3 and C5)
|
|
424
|
+
2. **Missing themes** - Letta Integration, Primitives not deeply explored
|
|
425
|
+
3. **No iteration** - Divers couldn't request Explorer to map additional areas
|
|
426
|
+
|
|
427
|
+
### Recommendations for Future Use
|
|
428
|
+
|
|
429
|
+
1. **Explorer should flag potential overlaps** - Help divers coordinate shared concepts
|
|
430
|
+
2. **Include iteration cycle** - Allow divers to request additional exploration
|
|
431
|
+
3. **Consider 6-8 themes** - 5 themes left some areas shallow
|
|
432
|
+
4. **Assign cross-cutting themes** - One diver could track recurring patterns
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
## Appendix: Command Statistics
|
|
437
|
+
|
|
438
|
+
| Agent | Commands | Useful | Highly Useful |
|
|
439
|
+
| ------------ | -------- | ------------- | -------------- |
|
|
440
|
+
| C1 Explorer | 37 | 35 (95%) | N/A |
|
|
441
|
+
| C2 Memory | 27 | 25 (93%) | 20+ |
|
|
442
|
+
| C3 Control | 30 | 30 (100%) | 20+ |
|
|
443
|
+
| C4 Failure | 20 | 18 (90%) | 15+ |
|
|
444
|
+
| C5 Execution | 32 | 32 (100%) | 20 (63%) |
|
|
445
|
+
| C6 Org | 29 | 28 (97%) | 20+ |
|
|
446
|
+
| **Total** | **175** | **168 (96%)** | **~100 (57%)** |
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
_Synthesis generated from Strategy C reports (C1-C6)_
|
|
451
|
+
_Total documentation corpus: 23 files, 179K tokens, 924 sections_
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Report: C1 - Explorer
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
Map the documentation landscape and identify themes for deep-dive.
|
|
6
|
+
|
|
7
|
+
## Command Log
|
|
8
|
+
|
|
9
|
+
| # | Command | Purpose | Result | Useful? |
|
|
10
|
+
| --- | ------------------------------------------------------ | -------------------------- | -------------------------------------------- | ------- |
|
|
11
|
+
| 1 | `mdcontext --help` | Learn tool | Full help with commands, examples, workflows | Yes |
|
|
12
|
+
| 2 | `mdcontext index --force` | Force reindex | Ran in background | N/A |
|
|
13
|
+
| 3 | `mdcontext index` | Index files | Ran in background | N/A |
|
|
14
|
+
| 4 | `mdcontext stats` | Understand scope | 23 docs, 179K tokens, 924 sections | Yes |
|
|
15
|
+
| 5 | `mdcontext tree docs/` | See docs structure | 10 files listed | Yes |
|
|
16
|
+
| 6 | `mdcontext tree docs.amorphic/` | See amorphic structure | 9 files listed | Yes |
|
|
17
|
+
| 7 | `mdcontext tree docs.llm/` | See llm structure | 3 files (one massive 56K) | Yes |
|
|
18
|
+
| 8 | `mdcontext tree docs/00-README.md` | Outline of README | Clear structure | Yes |
|
|
19
|
+
| 9 | `mdcontext tree docs/01-ARCHITECTURE.md` | Outline of arch | 17 major sections | Yes |
|
|
20
|
+
| 10 | `mdcontext tree docs/02-PRIMITIVES.md` | Outline of primitives | 20 primitives defined | Yes |
|
|
21
|
+
| 11 | `mdcontext tree docs/05-MEMORY_MODEL.md` | Outline of memory | 17 sections, deep | Yes |
|
|
22
|
+
| 12 | `mdcontext tree docs.amorphic/01-EXECUTIVE_SUMMARY.md` | Outline exec summary | Vision/market focus | Yes |
|
|
23
|
+
| 13 | `mdcontext tree docs.amorphic/02-THE_FAILURE...md` | Outline failure doc | 6 failure modes | Yes |
|
|
24
|
+
| 14 | `mdcontext tree docs.amorphic/04-THE_HUMAN-AGENT...md` | Outline collab model | Trust architecture | Yes |
|
|
25
|
+
| 15 | `mdcontext tree docs.llm/spec.md` | Outline combined spec | 56K tokens - full spec combined | Yes |
|
|
26
|
+
| 16 | `mdcontext tree docs.llm/amorphic.md` | Outline amorphic combined | 21K tokens | Yes |
|
|
27
|
+
| 17 | `mdcontext tree docs.llm/feedback.md` | Outline feedback | 11K tokens - landing pages, BDI | Yes |
|
|
28
|
+
| 18 | `mdcontext search "human"` | Find human-centric content | 10 hits, core principle | Yes |
|
|
29
|
+
| 19 | `mdcontext search "memory"` | Find memory content | 10 hits, three-layer arch | Yes |
|
|
30
|
+
| 20 | `mdcontext search "workflow"` | Find workflow content | 10 hits, guidance model | Yes |
|
|
31
|
+
| 21 | `mdcontext search "agent"` | Find agent content | 10 hits, replaceable agents | Yes |
|
|
32
|
+
| 22 | `mdcontext search "control"` | Find control content | 10 hits, Control Plane key | Yes |
|
|
33
|
+
| 23 | `mdcontext search "org OR workspace"` | Find org model | 10 hits, multi-layer | Yes |
|
|
34
|
+
| 24 | `mdcontext search "failure OR problem..."` | Find problems | 10 hits | Yes |
|
|
35
|
+
| 25 | `mdcontext search "collaboration"` | Find collaboration | 10 hits, multi-human | Yes |
|
|
36
|
+
| 26 | `mdcontext search "transparency OR observability"` | Find observability | 10 hits, core principle | Yes |
|
|
37
|
+
| 27 | `mdcontext search "Letta"` | Find Letta integration | 10 hits, integration plan | Yes |
|
|
38
|
+
| 28 | `mdcontext search "event"` | Find event-driven content | 10 hits, Event Memory | Yes |
|
|
39
|
+
| 29 | `mdcontext search "immutable"` | Find immutability | 10 hits, core principle | Yes |
|
|
40
|
+
| 30 | `mdcontext search "cost"` | Find cost management | 10 hits, workspace-level | Yes |
|
|
41
|
+
| 31 | `mdcontext search "automation OR autonomous"` | Find automation critique | 10 hits, failure theme | Yes |
|
|
42
|
+
| 32 | `mdcontext tree docs/HumanWork-Evolution.md` | Check evolution doc | 7500 tokens, no sections | Partly |
|
|
43
|
+
| 33 | `mdcontext tree docs.amorphic/05-TECHNICAL...md` | Check tech patterns | 5 key patterns | Yes |
|
|
44
|
+
| 34 | `mdcontext tree docs.amorphic/06-ORGANIZATIONAL...md` | Check org transformation | 13 sections | Yes |
|
|
45
|
+
| 35 | `mdcontext tree docs.amorphic/08-FUTURE...md` | Check future directions | Research agenda | Yes |
|
|
46
|
+
| 36 | `mdcontext search "time travel OR branching"` | Find temporal features | 10 hits, core feature | Yes |
|
|
47
|
+
| 37 | `mdcontext search "semantic"` | Find semantic layer | 10 hits, knowledge graph | Yes |
|
|
48
|
+
|
|
49
|
+
## Landscape Overview
|
|
50
|
+
|
|
51
|
+
### docs/ Structure (Original Spec)
|
|
52
|
+
|
|
53
|
+
**10 files, ~40K tokens, highly structured**
|
|
54
|
+
|
|
55
|
+
Core documentation for the HumanWork framework:
|
|
56
|
+
|
|
57
|
+
- **00-README.md** (1.6K tokens): Mission statement, core principles (Human Control, Immutability, Observability, Metadata-Driven, Replaceable Agents)
|
|
58
|
+
- **01-ARCHITECTURE.md** (5K tokens): 17 architectural layers from Control Plane to Memory
|
|
59
|
+
- **02-PRIMITIVES.md** (6.8K tokens): 20 formal primitives with definitions, properties, guarantees, lifecycle
|
|
60
|
+
- **03-ORG_WORKSPACE_MODEL.md**: Identity, cost, authority model
|
|
61
|
+
- **04-EXECUTION_MODEL.md**: Jobs, contexts, workflows execution
|
|
62
|
+
- **05-MEMORY_MODEL.md** (6.8K tokens): Three-layer memory (Event, Status, Semantic)
|
|
63
|
+
- **06-WORKFLOWS.md**: Workflow philosophy and definition format
|
|
64
|
+
- **07-EXAMPLE_WORKFLOWS.md**: 5 concrete scenarios (Individual, Team, Research, Engineering, Enterprise)
|
|
65
|
+
- **HumanWork-Evolution.md** (7.5K tokens): Evolution ideas - single section, less structured
|
|
66
|
+
- **LETTA_INTEGRATION_PLAN.md**: Memory system integration plan with Letta/MemGPT
|
|
67
|
+
|
|
68
|
+
### docs.amorphic/ Structure (Chat Analysis)
|
|
69
|
+
|
|
70
|
+
**9 files, ~21K tokens, narrative style**
|
|
71
|
+
|
|
72
|
+
Philosophy and vision documents (more prose, less formal):
|
|
73
|
+
|
|
74
|
+
- **00-INDEX.md**: Table of contents with section previews
|
|
75
|
+
- **01-EXECUTIVE_SUMMARY.md** (1.7K tokens): Core innovation, market disruption potential
|
|
76
|
+
- **02-THE_FAILURE_OF_PURE_AUTOMATION.md** (2.8K tokens): 6 failure modes of current approaches
|
|
77
|
+
- **03-ARCHITECTURAL_FOUNDATIONS.md**: Substrate problem, geometric memory, component relationships
|
|
78
|
+
- **04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md** (2.8K tokens): Authority gradient, collaboration modes, trust architecture
|
|
79
|
+
- **05-TECHNICAL_IMPLEMENTATION_PATTERNS.md** (2.3K tokens): 5 foundational patterns
|
|
80
|
+
- **06-ORGANIZATIONAL_TRANSFORMATION.md** (4K tokens): Cultural shifts, governance, maturity models
|
|
81
|
+
- **08-FUTURE_IMPLICATIONS_AND_RESEARCH_DIRECTIONS.md** (1.8K tokens): Research frontiers, open questions
|
|
82
|
+
- **\_0.BLURB.md**: Marketing/pitch content
|
|
83
|
+
|
|
84
|
+
### docs.llm/ Structure (Combined Files)
|
|
85
|
+
|
|
86
|
+
**3 files, ~89K tokens - aggregated versions**
|
|
87
|
+
|
|
88
|
+
- **spec.md** (56K tokens): All docs/ files concatenated - massive single-file version
|
|
89
|
+
- **amorphic.md** (21K tokens): All docs.amorphic/ files concatenated
|
|
90
|
+
- **feedback.md** (11.6K tokens): Landing page copy, BDI concepts, installation, philosophy
|
|
91
|
+
|
|
92
|
+
## Themes Identified for Deep-Dive
|
|
93
|
+
|
|
94
|
+
### 1. **Three-Layer Memory Architecture**
|
|
95
|
+
|
|
96
|
+
- Why: Central innovation. Event Memory (immutable facts), Status Memory (derived state), Semantic Memory (knowledge graph) - enables time travel, branching, and replay. Referenced in nearly every document.
|
|
97
|
+
- Search hints: `memory`, `event`, `semantic`, `immutable`, `time travel OR branching`
|
|
98
|
+
- Key files: docs/05-MEMORY_MODEL.md, docs/01-ARCHITECTURE.md sections 11-12
|
|
99
|
+
|
|
100
|
+
### 2. **Human-Agent Control Model**
|
|
101
|
+
|
|
102
|
+
- Why: Core differentiator from "autonomous agent" frameworks. Control Plane with preemptive authority, explicit human decision points, interruptibility guarantees. The "why" of the entire system.
|
|
103
|
+
- Search hints: `control`, `human`, `authority`, `interrupt`, `preemptive`
|
|
104
|
+
- Key files: docs/00-README.md, docs/01-ARCHITECTURE.md (Control Plane), docs.amorphic/04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md
|
|
105
|
+
|
|
106
|
+
### 3. **Failure of Pure Automation (Critical Analysis)**
|
|
107
|
+
|
|
108
|
+
- Why: docs.amorphic/ provides rich analysis of WHY current agent frameworks fail - brittleness, coordination trap, innovation strangulation, context collapse, judgment gap. Understanding these failure modes is crucial for evaluating the solution.
|
|
109
|
+
- Search hints: `failure`, `automation`, `autonomous`, `brittleness`, `coordination`
|
|
110
|
+
- Key files: docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md, docs.amorphic/01-EXECUTIVE_SUMMARY.md
|
|
111
|
+
|
|
112
|
+
### 4. **Execution Model (Jobs, Contexts, Workflows)**
|
|
113
|
+
|
|
114
|
+
- Why: Complex model with Jobs (intent over time), Execution Contexts (disposable actors), Workflows (guidance not execution). Parallel execution patterns, context resumption, scope-based coordination.
|
|
115
|
+
- Search hints: `workflow`, `job`, `context`, `execution`, `scope`
|
|
116
|
+
- Key files: docs/04-EXECUTION_MODEL.md, docs/06-WORKFLOWS.md, docs/07-EXAMPLE_WORKFLOWS.md
|
|
117
|
+
|
|
118
|
+
### 5. **Org-Workspace-Cost Model**
|
|
119
|
+
|
|
120
|
+
- Why: Hierarchical containment (Org > Workspace > Job > Context), cost attribution and visibility, cross-workspace learning promotion. Enterprise governance angle.
|
|
121
|
+
- Search hints: `org OR workspace`, `cost`, `promotion`, `governance`
|
|
122
|
+
- Key files: docs/03-ORG_WORKSPACE_MODEL.md, docs/01-ARCHITECTURE.md (sections 4-5)
|
|
123
|
+
|
|
124
|
+
## Additional Notable Themes (Considered but Not Primary)
|
|
125
|
+
|
|
126
|
+
- **Letta Integration**: docs/LETTA_INTEGRATION_PLAN.md shows concrete integration plans with MemGPT memory blocks
|
|
127
|
+
- **Observability & Transparency**: Strong theme in amorphic docs, core principle
|
|
128
|
+
- **Primitive Definitions**: 20 formal primitives in docs/02-PRIMITIVES.md
|
|
129
|
+
|
|
130
|
+
## Tool Evaluation
|
|
131
|
+
|
|
132
|
+
### What Worked Well
|
|
133
|
+
|
|
134
|
+
- `mdcontext stats` gave instant overview of scope (23 docs, 179K tokens, 924 sections)
|
|
135
|
+
- `mdcontext tree [file]` showing document outlines with token counts was extremely valuable for prioritization
|
|
136
|
+
- `mdcontext tree [folder]` listing all files was quick way to understand structure
|
|
137
|
+
- Boolean search operators (OR, AND) worked well when used
|
|
138
|
+
- Keyword search results showed context (lines before/after) which helped understand relevance
|
|
139
|
+
- Search results included section headers with token counts - useful for prioritization
|
|
140
|
+
|
|
141
|
+
### What Was Frustrating
|
|
142
|
+
|
|
143
|
+
- Keyword search requires exact terms - multi-word phrases like "human control authority" returned 0 results
|
|
144
|
+
- Search limited to 10 results max (or at least only showed 10) - no pagination visible
|
|
145
|
+
- No way to increase result limit in search output
|
|
146
|
+
- `mdcontext index` commands ran in background unexpectedly, making it unclear when indexing completed
|
|
147
|
+
- No embeddings by default - would need `--embed` for semantic search
|
|
148
|
+
- docs.llm/ contains mostly duplicated content (aggregated files) - no way to detect this automatically
|
|
149
|
+
|
|
150
|
+
### What Was Missing
|
|
151
|
+
|
|
152
|
+
- Semantic search (would require `--embed` indexing)
|
|
153
|
+
- Cross-file relationship detection (e.g., which docs reference which primitives)
|
|
154
|
+
- Token budget for search results (like context command has)
|
|
155
|
+
- Ability to search within specific folders only
|
|
156
|
+
- Duplicate content detection
|
|
157
|
+
- Section-level content preview (tree shows structure but not content snippets)
|
|
158
|
+
|
|
159
|
+
### Confidence Level
|
|
160
|
+
|
|
161
|
+
[X] High / Medium / Low
|
|
162
|
+
|
|
163
|
+
**Justification**: Tree command with token counts and section headers gave excellent structural overview. Keyword search confirmed theme patterns across documents. Main uncertainty is whether I missed nuanced content that would only surface with semantic search.
|
|
164
|
+
|
|
165
|
+
### Would Use Again? (1-5)
|
|
166
|
+
|
|
167
|
+
**4** - Very useful for rapid mapping of large doc sets. The combination of `tree` for structure and `search` for theme confirmation worked well. Would be 5/5 with semantic search enabled.
|
|
168
|
+
|
|
169
|
+
## Time & Efficiency
|
|
170
|
+
|
|
171
|
+
- Commands run: 37
|
|
172
|
+
- Compared to reading all files: **Much less** - 179K tokens would be impossible to read directly; mdcontext enabled mapping in ~10 minutes
|
|
173
|
+
- Key efficiency: `tree [file]` with token counts let me prioritize which areas need deep investigation
|
|
174
|
+
|
|
175
|
+
## Summary for Divers
|
|
176
|
+
|
|
177
|
+
The documentation describes **HumanWork**, a framework for human-AI collaboration that explicitly rejects the "fully autonomous agent" paradigm. Key innovations:
|
|
178
|
+
|
|
179
|
+
1. **Three-layer memory** enabling replay, time travel, branching
|
|
180
|
+
2. **Control Plane** with preemptive human authority over all execution
|
|
181
|
+
3. **Workspace isolation** for cost attribution and parallel exploration
|
|
182
|
+
4. **Workflows as guidance** (not rigid automation)
|
|
183
|
+
|
|
184
|
+
The docs.amorphic/ folder contains the philosophical "why" (failure analysis), while docs/ contains the formal "what" (primitives, architecture). The docs.llm/ folder appears to be aggregated versions for LLM consumption.
|
|
185
|
+
|
|
186
|
+
Recommended diver priorities:
|
|
187
|
+
|
|
188
|
+
1. Memory Architecture (most referenced, most complex)
|
|
189
|
+
2. Human Control Model (core differentiator)
|
|
190
|
+
3. Failure Analysis (explains design decisions)
|
|
191
|
+
4. Execution Model (operational complexity)
|
|
192
|
+
5. Org-Workspace Model (enterprise governance angle)
|