Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

dakc

Latest version: v0.6.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: thejasrao262003
0 Stars
0 Forks
6 Versions
385 Downloads
Python Repo language

Scan summary

dakc was last scanned on 23 Nov 2026 at version 0.6.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 0.6.1.
  • Downloads: 385 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.1 LATEST 23 Nov 2026 No rules fired
0.6.0 23 Nov 2026 No rules fired
0.5.0 22 Nov 2026 No rules fired
0.4.0 22 Nov 2026 Not shown
0.3.0 22 Nov 2026 Not shown

No rules fired in 0.6.1

Findings

Findings for v0.6.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

DAKC: Dependency-Aware Knowledge Compiler

Knowledge bases shouldn't need to be rebuilt every time a document changes. DAKC brings incremental compilation, dependency tracking and full-rebuild verification to AI-generated knowledge. It tracks claim-level dependencies, selectively rebuilds invalidated artifacts, and checks incremental results against an independent full rebuild.

Given a directory of documents, it builds and maintains an LLM-generated knowledge base: claims, entity pages, topic summaries and an index. When the sources change, it recomputes only what has become invalid and can prove that the result equals a full rebuild. The same problem appears wherever LLM-derived knowledge must track evolving inputs: documentation generated from codebases, research knowledge bases built from papers, policy and compliance repositories, and long-lived agent memory.

It does this with a build-system model applied to knowledge:

  • Every derived artifact records the exact inputs it was built from.
  • Sources are hashed per paragraph.
  • Claims are content-addressed.
  • Rebuilds stop as soon as a recomputed artifact comes out unchanged (early cutoff).
source ─▶ passage ─▶ claim ─▶ entity / relationship ─▶ page ─▶ topic summary ─▶ index
 (file)   (paragraph)  (fact)      (who / what)        (wiki)     (overview)

Edit one sentence in a 5,000-document corpus (deterministic benchmark) and DAKC re-extracts one paragraph and regenerates only the pages whose claims changed. Pages whose claims are unchanged but whose citations moved are re-rendered without an LLM call. Everything else keeps its exact bytes. dakc compile --dry-run tells you all of this before anything is spent.

On real docs: across the last 50 commits to FastAPI's documentation, DAKC used about 148,000 input tokens (317 LLM calls) where re-processing each changed file used about 35 million (284,354 calls), and its result equalled a full rebuild at every commit. Most of that gap comes from a large release-notes file edited in almost every commit; see examples/fastapi-docs for the breakdown, the per-commit costs and the limitations.

Status: research prototype / MVP, CLI-first, local-first. Python 3.12+, SQLite, no GPU, no network required (deterministic providers are the default). See what is not done.

Who uses it, and how: docs/using-dakc-by-role.md covers docs maintainers, developers, CI owners, solution architects, reviewers and AI agents.

Why this exists

The research phase audited twelve open-source LLM-wiki and graph-RAG projects at the code level (competitive analysis, gap report). In those twelve, we did not find one that does all of the following. That is a statement about what we audited, not proof that no such system exists.

  • tracks dependencies below the file level, or between derived artifacts (page → summary → index);
  • stops propagation when a recomputed artifact is unchanged;
  • tests incremental output against a full rebuild;
  • keeps claim identity stable when an LLM rewords unchanged text.

The usual pattern is "a file changed, re-ingest it, and let the LLM merge the result into existing pages". That pattern is costly, and it keeps facts the source no longer states (for example llm_wiki issue #837; see the analysis for code citations). The techniques DAKC uses are not new: verifying traces and early cutoff come from build systems (Shake, Bazel, Salsa), support counting from incremental view maintenance, and content addressing from Git. The contribution is applying them correctly at claim granularity, with a test oracle.

Quick start

pip install dakc                 # Python 3.12+; add [mcp] for the MCP server, [api] for the REST API
dakc ingest ./my-documents       # discover, hash, extract, compile -> ./wiki

To run the examples, tests and benchmarks, work from a clone:

git clone https://github.com/thejasrao262003/dependency-aware-knowledge-compilation.git
cd dependency-aware-knowledge-compilation
uv sync --locked --extra dev && source .venv/bin/activate   # or: pip install -e '.[dev]'

mkdir demo && cp -r examples/sample-knowledge-base demo/knowledge && cd demo
dakc ingest ./knowledge

ingest creates dakc.toml, the store in .dakc/dakc.db, and Markdown output in wiki/ (pages/, summaries/, index.md). Your source files are never modified.

Walkthrough: the Definition of Done

dakc graph                                   # artifact and edge counts by layer
dakc graph --source databases/postgresql.md  # everything downstream of one source

# edit one claim in a source document...
perl -pi -e 's/supports JSONB/stores JSONB in a binary format/' knowledge/databases/postgresql.md

dakc check                       # new / modified / deleted / renamed / unchanged (content hashes)
dakc explain page:jsonb          # STALE, with the reason and the upstream sources
dakc compile --dry-run           # exactly which artifacts will be affected; writes nothing
dakc compile                     # incremental; only the plan above is executed
dakc diff 1                      # what changed between build 1 and HEAD
dakc verify --against-full       # invariants + identical to a from-scratch rebuild?
dakc rollback                    # restore the previous build (store + wiki files)

The dry run in this walkthrough prints the following (real output, unedited):

Compilation Plan
----------------
Strategy: dakc

New Sources:        0
Modified Sources:   1
Deleted Sources:    0
Renamed Sources:    0
Unchanged Sources:  6

Passages to (re-)extract:   1   (extraction cache hits: 0)
Affected Claims:            5   (new 1, retracted 1, changed 0, provenance-only 3, reproduced unchanged 0)
Affected Entities:          2
Affected Knowledge Pages:   2   (regenerate 2, re-render citations only 0, delete 0, checked & unchanged 3)
Unaffected Knowledge Pages: 20
Summaries:                  regenerate 0, re-render 0, delete 0, checked & unchanged 1
Index:                      unchanged

Planned Operations:
- Re-extract 1 passage(s)
- Reconcile 2 entities
- Regenerate 2 page(s), re-render 0
- Regenerate 0 summaries, re-render 0

Estimated LLM Calls: 0 (exact)

No files modified.

This is the PRD's example. The edited paragraph also states "PostgreSQL supports Transactions" and "PostgreSQL supports Indexing". Re-extraction reproduces those claims with the same ids, so the Transactions, Indexing and Ledger pages are checked and unchanged. Only the JSONB and PostgreSQL pages are regenerated.

With the default heuristic provider, LLM calls are 0 and the plan is exact. With an LLM provider, the plan counts the extraction calls it would make, exactly, and does not make them. It estimates the facts in new text with the free heuristic extractor, so its page and summary counts are labelled an estimate.

Commands

Command What it does
dakc init [--source DIR] [--provider P] Create dakc.toml
dakc ingest DIR Register a corpus and compile it
dakc check [DIR] Classify sources by content hash, including renames and duplicates
dakc compile [--incremental \| --full] [--dry-run] [--json] Compile; --full is the correctness baseline
dakc compile --strategy file The file-level baseline used in the benchmark
dakc graph [--source X] [--format text\|json\|dot\|reactflow] Inspect or export the dependency graph
dakc explain ID Dependencies, dependents, upstream sources, signatures, history, VALID/STALE
dakc trace PAGE Each displayed sentence → cited claims → passage → source version → exact evidence sentence
dakc duplicates Advisory list of claims that are likely the same fact in other words (nothing is merged)
dakc conflicts [ID] [--all] [--check] Statements in different documents that cannot both be true, with the file and line of each (below)
dakc status HEAD, counts, and what is stale against the current sources
dakc builds / dakc diff A [B] Audit log; artifact-level diff between builds
dakc rollback [--to N] Restore an earlier committed build (later builds' artifact versions are discarded; their records stay in builds)
dakc verify [--against-full] Invariant and provenance checks, citation coverage, equality with a full rebuild
dakc serve Local web UI and read-only REST API (/status /check /plan /graph /artifacts /artifacts/{id}[/content\|/trace\|/downstream] /builds /diff /duplicates /conflicts)
dakc mcp [--read-only] MCP server for AI agents (below)
dakc watch Recompile incrementally on file changes
dakc review --base REF Knowledge diff against a git ref: facts added and retracted, pages affected, LLM calls and cost; never calls a model
dakc sources Configured sources: type, path prefix, location, documents at HEAD (below)
dakc publish [NAME] [--dry-run] [--reset] Bring publishers up to date with HEAD; retries what a failed publish left pending

IDs can be given in friendly form: page:database-architecture, entity_postgresql, source:databases/redis.md, a source path, or a page title. Commands that write (ingest, compile, rollback) take the workspace build lock; pass --wait SECONDS to queue behind a running build instead of failing. Most commands accept --json.

Python API

Everything the CLI does is available as a library; the CLI, the REST API and the MCP server are thin layers over it.

import dakc

with dakc.open("demo") as kb:                 # a directory holding dakc.toml
    plan = kb.plan()                          # what a compile would do; nothing written or spent
    if plan.has_work():
        report = kb.compile()                 # incremental; atomic; wiki files updated
        print(report.status, report.llm_calls())

    page = kb.read("PostgreSQL")              # rendered Markdown, version, metadata
    for s in kb.trace("page:postgresql").sentences:
        print(s.sentence, "->", s.cites)      # each sentence and the claims it cites

    kb.explain("page:jsonb").status           # VALID / STALE, with reasons
    kb.downstream("databases/postgresql.md")  # what an edit to this file would invalidate

Module functions: dakc.open(path), dakc.init(path, source_dir=...), dakc.ingest(directory, workspace). KnowledgeBase methods: status, check, plan, compile, artifacts, read, explain, trace, downstream, graph_stats, export_graph, builds, diff, duplicates, verify, rollback, sources, publish. Every result is a dataclass with to_dict().

Errors derive from dakc.DakcError: WorkspaceNotFound, ArtifactNotFound, InvalidArgument, BuildLocked, CompileFailed (with .preserved: HEAD still points at the previous build), CostNotAllowed, RollbackError, SourceError and PublishError. compile and rollback hold the workspace build lock. Read methods never take it and see a consistent snapshot while a build runs. A KnowledgeBase holds one SQLite connection, so use one per thread. Details are in docs/python-api.md.

MCP server for AI agents

dakc mcp exposes a workspace to agents over the Model Context Protocol. It needs the mcp extra: pip install 'dakc[mcp]'.

claude mcp add dakc -- dakc mcp --workspace /absolute/path/to/demo   # Claude Code
claude mcp add dakc -- uvx --from 'dakc[mcp]' dakc mcp --workspace /absolute/path/to/demo   # nothing preinstalled

Other clients take the usual JSON configuration:

{ "mcpServers": { "dakc": { "command": "dakc", "args": ["mcp", "--workspace", "/absolute/path/to/demo"] } } }
Tools Kind
status, check_sources, list_artifacts, read_artifact, explain, trace, downstream, graph_stats, builds, diff_builds, duplicates, verify read-only
compile previews by default; builds only with apply=true
rollback needs an explicit build id; marked destructive

Safety rules:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases dakc

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229