Skip to content

Commit 8b24dd6

Browse files
committed
docs(service-automation): the materializer docblock follows the degrade rule
The materializeDeclaredConnectors docblock still listed an unresolvable credentialRef among the boot-fatal and reload-skipped problems. Since #27237 such a reference degrades its instance in both modes, and a live connector whose value is gone is torn down first; a host resolver that throws keeps the fatal / skipped rule. Comment only. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibx4wGGSrBq1y8R1CVJ
1 parent eef6c15 commit 8b24dd6

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

  • packages/services/service-automation/src

‎packages/services/service-automation/src/plugin.ts‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,15 +2091,22 @@ export class AutomationServicePlugin implements Plugin {
20912091
*
20922092
* Two modes:
20932093
* - **Boot** (`fatal: true`, called from `start()`): any problem — unknown
2094-
* provider, invalid `providerConfig`, unresolvable `credentialRef`, name
2095-
* conflict, duplicate — **throws**, which is fatal to bootstrap under both
2096-
* LiteKernel and ObjectKernel (the ADR's "fail loudly" contract).
2094+
* provider, invalid `providerConfig`, a host credential resolver that
2095+
* throws, name conflict, duplicate — **throws**, which is fatal to
2096+
* bootstrap under both LiteKernel and ObjectKernel (the ADR's "fail
2097+
* loudly" contract).
20972098
* - **Reload** (`fatal: false`, called from `metadata:reloaded`): the same
20982099
* problems are **logged and the offending entry is skipped**, so a bad
20992100
* Studio publish / dev reload never crashes a live server. A changed
21002101
* entry's old connector keeps serving until the new one materializes
21012102
* successfully.
21022103
*
2104+
* A `credentialRef` no source answers for is in neither list: in both modes
2105+
* it degrades its instance, naming the reference, and a live connector under
2106+
* that name is torn down first, since the value it was materialized with is
2107+
* gone ({@link degradeConnectorForCredential}; ADR-0097's notes under §6 and
2108+
* under "Runtime reconcile").
2109+
*
21032110
* Reads the same declaration the descriptor audit does
21042111
* ({@link readDeclaredConnectorItems}); with nothing declared there is
21052112
* nothing to reconcile. That reader is what makes a RELOAD reconcile

0 commit comments

Comments
 (0)