Add stable processing profiles and fingerprints - #183
Conversation
roborev: Combined Review (
|
|
Working on #180 now |
roborev: Combined Review (
|
2d1c9e6 to
2366893
Compare
roborev: Combined Review (
|
2366893 to
7cd16ae
Compare
roborev: Combined Review (
|
|
rebasing |
7cd16ae to
328ffb3
Compare
roborev: Combined Review (
|
22f32be to
51e2ae5
Compare
roborev: Combined Review (
|
Processing profiles must be executable by the shared retrieval implementation. Reject candidate limits above its shared ceiling during configuration validation so startup cannot accept a policy that retrieval later refuses. Generated with Codex
roborev: Combined Review (
|
Callers can assemble a processing profile without running whole-config validation. Apply the selected retrieval binding's shared bounds in that path so it cannot return a policy that the retrieval layer refuses. Generated with Codex
roborev: Combined Review (
|
Callers can assemble a profile without whole-config validation. Validate each selected embedding binding before conversion so unsupported source fields cannot be dropped from the assembled policy. Generated with Codex
roborev: Combined Review (
|
Canonical profiles must remain executable by shared retrieval. Keep the candidate ceiling in the document contract and have retrieval use the same value so direct profile validation cannot authorize a larger policy. Generated with Codex
roborev: Combined Review (
|
What changed
Docbank now has canonical
processing-profile/v1policy bytes and separate fingerprints for rendition, evidence, lexical work, embedding inputs, vector spaces, retention, and provider disclosure. Each fingerprint changes only when its own semantic inputs change, so switching an embedding model does not invalidate a rendition and changing retention does not rebuild evidence.Named TOML profiles cover rendition, embedding, retrieval, and complete processing policy. Credential references stay symbolic as
credential:<name>; runtime secrets never enter canonical profile bytes.Why
One whole-profile hash would rebuild unrelated work, while incomplete component hashes could reuse artifacts across materially different policy or disclosure boundaries. The catalog and workers need stable, narrow cache identities before they can safely share work.
Usage
Resolve and fingerprint a named profile:
This PR defines and validates policy only. It does not execute providers or publish derivatives.
Part of #176 (F3). Stacks on #182.