Skip to content

feat(okf-bundle): add okfcli validation (requires okfcli ≥ v0.5.2) #33

Open

Description

@prometheas

Summary

Add okfcli validation to the okf-bundle skill from #32 once a release accepts datetime stale_after values. Until then the skill relies on manual §11 checks.

Blocker

okf v0.5.1 rejects spec-conformant stale_after datetimes. Confirmed by running it: upstream bundles/acme_retail fails okf validate with 7 okf/lifecycle/stale-after-invalid errors, and a concept with stale_after: 2020-01-01T00:00:00Z gets no stale warning.

Once a fixed release ships

  1. Confirm bundles/acme_retail passes okf validate, and that past datetimes produce okf/lifecycle/stale.
  2. Add okf to the dev shell, pinning a release or Go toolchain (it needs Go 1.27 or newer).
  3. Update the skill to run okf validate, keeping the manual §11 check as the fallback when okf is not installed.
  4. Add fixture-based bats tests and document the optional dependency.
  5. Consider okf init and okf index for scaffolding and index generation.
  6. Handle legacy timestamp values with no offset: v0.5.1 fails to load the whole bundle on timestamp: 2026-04-12T09:00:00, so unmigrated v0.1 bundles may need a manual step or an upstream report.

If upstream stalls

Decide whether to build from a fork carrying the fix, or stay instructions-only. The last commit on the project's default branch was 2026-09-03.

Acceptance criteria

  • The pinned okf release accepts RFC 3339 stale_after values and reports staleness for them.
  • The skill uses okf validate when available and falls back to manual checks otherwise.
  • Plugin bats suite passes against the pinned release.

Depends on #32

Activity

  1. changed the title [-]chore(okf-bundle): retire okf-validate.sh once okfcli accepts datetime stale_after[/-] [+]feat(okf-bundle): add okfcli validation once datetime stale_after fix ships[/+] on Nov 6, 2026
  2. changed the title [-]feat(okf-bundle): add okfcli validation once datetime stale_after fix ships[/-] [+]feat(okf-bundle): add okfcli validation (requires okfcli ≥ v0.5.2)[/+] on Nov 12, 2026
  3. prometheas commented on Nov 12, 2026

    @prometheas
    ContributorAuthor

    Unblocked: the okfcli fix has shipped.

    okfcli v0.5.2 (2026-11-08) now accepts RFC 3339 datetimes for stale_after. The fix landed through okfcli/okf#44, and okfcli/okf#34 is closed. We checked v0.5.2 against the example bundle from #34, which uses stale_after: 2027-01-01T00:00:00Z. okf validate reports 0 errors and 0 warnings. v0.5.1 flagged that line as a false error.

    Still broken in v0.5.2 (step 6): a v0.1 bundle containing timestamp: 2026-04-12T09:00:00 (no offset) still fails to load. validate and lint both exit 1 with parsing time "2026-04-12T09:00:00" as "2006-01-02T15:04:05Z07:00". The accompanying hint wrongly says the file lacks frontmatter. Before calling okf, the integration has to find and report any legacy timestamp without an offset. Otherwise agents see only that misleading load error.

    Plan update: pin okfcli to >= v0.5.2. Start once #34 merges.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions