Skip to content

docs(validate_dataset_schema): cite experiment.py analyze_unit() instead of drifting line numbers#101

Closed
gadievron wants to merge 1 commit into
masterfrom
fix/validate-dataset-schema-cite-experiment-py-analyze-unit
Closed

docs(validate_dataset_schema): cite experiment.py analyze_unit() instead of drifting line numbers#101
gadievron wants to merge 1 commit into
masterfrom
fix/validate-dataset-schema-cite-experiment-py-analyze-unit

Conversation

@gadievron

Copy link
Copy Markdown
Collaborator

Two comments in validate_unit() cited hardcoded experiment.py line numbers ("lines 186-196",
"line 192") that had drifted: experiment.py:186-196 is now load_application_context(), unrelated
to unit.code/files_included. The actual code/files_included handling lives in experiment.py
analyze_unit(). Replace the brittle line-number citations with the stable function-name anchor so
they cannot re-drift.

Doc/comment-only: no behavioral change, no regression test. Verified: 0 residual
"experiment.py lines N" citations remain; experiment.py analyze_unit() handles code_field

  • files_included; ruff clean (venv py3.11).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

…ead of drifting line numbers

Two comments in validate_unit() cited hardcoded experiment.py line numbers ("lines 186-196",
"line 192") that had drifted: experiment.py:186-196 is now load_application_context(), unrelated
to unit.code/files_included. The actual code/files_included handling lives in experiment.py
analyze_unit(). Replace the brittle line-number citations with the stable function-name anchor so
they cannot re-drift.

Doc/comment-only: no behavioral change, no regression test. Verified: 0 residual
"experiment.py lines N" citations remain; experiment.py analyze_unit() handles code_field
+ files_included; ruff clean (venv py3.11).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gadievron

Copy link
Copy Markdown
Collaborator Author

Closing as already resolved on current master. This fix's behavior shipped via the parser-fix-stack release (#133/#134); confirmed by independent reproduction — the original bug (reconstructed from its bug-pipeline investigation) no longer manifests on master, not merely by line-presence. Part of a full validated sweep of the open-PR corpus.

@gadievron gadievron closed this Jul 10, 2026
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