Skip to content

Add AI-ingestible framework brief#207

Open
Ulrond wants to merge 1 commit into
developfrom
feature/ai-brief
Open

Add AI-ingestible framework brief#207
Ulrond wants to merge 1 commit into
developfrom
feature/ai-brief

Conversation

@Ulrond
Copy link
Copy Markdown
Contributor

@Ulrond Ulrond commented Mar 13, 2026

Summary

  • Adds docs/ai-brief.md -- a comprehensive single-file brief capturing python_raft's complete architecture, API surface, configuration schema, and usage patterns
  • Enables AI tools to understand the framework without reading every source file
  • Covers all core classes, console types, power modules, remote control, CEC, A/V sync, utPlaneController, config schemas, test lifecycle, CLI args, and common patterns with code examples

Closes #206

Test plan

  • Verify brief accuracy against source code
  • Confirm config examples match actual schema
  • Review API completeness against testControl.py, deviceManager.py

Copilot AI review requested due to automatic review settings March 13, 2026 13:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “AI Brief” documentation page intended to act as a single-file reference for RAFT’s architecture, APIs, configuration schemas, and common usage patterns.

Changes:

  • Introduces docs/ai-brief.md with a consolidated overview of framework structure and key components.
  • Documents core classes (test harnesses, device/console abstractions), YAML schemas, and example test patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread docs/ai-brief.md
| WARNING | WARNING | 30 |
| ERROR | ERROR | 40 |
| CRITICAL | CRITICAL | 50 |
| FATAL | FATAL | 100 |
Comment thread docs/ai-brief.md
Comment on lines +263 to +267
logs/<rackName>/<slotName>/<YYYYMMDD-HH-MM-SS>/
test_summary.log
test_summary.log.csv
<testName>-<qcId>/
test-0.log
Comment thread docs/ai-brief.md
Comment on lines +268 to +271
test-0.log.csv
screenImages/
captureImages/
```
Comment thread docs/ai-brief.md
| `"apc"` | `powerAPC` | `ip`, `username`, `password`, `outlet` |
| `"apcAos"` | `powerApcAos` | `ip`, `username`, `password`, `port` (23), `outlet` |
| `"olimex"` | `powerOlimex` | `ip`, `port`, `relay` |
| `"kasa"` | `powerKasa` | `ip`, `options` ("--plug" or "--strip"), `args` ("--index N") |
Comment thread docs/ai-brief.md

Uses `pyserial`.

Config fields: `type: "serial"`, `port` (e.g. "/dev/ttyUSB0"), `baudRate` (default 115200), `dataBits` (8), `stopBits` (1), `parity` ("None"), `flowControl` (False), `prompt`.
Comment thread docs/ai-brief.md
self.log.stepStart("Power cycle DUT")
self.powerControl.reboot()
self.log.step("Wait for device to come back")
time.sleep(30)
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.

Add AI-ingestible framework brief

2 participants