Skip to content

feat(reg-intel): align discovery model and date validation with spec (THQ-356) - #537

Merged
transitrix merged 1 commit into
mainfrom
methodology/356-reg-intel-discovery
Aug 27, 2026
Merged

transitrix merged 1 commit into
mainfrom
methodology/356-reg-intel-discovery

Conversation

@transitrix

@transitrix transitrix commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Task THQ-356 — fix the reg-intel skill and CLI to properly implement the codex discovery model and date handling as specified in 14-codex.md §3.7.

Changes

  1. Discovery model alignment: Updated documentation and implementation to read the source registry from operations/config/scan-sources.yaml (the centralised watch-list), not by walking the codex/ directory. This makes discovery explicit and allows future non-codex connector types (APIs, Confluence, etc.).

  2. Test fixture: Created scan-sources.yaml with proper schema. Static sources (monitoring_needed: false) are now handled correctly — their monitor_instead entries are surfaced as separate scan targets.

  3. Date validation: Added proper date validation to reject:

    • Impossible dates (e.g., 2026-02-31)
    • Malformed ISO-8601 dates (e.g., 2026-6-01 instead of 2026-06-01)
    • Non-date strings in isDue (no longer silently returns false via string comparison)
  4. CI workflow: Added .github/workflows/reg-intel-skill-test.yml to run the integrity test on PRs that touch the skill or CLI.

Test Plan

  • python transitrix/skills/reg-intel/tests/test_reg_intel_integrity.py passes all checks (Parts A–M)
  • Part B correctly surfaces static source monitor_instead entries
  • Part M date validation rejects impossible/malformed dates
  • CI workflow runs on PR changes to reg-intel files

🤖 Generated with Claude Code

Task transitrix-hq#356 — fix reg-intel documentation and implementation to
match 14-codex.md §3.7 spec:

- Discovery now reads from operations/config/scan-sources.yaml (the
  centralised watch-list), not by walking codex/ directory. Updated SKILL.md,
  CLI README, and package.json descriptions to reflect this.

- Codex watch-list fixture creates scan-sources.yaml per the spec schema.
  When a source is static (monitoring_needed: false), its monitor_instead
  entries are surfaced as separate scan targets.

- Added date validation to reject impossible dates (e.g., 2026-02-31) and
  malformed ISO-8601 dates (e.g., 2026-6-01). Both addFrequency and isDue
  now validate date format and reject non-dates rather than silently
  comparing them lexicographically.

- Added test Part M to cover date validation edge cases: impossible dates,
  malformed ISO dates, and non-date strings.

- Created GitHub Actions workflow (.github/workflows/reg-intel-skill-test.yml)
  to run the integrity test on PRs touching reg-intel skill or CLI.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Signed-off-by: transitrix <automation@transitrix.com>
@transitrix
transitrix merged commit 097fae3 into main Aug 27, 2026
11 checks passed
@transitrix
transitrix deleted the methodology/356-reg-intel-discovery branch August 27, 2026 09:59
@transitrix transitrix mentioned this pull request Aug 27, 2026
1 of 2 tasks
@vkgeorgia vkgeorgia changed the title feat(reg-intel): align discovery model and date validation with spec (transitrix-hq#356) feat(reg-intel): align discovery model and date validation with spec (THQ-356) Aug 28, 2026
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.

1 participant