You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use agentrc's canonical agentrc_pin.py, pin agentrc e6cd302 - #407
This core carried its own agentrc_pin.py, with the cache namespace, profile API and features hard-coded, so every
agentrc bootstrap change had to be ported here by hand (hathach/agentrc#399, hathach/agentrc#438).
No actionable comments were generated in the recent review.
Walkthrough
The pin script now reads per-core agentrc settings from test/hil/agentrc.json. It validates the selected source against the configured API and features, freezes its identity, and loads only files bound to that identity.
Changes: Agentrc contract and source loading
Layer / File(s)
Summary
Configure and fetch the agentrc pin .claude/skills/hil-contract/SKILL.md, .claude/skills/hil-contract/scripts/agentrc_pin.py, test/hil/agentrc.json, .claude/test/test_agentrc_pin.py, .claude/test/test_build.py
The configuration adds a cache namespace, profile API, features, and extra engines, and updates the commit. The pin script validates these settings and uses the configured namespace for fetches. Tests check the configuration, build feature usage, and literal lookup.
Freeze and load the selected source .claude/skills/hil-contract/scripts/agentrc_pin.py, .claude/test/test_agentrc_pin.py
Source selection validates the configured API and features, freezes the selected identity, and restricts file loading and binding checks to that identity. The test command checks bootstrap script bytes before test discovery. Tests cover selected identity and loading from a staged tree.
sequenceDiagram
participant agentrc_pin.py
participant agentrc_source
participant hil_load
participant unittest
agentrc_pin.py->>agentrc_source: Discover source and freeze identity
agentrc_pin.py->>hil_load: Load files in the frozen identity
agentrc_pin.py->>unittest: Run discovery after bootstrap byte check
Loading
Possibly related PRs
adafruit/ArduinoCore-samd#402: Adds the per-core agentrc configuration and contract tests that this pull request updates.
adafruit/ArduinoCore-samd#406: Changes the same feature contract and pin that this pull request moves into per-core configuration.
Suggested reviewers:greptile-apps
Merge Risk: Minimal · up to 42a95
This change replaces the locally maintained agentrc pin script with the canonical pinned version and moves per-core settings into a JSON file. No merge-blocking risk was found, and the interpreter-version concern was checked and does not apply to the repository's CI setup.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the core now uses agentrc's canonical agentrc_pin.py instead of a local copy, and the agentrc pin moves to e6cd302. The raw summary and objectives both confirm this ch…
Description check
The description states the problem (a locally hard-coded agentrc_pin.py), the solution (verbatim canonical copy, per-core values moved to test/hil/agentrc.json, repin to e6cd302), and test results. It…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the core now uses agentrc's canonical agentrc_pin.py instead of a local copy, and the agentrc pin moves to e6cd302. The raw summary and objectives both confirm this change.
Full details: Description check
Explanation
The description states the problem (a locally hard-coded agentrc_pin.py), the solution (verbatim canonical copy, per-core values moved to test/hil/agentrc.json, repin to e6cd302), and test results. It matches the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
This core carried its own
agentrc_pin.py, with the cache namespace, profile API and features hard-coded, so everyagentrc bootstrap change had to be ported here by hand (hathach/agentrc#399, hathach/agentrc#438).
Solution
agentrc_pin.pyverbatim.test/hil/agentrc.json:core,namedandbattery. It is repinned to e6cd302, thesquash of arduino: one canonical agentrc_pin.py on agentrc_source; core provenance in HIL reports (#399, #438, #398) hathach/agentrc#578.
environment.
Full-roster HIL on ci.lan: metro_m4_express passes cdc_arduino, cdc_tinyusb and timing.
agentrc_pin.py testpassesall 43 tests.