Repository navigation
0.40.0
Knowledge facts are built only from documents a reader may see and settled only by those allowed, invitations follow their issuer, suspended organisations run no queued jobs, the chunker runs in linear bounded work, and security reports publish counts only.
- Extraction prompt and decision-model material (known entities, accepted facts, held values) come from tenant-visible documents only, whatever the document being read (
services/knowledge/extract.ts,promptScope). ResolveContextgains a requireddocumentVisibility; agroupsdocument adds no aliases to the entity it links to or creates (services/knowledge/entities.ts).- A fact superseded only by a fact the reader cannot see reads as its restored state with
supersededById: null, and is answerable inlookup_facts, counted inGET /api/knowledge/entitiesand reviewable by that reader;confirmkeeps the storedsupersededstate (facts-sql.tssupersededOutOfViewSql/stateInViewSql,facts-read.ts,review.ts). findEntitiesByNameandentitiesMentionedIntake the reader'sAccessScopeinstead of a tenant id and return only staging entities the reader may see, solookup_factsanswers an entity known only from hidden documents like an unknown name.hasPendingInvitation(services/auth.ts) counts an open invitation only whenissuerMayIssue(services/invitations.ts, the rule accept already applied) holds for its issuer: not blocked, and a global admin or a member whose role could issue it.setUserBlocked(services/admin.ts) revokes every pending invitation the person issued, in every tenant, in the block's transaction (revokeEveryInvitationIssuedBy); unblocking restores none.- The jobs consumer (
queues/jobs.ts) readstenants.statusfor every job whose payload names a tenant and acks it unrun unless the tenant isactive;tenant.purgeandactivity.recordalways run, plugin jobs follow the same rule. - A dropped
document.index/document.convertleaves apendingdocumentfailed, so Retry picks it up after reactivation. Rationale:docs/CONCEPTS.md§1. public-report's entries file is{ repos, runs[{ date, commit, scope, coverage_units, agent_calls, confirmed: { high, medium, low }, fixed_in: [release] }], fixed[{ release, repo, high, medium, low, hardening }], contact? };criticalis an optional count.- The
findingsandhardeninglists and everylineare gone;line,title,descriptionor any unknown field refuses the whole file, as do a count with no fixing release, a negative or fractional count, or a repo not inrepos. report.md/report.jsoncarry a fixed sentence: individual issues are not published, "Please request the detailed report by emailing " (defaultsecurity@rocketflare.dev).SKILL.md"Public report",docs/SECURITY-AUDIT.md,docs/CONCEPTS.md(rf-security) andSECURITY.mdstate that only counts are ever published.POST /api/knowledge/facts/:id/review { action: 'prefer' }by a member who cannot manage knowledge is a 403fact_conflict_needs_admin, with nothing written, when a visible conflict is reviewed by someone else, has no reviewer, or was confirmed by another person. An admin still settles any conflict, and the member can stillrejecttheir own side.- New error code
fact_conflict_needs_adminin@rocketflare/shared/errors. chunking.tsrecognises ATX headings and GFM delimiter rows with a linear scan instead of a regex. Every heading and delimiter row is recognised exactly as before.- A table header wider than a quarter of the chunk window is carried as its first columns plus
…, so header and rows fit one window. A header wider than a window is split into windows of its own. Narrower headers are carried whole, as before. embeddingInputcuts the heading path and table header it prefixes toEMBEDDING_CONTEXT_MAX_CHARS(1600) and never cuts the chunk text. A heading title is cut toHEADING_TITLE_MAX_CHARS(200) inheadingPath.docs/DEPLOY.md§ Observability now matches the tomls (invocation_logs = true) and says invocation logs record each request's URL.- Why:
docs/CONCEPTS.md§9, the chunking paragraph and the knowledge review endpoints. - Rationale:
docs/CONCEPTS.md§9 "Knowledge facts" (extraction and "Reading facts").
Porting note: docs/upgrades/0.40.0.md
Full changes: 0.39.0...0.40.0