Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nilscript-org/NILScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: nilscript-org/NILScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/intent-router
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 9 files changed
  • 2 contributors

Commits on Jun 26, 2026

  1. feat(intent): universal IntentRouter — one nil_intent surface across …

    …all domains
    
    The model emits ONE Intent for EVERYTHING; an IntentRouter delegates `about` to the
    provider that OWNS it (a structural ownership check on the entity type, never keyword
    matching). New domains are added by registering a provider, not by branching.
    
    - dataplane/router.py: IntentProvider protocol + IntentRouter (first owning provider wins).
    - relay providers: _GraphIntentProvider (cycle/policy/role/instance/overview/activity →
      Business Graph/brain) + _AdapterIntentProvider (business entities → adapter, fallback).
    - NilTools gains an optional brain; build_tools/build_server wire BrainTools once, shared
      by nil_intent's router and the legacy graph tools.
    
    So nil_intent now reads business data AND the graph through one payload. Collapses the
    agent surface toward a single tool. 441 tests pass.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    AI Bot and claude committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    695eb78 View commit details
    Browse the repository at this point in the history
  2. feat(intent): graph writes, automation domain, summary, batch, single…

    …-surface
    
    Completes the universal intent unification (SaaS-grade):
    - graph WRITES: change on a graph entity → BrainTools.assert_fact (POST /api/assert);
      the brain interprets via the ontology and executes through the governed path.
    - AutomationProvider: about="automation" → registry (reads=list, create=register);
      wired via build_tools/build_server (AutomationTools shared).
    - summary: Intent.by + seek="summary" → ReadPlane.aggregate (server-side rollup).
    - batch: NilTools.intent_batch runs many intents with partial-allow (one refusal never
      drops the rest).
    - single-surface: NIL_MCP_SINGLE_SURFACE hides the subsumed read/graph/automation tools
      so nil_intent is the ONLY model-facing tool (+ describe/commit/status/rollback).
    
    So nil_intent is now the one payload across business + graph + automation, reads + writes,
    single + batch. 448 tests pass.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    AI Bot and claude committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    1e4c261 View commit details
    Browse the repository at this point in the history
Loading