gnu.in.labs / Corpus Méthodologique & Hygiène Mental
0.1 · DRAFTFrançais ↗
← Portal / METHODOLOGYDRAFT25 min

Lab A — Qualify a code change

Identity
EC-L01
Classification
recommendation
Prerequisites
Python 3.10+, Chapters 01–06
Artifacts
RED/GREEN logs; Scoped conclusion
Success
Expected failure for the negative case; exit 0 for the positive case

Fictional scenario: a UI component changes anchor during animation without losing state or triggering privileged actions.

Step Expected output
Mandate Scope paths, HEAD, forbidden actions
Contract Target, interruption, lifecycle and authority
Oracle Failing test for interruption/restart
Implementation Small patch in isolated worktree
Verification Unit, integration, captures and diff
Publication Separate behavioral proof from marketing

Trap

A smooth animation can hide a duplicate system action. Your oracle must isolate that causality.

Success criteriaNo production changes; explicit interruption contract; a test proving action uniqueness; dated evidence; demonstrable rollback.

Reproducible trial

From repository root, without installation or a model:

python3 examples/change_lab.py --broken
# expected exit 1
python3 examples/change_lab.py
# expected exit 0
python3 scripts/test_labs.py

Download the fixture

Observation and exercise

The faulty case repeats r1 after interruption; the corrected case deduplicates r1 and denies r2. Change targets and add an independent identity: predict the action list before running.

Evidence and limits

Retain commands, output, exit codes and HEAD. RED must fail on the duplicate or unknown symbol, never a broken environment. Fixtures execute no system action or graphics engine and certify no external API.

References

Study edition · not ratified