Skip to content

Add current course coverage, official CS schedules and public Prince search - #62

Open
aikhanjum wants to merge 3 commits into
mainfrom
feat/current-course-data
Open

aikhanjum wants to merge 3 commits into
mainfrom
feat/current-course-data

Conversation

@aikhanjum

@aikhanjum aikhanjum commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

When TigerJunction's imported catalog lacks a requested semester, PI needs to distinguish missing coverage from a course not being offered, and honor students who ask it to stay inside PI.

This adds three read-only connector tools. get_course_data_status checks the existing list_terms result, probes the requested term with search_courses, and checks the public CS schedule fallback. get_cs_course_schedule reads the department's explicitly selected semester and returns published course-level times. search_prince_articles returns dated, linked excerpts from the public Prince search service, independently of Clio.

The maintained Junction catalog remains the primary source for university-wide offerings and sections. This PR uses its existing tools and has no dependency on the closed engine PR #233 or a second OIT tool family. Catalog ingestion and the Spring 2027 backfill remain owned by the existing importer. A one-course probe does not establish complete coverage or a successful import.

Public results include source URLs, fetch timestamps and coverage limits. The CS reader rejects pages that silently select another term. Public fetches send no student identity, session cookie or service credential. Independent source tools remain discoverable during an engine catalog outage. Consent explains public-source queries.

Connector guidance honors PI-only requests and reports gaps instead of silently switching to browser or web search. Server-side source reads remain PI calls. This is assistant guidance, not a technical restriction on separately enabled host tools.

Validation

  • npm run typecheck passed.
  • npm test passed, 77 tests and zero failures.
  • npm run build and git diff --check passed.
  • Earlier live public-source smoke through the actual local MCP transport returned 51 Spring 2027 CS schedule entries and public Prince results. Public readers are unchanged in the importer-alignment update.
  • After the engine PR closed, a fresh read-only production check still found seven terms through Fall 2026 and no Spring 2027 COS search results. The maintainer's importer repair/backfill was not yet verified as complete.
  • Tests cover the exact requested-term probe, no personal-plan reads, rejected obsolete tool names, wrong-term fallback pages, malformed markup, redirects, oversized responses and credential isolation.

Remaining verification

The local smoke test did not use a production Claude session. Verify the deployed connector and the importer's backfill through existing tools before claiming current university-wide coverage. The CS fallback is course-level scheduling only, not every precept/lab or current seats. Prince reporting is context, not official policy. No database refresh, enrollment or saved-plan mutation is performed by this PR.

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