Skip to content

AGENT-1831: document-read list branch returns every declared output (pdf_* null) - #13

Merged
mikaelmorvan merged 6 commits into
mainfrom
claude/AGENT-1831-document-studio-cib
Nov 9, 2026
Merged

mikaelmorvan merged 6 commits into
mainfrom
claude/AGENT-1831-document-studio-cib

Conversation

@mikaelmorvan

@mikaelmorvan mikaelmorvan commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Relecture adverse (modules) : codex (openai) au 9f90f45, 2 constat(s) dont 2 bloquant(s), 2 résolu(s) [review-receipt repo=modules head=9f90f45f590187f7ce7000468a130e3294054cab reviewer=codex family=openai authors=anthropic open-blocking=0]

Suivi Plane : AGENT-1831 (work item 77e41a03-e3a7-48b6-a1a4-04cf10bc8716).

… the ACL broker, optional CIB service

- document-share / document-read: publish the reference of an issued document
  (doc_id, title, type, number, version, Storage path, sha256) as a
  recipe--application_data_v1 record (namespace cib-documents) and grant or
  remove read per member, like contenu-share / contenu-read. PDF stays in Storage.
- template compose.py: --with-service documents adds the optional Documents
  Agent and writes a surface draft with required_role on every Workflow.
- tests for the Workflows (mock broker) and the composer; inventory and catalog regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ofile record, Storage as fallback

render and publish read recipe--application_data_v1 (read, cib-profile, company-profile),
report profile_source (cib-profile|storage) and fall back to /document-studio/profile.json
when the record is absent, refused or unreadable. Brand fingerprints (profile_changed) unchanged.
loadProfile moves out of the shared Storage helpers so only render and publish declare the broker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge, empty doc_id allowed

- compose.py surface draft: document-read carries no required_role (record ACL protects it, like contenu-read).
- document-share republished without a member reports the real shares returned by the broker.
- document-read input schema accepts an empty doc_id (list); README updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e non-discriminating plan case

- document-read with doc_id and include_pdf=oui reads the issued PDF with read_file (base64) after the broker
  read succeeded, checks sha256 against the shared record, refuses pdf_integrity_failed, pdf_too_large (5 MiB)
  and invalid_path (outside the issued folder of the document).
- documents.json: remove document-read-without-proof, which also passed on an unusable broker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pdf_* null)

The runtime resolves each declared output path on every branch; the list branch lacked
pdf_base64, pdf_sha256 and pdf_bytes. A test now checks all declared keys on every
simulated branch of document-read and document-share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep both: AGENT-1583 (office_inspect_v1, new-version, mark-authoritative) and AGENT-1831
(document-share/read, include_pdf, cib-profile, outputs on every branch). document-studio is
0.3.0 (main already at 0.2.0); the template composer pin follows. Generated files rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mikaelmorvan
mikaelmorvan merged commit 4d35047 into main Nov 9, 2026
1 check passed
@mikaelmorvan
mikaelmorvan deleted the claude/AGENT-1831-document-studio-cib branch November 9, 2026 05:54
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