sanook-cli 0.4.0 → 0.5.1
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 +173 -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 +405 -57
- 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 +21 -7
- package/dist/providers/keys.js +3 -2
- package/dist/providers/models.js +22 -6
- package/dist/providers/registry.js +155 -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 +228 -31
- package/dist/ui/banner.js +4 -9
- package/dist/ui/brain-wizard.js +2 -2
- package/dist/ui/history.js +30 -0
- package/dist/ui/mentions.js +44 -0
- package/dist/ui/render.js +55 -15
- package/dist/ui/setup.js +97 -12
- 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,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [rule, runbook, procedure]
|
|
3
|
+
note_type: rule
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Rules/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Procedural Runbook Header
|
|
10
|
+
|
|
11
|
+
> Minimum header for any reusable procedure in `Runbooks/`.
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
---
|
|
15
|
+
tags: [runbook]
|
|
16
|
+
note_type: runbook
|
|
17
|
+
created: YYYY-MM-DD
|
|
18
|
+
updated: YYYY-MM-DD
|
|
19
|
+
parent: "[[Runbooks/_Index]]"
|
|
20
|
+
status: active
|
|
21
|
+
success_rate: unknown
|
|
22
|
+
runs: 0
|
|
23
|
+
---
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Required Sections
|
|
27
|
+
|
|
28
|
+
1. Purpose
|
|
29
|
+
2. Preconditions
|
|
30
|
+
3. Steps
|
|
31
|
+
4. Verification
|
|
32
|
+
5. Rollback / Recovery
|
|
33
|
+
6. Known Failure Modes
|
|
34
|
+
7. Change Log
|
|
35
|
+
|
|
36
|
+
## Promotion Rule
|
|
37
|
+
|
|
38
|
+
If a runbook becomes executable and has a reliable verification command, promote the executable unit to `Skills/` and leave the explanatory prose here.
|
|
39
|
+
|
|
40
|
+
up:: [[Shared/Rules/_Index]]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [rule, review, staleness]
|
|
3
|
+
note_type: rule
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Rules/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Review & Staleness Policy
|
|
10
|
+
|
|
11
|
+
> เมื่อไหร่ทบทวน + เมื่อไหร่โน้ต "หมดอายุ" → ปิด decay loop (ดู [[Runbooks/sleep-time-consolidation]])
|
|
12
|
+
|
|
13
|
+
## Cadence
|
|
14
|
+
- **Daily:** session log เฉพาะวันมีงาน
|
|
15
|
+
- **Weekly:** เคลียร์ Memory-Inbox · promote durable · lint (orphan/dead-link/frontmatter)
|
|
16
|
+
- **Monthly:** vault health audit + เก็บกวาด stale
|
|
17
|
+
|
|
18
|
+
## Staleness
|
|
19
|
+
- โน้ตควรมี `review_date` / `stale_after` (โน้ตที่เปลี่ยนตามเวลา)
|
|
20
|
+
- เลย `stale_after` + ไม่ถูกแตะนาน + low-action → **flag → ถามก่อน → ย้าย [[Shared/Archive]]** (ไม่ลบ · Core-Facts ยกเว้น)
|
|
21
|
+
|
|
22
|
+
up:: [[Shared/Rules/_Index]]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [rule, formatting, output]
|
|
3
|
+
note_type: rule
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Rules/_Index]]"
|
|
7
|
+
ai_surface: hot
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Rules Formatting
|
|
11
|
+
|
|
12
|
+
> Output shape rules for notes and replies. Use this before creating durable notes or changing owner-facing docs.
|
|
13
|
+
|
|
14
|
+
## Durable Notes
|
|
15
|
+
|
|
16
|
+
- Use clear headings; avoid one giant paragraph.
|
|
17
|
+
- Keep one canonical topic per note.
|
|
18
|
+
- Put routing metadata in frontmatter, then a short purpose statement.
|
|
19
|
+
- End every durable note with `up:: [[...]]`.
|
|
20
|
+
|
|
21
|
+
## Owner-Facing Replies
|
|
22
|
+
|
|
23
|
+
- Lead with the answer or status.
|
|
24
|
+
- Keep summaries short unless the owner asks for detail.
|
|
25
|
+
- Use Thai + tech English terms naturally.
|
|
26
|
+
- Mention verification commands only when useful.
|
|
27
|
+
|
|
28
|
+
## Avoid
|
|
29
|
+
|
|
30
|
+
- Empty checklist theater.
|
|
31
|
+
- Unverified claims about files, paths, dates, or commands.
|
|
32
|
+
- Duplicate notes when an existing canonical note can be updated.
|
|
33
|
+
|
|
34
|
+
up:: [[Shared/Rules/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, scripts]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Scripts
|
|
10
|
+
|
|
11
|
+
> automation maintenance (lint/graph audit/metrics)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
สคริปต์ maintenance ที่รันจริง
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
one-off ที่ retired (→Scripts-Archive)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Scripts/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Scripts/_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, scripts-archive]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Scripts-Archive
|
|
10
|
+
|
|
11
|
+
> สคริปต์ one-off ที่ retired
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
script เก่าเก็บเป็นประวัติ
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
script ที่ยังใช้ (→Scripts)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Scripts-Archive/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Scripts-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, tech-standards]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Tech-Standards
|
|
10
|
+
|
|
11
|
+
> มาตรฐานเทคนิคกลาง
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
MCP/stack/DoD/verification rulebook
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
กฎ memory/format (→Rules)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Tech-Standards/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Tech-Standards/_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,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [standard, verification, dod]
|
|
3
|
+
note_type: standard-reference
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/Tech-Standards/_Index]]"
|
|
7
|
+
ai_surface: hot
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Verification Standard
|
|
11
|
+
|
|
12
|
+
> Definition of done for technical changes made with this vault.
|
|
13
|
+
|
|
14
|
+
## Default Verification Ladder
|
|
15
|
+
|
|
16
|
+
1. Read the relevant source before editing.
|
|
17
|
+
2. Run the narrowest meaningful check first.
|
|
18
|
+
3. Run the broader suite when touching shared behavior.
|
|
19
|
+
4. Build/package smoke when the change affects release output.
|
|
20
|
+
5. Record residual risk if a check cannot be run.
|
|
21
|
+
|
|
22
|
+
## Evidence Format
|
|
23
|
+
|
|
24
|
+
Use this shape in session logs and handoffs:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
Verification:
|
|
28
|
+
- npm run typecheck: PASS
|
|
29
|
+
- npm test: PASS
|
|
30
|
+
- npm run build: PASS
|
|
31
|
+
- Smoke: <command/result>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Never Claim Done If
|
|
35
|
+
|
|
36
|
+
- Tests were skipped without saying why.
|
|
37
|
+
- The changed behavior was not exercised.
|
|
38
|
+
- A generated artifact was not opened/rendered when visual layout matters.
|
|
39
|
+
|
|
40
|
+
up:: [[Shared/Tech-Standards/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, user-memory]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# User-Memory
|
|
10
|
+
|
|
11
|
+
> สิ่งที่ AI เรียนรู้เกี่ยวกับเจ้าของ (mutable)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
preference/response-example/signal
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
identity static (→User-Persona)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/User-Memory/_Index]]"` และท้ายไฟล์ `up:: [[Shared/User-Memory/_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, user-persona]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# User-Persona
|
|
10
|
+
|
|
11
|
+
> identity profile ที่เปลี่ยนน้อยมาก (human-owned)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
บทบาท/ค่านิยม/ภาษา/timezone (read-only)
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
สิ่งที่ AI เรียนรู้ (→User-Memory)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/User-Persona/_Index]]"` และท้ายไฟล์ `up:: [[Shared/User-Persona/_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,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [persona, owner, profile]
|
|
3
|
+
note_type: reference
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/User-Persona/_Index]]"
|
|
7
|
+
ai_surface: warm
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Owner Profile
|
|
11
|
+
|
|
12
|
+
> Static profile for identity-level context. Keep mutable preferences in [[Shared/User-Memory/user-preferences]] instead.
|
|
13
|
+
|
|
14
|
+
## Identity
|
|
15
|
+
|
|
16
|
+
- Name: {{OWNER_NAME}}
|
|
17
|
+
- Address as: {{OWNER_ADDRESS}}
|
|
18
|
+
- Preferred language: {{LANGUAGE}}
|
|
19
|
+
- Preferred tone: {{TONE}}
|
|
20
|
+
|
|
21
|
+
## Durable Context
|
|
22
|
+
|
|
23
|
+
_(Owner-controlled facts go here. Agents should not infer sensitive identity details.)_
|
|
24
|
+
|
|
25
|
+
up:: [[Shared/User-Persona/_Index]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: [index, moc, working-memory]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Working-Memory
|
|
10
|
+
|
|
11
|
+
> scratchpad ระหว่าง 1 task (ลบทิ้งได้)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
ของชั่วคราวระหว่างทำงาน
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
อะไรที่จะเก็บ (→Memory-Inbox)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/Working-Memory/_Index]]"` และท้ายไฟล์ `up:: [[Shared/Working-Memory/_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, shared]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Shared
|
|
10
|
+
|
|
11
|
+
> สมองกลาง: memory + rules + coordination
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
เข้าผ่าน AI-Context-Index
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
โน้ตงานทั่วไป
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/_Index]]"` และท้ายไฟล์ `up:: [[Shared/_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, mcp-servers]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Shared/_Index]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# mcp-servers
|
|
10
|
+
|
|
11
|
+
> vendored local MCP server bundle (code/README)
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
โค้ด/README ของ MCP server (config อยู่ Tech-Standards)
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
config การต่อ (→Tech-Standards/mcp.json)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Shared/mcp-servers/_Index]]"` และท้ายไฟล์ `up:: [[Shared/mcp-servers/_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, skills]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skills
|
|
10
|
+
|
|
11
|
+
> reusable unit ที่ executable + ผ่าน verification command
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
script/command ที่รัน test ผ่าน (ดู Shared/Rules/skills-admission)
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
prose how-to (→Runbooks) · unverified (→Memory-Inbox)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Skills/_Index]]"` และท้ายไฟล์ `up:: [[Skills/_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, templates]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Templates
|
|
10
|
+
|
|
11
|
+
> แม่แบบโน้ต — instantiate จากที่นี่
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
template ไว้ instantiate (session/bug/handoff/project)
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
โน้ตจริง
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Templates/_Index]]"` และท้ายไฟล์ `up:: [[Templates/_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, tools]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Tools
|
|
10
|
+
|
|
11
|
+
> utility/tooling เฉพาะเครื่องหรือเฉพาะ vault
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
local helper, binary wrapper, one-off utility ที่ยังใช้อยู่
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
durable knowledge (→Learning/Runbooks) · verified executable skill (→Skills)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Tools/_Index]]"` และท้ายไฟล์ `up:: [[Tools/_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, traces]
|
|
3
|
+
note_type: moc
|
|
4
|
+
created: {{DATE}}
|
|
5
|
+
updated: {{DATE}}
|
|
6
|
+
parent: "[[Home]]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Traces
|
|
10
|
+
|
|
11
|
+
> exploration/reasoning chain ยาว
|
|
12
|
+
|
|
13
|
+
## ใส่ที่นี่
|
|
14
|
+
การสืบสวนหลายขั้น (คำถามใหญ่เกินโน้ตเดียว)
|
|
15
|
+
|
|
16
|
+
## ไม่ใส่ที่นี่
|
|
17
|
+
คำตอบสั้น (→โน้ตปกติ)
|
|
18
|
+
|
|
19
|
+
## AI Routing Contract
|
|
20
|
+
|
|
21
|
+
- ก่อนเขียน: เช็กว่าเนื้อหาตรง "ใส่ที่นี่" และไม่เข้า "ไม่ใส่ที่นี่"; ถ้าก้ำกึ่งอ่าน [[Vault Structure Map]] ก่อน
|
|
22
|
+
- ก่อนสร้างไฟล์ใหม่: ค้นหาโน้ตเดิมในโฟลเดอร์นี้และโฟลเดอร์ใกล้เคียงก่อน เพื่อ merge/update แทน append ซ้ำ
|
|
23
|
+
- เมื่อสร้างโน้ตในโฟลเดอร์นี้: ตั้ง `parent: "[[Traces/_Index]]"` และท้ายไฟล์ `up:: [[Traces/_Index]]`
|
|
24
|
+
- หลังเขียน: เชื่อม link ไป source/project/session/decision ที่เกี่ยวข้อง และอัปเดต hub/index ถ้าโน้ตนี้ควรถูกค้นเจอในอนาคต
|
|
25
|
+
|
|
26
|
+
> รายละเอียดทุกโฟลเดอร์ + decision rules → [[Vault Structure Map]]
|
|
27
|
+
|
|
28
|
+
_(ยังว่าง — โน้ตในโฟลเดอร์นี้จะถูกลิงก์ที่นี่)_
|
|
29
|
+
|
|
30
|
+
up:: [[Home]]
|
|
@@ -20,15 +20,22 @@ ai_surface: hot
|
|
|
20
20
|
| log งานที่ทำ | `Sessions/` | `YYYY-MM-DD-<topic>.md` |
|
|
21
21
|
| preference ของเจ้าของ | `Shared/User-Memory/` | |
|
|
22
22
|
| การตัดสินใจสำคัญ | `Shared/Decision-Memory/` | |
|
|
23
|
+
| priority/current focus เปลี่ยน | `Shared/Operating-State/current-state.md` | update existing |
|
|
23
24
|
| ยังไม่ชัด/ขัดกัน | `Shared/Memory-Inbox/` | |
|
|
24
25
|
| content จากเว็บ/paste | `Intake/_Quarantine/` | (scan ก่อน) |
|
|
25
26
|
| ต้นฉบับดิบ read-only | `Intake/Raw Sources/` | |
|
|
27
|
+
| finding ที่มี source | `Research/` | ใส่ `source::` |
|
|
28
|
+
| scratch ชั่วคราวระหว่างงาน | `Shared/Working-Memory/` | ลบทิ้ง/โปรโมทหลังจบ |
|
|
26
29
|
| script ที่ผ่าน test | `Skills/` | |
|
|
27
30
|
| how-to อ่านแล้วทำเอง | `Runbooks/` | |
|
|
28
31
|
| กลยุทธ์ที่ปรับดีขึ้น | `Playbooks/` | |
|
|
32
|
+
| fixture expected output | `Acceptance/` | input→expected |
|
|
33
|
+
| pre/postflight gate | `Checklists/` | ticklist |
|
|
29
34
|
| page ของคน/องค์กร/concept | `Entities/` | |
|
|
30
35
|
| bug | `Bugs/` | `YYYY-MM-DD-<bug>.md` |
|
|
36
|
+
| bug ระบบ/OS/toolchain | `Bugs/System-OS/` | `YYYY-MM-DD-<bug>.md` |
|
|
31
37
|
| ส่งมอบงานค้าง | `Handoffs/` | |
|
|
38
|
+
| multi-agent task card | `Shared/Coordination/task-board/` | `<id>.md` |
|
|
32
39
|
|
|
33
40
|
## §2 Full Reference (ครบทุกโฟลเดอร์ — ใส่อะไร / ห้ามใส่)
|
|
34
41
|
|
|
@@ -44,6 +51,7 @@ ai_surface: hot
|
|
|
44
51
|
| `Runbooks/` | prose how-to | ขั้นตอน setup/deploy/maintain | runnable unit (→Skills) |
|
|
45
52
|
| `Templates/` | แม่แบบโน้ต | template ไว้ instantiate | โน้ตจริง |
|
|
46
53
|
| `Bugs/` | bug reproducible (global flat) | bug report + link กลับ project | bug ของ project ที่ไม่ reproduce |
|
|
54
|
+
| `Bugs/System-OS/` | bug ระบบ/OS/toolchain | OS, shell, package manager, permission, filesystem, app-runtime bugs | bug ของ project เฉพาะ |
|
|
47
55
|
| `Handoffs/` | ส่งมอบงานค้าง (snapshot) | state + next steps ส่งต่อ | live coordination (→Coordination) |
|
|
48
56
|
|
|
49
57
|
### Direction
|
|
@@ -81,13 +89,35 @@ ai_surface: hot
|
|
|
81
89
|
| `Shared/Decision-Memory/` | decision ที่ AI บันทึก | decision locked + supersedes | ground truth คน (→Core-Facts) |
|
|
82
90
|
| `Shared/Memory-Inbox/` | candidate ยังไม่ชัด | observation รอ promote (clear weekly) | durable ที่ชัดแล้ว (→ปลายทาง) |
|
|
83
91
|
| `Shared/Rules/` | กฎ operating always-on | memory/frontmatter/context-assembly | how-to ทำงาน (→Runbooks) |
|
|
84
|
-
| `Shared/Tech-Standards/` | มาตรฐานเทคนิค | MCP/stack/DoD/verification | |
|
|
92
|
+
| `Shared/Tech-Standards/` | มาตรฐานเทคนิค | MCP/stack/DoD/verification | กฎ memory/format (→Rules) |
|
|
85
93
|
| `Shared/Core-Facts/` | ground truth คนเขียน (read-only) | invariant ที่ AI ห้ามแก้ | decision ที่ AI ตัด (→Decision-Memory) |
|
|
86
94
|
| `Shared/Coordination/` | live multi-agent baton | NOW.md + task-board + registry | เอกสารส่งมอบ (→Handoffs) |
|
|
95
|
+
| `Shared/Coordination/task-board/` | file-Kanban task cards | task ต่อชิ้นงาน มี `claimed_by`/`status` | session narrative หรือ handoff snapshot |
|
|
87
96
|
| `Shared/Working-Memory/` | scratchpad 1 task (ลบได้) | ของชั่วคราวระหว่างทำงาน | อะไรที่จะเก็บ (→Memory-Inbox) |
|
|
88
97
|
| `Shared/User-Persona/` | identity static (read-only) | บทบาท/ค่านิยม/ภาษา/timezone | สิ่งที่ AI เรียนรู้ (→User-Memory) |
|
|
89
98
|
| `Shared/Provenance/` | source ledger | บรรทัด ingest ต่อแหล่ง | โน้ต derived (ใส่ `source::` แทน) |
|
|
90
99
|
| `Shared/Archive/` | cold storage (ไม่ลบ) | โน้ต stale/retired ออกจาก retrieval | ของที่ยังใช้ |
|
|
100
|
+
| `Shared/Scripts/` | automation maintenance | lint/graph-audit/metrics script | one-off retired (→Scripts-Archive) |
|
|
101
|
+
| `Shared/Scripts-Archive/` | สคริปต์ one-off retired | script เก่า (ประวัติ) | script ที่ยังใช้ (→Scripts) |
|
|
102
|
+
| `Shared/mcp-servers/` | vendored MCP server bundle | code/README ของ MCP server | config การต่อ (→Tech-Standards) |
|
|
103
|
+
| `Shared/Context-Packs/` | full-context bundle | pack รวม context พร้อมโหลด | โน้ตเดี่ยว |
|
|
104
|
+
| `Shared/Context7-Docs/` | cached lib doc (regenerable) | cache context7/lib doc | durable knowledge (→Learning) |
|
|
105
|
+
| `Shared/AI-Threads/` | saved AI reasoning trail | thread review/resume/promote | durable decision (→Decision-Memory) |
|
|
106
|
+
| `Shared/Prompting/` | prompt-engineering pattern | pattern การเขียน prompt | prompt asset (→Prompts) |
|
|
107
|
+
| `Shared/Glossary/` | vocabulary กลาง | term + นิยาม | entity page (→Entities) |
|
|
108
|
+
| `Shared/Assets/` | รูป/logo/binary | image/logo/asset | โน้ต .md |
|
|
109
|
+
|
|
110
|
+
### AI agent config / vendor (root-level)
|
|
111
|
+
| Folder | Role | ใส่ที่นี่ | ห้ามใส่ |
|
|
112
|
+
|---|---|---|---|
|
|
113
|
+
| `.agents/` `.agents/skills/` | skill folders (SKILL.md) | SKILL.md ที่ agent โหลด on-demand | prose how-to (→Runbooks) |
|
|
114
|
+
| `.agents/workflows/` | workflow guides | multi-step orchestration ที่ทำซ้ำ | one-off task |
|
|
115
|
+
| `copilot/` | vendor export (review/promote) | export จาก Copilot | durable (promote เข้า durable layer) |
|
|
116
|
+
|
|
117
|
+
### Optional / Machine-local
|
|
118
|
+
| Folder | Role | ใส่ที่นี่ | ห้ามใส่ |
|
|
119
|
+
|---|---|---|---|
|
|
120
|
+
| `Tools/` | utility เฉพาะเครื่อง/vault | local helper, wrapper, utility ที่ยังใช้ | durable knowledge หรือ verified skill |
|
|
91
121
|
|
|
92
122
|
## §3 Decision Rules (เคสกำกวม)
|
|
93
123
|
|
|
@@ -98,6 +128,8 @@ ai_surface: hot
|
|
|
98
128
|
- **sourced vs self-derived:** มี external source→`Research` · กลั่นเอง→`Learning`
|
|
99
129
|
- **finite vs ongoing:** มีวันจบ→`Goals` · ไม่จบ→`Areas`
|
|
100
130
|
- **event vs cadence vs metric:** หลังงาน→`Retrospectives` · ตามรอบ→`Reviews` · วัดคุณภาพ→`Evals`
|
|
131
|
+
- **system bug vs project bug:** OS/toolchain/runtime กว้างๆ→`Bugs/System-OS` · bug ของงานหนึ่ง→`Bugs`/`Projects/<proj>`
|
|
132
|
+
- **coordination task vs narrative:** claimable task card→`Shared/Coordination/task-board` · เล่า session→`Sessions` · ส่งต่อ state→`Handoffs`
|
|
101
133
|
|
|
102
134
|
## §4 Footer
|
|
103
135
|
|