Record agent and version on document create
Version: 1.8.0 Date: 2026-10-18
Goal: POST /api/documents stores the agent headers that were actually sent, so a later neo read can see who created the document.
Solution: When Bcyip-Agent is non-empty, write auto-attribute bcyip:agent with that header value. When Bcyip-Version is non-empty, write bcyip:agent-version with that header value. A missing or blank header is omitted. The values are not taken from users.agent or apitokens.agent.
Features:
- Non-empty
Bcyip-Agent→bcyip:agent - Non-empty
Bcyip-Version→bcyip:agent-version - No invented value when a header is absent
Files Modified:
app/util/documentIngest.js- Build the auto-attributes from headersapp/routes/documents.js- Apply them on document createapp/database/schema/document.js- PersistautoAttributes
Release fragment: feat-record-agent-on-create