blueprint-shared-docs 0.4.0 → 0.6.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.
@@ -4,7 +4,7 @@
4
4
  "entry": "blueprint-shared",
5
5
  "layer": "org",
6
6
  "describes": {
7
- "blueprint-shared-docs": "0.4.0"
7
+ "blueprint-shared-docs": "0.6.0"
8
8
  },
9
9
  "publish": {
10
10
  "target": "npm",
@@ -425,7 +425,7 @@
425
425
  "items": [
426
426
  "被 `if` 排除的 run 仍會出現在 Actions 列表,狀態是 skipped。",
427
427
  "ci 與 pr-message 各觸發一次的重複沒有處理,那一部分的 run 仍會占 runner。",
428
- "workflow 檔的改動要合進預設分支才生效,已採用範本的倉要等下一次同步才拿到。"
428
+ "workflow 檔的改動要合進預設分支才生效。"
429
429
  ]
430
430
  }
431
431
  ]
@@ -743,7 +743,7 @@
743
743
  "blocks": [
744
744
  {
745
745
  "kind": "text",
746
- "text": "沒有版號單元的倉不放政策檔、不列進 `product.members`、不打 tag,只套 blueprint-shared-templates 的 `base`。`base` 的 `commit-msg` hook 與訊息檢查腳本都會載入 `scripts/lib/common.sh`。"
746
+ "text": "沒有版號單元的倉不放政策檔、不列進 `product.members`、不打 tag,只需要 `base` 角色的規則,參考實作是 blueprint-shared-templates 的 `base`。`base` 的 `commit-msg` hook 與訊息檢查腳本都會載入 `scripts/lib/common.sh`。"
747
747
  },
748
748
  {
749
749
  "kind": "text",
@@ -1196,7 +1196,7 @@
1196
1196
  "items": [
1197
1197
  "`ci-scope.sh` 沒有三個 `has_*` 變數與三個輸出,`decide` 只寫 `run` 與 `native`。`ci.yml` 的 `scope` job 輸出也只剩這兩個。",
1198
1198
  "政策檢查依角色組裝:`ci.yml` 範本用 `# @if release` 與 `# @end` 包住「政策檔符合 schema」步驟,組裝時只有倉有 release 角色才留下。有 release 角色的倉,這一步沒有 `if`,漏放政策檔會失敗。沒有 release 角色的倉沒有政策檔也沒有這支腳本,組出的 `ci.yml` 沒有這一步。",
1199
- "facts job 的 `if` 只看 `run`。有 release 角色的倉,各步驟照範本,沒有 `facts/` 時 `check-facts.sh`、`check-facts-describes.sh`、`pin-train.sh` 本來就印 `⊘` 並成功(`has_facts`,release 角色的 `scripts/lib/facts.sh`),`release-train.sh` 也沒有 component 套件可帶 `--train`,所以 setup 與腳本不會失敗。沒有 release 角色的倉沒有這些腳本,同一個原則:job id `facts` 與必要檢查的名稱不變,步驟換成一個印「⊘ 這個倉沒有 release 角色,沒有 facts 套件,不需要檢查」並成功的步驟(`# @if !release` 區塊)。",
1199
+ "facts job 的 `if` 只看 `run`。有 release 角色的倉,各步驟自己處理沒有 `facts/` 的情況,沒有 `facts/` 時 `check-facts.sh`、`check-facts-describes.sh`、`pin-train.sh` 本來就印 `⊘` 並成功(`has_facts`,release 角色的 `scripts/lib/facts.sh`),`release-train.sh` 也沒有 component 套件可帶 `--train`,所以 setup 與腳本不會失敗。沒有 release 角色的倉沒有這些腳本,同一個原則:job id `facts` 與必要檢查的名稱不變,步驟換成一個印「⊘ 這個倉沒有 release 角色,沒有 facts 套件,不需要檢查」並成功的步驟(`# @if !release` 區塊)。",
1200
1200
  "e2e job 的 `if` 只看 push 或 workflow_dispatch 到 `refs/heads/release/`,不看 `needs.scope.outputs.e2e`。倉裡沒有 `tests/e2e/*.test.mjs` 時,job 印「⊘ 沒有 tests/e2e/*.test.mjs,沒有端對端測試可跑」並成功,建置與測試步驟用 `hashFiles('tests/e2e/*.test.mjs') != ''` 略過,和 `nightly.yml` 的 e2e 步驟相同。",
1201
1201
  "必要檢查四項在所有倉一致,被 `scope` 略過的 check 算通過。"
1202
1202
  ]
@@ -3043,7 +3043,7 @@
3043
3043
  "blocks": [
3044
3044
  {
3045
3045
  "kind": "text",
3046
- "text": "採用 c。`base` 角色的 `.gitignore` 是每個組裝出來的倉都會拿到的檔,使用範本的倉從它取得同一份清單。不在任何機器的全域忽略檔加清單。"
3046
+ "text": "採用 c。每個倉的 `.gitignore` 要完整列出作業系統、編輯器與各語言工具鏈的忽略清單。參考實作是 `base` 角色的 `.gitignore`,倉自己寫的清單涵蓋同樣的範圍即可。不在任何機器的全域忽略檔加清單。"
3047
3047
  },
3048
3048
  {
3049
3049
  "kind": "fact",
@@ -4425,6 +4425,117 @@
4425
4425
  "appliesFrom": "0.1.0",
4426
4426
  "supersedes": []
4427
4427
  },
4428
+ {
4429
+ "type": "decision",
4430
+ "id": "new-repo-by-shared-norms",
4431
+ "title": "新倉照共用規範的規則自己寫檔,範本與示範倉是參考實作,不從已發布版本取檔",
4432
+ "topics": [],
4433
+ "sections": [
4434
+ {
4435
+ "id": "context",
4436
+ "title": "背景",
4437
+ "blocks": [
4438
+ {
4439
+ "kind": "text",
4440
+ "text": "decision `new-repo-from-blueprint-release` 規定新倉從已發布的 blueprint 版本取 `templates/<role>/`,依倉的性質疊上需要的角色,工作區的版控提示詞照這個做法帶讀者建倉。它把範本當成新倉的檔案來源,所以規範的完成標準變成「新倉的檔和範本一致」。"
4441
+ },
4442
+ {
4443
+ "kind": "text",
4444
+ "text": "這和規範的原則衝突。共用規範(共用 fact)寫的是規則,倉要符合的是規則,不是某一份範本檔。範本與示範倉是 blueprint 寫出來示範規則的參考實作,別的倉不從它們取檔、同步或轉換。blueprint 倉內部的組裝不受影響,根目錄由範本組裝、示範倉由 blueprint 同步,照舊。"
4445
+ },
4446
+ {
4447
+ "kind": "text",
4448
+ "text": "`blueprint-shared-templates` 套件繼續發布,用途是可閱讀、可釘版的參考實作。取檔用的工具不再隨套件發布。"
4449
+ }
4450
+ ]
4451
+ },
4452
+ {
4453
+ "id": "options",
4454
+ "title": "選項",
4455
+ "blocks": [
4456
+ {
4457
+ "kind": "list",
4458
+ "items": [
4459
+ "a. 新倉照共用規範的規則自己寫檔。範本與示範倉是參考實作,可以讀來參考,但不從已發布的版本取檔。",
4460
+ "b. 維持舊決策,新倉從已發布版本取 `templates/<role>/`,只在文字上說範本是參考。",
4461
+ "c. 新倉從 blueprint 的 `main` 取範本,不看發布版本。"
4462
+ ]
4463
+ }
4464
+ ]
4465
+ },
4466
+ {
4467
+ "id": "decision",
4468
+ "title": "決定",
4469
+ "blocks": [
4470
+ {
4471
+ "kind": "text",
4472
+ "text": "採用 a。新倉的每個檔都由建倉的人或代理照共用 fact 的規則寫出來。要看某條規則寫成檔長什麼樣子時,讀 `blueprint-shared-templates` 的角色目錄或示範倉,當作參考實作讀,檔案內容自己寫,不複製、不同步、不用工具轉換。"
4473
+ },
4474
+ {
4475
+ "kind": "text",
4476
+ "text": "倉有哪些檔、檔裡要做到什麼,查共用 fact。角色分組與每個角色的規則是規範的一部分,不是取檔清單。"
4477
+ },
4478
+ {
4479
+ "kind": "fact",
4480
+ "facts": [
4481
+ "blueprint-shared.templates.roles",
4482
+ "blueprint-shared.repo-layout.directories",
4483
+ "blueprint-shared.merge.workflow",
4484
+ "blueprint-shared.git-flow.review-paths"
4485
+ ]
4486
+ }
4487
+ ]
4488
+ },
4489
+ {
4490
+ "id": "supersedes",
4491
+ "title": "取代的決策",
4492
+ "blocks": [
4493
+ {
4494
+ "kind": "text",
4495
+ "text": "這份 decision 取代 `blueprint-demos-docs` 的 decision `new-repo-from-blueprint-release` 的整份決定,也就是「新倉從已發布版本取 `templates/<role>/`」。`supersedes` 欄位只能指向同一個 entry 的 decision,而那份在私有套件的另一個 entry,所以舊 decision 的狀態另外標成 superseded,取代關係寫在這裡。"
4496
+ }
4497
+ ]
4498
+ },
4499
+ {
4500
+ "id": "rationale",
4501
+ "title": "理由",
4502
+ "blocks": [
4503
+ {
4504
+ "kind": "list",
4505
+ "items": [
4506
+ "完成標準是規則,所以倉只要符合規則就算完成,不必和範本檔逐字一致。倉的檔由倉自己維護,不會因為範本改版而被迫跟著動。",
4507
+ "規則寫在 fact,範本只示範一種寫法。取檔會讓讀者以為範本檔就是規則,範本裡示範倉專屬的內容也會被一起帶走。",
4508
+ "選 b 的規則仍然是取檔,只是改了說法。選 c 拿到的可能是還沒發布、fact 還沒描述的範本。"
4509
+ ]
4510
+ }
4511
+ ]
4512
+ },
4513
+ {
4514
+ "id": "consequences",
4515
+ "title": "代價",
4516
+ "blocks": [
4517
+ {
4518
+ "kind": "list",
4519
+ "items": [
4520
+ "新倉建立時要自己寫每個檔,比取檔多花功夫。規則寫得不夠清楚的地方,要補在共用 fact,不靠讀者去範本找答案。",
4521
+ "工作區的版控提示詞要從「取 `templates/<role>/`」改成「照共用 fact 的規則寫檔,範本是參考」,由工作區自己的任務處理。",
4522
+ "範本的取檔工具(`transform.mjs`、`facts-skeleton.mjs`、`facts-describes.ts`)搬出套件,套件版本是破壞性變更。"
4523
+ ]
4524
+ }
4525
+ ]
4526
+ }
4527
+ ],
4528
+ "factRefs": [
4529
+ "blueprint-shared.templates.roles",
4530
+ "blueprint-shared.repo-layout.directories",
4531
+ "blueprint-shared.merge.workflow",
4532
+ "blueprint-shared.git-flow.review-paths"
4533
+ ],
4534
+ "docRefs": [],
4535
+ "status": "accepted",
4536
+ "appliesFrom": "0.5.0",
4537
+ "supersedes": []
4538
+ },
4428
4539
  {
4429
4540
  "type": "decision",
4430
4541
  "id": "ops-declares-cloud-resources",
@@ -5156,6 +5267,122 @@
5156
5267
  "appliesFrom": "0.1.0",
5157
5268
  "supersedes": []
5158
5269
  },
5270
+ {
5271
+ "type": "decision",
5272
+ "id": "publish-binary-and-image-targets",
5273
+ "title": "發布規則加執行檔發到公開發布倉與容器映像推 ghcr 兩種目標,單元用政策檔的選填欄位 `publish.to` 選目標",
5274
+ "topics": [],
5275
+ "sections": [
5276
+ {
5277
+ "id": "context",
5278
+ "title": "背景",
5279
+ "blocks": [
5280
+ {
5281
+ "kind": "text",
5282
+ "text": "原本的發布規則只有 npm、PyPI、crates.io、GitHub Packages 與 Go、Swift 的公開鏡像倉。Go 的指令工具要讓使用者用 Homebrew 安裝,服務要把容器映像交給部署,這兩種產物都沒有共用的發布規則,各倉只能自己寫。"
5283
+ },
5284
+ {
5285
+ "kind": "text",
5286
+ "text": "另一個問題是單元怎麼選目標。原本發布腳本只看單元目錄裡的檔案,例如有 `go.mod` 就走鏡像倉。這個方式表達不了「這個單元不發布」,也分不出要發布的 Go 指令工具和只是有 `package main` 的內部程式。"
5287
+ }
5288
+ ]
5289
+ },
5290
+ {
5291
+ "id": "options",
5292
+ "title": "選項",
5293
+ "blocks": [
5294
+ {
5295
+ "kind": "list",
5296
+ "items": [
5297
+ "a. 加兩種目標,單元在政策檔用選填欄位 `publish.to` 選 `binary`、`image` 或 `none`。沒寫時照檔案判斷。",
5298
+ "b. 加兩種目標,但從檔案推斷。有 Dockerfile 就推映像,Go 的 `package main` 就發執行檔。",
5299
+ "c. 加兩種目標,並在 `kind` 加新值,例如 `cli` 與 `image`。",
5300
+ "d. 不放進共用規則,由各倉自己寫發布流程。"
5301
+ ]
5302
+ }
5303
+ ]
5304
+ },
5305
+ {
5306
+ "id": "decision",
5307
+ "title": "決定",
5308
+ "blocks": [
5309
+ {
5310
+ "kind": "text",
5311
+ "text": "採用 a。規則寫成下列 fact,以最新一列為準。"
5312
+ },
5313
+ {
5314
+ "kind": "list",
5315
+ "items": [
5316
+ "`publish.to` 有三個值。`binary` 發編譯好的執行檔,`image` 推容器映像到 ghcr,`none` 表示不發布。",
5317
+ "單元沒寫 `publish` 時,照單元的檔案判斷,和原本一樣。既有的 Go 函式庫因此照舊走鏡像倉。",
5318
+ "寫了 `publish.to` 就以它為準。Go 單元寫 `binary`、`image` 或 `none` 時,不再推鏡像倉,見 `go-swift-mirror-repos`。",
5319
+ "`binary` 只用於 `kind` 是 `package` 的單元,要帶 `command`、`description`、`platforms`。這一版只支援 Go,單元沒有 `go.mod` 時檢查報錯並寫出原因。",
5320
+ "`image` 只用於 `kind` 是 `service` 或 `backend` 的單元,要帶 `platforms`。它不經 tag 部署,所以不必寫 `targets`。",
5321
+ "執行檔依政策檔的平台交叉編譯,連同 checksum 發到組織值指定的公開發布倉。預發布只發 GitHub prerelease,GA 才更新 Homebrew formula。",
5322
+ "映像推到 `ghcr.io`,不打 latest,digest 附在來源倉單元 tag 的 Release。映像不帶組織設定,部署時才掛入。",
5323
+ "執行檔的 token 用組織的 bot App,`repositories` 只限發布倉,權限只給 `contents: write`。映像的 token 用 job 的 `GITHUB_TOKEN` 加 `packages: write`,因為 bot App 沒有 packages 權限。"
5324
+ ]
5325
+ },
5326
+ {
5327
+ "kind": "fact",
5328
+ "facts": [
5329
+ "blueprint-shared.publishing.target-selection",
5330
+ "blueprint-shared.publishing.binary-release",
5331
+ "blueprint-shared.publishing.container-image",
5332
+ "blueprint-shared.release-policy.unit-publish",
5333
+ "blueprint-shared.publishing.methods",
5334
+ "blueprint-shared.publishing.go-swift-mirror"
5335
+ ]
5336
+ }
5337
+ ]
5338
+ },
5339
+ {
5340
+ "id": "rationale",
5341
+ "title": "理由",
5342
+ "blocks": [
5343
+ {
5344
+ "kind": "list",
5345
+ "items": [
5346
+ "選 a 讓既有的倉不用改政策檔。沒寫 `publish` 的單元行為不變,新欄位只影響明確選了目標的單元。",
5347
+ "選 b 的檔案推斷表達不了「不發布」,因為檔案在就會被推到某個目標。它也分不出要發布的 Go 指令工具和只是有 `package main` 的內部程式,會把內部程式發出去。",
5348
+ "選 c 不加新的 `kind`,因為 `kind` 管的是階段與部署方式,發布去處是另一件事。同一個 `kind` 的單元可以發到不同地方,也可以不發。",
5349
+ "選 d 讓每個倉各寫一份 token 縮權、重跑冪等與 digest 記錄,容易寫錯,錯了又是不可逆的發布。",
5350
+ "映像不帶組織設定,所以同一個映像可以放在 ghcr 而不洩漏組織值,設定由部署時掛入。",
5351
+ "執行檔用組織 bot App 並把 token 縮到發布倉,因為發布倉是另一個倉,要有寫入權限,縮權後 token 洩漏也只影響發布倉。映像用 `GITHUB_TOKEN`,因為 bot App 沒有 packages 權限,而 digest 附在來源倉自己的 Release,同一個 token 的 `contents: write` 就夠,不必另外產生憑證。"
5352
+ ]
5353
+ }
5354
+ ]
5355
+ },
5356
+ {
5357
+ "id": "consequences",
5358
+ "title": "代價",
5359
+ "blocks": [
5360
+ {
5361
+ "kind": "list",
5362
+ "items": [
5363
+ "單元的發布目標有兩個來源,政策檔的 `publish.to` 與沒寫時的檔案判斷。讀者要先看政策檔,才知道單元去哪裡。",
5364
+ "`go-swift-mirror-repos` 說每個 Go 單元一個鏡像倉,現在只適用沒寫 `publish.to` 的單元。那份決策已採納,內文不改,以這份和 fact 為準。",
5365
+ "要用 `binary` 的倉要填組織值 `binaryReleaseRepository`,要用 `image` 的倉要有帶 docker 標籤的 runner,沒填時發布 job 停下並寫出原因。",
5366
+ "ghcr 套件第一次推送是私有。要公開時由人在 GitHub 改一次,改了收不回。",
5367
+ "formula 把 `url` 放在 `on_*` 區塊是 goreleaser 的寫法,Homebrew 官方文件沒有描述,要用 `brew install` 實測。"
5368
+ ]
5369
+ }
5370
+ ]
5371
+ }
5372
+ ],
5373
+ "factRefs": [
5374
+ "blueprint-shared.publishing.target-selection",
5375
+ "blueprint-shared.publishing.binary-release",
5376
+ "blueprint-shared.publishing.container-image",
5377
+ "blueprint-shared.release-policy.unit-publish",
5378
+ "blueprint-shared.publishing.methods",
5379
+ "blueprint-shared.publishing.go-swift-mirror"
5380
+ ],
5381
+ "docRefs": [],
5382
+ "status": "accepted",
5383
+ "appliesFrom": "0.6.0",
5384
+ "supersedes": []
5385
+ },
5159
5386
  {
5160
5387
  "type": "decision",
5161
5388
  "id": "publish-dispatch-per-version-stage",
@@ -5314,7 +5541,7 @@
5314
5541
  "blocks": [
5315
5542
  {
5316
5543
  "kind": "text",
5317
- "text": "這是和範本不同的地方。範本的 `publish-units.sh` 與 `publish.yml` 要改,使用範本的倉要重新組裝。"
5544
+ "text": "這是和範本不同的地方。範本的 `publish-units.sh` 與 `publish.yml` 要改,使用這條規範的倉自己改發布腳本與 workflow。"
5318
5545
  }
5319
5546
  ]
5320
5547
  }
@@ -7125,6 +7352,109 @@
7125
7352
  "appliesFrom": "0.1.0",
7126
7353
  "supersedes": []
7127
7354
  },
7355
+ {
7356
+ "type": "decision",
7357
+ "id": "secret-list-holds-description",
7358
+ "title": "密鑰的說明寫在組態倉的密鑰清單,不寫在模板,由 CI 同步進 KV 的 metadata",
7359
+ "topics": [],
7360
+ "sections": [
7361
+ {
7362
+ "id": "context",
7363
+ "title": "背景",
7364
+ "blocks": [
7365
+ {
7366
+ "kind": "text",
7367
+ "text": "密鑰服務裡的每條路徑只存值,看路徑看不出它是什麼、誰負責、多久換一次。管理介面與寫值的人都需要這些說明。要決定三件事:說明寫在哪裡、怎麼進到密鑰服務、誰可以改。規則本身寫在 fact,這份只記為什麼這樣定。"
7368
+ },
7369
+ {
7370
+ "kind": "fact",
7371
+ "facts": [
7372
+ "blueprint-shared.secrets.secret-list-location",
7373
+ "blueprint-shared.secrets.secret-list-file",
7374
+ "blueprint-shared.secrets.unit-env",
7375
+ "blueprint-shared.secrets.metadata-access"
7376
+ ]
7377
+ }
7378
+ ]
7379
+ },
7380
+ {
7381
+ "id": "options",
7382
+ "title": "選項",
7383
+ "blocks": [
7384
+ {
7385
+ "kind": "list",
7386
+ "items": [
7387
+ "a. 說明寫在模板,模板列環境變數時順便寫這把密鑰的用途。",
7388
+ "b. 說明寫在組態倉的密鑰清單,每條路徑宣告一次,CI 同步進 KV v2 的 `custom_metadata`,人只寫值。",
7389
+ "c. 說明由人在管理介面直接寫進 metadata,不放在 git。"
7390
+ ]
7391
+ }
7392
+ ]
7393
+ },
7394
+ {
7395
+ "id": "decision",
7396
+ "title": "決定",
7397
+ "blocks": [
7398
+ {
7399
+ "kind": "text",
7400
+ "text": "採用 b。下面四點是這個決定的內容,規則本身見 fact。"
7401
+ },
7402
+ {
7403
+ "kind": "list",
7404
+ "items": [
7405
+ "每條密鑰路徑在組態倉的密鑰清單宣告一次,清單放 `ops/workloads/secrets/<環境>/<產品>/<單元>.yml`,寫欄位名、用途與負責人,不寫值。",
7406
+ "模板只能引用清單宣告過的路徑與欄位。",
7407
+ "CI 只寫 metadata,不碰值。人用的角色改不了 metadata 的內容,所以說明只有清單一個來源。",
7408
+ "程式倉的 env 宣告另有選填的 `description`,寫這個環境變數給程式做什麼。清單寫的是密鑰本身的用途,兩者不重複。"
7409
+ ]
7410
+ }
7411
+ ]
7412
+ },
7413
+ {
7414
+ "id": "rationale",
7415
+ "title": "理由",
7416
+ "blocks": [
7417
+ {
7418
+ "kind": "list",
7419
+ "items": [
7420
+ "不寫在模板:模板只列一個單元要哪些環境變數、各自的值從哪裡來,它不擁有 KV 路徑。同一條路徑可能被好幾個單元的模板引用,說明寫在模板會有好幾份,改的時候要改好幾處,而且不知道哪一份才算數(`blueprint-shared.secrets.template-file`)。",
7421
+ "寫在清單:雲端的密鑰服務常見的做法是容器由 IaC 宣告、值在 IaC 之外寫。容器帶著標籤、說明與輪替設定,值是另一個資源。清單就是這裡的容器宣告,路徑由檔案位置算出,所以一條路徑只會在一個地方宣告(`blueprint-shared.secrets.secret-list-location`)。",
7422
+ "放 git 而不是讓人在介面寫:說明的變更要經過 PR,留得下誰改了什麼。PR 檢查也才擋得下模板引用沒宣告的路徑,或引用的路徑在該環境還沒有值的情況。",
7423
+ "CI 只寫 metadata:同步角色在值的路徑上沒有任何權限,所以 CI 讀不到值,值也不會進任何 state。它不刪 metadata,因為刪 metadata 會永久刪掉這條路徑的所有版本,這一步留給人(`blueprint-shared.secrets.metadata-access`)。",
7424
+ "人改不了說明:人用的角色在 metadata 上只能讀、列與刪除,不能建立或修改。這樣說明不會在介面被改了、清單卻沒改,下一次同步時兩邊對不上。",
7425
+ "`description` 與清單分開:環境變數的名字和用途屬於程式,跟著程式發版。密鑰的用途與負責人屬於組織的密鑰管理,跟著組態倉改。同一把密鑰可能餵給不同程式的不同變數,所以兩邊各寫各的(`blueprint-shared.secrets.unit-env`)。"
7426
+ ]
7427
+ }
7428
+ ]
7429
+ },
7430
+ {
7431
+ "id": "consequences",
7432
+ "title": "代價",
7433
+ "blocks": [
7434
+ {
7435
+ "kind": "list",
7436
+ "items": [
7437
+ "新增一把密鑰要先開 PR 宣告,合併後才寫值,不能直接寫。",
7438
+ "說明在 git 與密鑰服務各一份,靠 CI 保持一致。CI 發現密鑰服務裡的說明和上一版清單不同時會停下回報,要人判斷哪一邊對。",
7439
+ "KV 沒有改名的 API,改名時人要把值複製到新路徑,再開 PR 同時改清單與模板,最後由人刪掉舊路徑。",
7440
+ "`custom_metadata` 的每個值最長 512 字元,用途寫不長,詳細說明要另外放。",
7441
+ "清單宣告移除的路徑不會自動刪,要人定期處理。"
7442
+ ]
7443
+ }
7444
+ ]
7445
+ }
7446
+ ],
7447
+ "factRefs": [
7448
+ "blueprint-shared.secrets.secret-list-location",
7449
+ "blueprint-shared.secrets.secret-list-file",
7450
+ "blueprint-shared.secrets.unit-env",
7451
+ "blueprint-shared.secrets.metadata-access"
7452
+ ],
7453
+ "docRefs": [],
7454
+ "status": "accepted",
7455
+ "appliesFrom": "0.5.0",
7456
+ "supersedes": []
7457
+ },
7128
7458
  {
7129
7459
  "type": "decision",
7130
7460
  "id": "secret-management-rules",
@@ -7409,7 +7739,7 @@
7409
7739
  "blocks": [
7410
7740
  {
7411
7741
  "kind": "text",
7412
- "text": "從範本導入的倉要把服務從 `apps/` 搬到 `services/`,tag 與 release-please 的路徑跟著改。"
7742
+ "text": "舊倉的服務放在 `apps/` 時,要搬到 `services/`,tag 與 release-please 的路徑跟著改。"
7413
7743
  }
7414
7744
  ]
7415
7745
  }
@@ -8131,7 +8461,7 @@
8131
8461
  "blocks": [
8132
8462
  {
8133
8463
  "kind": "text",
8134
- "text": "採用 c。共用模組放在 blueprint-shared-templates 的 `base` 的 `scripts/lib/retry.mjs`,使用範本的倉經範本取得。"
8464
+ "text": "採用 c。每個倉的共用重試模組要對 gh 與 git 呼叫的暫時性錯誤重試,規則如下。參考實作是 blueprint-shared-templates 的 `base` 的 `scripts/lib/retry.mjs`,倉自己寫模組,做到下列規則即可。"
8135
8465
  },
8136
8466
  {
8137
8467
  "kind": "list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blueprint-shared-docs",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Decisions and explanations shared by several products, published on its own",
5
5
  "license": "MIT",
6
6
  "author": "Carlos Space",
@@ -17,7 +17,7 @@
17
17
  "dist"
18
18
  ],
19
19
  "devDependencies": {
20
- "blueprint-shared-facts": "0.8.0",
20
+ "blueprint-shared-facts": "0.11.0",
21
21
  "clarify-kit": "^0.3.1",
22
22
  "fact-kit": "^0.14.1",
23
23
  "oxc-parser": "^0.155.0"