-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.json
More file actions
2431 lines (2431 loc) · 91.2 KB
/
project.json
File metadata and controls
2431 lines (2431 loc) · 91.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"projectName": "MyBlog",
"canonicalDoc": "README.md",
"machineReadableEntry": "project.json",
"githubRepo": "https://github.com/emptyinkpot/emptyinkpot.github.io",
"defaultBranch": "main",
"localSourceRoot": null,
"remoteIde": {
"status": "canonical",
"host": "ubuntu@124.220.233.126",
"sourceRoot": "/srv/myblog/repo",
"deploymentRoot": "/srv/myblog/site",
"repoLocalSshKey": "/home/ubuntu/.ssh/myblog_source_ed25519",
"repoLocalSshCommandRequired": true,
"localCheckoutPolicy": "retired-local-mirror-only"
},
"siteAppRoot": "apps/web",
"adminAppRoot": "apps/admin-next",
"androidShellRoot": "apps/android-shell",
"runtimeContractRoot": "packages/runtime-contract",
"runtimeDatabaseApiContract": "contracts/runtime-database-api-contract.json",
"runtimeConstitution": {
"status": "active",
"aiEntry": "AI_RULES.md",
"frontendContractEntry": "project.frontend-runtime-contract.json",
"contractsRoot": "contracts",
"philosophyRoot": "philosophy",
"topologyRoot": "topology",
"adrRoot": "adr",
"primaryModel": "Knowledge Runtime Surface",
"coreRule": "Collection is context. Drawer is reading. Homepage is discovery.",
"forbidden": [
"turn collections into standalone CMS pages",
"replace mixed-object homepage with collection grids",
"make feed tabs route navigation",
"put card walls inside reader drawers",
"make topic collections prerender into static collection pages"
]
},
"objectModelRoot": "packages/object-model",
"runtimeKernelRoot": "packages/runtime-kernel",
"designSystemRoot": "packages/design-system",
"activeArticleTruthRoot": "public-data/runtime/content-index.json",
"vaultFileTruthRoot": "Windows:E:\\Vaults\\Obsidian",
"authoringTruthRoot": "Windows:E:\\Vaults\\Obsidian",
"serverHotMirrorRoot": "Linux:/home/vault/Obsidian",
"publicContentAccessRoot": "/openlist/Obsidian",
"contentControlPlaneRoot": "OpenList:/openlist/Obsidian",
"openListLocalMount": "OpenList:/Obsidian -> Linux:/home/vault/Obsidian",
"openListPublicRoots": [
"/Obsidian",
"/腾讯云COS",
"/夸克网盘"
],
"serverStorageBoundary": {
"status": "active",
"hotLayerRule": "Keep runtime, databases, Syncthing hot mirror, Astro dist, Pagefind, OpenList DB and /srv/myblog on the server local filesystem.",
"coldLayerRule": "OpenList/COS/Quark are public access, blob backend, cold archive and content address space only; they are not an ext4/system disk replacement.",
"maintenanceCommand": "npm run server:openlist-storage",
"pruneCommand": "npm run server:openlist-storage -- --prune-openlist-file-cache --apply"
},
"coldArchiveBackends": [
"Quark:/夸克网盘/ObsidianArchive",
"Tencent COS:/腾讯云COS",
"S3/WebDAV backends mounted through OpenList"
],
"generatedRuntimeRoot": "/srv/myblog/site/runtime/content-index.json",
"runtimeTruth": "MySQL via apps/admin-next",
"canonicalStructuredContentPlatform": {
"status": "optional-projection",
"owner": "DataBase",
"gatewayEndpoint": "POST /writes/project-obsidian-markdown",
"enableEnv": "MYBLOG_DATABASE_CANONICAL_PROJECTION=1",
"gatewayUrlEnv": "MYBLOG_DATABASE_GATEWAY_URL",
"apiKeyEnv": "MYBLOG_DATABASE_GATEWAY_API_KEY",
"sourceRule": "Obsidian/Vault remains Markdown file truth; DataBase owns structured identity, blocks, assets and relations.",
"myblogRole": "projection client and public rendering shell only",
"forbidden": [
"direct DataBase MySQL access from MyBlog canonical content projection",
"MyBlog-owned shadow content work registry",
"local DataBase schema copies",
"silent fallback when DataBase projection is enabled"
]
},
"fileTruth": "Windows Vault synced to Linux hot mirror and exposed through OpenList",
"contentRoots": [
"apps/web/src/content/notes",
"apps/web/src/content/projects",
"apps/web/src/content/pages",
"public-data/evidence-library"
],
"buildOutputRoot": "apps/web/dist",
"docsEntrypoints": {
"frontendReadme": "apps/web/README.md",
"architectureCodex": "apps/web/src/data/architectureCodex.ts",
"frontendRuntimeAudit": "docs/frontend-runtime-audit.md",
"frontendRuntimeConvergence": "docs/frontend-runtime-convergence.md",
"runtimeExperienceLayer": "docs/runtime-experience-layer.md",
"planDoc": "docs/plans/update-plan.md",
"adminP0Checklist": "docs/plans/admin-next-p0-checklist.md",
"architectureChecklist": "docs/architecture/astro-blog-redesign-checklist.md",
"maintenanceLog": "docs/maintenance/astro-redesign-execution-log.md"
},
"sourceOfTruthMap": {
"gitRepo": "https://github.com/emptyinkpot/emptyinkpot.github.io",
"localActiveSourceRoot": null,
"vaultFileTruthRoot": "Windows:E:\\Vaults\\Obsidian",
"authoringTruthRoot": "Windows:E:\\Vaults\\Obsidian",
"serverHotMirrorRoot": "Linux:/home/vault/Obsidian",
"publicContentAccessRoot": "/openlist/Obsidian",
"contentControlPlaneRoot": "OpenList:/openlist/Obsidian",
"openListLocalMount": "OpenList:/Obsidian -> Linux:/home/vault/Obsidian",
"openListPublicRoots": [
"/Obsidian",
"/腾讯云COS",
"/夸克网盘"
],
"serverStorageBoundary": {
"status": "active",
"hotLayerRule": "Keep runtime, databases, Syncthing hot mirror, Astro dist, Pagefind, OpenList DB and /srv/myblog on the server local filesystem.",
"coldLayerRule": "OpenList/COS/Quark are public access, blob backend, cold archive and content address space only; they are not an ext4/system disk replacement.",
"maintenanceCommand": "npm run server:openlist-storage",
"pruneCommand": "npm run server:openlist-storage -- --prune-openlist-file-cache --apply"
},
"coldArchiveBackendRoots": [
"Quark:/夸克网盘/ObsidianArchive",
"Tencent COS:/腾讯云COS"
],
"generatedRuntimeRoot": "/srv/myblog/site/runtime/content-index.json",
"activeArticleTruthRoot": "public-data/runtime/content-index.json",
"runtimeTruth": "MySQL via apps/admin-next",
"canonicalStructuredContentPlatform": {
"owner": "DataBase",
"gatewayEndpoint": "POST /writes/project-obsidian-markdown",
"projectionClient": "tools/server-runtime-content-projector.mjs",
"projectionBuildSource": "tools/build-runtime-content-index.mjs",
"enableEnv": "MYBLOG_DATABASE_CANONICAL_PROJECTION=1",
"gatewayUrlEnv": "MYBLOG_DATABASE_GATEWAY_URL",
"apiKeyEnv": "MYBLOG_DATABASE_GATEWAY_API_KEY"
},
"fileTruth": "Windows Vault synced to Linux hot mirror and exposed through OpenList",
"runtimeContractRoot": "packages/runtime-contract",
"objectModelRoot": "packages/object-model",
"runtimeKernelRoot": "packages/runtime-kernel",
"designSystemRoot": "packages/design-system",
"objectStorageTruth": "Tencent COS bucket myblog-media-1410041307 mounted in OpenList at /腾讯云COS",
"buildOutputRoot": "apps/web/dist",
"serverRuntimeRoot": "/srv/myblog/site",
"remoteFirstSourceRoot": "ubuntu@124.220.233.126:/srv/myblog/repo",
"retiredLocalSourceRoot": "E:\\My Project\\MyBlog",
"remoteIde": {
"host": "ubuntu@124.220.233.126",
"sourceRoot": "/srv/myblog/repo",
"deploymentRoot": "/srv/myblog/site",
"repoLocalSshKey": "/home/ubuntu/.ssh/myblog_source_ed25519",
"gitRemote": "git@github.com:emptyinkpot/emptyinkpot.github.io.git",
"sshOutageRule": "Do not promote a local checkout to canonical when SSH is unavailable; use GitHub as a delivery surface and reconcile the server source root after recovery."
},
"runtimeDatabase": {
"status": "active",
"type": "Tencent Cloud CynosDB Serverless MySQL",
"clusterId": "cynosdbmysql-no0zqua0",
"engine": "MySQL 8.0",
"publicEndpoint": "124.220.245.121:22295",
"privateEndpoint": "172.17.0.3:3306",
"privateEndpointStatus": "not-routable-from-current-lighthouse-as-of-2026-05-10",
"database": "cloudbase-4glvyyq9f61b19cd",
"user": "openclaw",
"secretSource": "/etc/myblog-admin-next.env",
"serviceOwner": "apps/admin-next",
"schemaOwner": "apps/admin-next/lib/runtime-db.js",
"connectionEnv": [
"MYBLOG_DB_HOST",
"MYBLOG_DB_PORT",
"MYBLOG_DB_USER",
"MYBLOG_DB_PASSWORD",
"MYBLOG_DB_NAME"
],
"activeTables": [
"reader_memory",
"reader_highlights",
"visual_sources",
"visual_pins",
"visual_sync_runs",
"personal_secret_entries"
],
"owns": [
"reader progress and last-read state",
"reader highlights and anchors",
"visual source registry",
"visual pin runtime index",
"visual sync run logs"
],
"forbidden": [
"article markdown body source",
"EPUB/PDF/image/video blobs",
"OpenList file objects",
"Tencent COS objects",
"Quark netdisk files",
"Astro dist or Pagefind output",
"Syncthing hot mirror files"
],
"integrationRole": "dynamic runtime state layer beside OpenList/COS/Quark file storage and Obsidian content truth"
},
"plaintextPersonalSecretStore": {
"status": "active-schema",
"table": "personal_secret_entries",
"valueColumn": "secret_value",
"storageMode": "plaintext-by-user-requirement",
"purpose": "store personal account/password/API-key style information directly in MySQL as readable text",
"owner": "apps/admin-next / MySQL Runtime Layer",
"database": "cloudbase-4glvyyq9f61b19cd",
"warning": "Values are intentionally stored as plaintext in MySQL; do not commit real values to Git or logs."
},
"productionSourceRoot": "ubuntu@124.220.233.126:/srv/myblog/repo",
"remoteIntegrationRoot": "server-170:/home/ubuntu/workspaces/MyBlog-production-integration",
"productionSiteRoot": "/srv/myblog/site",
"githubProductionBackupBranch": "backup/production-myblog-source-20260510",
"githubProductionBackupPr": "https://github.com/emptyinkpot/emptyinkpot.github.io/pull/42"
},
"stabilizationSprint": {
"status": "active",
"mode": "reduction-not-feature-sprint",
"thesis": "Stabilize the base before activating more runtimes. AppFlowy, Immich, Directus and Meilisearch remain target/skeleton services until file truth, MarkdownObject schema and Quartz runtime layer are stable.",
"priorityOrder": [
"Syncthing or Obsidian Sync of complete vault into Linux:/home/vault/Obsidian hot mirror",
"Linux Vault hot mirror layout stability: /home/vault/Obsidian/docs, /home/vault/Obsidian/image, .obsidian and attachments",
"MarkdownObject schema freeze and validation",
"tools/build-runtime-content-index.mjs refactor as the CMS kernel",
"Quartz 4 / Flowershow runtime layer evaluation for wikilink, backlink, graph, callout and semantic markdown",
"AppFlowy collaboration runtime evaluation after the above are stable"
],
"matureSubstratePolicy": [
"Syncthing",
"Quartz 4 / Flowershow",
"Meilisearch",
"Immich",
"Payload / Directus"
],
"glueOnlyRule": "MyBlog only writes glue, projection, and runtime contracts; it does not reimplement sync, markdown compiler, graph engine, search engine, media runtime, or CMS backends.",
"frozenTargetRuntimes": {
"appflowyCloud": {
"status": "skeleton-installed-target-not-deployed",
"serverRoot": "/srv/myblog/services/appflowy-cloud",
"allowStart": false
},
"immich": {
"status": "skeleton-installed-not-started",
"allowStart": false
},
"directus": {
"status": "target-not-deployed",
"allowStart": false
},
"meilisearch": {
"status": "target-not-deployed",
"allowStart": false
}
},
"forbidden": [
"start AppFlowy Cloud containers during this sprint",
"start Immich, Directus or Meilisearch during this sprint",
"add new pages, overlays, feeds, graphs or AI runtimes",
"continue expanding Project Workbench into a bespoke collaboration suite",
"claim a target/skeleton service is active before readiness gate and source alignment"
],
"allowedWork": [
"Syncthing/Linux Vault readiness and docs",
"MarkdownObject schema and validation",
"runtime content index refactor",
"Quartz/Flowershow capability evaluation",
"documentation and machine-readable authority cleanup"
]
},
"contentInfrastructureReduction": {
"status": "target-policy-active",
"displayName": "Content Infrastructure Reduction",
"mode": "reduce-bespoke-content-infrastructure",
"thesis": "MyBlog has crossed from blog code into content infrastructure. Do not expand bespoke runtime JSON, giant runtime JSON, watcher, RSS, projection, search or deploy glue when mature substrates can own those jobs.",
"activeNow": {
"articleProjection": "Runtime MarkdownObject index at public-data/runtime/content-index.json and /srv/myblog/site/runtime/content-index.json",
"search": "Pagefind static archive search plus runtime feed filtering; not unified full-site dynamic search",
"deploy": "npm run deploy:site",
"storage": "Linux hot mirror plus OpenList/COS/Quark cold/blob/public browse boundary",
"openListBoundary": "OpenList exposes /Obsidian and cold/blob mounts; it does not own runtime build, projection, search, database, Pagefind, Astro dist, Syncthing hot mirror or node_modules"
},
"targetCandidates": {
"quartz": {
"status": "candidate-not-integrated",
"role": "Obsidian digital garden substrate for Markdown pipeline, wikilinks, backlinks, graph, RSS, search and content index ideas",
"mustNotClaim": "active site engine"
},
"contentlayer": {
"status": "candidate-not-installed",
"role": "Astro-native typed content schema, parsing, watch and projection replacement candidate",
"mustNotClaim": "active content pipeline"
},
"meilisearch": {
"status": "target-not-deployed",
"role": "dynamic object, OpenList file, metadata and semantic search runtime",
"currentFallback": "Pagefind remains static archive search"
},
"coolify": {
"status": "candidate-not-deployed",
"role": "deployment platform candidate for Git deploy, env, healthcheck, rollback, cron and compose",
"currentFallback": "npm run deploy:site"
}
},
"forbidden": [
"grow content-index.json into a database or search engine",
"add new bespoke watcher, RSS race workaround, build sync, deploy wrapper or projection governance layer before evaluating Quartz/Contentlayer/Meilisearch/Coolify",
"claim Quartz, Contentlayer, Meilisearch or Coolify are active before integration or service readiness evidence",
"let OpenList participate in runtime build, projection authority or hot storage"
]
},
"workspaceFederation": {
"status": "active",
"thesis": "Multiple workspaces are allowed, but authority is capability-based and machine-checked before deployment.",
"manifest": "workspace.manifest.json",
"profilesRoot": "workspaces",
"guardScript": "tools/deploy-guard.mjs",
"deployScript": "tools/deploy-static-site.mjs",
"checkCommand": "npm run check:workspace",
"deployCommand": "npm run deploy:site",
"currentDeployAuthority": {
"workspaceId": "myblog-canonical-active",
"workspaceType": "canonical",
"root": "/srv/myblog/repo",
"deploymentAuthority": true
},
"profiles": {
"canonical": {
"profile": "workspaces/canonical.json",
"defaultRoot": "/srv/myblog/repo",
"deploymentAuthority": true,
"capabilities": [
"build",
"deploy",
"runtime",
"schema",
"pwa",
"openlist-authority",
"search-index"
]
},
"experimental": {
"profile": "workspaces/experimental.json",
"defaultRootPattern": "C:\\Users\\ASUS-KL\\.codex-runtime\\worktrees\\*",
"deploymentAuthority": false,
"capabilities": [
"build",
"preview",
"frontend-ui",
"feed-ui",
"drawer-ui",
"animations",
"visual-prototype",
"codex-draft"
],
"forbidden": [
"deployment",
"pwa",
"runtime-books",
"runtime-schema",
"openlist-authority",
"server-runtime"
]
},
"sandbox": {
"profile": "workspaces/sandbox.json",
"deploymentAuthority": false,
"capabilities": [
"prototype",
"research",
"throwaway-demo"
],
"forbidden": [
"deployment",
"pwa",
"runtime-books",
"runtime-schema",
"openlist-authority",
"server-runtime",
"production-content"
]
}
},
"rules": [
"workspace existence is not authority",
"deploys must run through npm run deploy:site or at least tools/deploy-guard.mjs",
"do not hand-run scp to /srv/myblog/site from an unchecked workspace",
".codex-runtime worktrees are experimental by default and cannot deploy",
"production promotion means moving changes back into a workspace with the required capability"
],
"incidentReference": "2026-05-07 stale .codex-runtime worktree deploy regression"
},
"contentPipeline": {
"status": "Runtime MarkdownObject projection active; Syncthing syncs the complete Windows E:\\Vaults\\Obsidian vault to Linux /home/vault/Obsidian, OpenList exposes public content at /openlist/Obsidian, and Windows watcher/scp content sync is disabled",
"contentSourceBase": {
"fileTruth": "Windows:E:\\Vaults\\Obsidian",
"serverHotMirror": "Linux:/home/vault/Obsidian",
"publicContentAccess": "/openlist/Obsidian",
"fileMapping": "OpenList public access layer",
"frontendIndex": "public-data/runtime/content-index.json",
"presentationShell": "Astro apps/web",
"rule": "Vault decides files; Runtime MarkdownObject projection decides public article objects; current tags/categories are filesystem/frontmatter/wikilink derived taxonomy, not AI semantic ontology; KnowledgeCollection buffers objects as Reading Sessions before homepage surfaces; frontend cards only read generated card metadata"
},
"vaultFileTruth": "Windows:E:\\Vaults\\Obsidian",
"vaultSync": {
"status": "active",
"currentObsidianSideOwner": "Syncthing",
"localVaultRoot": "Windows:E:\\Vaults\\Obsidian",
"serverOwner": "Syncthing",
"serverService": "syncthing@ubuntu.service",
"transport": [
"file-system sync",
"server-local Linux Vault"
],
"targetRoot": "Linux:/home/vault/Obsidian",
"folders": [
{
"id": "obsidian-vault",
"localPath": "E:\\Vaults\\Obsidian",
"serverPath": "/home/vault/Obsidian",
"type": "sendreceive",
"lastVerified": "2026-05-07",
"verification": "idle on both peers; needBytes=0; create/modify/delete acceptance passed"
}
],
"syncScope": [
"docs",
"image",
".obsidian",
"canvas",
"pdf",
"attachments"
],
"forbidden": [
"MyBlog one-off image upload as vault sync",
"visual-manifest as vault attachment truth",
"storing WebDAV credentials in source, README, logs or frontend bundle"
]
},
"authoringTruth": "Windows:E:\\Vaults\\Obsidian",
"projectorInput": "Linux:/home/vault/Obsidian/docs",
"publicContentAccess": "/openlist/Obsidian/docs",
"gitMirror": "content-vault working copy target; path not created as active source yet",
"cmsPriority": [
"TinaCMS",
"Decap CMS"
],
"cmsRule": "choose one CMS in P1; CMS edits must commit/write back to the vault working copy, not to MySQL or dist",
"activeArticleTruth": "public-data/runtime/content-index.json",
"runtimeProjectionTruth": "public-data/runtime/content-index.json",
"runtimeFeatureRegistry": "public-data/runtime/features.json",
"runtimeScript": "tools/build-runtime-content-index.mjs",
"commands": {
"runtimeIndex": "npm run runtime:content -- --vault <path>",
"vaultSyncCheck": "npm run check:vault-sync",
"serverRuntimeProjector": "npm run runtime:content:server",
"deprecatedWindowsSync": "removed from package scripts; old tools/watch-obsidian-home-sync.mjs and tools/sync-runtime-content-index.mjs must not be used"
},
"pipeline": [
"Obsidian local vault",
"Syncthing",
"Linux /home/vault/Obsidian runtime hot mirror",
"OpenList /openlist/Obsidian content control plane and public identity",
"server-side Runtime MarkdownObject projector",
"Feed/Reader/Search/Graph projection",
"optional Git mirror",
"optional TinaCMS or Decap CMS"
],
"runtimeProjection": {
"objectType": "MarkdownObject",
"collectionType": "KnowledgeCollection",
"taxonomyMode": {
"status": "active",
"mode": "filesystem-frontmatter-wikilink-derived",
"semanticAuthority": false,
"sources": [
"frontmatter.tags",
"frontmatter.categories",
"frontmatter.keywords",
"frontmatter.topics",
"filesystem.folderTags",
"obsidian.wikilinks"
],
"rule": "Do not describe current tags/categories as AI semantic tagging, ontology, embeddings, clusters or knowledge graph truth."
},
"semanticPipeline": {
"status": "active-sidecar-generator",
"runtime": "mortis-glm-openai-compatible",
"lastProviderCheck": "2026-05-08 cloud sub2api coze-glm-shell key generated one valid sidecar and runtime projection read it as semantic.status=active",
"command": "npm run semantic:sidecars -- --limit 1",
"sidecarPattern": "*.semantic.json",
"allowedFields": [
"entities",
"topics",
"relations",
"collections",
"clusters",
"model",
"generatedAt"
],
"writePolicy": "semantic pipeline may write sidecar projection only; it must never rewrite Markdown body or frontmatter and must never override explicit tags/categories",
"candidateReferences": [
"Atomic",
"Blinko",
"NoteGen"
]
},
"schema": {
"required": [
"id",
"slug",
"title",
"sourcePath",
"openlistPath",
"openlistUrl",
"sourceRoot",
"kind",
"categories",
"tags",
"folderTags",
"derivedTaxonomy",
"semantic",
"visibility",
"published",
"runtimeFeed",
"relations",
"card"
],
"sourceRoot": "vault",
"kindDerivation": "frontmatter.kind, then docs folder mapping: blog/post, notes/note, papers or 论文/paper, projects/project, books/book-note, codex/codex",
"visibilityDerivation": "frontmatter.visibility/private/draft plus private and drafts path guards",
"relations": "wikilinks, backlinks and assets normalized during content-index compile",
"card": "card.eyebrow, card.chips and card.subtitle are generated by the index compiler from categories, tags, project and series"
},
"collectionSchema": {
"basis": [
"folder",
"series",
"topic"
],
"required": [
"id",
"type",
"title",
"description",
"basis",
"objects",
"relations",
"tags",
"layout",
"projections",
"card",
"stats"
],
"generation": "tools/build-runtime-content-index.mjs groups MarkdownObject into folder collections, frontmatter series collections and shared topic collections",
"surfaceRule": "homepage is a mixed-object runtime surface and may include folder/series KnowledgeCollection lens cards without becoming collection-first or collection-only; a collection card only opens a Reading Session drawer; /collections/ lists folder/series collection entry points; /collections/[slug]/ is only generated for folder/series Reading Session surfaces with article reader plus collection TOC; topic collections remain metadata/search/Graph dimensions in the runtime index and must not be batch prerendered into static collection pages; object switching inside a collection must not full reload or degrade into an object card grid"
},
"filter": [
"draft != true",
"published != false",
"visibility is public",
"default include all Markdown under /home/vault/Obsidian/docs unless blocked by draft/private rules"
],
"route": "/posts/[slug]/",
"feedConsumer": [
"apps/web/src/pages/index.astro",
"apps/web/src/pages/posts/index.astro"
],
"indexFiles": [
"public-data/runtime/content-index.json",
"apps/web/public/runtime/content-index.json"
],
"featureRegistryFiles": [
"public-data/runtime/features.json",
"apps/web/public/runtime/features.json"
],
"homepageFeedUi": "Homepage is Runtime Surface v2: mixed-object masonry, feed tabs, drawer peek, search, OpenList/Pinterest shell and runtime refresh stay alive together. It may insert a small number of KnowledgeCollection lens cards, but must not become a Collection Gateway or collection-only feed. Collection drawer templates are Reading Sessions where current article html is the reading center and collection TOC is the context rail. Clicking another object swaps drawer article content from /runtime/articles/*.json without page navigation. /posts/ remains the article index and /posts/[slug]/ remains the permalink detail route. /runtime/events SSE is preferred and 30 second polling is only used when EventSource is unavailable",
"runtimeReaderUi": "/posts/[slug]/ is the only public article detail route. It is generated from Runtime MarkdownObject metadata and reads the matching /runtime/articles/*.json detail payload for body/html/toc.",
"cardUiRule": "ArticleCard, homepage runtime feed, /posts/ and /posts/[slug]/ display chips only from MarkdownObject.card.chips; tags/categories remain indexing metadata, not ad hoc card labels",
"autoSyncWatcher": "deprecated: Windows watcher/scp content sync is disabled",
"serverRuntimeProjector": "tools/server-runtime-content-projector.mjs runs as systemd myblog-runtime-content-projector.service on Linux, watches and scans /home/vault/Obsidian/docs, writes /srv/myblog/site/runtime/content-index.json with /openlist/Obsidian/docs public identity, and never runs Astro build/Pagefind/deploy/scp",
"runtimeEvents": "tools/runtime-content-sse-server.mjs runs as systemd myblog-runtime-sse.service on 127.0.0.1:4121; nginx proxies /runtime/events; it only emits content-index events when the live JSON file changes",
"syncOnlyRule": "Obsidian markdown edits sync as files into /home/vault/Obsidian; Linux projection updates only /srv/myblog/site/runtime/content-index.json and OpenList identity fields. Astro build, Pagefind, scp and deploy are reserved for shell code, route or static asset changes",
"postsPageUi": "Runtime MarkdownObject articles are the only /posts/ listing source",
"metadataUi": "Editorial metadata line; no badge/chip controls on runtime article metadata"
},
"folderMapping": {
"folderTags": "path segments",
"explicitTags": "frontmatter tags",
"finalTags": "deduped folderTags + explicitTags",
"collectionId": "parent folder path"
},
"inspirations": [
"TinaCMS",
"Decap CMS",
"Quartz 4",
"Flowershow",
"Logseq Publish",
"Obsidian Publish"
],
"forbidden": [
"treat Obsidian Vault as public site source",
"treat OpenList as CMS",
"treat MySQL as article body source",
"run TinaCMS and Decap CMS as parallel editors",
"edit apps/web/dist or /srv/myblog/site as content source"
]
},
"composableServiceStack": {
"status": "target architecture documented; OpenList+COS is active, Immich skeleton is installed but not started, Directus and Meilisearch are not deployed",
"thesis": "MyBlog is the presentation shell; mature services own files, AI media management, metadata curation and search",
"presentationShell": {
"service": "Astro/MyBlog",
"status": "active",
"role": "Feed, Drawer, Reader, Visual Collections, Graph and public routes; consumes APIs, snapshots, manifests and Astro content collections"
},
"fileTruth": {
"service": "OpenList + Tencent COS",
"status": "active",
"openListMount": "/腾讯云COS",
"bucket": "myblog-media-1410041307",
"region": "ap-shanghai",
"verifiedWriteObject": "_verify/openlist-cos.txt",
"role": "large original files, books, visuals, videos and archives"
},
"mediaRuntime": {
"service": "Immich",
"status": "skeleton-installed-not-started",
"publicUrl": "https://photos.blog.tengokukk.com/",
"serverRoot": "/srv/immich",
"role": "photo/video ingest, thumbnails, EXIF, face/object recognition, CLIP embeddings and semantic search",
"blockedBy": [
"photos.blog.tengokukk.com DNS NXDOMAIN",
"root disk below readiness threshold",
"dedicated media volume not configured"
]
},
"metadataOverlay": {
"service": "Directus",
"status": "target-not-deployed",
"composeSkeleton": "infra/composable-stack/docker-compose.yml",
"p0Sidecar": "public-data/books/books.metadata.json",
"role": "metadata layer for books, visuals, collections and knowledge_objects; P0 books metadata is a versioned sidecar until Directus or an equivalent metadata DB is deployed",
"filePolicy": "stores structured metadata only; large files remain in OpenList/COS"
},
"searchRuntime": {
"service": "Meilisearch",
"status": "target-not-deployed",
"composeSkeleton": "infra/composable-stack/docker-compose.yml",
"role": "dynamic full-text and semantic search for KnowledgeObject snapshots, OpenList file index, Directus metadata and Immich imports",
"currentFallback": "Pagefind remains the current static search until Meilisearch is deployed"
},
"infraSkeleton": {
"root": "infra/composable-stack",
"composeFile": "infra/composable-stack/docker-compose.yml",
"envExample": "infra/composable-stack/.env.example",
"readinessScript": "infra/composable-stack/check-readiness.sh",
"serverTargetRoot": "/srv/myblog/services/composable-stack",
"serverSkeletonStatus": "synced to server; .env is intentionally missing and containers are not started",
"startupGate": "run ./check-readiness.sh and require ready before docker compose up -d",
"status": "source skeleton only; not deployed as running services"
},
"authorityRules": [
"OpenList/COS owns file existence only; it does not own tags, descriptions, status or collections",
"public-data/books/books-index.json is a regenerable file index projection, not an editable metadata database",
"public-data/books/books.metadata.json is the current P0 editable metadata layer and must migrate to Directus or an equivalent metadata DB before scaling",
"browser localStorage is preference/cache/legacy migration only, never runtime truth",
"apps/admin-next is a gateway/import/cache/runtime bridge, not a full CMS, media library or search engine",
"visitor page loads must read snapshots and caches, not run AI inference or re-index large files",
"do not describe Directus or Meilisearch as active before deployment and verification"
],
"targetPipeline": [
"COS/OpenList canonical file index",
"Directus metadata overlay",
"Meilisearch search index",
"Astro/MyBlog frontend",
"Immich API snapshot",
"VisualCollection and KnowledgeObject projection"
]
},
"projectionClients": {
"status": "target architecture documented; PWA/TWA first, native Android only after Runtime API schema stabilizes",
"thesis": "One Runtime and Object Graph, multiple projection surfaces. Web and Android may have different UI, but must not duplicate authority or business logic.",
"runtimeAuthority": [
"OpenList/COS blob backend and content access",
"MySQL runtime state",
"Directus metadata overlay target",
"Meilisearch search target",
"Immich media runtime target",
"KnowledgeObject graph"
],
"runtimeApiTarget": [
"/api/feed",
"/api/books",
"/api/visuals",
"/api/search",
"/api/graph",
"/api/runtime/*"
],
"surfaces": {
"web": {
"status": "active",
"stack": "Astro + React islands",
"role": "current production projection shell"
},
"pwaTwa": {
"status": "auto-generated-twa-artifacts-verified",
"workspace": "apps/android-shell",
"stack": "PWA manifest + service worker + Bubblewrap / Trusted Web Activity",
"role": "installable Android shell that follows Web Runtime updates",
"manifestSource": "apps/web/public/manifest.webmanifest",
"serviceWorkerSource": "apps/web/public/sw.js",
"assetLinksSource": "apps/web/public/.well-known/assetlinks.json",
"sha256CertFingerprints": [
"1C:64:9F:75:41:AE:39:B7:A7:D7:E3:4D:EE:41:CB:EA:BC:1F:13:7F:27:39:6A:F4:19:F0:76:B6:FE:A3:11:BD"
],
"serviceWorkerBoundary": [
"do not intercept /api/*",
"do not intercept /openlist/*",
"do not intercept /reader/openlist",
"do not intercept /books/openlist",
"do not intercept HTTP Range requests"
],
"validationCommand": "npm run android:twa:validate",
"generateCommand": "npm run android:twa:generate",
"buildCommand": "npm run android:twa:build",
"buildTestSignedCommand": "npm run android:twa:build:test-signed",
"generatedProjectRoot": ".runtime/android-twa",
"ciWorkflow": ".github/workflows/android-twa.yml",
"generatedArtifacts": [
".runtime/android-twa/app-release-unsigned-aligned.apk",
".runtime/android-twa/app/build/outputs/bundle/release/app-release.aab",
".runtime/android-twa/app-release-signed.apk"
],
"artifactRule": "generated-only; do not commit Bubblewrap output"
},
"androidNative": {
"status": "target phase 3",
"stack": "Kotlin + Compose + ViewModel/Flow + Ktor/Retrofit + Coil + Room",
"role": "native runtime client consuming the same Runtime API"
}
},
"sharedPackages": {
"runtimeContract": "packages/runtime-contract",
"objectModel": "packages/object-model"
},
"forbidden": [
"WebView shell as final app architecture",
"duplicating book existence logic in Android",
"duplicating OpenList parsing or metadata authority in Android",
"duplicating search ranking or graph relation logic per client",
"treating Room/local cache as source of truth"
],
"localCacheRule": "Android Room/cache may mirror runtime data for offline and speed, but must use version/etag/modified/size/sync watermark invalidation and never become upstream truth",
"updateTarget": "GitHub Releases + AppUpdater first; F-Droid repo is optional later"
},
"runtimeFederation": {
"status": "architecture contract documented; only OpenList/COS and MyBlog runtime pieces are active unless separately marked",
"thesis": "Clone mature system roles, not UI or duplicate engines. MyBlog owns Object Layer Glue, Runtime Schema, Projection Logic and Knowledge Semantics.",
"targetPipeline": [
"Obsidian",
"Syncthing",
"Linux /home/vault/Obsidian hot mirror",
"OpenList /openlist/Obsidian content control plane",
"Quartz-compatible Markdown runtime layer",
"MyBlog Runtime API and Object Layer Glue",
"Astro UI Shell / PWA-TWA / Android / Search / CLI / AI Agent"
],
"matureReplacementPriority": [
{
"rank": 1,
"service": "Syncthing",
"replace": "Windows watcher, scp content sync, Obsidian in-process projection and custom Vault sync"
},
{
"rank": 2,
"service": "Runtime MarkdownObject",
"replace": "parallel article systems, Astro posts authority, ad-hoc runtime article projections and browser-side markdown rendering"
},
{
"rank": 3,
"service": "Quartz 4",
"replace": "custom Markdown compiler, wikilink/backlink/graph basics, TOC, LaTeX, callout and table rendering"
},
{
"rank": 4,
"service": "Meilisearch",
"replace": "runtime object search gaps left by Pagefind/local search"
},
{
"rank": 5,
"service": "Immich",
"replace": "custom visual snapshot, thumbnail manifest, AI tagging, embedding and gallery runtime"
},
{
"rank": 6,
"service": "Payload or Directus",
"replace": "custom object/media admin and metadata relation editor"
},
{
"rank": 7,
"service": "AppFlowy Cloud",
"replace": "custom Project Studio collaboration runtime, block editor, kanban/database, comments, realtime presence and workspace permissions"
}
],
"referenceSystems": {
"obsidian": {
"url": "https://obsidian.md/",
"role": "Authoring Truth",
"status": "active upstream",
"learn": [
"vault writing",
"wikilinks",
"attachments",
"long-form knowledge authoring"
]
},
"remotelySave": {
"url": "https://github.com/remotely-save/remotely-save",
"role": "Vault Sync",
"status": "target workflow",
"learn": [
"WebDAV sync",
"S3 sync",
"conflict handling",
"vault-level file sync"
]
},
"syncthing": {
"url": "https://github.com/syncthing/syncthing",
"role": "Hot Mirror Sync",
"status": "active for complete Obsidian vault",
"learn": [
"real-time file sync",
"incremental transfer",
"automatic recovery",
"conflict handling",
"Linux server hot mirror"
]
},
"openListCos": {
"url": "https://github.com/OpenListTeam/OpenList",
"role": "Content Control Plane / Blob Backend",
"status": "active",
"activeMounts": [
{
"mountPath": "/Obsidian",
"driver": "Local via OpenList public route",
"root": "/home/vault/Obsidian",
"publicRoute": "/openlist/Obsidian",
"verified": "2026-05-08"
},
{
"mountPath": "/腾讯云COS",
"driver": "S3",
"root": "/",
"verified": "2026-05-07"
},
{
"mountPath": "/夸克网盘",
"driver": "Quark",
"root": "provider-root",
"verified": "existing legacy mount"
}
],
"learn": [
"file listing",
"raw file access",
"WebDAV bridge",
"object storage mount"
]
},
"serverStorageIntegration": {
"status": "active",
"serverRootDisk": "/dev/vda2 40GB root filesystem",
"hotLayer": [
"/home/vault/Obsidian",
"/srv/myblog/site",
"/srv/myblog/site/runtime",
"/srv/myblog/site/pagefind",
"/srv/myblog/public-data/openlist-covers",
"/srv/myblog/public-data/openlist-pages",
"/srv/openlist/data"
],
"coldLayer": [
"OpenList:/腾讯云COS",
"OpenList:/夸克网盘",
"future S3/WebDAV backends",
"manual archive candidates under /home/vault/*.legacy-disabled-*"
],
"activeOpenListMounts": [
{
"mountPath": "/Obsidian",
"driver": "Local",
"root": "/home/vault/Obsidian",
"role": "public content access and OpenList identity for the Linux hot mirror"
},
{
"mountPath": "/腾讯云COS",
"driver": "S3",
"bucket": "myblog-media-1410041307",
"region": "ap-shanghai",
"role": "large original files, media, books and archive backend"
},
{
"mountPath": "/夸克网盘",
"driver": "Quark",
"role": "legacy/cold netdisk backend"
}
],
"adminNextPublicRoots": [
"/Obsidian",
"/腾讯云COS",
"/夸克网盘"
],
"maintenanceCommand": "npm run server:openlist-storage",
"pruneCommand": "npm run server:openlist-storage -- --prune-openlist-file-cache --apply",
"lastAction": "2026-05-08 pruned re-generable /srv/myblog/public-data/openlist-files cache, reducing root disk from 94% used to 91% used",
"rules": [
"OpenList is not an ext4/system disk replacement",
"do not place databases, node_modules, Astro dist, Pagefind, Syncthing hot mirror or /srv/myblog runtime roots on OpenList mounts",
"OpenList file cache is re-generable and may be pruned under explicit apply mode",
"legacy-disabled Vault folders are manual cold-archive candidates, not automatic deletion targets"
]
},
"quartz": {
"url": "https://github.com/jackyzha0/quartz",
"role": "Obsidian Digital Garden substrate",
"status": "reference / substrate candidate",
"learn": [
"Markdown transform",
"wikilinks",
"backlinks",
"graph",
"search",
"folder and tag publish"
]
},
"flowershow": {
"url": "https://github.com/flowershow/flowershow",
"role": "Obsidian Publish / CMS-like substrate",
"status": "reference / substrate candidate",
"learn": [
"Obsidian to website pipeline",
"Markdown site publish",
"hosted publish model"
]
},
"payload": {
"url": "https://github.com/payloadcms/payload",
"role": "Object / Media Admin reference",
"status": "reference / metadata candidate",
"learn": [
"object modeling",
"media layer",
"relation layer",
"admin architecture"
]
},
"appflowy": {
"url": "https://github.com/AppFlowy-IO/AppFlowy",
"cloudUrl": "https://github.com/AppFlowy-IO/AppFlowy-Cloud",
"role": "Project Studio Collaboration Runtime target",
"status": "target-not-deployed",
"recommendedPublicUrl": "https://project.tengokukk.com/",
"skeletonRoot": "infra/appflowy-cloud",
"serverTargetRoot": "/srv/myblog/services/appflowy-cloud",
"readinessScript": "infra/appflowy-cloud/check-readiness.sh",
"serverReadinessCommand": "cd /srv/myblog/services/appflowy-cloud && ./check-readiness.sh",
"upstreamInstallScript": "infra/appflowy-cloud/install-upstream.sh",
"currentMyBlogIntegration": "apps/web/src/pages/projects/[slug].astro exposes an AppFlowy target panel and falls back to GitHub Workbench until appflowyUrl is configured per project.",
"learn": [
"block runtime",
"object graph",
"CRDT",
"collaboration",
"local-first sync",
"database workspace",
"kanban",
"comments"
],
"authorityBoundary": "AppFlowy owns collaborative editing, realtime workspace, block documents, kanban/database and comments after deployment. MyBlog owns only public projection, feed/graph references and GitHub signal fallback.",
"blockedBy": [
"AppFlowy Cloud not deployed on project.tengokukk.com",
"project.tengokukk.com DNS does not currently resolve to 124.220.233.126",
"server /srv/myblog/services/appflowy-cloud has about 6GB free, below the 40GB AppFlowy readiness gate",
"server .env currently contains placeholder values only",
"project content entries do not yet have production appflowyUrl values",
"no AppFlowy snapshot importer/API contract exists yet"
]
},
"affine": {
"url": "https://github.com/toeverything/AFFiNE",
"role": "Workspace Runtime reference",
"status": "reference only",
"learn": [