PHPackages                             survos/ai-claims-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. survos/ai-claims-bundle

Abandoned → [survos/claims-bundle](/?search=survos%2Fclaims-bundle)Symfony-bundle[Utility &amp; Helpers](/categories/utility)

survos/ai-claims-bundle
=======================

Store machine, human, and source assertions as append-only claims with confidence, basis, and provenance.

2.7.2(1w ago)070MITPHPPHP ^8.4

Since Apr 19Pushed 2d agoCompare

[ Source](https://github.com/survos/claims-bundle)[ Packagist](https://packagist.org/packages/survos/ai-claims-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-ai-claims-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (33)Versions (45)Used By (0)

Survos ClaimsBundle
===================

[](#survos-claimsbundle)

Store machine, human, and source assertions as **append-only claims** with `confidence`, `basis`, and `source`.

Generated metadata is an assertion, not a fact. Recording it as a structured claim lets you:

- know *how confident* the tool was (the `confidence` float)
- know *why* the tool asserted it (the `basis` text)
- know *which tool* produced it, at what version (the `source` string)
- accumulate multiple claims about the same thing and aggregate into a best-guess view — humans can later promote or reject individual claims
- export to and import from JSONL for cheap round-trip backup

The bundle is vocab-agnostic (no predicate enum), storage-layer-only (no inference, no LLM calls), and tenant-agnostic (a nullable `scope`string that the consumer partitions on).

Install
-------

[](#install)

```
composer require survos/claims-bundle
```

The bundle is a flex-compatible Symfony bundle and auto-registers in `config/bundles.php`, and the bundle prepends its Doctrine ORM mapping automatically, like the other Survos bundles.

Register list-valued predicates so the aggregator projects them correctly:

```
# config/packages/survos_claims.yaml
survos_claims:
    list_predicates:
        - dcterms:subject    # keywords
        - dcterms:spatial    # places
        - foaf:Person
```

Generate the migration (or run `doctrine:schema:update --force` in dev):

```
bin/console make:migration
bin/console doctrine:migrations:migrate
```

Claims can also be backed up and restored as JSONL:

```
bin/console claims:export --scope=tenant:rhs > rhs.jsonl
bin/console claims:import --scope=tenant:rhs
