Repository navigation
fix(secrets): generate secretref reference docs from the credential matrix - #89142
1052326311 wants to merge 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 27, 2026, 8:29 AM ET / 12:29 UTC. Summary PR surface: Source +124, Tests +213, Docs 0, Config +2, Other +60. Total +399 across 10 files. Reproducibility: yes. Source inspection on current main and v2026.6.10 shows the generator writes only the JSON matrix while the Markdown credential-surface page is checked after the fact instead of generated. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Refresh this branch on current main and land one canonical generator/check implementation that extends the existing SecretRef matrix generator, preserves the credential-surface doc structure, and proves the new gate after regeneration. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main and v2026.6.10 shows the generator writes only the JSON matrix while the Markdown credential-surface page is checked after the fact instead of generated. Is this the best way to solve the issue? Yes after refresh. Extending the existing registry-backed SecretRef matrix generator and sharing a pure formatter with the drift test is the narrow maintainable solution; the branch still needs conflict resolution and regeneration on current main. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c5d34c8376f8. Label changesLabel justifications:
Evidence reviewedPR surface: Source +124, Tests +213, Docs 0, Config +2, Other +60. Total +399 across 10 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Addressed. Both @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
c9fb0b1 to
acace85
Compare
|
@clawsweeper re-review — updated proof with fresh live run output (actual line counts and entry counts from this branch rebased on latest main). |
|
Fixed: regenerated the SecretRef credential surface Markdown against current main. Changes:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
Fixes #85969 (replaces the original PR). Adds a shared SecretRef credential-surface Markdown formatter, extends the matrix generator with write/check modes for JSON plus Markdown marker blocks, wires package/preflight scripts, updates generated reference docs, and adds formatter/drift tests.
Changes from original PR
check:secretref-docsandgen:secretref-docswithnode scripts/run-with-env.mjsinstead of POSIX env assignmentBehavior or issue addressed: SecretRef credential matrix and credential-surface docs regenerate cleanly on macOS without POSIX env syntax.
Real environment tested: macOS 26.6 (Darwin arm64), Node v22.22.0, OpenClaw source checkout at
8c6e99e82Exact steps or command run after this patch:
Evidence after fix:
Live macOS generation output:
check:secretref-docsconfirms no drift:Generated artifacts (live run, actual output):
secretref-user-supplied-credentials-matrix.jsonsecretref-credential-surface.mdTest suite all pass:
Observed result after fix: Both generation and verification work cross-platform on macOS. No POSIX env assignment required. Matrix generation is idempotent (second run shows 'already in sync').
What was not tested: Windows and Linux behavior (CI covers these).
@clawsweeper re-review