Expand description
The code graph an owner may publish to Cloud (Cloud plan v3 N1; C0 1.9 section 8).
By default Cloud knows a repo’s code only through the anchors of its
facts. When the owner sets a project’s code_graph to full, the
engine publishes the structure of its checkout: files and the symbols
they define, which file contains which symbol, and which file imports
which. Never source text, bodies or digests (a hash of a short body can
be guessed back).
Every path follows the anchor path rules and passes the same admission as an anchor: a file the engine may not read for knowledge, or one it withholds, is not in the graph, nor are edges to it. The graph is sorted and bounded so the same checkout always gives the same document.
Structs§
- Code
Graph - The exported graph;
truncatedwhen the checkout exceeds the limits. - Published
- What a publish sent.
Functions§
- export
- The graph of
index, keeping only filesadmitlets through. Every path and symbol name passes the outboundscreen(connector rule: every outbound content item is screened); a path it refuses withholds the file, a name it refuses drops the symbol. - export_
checkout - The graph of the checkout at
root, through the same source admission as a fact’s anchors (a file that may not become knowledge is left out). - publish
- Publish the code graph of the checkout at
rootforrecord(PUT replaces the stored one). Cloud takes it only when the repo’s owner setcode_graphtofull.