{"id":"compute.graph--portableGraphDecision","name":"portableGraphDecision","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing portableGraphDecision","description":"A portable graph decision record carrying admitted, code, message.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"admitted","kind":"field","type":"bool","description":"Stores admitted as bool.","signature":"bool admitted","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"code","kind":"field","type":"text","description":"Stores code as text.","signature":"text code","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"message","kind":"field","type":"text","description":"Stores message as text.","signature":"text message","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"portableGraphDecision","kind":"constructor","parameters":[{"name":"admitted","type":"bool","description":"Admitted."},{"name":"code","type":"text","description":"Code."},{"name":"message","type":"text","description":"Message."}],"returns":"void","signature":"portableGraphDecision(bool admitted, text code, text message)","description":"Portable graph decision.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.graph"],"exampleId":"method-Describe-4","updated":"2026-09-09"}],"tags":["compute","compute.graph","cpu","graph","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/portable_contract.yh","line":20,"sha256":"7d368be12911192817194c8170d8f193f9b1b7d33e85834c9f44df101d82cf76"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use portableGraphDecision","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.graph\n\n// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.\nportableGraphDecision sample = portableGraphDecision(true, \"code\", \"message\")\nConsole.Log(Text.From(sample.admitted))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphdecision\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"a1eba78390feb692ab13edd3bbaf6b4ed11e0ea9ccba4041a87502f3f4650d9b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-4","title":"portableGraphDecision.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Describe.\nportableGraphDecision instance = portableGraphDecision(true, \"code\", \"message\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphdecision\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"01bde61b72adb76c15824e3747ae823666390e0d2bc29b5dee04a736e164674c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["admitted","code","message","portableGraphDecision","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--portableGraphDecision","json":"https://demonhunterlabs.com/reference/items/compute.graph--portableGraphDecision.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--portableGraphDecision.md"}
