Repository navigation
The default election reference is the ratified docs/project-repo-schema.md - #19
Conversation
…staged fragment add-project-repo-schema was ratified 2026-09-02 and its doctrine now lives at openxFactory docs/project-repo-schema.md; a project elected earlier recorded the staged fragment's path, and that remains a valid reference for it. Edits by Brett Heap in his workstation clone; committed by lane repo-shape. Lane: repo-shape Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015WekBEXf55Xv64psGe5t3T
Lane: repo-shape Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015WekBEXf55Xv64psGe5t3T
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the default project-schema reference from the staged fragment to the ratified File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
@codex review |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="scripts/shape_materialize.py" line_range="41" />
<code_context>
-DEFAULT_REFERENCE = (
- "openxFactory ideation/staging/project-repo-schema/project-repo-schema.md"
-)
+DEFAULT_REFERENCE = "openxFactory docs/project-repo-schema.md"
#: One name, used in three places below: the source path, the target path and
</code_context>
<issue_to_address>
**issue (bug_risk):** A scaffold or adoption explicitly dated before 2026-09-02 still records `openxFactory docs/project-repo-schema.md` when the caller omits `--reference`, so the generated manifest falsely claims that the earlier election followed the ratified document instead of preserving the staged reference required for pre-ratification projects.
**Triggers:** When `scaffold-project.py` or `adopt-project.py` is invoked with `--elected-on` earlier than 2026-09-02 and without an explicit `--reference`.
**Suggested fix:** Choose the reference from the election date, using the staged path before 2026-09-02 and the ratified path on or after that date, or refuse a pre-ratification election unless its staged reference is supplied explicitly.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 1 finding to address first, and newly scaffolded projects will persist the ratified document path in their project manifest, so an incorrect default would leave a bounded set of provenance references needing correction. Reverting the code does not fix manifests already generated, but those records can be updated without data loss or other irreversible effects.
Blocking findings: scripts/shape_materialize.py:41
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| DEFAULT_REFERENCE = ( | ||
| "openxFactory ideation/staging/project-repo-schema/project-repo-schema.md" | ||
| ) | ||
| DEFAULT_REFERENCE = "openxFactory docs/project-repo-schema.md" |
There was a problem hiding this comment.
issue (bug_risk): A scaffold or adoption explicitly dated before 2026-09-02 still records openxFactory docs/project-repo-schema.md when the caller omits --reference, so the generated manifest falsely claims that the earlier election followed the ratified document instead of preserving the staged reference required for pre-ratification projects.
Triggers: When scaffold-project.py or adopt-project.py is invoked with --elected-on earlier than 2026-09-02 and without an explicit --reference.
Suggested fix: Choose the reference from the election date, using the staged path before 2026-09-02 and the ratified path on or after that date, or refuse a pre-ratification election unless its staged reference is supplied explicitly.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Lane: repo-shape Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015WekBEXf55Xv64psGe5t3T
There was a problem hiding this comment.
🟢 Approval recommended
The change is a low-risk constant/documentation update that aligns the default manifest reference with the ratified schema location and keeps historical references explicitly valid.
Pull request overview
This PR updates the default reference: recorded in newly scaffolded/adopted project.yaml manifests to point at the ratified openxFactory schema document (docs/project-repo-schema.md), and updates the surrounding documentation/comments to clarify that older projects may legitimately retain the prior staged reference path.
Changes:
- Switch
DEFAULT_REFERENCEin the materializer toopenxFactory docs/project-repo-schema.md. - Update the scaffolded
templates/assembly-root/project.yamlcomment to explain post-/pre-ratification reference expectations. - Update README wording to reflect the ratified schema location and continued validity of historical staged references.
File summaries
| File | Description |
|---|---|
| templates/assembly-root/project.yaml | Clarifies the intended meaning of reference: around the 2026-09-02 ratification cutover. |
| scripts/shape_materialize.py | Updates the default reference string used by scaffold/adopt materialization. |
| README.md | Updates top-level documentation to point at the ratified schema doc and note historical staged references remain valid. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
There was a problem hiding this comment.
🟢 Approval recommended
The changes are narrowly scoped to updating the default reference string plus aligned documentation and a corresponding hygiene-test cap update, with no behavioral validation rules tightened that could break existing projects.
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0 new
- Review effort level: Lite
…ay the tool runs (#27) Sourcery on #19: `scaffold-project.py` and `adopt-project.py` wrote `DEFAULT_REFERENCE` — the ratified `openxFactory docs/project-repo-schema.md` — whenever `--reference` was omitted, whatever `--elected-on` said. A project dated before the 2026-09-02 ratification therefore recorded a manifest claiming its election followed a document that did not exist that day, when the doctrine's own sentence is that an earlier election followed the staged fragment. `shape_materialize.default_reference(elected_on)` now chooses: the staged fragment path strictly before 2026-09-02, the ratified document on or after. `election_date()` parses the date first and REFUSES a malformed value (`election-date-malformed`) before anything is created, whether or not an explicit `--reference` would have made the date irrelevant to the choice — a manifest field no reader can parse is not something an override should let through. Both tools resolve the reference through it: the scaffold at plan time (the printed plan marks a date-chosen default), adopt at `plan` time and again at `execute` for a plan file that omits `reference:`, resolved from the plan's OWN `elected_on`, never from the machine's calendar. An explicit `--reference` still wins. `DEFAULT_REFERENCE` keeps its name and value. README and the manifest template say the rule; `tests/test_reference_default.py` covers the boundary dates, the refusal, both tools end to end offline, and the override. README cap 509 -> 513. Closes #26. Lane: codex-intake-shape Co-authored-by: Claude Fable 5.1 <[email protected]>



Lane: repo-shape
Brett Heap's edits from his workstation clone: the default
reference:a scaffolded/adopted project.yaml records switches from the staged fragment's path to the ratifiedopenxFactory docs/project-repo-schema.md(ratified 2026-09-02); a project elected before that date keeps the staged path as a valid reference. README and the manifest template updated to match. Merged with main (#18) before opening.🤖 Generated with Claude Code
https://claude.ai/code/session_015WekBEXf55Xv64psGe5t3T
Summary by Sourcery
Use the ratified project repository schema as the default election reference while retaining support for pre-ratification project elections.
Enhancements:
openxFactory docs/project-repo-schema.mdby default while preserving the staged path for projects elected before ratification.Documentation:
Tests: