feat(inkless:storage): add per-role storage config overrides #879
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 256 lines diff across 3 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.332
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #879"
general
weight: 0.35
viktorsomogyi
The fetch, produce, and background storage clients all read the same
storage.keys. FileCleanerDeleteObjectsrequests (up to 1000 keys) time out at the shared 2000 ms S3 call timeout, and a longer shared timeout would also loosen the produce and fetch paths.InklessConfig.storage(metrics, role)now builds the settings of each client from three layers, lowest first: the role defaults, the sharedstorage.keys, and thestorage.<role>.keys. The roles arefetch,produce, andbackground. The lagging fetch storage uses thefetchrole.The
backgroundrole serves FileCleaner deletes and consolidation cold reads. It defaults tos3.api.call.timeout=30000,s3.api.call.attempt.timeout=10000, andgcs.read.timeout=10000. Thefetchandproduceroles keep the shared defaults. Azure Blob Storage has no timeout setting, so it has no role default.Operator impact
inkless.storage.<role>.<key>, for exampleinkless.storage.background.s3.api.call.timeout. An unknown role name is ignored.inkless.storage.s3.api.call.timeout(or the GCS key) still applies to thebackgroundrole. Set theinkless.storage.background.key to give it a different value.docs/inkless/PERFORMANCE.md.Testing
InklessConfigTest: thebackgroundrole gets the longer S3 and GCS defaults andproducedoes not. An explicit shared key replaces the role default, and an explicit role key replaces both. A role key overrides the shared key for that role only.SharedStateTest: each client is created with its own role (fetchfor both fetch clients,produce,background). The test fails if two roles swap. The existing close-order tests stub the two-argumentstorage().