Add ResourceMetadata.annotations and opt-in control-plane lifecycle hooks #10
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 396 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10"
general
weight: 0.35
bexxmodd
Combines the two stacked upstream pull requests onto
strata-main(11 commits total on top ofcf5768a0):1. Decorative
ResourceMetadata.annotations(Upstream-PR: agent-substrate/substrate PR 3655, commits 1-5)2d95dae5(ateapi: add annotations to ResourceMetadata): Addmap<string, string> annotationstoResourceMetadatafor non-queryable decorative metadata onActorandActorTemplate.53b5a913(apivalidation: validate ResourceMetadata.annotations): Validate annotation keys ask8s-label-keywhile rejecting reservedate.devdomains, cap entries at16, and bound total key and value size at4 KiB.0983c7b5(controlapi: apply metadata.annotations on UpdateActor): Copy incomingmetadata.annotationsonto stored metadata duringUpdateActorand addapivalidation,controlapi, andfunctionaltestcoverage.3e223d18(kubectl-ate: add --annotations flag to create and update actor): Add--annotationsflag tokubectl-ate create actorandupdate actor(with--annotations=""clearing annotations on update).bfc81e33(controlapi: add BenchmarkActorAnnotations for metadata.annotations): AddBenchmarkActorAnnotationscovering protobuf serialization, update validation, PostgreSQL CRUD, and coldResumeActor/SuspendActoracross inline and TOASTed payloads.2. Opt-In Control-Plane Lifecycle Hooks (
Upstream-PR: agent-substrate/substrate PR 3853, commits 6-11)2b0268a3(atepg: keep a caller-assigned uid and create_time on create): Preserve caller-assignedmetadata.uidandmetadata.create_timeinsetCreateMetadatawhen pre-assigned by the control plane before insert.9737d869(hook: add LifecycleHook v1 wire contract): Definesubstrate.hook.v1.LifecycleHook(api/hook/v1/hook.proto) withOnCreateActorandOnDeleteActor.747ad5df(lifecyclehook: add hook config schema and TLS credentials): Parse--lifecycle-hooks-config(maxWaitDurationdefault100ms, max250ms; up to 8 hook targets with disjoint non-reservedallowedAnnotationPrefixes) and dial targets over TLS 1.3 (caBundleorcaCertFile+serverName, withMTLSorTLSOnly).fde592aa(lifecyclehook: add HookDispatcher): ParallelOnCreateActorfan-out undermaxWaitDuration, veto-only admission (allowed: false), prefix and qualified-name validation on returned annotations, and unifiedCreateOutcome.Rollbacksending compensatingOnDeleteActorcalls to hooks that allowed or timed out.230bd361(ateapi: run lifecycle hooks on CreateActor and DeleteActor behind a preview gate): WireHooksintoCreateActorandDeleteActorbehind--preview=LifecycleHooksand--lifecycle-hooks-configwith non-blocking per-actor lease serialization and single-deferrollback.36f640cc(controlapi/functionaltest: add end-to-end mTLS lifecycle hooks test and benchmark): AddTestLifecycleHooksEndToEndandBenchmarkCreateActorLifecycleHooksincmd/ateapi/internal/controlapi/functionaltest/lifecycle_hooks_test.go.AI use: AI-assisted, I reviewed and tested it.