|
| 1 | +# Turbo Sample Plugin Agent Notes |
| 2 | + |
| 3 | +This repository stays lightweight. Full AI governance policy lives in `../turbo-cloud`. |
| 4 | + |
| 5 | +## Plugin-specific placement rules |
| 6 | +- Keep plugin composition and service registration in `TurboSamplePlugin/TurboSamplePlugin.cs`. |
| 7 | +- Keep startup orchestration in `TurboSamplePlugin/SamplePluginService.cs`. |
| 8 | +- Add protocol changes under: |
| 9 | + - `TurboSamplePlugin/Revision/<revision>/Parsers/<Domain>/` |
| 10 | + - `TurboSamplePlugin/Revision/<revision>/Serializers/<Domain>/` |
| 11 | +- Treat `TurboSamplePlugin/Revision/README.md` as the local source of truth for revision layout. |
| 12 | +- Do not move or duplicate revision parsers/serializers into `turbo-cloud`. |
| 13 | +- For handler/grain architecture decisions (for example extended profile flow), follow: |
| 14 | + - `../turbo-cloud/AGENTS.md` |
| 15 | + - `../turbo-cloud/CONTEXT.md` |
| 16 | +- For task recipes and portable prompt contract, use `../turbo-cloud/AGENTS.md` as canonical. |
| 17 | +- Keep `PacketHandlers` and `EventHandlers` focused on message/event flow. |
| 18 | +- Keep database concerns in `TurboSamplePlugin/Database/`. |
| 19 | + |
| 20 | +## Packet addition checklist (revision work) |
| 21 | +When adding packet mappings in `TurboSamplePlugin/Revision/Revision20260112`: |
| 22 | +1. Update `TurboSamplePlugin/Revision/Revision20260112/Headers.cs`: |
| 23 | + - add/update incoming `MessageEvent` id constants |
| 24 | + - add/update outgoing `MessageComposer` id constants |
| 25 | +2. Add parser class under: |
| 26 | + - `TurboSamplePlugin/Revision/Revision20260112/Parsers/<Domain>/*MessageParser.cs` |
| 27 | +3. Add serializer class under: |
| 28 | + - `TurboSamplePlugin/Revision/Revision20260112/Serializers/<Domain>/*MessageComposerSerializer.cs` |
| 29 | +4. Register mappings in: |
| 30 | + - `TurboSamplePlugin/Revision/Revision20260112/Revision20260112.cs` |
| 31 | + - incoming: `Parsers` dictionary with `MessageEvent` key |
| 32 | + - outgoing: `Serializers` dictionary with composer type + `MessageComposer` id |
| 33 | +5. Ensure the required `using` directives are present in `Revision20260112.cs` for new parser/serializer namespaces. |
| 34 | + |
| 35 | +## Quality checks |
| 36 | +```bash |
| 37 | +dotnet build TurboSamplePlugin/TurboSamplePlugin.csproj -t:TurboSamplePluginFastCheck |
| 38 | +dotnet build TurboSamplePlugin/TurboSamplePlugin.csproj -t:TurboSamplePluginQualityGate |
| 39 | +``` |
0 commit comments