Skip to content

Chore/copilot customization corrective pass - #135

Merged
zarfld merged 4 commits into
mainfrom
chore/copilot-customization-corrective-pass
Jul 30, 2026
Merged

Chore/copilot customization corrective pass#135
zarfld merged 4 commits into
mainfrom
chore/copilot-customization-corrective-pass

Conversation

@zarfld

@zarfld zarfld commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Description

Brief description of the changes in this PR.

Related Issues

Fixes #
Implements #
Part of #

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Real-time / HAL component change

Traceability

  • Requirements: #
  • Architecture / Design: #
  • Tests: #

Testing

Describe how this was tested:

  • bash test_compile.sh passes
  • make -f Makefile.noqmake builds without errors
  • HAL userspace component loads (halrun / loadusr)
  • HAL RT component loads (halrun / loadrt)
  • No memory allocation in RT paths
  • No blocking calls in RT paths

Real-Time Safety Checklist (if RT code changed)

  • No malloc/free in real-time thread paths
  • No blocking socket operations (all sockets are O_NONBLOCK)
  • RT function completes within timing budget (<50µs for PREEMPT_RT userspace/soft-RT; <5µs for RTAI/hard-RT kernel module)
  • mlockall used where required
  • HAL pin types are correct (hal_s32_t, hal_bit_t, hal_float_t)

Checklist

  • All tests pass
  • Documentation updated alongside code changes
  • No unrelated files changed
  • Traceability links verified (PR links to implementing issue)

github-actions Bot added 4 commits July 30, 2026 17:47
…transition prompts

All prompt files that had an opening/closing ````prompt fence wrapping the
YAML frontmatter have been fixed. The fence caused the YAML to be interpreted
as content rather than prompt metadata.

Also added minimal frontmatter to two phase-transition prompts that had none.
Fixes frontmatter validation errors found by the robust parser.
…kill

PR B — context consolidation:

- Merge c-realtime.instructions.md + pokeyshal-architecture.instructions.md
  into c-architecture-realtime.instructions.md (73 lines, single source of truth
  for C/RT/arch invariants; applyTo **/*.c,**/*.h,experimental/**)
- Reduce engineering-discipline.instructions.md: 185 → 27 lines (8 enforceable
  rules as compact paragraphs; detailed enumerations removed)
- Reduce AGENTS.md: 151 → 66 lines (cross-tool operational contract only;
  no repo structure/build repetition)
- Trim copilot-instructions.md: 126 → 106 lines (remove arch table and RT
  bullet list now covered by c-architecture-realtime.instructions.md)
- Rewrite submodules.instructions.md: 234 → 17 lines (4 invariants + known gap)
- Add .github/skills/update-submodule/SKILL.md with full bump procedure
- Rewrite docs/tasks/philosophy_expl.md as design-decision note
- Add historical snapshot note to docs/repo_review.md

Context budget (combined applicable lines for C task):
  copilot-instructions.md:          106
  AGENTS.md:                          66
  engineering-discipline:             27
  c-architecture-realtime:            73
  Total:                             272 (target ≤380, preferred ≤300)
Copilot AI review requested due to automatic review settings July 30, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

@zarfld
zarfld merged commit d5ef240 into main Jul 30, 2026
2 checks passed
@zarfld
zarfld deleted the chore/copilot-customization-corrective-pass branch July 30, 2026 08:37
zarfld added a commit that referenced this pull request Jul 30, 2026
## Description

Corrects the remaining Copilot-customization defects identified after PR #135.

This PR:

1. Replaces stale references to the removed `c-realtime.instructions.md` and `pokeyshal-architecture.instructions.md` with the consolidated `c-architecture-realtime.instructions.md`.
2. Reduces `docs/tasks/philosophy_expl.md` to a standalone design-decision note.
3. Corrects the C/RT architecture instruction: permits `hal_pin_*_newf()` inside canonical helper implementations; requires subsystem consumers to use `hal_export_*()` helpers; limits `mlockall()` to userspace real-time process initialization; permits appropriate `rtapi_print_msg` severity.
4. Restores README cross-reference validation; validates against current working tree.
5. Replaces inaccurate path-access claims in agent descriptions with behavioral boundaries.
6. Correctly identifies the automatic eight-rule engineering instruction vs the full 13-rule reference.

## Type of Change

- [x] Bug fix
- [x] Documentation and repository-configuration update

## Verification

- No references to deleted C/RT instruction files remain in `.github/copilot-instructions.md`.
- `philosophy_expl.md` is now a standalone 27-line decision note.
- `hal-canon` helpers correctly permitted to use `hal_pin_*_newf()`; subsystem invariant added for consumers.
- `mlockall()` documented as userspace-only.
- README cross-reference validation restored.
- Agent descriptions use behavioral boundaries, not nonexistent path ACLs.
- Six-file diff reviewed for unintended changes and line-ending churn.

Not applicable: no production source, build configuration, or device behavior changed.

## Deferred

- Prompt `mode:`→`agent:` metadata migration.
- Prompt line-ending normalization (separate PR).
- Archival of historical review documents.
EOF
)"
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