Draft
Conversation
12 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the first SourceOS Portable AI Kit implementation slice.
This PR now introduces:
docs/integration/portable-ai-kit.mdas the product/integration spec;sourceosctl/commands/portable_ai.pywith profiles, hardened preflight, prepare, start-plan, inspect, and evidence inspection helpers;sourceosctl/commands/portable_ai_cli.pyas the command-group parser;sourceosctl/commands/portable_ai_byom.pyfor BYOM local model hash verification and manifest materialization;bin/sourceosctlplugin routing forsourceosctl portable-ai ...;bin/sourceos-portable-aias a standalone compatibility entrypoint reusing the same parser;tests/test_portable_ai_cli.pycoverage for profiles, preflight, benchmark temp-file cleanup, dry-run prepare, guarded execute, BYOM dry-run hashing, BYOM policy gate, BYOM manifest/evidence writing, start-plan, inspect, and evidence inspection;Preflight hardening included
portable-ai preflightemits structured facts for:findmnt/lsblkand macOSdf/mount/diskutilbest-effort block details;The benchmark remains explicit via
--benchmark. Without that flag, preflight remains non-mutating.BYOM verification included
portable-ai byom verifynow supports local model file verification without downloads or provider calls:The command computes SHA-256 and file size, generates a SourceOS
ModelCarryPackmanifest, records license/provenance posture, and can optionally copy the file intomodels/blobswith--copy. It does not download a model, start a runtime, grant network, grant tool use, or store prompt bodies.Product target
Match the immediately graspable portable-USB local-AI capability of small projects like Portable-AI-USB while exceeding them on SourceOS-grade governance:
--execute --policy-ok;Validation notes
Connector-visible workflow/status results for the current head SHA are empty, so CI is not confirmed through this path. Expected local validation:
Follow-up acceptance criteria