docs(ocsf): PR-shaped class draft for #1724 — AI Agent Trust Inventory - #437
Merged
Conversation
Files laid out as they'd land in ocsf-schema: thin Discovery class (uid 24, Log/Collect/Change activity enum carrying the admission-control timing contract), five objects (config declaration, execution params, a single typed agent_artifact, sampling params, credential references), and a dictionary-additions fragment collision-checked against ocsf-schema main. record_integrity attaches at base_event (no registration needed); charter digest rides ai_agent.charter.hashes (existing file object). Worked sample regenerated in the drafted shape so the publicly linked example and the class draft are one shape; verifier re-run green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012phLbmYc3Tgp3Bn39EfFML
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What
Follow-on to #436, now that the response is posted on ocsf/ocsf-schema#1724: the actual class definition JSON, drafted in the exact shape a 1.10 PR to ocsf-schema needs, ready to hand to Dave the moment the co-drafting offer is taken up.
docs/ocsf-1724-class-draft/— files laid out as they'd land in ocsf-schema (conventions verified againstmain2026-08-11):events/discovery/ai_agent_trust_inventory.json— thin Discovery class, uid 24 (first free abovecloud_resources_inventory_info's 23), four attributes (actor,ai_agent,declared_configuration,executed_parameters— both halvesrequired), and a Log/Collect/Change activity enum whoseChangedescription carries the admission-control timing contract from the issue.agent_config_declaration(withat_least_one(ai_model, artifacts)),agent_execution_params, a single typedagent_artifact(Model Weights / Adapter / Tool Schema / Policy Bundle / Charter enum — introduces zero new dictionary attributes),ai_sampling_params(config values only, runtime state explicitly out of scope), andagent_credential(structurally incapable of carrying material).dictionary-additions.json— every new dictionary attribute, collision-checked by name againstmain(notably:charteralready exists as afileobject, so the charter digest ridesai_agent.charter.hashes[]natively;record_integrityattaches atbase_event, so per-emission chaining needs zero schema mechanics).README.md— design rationale and six open questions for Dave/the WG (naming, enum-merge semantics, float attributes, cross-object required-ness, TEE reference posture).Sample shape-sync:
docs/cosai-ws4-ocsf-mapping/trust-base-inventory-sample/regenerated in the drafted shape (typedartifactsarray, credentialtype_ids, charter onai_agent.charter.hashes) so the publicly linked example on the issue thread and the class draft are one shape.Verification
All draft JSON parses; ruff clean. OCSF metaschema validation deliberately deferred — it requires the files inside a real ocsf-schema clone (step one when this graduates to an actual upstream PR branch).
Docs only — no product impact.
🤖 Generated with Claude Code
https://claude.ai/code/session_012phLbmYc3Tgp3Bn39EfFML
Generated by Claude Code