Skip to content

docs(ocsf): PR-shaped class draft for #1724 — AI Agent Trust Inventory - #437

Merged
Levaj2000 merged 1 commit into
mainfrom
claude/review-dave-paypal-work-uokt9k
Aug 11, 2026
Merged

docs(ocsf): PR-shaped class draft for #1724 — AI Agent Trust Inventory#437
Levaj2000 merged 1 commit into
mainfrom
claude/review-dave-paypal-work-uokt9k

Conversation

@Levaj2000

Copy link
Copy Markdown
Owner

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 against main 2026-08-11):

  • events/discovery/ai_agent_trust_inventory.json — thin Discovery class, uid 24 (first free above cloud_resources_inventory_info's 23), four attributes (actor, ai_agent, declared_configuration, executed_parameters — both halves required), and a Log/Collect/Change activity enum whose Change description carries the admission-control timing contract from the issue.
  • Five objects: agent_config_declaration (with at_least_one(ai_model, artifacts)), agent_execution_params, a single typed agent_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), and agent_credential (structurally incapable of carrying material).
  • dictionary-additions.json — every new dictionary attribute, collision-checked by name against main (notably: charter already exists as a file object, so the charter digest rides ai_agent.charter.hashes[] natively; record_integrity attaches at base_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 (typed artifacts array, credential type_ids, charter on ai_agent.charter.hashes) so the publicly linked example on the issue thread and the class draft are one shape.

Verification

python3 docs/cosai-ws4-ocsf-mapping/trust-base-inventory-sample/build_sample.py --verify
# ✓ 3 events: fingerprints recompute, chain links, content digests resolve
#   to named preimages, event-3 declared≠loaded divergence present

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

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
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-identity-landing Ready Ready Preview Aug 11, 2026 3:25pm
dashboard Ready Ready Preview Aug 11, 2026 3:25pm

@Levaj2000
Levaj2000 marked this pull request as ready for review August 11, 2026 15:29
@Levaj2000
Levaj2000 merged commit 77c79a8 into main Aug 11, 2026
7 checks passed
@Levaj2000
Levaj2000 deleted the claude/review-dave-paypal-work-uokt9k branch August 11, 2026 15: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.

2 participants