sanook-cli 0.4.0 → 0.5.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/.env.example +19 -0
- package/CHANGELOG.md +144 -0
- package/README.md +153 -20
- package/README.th.md +136 -0
- package/dist/agentContext.js +4 -0
- package/dist/approval.js +6 -0
- package/dist/bin.js +394 -51
- package/dist/brain.js +92 -59
- package/dist/brand.js +47 -0
- package/dist/checkpoint.js +37 -0
- package/dist/commands.js +86 -6
- package/dist/compaction.js +76 -5
- package/dist/config.js +100 -12
- package/dist/cost.js +60 -3
- package/dist/doctor.js +92 -0
- package/dist/gateway/auth.js +2 -2
- package/dist/gateway/ledger.js +2 -2
- package/dist/gateway/scheduler.js +1 -0
- package/dist/gateway/serve.js +6 -4
- package/dist/gateway/server.js +10 -2
- package/dist/git.js +11 -2
- package/dist/hooks.js +43 -17
- package/dist/knowledge.js +48 -49
- package/dist/loop.js +182 -66
- package/dist/lsp/client.js +173 -0
- package/dist/lsp/framing.js +56 -0
- package/dist/lsp/index.js +138 -0
- package/dist/lsp/servers.js +82 -0
- package/dist/mcp-server.js +244 -0
- package/dist/mcp.js +184 -29
- package/dist/memory-store.js +559 -0
- package/dist/memory.js +143 -29
- package/dist/orchestrate.js +150 -0
- package/dist/providers/codex.js +2 -2
- package/dist/providers/keys.js +3 -2
- package/dist/providers/registry.js +133 -1
- package/dist/repomap.js +93 -0
- package/dist/search/chunk.js +158 -0
- package/dist/search/embed-store.js +187 -0
- package/dist/search/engine.js +203 -0
- package/dist/search/fuse.js +35 -0
- package/dist/search/index-core.js +187 -0
- package/dist/search/indexer.js +241 -0
- package/dist/search/store.js +77 -0
- package/dist/session.js +42 -8
- package/dist/skill-install.js +10 -10
- package/dist/skills.js +12 -9
- package/dist/summarize.js +31 -0
- package/dist/tools/bash.js +21 -2
- package/dist/tools/diagnostics.js +41 -0
- package/dist/tools/edit.js +29 -7
- package/dist/tools/index.js +8 -1
- package/dist/tools/list.js +7 -2
- package/dist/tools/permission.js +90 -9
- package/dist/tools/read.js +23 -4
- package/dist/tools/remember.js +1 -1
- package/dist/tools/sandbox.js +61 -0
- package/dist/tools/search.js +105 -4
- package/dist/tools/task.js +195 -29
- package/dist/tools/timeout.js +35 -0
- package/dist/tools/util.js +10 -0
- package/dist/tools/write.js +6 -4
- package/dist/trust.js +89 -0
- package/dist/ui/app.js +218 -27
- package/dist/ui/banner.js +4 -9
- package/dist/ui/history.js +30 -0
- package/dist/ui/mentions.js +44 -0
- package/dist/ui/setup.js +6 -5
- package/dist/ui/useEditor.js +83 -0
- package/dist/update.js +114 -0
- package/dist/worktree.js +173 -0
- package/package.json +11 -5
- package/scripts/postinstall.mjs +33 -0
- package/second-brain/.agents/_Index.md +30 -0
- package/second-brain/.agents/skills/_Index.md +30 -0
- package/second-brain/.agents/workflows/_Index.md +30 -0
- package/second-brain/AGENTS.md +4 -4
- package/second-brain/Acceptance/_Index.md +30 -0
- package/second-brain/Acceptance/golden-case-template.md +39 -0
- package/second-brain/Areas/_Index.md +30 -0
- package/second-brain/Bugs/System-OS/_Index.md +30 -0
- package/second-brain/Bugs/_Index.md +30 -0
- package/second-brain/CLAUDE.md +4 -1
- package/second-brain/Checklists/_Index.md +30 -0
- package/second-brain/Checklists/preflight-postflight-template.md +29 -0
- package/second-brain/Distillations/_Index.md +30 -0
- package/second-brain/Entities/_Index.md +30 -0
- package/second-brain/Entities/entity-template.md +33 -0
- package/second-brain/Evals/_Index.md +30 -0
- package/second-brain/Evals/correction-pairs.md +24 -0
- package/second-brain/Evals/failure-taxonomy.md +24 -0
- package/second-brain/Evals/golden-set.md +25 -0
- package/second-brain/Evals/quality-ledger.md +23 -0
- package/second-brain/Evals/self-eval-rubric.md +23 -0
- package/second-brain/GEMINI.md +4 -4
- package/second-brain/Goals/_Index.md +30 -0
- package/second-brain/Handoffs/_Index.md +30 -0
- package/second-brain/Home.md +7 -0
- package/second-brain/Intake/Raw Sources/_Index.md +30 -0
- package/second-brain/Intake/_Index.md +30 -0
- package/second-brain/Intake/_Quarantine/_Index.md +30 -0
- package/second-brain/Learning/_Index.md +30 -0
- package/second-brain/Playbooks/_Index.md +30 -0
- package/second-brain/Playbooks/playbook-template.md +23 -0
- package/second-brain/Projects/_Index.md +30 -0
- package/second-brain/Prompts/_Index.md +30 -0
- package/second-brain/README.md +2 -1
- package/second-brain/Research/_Index.md +30 -0
- package/second-brain/Retrospectives/_Index.md +30 -0
- package/second-brain/Reviews/_Index.md +30 -0
- package/second-brain/Runbooks/_Index.md +30 -0
- package/second-brain/Runbooks/eval-loop.md +24 -0
- package/second-brain/Sessions/_Index.md +30 -0
- package/second-brain/Shared/AI-Context-Index.md +20 -0
- package/second-brain/Shared/AI-Threads/_Index.md +30 -0
- package/second-brain/Shared/Archive/_Index.md +30 -0
- package/second-brain/Shared/Assets/_Index.md +30 -0
- package/second-brain/Shared/Context-Packs/_Index.md +30 -0
- package/second-brain/Shared/Context7-Docs/_Index.md +30 -0
- package/second-brain/Shared/Coordination/NOW.md +28 -0
- package/second-brain/Shared/Coordination/_Index.md +30 -0
- package/second-brain/Shared/Coordination/agent-registry.md +24 -0
- package/second-brain/Shared/Coordination/task-board/_Index.md +30 -0
- package/second-brain/Shared/Coordination/task-board/task-template.md +43 -0
- package/second-brain/Shared/Coordination/task-board.md +32 -0
- package/second-brain/Shared/Core-Facts/_Index.md +30 -0
- package/second-brain/Shared/Decision-Memory/_Index.md +30 -0
- package/second-brain/Shared/Glossary/_Index.md +30 -0
- package/second-brain/Shared/Memory-Inbox/_Index.md +30 -0
- package/second-brain/Shared/Operating-State/_Index.md +30 -0
- package/second-brain/Shared/Prompting/_Index.md +30 -0
- package/second-brain/Shared/Provenance/_Index.md +30 -0
- package/second-brain/Shared/Rules/_Index.md +30 -0
- package/second-brain/Shared/Rules/contextual-note-rule.md +30 -0
- package/second-brain/Shared/Rules/frontmatter-standard.md +10 -0
- package/second-brain/Shared/Rules/memory-write-protocol.md +28 -0
- package/second-brain/Shared/Rules/procedural-runbook-header.md +40 -0
- package/second-brain/Shared/Rules/review-and-staleness-policy.md +22 -0
- package/second-brain/Shared/Rules/rules-formatting.md +34 -0
- package/second-brain/Shared/Scripts/_Index.md +30 -0
- package/second-brain/Shared/Scripts-Archive/_Index.md +30 -0
- package/second-brain/Shared/Tech-Standards/_Index.md +30 -0
- package/second-brain/Shared/Tech-Standards/verification-standard.md +40 -0
- package/second-brain/Shared/User-Memory/_Index.md +30 -0
- package/second-brain/Shared/User-Persona/_Index.md +30 -0
- package/second-brain/Shared/User-Persona/owner-profile.md +25 -0
- package/second-brain/Shared/Working-Memory/_Index.md +30 -0
- package/second-brain/Shared/_Index.md +30 -0
- package/second-brain/Shared/mcp-servers/_Index.md +30 -0
- package/second-brain/Skills/_Index.md +30 -0
- package/second-brain/Templates/_Index.md +30 -0
- package/second-brain/Templates/bug.md +2 -0
- package/second-brain/Templates/handoff.md +2 -0
- package/second-brain/Templates/session.md +2 -0
- package/second-brain/Tools/_Index.md +30 -0
- package/second-brain/Traces/_Index.md +30 -0
- package/second-brain/Vault Structure Map.md +33 -1
- package/second-brain/copilot/_Index.md +30 -0
- package/skills/audit-license-compliance/SKILL.md +117 -0
- package/skills/author-codemod/SKILL.md +110 -0
- package/skills/build-audit-logging/SKILL.md +112 -0
- package/skills/build-cdc-streaming-pipeline/SKILL.md +123 -0
- package/skills/build-cli-tool/SKILL.md +108 -0
- package/skills/build-data-table/SKILL.md +141 -0
- package/skills/build-native-mobile-ui/SKILL.md +154 -0
- package/skills/build-offline-first-sync/SKILL.md +118 -0
- package/skills/build-realtime-channel/SKILL.md +122 -0
- package/skills/build-vector-search/SKILL.md +131 -0
- package/skills/compose-local-dev-stack/SKILL.md +149 -0
- package/skills/configure-bundler-build/SKILL.md +166 -0
- package/skills/configure-dns-tls/SKILL.md +142 -0
- package/skills/configure-reverse-proxy-lb/SKILL.md +129 -0
- package/skills/configure-security-headers-csp/SKILL.md +122 -0
- package/skills/contract-testing/SKILL.md +140 -0
- package/skills/datetime-timezone-correctness/SKILL.md +125 -0
- package/skills/debug-ci-pipeline-failure/SKILL.md +134 -0
- package/skills/debug-flaky-tests/SKILL.md +128 -0
- package/skills/defend-llm-prompt-injection/SKILL.md +110 -0
- package/skills/deliver-webhooks/SKILL.md +116 -0
- package/skills/design-api-pagination/SKILL.md +144 -0
- package/skills/design-authorization-model/SKILL.md +119 -0
- package/skills/design-backup-dr-recovery/SKILL.md +113 -0
- package/skills/design-event-sourcing-cqrs/SKILL.md +143 -0
- package/skills/design-multi-tenancy/SKILL.md +100 -0
- package/skills/design-protobuf-grpc-service/SKILL.md +146 -0
- package/skills/design-relational-schema/SKILL.md +129 -0
- package/skills/design-search-index-infra/SKILL.md +151 -0
- package/skills/design-state-machine/SKILL.md +108 -0
- package/skills/design-token-system/SKILL.md +109 -0
- package/skills/distributed-locks-leases/SKILL.md +120 -0
- package/skills/encrypt-sensitive-data/SKILL.md +148 -0
- package/skills/feature-flags-rollout/SKILL.md +130 -0
- package/skills/file-upload-object-storage/SKILL.md +107 -0
- package/skills/fuzz-dynamic-security-test/SKILL.md +111 -0
- package/skills/harden-llm-app-reliability/SKILL.md +126 -0
- package/skills/i18n-localization-setup/SKILL.md +113 -0
- package/skills/idempotency-keys/SKILL.md +107 -0
- package/skills/implement-push-notifications/SKILL.md +142 -0
- package/skills/ingest-webhook-secure/SKILL.md +120 -0
- package/skills/integrate-oauth-oidc/SKILL.md +126 -0
- package/skills/load-stress-test/SKILL.md +129 -0
- package/skills/map-privacy-data-gdpr/SKILL.md +146 -0
- package/skills/model-nosql-data/SKILL.md +118 -0
- package/skills/money-decimal-arithmetic/SKILL.md +123 -0
- package/skills/monitor-ml-drift/SKILL.md +109 -0
- package/skills/numeric-precision-units/SKILL.md +144 -0
- package/skills/optimize-llm-cost-latency/SKILL.md +103 -0
- package/skills/optimize-react-rerenders/SKILL.md +124 -0
- package/skills/orchestrate-agent-workflow/SKILL.md +100 -0
- package/skills/payments-billing-integration/SKILL.md +114 -0
- package/skills/pin-toolchain-versions/SKILL.md +116 -0
- package/skills/plan-strangler-migration/SKILL.md +95 -0
- package/skills/property-based-testing/SKILL.md +108 -0
- package/skills/publish-package-registry/SKILL.md +130 -0
- package/skills/recover-git-state/SKILL.md +119 -0
- package/skills/remediate-web-vulnerabilities/SKILL.md +125 -0
- package/skills/resilience-timeouts-retries/SKILL.md +104 -0
- package/skills/resolve-merge-rebase-conflict/SKILL.md +97 -0
- package/skills/rewrite-git-history/SKILL.md +109 -0
- package/skills/scaffold-cross-platform-app/SKILL.md +137 -0
- package/skills/schema-evolution-compatibility/SKILL.md +121 -0
- package/skills/send-transactional-email/SKILL.md +126 -0
- package/skills/serve-deploy-ml-model/SKILL.md +107 -0
- package/skills/setup-cdn-edge-waf/SKILL.md +107 -0
- package/skills/setup-devcontainer-env/SKILL.md +131 -0
- package/skills/setup-lint-format-precommit/SKILL.md +140 -0
- package/skills/setup-monorepo-tooling/SKILL.md +125 -0
- package/skills/ship-mobile-app-store-release/SKILL.md +137 -0
- package/skills/structured-output-llm/SKILL.md +86 -0
- package/skills/supply-chain-sbom-provenance/SKILL.md +120 -0
- package/skills/test-data-factories/SKILL.md +158 -0
- package/skills/threat-model-stride/SKILL.md +123 -0
- package/skills/train-evaluate-ml-model/SKILL.md +109 -0
- package/skills/unicode-text-correctness/SKILL.md +109 -0
- package/skills/visual-regression-testing/SKILL.md +120 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, projects]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Projects
|
|
10
|
+
|
|
11
|
+
> workspace ของงานจริง — 1 โฟลเดอร์ = 1 โปรเจค
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
deliverable + overview/context/current-state ของ project
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
ความรู้ทั่วไป (→Learning) · log งาน (→Sessions)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Projects/_Index]]"` และท้ายไฟล์ `up:: [[Projects/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, prompts]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Prompts
|
|
10
|
+
|
|
11
|
+
> prompt text/template ที่หยิบมารันได้ทันที
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
prompt/execution standard ต่อ task-family
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
fixtures (→Acceptance) · tactic (→Playbooks)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Prompts/_Index]]"` และท้ายไฟล์ `up:: [[Prompts/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
package/second-brain/README.md
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
1. เปิดโฟลเดอร์นี้ใน **Obsidian** (Open folder as vault)
|
|
24
24
|
2. ให้ AI agent อ่าน `Shared/AI-Context-Index.md` ก่อนทำงานเสมอ
|
|
25
|
-
3.
|
|
25
|
+
3. ก่อนสร้างหรือย้ายโน้ต ให้เลือกปลายทางจาก `Vault Structure Map.md` แล้วอ่าน `_Index.md` ของโฟลเดอร์นั้นเพื่อทำตาม **AI Routing Contract**
|
|
26
|
+
4. constitution อยู่ที่ `CLAUDE.md` / `GEMINI.md` / `AGENTS.md` — กฎปฏิบัติของ AI
|
|
26
27
|
|
|
27
28
|
## ปรับให้เป็นของคุณ
|
|
28
29
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, research]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Research
|
|
10
|
+
|
|
11
|
+
> finding ที่อิงแหล่งภายนอก (มี source::)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
สรุปอิงแหล่ง + market scan + citation
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
ความรู้ที่กลั่นเอง (→Learning)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Research/_Index]]"` และท้ายไฟล์ `up:: [[Research/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, retrospectives]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Retrospectives
|
|
10
|
+
|
|
11
|
+
> reflection หลังงาน (event-triggered)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
what worked/failed หลังงานเสร็จ
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
review ตามรอบเวลา (→Reviews)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Retrospectives/_Index]]"` และท้ายไฟล์ `up:: [[Retrospectives/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, reviews]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Reviews
|
|
10
|
+
|
|
11
|
+
> review ตาม cadence (time-triggered)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
weekly/monthly + vault health + consolidation trace
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
reflection รายงาน (→Retrospectives)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Reviews/_Index]]"` และท้ายไฟล์ `up:: [[Reviews/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, runbooks]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Runbooks
|
|
10
|
+
|
|
11
|
+
> prose how-to ที่อ่านแล้วทำตามเอง
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
ขั้นตอน setup/deploy/maintain + loop driver
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
runnable unit (→Skills)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Runbooks/_Index]]"` และท้ายไฟล์ `up:: [[Runbooks/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [runbook, eval, loop]
|
|
3
|
+
note_type: runbook
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Runbooks/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Runbook: Eval Loop (driver ของ Evals/)
|
|
10
|
+
|
|
11
|
+
> รัน quality loop — error-analysis + binary self-eval + Reflexion → ของที่ Evals/ เก็บไว้ถูกใช้จริง
|
|
12
|
+
|
|
13
|
+
## Steps
|
|
14
|
+
|
|
15
|
+
1. **Self-eval** — หลังงานไม่ trivial: ตอบ [[Evals/self-eval-rubric]] (binary y/n)
|
|
16
|
+
2. **Log** — บันทึกผลลง [[Evals/quality-ledger]] (append)
|
|
17
|
+
3. **Classify failure** — ข้อที่ "n" → จัดเข้า [[Evals/failure-taxonomy]] (หรือเพิ่มหมวด)
|
|
18
|
+
4. **Correction pair** — เขียน ❌→✅ + บทเรียนลง [[Evals/correction-pairs]]
|
|
19
|
+
5. **Promote** — บทเรียนที่เห็น ≥3 ครั้ง → [[Playbooks/_Index]] (tactic) หรือ [[Distillations/_Index]] (principle)
|
|
20
|
+
6. **Regression** — เทียบกับ [[Evals/golden-set]] ว่าไม่ทำพังของที่เคยถูก
|
|
21
|
+
|
|
22
|
+
> ทำเป็นส่วนหนึ่งของ [[Runbooks/sleep-time-consolidation]] (รอบ) หรือ ad-hoc หลังงานสำคัญ
|
|
23
|
+
|
|
24
|
+
up:: [[Runbooks/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, sessions]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Sessions
|
|
10
|
+
|
|
11
|
+
> flat chronological log ของงาน (YYYY-MM-DD-<topic>.md)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
session log 7 หัวข้อ + checkpoint
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
code/config · subfolder (Sessions = flat เสมอ)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Sessions/_Index]]"` และท้ายไฟล์ `up:: [[Sessions/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -28,14 +28,28 @@ ai_surface: hot
|
|
|
28
28
|
4. [[Shared/Decision-Memory/decision-log]] — ตัดสินใจอะไรไปแล้ว
|
|
29
29
|
5. งาน project → [[Projects/_Index]] → overview → context → current-state
|
|
30
30
|
|
|
31
|
+
## Default Write Path (ก่อนสร้าง/แก้โน้ต)
|
|
32
|
+
|
|
33
|
+
1. Classify artifact: project work, session log, decision, preference, source, reusable skill, runbook, or temporary scratch
|
|
34
|
+
2. อ่าน [[Vault Structure Map]] เพื่อเลือก canonical home เพียงที่เดียว
|
|
35
|
+
3. เปิด `_Index.md` ของโฟลเดอร์ปลายทาง แล้วทำตาม **AI Routing Contract**
|
|
36
|
+
4. Search ก่อนเขียน: ถ้า note เดิมมีอยู่แล้วให้ merge/update ไม่ append ซ้ำ
|
|
37
|
+
5. หลังเขียน: ใส่ `parent` + `up::`, link กลับ project/session/source/decision ที่เกี่ยวข้อง, แล้วบันทึก evidence ที่ verify แล้ว
|
|
38
|
+
|
|
31
39
|
## Memory Routing (เจออะไร เก็บที่ไหน — §4)
|
|
32
40
|
|
|
33
41
|
| สิ่งที่พบ | → |
|
|
34
42
|
|---|---|
|
|
35
43
|
| preference ใหม่ | [[Shared/User-Memory/user-preferences]] |
|
|
36
44
|
| decision สำคัญ | [[Shared/Decision-Memory/decision-log]] |
|
|
45
|
+
| priority/current focus เปลี่ยน | [[Shared/Operating-State/current-state]] |
|
|
46
|
+
| session checkpoint / งานจบ | `Sessions/YYYY-MM-DD-<topic>.md` |
|
|
37
47
|
| ยังไม่ชัด/ขัดกัน | [[Shared/Memory-Inbox/memory-inbox]] |
|
|
38
48
|
| invariant truth | [[Shared/Core-Facts/protected-facts]] |
|
|
49
|
+
| finding ที่อิง source ภายนอก | `Research/<topic>.md` + `source::` |
|
|
50
|
+
| scratch ระหว่างงานเดียว | `Shared/Working-Memory/<topic>.md` |
|
|
51
|
+
| expected output fixture | [[Acceptance/golden-case-template]] |
|
|
52
|
+
| pre/postflight gate | [[Checklists/preflight-postflight-template]] |
|
|
39
53
|
| entity/person/org page | `Entities/<name>.md` |
|
|
40
54
|
| อื่นๆ / ไม่แน่ใจว่าโฟลเดอร์ไหน | [[Vault Structure Map]] |
|
|
41
55
|
|
|
@@ -44,6 +58,12 @@ ai_surface: hot
|
|
|
44
58
|
- **ก่อนประกอบ context เสมอ** → [[Shared/Rules/context-assembly-policy]] (head/tail + budget, กัน context-rot)
|
|
45
59
|
- ingest ของนอก → [[Runbooks/ingest-quarantine]] · fact → [[Shared/Rules/frontmatter-standard]] (bi-temporal + `source::`)
|
|
46
60
|
- script ทำซ้ำ → [[Shared/Rules/skills-admission]] (Skills/) · consolidate → [[Runbooks/sleep-time-consolidation]]
|
|
61
|
+
- หลาย agent ทำพร้อมกัน → อ่าน [[Shared/Coordination/NOW]] ก่อนแตะ vault · เขียน/แก้ fact → [[Shared/Rules/memory-write-protocol]] (ADD/UPDATE/DELETE/NOOP)
|
|
62
|
+
- สร้าง durable note ใหม่ → [[Shared/Rules/contextual-note-rule]] + [[Shared/Rules/rules-formatting]]
|
|
63
|
+
- ทำ runbook/procedure → [[Shared/Rules/procedural-runbook-header]]
|
|
64
|
+
- งาน technical/release → [[Shared/Tech-Standards/verification-standard]]
|
|
65
|
+
- งานหลาย session/หลาย agent → overview [[Shared/Coordination/task-board]] · task cards [[Shared/Coordination/task-board/_Index]] · registry [[Shared/Coordination/agent-registry]]
|
|
66
|
+
- acceptance/checklist/entity ใหม่ → [[Acceptance/golden-case-template]] · [[Checklists/preflight-postflight-template]] · [[Entities/entity-template]]
|
|
47
67
|
|
|
48
68
|
## Current Snapshot
|
|
49
69
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, ai-threads]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# AI-Threads
|
|
10
|
+
|
|
11
|
+
> saved AI reasoning/conversation trail (ไม่ใช่ source of truth)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
thread ที่เก็บไว้ review/resume/promote
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
durable decision (promote → Decision-Memory)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/AI-Threads/_Index]]"` และท้ายไฟล์ `up:: [[Shared/AI-Threads/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, archive]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Archive
|
|
10
|
+
|
|
11
|
+
> cold storage (ไม่ลบ)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
โน้ต stale/retired ที่ออกจาก retrieval
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
ของที่ยังใช้
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Archive/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Archive/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, assets]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Assets
|
|
10
|
+
|
|
11
|
+
> รูป/logo/binary ของ vault
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
image/logo/asset
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
โน้ต .md
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Assets/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Assets/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, context-packs]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Context-Packs
|
|
10
|
+
|
|
11
|
+
> full-context bundle ต่อ domain/task-type
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
pack รวม context พร้อมโหลด
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
โน้ตเดี่ยว (→ปลายทางปกติ)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Context-Packs/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Context-Packs/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, context7-docs]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Context7-Docs
|
|
10
|
+
|
|
11
|
+
> cached external lib doc (regenerable — gitignore)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
cache ของ context7/lib doc
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
durable knowledge (→Learning/Research)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Context7-Docs/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Context7-Docs/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/_Index]]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [coordination, baton, now]
|
|
3
|
+
note_type: registry
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Coordination/_Index]]"
|
|
7
|
+
ai_surface: hot
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# NOW — Multi-Agent Baton
|
|
11
|
+
|
|
12
|
+
> **อ่านก่อนแตะ vault ถ้ามีหลาย agent ทำงานพร้อมกัน** — กันชนกัน (single agent ข้ามได้)
|
|
13
|
+
|
|
14
|
+
## Active
|
|
15
|
+
|
|
16
|
+
- **agent:** _(ใครกำลังทำ — ว่าง = ไม่มีใคร)_
|
|
17
|
+
- **working on:** _(งานอะไร + ไฟล์/โฟลเดอร์ที่แตะ)_
|
|
18
|
+
- **since:** _(เวลา)_
|
|
19
|
+
|
|
20
|
+
## Hand-off / Next
|
|
21
|
+
|
|
22
|
+
_(งานค้างส่งต่อ → รายละเอียดเต็มไป [[Handoffs/_Index]])_
|
|
23
|
+
|
|
24
|
+
## Tie-break
|
|
25
|
+
|
|
26
|
+
ชนกัน → ลำดับ claude < codex < gemini (ตัวหลังยอม) · เขียน session ไฟล์ unique ต่อ agent (`YYYY-MM-DD-<agent>-<topic>.md`)
|
|
27
|
+
|
|
28
|
+
up:: [[Shared/Coordination/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, coordination]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Coordination
|
|
10
|
+
|
|
11
|
+
> live coordination ของหลาย agent พร้อมกัน
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
NOW.md baton + task-board + agent-registry
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
เอกสารส่งมอบครั้งเดียว (→Handoffs)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Coordination/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Coordination/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/_Index]]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [coordination, agents, registry]
|
|
3
|
+
note_type: registry
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Coordination/_Index]]"
|
|
7
|
+
ai_surface: hot
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Agent Registry
|
|
11
|
+
|
|
12
|
+
> Who is allowed to touch the vault and what each agent should read first.
|
|
13
|
+
|
|
14
|
+
| Agent | Reads First | Writes | Notes |
|
|
15
|
+
|---|---|---|---|
|
|
16
|
+
| Claude | `CLAUDE.md` + `Shared/AI-Context-Index.md` | normal vault writes | Follow local tool safety. |
|
|
17
|
+
| Gemini | `GEMINI.md` + `Shared/AI-Context-Index.md` | normal vault writes | Follow COI activation rules. |
|
|
18
|
+
| Codex | `AGENTS.md` + `Shared/AI-Context-Index.md` | repo and vault writes | Prefer verified changes and concise handoffs. |
|
|
19
|
+
|
|
20
|
+
## Coordination Rule
|
|
21
|
+
|
|
22
|
+
Before making broad vault changes, read [[Shared/Coordination/NOW]] and update [[Shared/Coordination/task-board]] if the task spans multiple sessions.
|
|
23
|
+
|
|
24
|
+
up:: [[Shared/Coordination/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, task-board]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Coordination/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# task-board
|
|
10
|
+
|
|
11
|
+
> file-Kanban task cards สำหรับ multi-agent coordination
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
task file ต่อชิ้นงาน มี claimed_by/status/frontmatter
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
session narrative (→Sessions) · handoff snapshot (→Handoffs)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Coordination/task-board/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Coordination/task-board/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Shared/Coordination/_Index]]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [template, coordination, task]
|
|
3
|
+
note_type: template
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Coordination/task-board/_Index]]"
|
|
7
|
+
status: todo
|
|
8
|
+
claimed_by:
|
|
9
|
+
priority: medium
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Task Template
|
|
13
|
+
|
|
14
|
+
> ใช้เป็นการ์ดงานที่ claim ได้สำหรับหลาย session/หลาย agent โดยเก็บ objective, scope, owner ปัจจุบัน และ progress สั้น ๆ; narrative ยาวให้ไป Sessions/Handoffs
|
|
15
|
+
|
|
16
|
+
## Objective
|
|
17
|
+
|
|
18
|
+
_(What needs to be true when this task is done.)_
|
|
19
|
+
|
|
20
|
+
## Scope
|
|
21
|
+
|
|
22
|
+
- Files / folders:
|
|
23
|
+
- Non-goals:
|
|
24
|
+
|
|
25
|
+
## Claim
|
|
26
|
+
|
|
27
|
+
- claimed_by:
|
|
28
|
+
- claimed_at:
|
|
29
|
+
- last_checked:
|
|
30
|
+
|
|
31
|
+
## Progress
|
|
32
|
+
|
|
33
|
+
- [ ] Read [[Shared/Coordination/NOW]]
|
|
34
|
+
- [ ] Verify no other agent claimed this task
|
|
35
|
+
- [ ] Do the work
|
|
36
|
+
- [ ] Update links / indexes / session log
|
|
37
|
+
- [ ] Mark done or hand off
|
|
38
|
+
|
|
39
|
+
## Notes
|
|
40
|
+
|
|
41
|
+
_(Short operational notes only. Long narrative goes to Sessions or Handoffs.)_
|
|
42
|
+
|
|
43
|
+
up:: [[Shared/Coordination/task-board/_Index]]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [coordination, task-board]
|
|
3
|
+
note_type: registry
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Coordination/_Index]]"
|
|
7
|
+
ai_surface: hot
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Task Board
|
|
11
|
+
|
|
12
|
+
> Lightweight board for multi-session or multi-agent vault work.
|
|
13
|
+
|
|
14
|
+
## Active
|
|
15
|
+
|
|
16
|
+
| Task | Owner | Files / Folders | Status | Next Step |
|
|
17
|
+
|---|---|---|---|---|
|
|
18
|
+
| _(none)_ | | | | |
|
|
19
|
+
|
|
20
|
+
## Waiting
|
|
21
|
+
|
|
22
|
+
| Task | Waiting On | Since |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| _(none)_ | | |
|
|
25
|
+
|
|
26
|
+
## Done Recently
|
|
27
|
+
|
|
28
|
+
| Date | Task | Link |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| _(none)_ | | |
|
|
31
|
+
|
|
32
|
+
up:: [[Shared/Coordination/_Index]]
|