Skip to content

✨ feat(lab): LAB-H05 evidence collector layout - #266

Merged
konih merged 1 commit into
mainfrom
feat/lab-h05-evidence
Aug 5, 2026
Merged

konih merged 1 commit into
mainfrom
feat/lab-h05-evidence

Conversation

@konih

@konih konih commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Integrator ephemeral PR for LAB-H05 (DOC-02 evidence collector layout)
  • Local ff-merge already at decaa4961; direct main push blocked by GH013 (PR + status checks)

Test plan

  • bash hack/test/lab_evidence_layout_meta_test.sh
  • bash hack/test/lab_harness_meta_suite.sh

Offline collector creates artifacts/lab/<RUN_ID>/ stubs (manifest, scenario
matrix, limitations, pprof/timings) plus retention notes and a redaction
scan stub for H06 — meta-tested without kubectl.
Copilot AI lite review requested due to automatic review settings August 5, 2026 10:55
@konih
konih merged commit b7c3c57 into main Aug 5, 2026
25 checks passed
@konih
konih deleted the feat/lab-h05-evidence branch August 5, 2026 10:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an offline “lab evidence bundle” scaffold for LAB-H05 / DOC-02 by introducing a small collector CLI plus a shared library, and a meta test that asserts the on-disk layout and stub content contracts needed by H06.

Changes:

  • Introduces hack/lab/collect-evidence.sh CLI to create/validate artifacts/lab/<RUN_ID>/ with DOC-02 stub files and optional directories.
  • Adds hack/lab/lib/evidence.sh helpers for layout creation/validation plus an initial redaction-scan stub.
  • Adds hack/test/lab_evidence_layout_meta_test.sh to validate the CLI + library produce the expected layout and stub anchors.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
hack/test/lab_evidence_layout_meta_test.sh Meta test asserting the evidence layout contract and stub-content anchors.
hack/lab/lib/evidence.sh Core layout helper functions and redaction scan stub used by the collector/test.
hack/lab/collect-evidence.sh Thin CLI wrapper to generate and validate the evidence bundle under an output root.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread hack/lab/lib/evidence.sh
Comment on lines +163 to +168
while IFS= read -r -d '' f; do
if grep -Eq '^(clusters:|users:)|BEGIN [A-Z0-9 ]*PRIVATE KEY|password=|token=' "${f}" 2>/dev/null; then
printf 'lab_evidence_redaction_scan_stub: forbidden pattern in %s\n' "${f}" >&2
hit=1
fi
done < <(find "${run_dir}" -type f -print0 2>/dev/null)
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants