feat(secrets): a marker needs a pointer; a signing secret left in the store is deleted later (W48, D1706, D1707) #337
All Vouch review confidence checks passed
Residual risk 0.50 = Change Risk (0.68) × (1 − Review Confidence (0.26)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 289 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 34% · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.339
Sensitive Paths
sensitive_paths
0.068
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #337"
general
weight: 0.35
claude[bot]
Round 6, W48, PR 7d of
docs/plans/security.md. Stacked on #327 (basefeat/w48-security, which writes D1706 andorchestration.mdD1707).Decisions
isRedactedSecret(@jhin/host-api, re-exported by@jhin/client-api) reads••••••#…as an addressed marker only when a JSON Pointer (#/…) follows;••••••#noteand••••••#are values, saved and sealed like any secret. Deferred narrows to a real value starting••••••#/.orchestration.md) — a signing secret the store could not delete (task deleted or signature removed while the store was unreadable, or a failed delete) is remembered instorage.kv(secret-orphans, task ids only) and deleted at the next activation ofjhin.schedulerwith a readable store; a task that holds a secret in the store again is dropped from the list without a delete; a delete that fails again stays listed. Deactivation waits for the sweep.Evidence
New tests:
secrets.test.ts— "takes a value that only starts like a marker as the value it is (security.md D1706)":••••••#noteand••••••#restore as values,••••••#/keys/0keeps the stored secret.webhook.test.ts— "deletes a secret the store could not delete at the next activation, unless its task holds one again (D1707)": the orphan list after an unreadable delete and signature removal, kept while the store stays unreadable, swept (the deleted task's secret gone, the re-signed task's kept, the list removed) on the next start.🤖 Generated with Claude Code