blueprint-shared-facts 0.7.1 → 0.8.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
  "package": "blueprint-shared-facts",
5
5
  "entry": "blueprint-shared",
6
6
  "describes": {
7
- "blueprint-shared-facts": "0.7.1"
7
+ "blueprint-shared-facts": "0.8.0"
8
8
  },
9
9
  "layer": "org",
10
10
  "facts": [
@@ -451,6 +451,89 @@
451
451
  }
452
452
  }
453
453
  },
454
+ {
455
+ "id": "blueprint-shared.ci.wait-loops",
456
+ "tool": "blueprint-shared",
457
+ "topics": [
458
+ "ci"
459
+ ],
460
+ "title": "job 不佔著 runner 等另一個 job",
461
+ "description": "等另一個 run、PR 或 release-please 的迴圈最多問兩輪,三個輪數變數不超過 2,間隔變數不超過預設值。`writeback-ops.sh` 的寫入重試是登記過的例外。",
462
+ "variants": [
463
+ {
464
+ "since": "0.8.0",
465
+ "content": {
466
+ "value": {
467
+ "rule": "A job on a self-hosted runner does not keep the runner waiting for another run. A loop that asks about another run, a pull request or release-please asks twice at most; the rest is triggered by an event, or the job fails and is dispatched again from outside.",
468
+ "roundVariables": [
469
+ "POLL_TRIES",
470
+ "CI_GATE_TRIES",
471
+ "CI_GATE_QUEUE_TRIES"
472
+ ],
473
+ "maxRounds": 2,
474
+ "roundVariablesWhere": "The three round variables are set on the workflow env, or in the env of every job whose runs-on is not a literal GitHub-hosted label (ubuntu-, macos-, windows-), and none is above maxRounds. The template ci.yml sets them on the jobs, the other workflows on the workflow.",
475
+ "sleepDefaults": {
476
+ "POLL_SLEEP": 3,
477
+ "CI_GATE_SLEEP": 15,
478
+ "WRITEBACK_RETRY_SLEEP": 5,
479
+ "WRITEBACK_RETRY_JITTER": 5,
480
+ "RETRY_SLEEP": 5
481
+ },
482
+ "sleepRule": "An interval variable is not set above its default (seconds).",
483
+ "writeRetries": [
484
+ {
485
+ "file": "templates/deploy/scripts/deploy/writeback-ops.sh",
486
+ "loop": "for ((i=1; i<=${WRITEBACK_TRIES:-6}; i++))",
487
+ "defaults": {
488
+ "WRITEBACK_TRIES": 6,
489
+ "WRITEBACK_RETRY_SLEEP": 5,
490
+ "WRITEBACK_RETRY_JITTER": 5
491
+ },
492
+ "limit": "WRITEBACK_TRIES rounds, 6 by default, of WRITEBACK_RETRY_SLEEP seconds (5) plus up to WRITEBACK_RETRY_JITTER seconds (5) at random",
493
+ "why": "the deploys of a monorepo write the ops declaration back at once, and each round lets one of them push"
494
+ }
495
+ ]
496
+ }
497
+ }
498
+ }
499
+ ],
500
+ "source": {
501
+ "kind": "published"
502
+ },
503
+ "content": {
504
+ "value": {
505
+ "rule": "A job on a self-hosted runner does not keep the runner waiting for another run. A loop that asks about another run, a pull request or release-please asks twice at most; the rest is triggered by an event, or the job fails and is dispatched again from outside.",
506
+ "roundVariables": [
507
+ "POLL_TRIES",
508
+ "CI_GATE_TRIES",
509
+ "CI_GATE_QUEUE_TRIES"
510
+ ],
511
+ "maxRounds": 2,
512
+ "roundVariablesWhere": "The three round variables are set on the workflow env, or in the env of every job whose runs-on is not a literal GitHub-hosted label (ubuntu-, macos-, windows-), and none is above maxRounds. The template ci.yml sets them on the jobs, the other workflows on the workflow.",
513
+ "sleepDefaults": {
514
+ "POLL_SLEEP": 3,
515
+ "CI_GATE_SLEEP": 15,
516
+ "WRITEBACK_RETRY_SLEEP": 5,
517
+ "WRITEBACK_RETRY_JITTER": 5,
518
+ "RETRY_SLEEP": 5
519
+ },
520
+ "sleepRule": "An interval variable is not set above its default (seconds).",
521
+ "writeRetries": [
522
+ {
523
+ "file": "templates/deploy/scripts/deploy/writeback-ops.sh",
524
+ "loop": "for ((i=1; i<=${WRITEBACK_TRIES:-6}; i++))",
525
+ "defaults": {
526
+ "WRITEBACK_TRIES": 6,
527
+ "WRITEBACK_RETRY_SLEEP": 5,
528
+ "WRITEBACK_RETRY_JITTER": 5
529
+ },
530
+ "limit": "WRITEBACK_TRIES rounds, 6 by default, of WRITEBACK_RETRY_SLEEP seconds (5) plus up to WRITEBACK_RETRY_JITTER seconds (5) at random",
531
+ "why": "the deploys of a monorepo write the ops declaration back at once, and each round lets one of them push"
532
+ }
533
+ ]
534
+ }
535
+ }
536
+ },
454
537
  {
455
538
  "id": "blueprint-shared.templates.deploy-repos",
456
539
  "tool": "blueprint-shared",
@@ -1068,7 +1151,7 @@
1068
1151
  "sameAs": "scripts/lib/bundle.sh is the same file as the one of the deploy role",
1069
1152
  "urls": "healthz.sh reads the URL pattern of each environment from ops/urls.json, which compose writes. The role has no repository variable for it",
1070
1153
  "targets": "The static job of ci.yml runs `node scripts/ci/check-targets.mjs` in a repository with this role. It validates ops/targets.json against schemas/targets.schema.json (the same JSON Schema as blueprint-shared.infra-layout.targets), then checks what the schema cannot: a ref points at an instance of the same kind, a host and a cluster are declared by the repository they name, a location or parent cluster with an environment suffix holds instances of that environment only, parent clusters and tenants are named by blueprint-shared.infra-layout.cluster-naming, and every iac/hosts/<location>/clusters/<cluster> and workloads/hosts/<location>/clusters/<cluster> directory is declared. The suffixes and the order of the cases are constants of the script that a test compares with the machine-readable fields of cluster-naming",
1071
- "orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (blueprint.demos.repos for the demo organization), because the script cannot read the facts. A <RepoName>: prefix of a host or ref has to be in this list, and a name outside it fails. The list is of one organization, so two organizations that both have a repository of the same name never share a list. A host or ref into a repository of the list whose ops/targets.json was not given is printed as 未核對 with the instance and the host, and does not fail. A repository checks only its own ops/targets.json in its own CI; a run that is given the ops/targets.json of every repository of the organization (--targets <RepoName>=<file>) checks all of it",
1154
+ "orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (for the demo organization, the repository list of its facts), because the script cannot read the facts. A <RepoName>: prefix of a host or ref has to be in this list, and a name outside it fails. The list is of one organization, so two organizations that both have a repository of the same name never share a list. A host or ref into a repository of the list whose ops/targets.json was not given is printed as 未核對 with the instance and the host, and does not fail. A repository checks only its own ops/targets.json in its own CI; a run that is given the ops/targets.json of every repository of the organization (--targets <RepoName>=<file>) checks all of it",
1072
1155
  "iac": "ops/iac/<purpose>/<env>/<step name>/ holds an OpenTofu root module: main.tf (a module call with a git source and ref, and the backend block) and terraform.tfvars.json (the inputs, among them the name of the bucket). apply-iac.sh applies the steps of one environment in the order of ops/needs.json with tofu init and tofu apply",
1073
1156
  "bucketName": "The name of an R2 bucket is written once, in the terraform.tfvars.json of its iac step. When apply-ops.sh joins the settings of a workloads step to the wrangler.toml of the bundle, it adds bucket_name to every [[env.<env>.r2_buckets]] table that has none, with the name from the terraform.tfvars.json of the iac steps the workloads step needs in ops/needs.json"
1074
1157
  }
@@ -1103,7 +1186,7 @@
1103
1186
  "sameAs": "scripts/lib/bundle.sh is the same file as the one of the deploy role",
1104
1187
  "urls": "healthz.sh reads the URL pattern of each environment from ops/urls.json, which compose writes. The role has no repository variable for it",
1105
1188
  "targets": "The static job of ci.yml runs `node scripts/ci/check-targets.mjs` in a repository with this role. It validates ops/targets.json against schemas/targets.schema.json (the same JSON Schema as blueprint-shared.infra-layout.targets), then checks what the schema cannot: a ref points at an instance of the same kind, a host and a cluster are declared by the repository they name, a location or parent cluster with an environment suffix holds instances of that environment only, parent clusters and tenants are named by blueprint-shared.infra-layout.cluster-naming, and every iac/hosts/<location>/clusters/<cluster> and workloads/hosts/<location>/clusters/<cluster> directory is declared. The suffixes and the order of the cases are constants of the script that a test compares with the machine-readable fields of cluster-naming",
1106
- "orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (blueprint.demos.repos for the demo organization), because the script cannot read the facts. A <RepoName>: prefix of a host or ref has to be in this list, and a name outside it fails. The list is of one organization, so two organizations that both have a repository of the same name never share a list. A host or ref into a repository of the list whose ops/targets.json was not given is printed as 未核對 with the instance and the host, and does not fail. A repository checks only its own ops/targets.json in its own CI; a run that is given the ops/targets.json of every repository of the organization (--targets <RepoName>=<file>) checks all of it",
1189
+ "orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (for the demo organization, the repository list of its facts), because the script cannot read the facts. A <RepoName>: prefix of a host or ref has to be in this list, and a name outside it fails. The list is of one organization, so two organizations that both have a repository of the same name never share a list. A host or ref into a repository of the list whose ops/targets.json was not given is printed as 未核對 with the instance and the host, and does not fail. A repository checks only its own ops/targets.json in its own CI; a run that is given the ops/targets.json of every repository of the organization (--targets <RepoName>=<file>) checks all of it",
1107
1190
  "iac": "ops/iac/<purpose>/<env>/<step name>/ holds an OpenTofu root module: main.tf (a module call with a git source and ref, and the backend block) and terraform.tfvars.json (the inputs, among them the name of the bucket). apply-iac.sh applies the steps of one environment in the order of ops/needs.json with tofu init and tofu apply",
1108
1191
  "bucketName": "The name of an R2 bucket is written once, in the terraform.tfvars.json of its iac step. When apply-ops.sh joins the settings of a workloads step to the wrangler.toml of the bundle, it adds bucket_name to every [[env.<env>.r2_buckets]] table that has none, with the name from the terraform.tfvars.json of the iac steps the workloads step needs in ops/needs.json"
1109
1192
  }
@@ -3832,13 +3915,19 @@
3832
3915
  "content": {
3833
3916
  "statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,把 `core.hooksPath` 設成 `scripts/hooks`(`commit-msg`、`pre-push`),並把 `commit.cleanup` 設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
3834
3917
  }
3918
+ },
3919
+ {
3920
+ "since": "0.8.0",
3921
+ "content": {
3922
+ "statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,不設倉內的 `core.hooksPath`,因為倉內的值會蓋過機器的全域設定,讓機器上的整組 hook 不跑。它在 `$(git rev-parse --git-common-dir)/hooks`(一般是 `.git/hooks/`,linked worktree 也用這個共用目錄)放 `commit-msg` 與 `pre-push` 兩個轉呼叫檔。轉呼叫檔把同樣的參數與 stdin 交給所在工作樹根的 `scripts/hooks/<name>`,結束碼照它。那支檔不存在或不能執行時略過並以 0 結束。舊版腳本設過倉內的 `core.hooksPath`,腳本只在共用設定裡的值等於 `scripts/hooks` 時移除它。值是別的,或寫在個別 worktree 的設定檔時不動,並印警告說轉呼叫檔會被它蓋住。`.git/hooks/` 已有同名檔時,帶腳本標記的就更新。沒有標記的不覆寫,印出檔名與處理方式並以非零結束。機器設了全域 `core.hooksPath` 時,git 只跑全域那組,全域那組會轉給 `.git/hooks/<name>` 時倉的 hook 才會跑,所以腳本偵測到全域路徑時印一行說明。不在工作樹裡時,例如 bare 倉或解開的壓縮檔,腳本不做任何事。`commit.cleanup` 照舊設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
3923
+ }
3835
3924
  }
3836
3925
  ],
3837
3926
  "source": {
3838
3927
  "kind": "published"
3839
3928
  },
3840
3929
  "content": {
3841
- "statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,把 `core.hooksPath` 設成 `scripts/hooks`(`commit-msg`、`pre-push`),並把 `commit.cleanup` 設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
3930
+ "statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,不設倉內的 `core.hooksPath`,因為倉內的值會蓋過機器的全域設定,讓機器上的整組 hook 不跑。它在 `$(git rev-parse --git-common-dir)/hooks`(一般是 `.git/hooks/`,linked worktree 也用這個共用目錄)放 `commit-msg` 與 `pre-push` 兩個轉呼叫檔。轉呼叫檔把同樣的參數與 stdin 交給所在工作樹根的 `scripts/hooks/<name>`,結束碼照它。那支檔不存在或不能執行時略過並以 0 結束。舊版腳本設過倉內的 `core.hooksPath`,腳本只在共用設定裡的值等於 `scripts/hooks` 時移除它。值是別的,或寫在個別 worktree 的設定檔時不動,並印警告說轉呼叫檔會被它蓋住。`.git/hooks/` 已有同名檔時,帶腳本標記的就更新。沒有標記的不覆寫,印出檔名與處理方式並以非零結束。機器設了全域 `core.hooksPath` 時,git 只跑全域那組,全域那組會轉給 `.git/hooks/<name>` 時倉的 hook 才會跑,所以腳本偵測到全域路徑時印一行說明。不在工作樹裡時,例如 bare 倉或解開的壓縮檔,腳本不做任何事。`commit.cleanup` 照舊設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
3842
3931
  }
3843
3932
  },
3844
3933
  {
@@ -8304,6 +8393,59 @@
8304
8393
  }
8305
8394
  }
8306
8395
  }
8396
+ },
8397
+ {
8398
+ "since": "0.8.0",
8399
+ "content": {
8400
+ "value": {
8401
+ "pattern": "<ProductName> or <ProductName><suffix> for a repository of the product layer; its own name for a repository of the organization layer",
8402
+ "suffixes": [
8403
+ "-hub",
8404
+ "-app",
8405
+ "-service",
8406
+ "-pkg",
8407
+ "-ops",
8408
+ "-infra"
8409
+ ],
8410
+ "suffixMeaning": {
8411
+ "-hub": "holds the product version, the Release Plan and the product-level facts and docs of a product split over several repositories",
8412
+ "-app": "deployable front ends and clients",
8413
+ "-service": "deployable back-end services",
8414
+ "-pkg": "packages published to a registry",
8415
+ "-ops": "the configuration repository of the product: declares and applies its cloud resources and workloads, and holds which version runs in each environment",
8416
+ "-infra": "capability interfaces only, see blueprint-shared.naming.unit-name (InfraName). Cloud resources are declared and applied in the -ops repository"
8417
+ },
8418
+ "mirror": {
8419
+ "pattern": "<UnitName>",
8420
+ "meaning": "A public mirror repository that publishes one Go or Swift unit is named after that unit.",
8421
+ "examples": [
8422
+ "acme-sdk-go",
8423
+ "acme-sdk-swift",
8424
+ "orbit-sdk-go"
8425
+ ]
8426
+ },
8427
+ "examples": [
8428
+ "acme",
8429
+ "orbit-hub",
8430
+ "orbit-pkg"
8431
+ ],
8432
+ "layer": {
8433
+ "field": "layer",
8434
+ "values": [
8435
+ "organization",
8436
+ "product"
8437
+ ],
8438
+ "default": "product",
8439
+ "writtenIn": "the entry of the repository in a list of repositories that a naming check reads, and the top-level layer of its release-policy.json",
8440
+ "organization": "A repository of the organization layer belongs to no product: it serves every product. Its name is its own, not a ProductName and not a ProductName with a suffix. The organization layer has any number of repositories, for example a code repository, a configuration repository, and the repository that holds the templates (blueprint-shared.templates.org-role). Their names are not used as a prefix of any unit",
8441
+ "product": "A repository of the product layer is named after the product as the pattern says",
8442
+ "examples": [
8443
+ "fleet",
8444
+ "fleet-config"
8445
+ ]
8446
+ }
8447
+ }
8448
+ }
8307
8449
  }
8308
8450
  ],
8309
8451
  "source": {
@@ -8350,7 +8492,7 @@
8350
8492
  ],
8351
8493
  "default": "product",
8352
8494
  "writtenIn": "the entry of the repository in a list of repositories that a naming check reads, and the top-level layer of its release-policy.json",
8353
- "organization": "A repository of the organization layer belongs to no product: it serves every product. Its name is its own, not a ProductName and not a ProductName with a suffix. The organization layer has a code repository and a configuration repository, and their names are not used as a prefix of any unit",
8495
+ "organization": "A repository of the organization layer belongs to no product: it serves every product. Its name is its own, not a ProductName and not a ProductName with a suffix. The organization layer has any number of repositories, for example a code repository, a configuration repository, and the repository that holds the templates (blueprint-shared.templates.org-role). Their names are not used as a prefix of any unit",
8354
8496
  "product": "A repository of the product layer is named after the product as the pattern says",
8355
8497
  "examples": [
8356
8498
  "fleet",
@@ -8483,6 +8625,93 @@
8483
8625
  }
8484
8626
  }
8485
8627
  }
8628
+ },
8629
+ {
8630
+ "since": "0.8.0",
8631
+ "content": {
8632
+ "value": {
8633
+ "kinds": [
8634
+ "AppName",
8635
+ "ServiceName",
8636
+ "PackageName",
8637
+ "LibName",
8638
+ "InfraName",
8639
+ "OpsName"
8640
+ ],
8641
+ "isUnit": "A unit is something that has its own version. It is a release-please package and a unit of release-policy.json.",
8642
+ "pattern": "<ProductName> or <ProductName>-<part> for a unit marked product; its own name for a unit marked own",
8643
+ "notShortened": "The name is never shortened to the part after the product name: acme-cli, not cli.",
8644
+ "sameAsRepo": "A unit may have the name of its repository.",
8645
+ "examples": [
8646
+ "acme-cli",
8647
+ "acme-js",
8648
+ "orbit-api",
8649
+ "pathwatch"
8650
+ ],
8651
+ "counterExamples": [
8652
+ "cli",
8653
+ "api"
8654
+ ],
8655
+ "shared": {
8656
+ "meaning": "A shared unit is published on its own and shared by several products, so it is not a component of the aggregate package of the repository. Its directory follows blueprint-shared.repo-layout.unit-dirs.",
8657
+ "names": [
8658
+ "<RepoName>-shared-facts",
8659
+ "<RepoName>-shared-docs",
8660
+ "<RepoName>-shared-templates"
8661
+ ],
8662
+ "access": "public",
8663
+ "scope": "The name carries no @<scope>/ prefix, whatever blueprint-shared.naming.scope-prefix gives the other names of the repository.",
8664
+ "examples": [
8665
+ "blueprint-shared-facts",
8666
+ "blueprint-shared-docs",
8667
+ "blueprint-shared-templates"
8668
+ ]
8669
+ },
8670
+ "naming": {
8671
+ "field": "naming",
8672
+ "values": [
8673
+ "product",
8674
+ "own"
8675
+ ],
8676
+ "default": "product",
8677
+ "writtenIn": "the entry of the unit in a list of repositories that a naming check reads",
8678
+ "product": "The unit exists only for one product, so it follows the pattern <ProductName> or <ProductName>-<part>.",
8679
+ "own": "Every other unit takes its own name: a tool that can be used on its own, or a service of the organization that every product uses.",
8680
+ "ownUnique": "An own name equals no ProductName and no other UnitName.",
8681
+ "organizationLayer": "A repository of the organization layer (blueprint-shared.naming.repo-name, field layer) has own units only, a module shared only inside the repository too, because no product name is there to prefix.",
8682
+ "mixed": "One repository may hold both kinds. For example a product monorepo holds <ProductName>-web, <ProductName>-api and a small open-source tool, and the tool takes its own name.",
8683
+ "checkedBy": "scripts/naming/check-names.mjs",
8684
+ "examples": {
8685
+ "product": [
8686
+ "acme-web",
8687
+ "orbit-api"
8688
+ ],
8689
+ "own": [
8690
+ "pathwatch"
8691
+ ]
8692
+ }
8693
+ },
8694
+ "kindMeaning": {
8695
+ "InfraName": "a capability interface in infra/<InfraName>/: the code of other units depends on it, and it stays the same in every environment. It fixes the engine and the way to reach it, see blueprint-shared.infra-layout.capability-interface",
8696
+ "OpsName": "an interface in ops/<OpsName>/ that changes with the environment, for example the address of each environment, used by the code of other units"
8697
+ },
8698
+ "dutyPackages": {
8699
+ "meaning": "The repository that holds the templates (blueprint-shared.templates.org-role) may have packages for its own duties. A package of the duty of showing the templates in demonstration repositories is named <RepoName>-demos-facts (facts) or <RepoName>-demos-docs (docs), and lives in demos/_facts or demos/_docs. The leading underscore keeps the two directories apart from the directory of a demonstration repository in demos/.",
8700
+ "pattern": "<RepoName>-<Duty>-facts and <RepoName>-<Duty>-docs, with <Duty> the duty in kebab-case; the duty demos is the only one written here",
8701
+ "dirs": {
8702
+ "<RepoName>-demos-facts": "demos/_facts",
8703
+ "<RepoName>-demos-docs": "demos/_docs"
8704
+ },
8705
+ "scope": "The @<scope>/ prefix follows blueprint-shared.naming.scope-prefix, like the other names of the repository.",
8706
+ "dependsOn": "They may depend on the packages of the organization layer of the repository and on the shared packages. No package of the organization layer or shared package depends on them.",
8707
+ "notAggregate": "They are packages of their own, not components of the <RepoName>-facts aggregate, which holds no duty of the template holder.",
8708
+ "examples": [
8709
+ "blueprint-demos-facts",
8710
+ "blueprint-demos-docs"
8711
+ ]
8712
+ }
8713
+ }
8714
+ }
8486
8715
  }
8487
8716
  ],
8488
8717
  "source": {
@@ -8554,6 +8783,21 @@
8554
8783
  "kindMeaning": {
8555
8784
  "InfraName": "a capability interface in infra/<InfraName>/: the code of other units depends on it, and it stays the same in every environment. It fixes the engine and the way to reach it, see blueprint-shared.infra-layout.capability-interface",
8556
8785
  "OpsName": "an interface in ops/<OpsName>/ that changes with the environment, for example the address of each environment, used by the code of other units"
8786
+ },
8787
+ "dutyPackages": {
8788
+ "meaning": "The repository that holds the templates (blueprint-shared.templates.org-role) may have packages for its own duties. A package of the duty of showing the templates in demonstration repositories is named <RepoName>-demos-facts (facts) or <RepoName>-demos-docs (docs), and lives in demos/_facts or demos/_docs. The leading underscore keeps the two directories apart from the directory of a demonstration repository in demos/.",
8789
+ "pattern": "<RepoName>-<Duty>-facts and <RepoName>-<Duty>-docs, with <Duty> the duty in kebab-case; the duty demos is the only one written here",
8790
+ "dirs": {
8791
+ "<RepoName>-demos-facts": "demos/_facts",
8792
+ "<RepoName>-demos-docs": "demos/_docs"
8793
+ },
8794
+ "scope": "The @<scope>/ prefix follows blueprint-shared.naming.scope-prefix, like the other names of the repository.",
8795
+ "dependsOn": "They may depend on the packages of the organization layer of the repository and on the shared packages. No package of the organization layer or shared package depends on them.",
8796
+ "notAggregate": "They are packages of their own, not components of the <RepoName>-facts aggregate, which holds no duty of the template holder.",
8797
+ "examples": [
8798
+ "blueprint-demos-facts",
8799
+ "blueprint-demos-docs"
8800
+ ]
8557
8801
  }
8558
8802
  }
8559
8803
  }
@@ -8783,6 +9027,26 @@
8783
9027
  "repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too."
8784
9028
  }
8785
9029
  }
9030
+ },
9031
+ {
9032
+ "since": "0.8.0",
9033
+ "content": {
9034
+ "value": {
9035
+ "meaning": "The name of the facts aggregate package, the only facts package of the repository that has components to aggregate and is published. A shared facts package with no components to aggregate is published on its own as a single layer (see blueprint-shared.naming.unit-name, shared) and is not an aggregate.",
9036
+ "productRepository": "<RepoName>-facts",
9037
+ "factsRepository": "<SourceTypeName>-facts",
9038
+ "noSuffix": "The aggregate never takes a publish target suffix.",
9039
+ "scope": "see blueprint-shared.naming.scope-prefix",
9040
+ "examples": [
9041
+ "acme-facts",
9042
+ "@my-org/orbit-facts",
9043
+ "orbit-pkg-facts",
9044
+ "@my-org/fleet-facts"
9045
+ ],
9046
+ "repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too.",
9047
+ "templateHolderPackages": "The repository that holds the templates names the facts package of its duty of showing the templates <RepoName>-demos-facts, in demos/_facts, and its docs package <RepoName>-demos-docs, in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-demos-facts is a facts package of its own and not an aggregate. The <RepoName>-facts aggregate holds the organization values and the repository list only, with the rules of the organization itself."
9048
+ }
9049
+ }
8786
9050
  }
8787
9051
  ],
8788
9052
  "source": {
@@ -8801,7 +9065,8 @@
8801
9065
  "orbit-pkg-facts",
8802
9066
  "@my-org/fleet-facts"
8803
9067
  ],
8804
- "repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too."
9068
+ "repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too.",
9069
+ "templateHolderPackages": "The repository that holds the templates names the facts package of its duty of showing the templates <RepoName>-demos-facts, in demos/_facts, and its docs package <RepoName>-demos-docs, in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-demos-facts is a facts package of its own and not an aggregate. The <RepoName>-facts aggregate holds the organization values and the repository list only, with the rules of the organization itself."
8805
9070
  }
8806
9071
  }
8807
9072
  },
@@ -8913,6 +9178,21 @@
8913
9178
  ]
8914
9179
  }
8915
9180
  }
9181
+ },
9182
+ {
9183
+ "since": "0.8.0",
9184
+ "content": {
9185
+ "value": {
9186
+ "pattern": "<RepoName>-docs",
9187
+ "scope": "see blueprint-shared.naming.scope-prefix: follows the access of the docs unit",
9188
+ "examples": [
9189
+ "@my-org/acme-docs",
9190
+ "@my-org/acme-toolkit-docs",
9191
+ "@my-org/orbit-hub-docs"
9192
+ ],
9193
+ "templateHolderPackages": "The repository that holds the templates has a second docs package for its duty of showing the templates: <RepoName>-demos-docs, in demos/_docs, next to <RepoName>-demos-facts in demos/_facts (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-docs, in docs/, stays the docs package of the organization layer."
9194
+ }
9195
+ }
8916
9196
  }
8917
9197
  ],
8918
9198
  "source": {
@@ -8926,7 +9206,8 @@
8926
9206
  "@my-org/acme-docs",
8927
9207
  "@my-org/acme-toolkit-docs",
8928
9208
  "@my-org/orbit-hub-docs"
8929
- ]
9209
+ ],
9210
+ "templateHolderPackages": "The repository that holds the templates has a second docs package for its duty of showing the templates: <RepoName>-demos-docs, in demos/_docs, next to <RepoName>-demos-facts in demos/_facts (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-docs, in docs/, stays the docs package of the organization layer."
8930
9211
  }
8931
9212
  }
8932
9213
  },
@@ -13249,6 +13530,164 @@
13249
13530
  "blueprintRoot": "The repository that holds the templates is not composed from roles, except for the files its own root assembly lists."
13250
13531
  }
13251
13532
  }
13533
+ },
13534
+ {
13535
+ "since": "0.8.0",
13536
+ "content": {
13537
+ "value": {
13538
+ "rule": "A role is a directory of the templates package. A composed repository gets the files of the roles listed for it, in that order, and a file of the repository itself wins over a role file. The compose script refuses roles that disagree with the repository list or the units.",
13539
+ "roles": [
13540
+ {
13541
+ "role": "base",
13542
+ "dir": "base/",
13543
+ "needs": [],
13544
+ "for": "every repository",
13545
+ "carries": "commit and pull request checks, git hooks, CI, the auto-merge workflow, the Issue and pull request templates, the repository settings script, common.sh"
13546
+ },
13547
+ {
13548
+ "role": "release",
13549
+ "dir": "release/",
13550
+ "needs": [
13551
+ "base"
13552
+ ],
13553
+ "for": "a repository with a release-policy.json (its repository declaration has releasePolicy: true)",
13554
+ "carries": "release-please settings and workflow, the release policy and its schema, the release scripts, the facts and docs pin scripts, the nightly workflow"
13555
+ },
13556
+ {
13557
+ "role": "publish",
13558
+ "dir": "publish/",
13559
+ "needs": [
13560
+ "base",
13561
+ "release"
13562
+ ],
13563
+ "for": "a repository that publishes a unit or the facts or docs package",
13564
+ "carries": "see blueprint-shared.templates.publish-role"
13565
+ },
13566
+ {
13567
+ "role": "deploy",
13568
+ "dir": "deploy/",
13569
+ "needs": [
13570
+ "base",
13571
+ "release"
13572
+ ],
13573
+ "for": "a repository with a Workers unit: a unit whose stack lang is workers, kind web, service or backend",
13574
+ "carries": "see blueprint-shared.templates.deploy-role"
13575
+ },
13576
+ {
13577
+ "role": "ops",
13578
+ "dir": "ops/",
13579
+ "needs": [
13580
+ "base"
13581
+ ],
13582
+ "for": "the repository that puts the declared bundles online",
13583
+ "carries": "see blueprint-shared.templates.ops-role"
13584
+ },
13585
+ {
13586
+ "role": "hub",
13587
+ "dir": "hub/",
13588
+ "needs": [
13589
+ "base",
13590
+ "release"
13591
+ ],
13592
+ "for": "the repository that holds the product version of a product with several repositories",
13593
+ "carries": "see blueprint-shared.templates.hub-role"
13594
+ },
13595
+ {
13596
+ "role": "verify",
13597
+ "dir": "verify/",
13598
+ "needs": [
13599
+ "base",
13600
+ "release"
13601
+ ],
13602
+ "for": "the repository that holds the Release Plans of a product that deploys: it checks prod against the Release Plan after a release",
13603
+ "carries": "see blueprint-shared.templates.verify-role"
13604
+ }
13605
+ ],
13606
+ "files": {
13607
+ "base": [
13608
+ "LICENSE",
13609
+ ".gitignore",
13610
+ ".github/CODEOWNERS.example",
13611
+ ".github/ISSUE_TEMPLATE/bug.yml",
13612
+ ".github/ISSUE_TEMPLATE/feature.yml",
13613
+ ".github/ISSUE_TEMPLATE/hotfix.yml",
13614
+ ".github/PULL_REQUEST_TEMPLATE.md",
13615
+ ".github/actions/setup-workspace/action.yml",
13616
+ ".github/version-control.md",
13617
+ ".github/workflows/auto-merge.yml",
13618
+ ".github/workflows/ci.yml",
13619
+ ".github/workflows/main-commit-check.yml",
13620
+ ".github/workflows/pr-message.yml",
13621
+ ".oxlintrc.json",
13622
+ "releases/release-plan.md",
13623
+ "scripts/ci/affected.sh",
13624
+ "scripts/ci/ai-attribution-list.txt",
13625
+ "scripts/ci/check-commit-body.sh",
13626
+ "scripts/ci/check-main-commits.sh",
13627
+ "scripts/ci/check-pr-title.sh",
13628
+ "scripts/ci/ci-scope.conf",
13629
+ "scripts/ci/ci-scope.sh",
13630
+ "scripts/ci/native-build.sh",
13631
+ "scripts/ci/run-affected.sh",
13632
+ "scripts/ci/run-units.sh",
13633
+ "scripts/hooks/commit-msg",
13634
+ "scripts/hooks/pre-push",
13635
+ "scripts/lib/common.sh",
13636
+ "scripts/merge/decide.mjs",
13637
+ "scripts/setup/git-hooks.sh",
13638
+ "scripts/setup/github-repo-settings.json",
13639
+ "scripts/setup/github-repo-settings.sh"
13640
+ ],
13641
+ "release": [
13642
+ ".github/workflows/advance-release.yml",
13643
+ ".github/workflows/close-release.yml",
13644
+ ".github/workflows/merge-back.yml",
13645
+ ".github/workflows/merge-release-pr.yml",
13646
+ ".github/workflows/nightly.yml",
13647
+ ".github/workflows/open-release-line.yml",
13648
+ ".github/workflows/release-line-finalize.yml",
13649
+ ".github/workflows/release-please.yml",
13650
+ ".github/workflows/sync-release-tools.yml",
13651
+ "release-please-config.json",
13652
+ "release-policy.json",
13653
+ "schemas/release-policy.schema.json",
13654
+ "scripts/ci/branch-exists.sh",
13655
+ "scripts/ci/check-facts-describes.sh",
13656
+ "scripts/ci/check-facts.sh",
13657
+ "scripts/ci/check-release-policy-schema.sh",
13658
+ "scripts/ci/check-release-policy.sh",
13659
+ "scripts/ci/pin-train.sh",
13660
+ "scripts/ci/release-train.sh",
13661
+ "scripts/ci/validate-json-schema.mjs",
13662
+ "scripts/lib/docs.sh",
13663
+ "scripts/lib/facts.sh",
13664
+ "scripts/lib/release-plan.sh",
13665
+ "scripts/lib/release-pr.sh",
13666
+ "scripts/lib/release-stages.sh",
13667
+ "scripts/release/advance-release.sh",
13668
+ "scripts/release/check-trigger-actor.sh",
13669
+ "scripts/release/close-ready.mjs",
13670
+ "scripts/release/close-ready.sh",
13671
+ "scripts/release/cut-release.sh",
13672
+ "scripts/release/dispatch-publish.sh",
13673
+ "scripts/release/ensure-stage-deploys.sh",
13674
+ "scripts/release/finalize-release.sh",
13675
+ "scripts/release/merge-back-ready.sh",
13676
+ "scripts/release/merge-release-pr.sh",
13677
+ "scripts/release/open-release-line.sh",
13678
+ "scripts/release/pin-release-pr.sh",
13679
+ "scripts/release/plan.sh",
13680
+ "scripts/release/product-release-notes.sh",
13681
+ "scripts/release/snapshot.sh",
13682
+ "scripts/release/sync-release-tools.sh",
13683
+ "scripts/release/verify-prod.sh"
13684
+ ]
13685
+ },
13686
+ "otherRoleFiles": "The files of publish, deploy, ops, hub and verify are listed in their own facts (publish-role, deploy-role, ops-role, hub-role, verify-role).",
13687
+ "sameFileInTwoRoles": "A file with the same path in two roles is taken from the later role, so the two have to be the same file (scripts/lib/bundle.sh is the same file in deploy and ops, and scripts/deploy/clone-ops.sh the same file in deploy and hub).",
13688
+ "blueprintRoot": "The repository that holds the templates is also a repository of the organization layer (blueprint-shared.templates.org-role). It is not composed from roles, except for the files its own root assembly lists."
13689
+ }
13690
+ }
13252
13691
  }
13253
13692
  ],
13254
13693
  "source": {
@@ -13406,7 +13845,7 @@
13406
13845
  },
13407
13846
  "otherRoleFiles": "The files of publish, deploy, ops, hub and verify are listed in their own facts (publish-role, deploy-role, ops-role, hub-role, verify-role).",
13408
13847
  "sameFileInTwoRoles": "A file with the same path in two roles is taken from the later role, so the two have to be the same file (scripts/lib/bundle.sh is the same file in deploy and ops, and scripts/deploy/clone-ops.sh the same file in deploy and hub).",
13409
- "blueprintRoot": "The repository that holds the templates is not composed from roles, except for the files its own root assembly lists."
13848
+ "blueprintRoot": "The repository that holds the templates is also a repository of the organization layer (blueprint-shared.templates.org-role). It is not composed from roles, except for the files its own root assembly lists."
13410
13849
  }
13411
13850
  }
13412
13851
  },
@@ -14086,6 +14525,88 @@
14086
14525
  ]
14087
14526
  }
14088
14527
  }
14528
+ },
14529
+ {
14530
+ "since": "0.8.0",
14531
+ "content": {
14532
+ "value": {
14533
+ "keep": "A repository keeps only the directories it uses.",
14534
+ "entries": [
14535
+ {
14536
+ "path": "apps/<AppName>/",
14537
+ "holds": "front ends and programs that run at the edge"
14538
+ },
14539
+ {
14540
+ "path": "services/<ServiceName>/",
14541
+ "holds": "long-running programs deployed by a configuration repository"
14542
+ },
14543
+ {
14544
+ "path": "packages/<PackageName>/",
14545
+ "holds": "what is published for others to use at a fixed version and is not run by this repository itself, the building blocks (OpenTofu modules, Ansible roles, charts) included (blueprint-shared.infra-layout.tools)"
14546
+ },
14547
+ {
14548
+ "path": "libs/<LibName>/",
14549
+ "holds": "libraries shared inside the repository; another repository takes them from a registry"
14550
+ },
14551
+ {
14552
+ "path": "infra/",
14553
+ "holds": "capability interfaces only: infra/<InfraName>/, an interface that the code of other units depends on and that stays the same in every environment (blueprint-shared.infra-layout.capability-interface). Cloud resources are declared and applied under ops/"
14554
+ },
14555
+ {
14556
+ "path": "ops/",
14557
+ "holds": "the configuration of a configuration repository: targets.json, versions.json, needs.json, iac/ and workloads/ (blueprint-shared.infra-layout.ops-dirs); and ops/<OpsName>/, a unit that provides an interface that changes with the environment (the address of each environment) to the units that use it"
14558
+ },
14559
+ {
14560
+ "path": "facts/",
14561
+ "holds": "the facts aggregate package at the root, one sub-directory per component package, and facts/<RepoName>-shared-facts, a facts package published on its own and shared by several products"
14562
+ },
14563
+ {
14564
+ "path": "docs/",
14565
+ "holds": "the clarify docs package of the repository, <RepoName>-docs"
14566
+ },
14567
+ {
14568
+ "path": "templates/",
14569
+ "holds": "the template package published on its own and shared by several products, with its own package.json; the repository that owns the templates keeps them here"
14570
+ },
14571
+ {
14572
+ "path": "demos/",
14573
+ "holds": "only in the repository that holds the templates (blueprint-shared.templates.org-role): the files of its duty of showing the templates, one sub-directory per demonstration repository, and the packages of that duty, <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). The names _facts and _docs are those packages and no demonstration repository"
14574
+ },
14575
+ {
14576
+ "path": "releases/",
14577
+ "holds": "Release Plans, only in the repository that holds the product version"
14578
+ },
14579
+ {
14580
+ "path": "scripts/",
14581
+ "holds": "governance scripts synced from the shared templates"
14582
+ },
14583
+ {
14584
+ "path": ".github/workflows/",
14585
+ "holds": "workflows synced from the shared templates"
14586
+ },
14587
+ {
14588
+ "path": "release-please-config.json",
14589
+ "holds": "release-please packages"
14590
+ },
14591
+ {
14592
+ "path": ".release-please-manifest.json",
14593
+ "holds": "released version of each package"
14594
+ },
14595
+ {
14596
+ "path": "release-policy.json",
14597
+ "holds": "the release policy of the repository"
14598
+ },
14599
+ {
14600
+ "path": "package.json",
14601
+ "holds": "the root package"
14602
+ },
14603
+ {
14604
+ "path": "pnpm-workspace.yaml",
14605
+ "holds": "the pnpm workspace"
14606
+ }
14607
+ ]
14608
+ }
14609
+ }
14089
14610
  }
14090
14611
  ],
14091
14612
  "source": {
@@ -14125,12 +14646,16 @@
14125
14646
  },
14126
14647
  {
14127
14648
  "path": "docs/",
14128
- "holds": "the clarify docs package"
14649
+ "holds": "the clarify docs package of the repository, <RepoName>-docs"
14129
14650
  },
14130
14651
  {
14131
14652
  "path": "templates/",
14132
14653
  "holds": "the template package published on its own and shared by several products, with its own package.json; the repository that owns the templates keeps them here"
14133
14654
  },
14655
+ {
14656
+ "path": "demos/",
14657
+ "holds": "only in the repository that holds the templates (blueprint-shared.templates.org-role): the files of its duty of showing the templates, one sub-directory per demonstration repository, and the packages of that duty, <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). The names _facts and _docs are those packages and no demonstration repository"
14658
+ },
14134
14659
  {
14135
14660
  "path": "releases/",
14136
14661
  "holds": "Release Plans, only in the repository that holds the product version"
@@ -16191,7 +16716,7 @@
16191
16716
  "token": "The checkout of the release branch and the script run with the token of the GitHub App (blueprint-shared.templates.github-app), because a push or a merge made with GITHUB_TOKEN starts no later workflow.",
16192
16717
  "needsApp": "A manual workflow needs the GitHub App. Its first step is actions/create-github-app-token, so a repository without the App (the variable named by @@clientIdVariable@@ not set) fails the run there, before anything is written. The steps that events start skip instead of failing when the repository has no App (blueprint-shared.templates.release-event-steps, blueprint-shared.templates.release-tool-sync-and-close); a repository without the App runs the scripts on a machine.",
16193
16718
  "concurrency": "One group per release line, release-line-<line>, shared by the three workflows (advance-release, merge-release-pr, merge-back), with cancel-in-progress false: two writers never work on one line at once, and a running one is not cancelled.",
16194
- "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
16719
+ "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
16195
16720
  "triggerCheck": {
16196
16721
  "script": "scripts/release/check-trigger-actor.sh",
16197
16722
  "list": "the repository variable RELEASE_TRIGGER_ACTORS: accounts separated by commas, spaces or new lines. A GitHub App appears as <slug>[bot]. When the variable is not set nobody is excluded.",
@@ -16243,7 +16768,7 @@
16243
16768
  "token": "The checkout of the release branch and the script run with the token of the GitHub App (blueprint-shared.templates.github-app), because a push or a merge made with GITHUB_TOKEN starts no later workflow.",
16244
16769
  "needsApp": "A manual workflow needs the GitHub App. Its first step is actions/create-github-app-token, so a repository without the App (the variable named by @@clientIdVariable@@ not set) fails the run there, before anything is written. The steps that events start skip instead of failing when the repository has no App (blueprint-shared.templates.release-event-steps, blueprint-shared.templates.release-tool-sync-and-close); a repository without the App runs the scripts on a machine.",
16245
16770
  "concurrency": "One group per release line, release-line-<line>, shared by the three workflows (advance-release, merge-release-pr, merge-back), with cancel-in-progress false: two writers never work on one line at once, and a running one is not cancelled.",
16246
- "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
16771
+ "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
16247
16772
  "triggerCheck": {
16248
16773
  "script": "scripts/release/check-trigger-actor.sh",
16249
16774
  "list": "the repository variable RELEASE_TRIGGER_ACTORS: accounts separated by commas, spaces or new lines. A GitHub App appears as <slug>[bot]. When the variable is not set nobody is excluded.",
@@ -16421,7 +16946,7 @@
16421
16946
  "every path equals main's"
16422
16947
  ],
16423
16948
  "ownFix": "A path with commits of the branch that main does not have fails the line, lists the commits with their files, and overwrites nothing. The other lines are still done and the run fails at the end. The fix is to cherry-pick the commits to main and merge them, then run the sync again.",
16424
- "refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint.ci.wait-loops has no new row for it).",
16949
+ "refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint-shared.ci.wait-loops has no new row for it).",
16425
16950
  "concurrency": "One group, release-tool-sync, with cancel-in-progress false. It is not the release-line-<line> group of the manual workflows, because one run covers every line and a push event names no line."
16426
16951
  },
16427
16952
  "close": {
@@ -16434,7 +16959,7 @@
16434
16959
  "manual": "workflow_dispatch with the line: the same decision with --strict, so a PR that is not ready fails the run and prints why, then the same close."
16435
16960
  },
16436
16961
  "triggerCheck": "A manual run checks github.triggering_actor against RELEASE_TRIGGER_ACTORS with scripts/release/check-trigger-actor.sh before the App token is made, from a read-only checkout of the default branch (blueprint-shared.templates.release-manual-workflows).",
16437
- "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint.ci.wait-loops has no new row for them.",
16962
+ "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint-shared.ci.wait-loops has no new row for them.",
16438
16963
  "decision": "release-tool-sync-and-close-by-events"
16439
16964
  }
16440
16965
  }
@@ -16474,7 +16999,7 @@
16474
16999
  "every path equals main's"
16475
17000
  ],
16476
17001
  "ownFix": "A path with commits of the branch that main does not have fails the line, lists the commits with their files, and overwrites nothing. The other lines are still done and the run fails at the end. The fix is to cherry-pick the commits to main and merge them, then run the sync again.",
16477
- "refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint.ci.wait-loops has no new row for it).",
17002
+ "refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint-shared.ci.wait-loops has no new row for it).",
16478
17003
  "concurrency": "One group, release-tool-sync, with cancel-in-progress false. It is not the release-line-<line> group of the manual workflows, because one run covers every line and a push event names no line."
16479
17004
  },
16480
17005
  "close": {
@@ -16487,7 +17012,7 @@
16487
17012
  "manual": "workflow_dispatch with the line: the same decision with --strict, so a PR that is not ready fails the run and prints why, then the same close."
16488
17013
  },
16489
17014
  "triggerCheck": "A manual run checks github.triggering_actor against RELEASE_TRIGGER_ACTORS with scripts/release/check-trigger-actor.sh before the App token is made, from a read-only checkout of the default branch (blueprint-shared.templates.release-manual-workflows).",
16490
- "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint.ci.wait-loops has no new row for them.",
17015
+ "noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint-shared.ci.wait-loops has no new row for them.",
16491
17016
  "decision": "release-tool-sync-and-close-by-events"
16492
17017
  }
16493
17018
  }
@@ -17611,6 +18136,40 @@
17611
18136
  "ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own"
17612
18137
  }
17613
18138
  }
18139
+ },
18140
+ {
18141
+ "since": "0.8.0",
18142
+ "content": {
18143
+ "value": {
18144
+ "role": "org",
18145
+ "dir": "org/",
18146
+ "needs": [
18147
+ "base",
18148
+ "release",
18149
+ "publish"
18150
+ ],
18151
+ "for": "the repository of the organization layer that holds the values of the organization: its facts package <RepoName>-facts and its docs package <RepoName>-docs. It belongs to no product. A repository that adopts the shared layer has one. The repository that holds the templates is also a repository of the organization layer, so the rule here is the one for every repository of that layer",
18152
+ "files": [
18153
+ "README.md",
18154
+ "scripts/ci/check-org-values.mjs"
18155
+ ],
18156
+ "composed": {
18157
+ "facts": "facts/ is the aggregate package named <MetaFactName> (blueprint-shared.naming.meta-fact-name) with one component, <RepoName>-facts.npm in facts/<RepoName>-facts/. The component holds at least the organization values (<RepoName>.org-values, validatedBy blueprint-shared.org-values) and the repositories of the organization layer (<RepoName>.org-layout.repos, shaped like the repository list that scripts/naming/check-names.mjs reads). The organization may add its own rules to it. It does not hold the duties of the repository that holds the templates (see templateHolder)",
18158
+ "docs": "docs/ is the docs package named <RepoName>-docs (blueprint-shared.naming.docs-package-name) with the entry docs/<RepoName>-docs/<RepoName>/ of the layer org, which cites the facts of the organization and the shared facts, and takes the shared documents as docSources. The entry holds the document layer-names.doc.ts, which the compose step writes from the repository list: the facts and docs package of every repository of the list, named from the scope of the organization",
18159
+ "names": "Every name is worked out from the organization values and the repository list given to the compose step, so the role names no organization: the scope is the one of aggregatePackageName, the packages are <scope>/<RepoName>-facts and <scope>/<RepoName>-docs",
18160
+ "dependencies": "The component depends on blueprint-shared-facts and the docs package on blueprint-shared-docs and blueprint-shared-facts, at the version of those packages in the repository that holds the templates, because the repository installs them from the public registry",
18161
+ "readme": "README.md comes from the role template. The compose step fills the organization (the scope without the @), the repository name, aggregatePackageName and aggregateRegistry of the organization values (fields organization, repoName, aggregatePackageName and aggregateRegistry of blueprint-shared.templates.fields). It says the repository is the organization layer of an organization, which holds the organization values and the repository list, names no organization, and lists the permissions the App of the organization needs from blueprint-shared.templates.github-app-placement"
18162
+ },
18163
+ "schema": "The fact of the organization values carries validatedBy blueprint-shared.org-values, so fact-kit check (pnpm check, the facts job of ci.yml) fails when a required field is missing or an unknown field is present, and names the field. scripts/ci/check-org-values.mjs reads the built value and the same schema, prints each missing, unknown or wrongly typed field, and also fails when aggregatePackageName is not the name of the aggregate package of the repository",
18164
+ "ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own",
18165
+ "templateHolder": {
18166
+ "rule": "The repository that holds the templates is also a repository of the organization layer. It holds the values of its organization and the list of the repositories of that layer like any other repository of the layer, and it has the duties of the template holder (showing the templates in demonstration repositories, and managing the templates) that no other repository of the layer has.",
18167
+ "factsPackage": "The facts package of an organization layer repository, <RepoName>-facts, holds at least the organization values and the repository list. It may hold more, such as rules the organization sets for itself. It holds nothing of the duties of the repository that holds the templates, whatever the repository is.",
18168
+ "demos": "The repository that holds the templates may have packages of its own duties under demos/: <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages; blueprint-shared.repo-layout.directories).",
18169
+ "dependency": "A package under demos/ may depend on the packages of the organization layer and on the shared packages. They do not depend on a package under demos/, so a repository of the organization layer that holds no templates has the same packages without it."
18170
+ }
18171
+ }
18172
+ }
17614
18173
  }
17615
18174
  ],
17616
18175
  "source": {
@@ -17625,20 +18184,26 @@
17625
18184
  "release",
17626
18185
  "publish"
17627
18186
  ],
17628
- "for": "the repository of the organization layer that holds the values of the organization: its facts package <RepoName>-facts and its docs package <RepoName>-docs. It belongs to no product. A repository that adopts the shared layer has one, and it is not a copy of the repository that owns the templates",
18187
+ "for": "the repository of the organization layer that holds the values of the organization: its facts package <RepoName>-facts and its docs package <RepoName>-docs. It belongs to no product. A repository that adopts the shared layer has one. The repository that holds the templates is also a repository of the organization layer, so the rule here is the one for every repository of that layer",
17629
18188
  "files": [
17630
18189
  "README.md",
17631
18190
  "scripts/ci/check-org-values.mjs"
17632
18191
  ],
17633
18192
  "composed": {
17634
- "facts": "facts/ is the aggregate package named <MetaFactName> (blueprint-shared.naming.meta-fact-name) with one component, <RepoName>-facts.npm in facts/<RepoName>-facts/, which holds two facts: the organization values (<RepoName>.org-values, validatedBy blueprint-shared.org-values) and the repositories of the organization layer (<RepoName>.org-layout.repos, shaped like the repository list that scripts/naming/check-names.mjs reads)",
18193
+ "facts": "facts/ is the aggregate package named <MetaFactName> (blueprint-shared.naming.meta-fact-name) with one component, <RepoName>-facts.npm in facts/<RepoName>-facts/. The component holds at least the organization values (<RepoName>.org-values, validatedBy blueprint-shared.org-values) and the repositories of the organization layer (<RepoName>.org-layout.repos, shaped like the repository list that scripts/naming/check-names.mjs reads). The organization may add its own rules to it. It does not hold the duties of the repository that holds the templates (see templateHolder)",
17635
18194
  "docs": "docs/ is the docs package named <RepoName>-docs (blueprint-shared.naming.docs-package-name) with the entry docs/<RepoName>-docs/<RepoName>/ of the layer org, which cites the facts of the organization and the shared facts, and takes the shared documents as docSources. The entry holds the document layer-names.doc.ts, which the compose step writes from the repository list: the facts and docs package of every repository of the list, named from the scope of the organization",
17636
18195
  "names": "Every name is worked out from the organization values and the repository list given to the compose step, so the role names no organization: the scope is the one of aggregatePackageName, the packages are <scope>/<RepoName>-facts and <scope>/<RepoName>-docs",
17637
18196
  "dependencies": "The component depends on blueprint-shared-facts and the docs package on blueprint-shared-docs and blueprint-shared-facts, at the version of those packages in the repository that holds the templates, because the repository installs them from the public registry",
17638
- "readme": "README.md comes from the role template. The compose step fills the organization (the scope without the @), the repository name, aggregatePackageName and aggregateRegistry of the organization values (fields organization, repoName, aggregatePackageName and aggregateRegistry of blueprint-shared.templates.fields). It says the repository is the organization layer of an adopter and not a copy of the repository that manages the shared packages (the management hub), names no organization, and lists the permissions the App of the organization needs from blueprint-shared.templates.github-app-placement"
18197
+ "readme": "README.md comes from the role template. The compose step fills the organization (the scope without the @), the repository name, aggregatePackageName and aggregateRegistry of the organization values (fields organization, repoName, aggregatePackageName and aggregateRegistry of blueprint-shared.templates.fields). It says the repository is the organization layer of an organization, which holds the organization values and the repository list, names no organization, and lists the permissions the App of the organization needs from blueprint-shared.templates.github-app-placement"
17639
18198
  },
17640
18199
  "schema": "The fact of the organization values carries validatedBy blueprint-shared.org-values, so fact-kit check (pnpm check, the facts job of ci.yml) fails when a required field is missing or an unknown field is present, and names the field. scripts/ci/check-org-values.mjs reads the built value and the same schema, prints each missing, unknown or wrongly typed field, and also fails when aggregatePackageName is not the name of the aggregate package of the repository",
17641
- "ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own"
18200
+ "ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own",
18201
+ "templateHolder": {
18202
+ "rule": "The repository that holds the templates is also a repository of the organization layer. It holds the values of its organization and the list of the repositories of that layer like any other repository of the layer, and it has the duties of the template holder (showing the templates in demonstration repositories, and managing the templates) that no other repository of the layer has.",
18203
+ "factsPackage": "The facts package of an organization layer repository, <RepoName>-facts, holds at least the organization values and the repository list. It may hold more, such as rules the organization sets for itself. It holds nothing of the duties of the repository that holds the templates, whatever the repository is.",
18204
+ "demos": "The repository that holds the templates may have packages of its own duties under demos/: <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages; blueprint-shared.repo-layout.directories).",
18205
+ "dependency": "A package under demos/ may depend on the packages of the organization layer and on the shared packages. They do not depend on a package under demos/, so a repository of the organization layer that holds no templates has the same packages without it."
18206
+ }
17642
18207
  }
17643
18208
  }
17644
18209
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blueprint-shared-facts",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Facts shared by several products, published on its own",
5
5
  "license": "MIT",
6
6
  "author": "Carlos Space",