Skip to content

ci: course-digest extraction test suite has never run in CI #1507

Closed

Description

@kyle-sexton

This was generated by AI during work-loop execution.

Context

Filed while driving #1488 ("ci: ai-briefing url-policy tests have never run in CI"), which added the
ai-briefing-build lane. #1488's own suggested fix asked: "consider whether any other plugin ships a
test suite CI never invokes; the two existing lanes were added per-plugin by hand, so the pattern does
not scale by itself."

An enumeration of every plugins/**/package.json (excluding node_modules) carrying a real test
script, cross-referenced against working-directory: occurrences in .github/workflows/ci.yml, turned
up exactly one more gap:

  • plugins/knowledge/skills/course-digest/extraction — package.json scripts.test is vitest run.
    It has a real test suite (utils.test.js, adapters/adapter-contract.test.js,
    adapters/dometrain.test.js, adapters/teachable.test.js, lib/auth/clerk.test.js,
    lib/auth/teachable-sso.test.js, lib/config.test.js, lib/players/hotmart.test.js,
    lib/players/mux.test.js, lib/validators.test.js) and no CI wiring at all — the name
    course-digest does not appear anywhere in ci.yml.

The other two package.json test scripts found in the same sweep are already wired
(plugins/miro/package.json → miro-plugin job; plugins/knowledge/skills/youtube-digest/extraction
→ youtube-extraction job); plugins/ai-briefing/skills/generate/output/build is the suite #1488
itself wires in.

Out of scope for this item's own investigation: whether course-digest/extraction's suite is
security-relevant the way ai-briefing's url-policy suite was — it wasn't audited for that, only
found to be untested in CI. Triage should assess priority/area independently.

Proposed work

  • Add a CI lane for plugins/knowledge/skills/course-digest/extraction, mirroring the pattern used by
    miro-plugin / youtube-extraction / ai-briefing-build in .github/workflows/ci.yml: checkout,
    docs-only self-test + scope detection, Node setup pinned to .node-version with
    cache-dependency-path on that directory's package-lock.json, npm ci, then npm test
    (vitest run) — all gated behind the docs_only scope guard.
  • Wire the new job into the ci-status job's needs list so it becomes part of the required
    aggregate.
  • Add the new lane's read-scope bullet to the scripts/docs-only-paths.txt header comment (the
    inertness-proof list), matching the pattern ci: ai-briefing url-policy tests have never run in CI — an SSRF gate with no CI coverage #1488 used for ai-briefing-build.
  • Confirm the suite installs and runs cleanly (npm ci && npm test from that directory) before
    wiring it in — the ai-briefing case turned up a missing runtime dependency (zod) that had never
    been installed anywhere, so the same check is worth doing here rather than assuming a clean install.

Acceptance criteria

  • plugins/knowledge/skills/course-digest/extraction's test suite runs on every PR touching that
    directory (verified by a CI run showing the new job executing, not just present in the YAML).
  • The new job is a required check via ci-status's needs list.
  • scripts/check-docs-only.sh/.test.sh still pass (the new lane does not widen the docs-only
    allowlist to cover code it reads).
  • actionlint and zizmor report no new findings against the modified ci.yml.

References

Metadata

Field Value
Category unspecified (repo defines no category: labels)
Area unspecified (repo's only area: label is area: security; this is general CI coverage, not security-specific)
Ecosystem unspecified (repo defines no ecosystem: labels)

Activity

  1. added
    needs-triage
    on Jul 26, 2026
  2. added theissue type on Jul 26, 2026
  3. added
    agent-ready
    and removed
    needs-triage
    on Jul 26, 2026
  4. kyle-sexton commented on Jul 26, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage

    Verified. Checked .github/workflows/ci.yml at origin/main (efb6c271, current tip as of triage): course-digest does not appear anywhere in it, confirming the gap is still live. Also confirmed PR #1508's precedent is itself live on main — the ai-briefing-build job exists alongside miro-plugin and youtube-extraction — so the pattern this item proposes mirroring is real, merged, and directly reusable.

    Classification

    Agent Brief

    Type: Task
    Summary: Wire the course-digest extraction package's existing vitest test suite into CI, mirroring the established Node-lane pattern already used for the miro-plugin, youtube-extraction, and ai-briefing-build jobs.

    Current behavior: The package has a real npm test (vitest run) script and a full suite of test files, but no CI job references it — the suite has only ever run locally.

    Desired behavior: A new CI job runs npm ci && npm test for that package on every PR touching its directory, gated behind the existing docs-only scope guard, and is part of the required check aggregate.

    Key interfaces:

    • The existing Node-lane job pattern (checkout → docs-only self-test + scope detection → Node setup pinned to the repo's tracked Node version, with cache-dependency-path on the package's own lockfile → npm ci → npm test), already implemented three times (miro-plugin, youtube-extraction, ai-briefing-build) — mirror it exactly rather than inventing a new shape.
    • The required-checks aggregation job's needs list.
    • The docs-only inertness-proof allowlist that documents each lane's read scope.

    Acceptance criteria:

    • The course-digest extraction package's test suite runs in CI on a PR touching that directory (verified by a CI run actually executing the job, not just YAML presence).
    • The new job is part of the required-checks aggregate.
    • The docs-only self-test and its scope-detection tests still pass; the new lane's read scope is documented without widening the docs-only allowlist to cover code it reads.
    • actionlint and the workflow-linting tool used elsewhere in this repo report no new findings against the modified workflow file.
    • Before wiring, confirm npm ci && npm test succeeds cleanly from that package's directory — the ci: ai-briefing url-policy tests have never run in CI — an SSRF gate with no CI coverage #1488 precedent found a previously-uninstalled runtime dependency (zod) this same way, so don't assume a clean install.

    Out of scope:

    • Auditing whether the suite is security-relevant (out of scope per the filing item's own note).
    • Any change to the suite's own test content or coverage.
  5. self-assigned this
    on Jul 26, 2026
  6. kyle-sexton commented on Jul 26, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  7. added a commit that references this issue on Jul 26, 2026
    d5513ca
  8. kyle-sexton commented on Jul 26, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during work-loop execution.

    Done (2026-07-26): Wired plugins/knowledge/skills/course-digest/extraction's vitest suite
    (91 tests, 10 files) into CI via a new course-digest-extraction job mirroring
    youtube-extraction, added to ci-status's required needs list, plus the matching
    scripts/docs-only-paths.txt bullet. Also fixed a broken clean install found while verifying the
    suite installs cleanly: the package was missing the .npmrc (install-links=true) its sibling
    youtube-digest/extraction already ships, which made npm ci fail EUSAGE on a fresh install.
    Bumped the knowledge plugin to 0.9.6 with a matching CHANGELOG entry for that fix. All CI checks
    on the PR pass, including course-digest-extraction and the required ci-status aggregate.

    Fixed in #1533 (will auto-close this issue on merge via Closes #1507).

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

Metadata

Metadata

Assignees

Labels

agent-ready

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions