Skip to content

feat(lint): validate inline element field references - #543

Merged
transitrix merged 4 commits into
mainfrom
methodology/377-inline-element-validation
Aug 29, 2026
Merged

transitrix merged 4 commits into
mainfrom
methodology/377-inline-element-validation

Conversation

@transitrix

@transitrix transitrix commented Aug 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Inline fields on elements (parent, goals, delivers_changes, predecessors, owner_role) are now resolved during Phase 4 referential integrity checks. A missing reference causes validation to fail with a clear error message.

  • Add validation for inline element field references
  • Detect dangling references (e.g., parent: ID-DOES-NOT-EXIST)
  • Fixtures demonstrating valid and invalid references

Depends on PR #542 for the version and phase 5 cleanup.

🤖 Generated with Claude Code

transitrix and others added 4 commits August 29, 2026 10:36
…hase

- Version string now reads from git tag instead of hardcoded v1.0
- Fallback to module __version__ if not in a git repository
- Remove unused _check_semantic_rules() function (never called)
- Phase 5 (compliance policies) is properly implemented and announced

Addresses transitrix-hq#376

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Signed-off-by: transitrix <automation@transitrix.com>
Inline fields on elements (parent, goals, delivers_changes, predecessors,
owner_role) are now resolved during Phase 4 referential integrity checks.
A missing reference causes validation to fail with a clear error message
naming the element, field, and missing ID.

Add test fixtures demonstrating valid and invalid inline references:
- tests/fixtures/inline-refs-valid: parent-child relationship works
- tests/fixtures/inline-refs-dangling-parent: catches missing parent

Resolves transitrix-hq#377 (depends on transitrix-hq#376)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Signed-off-by: transitrix <automation@transitrix.com>
(empty commit to re-run CI checks)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Keep the inline field-reference check in lint.py; take the adoption-health spec from main.

Signed-off-by: transitrix <automation@transitrix.com>
@transitrix
transitrix merged commit a868465 into main Aug 29, 2026
10 checks passed
@transitrix
transitrix deleted the methodology/377-inline-element-validation branch August 29, 2026 10:01
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