A5: Score agent readiness from observations
At a glance
- Task: score a repository on four dimensions, using an observable anchor for each level. Report what would change each score.
- Week: 6; the four dimensions are taught in week 5
- Weight: 2.5 points
- Due: Sunday 23:59 in the listed week
- Hand in: a four-row scorecard, verification evidence and
report.json. - Done when: every level names an anchor and evidence, and you have checked a score that the agent proposed.
- Time: published after a timed pilot; record your prediction and actual time.
Objectives
Use observable evidence to judge structure, documentation, tests and checks, and explain uncertainty (LO4, LO5).
Prerequisites
Score the revised A4 starter repository that you copied and changed. Score it at the fixed commit or local snapshot that you name in your report. Do not score the course repository or an unrelated project. Read the revision from that repository. If you score a snapshot, make the copy from the same commit:
git -C path/to/a4-repo rev-parse HEAD
mkdir -p path/to/a5-submission/snapshot
git -C path/to/a4-repo archive --format=tar HEAD | tar -x -C path/to/a5-submission/snapshot
If you also want the history, git clone path/to/a4-repo path/to/a5-submission/snapshot works too.
Put the printed commit in the revision field of your report.
Follow the course safety practices:
- Run the agent in a dedicated directory or container.
- Keep residency, employer and cloud credentials out of that environment.
- Keep keys out of repositories, prompts, screenshots and logs.
- Run injection demonstrations offline against the local machine only.
Use the mature coding-agent seat supplied for the course. Do not run an unknown generated command on a credential-bearing host.
Published anchors
An anchor is the observable fact that a level requires. Give each dimension the highest level whose anchor you can show at the named revision. Use only these anchors in this assignment.
| Dimension | Level 1 | Level 2 | Level 3 | Level 4 |
|---|---|---|---|---|
| Structure | No behaviour-to-file map | A map exists but an entry is wrong | Map is accurate and the change point has one responsibility | A check catches a deliberate boundary violation |
| Documentation | No runnable context file | Commands are listed but one fails or an invariant is absent | Commands run and three invariants name their checks | A check detects a stale documented command |
| Tests | No runnable coverage for the changed path | A run passes but is slow, nondeterministic or misses a deliberate break | Two repeatable runs pass and a deliberate break fails | Mutation evidence explains every surviving mutant |
| Checks | No automatic gate | A gate is manual or already failing | One offline gate command stops a bad change | A pre-commit gate stops both an unused import and a secret canary |
In Tests level 4, a mutant is a small deliberate change to the code. A surviving mutant is one that no test catches.
Tasks
- Choose a revision. Record the commit printed by
git -C path/to/a4-repo rev-parse HEAD, and the snapshot directory if you made one. - Generate. Ask the agent to suggest a level and evidence for each dimension. Treat each suggestion as a claim, not a fact.
- Disprove. For every claim, choose an observation that could show it false. Run commands and open files at the named revision.
- Score. For Structure, Documentation, Tests and Checks, record the highest level for which you have evidence of every anchor. Name the observation that would change each score.
- Review. Recheck one of the agent's claims yourself. Record whether the evidence confirms it, refutes it or leaves it unresolved. Finish the decision line.
Generation is the score that the agent proposes. Verification is your command output, your reading of the files and, where it is safe, a deliberate break. A score without evidence stays unsupported.
Deliverables
Copy the two files in starter/, scorecard.md and report.json, into your submission directory and fill them in. This is the path/to/a5-submission directory from the Prerequisites commands.
Submit the four-row scorecard.md, evidence files or excerpts, the agent proposal you checked and
report.json. Set scorecard_path to the scorecard file. Run from the course checkout:
python practice/a5/check.py path/to/submission
Grading
The criteria are:
- anchors that someone else can reproduce;
- a correct distinction between evidence and inference;
- a concrete change condition for each dimension;
- a checked proposal.
The public check does not verify that your commits are genuine, and it does not assign a readiness status.
AI use rules
Green: the agent may propose levels, probes and prose. Yellow: you may use generated probe plans after you read and adapt them. Red: choosing the final levels, interpreting the evidence and making the decision must be your own work. Attach one AI-use note ID.
Estimated time
Published after a timed pilot. Record your predicted and actual time. Include the time you spent rechecking one claim.
Work record outline
assignment: A5
evidence: [{id: TODO, path: TODO, observation: TODO}]
revision: TODO
scorecard_path: TODO
dimensions: [{name: structure|documentation|tests|checks, level: 1..4, anchor: TODO, evidence: [TODO], would_change: TODO}]
review_evidence: [TODO]
explanation: TODO
ai_use_note: TODO
predicted_time: TODO
actual_time: TODO
decision: {action: accept | narrow | recheck | stop, because: [evidence ID(s)], next: TODO}
The outline lists the fields of report.json in plain text. starter/report.json holds them as JSON, except predicted_time and actual_time, which you add yourself. Evidence paths are relative to your submission directory. The check reads a field that still contains the word TODO, or text in angle brackets such as <name>, as unfilled.