Record agent headers on document create
Version: 1.2.0 Date: 2026-10-18
Goal: The document stores the agent headers that were sent, not the agent name attached to the token.
Solution: On create, write bcyip:agent from a non-empty Bcyip-Agent and bcyip:agent-version from a non-empty Bcyip-Version. A missing or blank header is omitted. The stored value is not read from apiTokenAgent.
Features:
- Non-empty
Bcyip-Agent→bcyip:agent - Non-empty
Bcyip-Version→bcyip:agent-version - No invented value when a header is absent
Files Modified:
src/domains/document/document.service.ts- Header values written as auto-attributessrc/domains/document/document.controller.ts- OpenAPI ingest description
Release fragment: feat-record-agent-headers