@starci/eslint-canon-be 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -29,14 +29,14 @@ pins:
|
|
|
29
29
|
source: packages/grammar/package.json
|
|
30
30
|
why: 'the grammar front ends read: the brand layer sets `--font-sans` and `--font-mono` and the grammar reads them; it carries the Input tel kind, the copyable and read-only Input, the IconButton disclosure props and count badge, ChatBubble, FillViewport, Textarea mentions and Enter-to-send, the leading PrimaryRailLayout rail, the plate-less Image, ListRow, the soft Alert, Progress steps, the floating primary IconButton, FlowGraph, the STATE-8 loading views and the bordered selectable TagGroup chips. The runtime source version wins for a @starci package.'
|
|
31
31
|
'@starci/eslint-canon-be':
|
|
32
|
-
version: 3.4.
|
|
32
|
+
version: 3.4.2
|
|
33
33
|
group: starci
|
|
34
34
|
install: registry
|
|
35
35
|
side: be
|
|
36
36
|
source: packages/eslint/be/package.json
|
|
37
37
|
why: 'the back-end ESLint canon: `loadHfs(import.meta.url)` of be/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the be side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; `starciBeConfig({ hfs: loadHfs(import.meta.url) })` is the typed factory and the BE-CONVENTION laws are its rules.'
|
|
38
38
|
'@starci/eslint-canon-fe':
|
|
39
|
-
version: 8.4.
|
|
39
|
+
version: 8.4.2
|
|
40
40
|
group: starci
|
|
41
41
|
install: registry
|
|
42
42
|
side: fe
|
|
@@ -76,14 +76,14 @@ pins:
|
|
|
76
76
|
source: packages/test-world/package.json
|
|
77
77
|
why: 'the shared e2e library of every back end (R47, R48), a devDependency of every back end: the warm stack behind toxiproxy, the network-edge fakes, the Nest boot, the typed useTestWorld handle, useSandbox for contract specs and the outage lock. Kafka is real own infra (the one digest-pinned apache/kafka KRaft image, a broker listener and proxy per slot, slot-prefixed topics, consumer groups and client ids) and Postgres is schema-per-context (a schema and a login role per context in a shared database). Each worker has its own data slot (<ns>_w<k>) with its own databases, Keycloak realm, leased Redis DB, bucket/collection/topic prefixes, fakes host, toxiproxy proxies and outage lock; a run provisions min(jest workers, workers cap, default 2) slots, and state file protocol 2 pairs exactly with @starci/jest-preset (TEST_WORLD_PAIR_MISMATCH otherwise). A modules world boots real peer apps beside its modules, world.apps.<name>.during(fn) is the outage of a peer app, w.keycloak.clientSecret(client) answers the run-generated secret of a confidential realm client, world.keycloak.events/sessions read the realm user events and live sessions, world.infra.postgresql.connection(name) takes one database connection down while the others serve, and world.resolve and scope.resolve take any Nest token. Every path a declaration names (`stack`, seeds, the realm, Dockerfiles) resolves from the app root (the directory of hfs.json); the globalSetup registers the path aliases as TypeScript resolves them. Its CLI main is exported at ./cli for starci app stack.'
|
|
78
78
|
'@starci/cli':
|
|
79
|
-
version: 1.
|
|
79
|
+
version: 1.5.0
|
|
80
80
|
group: starci
|
|
81
81
|
install: registry
|
|
82
82
|
side: both
|
|
83
83
|
source: packages/cli/package.json
|
|
84
84
|
why: 'the only StarCi command package; product repositories install it for starci app, while @starci/hfs remains its pinned transitive implementation.'
|
|
85
85
|
'@starci/hfs':
|
|
86
|
-
version: 4.
|
|
86
|
+
version: 4.5.0
|
|
87
87
|
group: starci
|
|
88
88
|
install: registry
|
|
89
89
|
side: both
|
|
@@ -3503,12 +3503,13 @@ rules:
|
|
|
3503
3503
|
- {path: packages/hfs/templates/app/skeleton-lite/supabase/config.toml, edition: lite}
|
|
3504
3504
|
templateNa: "Database types are generated from each app migration set, not static templates; full-edition Supabase configuration is app-owned."
|
|
3505
3505
|
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): the mutation witness was a deleted runtime spec or fixture", date: "2026-10-17"}
|
|
3506
|
-
law: "The database configuration and its types are checked facts: `supabase/config.toml` carries no literal value under a credential key (the value is `env(NAME)`), `auth.jwt_expiry` is at most 3600, and signup, site url and redirect urls equal the Supabase block of hfs.json where it declares them; `supabase/types/database.types.ts` is committed and equals the text `contract:emit` regenerates from the migrations."
|
|
3506
|
+
law: "The database configuration and its types are checked facts: `supabase/config.toml` carries no literal value under a credential key (the value is `env(NAME)`), `auth.jwt_expiry` is at most 3600, and signup, site url and redirect urls equal the Supabase block of hfs.json where it declares them; `supabase/types/database.types.ts` is committed and equals the text `contract:emit` regenerates from the migrations. Type emission refuses HFS_EMIT_DB_TYPES_STALE unless the complete applied migration version set equals the SQL filename stamps; lint and check report drift without writing types."
|
|
3507
3507
|
kinds: [check]
|
|
3508
3508
|
gates: [land, ci]
|
|
3509
|
-
failureCodes: ["DB_CONFIG_POLICY", "DB_TYPES_DRIFT"]
|
|
3509
|
+
failureCodes: ["DB_CONFIG_POLICY", "DB_TYPES_DRIFT", "HFS_EMIT_DB_TYPES_STALE"]
|
|
3510
3510
|
enforcers:
|
|
3511
3511
|
- {kind: hfs, id: db-config-types, at: scripts/hfs/rules/database.mjs}
|
|
3512
|
+
- {kind: hfs, id: db-types-emit, at: packages/hfs/emit/db-types.mjs}
|
|
3512
3513
|
- id: R217
|
|
3513
3514
|
code: "FE_SUPABASE_CLIENT_OWNER"
|
|
3514
3515
|
editions: [lite, full]
|
|
@@ -4025,12 +4026,13 @@ rules:
|
|
|
4025
4026
|
- {path: packages/hfs/templates/app/ci-workflows-lite/github/workflows/db-deploy.yml, edition: lite}
|
|
4026
4027
|
- {path: packages/hfs/templates/app/ci-workflows/github/workflows/ci.yml, edition: full}
|
|
4027
4028
|
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): the mutation witness was a deleted runtime spec or fixture", date: "2026-10-17"}
|
|
4028
|
-
law: "In lite and full apps, deployment jobs declare a protected environment, explicit permissions and concurrency, materialize sealed secrets through SOPS_AGE_KEY or starci app secret materialize, and reference only the age key and transport SSH key/known_hosts secrets. They never embed a dotenv blob or write a dotenv file. Every remote workflow action uses a 40-hex commit SHA; installed tools are checksum or digest verified, or supplied by a pinned action. App workflows start only on release tags [v*] or workflow_dispatch, never on a branch push."
|
|
4029
|
+
law: "In lite and full apps, deployment jobs declare a protected environment, explicit permissions and concurrency, materialize sealed secrets through SOPS_AGE_KEY or starci app secret materialize, and reference only the age key and transport SSH key/known_hosts secrets. They never embed a dotenv blob or write a dotenv file. Every remote workflow action uses a 40-hex commit SHA (local actions are allowed and container actions require a full sha256 digest); supply-chain reports each unpinned uses reference at its source line, including disabled jobs and steps; installed tools are checksum or digest verified, or supplied by a pinned action. App workflows start only on release tags [v*] or workflow_dispatch, never on a branch push."
|
|
4029
4030
|
kinds: [check]
|
|
4030
4031
|
gates: [settle, land, ci]
|
|
4031
4032
|
failureCodes: ["HFS_DEPLOY_WORKFLOW", "HFS_WORKFLOW_PIN", "HFS_CI_TOOL_INSTALL", "HFS_APP_WORKFLOW_TRIGGER"]
|
|
4032
4033
|
enforcers:
|
|
4033
4034
|
- {kind: hfs, id: deploy-workflow, at: scripts/hfs/rules/deploy-workflow.mjs}
|
|
4035
|
+
- {kind: hfs, id: supply-chain, at: scripts/hfs/rules/supply-chain.mjs}
|
|
4034
4036
|
exampleNa: "owner:no-runtime-specs (2026-10-17): the only example was a deleted runtime spec or fixture; the rule judges the runtime or the scaffold, which the scaffold e2e exercises"
|
|
4035
4037
|
- id: R252
|
|
4036
4038
|
code: "HFS_SCRIPT_PLAINTEXT_LOAD"
|
|
@@ -4359,7 +4361,7 @@ rules:
|
|
|
4359
4361
|
exampleNa: "owner:no-runtime-specs (2026-10-17): the only example was a deleted runtime spec or fixture; the rule judges the runtime or the scaffold, which the scaffold e2e exercises"
|
|
4360
4362
|
- id: R269
|
|
4361
4363
|
code: "HFS_DEPENDABOT_MISSING"
|
|
4362
|
-
law: "In lite and full apps, .github/dependabot.yml declares scheduled npm, github-actions and docker updates. The CI workflow runs npm audit --omit=dev as an enabled gate whose failure stops the job. The images workflow generates an SBOM and provenance for release images; a disabled step, comment or label is not evidence."
|
|
4364
|
+
law: "In lite and full apps, .github/dependabot.yml declares scheduled npm, github-actions and docker updates. Every npm entry declares a minor-and-patch version group and a security-updates group; every group explicitly restricts update-types to minor and patch, leaving majors per package, and npm entries ignore @starci/* without version or update-type restrictions. The CI workflow runs npm audit --omit=dev as an enabled gate whose failure stops the job. The images workflow generates an SBOM and provenance for release images; a disabled step, comment or label is not evidence."
|
|
4363
4365
|
kinds: [check]
|
|
4364
4366
|
gates: ["settle","land","ci"]
|
|
4365
4367
|
failureCodes: ["HFS_DEPENDABOT_MISSING", "HFS_AUDIT_STEP_MISSING", "HFS_SBOM_MISSING"]
|
|
@@ -4876,3 +4878,92 @@ rules:
|
|
|
4876
4878
|
- {path: packages/eslint/be/module-shape.spec.mjs, editions: [lite, full], codes: [BE_MODULE_DEFINITION_MISSING]}
|
|
4877
4879
|
witness:
|
|
4878
4880
|
- {path: packages/eslint/be/module-shape.spec.mjs, editions: [lite, full], codes: [BE_MODULE_DEFINITION_MISSING]}
|
|
4881
|
+
- id: R296
|
|
4882
|
+
code: "CI_SECRET_SEALED"
|
|
4883
|
+
law: "A name declared in ci.secrets or ci.dependabot.secrets never names a key stored inside an app sealed .starcistacks/<env>/secrets/<member>.enc member. App runtime and CI custody are separate; checks inspect key names without decrypting or printing values."
|
|
4884
|
+
kinds: [check]
|
|
4885
|
+
gates: [settle, land, ci]
|
|
4886
|
+
failureCodes: ["CI_SECRET_SEALED"]
|
|
4887
|
+
enforcers:
|
|
4888
|
+
- {kind: hfs, id: ci-custody, at: scripts/hfs/rules/ci-custody.mjs}
|
|
4889
|
+
editions: [lite, full]
|
|
4890
|
+
docs:
|
|
4891
|
+
- {path: docs/application-stacks.md#r296, editions: [lite, full]}
|
|
4892
|
+
exemplifiedBy:
|
|
4893
|
+
- {path: examples/lite-app/.starcistacks/application-stacks.yaml, edition: lite}
|
|
4894
|
+
- {path: examples/ecommerce-app/.starcistacks/application-stacks.yaml, edition: full}
|
|
4895
|
+
- {path: examples/shape-slot/.starcistacks/application-stacks.yaml, edition: full}
|
|
4896
|
+
- {path: packages/hfs/templates/app/skeleton-lite/.starcistacks/application-stacks.yaml, edition: lite}
|
|
4897
|
+
- {path: packages/hfs/templates/app/skeleton/.starcistacks/application-stacks.yaml, edition: full}
|
|
4898
|
+
specNa: "owner:no-runtime-specs (2026-10-17): the runtime has no specs of its own; this code is enforced by runtime code and its spec proof was a deleted runtime spec"
|
|
4899
|
+
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): the mutation witness was a deleted runtime spec or fixture", date: "2026-10-17"}
|
|
4900
|
+
- id: R297
|
|
4901
|
+
code: "APP_SECRET_IN_CI"
|
|
4902
|
+
law: "A sealed member key granted to an app container by a deploy grant never appears in ci.secrets or ci.vars. The grant environment, member and selected key determine app custody; online GitHub custody is verified by starci app ci verify."
|
|
4903
|
+
kinds: [check]
|
|
4904
|
+
gates: [settle, land, ci]
|
|
4905
|
+
failureCodes: ["APP_SECRET_IN_CI"]
|
|
4906
|
+
enforcers:
|
|
4907
|
+
- {kind: hfs, id: ci-custody, at: scripts/hfs/rules/ci-custody.mjs}
|
|
4908
|
+
editions: [lite, full]
|
|
4909
|
+
docs:
|
|
4910
|
+
- {path: docs/application-stacks.md#r297, editions: [lite, full]}
|
|
4911
|
+
exemplifiedBy:
|
|
4912
|
+
- {path: examples/lite-app/.starcistacks/application-stacks.yaml, edition: lite}
|
|
4913
|
+
- {path: examples/ecommerce-app/.starcistacks/application-stacks.yaml, edition: full}
|
|
4914
|
+
- {path: examples/shape-slot/.starcistacks/application-stacks.yaml, edition: full}
|
|
4915
|
+
- {path: packages/hfs/templates/app/skeleton-lite/.starcistacks/application-stacks.yaml, edition: lite}
|
|
4916
|
+
- {path: packages/hfs/templates/app/skeleton/.starcistacks/application-stacks.yaml, edition: full}
|
|
4917
|
+
specNa: "owner:no-runtime-specs (2026-10-17): the runtime has no specs of its own; this code is enforced by runtime code and its spec proof was a deleted runtime spec"
|
|
4918
|
+
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): the mutation witness was a deleted runtime spec or fixture", date: "2026-10-17"}
|
|
4919
|
+
- id: R298
|
|
4920
|
+
code: "CI_DECLARATION_DRIFT"
|
|
4921
|
+
law: "Workflow secrets and vars references are declared in their matching top-level ci class, except automatic GITHUB_TOKEN. Non-optional Actions declarations are consumed by a workflow; Dependabot secrets need no Actions read. Service token and variable bindings name declarations in the matching class. Missing declarations produce migration findings; a tree with neither ci declarations nor references stays quiet."
|
|
4922
|
+
kinds: [check]
|
|
4923
|
+
gates: [settle, land, ci]
|
|
4924
|
+
failureCodes: ["CI_DECLARATION_DRIFT"]
|
|
4925
|
+
enforcers:
|
|
4926
|
+
- {kind: hfs, id: ci-custody, at: scripts/hfs/rules/ci-custody.mjs}
|
|
4927
|
+
editions: [lite, full]
|
|
4928
|
+
docs:
|
|
4929
|
+
- {path: docs/application-stacks.md#r298, editions: [lite, full]}
|
|
4930
|
+
exemplifiedBy:
|
|
4931
|
+
- {path: examples/lite-app/.starcistacks/application-stacks.yaml, edition: lite}
|
|
4932
|
+
- {path: examples/ecommerce-app/.starcistacks/application-stacks.yaml, edition: full}
|
|
4933
|
+
- {path: examples/shape-slot/.starcistacks/application-stacks.yaml, edition: full}
|
|
4934
|
+
- {path: packages/hfs/templates/app/skeleton-lite/.starcistacks/application-stacks.yaml, edition: lite}
|
|
4935
|
+
- {path: packages/hfs/templates/app/skeleton/.starcistacks/application-stacks.yaml, edition: full}
|
|
4936
|
+
specNa: "owner:no-runtime-specs (2026-10-17): the runtime has no specs of its own; this code is enforced by runtime code and its spec proof was a deleted runtime spec"
|
|
4937
|
+
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): the mutation witness was a deleted runtime spec or fixture", date: "2026-10-17"}
|
|
4938
|
+
- id: R299
|
|
4939
|
+
code: "HFS_WORKFLOW_CONTEXT"
|
|
4940
|
+
law: "GitHub Actions expressions use only contexts available at their workflow key. Job env cannot read runner, job, steps or env; runner-local data paths belong to step env or shell RUNNER_TEMP. Every tracked workflow is checked in both app editions."
|
|
4941
|
+
kinds: [check]
|
|
4942
|
+
gates: [settle, land, ci]
|
|
4943
|
+
failureCodes: ["HFS_WORKFLOW_CONTEXT"]
|
|
4944
|
+
enforcers:
|
|
4945
|
+
- {kind: hfs, id: workflow-contexts, at: scripts/hfs/rules/workflow-contexts.mjs}
|
|
4946
|
+
editions: [lite, full]
|
|
4947
|
+
docs:
|
|
4948
|
+
- {path: docs/application-stacks.md#r299, editions: [lite, full]}
|
|
4949
|
+
exemplifiedBy:
|
|
4950
|
+
- {path: packages/hfs/templates/app/skeleton-lite/.starcistacks, edition: lite}
|
|
4951
|
+
- {path: packages/hfs/templates/app/skeleton/.starcistacks, edition: full}
|
|
4952
|
+
specNa: "owner:no-runtime-specs (2026-10-17): the runtime has no specs of its own; this code is enforced by runtime code and its spec proof was a deleted runtime spec"
|
|
4953
|
+
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): no runtime spec retained", date: "2026-10-17"}
|
|
4954
|
+
- id: R300
|
|
4955
|
+
code: "FE_PUBLIC_BUILD_ARG_MISSING"
|
|
4956
|
+
law: "Every front-end app with a Dockerfile supplies each required NEXT_PUBLIC_* source/config/schema name through a Dockerfile ARG default or through that image's buildArgs.values/buildArgs.sealed.keys in every environment deploying the image. Source reads with literal string ?? or || fallbacks are optional. The finding names missing keys and environments at the Dockerfile; sealed values are never opened. CI release images use the same starci app stack build-args verb and environment as deployment."
|
|
4957
|
+
kinds: [check]
|
|
4958
|
+
gates: [settle, land, ci]
|
|
4959
|
+
failureCodes: ["FE_PUBLIC_BUILD_ARG_MISSING"]
|
|
4960
|
+
enforcers:
|
|
4961
|
+
- {kind: hfs, id: fe-build-args, at: scripts/hfs/rules/fe-build-args.mjs}
|
|
4962
|
+
editions: [lite, full]
|
|
4963
|
+
docs:
|
|
4964
|
+
- {path: docs/application-stacks.md#r300, editions: [lite, full]}
|
|
4965
|
+
exemplifiedBy:
|
|
4966
|
+
- {path: packages/hfs/templates/app/skeleton-lite/.starcistacks, edition: lite}
|
|
4967
|
+
- {path: packages/hfs/templates/app/skeleton/.starcistacks, edition: full}
|
|
4968
|
+
specNa: "owner:no-runtime-specs (2026-10-17): the runtime has no specs of its own; this code is enforced by runtime code and its spec proof was a deleted runtime spec"
|
|
4969
|
+
witness: {status: unreachable, reason: "owner:no-runtime-specs (2026-10-17): external smoke fixtures", date: "2026-10-17"}
|
|
@@ -43,11 +43,11 @@ const SECRET_NAME = [
|
|
|
43
43
|
String.raw`[A-Za-z_$][A-Za-z0-9_$.-]*\s*[:=]\s*`,
|
|
44
44
|
].join('');
|
|
45
45
|
|
|
46
|
-
// `password = "
|
|
46
|
+
// `password = "example-password-1"` — the quoted literal. `env(NAME)` is a reference, never a secret.
|
|
47
47
|
const ASSIGNED_QUOTED = new RegExp(
|
|
48
48
|
SECRET_NAME + String.raw`['"\`](?!env\([A-Z_][A-Z0-9_]*\)['"\`])([^'"\`\n\s$<{]{12,})['"\`]`,
|
|
49
49
|
);
|
|
50
|
-
// `DB_PASSWORD=
|
|
50
|
+
// `DB_PASSWORD=example-password-1` — the compose list-item and dotenv form; the dotenv value has no `:` so
|
|
51
51
|
// `password: secret:db/password` and `token: ref:vault/api` stay references, and the end boundary keeps
|
|
52
52
|
// calls and member/index references such as `secret = credentialsSource.current` out of the literals.
|
|
53
53
|
const ASSIGNED_UNQUOTED = new RegExp(
|