Knowledge reference
5 pages, 50 routes, 48 connections and 0 CLI commands, generated from the declarations of Knowledge without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 9
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Runtime code | code.index | custom | /view/knowledge/code | 0 | in navigation | ||
| Code galaxy | code.galaxy | custom | /view/knowledge/code/galaxy | 60 | code.index | in navigation | |
| Code findings | code.findings | custom | /view/knowledge/code/findings | 61 | code.index | in navigation | |
| Search code | code.search | custom | /view/knowledge/code/search | 62 | code.index | in navigation | |
| Commons | knowledge.commons | custom | /view/knowledge/commons | 63 | in navigation | ||
| Crate | code.crate | custom | /view/knowledge/code/crate/{crate} | 240 | code.index | Crate | hidden |
| Source file | code.file | custom | /view/knowledge/code/file | 250 | code.index | SourceFile | hidden |
| Function | code.fn | custom | /view/knowledge/code/fn | 260 | code.index | Function | hidden |
| Step through | code.step | custom | /view/knowledge/code/step | 265 | code.index | Function | hidden |
Connections · 48
Knowledge.CallChain
Walk the call graph from a starting function (callee chain).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| function_name | required |
- Output keyknowledge.result
- Classificationroute_handler
Knowledge.CodeFreshness
Compare each ingested SourceFile's stored sha256 against the current on-disk content; report fresh/stale/deleted. With reingest=true, re-ingest drifted files in place (re-writing the same vertex kinds).
- Output keyknowledge.result
- Classificationreal
- POST /code/freshnessHTTP route
Knowledge.CodeIngest
Ingest a single source file — parses the AST and writes SourceFile / FunctionSignature / StructDef / EnumDef / TraitDef / ImplBlock vertices into the knowledge graph.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| file_path | required | |||
| language | required | |||
| source_code | required | |||
| origin | optional | |||
| url | optional |
- Output keyknowledge.result
- Classificationreal
- POST /code/ingestHTTP route
Knowledge.CodeIngestBatch
Batch variant of Knowledge.CodeIngest — ingests N source files in a single dispatch. Writes the same SourceFile / FunctionSignature / StructDef / EnumDef / TraitDef / ImplBlock vertices per-file.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| files | required |
- Output keyknowledge.result
- Classificationreal
- POST /code/ingest-batchHTTP route
Knowledge.CodeSummary
Aggregate code-ingest summary (file / symbol counts).
- Output keyknowledge.result
- Classificationroute_handler
Knowledge.ComputeMetrics
Compute code-graph metrics — materialize fan-in / fan-out and cyclomatic complexity onto FunctionSignature vertices, and CloneCluster hyperedges over exact structural duplicates (functions sharing a signature_hash). Extractor-agnostic: reads the graph, never the source.
- Output keyknowledge.result
- Classificationreal
- POST /graph/metricsHTTP route
Knowledge.Consolidate
Consolidation plan for one function crystal — every (file, function) member of the SubGraph class, a suggested canonical survivor, and the equivalence basis behind the claim. Read-only: it proposes the collapse, never performs it.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| sub_graph_hash | required |
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/consolidateHTTP route
Knowledge.ConsolidationTargets
Sub-crystal classes ranked by how many (file, function) members share one body — the DRY hot-spot map over function crystals.
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/consolidation-targetsHTTP route
Knowledge.CrystalDeep
Deep equivalence-class crystallization view (ir_hash clusters).
- Output keyknowledge.result
- Classificationroute_handler
Knowledge.Entity
One entity by `entity_id`, or by `kind` with an identifier's `scheme` and `value`: its identifiers with the row that carried each, its rows, every attribute folded from its observations (each source row's newest statement, and whether the sources agree) and the candidates still open on it. Reads only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| entity_id | optional | |||
| kind | optional | |||
| scheme | optional | |||
| value | optional |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/entityHTTP route
Knowledge.EntityCandidates
The likenesses the matching rule would not join, in `state` (open by default), of one `kind` when given. Who settled one is never returned. Reads only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| state | optional | |||
| kind | optional | |||
| limit | optional |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/entities/candidatesHTTP route
Knowledge.EntitySettle
Operator only. Confirm or reject one candidate (`key`, `decision`). A confirmation places a waiting row in the candidate or merges the entity the row made into it, and is refused when that would hold two values under one identifier scheme. A rejection is kept so it is never offered again; a waiting row left with no candidate stands as its own entity.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| key | required | |||
| decision | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/entities/settleHTTP route
Knowledge.Equivalent
Resolve all vertices equivalent (by ir_hash) to a given hash.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ir_hash | required |
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/equivalent/{ir_hash}HTTP route
Knowledge.GovPublications
Operator only. Writes one public_dataset node per government payroll, budget, contract, solicitation, disclosure or legislation publication the compiled-in gov-data registry lists, linked published_by to its government node; fetches nothing and holds no published rows. `family`/`families` narrow it, `jurisdiction` keeps one government, `dry_run` returns the records unwritten.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| family | optional | |||
| families | optional | |||
| jurisdiction | optional | |||
| dry_run | optional |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/gov-publicationsHTTP route
Knowledge.GraphAtlas
Whole-graph frame at kind level (the Crystal Atlas) — every vertex and edge rolled up by kind, nothing sampled.
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/atlasHTTP route
Knowledge.GraphContext
K-hop context around a starting vertex — graph-aware lookup.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| target | required |
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/contextHTTP route
Knowledge.GraphDebugFunction
Debug view for a single function vertex (callees, callers, refs).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | required |
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/debug/functionHTTP route
Knowledge.GraphEquivalence
Equivalence classes (e.g. by ir_hash) over knowledge vertices.
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/equivalenceHTTP route
Knowledge.GraphHubs
Highest-degree vertices in the knowledge graph (centrality view).
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/hubsHTTP route
Knowledge.GraphOrphans
Vertices with no incident edges (graph-cleanup hint).
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/orphansHTTP route
Knowledge.GraphSearchFunctions
Search FunctionSignature vertices by substring / signature shape.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | required |
- Output keyknowledge.result
- Classificationroute_handler
Knowledge.GraphStats
Hypergraph metrics (vertex / edge counts by kind).
- Output keyknowledge.result
- Classificationroute_handler
- GET /graph/statsHTTP route
Knowledge.Hub
Hub-vertex inspection — incident edges around a hub.
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/hubHTTP route
Knowledge.Import
Bulk import a Knowledge dataset (records → nodes + links). Tracks the ingest in `knowledge_ingest_runtime` and writes the resulting graph vertices/edges in one pass.
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/importHTTP route
Knowledge.IrExplore
Inspect the IR for a function/symbol — read-only IR introspection.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ir_hash | required |
- Output keyknowledge.result
- Classificationroute_handler
Knowledge.Link
Create a directed edge between two Knowledge vertices. Hyperedge kind is supplied per call; sources/targets resolved by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| from | required | |||
| to | required | |||
| relation | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/linkHTTP route
Knowledge.Node
Create or upsert a single Knowledge graph vertex (entity / symbol / page). Lightweight single-node write into the knowledge graph.
- Output keyknowledge.result
- Classificationreal
- GET /knowledge/nodeHTTP route
Knowledge.Observe
Operator or in-process collector only. Resolves at most 5,000 rows into the entity spine (named graph knowledge-entities): identifiers first (LEI, CIK, UEI, EIN, a register's number, the Census unit id), then for an organization the same name, form and jurisdiction; anything weaker waits as a candidate. Each row's attributes become observations (attribute, value, stated_on, read_at, source, capture_id) that are never overwritten. A kind off the closed list, or a person, is refused.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| rows | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/entities/observeHTTP route
Knowledge.OfferSources
Operator only, and off unless CRE8_KNOWLEDGE_SOURCE_OFFERS=1. Wraps each committed external import's source artifact in a one-file corpus manifest scoped to `realm:{network_id}`, so trusted peers in this network can pull it through Atom's signed corpus fetch, and announces it on gossip topic knowledge.source_offers.v1.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| limit | optional |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/sources/offerHTTP route
Knowledge.PageContribute
Record a role-aware, evidence-bearing contribution as an n-ary KnowledgeRelation. Consumes bounded paper credits and never mutates canonical revisions, ballots, or positions.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| body | required | |||
| role | required | |||
| stance | required | |||
| paper_credit_stake | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/contributeHTTP route
Knowledge.PageEnsure
Establish a Knowledge Commons page and its initial human-authored canonical revision. Idempotent by slug; later agent activity is proposal-only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| title | required | |||
| body | required | |||
| actor_id | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/ensureHTTP route
Knowledge.PageFrame
Read one wiki-like page frame: canonical and historical revisions, discussion, candidate synthesis, publication decisions, authority, and paper economics.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required |
- Output keyknowledge.result
- Classificationroute_handler
- POST /knowledge/page/frameHTTP route
Knowledge.PageMissionAudit
Record a verified-human accept or reopen decision over reported mission execution evidence. Reopen affects only the bounded mission; no canonical revision, Task bounty, or Agent merit is mutated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| mission_id | required | |||
| execution_id | required | |||
| audit_outcome | required | |||
| audit_reason | required | |||
| human_confirmed | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/mission/auditHTTP route
Knowledge.PageMissionAuthorize
Authorize a bounded paper-accounted agent mission against the current published revision through an explicit verified human decision. Typed Task, consent, Provider, and Agent bridges remain undispatched.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| published_revision_id | required | |||
| title | required | |||
| body | required | |||
| mission_kind | required | |||
| assigned_agent_id | required | |||
| success_criteria | required | |||
| paper_credit_budget | required | |||
| challenge_window_ms | required | |||
| expires_at_ms | required | |||
| human_confirmed | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/mission/authorizeHTTP route
Knowledge.PageMissionChallenge
Record a bonded challenge to the current mission execution from an authenticated human or runtime-authorized agent. The challenge remains paper-only pending human audit.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| mission_id | required | |||
| execution_id | required | |||
| body | required | |||
| paper_credit_stake | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/mission/challengeHTTP route
Knowledge.PageMissionSubmit
Accept execution evidence only from the mission's assigned runtime-authorized agent. Source-ingest missions require a committed Knowledge external-import receipt backed by a durable SHA-256-verified Atom; other artifact references remain reported and unverified. Neither path grants settlement or canonical publication authority.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| mission_id | required | |||
| execution_summary | required | |||
| artifact_ref | required | |||
| artifact_sha256 | required | |||
| external_import_receipt_id | optional | |||
| paper_credits_spent | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/mission/submitHTTP route
Knowledge.PagePublish
Publish one candidate revision through an explicit authenticated or verified human decision. Uses a base-revision compare-and-swap and emits a non-settling audit receipt.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| candidate_id | required | |||
| base_revision_id | required | |||
| decision_reason | required | |||
| human_confirmed | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/publishHTTP route
Knowledge.PageReview
Record a bonded reviewer judgment over one contribution as an n-ary KnowledgeRelation and emit an audit receipt. Review signals remain paper-only and never mutate canonical revisions, ballots, or positions.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| contribution_id | required | |||
| body | required | |||
| role | required | |||
| verdict | required | |||
| paper_credit_stake | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/reviewHTTP route
Knowledge.PageSourceDecide
Activate or reject one external-source proposal through explicit verified-human confirmation. Activation creates a versioned registry policy for the current page revision; release admission still requires a separate bounded mission.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| source_proposal_id | required | |||
| source_decision | required | |||
| source_decision_reason | required | |||
| human_confirmed | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/source/decideHTTP route
Knowledge.PageSourcePropose
Propose a bounded, attributed external source policy as a bonded candidate record. Authenticated humans or mandated runtime agents may propose; proposals cannot mutate canonical knowledge or settle value.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| published_revision_id | required | |||
| title | required | |||
| body | required | |||
| source_provider_id | required | |||
| source_dataset | required | |||
| source_license | required | |||
| source_parser_version | required | |||
| max_source_records | required | |||
| max_source_bytes | required | |||
| freshness_target_ms | required | |||
| paper_credit_stake | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/source/proposeHTTP route
Knowledge.PageSynthesize
Synthesize cited contributions, reviews, or earlier candidates into a bonded candidate revision. Agents require a mandate reference; candidates never mutate canonical knowledge.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| base_revision_id | required | |||
| source_ids | required | |||
| body | required | |||
| role | required | |||
| paper_credit_stake | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/page/synthesizeHTTP route
Knowledge.PullSourceOffer
Operator only, and off unless CRE8_KNOWLEDGE_SOURCE_OFFERS=1. Pulls one received source offer (`offered_by`, `manifest_atom_id`) through Atom's authenticated pull-tree and checks the artifact's address and size. Imports nothing: the artifact enters Knowledge only through this node's own mission and source policy.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| offered_by | required | |||
| manifest_atom_id | required |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/sources/pullHTTP route
Knowledge.Query
Generic Knowledge graph query — filters by kind / property.
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/queryHTTP route
Knowledge.RebuildBusinessWebsites
Repair derived website-host indexes on at most 500 existing Knowledge nodes. Requires an authenticated session; imports no records.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| limit | optional |
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/business-websites/rebuildHTTP route
Knowledge.Stats
Aggregate Knowledge stats (record counts, ingest rollups).
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/statsHTTP route
Knowledge.Status
Knowledge subsystem health / counts.
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/statusHTTP route
Knowledge.Symbol
Resolve a single symbol name to its FunctionSignature vertex.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| symbol | required |
- Output keyknowledge.result
- Classificationroute_handler
- GET /knowledge/symbol/{symbol}HTTP route
Knowledge.Upsert
Upsert a typed Knowledge entity (idempotent by id). Mutates the knowledge graph; safe to call repeatedly with the same payload.
- Output keyknowledge.result
- Classificationreal
- POST /knowledge/upsertHTTP route
Other routes · 7
| Method | Path | Kind |
|---|---|---|
| GET | /code/graph/galaxy.bin | raw handler |
| GET | /code/graph/names.txt | raw handler |
| GET | /code/graph/search | raw handler |
| POST | /graph/link-calls | route |
| POST | /graph/link-traits | route |
| POST | /graph/query | route |
| GET | /view/knowledge/commons | raw handler |
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper_with_sql_compat
- Preferred truthhyper
- App ownerKnowledge
- SQL projectioncompatibility_projection · DDL declarations: 2
- FunctionSignature
- IrHash
- KnowledgeNode
- SourceFile
- SubGraph
- CorpusManifest
- EnumDef
- FunctionSignature
- ImplBlock
- KnowledgeEntity
- KnowledgeEntityCandidate
- KnowledgeEntityKey
- KnowledgeEntityName
- KnowledgeEntityRow
- KnowledgeNode
- KnowledgeObservation
- SourceFile
- StructDef
- TraitDef
- None declared.
- None declared.
- None declared.
- warningApp declares a Hyper graph model and SQL DDL; treat SQL as compatibility/projection until migrated. (hybrid_model)
| Table |
|---|
| knowledge_ingest_runtime |
Capabilities and dependencies
- Hyperdb
| Topic | Description |
|---|---|
| knowledge.source_offers.v1 | Source artifacts this node's Knowledge imports were built from, offered to peers in the same network as metadata (atom ids, provider, dataset, release, size). Receivers record offers only; bytes move on an operator's explicit pull. |
Structure review · 3
- Crate · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Function · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Knowledge · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)