Skip to content

Add document-library plugin - #94

Open
vochic03 wants to merge 10 commits into
MiniMax-AI:mainfrom
vochic03:add-document-library
Open

vochic03 wants to merge 10 commits into
MiniMax-AI:mainfrom
vochic03:add-document-library

Conversation

@vochic03

@vochic03 vochic03 commented Nov 29, 2026 •

Copy link
Copy Markdown

What changes

A Plugin that builds a document library: a folder of documents indexed into the terms they
share, the concepts those terms make, the cross-document links, and a browsable database -
with an inventory whose identities must hold, gates that stop the build, and a README that
says what the library does not know.

The pipeline is vendored from the tool repository vochic03/book2corpus at commit
57c028ef30ca99306976b537738a6193cc85bdda, with the hash of every file in
pipeline/file-manifest.json and the provenance in PROVENANCE.md. The audits of one corpus
are not carried; the mechanism is, and the values of a corpus stay with that corpus.

User value

A pile of documents is not an index. Indexing one by hand loses rows, and the loss is
silent: the index still builds, it is just smaller than it should be, and every number taken
from it is quietly wrong. This plugin indexes a folder of documents with checks that fail the
build when a row is lost, and it is honest about what it does not know.

Example prompt:

Build a document library from this folder of notes and tell me what it holds.

Expected result: the agent finds the folder, scaffolds the library, runs the stages that ask
no model, and reports the inventory: the documents, the book entries, the distinct names, the
forms, the concepts, the identities and their states, the gates, the cost, and the things the
library may not say. A stage that has not run says so and does not fail the build.

Plugin submission checklist

  • Plugin lives at plugins/vochic03/document-library.
  • plugin.json name matches the Plugin directory.
  • README.md includes a real example prompt and expected result.
  • LICENSE and plugin.json declare an open-source license (Apache-2.0).
  • Required executables, accounts, paid services, and supported platforms are disclosed.
  • Network destinations and data handled by the plugin are disclosed.
  • No credentials, private endpoints, hidden telemetry, installers, symlinks, or native binaries are included.
  • Every scaffold TODO has been replaced.
  • npm run check passes for this Plugin (npm run validate is clean; the one failing
    repository test belongs to another contributor and needs PowerShell, which this machine
    does not have: plugins/antianqi/mcode-island/scripts/test-substep-progress.mjs).

Evidence

OK   plugin vochic03/document-library
Validated 32 hosted Plugins and all examples.

Manual tests, on the package as contributed:

the carried tests pass in the package: 346 tests
the example builds from the installed package alone, in a clean workspace, with no corpus
and no token: three coffee notes and one scanned-style document, every gate passing
the example judged: 7 forms, 7 calls, $0.0492, and every gate passing
the gate stops when the README drifts, and names the drift
a lost document stops the build, on the identity of the books
the money cap stops a run before the first call: with the cap at zero the judge refuses
with REFUSED and the estimate, and nothing is spent
a stage with no cap is refused, and a build with no settings of its own stops
the vendored copy is the copy the manifest names (pipeline/tools/verify_vendored.py)

The Plugin was recognised by MiniMax Code Desktop as a local Plugin, enabled, with no scan
diagnostics.

The vendored core was refreshed on 29 November 2026 to the commit above, and it now carries the
completion pass that reads the rows the manifest carries, the third counted state of a document the
judge does not name, and the run record that publishes the money of the answers the library carries
beside the earlier answers of the same judge.

Two declarations do not carry over to a reader that uses the portable plugin.json at the
root of the package: the subagent (agents/library-builder.md) and the icons, the category and
the example queries, which are declarations of the MiniMax manifest only.

… of the answers a library carries

The vendored core is now at 57c028e of the tool repository, and it carries three changes that the corpus
needed and that a library needs as much:

* the completion pass reads the rows the manifest carries, one for each form, so it cannot miss a
  document the answer left out, and the guard that stops a form from being asked a third time counts
  only the retries of this judge;
* a document the judge does not name even after the form was asked again is counted as a third state,
  unanswered, and the identity reads the books grouped, the books unplaced and the books unanswered
  against the books of every form;
* the run record publishes the money of the answers the library carries and publishes the earlier
  answers of the same judge beside it as history, so the money of two rules is never added together.

The settings template carries the hash of the prompt as it is now, and the switch that turns the first
shape of the completion pass on is in the settings as well.

The proofs: the vendored suite is 346 tests and passes, the vendored copy is the copy the manifest
names, the example library builds with no model and no key and the judge answers its seven forms for
$0.0492, and the community validator says OK.
The vendored core is the tool at bdb16c4fd52859437bf7ae1bd7cc9c40f1faec45 now.
It carries the route, the models that door may carry, and the refusal of a
model the door does not carry before the first call.

The manifest is written by a tool now, so the next refresh is one command and
the copy is checked against it.
…singular, and the read of the links has an instrument
…e shows the name, and the job is stepped through the door
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants