This release is a pre-release and may not be stable for production use.
CIT Course Tools
cit-course-tools provides workspace setup, deterministic simulator tools,
independent Lab Module checks, and reviewed submission packaging. The package
supports cumulative Python harnesses where an assignment requires one. Its Textual TUI offers
the guided everyday workflow, while seven explicit CLI commands remain available
for transparency, scripting, and troubleshooting. The package is
course-agnostic: instructor-provided YAML defines what each lab teaches and
tests.
The goal is a simple student experience with rigorous behavior underneath. The package manages ports, simulator sessions, graph traversal, evidence, fractional scoring, and current-result reports. It does not download course scenario files or AI models, and it does not install or manage model servers.
Local prerelease candidate — 1.0.2rc2 (not published)
This local candidate moves CIT 495 hidden content into separate term/course/lab distributions. The base wheel contains only the generic dispatcher. Fall 2026 Lab 02, Lab 03, and Lab 04 extras select one content wheel at a time; each wheel contains only that lab's assets and hidden checks. Hidden Lab Module submissions for Labs 02, 03, and 04 package the tested generated module and full test summary. This candidate has not been uploaded to PyPI.
Current stable release — 1.0.0
This stable release pairs with CIT Course Tools VS Code extension 1.0.24. The stable release remains available for users who do not need the unreleased Fall 2026 lab packages. The extension's current candidate installs the 1.0.2rc2 base companion and then requests only the selected lab extra. A manual Lab 02 refresh is:
python -m pip install --upgrade --pre --upgrade-strategy eager "cit-course-tools[fa26-cit495-lab02]==1.0.2rc2"
Previous prerelease — 1.0.0rc7
The rc7 prerelease first delivered the private Lab 02 module bundle. It has been replaced by stable 1.0.0; do not use rc7 for current course installations.
Historical prerelease — 1.0.0rc4
RC4 first added the hidden Lab 02 harness and checks. It has been superseded by stable 1.0.0 and is retained here only as release history; do not install it.
Extras are install selectors, not security boundaries. Each extra depends on a
separately named cit-course-tools-fa26-cit495-labNN distribution. Installing a
different lab extra does not automatically uninstall previously installed lab
distributions. The extension uses only the selected term/course/lab plugin.
When a lab distribution is upgraded, the module compares the new template with
the saved one. It keeps compatible code-block state and creates an accessible
workspace archive if completed work cannot be confirmed compatible.
Recording initialization boundaries are written only with the first actual event in an empty lab log or when project recording first observes activity under a newly selected lab. They help Replay distinguish startup-related unobserved activity without counting the marker as an edit.
Course-wide recording is independent of lab selection
(.cit-course/recordings/project/recording.jsonl); older workspaces' existing
project/logs/recording.jsonl remains readable and is never moved or deleted.
Lab-owned edits stay in labs/labNN/logs/recording.jsonl. The extension records
supported text in all labs, including evaluation and YAML files. Generated
logs/results, dependencies and private hidden paths are excluded.
Packaging now requires review and confirmation. Use the extension Packaging tab,
the TUI confirmation dialog, or cit-course package lab00 --student-name "Your Name".
For scripts, use --preview --json, inspect its token and ranges, then repeat with
--confirm TOKEN --ranges "[[START,END]]". --rebuild uses existing assignments.
Files and recordings changing after preview require a new confirmation.
ZIPs are copies; neither working files nor source recordings are moved or trimmed.
Assignment corrections are retained in .cit-course/packaging-history.jsonl.
Disjoint project ranges use explicit gap notices and replay checkpoints. Existing
schema-1 recordings remain readable; new recordings use a single schema-2 header.
Recording-layout 4 prevents older companions from silently omitting project history.
Previous integration (0.3.2; legacy reference)
The companion cit-course-vscode extension records scoped project and selected-lab text/code edits, including evaluations,
locally and provides a chronological single-pane replay with dockable recording controls. It does not upload
recordings or detect which AI provider produced text. The Python integration
includes only the selected lab's recording segments and editing-history/summary.md in named submission
ZIPs, separate from scored lab evidence. Missing history is explicitly marked;
malformed history fails packaging without replacing an existing ZIP.
Version 0.3.2 uses labs/labNN/logs/recording.jsonl, exported as
editing-history/recording.jsonl with lab identity in its metadata. Old prefixed
logs remain readable; identical migration prefixes are deduplicated, while
conflicting histories stop packaging. Generated logs/results, archives, hidden
files and dependencies are excluded from recording scope. Editor-event origin
is unknown; disk changes and paused work are unobserved snapshots, not typing.
Compatibility: pairing is decided by the editor handshake, not version
numbers. This release reports recording_layout 4 and packaging_review 1; the
1.0.x extension refuses any other combination, and older 0.1.x extensions (layout
2/3) reject it. Upgrade both companions together. If the matching extension update
is not available yet, keep the existing Python 0.3.1 / extension 0.1.14 pair
until it is; the explicit Python CLI can also be used independently.
The extension delegates initialization and packaging to this Python package.
A versioned editor handshake shares the TUI's active-lab preference. New logs
support cursor/selection positions and pause/resume boundaries; older unassigned
logs are preserved but excluded from lab ZIPs with a warning. package --json
returns the archive path and warnings for the dockable panel.
This 0.3.2 integration is a legacy reference and is not the supported companion for the current 1.0.x prerelease extension. Use the current installation and compatibility instructions above instead. Recording source edits means submissions contain implementation history; disclose that requirement before assigning recorded work. No grading deductions are automatic.
Install
Python 3.10 or newer is required.
python -m pip install cit-course-tools
To update later in the semester:
python -m pip install --upgrade cit-course-tools
Start a course workspace
Navigate to the directory you want to use and initialize it once:
cit-course init .
The command creates the submitted orientation lab labs/lab00 and the regular
labs/lab01 through labs/lab12. Each lab directory holds its YAML,
evaluation, runtime logs, current test results, and—when generated—its
labNN-student-name-submission.zip. The command preserves student work.
Initialization includes a compatibility migration for older workspaces.
During init, a non-empty legacy labs/labNN/submission/
directory is first copied into a verified labNN-submission.zip; its evaluation
is preserved under labs/labNN/evaluation.md; only then is the old directory
removed. An empty legacy directory is removed directly.
Cleanup is best-effort: if Windows denies removal or another cleanup error
occurs, initialization prints a warning with the affected path and continues.
Verified archives/destination files and any remaining old files are retained;
the tool does not change permissions. Close applications using the old folder
and rerun cit-course init . to retry. An existing legacy ZIP is reused only
when every remaining source file matches its archived contents. Conflicting
files, unreadable source data, failed verification, and required write failures
still stop initialization so they cannot be mistaken for a successful migration.
Lab 00's package-managed interaction-guide.yaml is the canonical CLI
orientation and test suite; interaction-guide-tui.yaml drives the TUI
Workbench tour. Download each later lab's YAML and starter files from the course
site and place them where its instructions specify.
The scaffold does not create a separate project/ folder. In the current CIT495
course flow, early lab modules run against the instructor-provided harness inside
the companion. The capstone lab will guide students through assembling the
student-owned harness and plugin modules. Existing project/ directories are
left untouched when an older workspace is reopened.
After initialization, start with:
cit-course specs
Review the resulting specs/hardware_specs.txt before sharing it.
Open the student TUI
From anywhere inside the initialized workspace, run:
cit-course
The base TUI provides a dashboard, lab selection, the always-available Interaction Guide, single-terminal Guided Interaction, isolated lab tests, evidence and specs views, and validated submission packaging. Model Simulator activity remains separate from User Simulator prompts and responses.
Workbench Guided Interaction is Guided YAML mode: it selects the declared User Simulator prompts and displays the declared scenario responses directly. It does not execute a student harness or grade implementation changes. Use the Lab Module for the CIT495 block-level and integration tests; the course's static simulator scenario is illustrative, not the Lab 02 grade authority.
Use cit-course --help to see the explicit CLI. The TUI calls the same
workspace, simulator, test, evidence, specs, and packaging services; it is not a
parallel implementation.
Learn the simulator
The recommended path is to run cit-course, select Lab 00 — CIT Course
Tools, and start Guided Interaction. The Workbench selects the TUI-specific
guide while Tests retains the canonical Lab 00 suite. The TUI runs the separate Model and User Simulator
services together, displays their turns in one chronological conversation, and
keeps Model Simulator activity available as a separate alternate view.
The transparent two-terminal CLI path remains available. Start the Model
Simulator with labs/lab00/interaction-guide.yaml; the bare serve command
selects it automatically:
cit-course serve
Leave it running, then start the User Simulator in a second terminal:
cit-course run
The guide introduces the package and its simulator workflow without requiring a download. Explore its paths because the submitted Lab 00 evaluation asks questions answered by the guide.
When finished, run the Lab 00 suite and generate its submission files:
cit-course test
After completing labs/lab00/evaluation.md, create its upload-ready ZIP:
cit-course package lab00
Explore a lab scenario
To explore an instructor-supplied lab instead, start its YAML file explicitly:
cit-course serve labs/lab01/lab01.yaml
Then run the User Simulator in a second terminal anywhere inside the same initialized workspace:
cit-course run
The package discovers the active lab automatically. The serve terminal shows
model-service activity; the run terminal stays focused on predefined user
prompts and Model Simulator responses. The Model Simulator uses port 8081 and
the User Simulator uses port 8082 by default.
Run a lab test suite
Bare cit-course test selects Lab 00. Instructor-supplied labs use an explicit
YAML path. A scenario that requires a student harness selects
harness_project.py beside its lab YAML; this is intended for the capstone.
Earlier labs use the companion's hidden harness through the Lab Module:
cit-course test labs/lab01/lab01.yaml
The Python file must export one function:
def run_harness(context):
"""Run one complete simulator-test or live-model interaction session."""
The harness should write persistent runtime artifacts beneath
context.artifacts_directory. The context also identifies the active Markdown
instruction file as context.instructions_path; a harness can load it and send
its complete text as a system message. When a YAML step declares
conversation_log: true, the runner checks records newly appended to the lab's
working conversation.jsonl. The JSONL records identify requests, responses,
timestamps, the model, status, and errors without recording credentials.
An alternate Python filename can be selected explicitly with --harness.
The full suite runs by default. During implementation, rerun only failed,
errored, and incomplete steps with:
cit-course test labs/lab03/lab03.yaml \
--continue
For an alternate harness file:
cit-course test labs/lab03/lab03.yaml --harness labs/lab03/my_harness.py
Continued and single-case runs are labeled development results: carried passes
are earlier observations, not proof that changed code still passes. Before
packaging, run the full suite after your last source change. A full run with
graded failures can be submitted for partial credit; infrastructure-incomplete
or interrupted runs cannot. Malformed historical JSONL is preserved in
.cit-course/recovered-logs/, allowing a corrected logger to start cleanly.
Each selectable prompt-response step is worth no more than one point. If three
of five required checks pass, that step earns 0.60 / 1.00. Infrastructure
errors are reported clearly and excluded from grading.
Browser labs
Labs with a browser client can add package-managed headless checks to the same YAML suite. Install the optional support once before the first browser lab:
python -m pip install --upgrade "cit-course-tools[browser]"
cit-course browser install
cit-course browser status
The package starts an isolated loopback-only web server and deterministic mock harness for each browser case. Students do not need to run a model, SearXNG, or their harness API during these checks. YAML can use only documented browser actions and assertions; it cannot execute arbitrary JavaScript or shell commands.
Each browser case is worth at most one point, with its assertions sharing that
point equally. Missing Playwright or Chromium is an ungraded infrastructure
error. A failed case also records a screenshot and Playwright trace under the
lab's results/browser-failures/ directory and links them from the report.
Every run replaces the current generated report and evidence without touching the evaluation or another lab:
labs/lab03/
├── evaluation.md
├── logs/
│ └── conversation.jsonl # when required by the YAML
└── results/
├── evidence.jsonl
└── test-summary.md
evaluation.md is created during initialization and never overwritten.
Students complete it in their own words. The evidence trace and test summary
are regenerated by the package.
Package a lab for submission
When the evaluation and current test results are ready, run:
cit-course package lab03 --student-name "Jane Doe"
The command gathers only the required, allow-listed files and atomically creates or replaces:
labs/lab03/lab03-jane-doe-submission.zip
The student's name is required. Omitting --student-name in an interactive
terminal prompts for it; scripts must supply the flag. The TUI asks you to
confirm your name before creating the ZIP. Use your name as shown in Blackboard.
The full name is stored in the manifest; the filename uses a shortened,
filename-safe form. This is a student-provided label, not identity verification.
No student ID, account username, or email is collected automatically.
Repackaging the same lab with the same name replaces its ZIP. If you correct your name, older differently named ZIPs are preserved; submit the new file shown by the tool. The name is not added to model requests or grading evidence.
The ZIP includes a generated submission-manifest.json with the student name, test identity and
file hashes. It never includes the YAML, harness, unrelated logs, an older ZIP,
or the rest of the workspace, and it does not upload anything.
The command checks the YAML, harness and other project source hashes, plus
generated report/evidence/log hashes, against the completed full run. You may
edit evaluation.md afterward. Extra logs or metrics are collected only when
the YAML names them in test_suite.submission_artifacts; paths are relative to
labs/labNN/logs/ and must be produced or updated during that run.
Connect the project harness to a live model
The capstone's student-built cumulative run_harness(context) implementation
can run as an ordinary terminal application against any student-supplied
OpenAI-compatible model endpoint. Start that service independently, note its
root URL, and then run the harness file created by that lab:
python labs/labNN/harness_project.py
The standalone adapter discovers the served model through /v1/models, reads
user prompts from the terminal, and supplies empty simulator-specific headers.
Choose an instruction file with --instructions if the capstone harness allows
it. Enter q at the User Prompt to stop. An alternate server root, advertised
model ID, or instruction file can be selected explicitly:
python labs/labNN/harness_project.py --model-url http://127.0.0.1:9000
python labs/labNN/harness_project.py --model my-model-alias
python labs/labNN/harness_project.py --instructions path/to/AGENTS.md
Run python labs/labNN/harness_project.py --help for all standalone options. The
student-authored core remains the same: tests import run_harness(context) and
supply deterministic User Simulator prompts, while direct execution supplies
terminal prompts and the supplied live endpoint.
The TUI Workbench also provides Connect Live Model for direct free-text
experimentation. Enter the root URL of an already-running OpenAI-compatible
service and optionally its model ID. Course Tools discovers the model through
/v1/models and sends chat requests, but never starts, stops, downloads, or
configures the external service.
Hardware report
Create or refresh the optional, privacy-conscious hardware report from anywhere inside the workspace:
cit-course specs
It is written to specs/hardware_specs.txt. Review it before sharing it.
Commands
cit-course init Create or repair the course workspace
cit-course specs Generate the optional hardware report
cit-course serve Start the Model Simulator with the guide or a lab YAML file
cit-course run Start the User Simulator for the active lab
cit-course test Run Lab 00 or an explicit lab suite and replace its report
cit-course package Create one lab's upload-ready ZIP from required current files
Run cit-course --help or cit-course COMMAND --help for options.
Instructor and developer references
Recovering from operation failures
Warnings identify optional actions that could not complete; required operations report errors and do not claim success. Messages include the action, available file/connection details, and a suggested next step. The TUI displays the same recovery guidance without closing the entire application for a handled failure.
- Close applications holding a report or submission ZIP before retrying a denied write. Existing reports/ZIPs are replaced atomically, not truncated first.
- If a simulator port is occupied, stop your existing simulator or choose another
port with
--port. Do not terminate unfamiliar processes or disable security tools. - Invalid YAML, missing inputs, and invalid port/timeout values must be corrected before the operation can produce a valid result.
- Test infrastructure errors are marked separately from student check failures. A run with infrastructure errors is not ready for submission.
- Optional browser diagnostic captures and cleanup failures are warnings in the test summary; they do not change assertion scores. Only successfully captured screenshot/trace files are listed as current failure artifacts.
init --with-specsmay succeed with a warning if the optional hardware report cannot be saved. Retry the report separately withcit-course specs.
Architecture and publishing
TECHNICAL_SUMMARY.mdprovides a concise comprehensive architecture and workflow summary.SCENARIO_AUTHORING.mddocuments the YAML authoring and scoring contract.TECHNICAL_SPECIFICATION.mddocuments components, isolation, evidence, and runtime behavior.PUBLISHING.mdcontains the release checklist.
Run the complete regression suite with:
python -m unittest discover -s tests -v
Metadata
Release files for cit-course-tools 1.0.2rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cit_course_tools-1.0.2rc2.tar.gz | 238.2 kB | Without provenance | Details for cit_course_tools-1.0.2rc2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cit_course_tools-1.0.2rc2-py3-none-any.whl | Python 3 | none | any | Details for cit_course_tools-1.0.2rc2-py3-none-any.whl |
Total release size: 392.3 kB
Release files / cit_course_tools-1.0.2rc2.tar.gz
| Download URL | cit_course_tools-1.0.2rc2.tar.gz |
|---|---|
| Size | 238.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7604878d9fb5e81e0c6970d8079cc90094e0e8611795a9304e70eb7053575ac
|
|
BLAKE2b-256 checksum How to use checksums |
345d133cd7c308bec0afa85f4ebad1fb29ee612d9da9dbb601730c315da95e6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / cit_course_tools-1.0.2rc2-py3-none-any.whl
| Download URL | cit_course_tools-1.0.2rc2-py3-none-any.whl |
|---|---|
| Size | 154.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de1636e629d17c4e62869c89e1c28595818a02ea201319b875d7389ce2ad7fff
|
|
BLAKE2b-256 checksum How to use checksums |
994979b67b148a4ccd1e918ab686b1dc46f4be121d80dbae2cf8817a8a759074
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Security for cit-course-tools 1.0.2rc2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.