fix(lark): redact credentials from shared Lark sinks #8181
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8181"
general
weight: 0.35
JasonBuildAI
Goal And Delivered Outcome
tests/extensions/test_lark_shared_sink_redaction.pyandtests/control_plane/test_public_safety_credential_shape_owner.pycover the before/after boundary.upstream/mainatac6296225.Author Declaration
Implemented against
.github/SECURITY.mdand the request in this PR are the basis.| Criterion (spec clause) | Disposition | Symbol / path | Test or command |
| --- | --- | --- | --- |
| Shared Lark record writers remove canonical provider-credential shapes before serialization | implemented |
loopx/extensions/lark/presentation/kanban.py|tests/extensions/test_lark_shared_sink_redaction.py|| Shared visibility redacts nested keys/values and preserves structurally valid record-link ids | implemented |
_sink_safe_lark_values|tests/extensions/test_lark_shared_sink_redaction.py|| Operator sync, seed and heartbeat commands default to shared visibility and propagate it | implemented |
loopx/cli_commands/lark_kanban.py|tests/extensions/test_lark_shared_sink_redaction.py|| Explore visual, stage-document and issue-fix paths use the same boundary | implemented |
loopx/extensions/lark/presentation/explore_results.py,explore_stage_document.py,loopx/cli_commands/explore_feishu_commands.py|tests/extensions/test_lark_shared_sink_redaction.py|| Python and TypeScript credential-shape owners stay in sync | implemented |
loopx/public_safe_text.py,loopx/control_plane/goals/vision_checkpoint.ts,packages/dsh-loopx-plugin/src/observer.ts|tests/control_plane/test_public_safety_credential_shape_owner.py|| Operator docs state the new default and residual limits | implemented |
docs/integrations/lark-kanban-control-plane-adapter.md| documentation review |ac6296225; ran the focused and adjacent Python suites, ruff, py_compile, root and plugin TypeScript typechecks, module ratchet, and public-boundary scan. Did not include live data, credentials, reproduction steps, or private paths. Historical rows already written to a shared Base are not automatically cleaned; exposed credentials still require revocation and rotation.Scope And Continuation
sync-loopx-todos,seed-task,seed-casesandheartbeatnow default to--sink-visibility shared. The explicitowner-onlymode remains available when the target ACL is independently verified.Validation
d2b6e838b607b633682536d9dcc08f79f12e358e| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
|
unit|passed|tests/extensions/test_lark_shared_sink_redaction.pyandtests/control_plane/test_public_safety_credential_shape_owner.py: 175 passed. ||
unit|passed| Shared stage SVG regression: real presentation bundle -> shared stage write path -> independent XML parser: 1 passed. ||
unit|passed| Adjacent public-safety, Lark, Explore and presentation tests re-run after the review fix: 232 passed. ||
integration|passed| Explore source-runtime route tests: 6 passed. ||
static|passed|ruff,py_compile,git diff --check; root control-plane and plugin TypeScript typechecks. ||
regression_parity|passed| Module metric ratchet and public-boundary scan passed after the reviewed ceiling update. ||
manual|blocked|hot-path-interface-budget-smoke.pyfails identically on pristineac6296225withentrypoint_missing; environment limitation, not this diff. ||
static|blocked| CIkernel-static-checksfails onF841attests/control_plane/test_goal_create_completion.py:184; that file is unchanged here (last touched by #8178) and the identical failure reproduces on baseac6296225(run 42313186589, job 128219540019). ||
integration|blocked|dsh-loopx-pluginadmission-closeout integration fails withinvalid_schema; the same test fails identically onmainate7a6c8d5f(run 41961423900, job 127028426011). Linux CI passesobserver.spec.ts13/13. ||
static|blocked|checks,pytest,stage2c-correctness-e2eandmerge-gatefail only as downstream gates:checksrequireskernel-static-checkssuccess,stage2c-correctness-e2erequires the skipped stage2c result to be success, and the Python shards were skipped the same way on baseac6296225. ||
unit|blocked| Local Windowsdsh-loopx-pluginsuite has pre-existing path-normalization failures; 200/208 plugin tests passed. ||
integration|blocked|cli-output-budget-regression-smoke.pyfails on pristinemainbecause the base fixture lacksread_cli_context_for_oracle; unrelated to this diff. ||
integration|passed| CI PostgreSQL authority real-server check passed. |UI Impact
Type of Change
LoopX Area
Technical Direction
Shared-authority RFC fixture impact
Boundary Checklist
.loopx/,.codex/goals/, and liveACTIVE_GOAL_STATE.md).python3 scripts/check_rfc_bilingual.py --base origin/main --head HEADpasses, or no paired RFC changed.none.Signed-off-bytrailer (git commit -s).Security Note
This PR intentionally limits vulnerability detail. The affected surface is the shared Lark projection boundary; the fix is shape-based redaction, not a complete DLP system. Historical data and any credential that may already have reached shared storage require revocation and rotation rather than relying on this code change.