@intentius/chant 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/graph.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts +5 -3
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/config.d.ts +46 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/discovery/fold-import.d.ts +153 -17
- package/dist/discovery/fold-import.d.ts.map +1 -1
- package/dist/discovery/sandbox/config-run.d.ts.map +1 -1
- package/dist/discovery/sandbox/config-wire.d.ts +3 -2
- package/dist/discovery/sandbox/config-wire.d.ts.map +1 -1
- package/dist/discovery/sandbox/fork.d.ts +25 -0
- package/dist/discovery/sandbox/fork.d.ts.map +1 -1
- package/dist/discovery/sandbox/policy-run.d.ts.map +1 -1
- package/dist/discovery/sandbox/run.d.ts.map +1 -1
- package/dist/env.d.ts +5 -2
- package/dist/env.d.ts.map +1 -1
- package/dist/fold/fold.d.ts +12 -0
- package/dist/fold/fold.d.ts.map +1 -1
- package/dist/graph-ir.d.ts +29 -4
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/kubectl-context.d.ts +100 -0
- package/dist/kubectl-context.d.ts.map +1 -0
- package/dist/lexicon.d.ts +31 -6
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/change-set.d.ts +26 -5
- package/dist/lifecycle/change-set.d.ts.map +1 -1
- package/dist/lifecycle/live-diff.d.ts +25 -1
- package/dist/lifecycle/live-diff.d.ts.map +1 -1
- package/dist/lifecycle/observe.d.ts +4 -2
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/snapshot.d.ts.map +1 -1
- package/dist/lifecycle/status.d.ts +26 -1
- package/dist/lifecycle/status.d.ts.map +1 -1
- package/dist/lifecycle/types.d.ts +8 -0
- package/dist/lifecycle/types.d.ts.map +1 -1
- package/dist/lint/config.d.ts +80 -0
- package/dist/lint/config.d.ts.map +1 -1
- package/dist/lint/policy.d.ts +8 -2
- package/dist/lint/policy.d.ts.map +1 -1
- package/dist/lint/post-synth.d.ts +18 -1
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/live-endpoint.d.ts +92 -0
- package/dist/live-endpoint.d.ts.map +1 -0
- package/dist/observation.d.ts +123 -0
- package/dist/observation.d.ts.map +1 -0
- package/dist/stack-output.d.ts +9 -4
- package/dist/stack-output.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/cli/commands/build.test.ts +190 -0
- package/src/cli/commands/build.ts +34 -2
- package/src/cli/commands/lint.ts +17 -25
- package/src/cli/handlers/components.test.ts +63 -4
- package/src/cli/handlers/components.ts +78 -35
- package/src/cli/handlers/graph.test.ts +69 -6
- package/src/cli/handlers/graph.ts +61 -27
- package/src/cli/handlers/lifecycle.test.ts +285 -6
- package/src/cli/handlers/lifecycle.ts +297 -185
- package/src/config.test.ts +75 -0
- package/src/config.ts +61 -3
- package/src/discovery/fold-composite.test.ts +594 -0
- package/src/discovery/fold-import.ts +987 -43
- package/src/discovery/sandbox/config-boundary.test.ts +55 -1
- package/src/discovery/sandbox/config-run.ts +3 -0
- package/src/discovery/sandbox/config-wire.ts +3 -2
- package/src/discovery/sandbox/fork.ts +75 -1
- package/src/discovery/sandbox/policy-boundary.test.ts +56 -1
- package/src/discovery/sandbox/policy-run.ts +15 -1
- package/src/discovery/sandbox/run.test.ts +85 -1
- package/src/discovery/sandbox/run.ts +3 -0
- package/src/env.test.ts +12 -0
- package/src/env.ts +12 -4
- package/src/fold/fold.ts +12 -2
- package/src/graph-ir-live.test.ts +28 -1
- package/src/graph-ir.ts +68 -12
- package/src/index.ts +1 -0
- package/src/kubectl-context.test.ts +94 -0
- package/src/kubectl-context.ts +207 -0
- package/src/lexicon.ts +41 -6
- package/src/lifecycle/change-set.test.ts +93 -1
- package/src/lifecycle/change-set.ts +65 -13
- package/src/lifecycle/live-diff.test.ts +39 -0
- package/src/lifecycle/live-diff.ts +51 -5
- package/src/lifecycle/observe.test.ts +74 -3
- package/src/lifecycle/observe.ts +82 -22
- package/src/lifecycle/snapshot.test.ts +39 -1
- package/src/lifecycle/snapshot.ts +34 -9
- package/src/lifecycle/status.test.ts +89 -8
- package/src/lifecycle/status.ts +53 -3
- package/src/lifecycle/types.ts +8 -0
- package/src/lint/config.test.ts +93 -1
- package/src/lint/config.ts +108 -0
- package/src/lint/policy.test.ts +90 -0
- package/src/lint/policy.ts +17 -5
- package/src/lint/post-synth.test.ts +4 -0
- package/src/lint/post-synth.ts +30 -1
- package/src/live-endpoint.test.ts +115 -0
- package/src/live-endpoint.ts +148 -0
- package/src/observation.test.ts +96 -0
- package/src/observation.ts +213 -0
- package/src/stack-output.test.ts +76 -3
- package/src/stack-output.ts +59 -26
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,mB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,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,GACtB,MAAM,0BAA0B,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAClE,cAAc,EAAE,iBAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC5F,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* K8s environment→cluster binding — chant #1100.
|
|
3
|
+
*
|
|
4
|
+
* Every cloud lexicon binds an environment to a scope: AWS resolves `<env>`
|
|
5
|
+
* to a CloudFormation stack, Azure treats `<env>` as the resource group,
|
|
6
|
+
* Temporal looks up `temporal.profiles.<env>` in `chant.config.ts`. K8s (and
|
|
7
|
+
* GCP-via-Config-Connector, which observes through the same kubectl path)
|
|
8
|
+
* bound nothing — `describeResources` shelled out to `kubectl get` with no
|
|
9
|
+
* `--context`, so it read whatever cluster `kubectl config current-context`
|
|
10
|
+
* happened to point at. Point `prod` at a dev cluster and every declared
|
|
11
|
+
* resource reads as missing — a wrong-cluster diff that looks like a
|
|
12
|
+
* confident list of deletions.
|
|
13
|
+
*
|
|
14
|
+
* This module is the shared resolver both the k8s and gcp lexicons'
|
|
15
|
+
* `describeResources` call, so they resolve a cluster identity the same way
|
|
16
|
+
* (see `lexicons/k8s/src/config.ts`'s `K8sChantConfig` for the declared
|
|
17
|
+
* shape). It is intentionally provider-agnostic and lives in core (like
|
|
18
|
+
* `./ownership.ts`) rather than in the k8s lexicon package, since gcp's
|
|
19
|
+
* Config Connector observation needs it too without taking a dependency on
|
|
20
|
+
* the k8s lexicon.
|
|
21
|
+
*/
|
|
22
|
+
import type { UnobservedReason } from "./observation.js";
|
|
23
|
+
/** A single environment's cluster binding — see `K8sChantConfig` in the k8s lexicon. */
|
|
24
|
+
export interface K8sClusterProfile {
|
|
25
|
+
/** kubectl context name this environment is bound to. */
|
|
26
|
+
context: string;
|
|
27
|
+
}
|
|
28
|
+
/** Shape of the `k8s` passthrough key in `chant.config.ts` that this resolver reads. */
|
|
29
|
+
export interface K8sConfigShape {
|
|
30
|
+
profiles?: Record<string, K8sClusterProfile>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Thrown when an environment declares a cluster binding but the ambient
|
|
34
|
+
* kubectl context disagrees with it. Refusing here — instead of silently
|
|
35
|
+
* observing whichever cluster is ambient — is the fix for #1100: a
|
|
36
|
+
* wrong-cluster read reports every declared resource as missing, which #1089
|
|
37
|
+
* then classifies as a confident (and wrong) list of `create` actions.
|
|
38
|
+
*/
|
|
39
|
+
export declare class ClusterBindingMismatchError extends Error {
|
|
40
|
+
readonly environment: string;
|
|
41
|
+
readonly expectedContext: string;
|
|
42
|
+
readonly ambientContext: string;
|
|
43
|
+
constructor(environment: string, expectedContext: string, ambientContext: string);
|
|
44
|
+
}
|
|
45
|
+
export interface ResolvedClusterTarget {
|
|
46
|
+
/**
|
|
47
|
+
* Explicit `--context` value to pass to every kubectl invocation. Present
|
|
48
|
+
* only when the environment has a declared binding — undefined means
|
|
49
|
+
* "no binding, keep today's ambient-context behavior".
|
|
50
|
+
*/
|
|
51
|
+
context?: string;
|
|
52
|
+
/** Where the target came from. */
|
|
53
|
+
source: "bound" | "ambient";
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Resolve the kubectl context an environment should be observed/applied
|
|
57
|
+
* against, reading `k8s.profiles.<environment>.context` from `chant.config.ts`
|
|
58
|
+
* (the `config` passed in is the passthrough `ChantConfig`, cast loosely since
|
|
59
|
+
* the `k8s` key isn't declared on the core schema — same pattern as
|
|
60
|
+
* `temporal.profiles`).
|
|
61
|
+
*
|
|
62
|
+
* - No binding declared: returns `{ source: "ambient" }` — unchanged
|
|
63
|
+
* behavior — but logs a visible warning identifying the caller and
|
|
64
|
+
* environment, so the fallback is never silent (#1100 acceptance).
|
|
65
|
+
* - Binding declared and the ambient context agrees (or ambient can't be
|
|
66
|
+
* determined): returns `{ context: bound, source: "bound" }`. Callers
|
|
67
|
+
* should pass this context explicitly on every kubectl invocation rather
|
|
68
|
+
* than relying on it also being ambient.
|
|
69
|
+
* - Binding declared and the ambient context disagrees: throws
|
|
70
|
+
* {@link ClusterBindingMismatchError} — a loud refusal instead of quietly
|
|
71
|
+
* reading the wrong cluster.
|
|
72
|
+
*/
|
|
73
|
+
export declare function resolveClusterTarget(config: Record<string, unknown>, environment: string, lexiconName: string): Promise<ResolvedClusterTarget>;
|
|
74
|
+
/**
|
|
75
|
+
* What a failed `kubectl get` actually proved. Shared by the k8s and gcp
|
|
76
|
+
* lexicons, which read through the same kubectl path and used to collapse every
|
|
77
|
+
* non-zero exit into "not there" — so an expired token, a downed API server, or
|
|
78
|
+
* an uninstalled CRD all classified as `create`.
|
|
79
|
+
*/
|
|
80
|
+
export type KubectlReadOutcome =
|
|
81
|
+
/** The API server answered and the object is not there. Safe to plan a create. */
|
|
82
|
+
{
|
|
83
|
+
kind: "absent";
|
|
84
|
+
}
|
|
85
|
+
/** The read proved nothing about the object's existence. */
|
|
86
|
+
| {
|
|
87
|
+
kind: "unobserved";
|
|
88
|
+
reason: UnobservedReason;
|
|
89
|
+
detail: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Classify a `kubectl get` failure into the observation tri-state (#1089).
|
|
93
|
+
*
|
|
94
|
+
* Only a genuine `NotFound` from the API server — or a kind the server does not
|
|
95
|
+
* serve at all, where no instance can exist — establishes absence. Auth,
|
|
96
|
+
* connectivity, and unresolvable contexts establish nothing, and must reach the
|
|
97
|
+
* change set as NOT-OBSERVED rather than as an empty result.
|
|
98
|
+
*/
|
|
99
|
+
export declare function classifyKubectlFailure(err: unknown): KubectlReadOutcome;
|
|
100
|
+
//# sourceMappingURL=kubectl-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubectl-context.d.ts","sourceRoot":"","sources":["../src/kubectl-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAItD,wFAAwF;AACxF,MAAM,WAAW,iBAAiB;IAChC,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wFAAwF;AACxF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC9C;AAED;;;;;;GAMG;AACH,qBAAa,2BAA4B,SAAQ,KAAK;aAElC,WAAW,EAAE,MAAM;aACnB,eAAe,EAAE,MAAM;aACvB,cAAc,EAAE,MAAM;gBAFtB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM;CAWzC;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B;AAaD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,qBAAqB,CAAC,CAmBhC;AAID;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB;AAC5B,kFAAkF;AAChF;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE;AACpB,4DAA4D;GAC1D;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAmBrE;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,CAuCvE"}
|
package/dist/lexicon.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ import type { DriverComponent } from "./components/driver.js";
|
|
|
11
11
|
import type { EmulatorCapability } from "./op/emulator-lifecycle.js";
|
|
12
12
|
import type { RuleMeta } from "./audit/catalog.js";
|
|
13
13
|
import type { ReferenceCatalog } from "./graph-refs.js";
|
|
14
|
+
import type { DescribeResourcesResult } from "./observation.js";
|
|
14
15
|
export type { ReferenceCatalog, IdentityRule, RefRule } from "./graph-refs.js";
|
|
16
|
+
export type { DescribeResourcesResult, ObservationResult, NormalizedObservation, UnobservedEntity, UnobservedReason, } from "./observation.js";
|
|
15
17
|
/**
|
|
16
18
|
* Manifest for a packaged lexicon — metadata embedded in the tarball.
|
|
17
19
|
*
|
|
@@ -459,6 +461,27 @@ export interface LexiconPlugin {
|
|
|
459
461
|
* Use this when each chant entity has a 1:1 cloud equivalent — e.g. an
|
|
460
462
|
* AWS CFN resource, a K8s object, an ARM resource, a Temporal namespace.
|
|
461
463
|
*
|
|
464
|
+
* **The observation contract (#1089).** Returning nothing for a declared
|
|
465
|
+
* entity is a claim, and there are two different claims to make. Either the
|
|
466
|
+
* provider was asked and reported the resource absent — which is what lets
|
|
467
|
+
* the change set propose `create` — or the lexicon never looked, which must
|
|
468
|
+
* not. An implementation that has a "did not look" case (no reader for the
|
|
469
|
+
* kind, the read errored, no credentials, no cluster binding) must return the
|
|
470
|
+
* {@link ObservationResult} envelope and name those entities in `unobserved`
|
|
471
|
+
* with a total {@link UnobservedReason}. Warning on stderr is not enough: a
|
|
472
|
+
* warning is invisible to `lifecycle plan`, which is where the wrong `create`
|
|
473
|
+
* gets proposed. Returning the bare `name → ResourceMetadata` map is still
|
|
474
|
+
* valid and means "everything I was asked about, I looked at".
|
|
475
|
+
*
|
|
476
|
+
* Throwing is the whole-lexicon failure (see the k8s cluster-binding refusal,
|
|
477
|
+
* #1100): core catches it and marks every declared entity NOT-OBSERVED with
|
|
478
|
+
* `read-failed`, so a failed read is never a list of creates.
|
|
479
|
+
*
|
|
480
|
+
* Ownership verdicts are total (#1089). When `owned` is requested and the
|
|
481
|
+
* lexicon has no marker channel on this path, it must stamp
|
|
482
|
+
* `ownership: "unknown"` on what it returns rather than degrading silently —
|
|
483
|
+
* the change set never escalates `unknown` to a `delete`.
|
|
484
|
+
*
|
|
462
485
|
* `entities` carries the chant-side entity declarations for this lexicon,
|
|
463
486
|
* keyed by chant entity name (e.g. the export name from a `*.ts` file).
|
|
464
487
|
* Implementations that need to map cloud-side names back to chant entity
|
|
@@ -491,7 +514,7 @@ export interface LexiconPlugin {
|
|
|
491
514
|
* everything.
|
|
492
515
|
*/
|
|
493
516
|
owned?: boolean;
|
|
494
|
-
}): Promise<
|
|
517
|
+
}): Promise<DescribeResourcesResult>;
|
|
495
518
|
/**
|
|
496
519
|
* Report the live status of one deploy unit by its deployed name. Opt-in.
|
|
497
520
|
*
|
|
@@ -638,12 +661,14 @@ export interface ResourceMetadata {
|
|
|
638
661
|
/** Cloud-assigned output properties */
|
|
639
662
|
attributes?: Record<string, unknown>;
|
|
640
663
|
/**
|
|
641
|
-
* Live ownership verdict from the resource's marker (#119/#120)
|
|
642
|
-
*
|
|
643
|
-
* no marker
|
|
644
|
-
*
|
|
664
|
+
* Live ownership verdict from the resource's marker (#119/#120). `owned` =
|
|
665
|
+
* carries chant's marker; `foreign` = no marker; `unknown` = the lexicon has
|
|
666
|
+
* no marker channel on this read path and says so rather than degrading
|
|
667
|
+
* silently (#1089 — verdicts are total). Absent is read as `unknown`. The
|
|
668
|
+
* change set reads this — never the snapshot — to decide whether an orphan is
|
|
669
|
+
* a delete, and never escalates `unknown` to one.
|
|
645
670
|
*/
|
|
646
|
-
ownership?: "owned" | "foreign";
|
|
671
|
+
ownership?: "owned" | "foreign" | "unknown";
|
|
647
672
|
}
|
|
648
673
|
/**
|
|
649
674
|
* Metadata about a runtime artifact, returned by listArtifacts. Same shape
|
package/dist/lexicon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicon.d.ts","sourceRoot":"","sources":["../src/lexicon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAA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rC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAkBtE"}
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
* load-bearing.
|
|
14
14
|
*/
|
|
15
15
|
import { type AttributeChange, type DiffLiveInput } from "./live-diff.js";
|
|
16
|
+
import { type UnobservedReason } from "../observation.js";
|
|
16
17
|
/**
|
|
17
18
|
* What the projection proposes for a single resource.
|
|
18
19
|
*
|
|
19
|
-
* - `create` — declared in source,
|
|
20
|
+
* - `create` — declared in source, and the provider **confirmed** it absent.
|
|
20
21
|
* - `update` — declared and live, but live config drifted.
|
|
21
22
|
* - `delete` — a chant-owned resource that is live but no longer declared.
|
|
22
23
|
* Only emitted once ownership is known (#121); never inferred from the
|
|
@@ -24,8 +25,11 @@ import { type AttributeChange, type DiffLiveInput } from "./live-diff.js";
|
|
|
24
25
|
* - `adopt` — live but undeclared, ownership not established → a candidate to
|
|
25
26
|
* pull back into source, never an auto-delete.
|
|
26
27
|
* - `noop` — declared and live with no drift, or already reconciled.
|
|
28
|
+
* - `unobserved` — declared, and the lexicon could not look (#1089). Not a
|
|
29
|
+
* proposal at all: it is the plan admitting a hole. Never a create, never a
|
|
30
|
+
* delete. Read `unobservedReason` for which hole.
|
|
27
31
|
*/
|
|
28
|
-
export type ChangeAction = "create" | "update" | "delete" | "adopt" | "noop";
|
|
32
|
+
export type ChangeAction = "create" | "update" | "delete" | "adopt" | "noop" | "unobserved";
|
|
29
33
|
/**
|
|
30
34
|
* Who answers "is this resource chant's?". `unknown` until a live ownership
|
|
31
35
|
* marker is queried (#120). The change set never escalates `unknown` to a
|
|
@@ -44,13 +48,24 @@ export interface ChangeSetEntry {
|
|
|
44
48
|
declared: boolean;
|
|
45
49
|
/** Present in the last snapshot. */
|
|
46
50
|
inSnapshot: boolean;
|
|
47
|
-
/** Observed in the live system right now. */
|
|
51
|
+
/** Observed present in the live system right now. */
|
|
48
52
|
live: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The lexicon actually looked at this entity (#1089). `false` with
|
|
55
|
+
* `live: false` means "unknown", not "absent" — the distinction the whole
|
|
56
|
+
* change set now rests on. Absent-and-looked-at is `observed: true,
|
|
57
|
+
* live: false`.
|
|
58
|
+
*/
|
|
59
|
+
observed: boolean;
|
|
49
60
|
};
|
|
50
61
|
/** Attribute-level changes, for `update`. */
|
|
51
62
|
deltas?: AttributeChange[];
|
|
52
63
|
/** Live-marker ownership. Defaults to `unknown`. */
|
|
53
64
|
ownership: Ownership;
|
|
65
|
+
/** Why the entity could not be observed, for `action: "unobserved"` (#1089). */
|
|
66
|
+
unobservedReason?: UnobservedReason;
|
|
67
|
+
/** Human-readable backing for `unobservedReason` (the failing command, the missing binding). */
|
|
68
|
+
unobservedDetail?: string;
|
|
54
69
|
}
|
|
55
70
|
export interface ChangeSet {
|
|
56
71
|
env: string;
|
|
@@ -62,6 +77,10 @@ export interface ChangeSet {
|
|
|
62
77
|
* `create`/`update` are precise from declared-vs-live. `delete` is never
|
|
63
78
|
* emitted here — an undeclared live resource classifies as `adopt` until
|
|
64
79
|
* ownership is known.
|
|
80
|
+
*
|
|
81
|
+
* A declared entity the lexicon could not observe (`input.unobserved`, #1089)
|
|
82
|
+
* classifies as `unobserved` and nothing else: no `create` is ever synthesized
|
|
83
|
+
* from a read that did not happen.
|
|
65
84
|
*/
|
|
66
85
|
export declare function buildChangeSet(env: string, input: DiffLiveInput): ChangeSet;
|
|
67
86
|
/** Count entries per action. */
|
|
@@ -72,8 +91,10 @@ export declare function summarize(cs: ChangeSet): Record<ChangeAction, number>;
|
|
|
72
91
|
* GitLab renders an `artifacts:reports:terraform` artifact in the merge-request
|
|
73
92
|
* UI as "N to add, M to change, K to delete". The format is generic — any tool
|
|
74
93
|
* that emits this JSON gets the widget — and the chant plan maps onto it
|
|
75
|
-
* directly. Only the mutating actions count: `adopt` and `
|
|
76
|
-
* since the widget has no column for "live but undeclared"
|
|
94
|
+
* directly. Only the mutating actions count: `adopt`, `noop` and `unobserved`
|
|
95
|
+
* are excluded, since the widget has no column for "live but undeclared", "no
|
|
96
|
+
* change", or "could not look" (#1089). The widget is therefore a floor, not a
|
|
97
|
+
* complete plan: read the full change set when entities are unobserved.
|
|
77
98
|
*
|
|
78
99
|
* The widget label reads "Terraform" regardless of producer; that is GitLab's
|
|
79
100
|
* fixed string, not a claim chant makes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-set.d.ts","sourceRoot":"","sources":["../../src/lifecycle/change-set.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAY,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"change-set.d.ts","sourceRoot":"","sources":["../../src/lifecyc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C,EAAE,EAAE,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAWrE;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,cAAc,CAG5D;AAED,sEAAsE;AACtE,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CA0BrD"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* outside chant's entity model)
|
|
14
14
|
*/
|
|
15
15
|
import type { ResourceMetadata, ArtifactMetadata } from "../lexicon.js";
|
|
16
|
+
import type { UnobservedEntity, UnobservedReason } from "../observation.js";
|
|
16
17
|
export interface AttributeChange {
|
|
17
18
|
/** Attribute path (e.g. "status", "physicalId", "attributes.tags.env"). */
|
|
18
19
|
path: string;
|
|
@@ -24,8 +25,19 @@ export interface ResourceDrift {
|
|
|
24
25
|
type: string;
|
|
25
26
|
changes: AttributeChange[];
|
|
26
27
|
}
|
|
28
|
+
/** A declared entity the lexicon could not observe, as reported by the diff (#1089). */
|
|
29
|
+
export interface UnobservedResource {
|
|
30
|
+
name: string;
|
|
31
|
+
type?: string;
|
|
32
|
+
reason: UnobservedReason;
|
|
33
|
+
detail?: string;
|
|
34
|
+
}
|
|
27
35
|
export interface LiveDiffResult {
|
|
28
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Declared in current build, and the provider reported it absent. Entities
|
|
38
|
+
* the lexicon could not observe are NOT here — they are in `unobserved`
|
|
39
|
+
* (#1089), so "missing" keeps meaning "confirmed not there".
|
|
40
|
+
*/
|
|
29
41
|
missing: string[];
|
|
30
42
|
/** Observed in cloud right now, but not declared. */
|
|
31
43
|
orphan: string[];
|
|
@@ -37,6 +49,12 @@ export interface LiveDiffResult {
|
|
|
37
49
|
driftedSinceSnapshot: ResourceDrift[];
|
|
38
50
|
/** Observed both then and now; metadata identical. */
|
|
39
51
|
unchanged: string[];
|
|
52
|
+
/**
|
|
53
|
+
* Declared, and the lexicon could not look (#1089) — no reader for the kind,
|
|
54
|
+
* the read failed, no credentials, no binding. Not drift, not absence: a hole
|
|
55
|
+
* in the observation. Sorted by name.
|
|
56
|
+
*/
|
|
57
|
+
unobserved: UnobservedResource[];
|
|
40
58
|
}
|
|
41
59
|
export interface DiffLiveInput {
|
|
42
60
|
/** Entity names from the current build. */
|
|
@@ -45,6 +63,12 @@ export interface DiffLiveInput {
|
|
|
45
63
|
observedNow: Record<string, ResourceMetadata>;
|
|
46
64
|
/** Resources captured by the previous snapshot, if any. */
|
|
47
65
|
observedThen: Record<string, ResourceMetadata> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Declared entities `describeResources()` reported as NOT-OBSERVED (#1089),
|
|
68
|
+
* keyed by entity name. Absent/empty means every declared entity was looked
|
|
69
|
+
* at, so absence from `observedNow` is a confirmed absence.
|
|
70
|
+
*/
|
|
71
|
+
unobserved?: Record<string, UnobservedEntity>;
|
|
48
72
|
}
|
|
49
73
|
/** The delta between two saved snapshots (#822): a two-way observed diff. */
|
|
50
74
|
export interface SnapshotDiffResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-diff.d.ts","sourceRoot":"","sources":["../../src/lifecycle/live-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"live-diff.d.ts","sourceRoot":"","sources":["../../src/lifecycle/live-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,E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M,WAAW,kBAAkB;IACjC,gCAAgC;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,gCAAgC;IAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oEAAoE;IACpE,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,mCAAmC;IACnC,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,GACrC,kBAAkB,CAiBpB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,cAAc,CAsF7D;AAID,MAAM,WAAW,sBAAsB;IACrC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,iCAAiC;IACjC,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,mCAAmC;IACnC,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9C,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,SAAS,CAAC;CAC5D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,sBAAsB,CAmCvF"}
|
|
@@ -22,8 +22,10 @@ export interface ObserveResult {
|
|
|
22
22
|
* `environment`. `owned` (default true for the managed-only diagram, epic #776)
|
|
23
23
|
* restricts to resources carrying chant's ownership marker; a lexicon with no
|
|
24
24
|
* marker channel logs and returns everything (its own contract). Plugins that
|
|
25
|
-
* throw are collected into `errors`
|
|
26
|
-
*
|
|
25
|
+
* throw are collected into `errors` — one failing lexicon never sinks the whole
|
|
26
|
+
* graph — and every entity they were asked about is recorded as NOT-OBSERVED
|
|
27
|
+
* (`read-failed`, #1089) rather than dropped, so a failed read is visibly a
|
|
28
|
+
* hole instead of a silent absence.
|
|
27
29
|
*
|
|
28
30
|
* `stacks` (#57) is for a multi-stack, per-component project (e.g. loomster)
|
|
29
31
|
* where there is no single stack named after the environment — AWS's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../src/lifecycle/observe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../src/lifecycle/observe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAUnD,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,kBAAkB,EAAE,EAC7B,WAAW,EAAE,WAAW,EACxB,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAC5C,OAAO,CAAC,aAAa,CAAC,CAmFxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/lifecycle/snapshot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAsC,MAAM,YAAY,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/lifecycle/snapshot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAsC,MAAM,YAAY,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAkEjD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,kBAAkB,EAAE,EAC7B,WAAW,EAAE,WAAW,EACxB,IAAI,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACtC,OAAO,CAAC,kBAAkB,CAAC,CA0I7B"}
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
* lower-confidence signal rather than silently treated as "reconciled".
|
|
22
22
|
* - **reconciled** — a release record exists and live evidence (via
|
|
23
23
|
* ownership) confirms the component is present and owned by chant.
|
|
24
|
+
* - **unknown** — live evidence was requested and could not be read (#1089),
|
|
25
|
+
* or was not requested at all. A component chant could not observe is never
|
|
26
|
+
* reported `stale`: "the read failed" and "it is gone" are different facts.
|
|
24
27
|
*
|
|
25
28
|
* This is deliberately a light-touch reconciliation: chant's lexicons report
|
|
26
29
|
* resource-level status (`ResourceMetadata`), not "the digest currently
|
|
@@ -35,6 +38,7 @@
|
|
|
35
38
|
import type { ChangeSet, ChangeAction } from "./change-set.js";
|
|
36
39
|
import { type ReleaseRecord } from "./release-ledger.js";
|
|
37
40
|
import type { BuildLedgerEntry, ComponentBomSummary } from "./build-ledger.js";
|
|
41
|
+
import { type UnobservedReason } from "../observation.js";
|
|
38
42
|
/** One row of `chant components status [env]` — the per-component join of recorded vs live. */
|
|
39
43
|
export interface ComponentStatusRow {
|
|
40
44
|
component: string;
|
|
@@ -61,9 +65,21 @@ export interface ComponentStatusRow {
|
|
|
61
65
|
/**
|
|
62
66
|
* Machine-readable "observed live", when live evidence was gathered (`--live`).
|
|
63
67
|
* A consumer joining this row onto a graph node should read this rather than
|
|
64
|
-
* string-matching `detail`. Absent when `--live` was not requested
|
|
68
|
+
* string-matching `detail`. Absent when `--live` was not requested — and, since
|
|
69
|
+
* #1089, also absent when live state could not be read at all: `false` means
|
|
70
|
+
* "looked, not there", never "did not look". Read {@link unobserved} for that
|
|
71
|
+
* case; a consumer that treats absent as "unknown" already handles it.
|
|
65
72
|
*/
|
|
66
73
|
live?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Set when `--live` was requested and the observation could not read this
|
|
76
|
+
* component (#1089). `live` is absent alongside it and `reconciliation` is
|
|
77
|
+
* `unknown` — the row reports a hole rather than a verdict.
|
|
78
|
+
*/
|
|
79
|
+
unobserved?: {
|
|
80
|
+
reason: UnobservedReason;
|
|
81
|
+
detail?: string;
|
|
82
|
+
};
|
|
67
83
|
/**
|
|
68
84
|
* The owning deploy unit's raw status, when a lexicon reported it (AWS: the
|
|
69
85
|
* component's own CFN stack via `describeStackStatus`). Lets a renderer paint a
|
|
@@ -98,6 +114,15 @@ export interface ComponentStatusResult {
|
|
|
98
114
|
export interface LiveComponentEvidence {
|
|
99
115
|
/** True if this component name was observed live at all (declared+live, or orphan+live). */
|
|
100
116
|
live: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Set when the observation could not read this component (#1089). `live` is
|
|
119
|
+
* `false` alongside it, but only because the boolean has nowhere else to go —
|
|
120
|
+
* every consumer must branch on this field before believing `live: false`.
|
|
121
|
+
*/
|
|
122
|
+
unobserved?: {
|
|
123
|
+
reason: UnobservedReason;
|
|
124
|
+
detail?: string;
|
|
125
|
+
};
|
|
101
126
|
/** The `ChangeSet` action chant's existing plan logic assigned, when the component maps to a tracked entity/resource name. */
|
|
102
127
|
action?: ChangeAction;
|
|
103
128
|
/** Ownership verdict, when known. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/lifecycle/status.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/lifecycle/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAwB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,+FAA+F;AAC/F,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,+IAA+I;IAC/I,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,gDAAgD;IAChD,cAAc,EAAE,YAAY,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IAC9E,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,IAAI,CAAC,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CAAE,GAC/C,kBAAkB,CAWpB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ResourceMetadata, ArtifactMetadata } from "../lexicon.js";
|
|
2
|
+
import type { UnobservedEntity } from "../observation.js";
|
|
2
3
|
export type { ResourceMetadata, ArtifactMetadata } from "../lexicon.js";
|
|
3
4
|
/**
|
|
4
5
|
* State snapshot for a single lexicon in an environment.
|
|
@@ -16,6 +17,13 @@ export interface LifecycleSnapshot {
|
|
|
16
17
|
timestamp: string;
|
|
17
18
|
/** Resource metadata keyed by logical name */
|
|
18
19
|
resources: Record<string, ResourceMetadata>;
|
|
20
|
+
/**
|
|
21
|
+
* Declared entities this observation could not read (#1089), keyed by logical
|
|
22
|
+
* name. Additive and optional: a snapshot without it observed everything it
|
|
23
|
+
* was asked about. Present so a later diff can tell "was not there when the
|
|
24
|
+
* snapshot was taken" from "was never looked at".
|
|
25
|
+
*/
|
|
26
|
+
unobserved?: Record<string, UnobservedEntity>;
|
|
19
27
|
/** Artifact metadata keyed by server-side identifier (lexicon-specific). */
|
|
20
28
|
artifacts?: Record<string, ArtifactMetadata>;
|
|
21
29
|
/** Build digest at snapshot time — what was declared when this snapshot was taken */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lifecycle/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lifecycle/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IA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C;IAClB,wCAAwC;IACxC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,wCAAwC;IACxC,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
package/dist/lint/config.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { Severity, RuleConfig } from "./rule.js";
|
|
3
|
+
import type { PostSynthDiagnostic } from "./post-synth.js";
|
|
3
4
|
export { findProjectRoot } from "../project-root.js";
|
|
4
5
|
export declare const LintConfigSchema: z.ZodObject<{
|
|
5
6
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -72,6 +73,31 @@ export interface ParsedRuleConfig {
|
|
|
72
73
|
* Parse a rule config value into severity and options
|
|
73
74
|
*/
|
|
74
75
|
export declare function parseRuleConfig(value: RuleConfig): ParsedRuleConfig;
|
|
76
|
+
/**
|
|
77
|
+
* Resolve one check/rule id's effective severity (and options) against an
|
|
78
|
+
* already-resolved `lint.rules` map — the ONE place `"off"`/severity-override
|
|
79
|
+
* resolution happens, so a rule id behaves identically regardless of which
|
|
80
|
+
* phase produced it.
|
|
81
|
+
*
|
|
82
|
+
* chant #1138 — before this, the same `lint.rules: { ID: "off" }` config was
|
|
83
|
+
* resolved by two independent call sites that had grown their own copy of
|
|
84
|
+
* this logic (`../cli/commands/lint.ts`'s `getDefaultRules` for AST COR/EVL
|
|
85
|
+
* rules, and its `runComponentCheckDiagnostics` for whole-component COMP*
|
|
86
|
+
* checks) — identical in effect, but a rule id's suppression having two
|
|
87
|
+
* places to (potentially, eventually) diverge is itself the bug class #1138
|
|
88
|
+
* is about. Both were converted to call this instead, and post-synth checks/
|
|
89
|
+
* policies (`./post-synth.ts`'s `applyConfiguredSeverity`) now go through it
|
|
90
|
+
* too, closing the gap the issue reports: a post-synth check id honors
|
|
91
|
+
* `lint.rules` exactly like an AST rule id does.
|
|
92
|
+
*
|
|
93
|
+
* `rules` takes the already-resolved map (`config.rules`, or
|
|
94
|
+
* `resolveRulesForFile`'s per-file merge) rather than a whole `LintConfig` —
|
|
95
|
+
* callers that need per-file `overrides` resolve that first; post-synth
|
|
96
|
+
* checks have no per-file scope to begin with (see {@link
|
|
97
|
+
* ./post-synth.ts!PostSynthDiagnostic}'s doc for why), so they always pass
|
|
98
|
+
* `config.rules` directly.
|
|
99
|
+
*/
|
|
100
|
+
export declare function resolveConfiguredSeverity(rules: Record<string, RuleConfig> | undefined, id: string, defaultSeverity: Severity): ParsedRuleConfig;
|
|
75
101
|
/**
|
|
76
102
|
* Default configuration with all rules enabled at strict preset severities
|
|
77
103
|
*/
|
|
@@ -104,4 +130,58 @@ export declare function loadConfig(dir: string): LintConfig;
|
|
|
104
130
|
* @returns Merged rule configuration with overrides applied
|
|
105
131
|
*/
|
|
106
132
|
export declare function resolveRulesForFile(config: LintConfig, filePath: string): Record<string, RuleConfig>;
|
|
133
|
+
/** Result of applying `lint.rules` to a set of post-synth diagnostics. */
|
|
134
|
+
export interface PostSynthSeverityResult {
|
|
135
|
+
/** Diagnostics after config resolution — `"off"`-suppressed ones removed, everything else at its resolved severity. */
|
|
136
|
+
diagnostics: PostSynthDiagnostic[];
|
|
137
|
+
/**
|
|
138
|
+
* Diagnostics `lint.rules` turned `"off"`, unaltered — present so a caller
|
|
139
|
+
* can report a count (chant #1138) rather than the finding simply
|
|
140
|
+
* vanishing, mirroring `../lint/engine.ts`'s `LintRunResult.suppressed` for
|
|
141
|
+
* AST rules.
|
|
142
|
+
*/
|
|
143
|
+
suppressed: PostSynthDiagnostic[];
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Apply `lint.rules` severity overrides to already-produced post-synth
|
|
147
|
+
* diagnostics — one lexicon-shipped check's findings, or one project's
|
|
148
|
+
* `lint.policies` findings, it doesn't matter which: both are plain
|
|
149
|
+
* `PostSynthDiagnostic[]` by the time they reach this function, so both go
|
|
150
|
+
* through the identical resolution an AST rule id or a COMP* check id gets
|
|
151
|
+
* (`resolveConfiguredSeverity`, above), keyed by `diag.checkId` instead of
|
|
152
|
+
* `LintRule.id`/`ComponentCheck.id`. `"off"` suppresses (moved to
|
|
153
|
+
* `suppressed`); any other configured severity replaces `diag.severity`,
|
|
154
|
+
* exactly as a config override changes an AST diagnostic's reported level.
|
|
155
|
+
*
|
|
156
|
+
* Lives here rather than in `./post-synth.ts` (where `PostSynthDiagnostic` is
|
|
157
|
+
* declared) on purpose: `post-synth.ts` is a leaf every lexicon's checks
|
|
158
|
+
* import as a real runtime module, and this file resolves built-in preset
|
|
159
|
+
* paths via the runtime adapter at module scope — pulling that into every
|
|
160
|
+
* lexicon's check barrel merely to share one filter function would be the
|
|
161
|
+
* wrong trade. Only this file's TYPE (`PostSynthDiagnostic`) crosses back,
|
|
162
|
+
* which costs nothing at runtime.
|
|
163
|
+
*
|
|
164
|
+
* chant #1138 — deliberately does NOT also honor `chant-disable` source
|
|
165
|
+
* comments. `PostSynthDiagnostic` has no source anchor to disable AT — see
|
|
166
|
+
* its doc comment (`./post-synth.ts`) for why `entity` doesn't supply one —
|
|
167
|
+
* so there is no coherent site to check for a directive. Even in the one case
|
|
168
|
+
* a real anchor sometimes exists (a live, in-process `ctx.entities` value
|
|
169
|
+
* stamped with build provenance, `../provenance.ts`'s `getProvenance`), it
|
|
170
|
+
* would not generalize: not every check sets `entity`, `entity` isn't
|
|
171
|
+
* guaranteed to be an entities-map key (it's a name in the synthesized
|
|
172
|
+
* OUTPUT — a CFN logical id, a k8s `metadata.name` — which a serializer is
|
|
173
|
+
* free to have derived, prefixed, or renamed from the source-level entity
|
|
174
|
+
* name), and that provenance never crosses the `--sandbox` policy child's
|
|
175
|
+
* JSON wire (`../discovery/entity-wire-codec.ts` doesn't carry it, and
|
|
176
|
+
* re-deriving it on the far side would mean sending source file paths into a
|
|
177
|
+
* channel that's supposed to carry only the resolved build). Building
|
|
178
|
+
* directive suppression on a sometimes-present, sometimes-not anchor would
|
|
179
|
+
* make `chant build` and `chant build --sandbox` disagree about the
|
|
180
|
+
* identical finding depending on which path happened to still have the
|
|
181
|
+
* entity object around — precisely the kind of inconsistency #1138 exists to
|
|
182
|
+
* remove. Config severity (`"off"`) is the one suppression surface this can
|
|
183
|
+
* offer uniformly; a check that wants a per-instance escape hatch can read
|
|
184
|
+
* `ctx.env`/its own options to decide not to emit a diagnostic at all.
|
|
185
|
+
*/
|
|
186
|
+
export declare function applyConfiguredSeverity(diagnostics: readonly PostSynthDiagnostic[], rules: Record<string, RuleConfig> | undefined): PostSynthSeverityResult;
|
|
107
187
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lint/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lint/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AASxD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAiBlD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS3B,CAAC;AAkGH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM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