Skip to content

Document PR conventions and add structure validation#682

Merged
oblomov-dev merged 1 commit into
standardfrom
claude/changes-improvements-review-vazp14
Jul 18, 2026
Merged

Document PR conventions and add structure validation#682
oblomov-dev merged 1 commit into
standardfrom
claude/changes-improvements-review-vazp14

Conversation

@oblomov-dev

@oblomov-dev oblomov-dev commented Jul 17, 2026

Copy link
Copy Markdown
Member

This is a documentation-and-tooling-only change: no samples or packages are moved. It syncs AGENTS.md with the package structure that already exists after the July reorganizations (#668, #676, #680), adds a CI guard so the two cannot drift apart again, and documents PR title conventions.

Summary

AGENTS.md still described the pre-reorganization layout: subpackages 00/0800/13 that no longer exist, the old CTEXTs of 00/02, 00/04, 00/07, 01/05 and 01/08, a missing 01/06, and guidance built on the retired z2ui5_cl_util_xml class. Since AGENTS.md is the single source of truth for agents working on this repo, the drift actively misdirected new contributions.

Key changes

  • Repository layout (AGENTS.md §1): The tree now matches the actual package.devc.xml CTEXTs — 01/05 "framework - extended Controls (CC and Action)", 01/06 "framework - use cases", 01/08/07 sap.ui.unified, the merged 00/02 "only non-openui5 or higher UI5 1.71", 00/04 "use of z2ui5", 00/07 "experimental, TODO"; the removed categories 00/0800/13 are gone. The note about machine-generated demo kit ports now points to the api repository instead of the former 01/08/07 marker convention.
  • Categorization rules (AGENTS.md §2): The restriction decision list matches the current categories, including the new 00/04 rule (samples needing the z2ui5/Util frontend helper) and post-1.71 controls going to 00/02.
  • Overview generation (AGENTS.md §4/§5): Examples reference existing subpackages; the checklists point at npm run launchpad instead of hand-editing the catalogs.
  • View building (AGENTS.md §10): The section on the retired z2ui5_cl_util_xml builder is replaced with _generic( ) guidance inside the z2ui5_cl_xml_view chain.
  • New validation script (scripts/check-agents-structure.js, npm run check:agents): Parses the §1 tree and compares it against the actual package.devc.xml CTEXTs in both directions (missing on disk, undocumented, CTEXT mismatch) and fails on any drift.
  • CI workflow (.github/workflows/check_docs.yaml): Runs the validation on every PR and on pushes to standard.
  • PR conventions (AGENTS.md): New "Pull requests" section — PR titles become squash-merge commit subjects and must describe the change; one topic per PR.

Verification

  • node scripts/check-agents-structure.js → 23 subpackages in sync (and fails correctly on an injected mismatch)
  • npx abaplint → 0 issues (703 files)
  • npm run launchpad → no diff (overview catalogs unchanged)

🤖 Generated with Claude Code

https://claude.ai/code/session_01F6ZLY4zwg3tr9P7z4tiR9d

The July restructurings (category consolidation, sap.ui.unified subpackage,
generated ports moved out) left AGENTS.md §1/§2/§4 describing subpackages
that no longer exist (00/08-00/13) and stale CTEXTs (01/05, 01/08, 00/02,
00/04, 00/07). Update the tree, the src/00 categorization rules and the
overview-generation examples to the actual layout, rewrite the retired
z2ui5_cl_util_xml section (§10) around _generic( ), and point the checklists
at the generator instead of hand-edited catalogs.

Add scripts/check-agents-structure.js (npm run check:agents) plus a
check_docs workflow that compares the documented tree against the actual
package.devc.xml CTEXTs on every PR, so the doc cannot drift silently again.

Also add a PR-title rule: squash-merge titles must describe the change and
never stay auto-generated branch names.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F6ZLY4zwg3tr9P7z4tiR9d
@oblomov-dev
oblomov-dev merged commit fc17ac4 into standard Jul 18, 2026
5 checks passed
@oblomov-dev
oblomov-dev deleted the claude/changes-improvements-review-vazp14 branch July 18, 2026 00:00
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.

2 participants