Skip to content

Add the Open Home Foundation AI Policy - #4911

Merged
agners merged 1 commit into
devfrom
frenck/add-ai-policy
Jul 21, 2026
Merged

agners merged 1 commit into
devfrom
frenck/add-ai-policy

Conversation

@frenck

@frenck frenck commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Adds the Open Home Foundation AI Policy to this repository. This is part of a rollout across all repositories in the home-assistant and home-assistant-libs organizations, announced in this blog post.

  • Adds AI_POLICY.md to the repository root.

The policy describes how we handle AI-assisted contributions: AI tools are welcome as an aid, but contributors must fully understand and be able to explain every change they submit, and contributions made by autonomous agents are not accepted. The canonical version lives in our developer documentation.

Summary by CodeRabbit

  • Documentation
    • Added the Open Home Foundation AI Policy.
    • Clarified expectations for AI-assisted contributions, including human review, contributor understanding, and responsible use in issues, pull requests, and code reviews.
    • Documented guidance for translation and clarity assistance, enforcement, and the canonical published policy.

@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Adds AI_POLICY.md, defining rules for AI-assisted contributions, communication, human review, autonomous agents, internal AI use, enforcement, and the canonical published policy.

Changes

AI contribution policy

Layer / File(s) Summary
Contribution and communication rules
AI_POLICY.md
Defines contributor responsibility, prohibits autonomous contribution agents, sets requirements for AI-assisted issue and pull request communication, permits language clarity assistance, and requires human review of AI-produced code and documentation.
Enforcement and policy governance
AI_POLICY.md
Documents internal AI use, maintainer authority over automated feedback, enforcement actions for noncompliance, and the canonical published policy URL.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A rabbit reads the policy bright,
With careful paws, the rules take flight.
No agent hops the human gate,
Each change gets thought before its fate.
Clear words bloom, and reviews stay true.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding the Open Home Foundation AI Policy.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch frenck/add-ai-policy

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AI_POLICY.md`:
- Line 27: Update the wording in the AI policy text to hyphenate “open-source”
when it modifies “nature,” changing the phrase to “foundational open-source
nature” while preserving the rest of the statement.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1838455d-6b50-4aeb-b3f0-1edf86c06b6d

📥 Commits

Reviewing files that changed from the base of the PR and between 7444f82 and 9f1ec88.

📒 Files selected for processing (1)
  • AI_POLICY.md

Comment thread AI_POLICY.md

## Code and documentation contributions

AI can be a helpful tool for writing code and documentation. However, due to the foundational open source nature of our projects, we require a human in the loop who understands the work produced by AI.

@coderabbitai coderabbitai Bot Jul 20, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Hyphenate “open-source.”

Use “foundational open-source nature” when the phrase modifies “nature.”

Suggested fix
-AI can be a helpful tool for writing code and documentation. However, due to the foundational open source nature of our projects, we require a human in the loop who understands the work produced by AI.
+AI can be a helpful tool for writing code and documentation. However, due to the foundational open-source nature of our projects, we require a human in the loop who understands the work produced by AI.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
AI can be a helpful tool for writing code and documentation. However, due to the foundational open source nature of our projects, we require a human in the loop who understands the work produced by AI.
AI can be a helpful tool for writing code and documentation. However, due to the foundational open-source nature of our projects, we require a human in the loop who understands the work produced by AI.
🧰 Tools
🪛 LanguageTool

[grammar] ~27-~27: Use a hyphen to join words.
Context: ...n. However, due to the foundational open source nature of our projects, we requir...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AI_POLICY.md` at line 27, Update the wording in the AI policy text to
hyphenate “open-source” when it modifies “nature,” changing the phrase to
“foundational open-source nature” while preserving the rest of the statement.

Source: Linters/SAST tools

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@michauMiau, it is purely a style/grammar suggestion: when “open source” jointly modifies the following noun (“nature”), many English style guides hyphenate it as the compound modifier “open-source.”

It does not change the policy’s meaning, so feel free to ignore it if the project’s preferred style is “open source” unhyphenated.

@agners
agners merged commit 2723703 into dev Jul 21, 2026
1 check passed
@agners
agners deleted the frenck/add-ai-policy branch July 21, 2026 11:12
This was referenced Jul 27, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants