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,145 @@
|
|
|
1
|
+
# Report: C2 - Diver: Memory Architecture
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
Deep-dive into: Three-Layer Memory Architecture
|
|
6
|
+
|
|
7
|
+
## Command Log
|
|
8
|
+
|
|
9
|
+
| # | Command | Purpose | Result | Useful? |
|
|
10
|
+
| --- | -------------------------------------------------------------------------------------------------- | ---------------------------------- | ------------------------------------------ | ------- |
|
|
11
|
+
| 1 | `mdcontext search "memory"` | Find memory content | 10 results, found key files and references | Yes |
|
|
12
|
+
| 2 | `mdcontext search "event memory"` | Find event memory specifics | 10 results with detailed sections | Yes |
|
|
13
|
+
| 3 | `mdcontext search "semantic memory"` | Find semantic memory specifics | 10 results covering definition and usage | Yes |
|
|
14
|
+
| 4 | `mdcontext search "status memory"` | Find status memory specifics | 10 results with operational details | Yes |
|
|
15
|
+
| 5 | `mdcontext context docs/05-MEMORY_MODEL.md "## 2."` | Try positional context (failed) | ENOENT error - wrong syntax | No |
|
|
16
|
+
| 6 | `mdcontext context docs/05-MEMORY_MODEL.md --section "The Three-Layer Architecture"` | Get architecture overview | Clean section output | Yes |
|
|
17
|
+
| 7 | `mdcontext context docs/05-MEMORY_MODEL.md --section "Layer 1: Event Memory"` | Get event memory details | No match found | No |
|
|
18
|
+
| 8 | `mdcontext context --sections docs/05-MEMORY_MODEL.md` | List available sections | Full section tree (17 top-level) | Yes |
|
|
19
|
+
| 9 | `mdcontext context docs/05-MEMORY_MODEL.md --section "3. Layer 1: Event / Fact Memory"` | Get event memory with correct name | Full section with all subsections | Yes |
|
|
20
|
+
| 10 | `mdcontext context docs/05-MEMORY_MODEL.md --section "4. Layer 2: Status Memory"` | Get status memory details | Complete operational truth section | Yes |
|
|
21
|
+
| 11 | `mdcontext context docs/05-MEMORY_MODEL.md --section "5. Layer 3: Semantic Memory"` | Get semantic memory details | Full knowledge graph layer info | Yes |
|
|
22
|
+
| 12 | `mdcontext context docs/05-MEMORY_MODEL.md --section "8. Time Travel and Branching"` | Get time travel features | Branching and replay mechanics | Yes |
|
|
23
|
+
| 13 | `mdcontext context docs/05-MEMORY_MODEL.md --section "7. Memory and Execution Context Resumption"` | Get resumption pattern | Critical 5-step resumption flow | Yes |
|
|
24
|
+
| 14 | `mdcontext context docs/05-MEMORY_MODEL.md --section "1. Memory Philosophy"` | Get design rationale | Core philosophy defined | Yes |
|
|
25
|
+
| 15 | `mdcontext search "immutable"` | Find immutability references | 10 cross-doc references | Yes |
|
|
26
|
+
| 16 | `mdcontext context docs/05-MEMORY_MODEL.md --section "13. Memory Guarantees"` | Get guarantees | 5 guarantee categories | Yes |
|
|
27
|
+
| 17 | `mdcontext context docs/05-MEMORY_MODEL.md --section "14. Anti-Patterns (Explicitly Forbidden)"` | Get anti-patterns | 7 forbidden patterns | Yes |
|
|
28
|
+
| 18 | `mdcontext context docs/01-ARCHITECTURE.md --section "Workspace Memory"` | Get architecture view | Concise 3-layer summary | Yes |
|
|
29
|
+
| 19 | `mdcontext context docs/05-MEMORY_MODEL.md --section "17. Summary"` | Get summary | Concluding philosophy | Yes |
|
|
30
|
+
| 20 | `mdcontext search "replay"` | Find replay capability | 7 replay references | Yes |
|
|
31
|
+
| 21 | `mdcontext search "derived"` | Find derived state refs | 10 references showing derivation chain | Yes |
|
|
32
|
+
| 22 | `mdcontext context docs/05-MEMORY_MODEL.md --section "6. Memory Composition"` | Get composition details | Layer relationships and consumers | Yes |
|
|
33
|
+
| 23 | `mdcontext context docs/05-MEMORY_MODEL.md --section "9. Org-Level Memory"` | Get org memory | Workspace-to-org flow | Yes |
|
|
34
|
+
| 24 | `mdcontext search "knowledge graph"` | Find knowledge graph refs | 7 results covering semantic layer | Yes |
|
|
35
|
+
| 25 | `mdcontext context docs/05-MEMORY_MODEL.md --section "16. Why This Model Works"` | Get rationale | Benefits and scaling | Yes |
|
|
36
|
+
| 26 | `mdcontext context docs/05-MEMORY_MODEL.md --section "15. Implementation Guidance"` | Get implementation tech | Tech stack recommendations | Yes |
|
|
37
|
+
| 27 | `mdcontext context docs/04-EXECUTION_MODEL.md --section "What Agents Receive"` | Get agent context details | 4 memory sources for agents | Yes |
|
|
38
|
+
|
|
39
|
+
## Findings
|
|
40
|
+
|
|
41
|
+
### Key Discoveries
|
|
42
|
+
|
|
43
|
+
1. **Event Memory is the Single Source of Truth**
|
|
44
|
+
- Immutable, append-only log of all Workspace events
|
|
45
|
+
- Contains Records: execution_context.started, artifact.produced, step.completed, etc.
|
|
46
|
+
- All other memory layers can be rebuilt from Event Memory
|
|
47
|
+
- Optimized for correctness/durability, not query performance
|
|
48
|
+
|
|
49
|
+
2. **Status Memory is Derived Operational Truth**
|
|
50
|
+
- Computed from Event Memory, never authoritative
|
|
51
|
+
- Stores: active jobs, pending signals, resource usage, attention state
|
|
52
|
+
- Can be deleted and rebuilt at any time
|
|
53
|
+
- Hard rule: "Status Memory must be fully derivable from Event Memory"
|
|
54
|
+
|
|
55
|
+
3. **Semantic Memory is Understanding, Not Facts**
|
|
56
|
+
- Knowledge graph of relationships, concepts, patterns
|
|
57
|
+
- Probabilistic and explainable (every edge has provenance)
|
|
58
|
+
- Advises but never controls execution
|
|
59
|
+
- Uses LLMs, heuristics, and annotations for extraction
|
|
60
|
+
|
|
61
|
+
4. **Time Travel and Branching are Natural Consequences**
|
|
62
|
+
- Rewind to any point by replaying Events up to timestamp T
|
|
63
|
+
- Branches share history up to fork point, then diverge
|
|
64
|
+
- Each branch has independent Status and Semantic Memory
|
|
65
|
+
- "Time travel is a query, not a feature"
|
|
66
|
+
|
|
67
|
+
5. **5-Step Context Resumption Pattern**
|
|
68
|
+
- Query Event Memory (what happened)
|
|
69
|
+
- Query Artifact Store (what exists)
|
|
70
|
+
- Query Status Memory (what's pending)
|
|
71
|
+
- Query Semantic Memory (what it means)
|
|
72
|
+
- Assemble context for Agent
|
|
73
|
+
|
|
74
|
+
### Relevant Quotes/Sections Found
|
|
75
|
+
|
|
76
|
+
> "Event Memory is the immutable, append-only log of everything that occurred in the Workspace. This is the source of truth."
|
|
77
|
+
> Source: docs/05-MEMORY_MODEL.md, Section 3 Definition
|
|
78
|
+
|
|
79
|
+
> "Status Memory must be fully derivable from Event Memory. You must be able to delete Status Memory entirely, rebuild it from Events, get identical results."
|
|
80
|
+
> Source: docs/05-MEMORY_MODEL.md, Section 4.6 The Hard Rule
|
|
81
|
+
|
|
82
|
+
> "Semantic Memory advises but never controls. It may suggest, recommend, highlight. It may never block execution, override decisions, mutate artifacts, drive workflows."
|
|
83
|
+
> Source: docs/05-MEMORY_MODEL.md, Section 5.6 The Non-Authoritative Rule
|
|
84
|
+
|
|
85
|
+
> "Memory is the connective tissue that enables long-running, interruptible human work with perfect continuity and trust."
|
|
86
|
+
> Source: docs/05-MEMORY_MODEL.md, Section 17 Summary
|
|
87
|
+
|
|
88
|
+
> "No circular dependencies. Clean derivation hierarchy."
|
|
89
|
+
> Source: docs/05-MEMORY_MODEL.md, Section 6 Memory Composition
|
|
90
|
+
|
|
91
|
+
### Summary of Theme
|
|
92
|
+
|
|
93
|
+
The Three-Layer Memory Architecture is the foundational innovation of HumanWork that enables its core promises: interruptibility, auditability, and time travel.
|
|
94
|
+
|
|
95
|
+
**Layer 1: Event Memory (Facts)** - The immutable append-only log that records every meaningful event. This is the only source of truth. Technologies: EventStoreDB, append-only DBs, WAL.
|
|
96
|
+
|
|
97
|
+
**Layer 2: Status Memory (Operational Truth)** - Derived projections optimized for fast queries about current state. Ephemeral and recomputable. Technologies: Redis, PostgreSQL projections.
|
|
98
|
+
|
|
99
|
+
**Layer 3: Semantic Memory (Understanding)** - Derived knowledge graph capturing relationships, concepts, and patterns. Advisory only, never authoritative. Technologies: Neo4j, Graphiti, vector DBs.
|
|
100
|
+
|
|
101
|
+
The key insight is the strict derivation hierarchy: Event -> Status -> Semantic. No circular dependencies. This enables:
|
|
102
|
+
|
|
103
|
+
- **Time travel**: Replay events to any timestamp
|
|
104
|
+
- **Branching**: Fork at any event boundary, independent evolution
|
|
105
|
+
- **Resumption**: Any agent can continue any work with full context
|
|
106
|
+
- **Auditability**: Complete traceable history
|
|
107
|
+
- **Agent independence**: No hidden agent state required
|
|
108
|
+
|
|
109
|
+
The model explicitly forbids anti-patterns like treating Status Memory as authoritative, letting Semantic Memory drive execution, or bypassing Event Memory for performance.
|
|
110
|
+
|
|
111
|
+
## Proposed Spec Changes
|
|
112
|
+
|
|
113
|
+
- [ ] Clarify the distinction between Event Memory and Artifact Store (both immutable, but different purposes)
|
|
114
|
+
- [ ] Add concrete examples of Record types and their schema
|
|
115
|
+
- [ ] Define retention policy defaults for each layer
|
|
116
|
+
- [ ] Specify maximum acceptable latency for Status Memory queries
|
|
117
|
+
- [ ] Document conflict resolution when Semantic Memory inferences contradict
|
|
118
|
+
|
|
119
|
+
## Tool Evaluation
|
|
120
|
+
|
|
121
|
+
### What Worked Well
|
|
122
|
+
|
|
123
|
+
- `mdcontext search` quickly found all relevant documents and sections
|
|
124
|
+
- `mdcontext context --section` returned clean, well-formatted output with full section content
|
|
125
|
+
- `mdcontext context --sections` listing was invaluable for finding exact section names
|
|
126
|
+
- Keyword search with compound terms ("event memory", "status memory") worked well
|
|
127
|
+
- Token counts in section listings help estimate content size
|
|
128
|
+
|
|
129
|
+
### What Was Frustrating
|
|
130
|
+
|
|
131
|
+
- Initial attempt at context extraction failed due to positional argument confusion (thought section name was second positional, not a flag)
|
|
132
|
+
- Section name matching requires exact match including numbering prefix (e.g., "3. Layer 1: Event / Fact Memory" not just "Layer 1")
|
|
133
|
+
- No fuzzy/partial matching for section names
|
|
134
|
+
- Had to list sections first to get exact names, adding an extra step
|
|
135
|
+
- Search results capped at 10, potentially missing relevant content
|
|
136
|
+
|
|
137
|
+
### Confidence Level
|
|
138
|
+
|
|
139
|
+
[X] High / Medium / Low
|
|
140
|
+
|
|
141
|
+
The three-layer memory architecture is extremely well documented with clear definitions, properties, guarantees, anti-patterns, and implementation guidance. The documentation is comprehensive and internally consistent.
|
|
142
|
+
|
|
143
|
+
### Would Use Again? (1-5)
|
|
144
|
+
|
|
145
|
+
4 - The tool is effective for systematic exploration once you learn the patterns. The `--sections` listing feature is essential. The combination of broad search followed by targeted context extraction works well. Would rate 5 if section matching was more forgiving and search results weren't capped.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Report: C3 - Diver: Human-Agent Control
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
Deep-dive into: Human-Agent Control Model
|
|
6
|
+
|
|
7
|
+
## Command Log
|
|
8
|
+
|
|
9
|
+
| # | Command | Purpose | Result | Useful? |
|
|
10
|
+
| --- | ----------------------------------------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------- | --------- |
|
|
11
|
+
| 1 | `mdcontext --help` | Understand available commands | Full command list shown | Yes |
|
|
12
|
+
| 2 | `mdcontext tree` | List all markdown files | 23 files found | Yes |
|
|
13
|
+
| 3 | `mdcontext search "human control"` | Find human control content | 10 results across multiple files | Yes |
|
|
14
|
+
| 4 | `mdcontext search "control plane"` | Find control plane architecture | 10 results showing core authority layer | Yes |
|
|
15
|
+
| 5 | `mdcontext search "preemptive authority"` | Find preemptive authority details | 5 results with key definitions | Yes |
|
|
16
|
+
| 6 | `mdcontext search "interrupt"` | Find interruptibility patterns | 10 results showing guaranteed interrupts | Yes |
|
|
17
|
+
| 7 | `mdcontext tree docs/01-ARCHITECTURE.md` | Show document outline | Full section hierarchy (5037 tokens) | Yes |
|
|
18
|
+
| 8 | `mdcontext context docs/01-ARCHITECTURE.md --section "3. Control Plane"` | Get Control Plane section | Full section with responsibilities and authority model | Excellent |
|
|
19
|
+
| 9 | `mdcontext tree docs.amorphic/04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md` | Show collaboration model outline | Two-part structure revealed | Yes |
|
|
20
|
+
| 10 | `mdcontext context ... --section "The Authority Gradient"` | Get authority gradient details | Complete section on dynamic control spectrum | Excellent |
|
|
21
|
+
| 11 | `mdcontext context ... --section "Intervention Points"` | Get intervention details | Redirect, Override, Inject, Escalate actions | Excellent |
|
|
22
|
+
| 12 | `mdcontext search "checkpoint"` | Find checkpoint patterns | 10 results showing deliberate pause points | Yes |
|
|
23
|
+
| 13 | `mdcontext context docs/06-WORKFLOWS.md --section "Checkpoints"` | Get checkpoint details | Comprehensive checkpoint types and why they matter | Excellent |
|
|
24
|
+
| 14 | `mdcontext search "pause"` | Find pause control operations | 10 results showing control actions | Yes |
|
|
25
|
+
| 15 | `mdcontext context docs/02-PRIMITIVES.md --section "Control Actions"` | Get control action primitives | YAML schema for pause, resume, cancel, etc. | Excellent |
|
|
26
|
+
| 16 | `mdcontext search "human decision"` | Find human decision points | 8 results on explicit decision points | Yes |
|
|
27
|
+
| 17 | `mdcontext context docs/00-README.md --section "Core Principles"` | Get core principles | Human Control as explicit commitment | Excellent |
|
|
28
|
+
| 18 | `mdcontext context ... --section "Spectrum of Collaboration Modes"` | Get collaboration modes | Four modes: Instructional, Consultative, Supervisory, Exploratory | Excellent |
|
|
29
|
+
| 19 | `mdcontext search "governance"` | Find governance patterns | 10 results showing accountability structures | Yes |
|
|
30
|
+
| 20 | `mdcontext search "trust"` | Find trust-related concepts | 10 results showing designed trust model | Yes |
|
|
31
|
+
| 21 | `mdcontext search "autonomous"` | Find autonomous vs controlled context | 10 results contrasting with human control | Yes |
|
|
32
|
+
| 22 | `mdcontext context docs/01-ARCHITECTURE.md --section "Control Flow"` | Get control flow details | Three flows: Initiate, Interrupt, Resume | Excellent |
|
|
33
|
+
| 23 | `mdcontext search "override"` | Find override capabilities | 10 results showing override principle | Yes |
|
|
34
|
+
| 24 | `mdcontext context docs/06-WORKFLOWS.md --section "The Override Principle"` | Get override details | Every suggestion overridable, logged, not penalized | Excellent |
|
|
35
|
+
| 25 | `mdcontext search "directive"` | Find directive patterns | 4 results on control plane directives | Yes |
|
|
36
|
+
| 26 | `mdcontext context docs/01-ARCHITECTURE.md --section "Architectural Invariants"` | Get invariants | "No loss of human authority" is an invariant | Excellent |
|
|
37
|
+
| 27 | `mdcontext search "escalate OR escalation"` | Find escalation patterns | 10 results on escalation mechanisms | Yes |
|
|
38
|
+
| 28 | `mdcontext context ... --section "Event-Driven Transparency"` | Get transparency details | Every action becomes observable event | Excellent |
|
|
39
|
+
| 29 | `mdcontext context docs/01-ARCHITECTURE.md --section "Why This Architecture Works"` | Get architecture rationale | "Deep autonomy without loss of control" | Excellent |
|
|
40
|
+
| 30 | `mdcontext context docs/00-README.md --section "Key Differentiators"` | Get differentiators table | Control: Explicit & global vs Implicit | Excellent |
|
|
41
|
+
|
|
42
|
+
## Findings
|
|
43
|
+
|
|
44
|
+
### Key Discoveries
|
|
45
|
+
|
|
46
|
+
1. **Control Plane as Authority Layer**: The Control Plane is the system's central authority mechanism. It has "preemptive authority" over all execution - no agent, workflow, or job may refuse a control plane directive. This is the architectural guarantee of human control.
|
|
47
|
+
|
|
48
|
+
2. **Authority Gradient Concept**: HumanWork implements a dynamic "authority gradient" - humans can move anywhere along a spectrum from instructional (step-by-step) to supervisory (broad autonomy with monitoring) at any moment, even mid-execution.
|
|
49
|
+
|
|
50
|
+
3. **Checkpoints as Core Control Mechanism**: Checkpoints are explicitly called "the most important concept for human-first workflows." They provide deliberate pauses where humans are re-engaged, direction is confirmed, and escalation is considered.
|
|
51
|
+
|
|
52
|
+
4. **Four Collaboration Modes**: The system defines Instructional, Consultative, Supervisory, and Exploratory modes - each with different balances of human involvement and agent autonomy.
|
|
53
|
+
|
|
54
|
+
5. **Guaranteed Interruptibility**: Unlike "best-effort" interrupts in typical agent frameworks, HumanWork guarantees interruptibility as a core differentiator. This is achieved through immutable event records and control plane architecture.
|
|
55
|
+
|
|
56
|
+
6. **Override Principle**: Every workflow suggestion can be overridden by humans - including skipping phases, ignoring activities, bypassing checkpoints (with acknowledgment), or detaching workflows entirely. Overrides are logged but not penalized.
|
|
57
|
+
|
|
58
|
+
7. **Architectural Invariant**: "No loss of human authority" is explicitly listed as a system-wide invariant that guides all implementation decisions.
|
|
59
|
+
|
|
60
|
+
8. **Control Actions Primitive**: The system defines a formal schema for control actions: pause, resume, cancel, reassign, modify_metadata, inject_step, fork, terminate.
|
|
61
|
+
|
|
62
|
+
### Relevant Quotes/Sections Found
|
|
63
|
+
|
|
64
|
+
> "The Control Plane has **preemptive authority** over all execution. No agent, workflow, or job may refuse a control plane directive. This guarantees human control at all times."
|
|
65
|
+
> Source: docs/01-ARCHITECTURE.md, Authority Model section
|
|
66
|
+
|
|
67
|
+
> "Humans retain authority over execution at all times. Any step can be paused, redirected, modified, or terminated immediately."
|
|
68
|
+
> Source: docs/00-README.md, Core Principles
|
|
69
|
+
|
|
70
|
+
> "Critically, humans can move anywhere along this gradient at any moment, even mid-execution."
|
|
71
|
+
> Source: docs.amorphic/04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md, The Authority Gradient
|
|
72
|
+
|
|
73
|
+
> "Checkpoints are where: Human control is enforced, Cost is consciously acknowledged, Autonomy is bounded, Trust is built. Most agent systems lack this concept entirely."
|
|
74
|
+
> Source: docs/06-WORKFLOWS.md, Checkpoints (Guardrails)
|
|
75
|
+
|
|
76
|
+
> "Every workflow suggestion can be overridden by humans... Overrides are: Logged, Explained, Not penalized"
|
|
77
|
+
> Source: docs/06-WORKFLOWS.md, The Override Principle
|
|
78
|
+
|
|
79
|
+
> "No loss of human authority" [listed as architectural invariant]
|
|
80
|
+
> Source: docs/01-ARCHITECTURE.md, Architectural Invariants
|
|
81
|
+
|
|
82
|
+
> "The system doesn't break - it adapts. The workflow doesn't restart - it continues from the intervention point with new constraints."
|
|
83
|
+
> Source: docs.amorphic/04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md, Intervention Points
|
|
84
|
+
|
|
85
|
+
### Summary of Theme
|
|
86
|
+
|
|
87
|
+
The Human-Agent Control Model in HumanWork is fundamentally different from typical autonomous agent frameworks. Rather than treating human control as a constraint or afterthought, it is architected as the primary design principle.
|
|
88
|
+
|
|
89
|
+
**Core Philosophy**: "The system favors clarity, safety, and trust over raw autonomy."
|
|
90
|
+
|
|
91
|
+
**Key Architectural Elements**:
|
|
92
|
+
|
|
93
|
+
1. **Control Plane** - An always-active authority layer that governs (but doesn't participate in) execution
|
|
94
|
+
2. **Checkpoints** - Deliberate pause points for human re-engagement built into workflow design
|
|
95
|
+
3. **Authority Gradient** - Dynamic spectrum allowing humans to adjust autonomy level at any moment
|
|
96
|
+
4. **Intervention Points** - Every event boundary is an opportunity for human redirect, override, inject, or escalate
|
|
97
|
+
|
|
98
|
+
**Guarantees**:
|
|
99
|
+
|
|
100
|
+
- Preemptive authority (agents cannot refuse directives)
|
|
101
|
+
- Guaranteed interruptibility (not best-effort)
|
|
102
|
+
- All overrides logged but not penalized
|
|
103
|
+
- No loss of human authority (architectural invariant)
|
|
104
|
+
|
|
105
|
+
**Differentiation from Typical Frameworks**:
|
|
106
|
+
|
|
107
|
+
| Aspect | Typical | HumanWork |
|
|
108
|
+
| ---------------- | ----------- | ----------------- |
|
|
109
|
+
| Control | Implicit | Explicit & global |
|
|
110
|
+
| Interruptibility | Best-effort | Guaranteed |
|
|
111
|
+
| Trust | Assumed | Designed |
|
|
112
|
+
|
|
113
|
+
The model enables "deep autonomy without loss of control" - agents can operate with significant independence while humans retain the ability to intervene, redirect, or terminate at any moment. This is achieved through immutable event recording, the Control Plane architecture, and systematic checkpoint placement.
|
|
114
|
+
|
|
115
|
+
## Proposed Spec Changes
|
|
116
|
+
|
|
117
|
+
- [ ] Add explicit section on "Human Authority Guarantees" listing all control mechanisms
|
|
118
|
+
- [ ] Document the Control Plane API/interface more concretely (how do humans issue directives?)
|
|
119
|
+
- [ ] Add examples of authority gradient transitions (moving from Supervisory to Instructional mid-task)
|
|
120
|
+
- [ ] Clarify checkpoint enforcement mechanisms (how is "required" vs "optional" enforced technically?)
|
|
121
|
+
- [ ] Add comparison table showing HumanWork control model vs other frameworks (LangGraph, AutoGPT, etc.)
|
|
122
|
+
|
|
123
|
+
## Tool Evaluation
|
|
124
|
+
|
|
125
|
+
### What Worked Well
|
|
126
|
+
|
|
127
|
+
- `mdcontext search` with keyword queries was highly effective for finding relevant content
|
|
128
|
+
- `mdcontext context --section` was excellent for extracting focused, complete sections
|
|
129
|
+
- `mdcontext tree <file>` provided perfect document outlines for navigation
|
|
130
|
+
- Boolean operators (`OR`) worked as expected for combining search terms
|
|
131
|
+
- Search results showed line numbers and context, making it easy to understand matches
|
|
132
|
+
- The workflow of search -> tree -> context was very natural for deep-diving
|
|
133
|
+
|
|
134
|
+
### What Was Frustrating
|
|
135
|
+
|
|
136
|
+
- No way to search within a specific file (had to search globally then filter mentally)
|
|
137
|
+
- Could not request multiple sections in one `context` command
|
|
138
|
+
- No embeddings indexed, so semantic search unavailable (would have helped with concept exploration)
|
|
139
|
+
- Search result limit of 10 sometimes truncated useful results (no way to paginate or increase)
|
|
140
|
+
- Phrase search with multiple words ("pause resume terminate") returned 0 results - had to search individually
|
|
141
|
+
|
|
142
|
+
### Confidence Level
|
|
143
|
+
|
|
144
|
+
[X] High - I found comprehensive documentation on the human-agent control model across multiple files and was able to extract detailed information on the Control Plane, checkpoints, authority gradient, and intervention mechanisms.
|
|
145
|
+
|
|
146
|
+
### Would Use Again? (1-5)
|
|
147
|
+
|
|
148
|
+
**4** - Effective for focused documentation research. The search-tree-context workflow is well-designed for finding and extracting specific information. Would be a 5 if embeddings were available for semantic search and if there were better multi-section extraction options.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Report: C4 - Diver: Failure Analysis
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
Deep-dive into: Failure of Pure Automation - Understanding why current agent frameworks fail
|
|
6
|
+
|
|
7
|
+
## Command Log
|
|
8
|
+
|
|
9
|
+
| # | Command | Purpose | Result | Useful? |
|
|
10
|
+
| --- | --------------------------------------------------------------------------------------------- | -------------------------------- | ------------------------------------ | ------- |
|
|
11
|
+
| 1 | `mdcontext search "failure automation"` | Find failure content | 0 results (multi-word keyword issue) | No |
|
|
12
|
+
| 2 | `mdcontext search "brittleness"` | Find brittleness content | 6 results across docs | Yes |
|
|
13
|
+
| 3 | `mdcontext search "coordination trap"` | Find coordination trap | 2 results | Yes |
|
|
14
|
+
| 4 | `mdcontext context --help` | Learn context command syntax | Showed section filtering options | Yes |
|
|
15
|
+
| 5 | `mdcontext context --sections docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | List all sections | Found 6 failure modes | Yes |
|
|
16
|
+
| 6 | `mdcontext context --full --section "1.1" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get Brittleness section | Full content retrieved | Yes |
|
|
17
|
+
| 7 | `mdcontext context --full --section "1.2" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get Coordination Trap | Full content retrieved | Yes |
|
|
18
|
+
| 8 | `mdcontext context --full --section "1.3" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get Innovation Strangulation | Full content retrieved | Yes |
|
|
19
|
+
| 9 | `mdcontext context --full --section "1.4" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get Human Bottleneck Paradox | Full content retrieved | Yes |
|
|
20
|
+
| 10 | `mdcontext context --full --section "1.5" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get Context Collapse | Full content retrieved | Yes |
|
|
21
|
+
| 11 | `mdcontext context --full --section "1.6" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get Judgment Gap | Full content retrieved | Yes |
|
|
22
|
+
| 12 | `mdcontext search "autonomous agent"` | Find autonomous agent content | 3 results | Yes |
|
|
23
|
+
| 13 | `mdcontext search "judgment"` | Find judgment content | 10 results showing solution approach | Yes |
|
|
24
|
+
| 14 | `mdcontext context --full --section "1" docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md` | Get full document | Complete failure analysis | Yes |
|
|
25
|
+
| 15 | `mdcontext search "human-agent"` | Find collaboration model | 10 results | Yes |
|
|
26
|
+
| 16 | `mdcontext search "symbiosis"` | Find symbiosis concept | 2 results | Yes |
|
|
27
|
+
| 17 | `mdcontext context --sections docs.amorphic/01-EXECUTIVE_SUMMARY.md` | List exec summary sections | 4 sections found | Yes |
|
|
28
|
+
| 18 | `mdcontext context --full --section "1.1" docs.amorphic/01-EXECUTIVE_SUMMARY.md` | Get Core Innovation | Solution overview | Yes |
|
|
29
|
+
| 19 | `mdcontext search "enterprise adoption"` | Find enterprise context | 1 result in feedback.md | Yes |
|
|
30
|
+
| 20 | `mdcontext context --full --section "The Core Thesis" docs.llm/feedback.md` | Get enterprise adoption analysis | Core thesis on opacity/risk | Yes |
|
|
31
|
+
|
|
32
|
+
## Findings
|
|
33
|
+
|
|
34
|
+
### Key Discoveries
|
|
35
|
+
|
|
36
|
+
- The docs.amorphic/ folder contains a rigorous philosophical analysis of WHY pure automation fails in knowledge work
|
|
37
|
+
- Six distinct failure modes are identified, each with concrete examples
|
|
38
|
+
- The analysis establishes the intellectual foundation for why HumanWork's approach is necessary
|
|
39
|
+
- Enterprise adoption has stalled due to two core issues: Opacity and Risk
|
|
40
|
+
|
|
41
|
+
### Failure Modes Identified
|
|
42
|
+
|
|
43
|
+
#### 1. The Brittleness of Complete Systems
|
|
44
|
+
|
|
45
|
+
- Pure automation assumes complete knowledge of problem space
|
|
46
|
+
- Works for manufacturing/transactions, fails for knowledge work
|
|
47
|
+
- Combinatorial explosion of rules creates rigid systems
|
|
48
|
+
- **Key insight**: "The system becomes brittle not because any individual rule is wrong, but because the combinatorial explosion of rules creates a rigid lattice that cannot bend without breaking"
|
|
49
|
+
|
|
50
|
+
#### 2. The Coordination Trap
|
|
51
|
+
|
|
52
|
+
- Pure automation promises to eliminate coordination overhead
|
|
53
|
+
- Actually MULTIPLIES coordination by forcing human work into machine-readable formats
|
|
54
|
+
- Rich contextual communication gets decomposed into discrete units
|
|
55
|
+
- **Key insight**: "The tools become the work, rather than enablers of work"
|
|
56
|
+
|
|
57
|
+
#### 3. The Innovation Strangulation
|
|
58
|
+
|
|
59
|
+
- Pure automation actively inhibits exploratory/creative work
|
|
60
|
+
- Cannot accommodate "work that hasn't been work before"
|
|
61
|
+
- Creates perverse incentive: teams avoid innovative approaches because they're automation-incompatible
|
|
62
|
+
- **Key insight**: "The system optimizes for processable work rather than valuable work"
|
|
63
|
+
|
|
64
|
+
#### 4. The Human Bottleneck Paradox
|
|
65
|
+
|
|
66
|
+
- Pure automation tries to route around humans as bottlenecks
|
|
67
|
+
- In knowledge work, humans are often the HIGHEST-bandwidth component
|
|
68
|
+
- Creates new bottlenecks: system configuration, exception handling, cross-system integration
|
|
69
|
+
- **Key insight**: "The very attempts to systematize human judgment create new categories of problems that require... human judgment to resolve"
|
|
70
|
+
|
|
71
|
+
#### 5. The Context Collapse
|
|
72
|
+
|
|
73
|
+
- Pure automation treats context as configuration rather than conversation
|
|
74
|
+
- Context is fluid - shifts with circumstance, evolves with understanding
|
|
75
|
+
- Automation has no mechanism for negotiation, no capacity for doubt
|
|
76
|
+
- **Key insight**: "When automation encounters the unexpected, it has nowhere to turn. The rigid pathways that make it fast and reliable become brittle barriers."
|
|
77
|
+
|
|
78
|
+
#### 6. The Judgment Gap
|
|
79
|
+
|
|
80
|
+
- Judgment is the ability to recognize when existing rules don't apply
|
|
81
|
+
- Work increasingly happens in spaces between the known - edge cases, exceptions
|
|
82
|
+
- Even sophisticated AI cannot make situated judgments humans make instinctively
|
|
83
|
+
- **Key insight**: "Systems that handle 80% of cases flawlessly but create chaos in the remaining 20%. And often, it's precisely those exceptional 20% of cases that matter most."
|
|
84
|
+
|
|
85
|
+
### Relevant Quotes/Sections Found
|
|
86
|
+
|
|
87
|
+
> "The allure of pure automation is irresistible to the technical mind. The promise is elegant: replace human unpredictability with algorithmic precision, eliminate coordination overhead through perfect orchestration, achieve scale through mechanical repetition. Yet in the domain of knowledge work... pure automation consistently fails not because it's implemented poorly, but because it's conceptually mismatched to the substrate it attempts to govern."
|
|
88
|
+
> Source: docs.amorphic/02-THE_FAILURE_OF_PURE_AUTOMATION.md, Introduction
|
|
89
|
+
|
|
90
|
+
> "Enterprise adoption of autonomous agents has stalled due to **Opacity** (we don't know how the agent works) and **Risk** (we can't trust it to run unsupervised)."
|
|
91
|
+
> Source: docs.llm/feedback.md, The Core Thesis
|
|
92
|
+
|
|
93
|
+
> "Human-AI Symbiosis: This isn't about making AI more human or humans more machine-like. Instead, Amorphic creates genuine cognitive partnerships where each intelligence type contributes its strengths. Humans bring intuition, creativity, and contextual judgment. AI provides systematic analysis, pattern recognition, and execution consistency. The magic happens in their interaction."
|
|
94
|
+
> Source: docs.amorphic/01-EXECUTIVE_SUMMARY.md, The Core Innovation
|
|
95
|
+
|
|
96
|
+
> "The fundamental question in human-agent collaboration isn't whether humans or agents are better at specific tasks—it's how to design interfaces that amplify human judgment while leveraging computational power."
|
|
97
|
+
> Source: docs.amorphic/04-THE_HUMAN-AGENT_COLLABORATION_MODEL.md
|
|
98
|
+
|
|
99
|
+
### Summary of Theme
|
|
100
|
+
|
|
101
|
+
The Failure of Pure Automation analysis provides the philosophical and practical foundation for why HumanWork's approach is necessary. The key critique is that pure automation is **conceptually mismatched** to knowledge work for six fundamental reasons:
|
|
102
|
+
|
|
103
|
+
1. Knowledge work resists enumeration - too many states/edge cases
|
|
104
|
+
2. Coordination overhead transforms rather than disappears
|
|
105
|
+
3. Innovation requires spaces automation cannot accommodate
|
|
106
|
+
4. Humans are bandwidth, not bottlenecks in knowledge work
|
|
107
|
+
5. Context is conversational, not configurable
|
|
108
|
+
6. Judgment emerges from interaction, not rules
|
|
109
|
+
|
|
110
|
+
The solution is not better automation, but **Human-AI Symbiosis** - cognitive partnerships where human judgment guides computational execution while maintaining granular control. This directly addresses:
|
|
111
|
+
|
|
112
|
+
- **Brittleness** -> Fluid human intervention points
|
|
113
|
+
- **Coordination Trap** -> Rich contextual communication preserved
|
|
114
|
+
- **Innovation** -> Emergent patterns supported, not suppressed
|
|
115
|
+
- **Human Bottleneck** -> Humans as high-bandwidth collaborators
|
|
116
|
+
- **Context Collapse** -> Context as conversation, evolving
|
|
117
|
+
- **Judgment Gap** -> Human judgment at decision points
|
|
118
|
+
|
|
119
|
+
## Proposed Spec Changes
|
|
120
|
+
|
|
121
|
+
- [ ] Add a "Failure Modes Addressed" section in the spec that maps HumanWork features to specific failure modes
|
|
122
|
+
- [ ] Include the 80/20 insight: emphasize that HumanWork shines on the exceptional 20% of cases
|
|
123
|
+
- [ ] Document the "tools become the work" anti-pattern as a key problem statement
|
|
124
|
+
- [ ] Add "Opacity and Risk" as top-level enterprise adoption barriers to address
|
|
125
|
+
- [ ] Include concrete examples of each failure mode with corresponding HumanWork solutions
|
|
126
|
+
|
|
127
|
+
## Tool Evaluation
|
|
128
|
+
|
|
129
|
+
### What Worked Well
|
|
130
|
+
|
|
131
|
+
- `mdcontext context --sections` is excellent for discovering document structure
|
|
132
|
+
- `mdcontext context --full --section` retrieved complete sections cleanly
|
|
133
|
+
- Section numbering system (1.1, 1.2, etc.) is intuitive
|
|
134
|
+
- Search results show context lines around matches
|
|
135
|
+
- Token counts on sections help understand document scope
|
|
136
|
+
|
|
137
|
+
### What Was Frustrating
|
|
138
|
+
|
|
139
|
+
- First `context` attempt failed due to wrong syntax (tried passing section name as second argument)
|
|
140
|
+
- Multi-word searches like "failure automation" returned 0 results even though both words appear
|
|
141
|
+
- No embeddings available, so semantic search not possible
|
|
142
|
+
- Help text was needed to understand context command properly
|
|
143
|
+
- Some duplicate content in docs.llm/ mirrors docs.amorphic/ which can be confusing
|
|
144
|
+
|
|
145
|
+
### Confidence Level
|
|
146
|
+
|
|
147
|
+
[X] High - The failure analysis content was comprehensive and well-structured. All six failure modes were retrieved in full with excellent context.
|
|
148
|
+
|
|
149
|
+
### Would Use Again? (1-5)
|
|
150
|
+
|
|
151
|
+
**4** - Very effective for structured markdown exploration. The section filtering via `--section` with number syntax is powerful once you know it exists. Lost one point for initial learning curve with context command syntax and multi-word search limitations. Would be 5/5 with embeddings enabled.
|