Installation identity and safe updates
| English | 简体中文 |
The current repository and Skill name are research-toolkit. GitHub redirects the former repository URL to the same project; the current page is Research Toolkit.
An installation pinned to an older commit keeps that commit’s content and Skill name. To use the renamed version, update to the chosen new commit, place it in a research-toolkit Skill directory, and check the files with the command below. Keep only the intended version enabled for a task. Recorded experiments retain their original names and hashes.
Use one repository and one normative SKILL. A release, an installed copy, a locally edited variant and the version used by an experiment can legitimately differ; identify each separately.
Install a version-pinned Skill
Prefer the compact package from a tagged release. Download that release’s research-toolkit-plugin-v<VERSION>.zip and SHA256SUMS. It includes the complete Skill, references and runtime helpers. Use the root research-toolkit/SKILL.md for standalone use or the complete unpacked directory for plugin installation.
In the folder containing both downloads, replace CHOSEN_VERSION with the version you downloaded, then verify the checksum and unpack into a new staging directory.
shasum -a 256 -c SHA256SUMS &&
unzip research-toolkit-plugin-vCHOSEN_VERSION.zip -d toolkit-release
$archive = 'research-toolkit-plugin-vCHOSEN_VERSION.zip'
$record = Get-Content -LiteralPath SHA256SUMS |
Where-Object { ($_ -split '\s+', 2)[1] -eq $archive }
if (-not $record -or (Get-FileHash -LiteralPath $archive).Hash -ne ($record -split '\s+', 2)[0]) {
throw 'Research Toolkit package checksum did not match.'
}
Expand-Archive -LiteralPath $archive -DestinationPath toolkit-release
Create a research-toolkit directory in the Skill root listed for your agent tool. From toolkit-release/research-toolkit, copy SKILL.md, SKILL.zh-CN.md, VERSION, LICENSE, requirements-mcp.txt, and the docs/, references/ and scripts/ directories into it. The expected layout is <skill-root>/research-toolkit/SKILL.md. For an existing installation, compare and back it up using the update steps first. A tagged package contains the files published for that version. For a fix available only on main, use its public commit instead.
To obtain the same packaged files at a specific public commit before a new Release, use a sparse shallow checkout in a staging directory. Replace FULL_COMMIT_SHA with the intended commit.
git clone --depth 1 --filter=blob:none --no-checkout -c core.longpaths=true https://github.com/rrrrrredy/research-toolkit.git toolkit-source
git -C toolkit-source sparse-checkout set --no-cone "/plugins/research-toolkit/"
git -C toolkit-source fetch --depth 1 origin FULL_COMMIT_SHA
git -C toolkit-source checkout --detach FETCH_HEAD
Copy the same Skill files and directories from toolkit-source/plugins/research-toolkit. Use the installation comparison from a trusted clone containing the reference commit when comparing an existing installation against that revision.
Verify content, not just a label
From a trusted clone containing the intended release commit:
python scripts/check_installation.py /path/to/installed/research-toolkit --reference <full-commit-sha>
The command is read-only. It compares SKILL.md, all reference Markdown, the delivery and review-completion checkers, and their record guides against actual Git object contents, normalizing only text newlines. It does not trust an installed Git HEAD, README version or INSTALLATION.json as proof of content identity. It does not fetch, install, write a manifest or overwrite files.
The delivery checker imports scripts/check_review_completion.py; keep both scripts when copying a partial installation. The record guides are docs/review-completion.md and docs/delivery-verification.md. Historical references are compared with the files actually present in those commits.
Exit 0 means the selected payload matches; 1 means a modified/missing/unreadable file; 2 means the reference could not be read. A difference is not itself a diagnosis that the variant is broken. Read the differing files before choosing what to retain. The command intentionally does not inspect other local files or prove which copy the runtime actually loaded.
Record the resolved full commit in experiments. If a local variant is intentional, record its own content hashes and label; do not call it the untouched release. A compact local Skill cannot establish that the full public Skill caused a failure, or vice versa. Fresh model runs must record the actual loaded files.
Update without losing local work
- Choose the release and resolve its full commit; verify its published status separately.
- Compare the installed payload with that commit and back up the exact current installation before changing it.
- Keep local modifications unless explicitly choosing to replace them. For a modified Git checkout, do not force-reset or overwrite the whole directory. Compare with a separate clean export and apply only the agreed files.
- Re-run the comparison and the relevant checks. Restart/reload the agent as required by its own documented Skill discovery behavior, then verify the selected Skill was actually loaded.
- Keep the old variant and its experiment results distinct. Updating an installation does not retroactively change which version a prior report used.
Installing only this checker does not make an old or compact Skill equal to the full release. Conversely, an unchanged protocol with an updated checker is a mixed installation until it is deliberately versioned and verified. Local manifests may document this, but their claims should be checked against content.
Distribution scope
Keep bilingual entry documents in this repository, SKILL.md as the agent entry point into one shared research standard, and environment-specific setup notes under agents/. The entry point retains essential constraints and reading triggers; references/research-standard.md preserves the detailed rules. Package the references together with the entry point. Integrations may package the same Skill as a plugin, extension, or other supported bundle when that environment needs one. Packaging is optional and must not create a competing research protocol. This policy is platform-neutral; no one agent product determines the framework’s distribution format.
Do not create a second maintained Skill repository merely for another language or installer. Reuse the versioned source and record the packaged commit. Keep installation and capability claims separate from demonstrated runtime conformance and research quality.
Maintain the online copy and user entry points
The Skill entry-point block in docs/framework.html is a copy of SKILL.md. CI checks exact text agreement after newline normalization. Run python scripts/check_docs_sync.py --write to refresh that block after an approved normative change, then run python scripts/check_docs_sync.py to verify it.
README entry points should explain what Toolkit users can do: read online, load the Skill, or follow the setup notes for their environment. Keep repository-splitting decisions, copy synchronization, CI commands, and packaging policy in maintenance documentation. Update the corresponding English and Chinese passages together; their section numbers do not have to match.
中文维护要点:中英文入口共用一套研究规范,各环境按需提供接入和打包方式,不单独围绕某个 Agent 定义产品。网页 Skill 入口由 SKILL.md 同步生成,完整方法保留在参考文件中;修改规范后刷新并校验。README 解释工具箱用户如何阅读和使用,仓库拆分、同步检查与打包决策留在维护文档。评测资料的用途限制见数据审计,语义审查的开发材料见诊断正负例。
中文:本机版本、公开发布版和实验所用版本必须分开记账。先比较真实内容,再决定更新;不要根据旧Git提交号或自写版本标签误判,也不要为了“同步”覆盖本机修改。这个工具只核对选定运行文件,不证明报告质量或运行时真实加载。
Package version and release
The compatibility policy defines supported interfaces, historical record inspection and continuation under the current completion contract. The commands above illustrate the historical v1.0.0 release; replace its tag and note path with the version being released.
The root VERSION is the single current package-version source. Both plugin manifests are generated mirrors. Changelog entries and release notes describe that version; older version references describe history and must not be mass-replaced.
For a new version, update VERSION, add matching entries to both changelogs and docs/releases/v<version>.md / .zh-CN.md, then run:
python scripts/check_version.py --write
python scripts/build_plugin.py
python scripts/check_version.py --self-test
python scripts/build_plugin.py --check
The check does not create a tag or publish a release. After the intended changes have merged and checks pass, run from the updated repository root:
gh release create v1.0.0 --repo rrrrrredy/research-toolkit --target main --title "Research Toolkit v1.0.0" --notes-file docs/releases/v1.0.0.md --latest
This explicitly selects the repository and target and creates a normal release (no --prerelease). If the tag already exists, verify its commit before publishing. Do not use a tag to relabel historical study versions. GitHub CLI release options.