Skip to content

add timestamps for verified instructions#10

Merged
buixor merged 2 commits into
mainfrom
time_and_verification_tracking
May 22, 2026
Merged

add timestamps for verified instructions#10
buixor merged 2 commits into
mainfrom
time_and_verification_tracking

Conversation

@buixor
Copy link
Copy Markdown
Collaborator

@buixor buixor commented May 22, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 22, 2026 13:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a structured way to track when reference docs were last exercised (date/version/env) via YAML frontmatter, plus a stdlib-only checker that reports coverage in CI.

Changes:

  • Introduces skills/crowdsec/scripts/check-verification.py to scan docs for verified: frontmatter and report coverage/staleness.
  • Adds verified: frontmatter entries to several reference docs.
  • Updates CLAUDE.md to document the verification schema and runs the checker in .github/workflows/validate.yml.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
skills/crowdsec/scripts/check-verification.py New verification-coverage/staleness report script with schema validation.
skills/crowdsec/references/install/bare-metal.md Adds verified: frontmatter entry for systemd install path.
skills/crowdsec/references/configure/bouncers/web-servers.md Adds verified: frontmatter entry for nginx bouncer path.
skills/crowdsec/references/configure/allowlists.md Adds verified: frontmatter entry for allowlist operations.
skills/crowdsec/references/appsec/deploy.md Adds verified: frontmatter entry for AppSec deploy flow.
CLAUDE.md Documents verification tracking rules and schema.
.github/workflows/validate.yml Runs the verification coverage report in CI.
Comments suppressed due to low confidence (1)

skills/crowdsec/scripts/check-verification.py:186

  • The “Malformed verified: block(s)” count uses len(errors), but errors may contain multiple items for the same doc (one per invalid entry). That makes the “block(s)” number misleading even if the detailed messages are fine. Consider counting distinct docs with errors separately (e.g. error_docs set) and using that for the headline count.
    if errors:
        print(f"\nMalformed verified: block(s): {len(errors)}", file=sys.stderr)

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

Comment thread skills/crowdsec/scripts/check-verification.py
Comment on lines +175 to +176
print(f"\nVerified: {len(rows)} record(s) across {len(docs) - len(gaps) - len(errors)} doc(s)")
print(f"Coverage gaps (no verified: block): {len(gaps)}")
Comment thread skills/crowdsec/scripts/check-verification.py
@buixor buixor merged commit 9338048 into main May 22, 2026
1 check passed
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