Skip to content

Fix correction session Leistung matching instructions#286

Merged
DickHorner merged 11 commits into
mainfrom
chatgpt-leistung-matching
May 22, 2026
Merged

Fix correction session Leistung matching instructions#286
DickHorner merged 11 commits into
mainfrom
chatgpt-leistung-matching

Conversation

@DickHorner
Copy link
Copy Markdown
Owner

DONE

  • Removed the obsolete requirement that users must provide a Leistung chatRef together with each submitted Leistung.
  • Kept upload order explicitly non-semantic.
  • Added instructions that ChatGPT must identify the matching Leistung chatRef from the submitted Leistung and the contract's Chat References list.
  • Added instructions not to ask the user for a Leistung chatRef before evaluation.
  • Kept Leistung chatRef as the import/export key.
  • Kept the embedded default contract/prompt templates in sync with the markdown resources.
  • Added a regression test covering the exported matching instructions.

NOT DONE

  • No UI changes.
  • No import logic changes.
  • No scoring model changes.
  • No schema changes.
  • No broad refactor.

CHECKS

  • Compared branch against main: 4 files changed only:
    • modules/exams/rule-packs/default/contract.template.md
    • modules/exams/rule-packs/default/prompt.template.md
    • modules/exams/src/rule-packs/default-pack.ts
    • modules/exams/tests/export-correction-session.use-case.test.ts
  • Tests were not run in this connector environment.

READY FOR NEXT STEP

NOT DONE - run the targeted export-correction-session test before merge.

@DickHorner DickHorner marked this pull request as ready for review May 22, 2026 08:29
Copilot AI review requested due to automatic review settings May 22, 2026 08:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Mode: AUDIT

This PR updates the default correction-session contract/prompt templates (both embedded and markdown resources) to remove the requirement that users provide a Leistung chatRef before evaluation, and adds a regression test to ensure the exported instructions reflect the new matching guidance.

Changes:

  • Updated matching-rule wording in the default contract and prompt templates to infer/match Leistung chatRef without asking the user upfront.
  • Kept embedded templates (default-pack.ts) and markdown resources (rule-packs/default/*.md) aligned.
  • Added a Jest regression test asserting the exported artifacts contain the new instructions and no longer contain the old “user must provide chatRef” requirements.

Tight-Leash Protocol Checklist (evidence-based)

Target Plan.md checkbox IDs worked on: NOT PROVIDED in PR metadata/changes (traceability not verifiable from the diff)

Commands executed (in this review environment):

  • None (not run here)

Verification matrix (Plan.md §6 checkboxes in scope):

Checkbox ID Status Evidence Remediation (if GAP)
N/A (no checkbox IDs referenced) NOT VERIFIED PR metadata/diff contains no Plan.md checkbox reference Add at least one relevant Plan.md §6 checkbox ID to the PR title/description for traceability

What I verified vs what I did not verify

  • VERIFIED: The updated instruction strings are present in (a) embedded templates and (b) markdown resources, and the new test asserts against the exported artifacts.
  • NOT VERIFIED: Test execution/results (PR description states tests were not run).

Ledger rows updated: N/A

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
modules/exams/rule-packs/default/contract.template.md Updates “Matching Rule” wording for Leistung chatRef identification and ambiguity handling.
modules/exams/rule-packs/default/prompt.template.md Updates prompt workflow/matching instructions and personal-identifier guidance.
modules/exams/src/rule-packs/default-pack.ts Keeps embedded default templates in sync with the markdown templates.
modules/exams/tests/export-correction-session.use-case.test.ts Adds a regression test ensuring exported artifacts include the new matching instructions and exclude obsolete requirements.

Comment thread modules/exams/rule-packs/default/contract.template.md Outdated
Comment thread modules/exams/src/rule-packs/default-pack.ts Outdated
- keep each Leistung isolated; do not mix data between Leistungen
- use only Leistung `chatRef` values from the contract's `Chat References` list as external references for submitted Leistungen
- do not use names, candidate IDs, student IDs, or other personal identifiers
- do not use names, candidate IDs, student IDs, or other personal identifiers in structured outputs
- keep each Leistung isolated; do not mix data between Leistungen
- use only Leistung \`chatRef\` values from the contract's \`Chat References\` list as external references for submitted Leistungen
- do not use names, candidate IDs, student IDs, or other personal identifiers
- do not use names, candidate IDs, student IDs, or other personal identifiers in structured outputs
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Comment thread modules/exams/src/utils/correction-session-export.ts
Comment on lines 518 to 524
export function renderCorrectionSessionChatRefs(chatRefs: string[]): string {
if (chatRefs.length === 0) {
return '_No chat references available._';
}

return chatRefs.map((chatRef) => `- ${chatRef}`).join('\n');
}
Comment thread modules/exams/src/rule-packs/default-pack.ts
Comment thread modules/exams/src/utils/correction-session-export.ts
@DickHorner DickHorner enabled auto-merge May 22, 2026 09:43
@DickHorner DickHorner disabled auto-merge May 22, 2026 09:43
@DickHorner DickHorner enabled auto-merge May 22, 2026 09:43
@DickHorner DickHorner disabled auto-merge May 22, 2026 09:45
@DickHorner DickHorner merged commit 18eefcd into main May 22, 2026
8 checks passed
@DickHorner DickHorner deleted the chatgpt-leistung-matching branch May 22, 2026 09:45
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.

2 participants