@markus-global/cli 0.12.3 → 0.12.5-rc.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/dist/background-maintenance.d.ts +25 -0
- package/dist/background-maintenance.d.ts.map +1 -1
- package/dist/background-maintenance.js +61 -0
- package/dist/background-maintenance.js.map +1 -1
- package/dist/commands/im-inbound-origin.d.ts +38 -0
- package/dist/commands/im-inbound-origin.d.ts.map +1 -0
- package/dist/commands/im-inbound-origin.js +48 -0
- package/dist/commands/im-inbound-origin.js.map +1 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +211 -46
- package/dist/commands/start.js.map +1 -1
- package/dist/markus.mjs +18523 -9866
- package/dist/web-ui/assets/{AsyncState-_UC7xcxJ.js → AsyncState-ByYn1wrM.js} +1 -1
- package/dist/web-ui/assets/ChatComponents-Bwh8SlUV.js +14 -0
- package/dist/web-ui/assets/{ContentRenderer-C-V5k_3K.js → ContentRenderer-GLgoGp2a.js} +6 -6
- package/dist/web-ui/assets/DeliverableShareModal-CRfnRuR3.js +1 -0
- package/dist/web-ui/assets/{Deliverables-CQnWqbTb.js → Deliverables-EFsnf6kU.js} +2 -2
- package/dist/web-ui/assets/MarkdownMessage-CaLBeMto.js +4 -0
- package/dist/web-ui/assets/{Search-CVYQIy_D.js → Search-COiaXUNr.js} +1 -1
- package/dist/web-ui/assets/{SendToChat-IOAvuta-.js → SendToChat-DleryIlc.js} +1 -1
- package/dist/web-ui/assets/Settings-CzY8z2Yh.js +8 -0
- package/dist/web-ui/assets/{Store-BEsLd_RN.js → Store-C4VpQCM_.js} +1 -1
- package/dist/web-ui/assets/Switch-ByogYoGH.js +1 -0
- package/dist/web-ui/assets/Team-Cutq2J24.js +93 -0
- package/dist/web-ui/assets/Work-BO-mz-na.js +142 -0
- package/dist/web-ui/assets/{arc-DP1Vf7Sx.js → arc-mYv67jdD.js} +1 -1
- package/dist/web-ui/assets/{architectureDiagram-3BPJPVTR-Buq8JYN8.js → architectureDiagram-3BPJPVTR-Bzpz_1r6.js} +1 -1
- package/dist/web-ui/assets/{blockDiagram-GPEHLZMM-BCa2p2_X.js → blockDiagram-GPEHLZMM-BBrLiivl.js} +1 -1
- package/dist/web-ui/assets/{c4Diagram-AAUBKEIU-BxsgggQY.js → c4Diagram-AAUBKEIU-BwDUoXA_.js} +1 -1
- package/dist/web-ui/assets/channel-Bx09lbhA.js +1 -0
- package/dist/web-ui/assets/{chunk-2J33WTMH-BJZZ60c9.js → chunk-2J33WTMH-DCSfJ-S9.js} +1 -1
- package/dist/web-ui/assets/{chunk-4BX2VUAB-C5hc4E6J.js → chunk-4BX2VUAB-CI0n1b2H.js} +1 -1
- package/dist/web-ui/assets/{chunk-55IACEB6-CbyvZ6Mk.js → chunk-55IACEB6-DqlSWLrm.js} +1 -1
- package/dist/web-ui/assets/{chunk-727SXJPM-JmNt9TVA.js → chunk-727SXJPM-BtmAfGYV.js} +1 -1
- package/dist/web-ui/assets/{chunk-AQP2D5EJ-BTk0v5ba.js → chunk-AQP2D5EJ-BgkA4lpQ.js} +1 -1
- package/dist/web-ui/assets/{chunk-FMBD7UC4-BO-dhB1U.js → chunk-FMBD7UC4-DCSr1JH4.js} +1 -1
- package/dist/web-ui/assets/{chunk-ND2GUHAM-BdjCcLdb.js → chunk-ND2GUHAM-CETYBRRm.js} +1 -1
- package/dist/web-ui/assets/{chunk-QZHKN3VN-BAzRC82n.js → chunk-QZHKN3VN-C58yD7lH.js} +1 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-DGZqU3iA.js +1 -0
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-DGZqU3iA.js +1 -0
- package/dist/web-ui/assets/{cose-bilkent-S5V4N54A-CVffmErT.js → cose-bilkent-S5V4N54A-BpvdK03m.js} +1 -1
- package/dist/web-ui/assets/{dagre-BM42HDAG-Dd9pB2fX.js → dagre-BM42HDAG-CZ1K-KD5.js} +1 -1
- package/dist/web-ui/assets/{diagram-2AECGRRQ-BG_AUqzM.js → diagram-2AECGRRQ-D136Ok1V.js} +1 -1
- package/dist/web-ui/assets/{diagram-5GNKFQAL-D5qFMRFf.js → diagram-5GNKFQAL-Ji6qPYYV.js} +1 -1
- package/dist/web-ui/assets/{diagram-KO2AKTUF-B3qTxSWl.js → diagram-KO2AKTUF-B-s2RC-f.js} +1 -1
- package/dist/web-ui/assets/{diagram-LMA3HP47-BrxC1636.js → diagram-LMA3HP47-COWaps70.js} +1 -1
- package/dist/web-ui/assets/{diagram-OG6HWLK6-BvXyEQ9-.js → diagram-OG6HWLK6-bh6MvwWn.js} +1 -1
- package/dist/web-ui/assets/{docx-preview-DBAZFeEb.js → docx-preview-BRynUqJd.js} +1 -1
- package/dist/web-ui/assets/{erDiagram-TEJ5UH35-CMap9oy_.js → erDiagram-TEJ5UH35-DOPh2LlL.js} +1 -1
- package/dist/web-ui/assets/{flowDiagram-I6XJVG4X-BZerJtvk.js → flowDiagram-I6XJVG4X-B_kxDHIp.js} +1 -1
- package/dist/web-ui/assets/{ganttDiagram-6RSMTGT7-CagPMHMO.js → ganttDiagram-6RSMTGT7-DYBKHOkK.js} +1 -1
- package/dist/web-ui/assets/{gitGraphDiagram-PVQCEYII-DZ5dDKRu.js → gitGraphDiagram-PVQCEYII-D8_0BxLC.js} +1 -1
- package/dist/web-ui/assets/index-9SXWNIl0.css +1 -0
- package/dist/web-ui/assets/index-TAHyKznL.js +867 -0
- package/dist/web-ui/assets/{infoDiagram-5YYISTIA-CHLdsDUZ.js → infoDiagram-5YYISTIA-DayJP7Ws.js} +1 -1
- package/dist/web-ui/assets/{ishikawaDiagram-YF4QCWOH-SdeinQaS.js → ishikawaDiagram-YF4QCWOH-vzxCYVSq.js} +1 -1
- package/dist/web-ui/assets/{journeyDiagram-JHISSGLW-BtlL2fi0.js → journeyDiagram-JHISSGLW-B-Fud82o.js} +1 -1
- package/dist/web-ui/assets/{kanban-definition-UN3LZRKU-BKPQYXkB.js → kanban-definition-UN3LZRKU-DzuKdB65.js} +1 -1
- package/dist/web-ui/assets/{mermaid.core-MkJR6w4B.js → mermaid.core-D4ql87kI.js} +5 -5
- package/dist/web-ui/assets/{mindmap-definition-RKZ34NQL-CbOmHX_u.js → mindmap-definition-RKZ34NQL-DosvXt2g.js} +1 -1
- package/dist/web-ui/assets/{pieDiagram-4H26LBE5-CypGjJP1.js → pieDiagram-4H26LBE5-DhXtMWhr.js} +1 -1
- package/dist/web-ui/assets/{quadrantDiagram-W4KKPZXB-CGtemfUz.js → quadrantDiagram-W4KKPZXB-D33pLLOq.js} +1 -1
- package/dist/web-ui/assets/{requirementDiagram-4Y6WPE33-N7YfpCvE.js → requirementDiagram-4Y6WPE33-B-iIz-XM.js} +1 -1
- package/dist/web-ui/assets/{sankeyDiagram-5OEKKPKP-CYnSrei-.js → sankeyDiagram-5OEKKPKP-BMd9AFEW.js} +1 -1
- package/dist/web-ui/assets/{sequenceDiagram-3UESZ5HK-CsB7dCPF.js → sequenceDiagram-3UESZ5HK-CI1MIdwo.js} +1 -1
- package/dist/web-ui/assets/{stateDiagram-AJRCARHV-DTDFUXFP.js → stateDiagram-AJRCARHV-Bq6FKPW2.js} +1 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-8nMhmWY5.js +1 -0
- package/dist/web-ui/assets/{timeline-definition-PNZ67QCA-C_bWAN9B.js → timeline-definition-PNZ67QCA-BDdmmSRo.js} +1 -1
- package/dist/web-ui/assets/{vennDiagram-CIIHVFJN-CX_qAuUT.js → vennDiagram-CIIHVFJN-DP2q5vY2.js} +1 -1
- package/dist/web-ui/assets/{wardley-L42UT6IY-q53jQ293.js → wardley-L42UT6IY-Bw3fjszD.js} +1 -1
- package/dist/web-ui/assets/{wardleyDiagram-YWT4CUSO-D34dKCJU.js → wardleyDiagram-YWT4CUSO-37bQUocJ.js} +1 -1
- package/dist/web-ui/assets/{xychartDiagram-2RQKCTM6-BFAngp66.js → xychartDiagram-2RQKCTM6-DnLDZyNC.js} +1 -1
- package/dist/web-ui/index.html +2 -2
- package/docs/README.md +50 -16
- package/docs/api/guides/websocket.md +43 -0
- package/docs/api/reference.md +657 -0
- package/docs/architecture/a2a-communication.md +303 -0
- package/docs/architecture/agent-runtime.md +145 -28
- package/docs/architecture/architecture.md +30 -11
- package/docs/architecture/cognitive-architecture.md +189 -15
- package/docs/architecture/concurrent-processing.md +190 -31
- package/docs/architecture/context-assembly.md +264 -0
- package/docs/architecture/derived-views.md +463 -0
- package/docs/architecture/desktop-auto-update.md +185 -0
- package/docs/architecture/facts.md +406 -0
- package/docs/architecture/learning-loop.md +11 -0
- package/docs/architecture/limits.md +79 -0
- package/docs/architecture/mailbox-system.md +786 -668
- package/docs/architecture/memory-system.md +1 -1
- package/docs/architecture/messaging-gateway.md +7 -0
- package/docs/architecture/notification-delivery.md +221 -0
- package/docs/architecture/notification-sounds.md +177 -0
- package/docs/architecture/prompt-engineering.md +171 -700
- package/docs/{design/remote-access-contract.md → architecture/remote-access.md} +4 -0
- package/docs/architecture/state-machines.md +288 -5
- package/docs/architecture/tool-loop-harness.md +362 -0
- package/docs/architecture/tool-system.md +40 -16
- package/docs/design/background-callback-in-turn-delivery-2026-11-22.md +95 -0
- package/docs/design/c10-0b-pick-identity-leak-2026-11-22.md +233 -0
- package/docs/design/c10-a-identity-columns-2026-11-22.md +182 -0
- package/docs/design/c10-c-trust-boundary-2026-11-23.md +222 -0
- package/docs/design/c10-external-adapters-plan-2026-11-19.md +448 -0
- package/docs/design/c8-residual-mechanisms-2026-11-15.md +984 -0
- package/docs/design/external-signal-decision-loop-2026-11-25.md +579 -0
- package/docs/guides/development.md +1 -1
- package/docs/{architecture → guides}/mailbox-audit-checklist.md +7 -0
- package/docs/guides/remote-access.md +1 -1
- package/docs/{design/agent-stop-intent-audit.md → records/agent-stop-intent-audit-2026-11-08.md} +4 -0
- package/docs/records/c10-l5-gate-verification-2026-11-26.md +72 -0
- package/docs/records/c10-l5-live-verification-2026-11-25.md +117 -0
- package/docs/records/cut6-c4-verification-2026-11-12.md +268 -0
- package/docs/records/cut6-mailbox-address-envelope-design-2026-11-12.md +871 -0
- package/docs/records/cut7-c7a-red-green-evidence-2026-11-13.md +105 -0
- package/docs/records/cut7-c7a-workunit-implementation-2026-11-13.md +116 -0
- package/docs/records/cut7-c7b-verification-2026-11-14.md +90 -0
- package/docs/records/cut7-live-verification-2026-11-14.md +33 -0
- package/docs/records/cut7-wiring-negative-cache-2026-11-14.md +64 -0
- package/docs/records/cut7-workunit-execution-plan-2026-11-13.md +206 -0
- package/docs/records/cut8-a-entity-keys-design-2026-11-14.md +377 -0
- package/docs/records/cut8-b-turn-delta-injection-2026-11-14.md +362 -0
- package/docs/records/cut8-c-single-clock-2026-11-14.md +119 -0
- package/docs/records/cut8-c-single-clock-design-2026-11-14.md +150 -0
- package/docs/records/cut8-d-2026-11-14.md +231 -0
- package/docs/records/cut8-live-verification-2026-11-14.md +1018 -0
- package/docs/records/cut9-adjacent-identity-paths-2026-11-15.md +200 -0
- package/docs/records/cut9-identity-declaration-2026-11-15.md +163 -0
- package/docs/records/cut9-inbox-dual-run-diff-2026-11-15.md +117 -0
- package/docs/records/cut9-live-verification-2026-11-15.md +222 -0
- package/docs/records/cut9-runtime-probe-2026-11-19.md +520 -0
- package/docs/{design/deliverable-sharing.md → records/deliverable-sharing-2026-08-12.md} +10 -3
- package/docs/records/identity-backlog-disposition-2026-11-22.md +143 -0
- package/docs/records/marketplace-orphan-freeze-2026-11-22.md +239 -0
- package/docs/{architecture/notify-user-context-truth.md → records/notify-user-context-truth-2026-10-28.md} +6 -0
- package/docs/{handoff → records}/remote-access-handoff.md +1 -1
- package/package.json +1 -1
- package/templates/roles/HANDBOOK.md +1 -1
- package/templates/skills/agent-building/SKILL.md +1 -1
- package/dist/web-ui/assets/ChatComponents-Ca9tWI9W.js +0 -12
- package/dist/web-ui/assets/DeliverableShareModal-BvpyowYJ.js +0 -1
- package/dist/web-ui/assets/MarkdownMessage-DedA8Zob.js +0 -4
- package/dist/web-ui/assets/Settings-BQDqf4q5.js +0 -8
- package/dist/web-ui/assets/Switch-C6InTNUi.js +0 -1
- package/dist/web-ui/assets/Team-nfNyWj-s.js +0 -85
- package/dist/web-ui/assets/Work-BQvgkynj.js +0 -142
- package/dist/web-ui/assets/channel-BTSrOo6c.js +0 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-BSYlcnF9.js +0 -1
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-BSYlcnF9.js +0 -1
- package/dist/web-ui/assets/index-CKPQYzzR.js +0 -867
- package/dist/web-ui/assets/index-CzHSs0Vd.css +0 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-AVnDjlzF.js +0 -1
- package/docs/api/api.md +0 -353
- package/docs/architecture/llm-provider-timeouts.md +0 -60
- package/docs/architecture/state-ownership.md +0 -83
- /package/docs/architecture/{frontend/team-chat.md → team-chat.md} +0 -0
- /package/docs/{analysis → records}/2026-10-29-a2a-cache-hit-rate.md +0 -0
- /package/docs/{fixes → records}/2026-11-12-session-expiry-and-mention-thinking.md +0 -0
- /package/docs/{handoff → records}/approval-tri-state-handoff.md +0 -0
- /package/docs/{design → records}/overview-attention-redesign.md +0 -0
- /package/docs/{remote-access/fast-path-plan.md → records/remote-access-fast-path-plan-2026-10-17.md} +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Identity backlog disposition — C10-0B (2026-11-22)
|
|
2
|
+
|
|
3
|
+
Status: living record. **Partially superseded by C10-0G (2026-11-22) — read §0
|
|
4
|
+
first.** The `FINAL_EPOCH` marker below WAS the single authoritative source for
|
|
5
|
+
the product epoch constant `IDENTITY_FIX_EPOCH`
|
|
6
|
+
(`packages/shared/src/identity-audit.ts`), with a guard test
|
|
7
|
+
(`packages/shared/test/identity-audit-epoch.test.ts`) biting any divergence.
|
|
8
|
+
C10-0G deleted the product constant and the daily mechanism; the marker and the
|
|
9
|
+
sentinel protocol are retained as history only (§0).
|
|
10
|
+
|
|
11
|
+
## 0. Dated correction — C10-0G audit localization (2026-11-22, Owner ruling)
|
|
12
|
+
|
|
13
|
+
**Decision.** The permanent defense is structure (single constructor, fail-closed
|
|
14
|
+
assembly) + CI guards/behavior tests — that is what ships to users. The periodic
|
|
15
|
+
real-DB audit is verification scaffolding: it runs ONLY as a scheduled task on the
|
|
16
|
+
Owner's local instance and retires once C10's new construction points are proven
|
|
17
|
+
clean on real data. Card tsk_4c92df2b5c2a6295e24d55c7, branch task/c10-0g:
|
|
18
|
+
|
|
19
|
+
1. **Deleted the product-wide daily mechanism**: the audit port (type / option /
|
|
20
|
+
field / setter / constructor wiring), the named clock source, the agent-manager
|
|
21
|
+
factory, the api-server assembly, and `org-manager/src/identity-audit-runner.ts`
|
|
22
|
+
(whole file), plus the two mechanism tests. Resurrection guard:
|
|
23
|
+
`no-auto-identity-audit` in `scripts/architecture-guard.mjs` (red on the old
|
|
24
|
+
tree, green after deletion, seeded symbols turn it red again).
|
|
25
|
+
2. **Localized the epoch**: the product constant and its default resolver are
|
|
26
|
+
deleted; `makeIdentityGates` requires an explicit epoch (missing = throw, fail
|
|
27
|
+
closed); `scripts/identity-audit.mjs` gains `--epoch <ts>` / `--db <path>`.
|
|
28
|
+
The sentinel protocol (§4) and the FINAL_EPOCH marker are retired — the product
|
|
29
|
+
no longer reads any epoch constant or this record. The rewritten
|
|
30
|
+
`identity-audit-epoch.test.ts` bites the new contract.
|
|
31
|
+
3. **Replacement**: scheduled task tsk_d4ed5b323793d738c746d719 (daily 09:00
|
|
32
|
+
Asia/Shanghai, assignee CTO, reviewer Owner; pending Owner approval) runs
|
|
33
|
+
`node scripts/identity-audit.mjs --db ~/.markus/data.db --epoch 2026-11-22T12:18:34Z`
|
|
34
|
+
and is the SINGLE WRITER of `~/.markus/records/identity-audit/` dated readings.
|
|
35
|
+
**Retirement condition:** retire the task once C10's external construction
|
|
36
|
+
points are proven clean on real data; no permanent daily-check institution.
|
|
37
|
+
|
|
38
|
+
**Owner-local epoch line (deployment parameter, not a product constant).**
|
|
39
|
+
Value `2026-11-22T12:18:34Z` = 2026-11-22 20:18:34 CST, the first fix-build process
|
|
40
|
+
start. Reading (re-verified 2026-11-22 22:0x CST): `ps -o lstart= -p 28013` →
|
|
41
|
+
`日 11月/22 20:18:34 2026`; pid 28013 = the desktop Markus process. Later restarts
|
|
42
|
+
do NOT move this lower bound; changing it requires an Owner ruling plus a
|
|
43
|
+
synchronized update of the scheduled-task card and this record.
|
|
44
|
+
|
|
45
|
+
**First run (manual, by card C10-0G).** 2026-11-22T22:00:05+0800: all 12 gates
|
|
46
|
+
count=0, state pass; the missing-epoch probe exits 2 (epoch-unset). Record:
|
|
47
|
+
`~/.markus/records/identity-audit/2026-11-22-first-run-c10-0g.md`.
|
|
48
|
+
|
|
49
|
+
§3 item 4, §4 and §5 below describe the SUPERSEDED protocol; kept as history.
|
|
50
|
+
|
|
51
|
+
## 1. What is being disposed of (counts, not rows)
|
|
52
|
+
|
|
53
|
+
Real-DB readings, `~/.markus/data.db`, read-only:
|
|
54
|
+
|
|
55
|
+
| Reading | Value | Read at (UTC) |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| `agent_decisions` rows with `work_unit_ref IS NULL` (all time) | 228,083 | 2026-11-21T14:1xZ |
|
|
58
|
+
| Split by proposed epoch 2026-11-19T06:09:30Z: before / after | 226,983 / 1,100 | 2026-11-21T14:1xZ |
|
|
59
|
+
| Post-epoch `pick` decisions, source=rule: no identity / with identity | 1,100 / 71 (~94% leak) | 2026-11-21T14:1xZ |
|
|
60
|
+
| No-identity picks by day: 11-18 / 11-19 / 11-20 / 11-21 | 14 / 28 / 1,028 / 49 | 2026-11-21T14:1xZ |
|
|
61
|
+
| Post-epoch null-ref picks by joined mailbox source_type | system_event 1,093; task_status_update 12; orphan 1 | 2026-11-21T16:0xZ |
|
|
62
|
+
| Audit gates 1 / 2 / 5 / 11 (others 0) | 25 / 5 / 3 / 1,120 | 2026-11-21T14:1xZ |
|
|
63
|
+
| Gates 1/2/5 violations: latest queued_at | <= 2026-11-18T08:07Z (all pre-0A history, NOT a live leak) | 2026-11-21T16:0xZ |
|
|
64
|
+
|
|
65
|
+
Smoking gun for the task-chain leak: decision `dec_b32c39f9e57698b4efe8f9cf`
|
|
66
|
+
(2026-11-21T15:59:24.515Z) has `work_unit_ref = NULL` while its mailbox row carries
|
|
67
|
+
`task_tsk_fcd9cb0fabeeb39e3eaa496a_r1` — the DB-only post-enqueue link wrote the row,
|
|
68
|
+
never the in-memory item the decision ledger reads.
|
|
69
|
+
|
|
70
|
+
Attribution (full map: `docs/design/c10-0b-pick-identity-leak-2026-11-22.md` §2):
|
|
71
|
+
- **P2** task execution chain: `sendTaskExecution` enqueued without ref
|
|
72
|
+
(`pending-link`), `linkMailboxItem` UPDATE-ed only the DB column → in-memory item
|
|
73
|
+
stayed null → pick null. (12 post-epoch rows.)
|
|
74
|
+
- **P3** platform-internal closed set (`system_event` wakes etc.): no entity by
|
|
75
|
+
design, no turn WU → pick null. (1,093 post-epoch rows.)
|
|
76
|
+
- Pre-epoch 226,983 rows: the column did not exist / had no writer before
|
|
77
|
+
2026-11-15; history, not violations.
|
|
78
|
+
|
|
79
|
+
## 2. Disposition decision (Owner ruling 2026-11-19)
|
|
80
|
+
|
|
81
|
+
**No data migration, no DROP, no row edits.** The real DB IS the archive. Copying
|
|
82
|
+
rows into git would create a second, drifting copy of the same fact (R1). This
|
|
83
|
+
record carries counts + attribution + read timestamps only — never data rows.
|
|
84
|
+
Historical rows are not backfilled and history is not fabricated: a decision row
|
|
85
|
+
written without identity stays without identity; the fix stops NEW rows from
|
|
86
|
+
leaking, it does not rewrite old ones.
|
|
87
|
+
|
|
88
|
+
## 3. The fix (this card)
|
|
89
|
+
|
|
90
|
+
1. Task execution identity is built BEFORE enqueue (`ensureExecutionEpoch`) and
|
|
91
|
+
lands with the enqueue itself (memory + DB, one writer).
|
|
92
|
+
2. `linkMailboxItem` and the `pending-link` token are physically deleted
|
|
93
|
+
(grep = 0 across `packages/*/src`).
|
|
94
|
+
3. Platform-internal closed-set sources produce NO decision rows (single writer
|
|
95
|
+
`recordDecision` refuses them). Gate 11 is not relaxed: every persisted
|
|
96
|
+
decision row must carry identity.
|
|
97
|
+
4. Fixed product epoch + daily real-DB audit on the existing AgentClock (named
|
|
98
|
+
source `identity-audit`, no new setInterval), one dated record per day
|
|
99
|
+
(exclusive create), alerting only on post-epoch violations.
|
|
100
|
+
**(Superseded by C10-0G §0: the in-process daily mechanism is deleted; the
|
|
101
|
+
audit lives only in the retireable Owner-instance scheduled task.)**
|
|
102
|
+
|
|
103
|
+
## 4. Epoch protocol (CTO ruling A, 2026-11-21; supplements ①–④ agreed) — SUPERSEDED by C10-0G §0 (historical)
|
|
104
|
+
|
|
105
|
+
- **Definition (single source of meaning):** the epoch IS the **start time of the
|
|
106
|
+
new process running the fix build** — not "build effective time", not a planned
|
|
107
|
+
time, not `Date.now()`. Definition and reading are the same fact (supplement ①,
|
|
108
|
+
option a).
|
|
109
|
+
- **Reading (single source of value):** `ps -o lstart -p <pid>` of the restarted
|
|
110
|
+
instance (or the first line of its runtime log — exactly ONE of the two is used
|
|
111
|
+
and recorded here with the raw output).
|
|
112
|
+
- **Sentinel period:** from merge until finalization, `IDENTITY_FIX_EPOCH = null`.
|
|
113
|
+
The audit reports an independent `epoch-unset` state (script exit code 2; daily
|
|
114
|
+
record `state: "epoch-unset"` + alert). It is NEVER silently green (supplement ④).
|
|
115
|
+
- **Finalization commit (supplement ②):** ONE commit does all three: set the
|
|
116
|
+
constant to the recorded reading, update the `FINAL_EPOCH` marker below with the
|
|
117
|
+
source command + raw output + timestamp, adjust test expectations. The guard
|
|
118
|
+
test bites any divergence (supplement ③: presetting a planned time into the
|
|
119
|
+
constant without this record goes red).
|
|
120
|
+
- **No preset planned time** (ruling ②): betting on restart punctuality either
|
|
121
|
+
strands old-build leak rows as permanent post-epoch violations or blinds the
|
|
122
|
+
audit to new-build rows.
|
|
123
|
+
|
|
124
|
+
FINAL_EPOCH: unset
|
|
125
|
+
|
|
126
|
+
(Retired marker, kept as history: the product constant no longer exists. The
|
|
127
|
+
Owner-local epoch line is now a deployment parameter — see §0.)
|
|
128
|
+
|
|
129
|
+
## 5. Post-restart closure (pending Owner restart — asked, never self-restart)
|
|
130
|
+
|
|
131
|
+
**(Dated note 2026-11-22, C10-0G: steps 1–3 are done — the Owner restarted into
|
|
132
|
+
the fix build at 20:18:34 CST, the epoch line was read and recorded (§0), and the
|
|
133
|
+
first-run probe passed 12/12 at 22:00:05+0800. Step 4's daily-run protocol is
|
|
134
|
+
superseded by the Owner-instance scheduled task (§0).)**
|
|
135
|
+
|
|
136
|
+
After the Owner restarts the instance into the fix build:
|
|
137
|
+
1. Read the new process start time (command + raw output recorded here).
|
|
138
|
+
2. Finalization commit (§4).
|
|
139
|
+
3. Live probe: real-DB audit post-epoch violations = 0 (reading + timestamp).
|
|
140
|
+
4. Two consecutive daily audit runs with timestamped dated records.
|
|
141
|
+
|
|
142
|
+
Until then the sentinel state is the honest reading: the instrument refuses to
|
|
143
|
+
claim green while it cannot distinguish history from live leak.
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
# Marketplace orphan tables — frozen snapshot (C10-0C / master-plan G7)
|
|
2
|
+
|
|
3
|
+
> **This is a FROZEN SNAPSHOT, not a live copy.** Readings taken
|
|
4
|
+
> **2026-11-21T16:14:24.278Z** (first) and **2026-11-21T16:28:32.054Z** (re-verification),
|
|
5
|
+
> both from `~/.markus/data.db` opened **read-only**. The live database is the
|
|
6
|
+
> authority; this file is the readable git archive of rows that no code path can
|
|
7
|
+
> reach. Never "sync" this file against the DB — a second live copy is exactly the
|
|
8
|
+
> drift this record exists to prevent.
|
|
9
|
+
|
|
10
|
+
## Verdict (Owner, 2026-11-19): no migration, no DROP
|
|
11
|
+
|
|
12
|
+
`marketplace_templates` (2 rows) and `marketplace_skills`
|
|
13
|
+
(1 rows) still hold data in old-user databases, but PR #462 (A3,
|
|
14
|
+
Owner-merged) deleted their CREATE statements and repos: source has **zero**
|
|
15
|
+
read/write paths (verified by grep at base 5ea5efd4 and enforced by the
|
|
16
|
+
architecture-guard rule `no-orphan-marketplace`, which fails the build if any
|
|
17
|
+
reader/writer is seeded). "Table exists, data exists, nobody can read it" was the
|
|
18
|
+
unsafe state — the ambiguity, not the rows. The Owner adjudicated: **freeze, do
|
|
19
|
+
not delete**. Dropping tables on existing installs would be a data migration;
|
|
20
|
+
the 3 rows are harmless where they sit.
|
|
21
|
+
|
|
22
|
+
## Schema fork — intentional, documented, not closed by deletion
|
|
23
|
+
|
|
24
|
+
- **Fresh databases** never create these tables (#462 removed the CREATEs).
|
|
25
|
+
- **Existing databases** keep the tables and their rows frozen in place. Old-user
|
|
26
|
+
compatibility wins; the rows are unreachable by design.
|
|
27
|
+
- **No migration entry** closes the fork (no DROP, no data movement). This card
|
|
28
|
+
added zero entries to the storage migration list.
|
|
29
|
+
- The only new enforcement is source-level: the resurrection guard
|
|
30
|
+
`no-orphan-marketplace` in `scripts/architecture-guard.mjs` (self-tested every
|
|
31
|
+
run; a seeded reader fails the guard — verified 2026-11-21T16:26Z).
|
|
32
|
+
|
|
33
|
+
## Row-count readings (before / after this card's work)
|
|
34
|
+
|
|
35
|
+
| Table | First reading 2026-11-21T16:14:24.278Z | Re-verification 2026-11-21T16:28:32.054Z |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `marketplace_templates` | 2 | 2 |
|
|
38
|
+
| `marketplace_skills` | 1 | 1 |
|
|
39
|
+
|
|
40
|
+
The card performed **no writes** to the live database; both readings were taken
|
|
41
|
+
with `node:sqlite` `{ readOnly: true }`. Row equality between the two readings
|
|
42
|
+
was asserted programmatically (deepStrictEqual over all columns, all rows).
|
|
43
|
+
|
|
44
|
+
## Verbatim rows — all columns, byte-faithful
|
|
45
|
+
|
|
46
|
+
### `marketplace_templates` (2 rows)
|
|
47
|
+
|
|
48
|
+
Schema as it exists in the live DB (`sqlite_master`):
|
|
49
|
+
|
|
50
|
+
```sql
|
|
51
|
+
CREATE TABLE marketplace_templates (
|
|
52
|
+
id TEXT PRIMARY KEY,
|
|
53
|
+
name TEXT NOT NULL,
|
|
54
|
+
description TEXT NOT NULL,
|
|
55
|
+
source TEXT NOT NULL DEFAULT 'community',
|
|
56
|
+
status TEXT NOT NULL DEFAULT 'draft',
|
|
57
|
+
version TEXT NOT NULL DEFAULT '1.0.0',
|
|
58
|
+
author_id TEXT,
|
|
59
|
+
author_name TEXT NOT NULL,
|
|
60
|
+
role_id TEXT NOT NULL,
|
|
61
|
+
agent_role TEXT NOT NULL DEFAULT 'worker',
|
|
62
|
+
skills TEXT NOT NULL DEFAULT '[]',
|
|
63
|
+
llm_provider TEXT,
|
|
64
|
+
tags TEXT NOT NULL DEFAULT '[]',
|
|
65
|
+
category TEXT NOT NULL,
|
|
66
|
+
icon TEXT,
|
|
67
|
+
heartbeat_interval_ms INTEGER,
|
|
68
|
+
starter_tasks TEXT DEFAULT '[]',
|
|
69
|
+
config TEXT DEFAULT '{}',
|
|
70
|
+
download_count INTEGER NOT NULL DEFAULT 0,
|
|
71
|
+
avg_rating INTEGER NOT NULL DEFAULT 0,
|
|
72
|
+
rating_count INTEGER NOT NULL DEFAULT 0,
|
|
73
|
+
visibility TEXT NOT NULL DEFAULT 'public',
|
|
74
|
+
forked_from TEXT,
|
|
75
|
+
fork_count INTEGER DEFAULT 0,
|
|
76
|
+
version_history TEXT DEFAULT '[]',
|
|
77
|
+
org_id TEXT,
|
|
78
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
79
|
+
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
80
|
+
published_at TEXT
|
|
81
|
+
)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Rows (JSON, exact values incl. NULLs; string columns that contain JSON are stored
|
|
85
|
+
as strings in the DB and appear here as strings):
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
[
|
|
89
|
+
{
|
|
90
|
+
"id": "mkt-tpl_0653de7dd854f0b2de6055cb",
|
|
91
|
+
"name": "技术合伙人",
|
|
92
|
+
"description": "作为技术联合创始人,帮助你从零构建真实可用的产品,包含探索、规划、构建、打磨、交付五个阶段",
|
|
93
|
+
"source": "community",
|
|
94
|
+
"status": "draft",
|
|
95
|
+
"version": "1.0.0",
|
|
96
|
+
"author_id": null,
|
|
97
|
+
"author_name": "AI Builder",
|
|
98
|
+
"role_id": "developer",
|
|
99
|
+
"agent_role": "manager",
|
|
100
|
+
"skills": "[\"产品规划\",\"技术架构\",\"代码开发\",\"项目管理\",\"用户体验设计\",\"部署运维\",\"文档编写\"]",
|
|
101
|
+
"llm_provider": null,
|
|
102
|
+
"tags": "[\"技术合伙人\",\"产品开发\",\"创业\",\"敏捷开发\",\"技术咨询\"]",
|
|
103
|
+
"category": "development",
|
|
104
|
+
"icon": null,
|
|
105
|
+
"heartbeat_interval_ms": null,
|
|
106
|
+
"starter_tasks": "[]",
|
|
107
|
+
"config": "{\"temperature\":0.7,\"toolWhitelist\":[\"shell_execute\",\"file_read\",\"file_write\",\"file_edit\",\"git_status\",\"git_diff\",\"git_commit\",\"git_log\"],\"requiredEnv\":[\"git\",\"node\",\"python3\",\"docker\",\"pnpm\"]}",
|
|
108
|
+
"download_count": 0,
|
|
109
|
+
"avg_rating": 0,
|
|
110
|
+
"rating_count": 0,
|
|
111
|
+
"visibility": "public",
|
|
112
|
+
"forked_from": null,
|
|
113
|
+
"fork_count": 0,
|
|
114
|
+
"version_history": "[]",
|
|
115
|
+
"org_id": null,
|
|
116
|
+
"created_at": "2026-03-12T10:10:13.733Z",
|
|
117
|
+
"updated_at": "2026-03-12T10:10:13.733Z",
|
|
118
|
+
"published_at": null
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "mkt-tpl_c52a6421a00b884adb713e50",
|
|
122
|
+
"name": "技术联合创始人",
|
|
123
|
+
"description": "你的技术联合创始人,帮助你打造真实可用的产品。从需求探索到产品交付,全程让你掌控方向,用通俗语言解释技术决策,分阶段构建并确保产品质量。",
|
|
124
|
+
"source": "community",
|
|
125
|
+
"status": "published",
|
|
126
|
+
"version": "1.0.0",
|
|
127
|
+
"author_id": null,
|
|
128
|
+
"author_name": "Builder",
|
|
129
|
+
"role_id": "",
|
|
130
|
+
"agent_role": "manager",
|
|
131
|
+
"skills": "[\"产品设计\",\"技术架构\",\"项目管理\",\"代码开发\",\"测试部署\"]",
|
|
132
|
+
"llm_provider": null,
|
|
133
|
+
"tags": "[\"技术联创\",\"产品开发\",\"全栈开发\",\"敏捷开发\",\"产品交付\"]",
|
|
134
|
+
"category": "productivity",
|
|
135
|
+
"icon": null,
|
|
136
|
+
"heartbeat_interval_ms": null,
|
|
137
|
+
"starter_tasks": "[]",
|
|
138
|
+
"config": "{\"systemPrompt\":\"## 角色定位\\n你 就是用户的技术联合创始人。你的任务是帮用户打造一个真实可用的产品——能让他自己用、分享给别人,甚至直接发布上线。所有具体的构建工作由你负责,但要让他全程知情并保有最终决定权。\\n\\n---\\n\\n## 你的工作方式\\n\\n### 第一阶段:探索\\n•通过提问,真正理解用户实际需要什么(不局限于表面描述)\\n•如果觉得哪里不合理,大胆挑战用户的假设\\n•帮用户区分哪些是\\\"现阶段必备\\\",哪些可以\\\"后期再加\\\"\\n•如果用户想法太大,请告诉用户,并建议一个更聪明的起点\\n\\n### 第二阶段:规划\\n•明确给出第一个版本的具体构建内容\\n•用大白话解释技术实现思路\\n•评估复杂度(简单 / 中等 / 复杂)\\n•列出用户需要准备的资源(账号、第三方服务、需做的决策等)\\n•展示最终产品的大致轮廓\\n\\n### 第三阶段:构建\\n•分阶段进行,让用户能随时看到进展并反馈\\n•边做边解释你的每一步(用户想了解学习)\\n•每步都测试,没问题再继续\\n•遇到关键决策点时,停下来和用户确认\\n•如果碰到问题,给用户几个备选方案,而不是自行决定\\n\\n### 第四阶段:打磨\\n•让产品看起来专业,不像黑客马拉松的临时作品\\n•优雅处理边界情况和各类错误\\n•确保产品运行流畅,并根据需要适配不同设备\\n•添加那些能让产品感觉\\\"真正完成\\\"的细节\\n\\n### 第五阶段:交付\\n•如果用户想上线,就帮用户部署好\\n•提供清晰的说明,告诉用户如何使用、维护和修改\\n•完整记录一切,让用户不依赖这次对话也能继续\\n•告诉用户下一个版本可以增加或改进什么\\n\\n---\\n\\n## 与用户合作的准则\\n\\n•视用户为产品负责人。用户做决定,你来实现。\\n•别用技术黑话轰炸用户。请用用户能懂的语言解释所有事情。\\n•如果用户搞得太复杂或方向不对,请直接指出来。\\n•坦诚告知局限性。用户宁愿调整预期,也不想最后失望。\\n•动作要快,但别快到让用户跟不上你的节奏。\\n\\n---\\n\\n## 核心原则\\n\\n•不仅要产品能跑起来——更要成为用户自豪展示的作品。\\n•这是真实产品,不是演示模型,也不是原型,而是真正可用的东西。\\n•确保用户全程掌控、全程知情。\\n•每次提交代码或更新进度时,清晰说明\\\"这是什么、为什么这么做、接下来做什么\\\"。\\n•主动识别风险和潜在问题,不回避困难对话。\\n\\n---\\n\\n## 技术能力\\n\\n你具备以下能力,能够独立完成从设计到部署的完整流程:\\n•产品设计:需求分析、功能规划、用户体验优化\\n•技术架构:选择合适的技术栈、设计系统架构、评估技术风险\\n•全栈开发:前端、后端、数据库、API设计\\n•测试与质量:编写测试用例、确保代码质量、处理边界情况\\n•部署运维:应用部署、监控设置、维护文档\\n\\n当遇到超出你能力范围的问题时,明确告知用户并建议寻求专业帮助。\\n\\n---\\n\\n## 决策框架\\n\\n当需要做技术决策时,遵循以下原则:\\n1. **简单优先**:能用简单方案解决就不用复杂的\\n2. **用户视角**:考虑用户实际使用场景,而非技术酷炫度\\n3. **可扩展性**:但不要过度设计,为未来预留合理空间\\n4. **成本意识**:考虑时间、金钱、学习成本\\n\\n---\\n\\n## 输出格式\\n\\n•使用清晰的结构化输出\\n•重要的决定和进度用总结性语言突出\\n•代码和技术细节需要时提供,但解释要通俗\\n•保持友好、专业的语气,像真正的合伙人那样沟通\",\"llmProvider\":\"anthropic\",\"llmModel\":\"claude-sonnet-4-20250514\",\"temperature\":0.8,\"toolWhitelist\":[\"shell_execute\",\"file_read\",\"file_write\",\"file_edit\",\"glob_find\",\"grep_search\",\"web_fetch\",\"web_search\",\"git_status\",\"git_diff\",\"git_log\",\"git_branch\",\"memory_save\",\"memory_search\",\"memory_list\"],\"requiredEnv\":[\"git\",\"node\",\"python3\",\"docker\"]}",
|
|
139
|
+
"download_count": 0,
|
|
140
|
+
"avg_rating": 0,
|
|
141
|
+
"rating_count": 0,
|
|
142
|
+
"visibility": "public",
|
|
143
|
+
"forked_from": null,
|
|
144
|
+
"fork_count": 0,
|
|
145
|
+
"version_history": "[]",
|
|
146
|
+
"org_id": null,
|
|
147
|
+
"created_at": "2026-03-12T14:14:34.996Z",
|
|
148
|
+
"updated_at": "2026-03-12T14:14:34.996Z",
|
|
149
|
+
"published_at": "2026-03-12T14:14:34.996Z"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### `marketplace_skills` (1 row)
|
|
155
|
+
|
|
156
|
+
Schema (`sqlite_master`):
|
|
157
|
+
|
|
158
|
+
```sql
|
|
159
|
+
CREATE TABLE marketplace_skills (
|
|
160
|
+
id TEXT PRIMARY KEY,
|
|
161
|
+
name TEXT NOT NULL,
|
|
162
|
+
description TEXT NOT NULL,
|
|
163
|
+
source TEXT NOT NULL DEFAULT 'community',
|
|
164
|
+
status TEXT NOT NULL DEFAULT 'draft',
|
|
165
|
+
version TEXT NOT NULL DEFAULT '1.0.0',
|
|
166
|
+
author_id TEXT,
|
|
167
|
+
author_name TEXT NOT NULL,
|
|
168
|
+
category TEXT NOT NULL,
|
|
169
|
+
tags TEXT NOT NULL DEFAULT '[]',
|
|
170
|
+
tools TEXT NOT NULL DEFAULT '[]',
|
|
171
|
+
readme TEXT,
|
|
172
|
+
required_permissions TEXT DEFAULT '[]',
|
|
173
|
+
required_env TEXT DEFAULT '[]',
|
|
174
|
+
config TEXT DEFAULT '{}',
|
|
175
|
+
download_count INTEGER NOT NULL DEFAULT 0,
|
|
176
|
+
avg_rating INTEGER NOT NULL DEFAULT 0,
|
|
177
|
+
rating_count INTEGER NOT NULL DEFAULT 0,
|
|
178
|
+
visibility TEXT NOT NULL DEFAULT 'public',
|
|
179
|
+
forked_from TEXT,
|
|
180
|
+
fork_count INTEGER DEFAULT 0,
|
|
181
|
+
version_history TEXT DEFAULT '[]',
|
|
182
|
+
org_id TEXT,
|
|
183
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
184
|
+
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
185
|
+
published_at TEXT
|
|
186
|
+
)
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Rows:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
[
|
|
193
|
+
{
|
|
194
|
+
"id": "zhihu-publishing",
|
|
195
|
+
"name": "Zhihu Publishing",
|
|
196
|
+
"description": "知乎专栏文章发布自动化技能 - 使用 Chrome DevTools 浏览器自动化在知乎专栏发布文章。包含 React textarea InputEvent 注入、受控组件处理、发布验证等最佳实践。",
|
|
197
|
+
"source": "local",
|
|
198
|
+
"status": "published",
|
|
199
|
+
"version": "1.0.0",
|
|
200
|
+
"author_id": "agt_2a2092cc9dd9e1127a29c551",
|
|
201
|
+
"author_name": "社区运营专员B",
|
|
202
|
+
"category": "browser",
|
|
203
|
+
"tags": "[\"browser\",\"zhihu\",\"automation\",\"chrome\"]",
|
|
204
|
+
"tools": "[]",
|
|
205
|
+
"readme": null,
|
|
206
|
+
"required_permissions": "[]",
|
|
207
|
+
"required_env": "[]",
|
|
208
|
+
"config": "{}",
|
|
209
|
+
"download_count": 0,
|
|
210
|
+
"avg_rating": 0,
|
|
211
|
+
"rating_count": 0,
|
|
212
|
+
"visibility": "public",
|
|
213
|
+
"forked_from": null,
|
|
214
|
+
"fork_count": 0,
|
|
215
|
+
"version_history": "[]",
|
|
216
|
+
"org_id": null,
|
|
217
|
+
"created_at": "2026-04-16 14:43:20",
|
|
218
|
+
"updated_at": "2026-04-16 14:43:20",
|
|
219
|
+
"published_at": null
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## How to re-verify (read-only)
|
|
225
|
+
|
|
226
|
+
```sh
|
|
227
|
+
node -e "const{DatabaseSync}=require('node:sqlite');\
|
|
228
|
+
const db=new DatabaseSync(process.env.HOME+'/.markus/data.db',{readOnly:true});\
|
|
229
|
+
for(const t of ['marketplace_templates','marketplace_skills'])\
|
|
230
|
+
console.log(t,JSON.stringify(db.prepare('SELECT * FROM '+t).all(),null,2));"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Diff the output against the JSON blocks above. If they differ, the LIVE DB
|
|
234
|
+
changed after this snapshot — that is a fact about the DB, not a reason to edit
|
|
235
|
+
this record.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
*Recorded by C10-0E+0C (task tsk_10117dfa3008c50609ae78be), base 5ea5efd4
|
|
239
|
+
(origin/feat/refactor-plan). Plan SSOT: docs/design/c10-external-adapters-plan-2026-11-19.md §C10-0C.*
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# 通知 ≠ 对话内容:`notify_user` 的上下文契约
|
|
2
2
|
|
|
3
|
+
> **Historical record.** Moved here from `docs/architecture/` on 2026-11-15: this is a dated
|
|
4
|
+
> incident analysis (2026-10-28), not a description of current behaviour. `docs/architecture/`
|
|
5
|
+
> describes how the system works today; evidence chains belong in `records/`.
|
|
6
|
+
> The living contract that came out of this incident is
|
|
7
|
+
> [`notification-delivery.md`](../architecture/notification-delivery.md).
|
|
8
|
+
|
|
3
9
|
> 事故:2026-10-28 GEO策略主管 在 90 秒内对同一条内容调用 `notify_user` 12 次(09:12:34 → 09:13:48,标题恒为「需要一条产品口径:Markus Free 层数量上限」,正文每轮改写)。
|
|
4
10
|
> 本文记录**实测证据链**、根因、被放弃的错误修法,以及这次的修法与测试。
|
|
5
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 远程访问重构 · 交付说明与手动验证(T10 收口)
|
|
2
2
|
|
|
3
3
|
> 作者:CTO · 2026-10-14 · 状态:**交老板手动合入前的交付说明**
|
|
4
|
-
> 需求:`req_656422cc529a09e31cd04990` · 设计:`remote-access-design.md`(v2) · 契约:`docs/
|
|
4
|
+
> 需求:`req_656422cc529a09e31cd04990` · 设计:`remote-access-design.md`(v2) · 契约:`docs/architecture/remote-access.md`(冻结 v1.0.0)
|
|
5
5
|
> 一句话:**用户自带隧道(Cloudflare / Tailscale)+ Hub 只做入口域名 / 端点注册表 / 登录鉴权门**,数据通路不再经过我们的服务器。
|
|
6
6
|
|
|
7
7
|
---
|
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ Markus maintains detailed documentation about its architecture and subsystems, a
|
|
|
68
68
|
| `docs/architecture/state-machines.md` | Task / requirement / mailbox state transitions and triggers |
|
|
69
69
|
| `docs/architecture/tool-system.md` | Tool selection, result envelope, subagent budgets |
|
|
70
70
|
| `docs/architecture/mailbox-system.md` | Priority queue, attention model, interrupts, stop / cancel |
|
|
71
|
-
| `docs/api/
|
|
71
|
+
| `docs/api/reference.md` | REST API endpoints — **generated** from `buildRouteTable()`, never edited by hand |
|
|
72
72
|
| `docs/guides/guide.md` | Setup and usage guide |
|
|
73
73
|
|
|
74
74
|
`docs/architecture/` describes **current** behaviour. `docs/records/` holds dated engineering records (audits, post-mortems, hardening logs) kept for the rationale behind changes that are already in the code — it is **historical and frozen**, so never read it as a description of how the platform behaves today.
|
|
@@ -114,7 +114,7 @@ After the JSON is saved, write each file individually using `file_write`. The ba
|
|
|
114
114
|
- Output standards and quality criteria
|
|
115
115
|
- Domain-specific knowledge and context
|
|
116
116
|
|
|
117
|
-
3. **HEARTBEAT.md** (RECOMMENDED) —
|
|
117
|
+
3. **HEARTBEAT.md** (RECOMMENDED) — The checklist the agent follows when a **liveness patrol** runs. Patrols are *not* on a timer: `AgentClock` owns an agent's only timers (just two sources — `mailbox-maintenance` and `trigger-expiry`) and no heartbeat source is registered on it. A patrol starts when the liveness fallback asks for one (`agent.triggerHeartbeat()`, reached from the manager / API-server dirty-state check); the agent's default state between patrols is `rest(wakeOn)`, and the wake it waits for arrives as a mailbox `system_event`. **Without this file the patrol has nothing role-specific to run** — the agent falls back to a generic check-in and is effectively reactive only: it responds to direct messages and task assignments but never proactively monitors its environment. Write a role-specific checklist:
|
|
118
118
|
- Check mailbox for new messages and respond to urgent items
|
|
119
119
|
- Review assigned tasks — update progress, unblock if possible
|
|
120
120
|
- Check team announcements for new information
|