Wiki update log
2026-07-23
Updated the wiki for the DRS 5.0.0 release and the new 5.0 migration guide.
- Added migration.md to cover the 5.0 breaking changes described in
docs/MIGRATING_TO_5.mdandCHANGELOG.md: removed skill/sync commands, CLI-only package,github-pr-review-postas a model-free artifact consumer, split external-review trust boundary, defaultuseChangeRequestAuthor, JSON and artifact contract limits, and atomic release automation. - Updated quickstart.md to list the new
drs wiki build,drs wiki serve, anddrs wiki check-sitecommands, link to the migration concept, and note that the package is at version 5.0.0. - Recorded the changed
package.jsonanddocs/MIGRATING_TO_5.mdprovenance through the existing quickstart citation and the new migration concept.
2026-07-18
Generated the initial DRS repository wiki bundle under wiki/ and then reconciled it for the final OKF repository wiki feature delta after hardening.
Initial concept pages created:
quickstart.md— entry point and orientation.architecture.md— system architecture and layers.pi-runtime.md— in-process Pi runtime, agents, models, and skills.workflow-engine.md— workflow DSL, planning, compilation, and execution.review-workflows.md— review workflows, findings, fix verification, and posting.maintenance-workflows.md— changelog, fix, and agent-guidance workflows.configuration.md—.drs/drs.config.yaml, environment variables, and legacy migrations.integrations.md— GitHub, GitLab, and CI/CD integration.temporal-execution.md— Temporal durable execution backend.testing.md— tests, quality gate, and smoke coverage.
All concept pages include YAML frontmatter and Markdown relationship links to related concepts. DRS generated index.md deterministically after concept generation.
Hardening updates:
- Added repository-wiki.md documenting the
repository-wiki-syncandrepository-wiki-checkworkflows, deterministic aggregate and per-path delta fingerprints (src/lib/wiki-delta.ts), stable deletion/rename and clean-submodule handling, dirty-submodule rejection, literal path checks, symlink safety, ignored-output detection, the model-free CI check, OKF v0.1 bundle validation, index synchronization, and related tests. - Updated quickstart.md with repository wiki commands and a link to the new concept.
- Updated workflow-engine.md to list the OKF/wiki actions.
- Updated maintenance-workflows.md to include the repository wiki workflows and link to the detailed concept.
- Updated testing.md to cover
src/lib/okf-wiki.test.ts,src/lib/wiki-delta.test.ts, and the wiki workflow tests insrc/cli/workflow.test.ts. - Updated temporal-execution.md to note that
sync-okf-indexesandrecord-wiki-stateare no-retry side effects and thatrepository-wiki-syncremains local-executor-only. - Added the human-readable VitePress publishing layer, including OKF-derived navigation and metadata, local search, raw bundle and
llms.txtoutputs, pull-request build validation, and GitHub Pages deployment. - Dogfooded a 13-path deterministic delta to add the internal-link concept graph, reusable
drs wiki build,drs wiki serve, anddrs wiki check-sitecommands, and a post-deployment Pages smoke check. - Hardened the reusable renderer with OKF preflight validation, symbolic-link and concurrent-operation guards, generic start/log handling, canonical Pages metadata, structured graph smoke validation, and npm-package output exclusions.
2026-07-19
Updated integrations.md and repository-wiki.md to reflect changes in .github/workflows/pr-review.yml:
- Trusted contributor reviews now synchronize the repository wiki, stage only
wiki/and.drs/wiki-state.jsonchanges, and push them back to the PR branch with a guarded patch andforce-with-leaseagainst the reviewed head. - External contributor reviews require both the
safe-to-reviewlabel and approval of theexternal-pr-reviewenvironment. - Documented
git-commituseChangeRequestAuthorin workflow-engine.md, including public email fallback, platform no-reply synthesis,sourceoverride, and pre-staging validation. - Updated integrations.md with the
authorEmailfield onPullRequestand adapter email normalization. - Noted creator attribution in review fix flows and stacked agent-guidance workflows in review-workflows.md and maintenance-workflows.md.
- Confirmed trusted same-repository PR wiki synchronization details in repository-wiki.md and integrations.md, including
--executor localand theDRS_PROVIDER_API_KEY/OPENCODE_API_KEYfallback resolution. - Updated testing.md to cover the new platform adapter and
git-committests. - Updated integrations.md for the latest
pr-review.ymlworkflow structure: job-level split (verify-contributor,review-trusted,sync-wiki-trusted,commit-wiki-trusted,review-external,notify-external), different review flags for trusted vs external PRs, and the dual-gate external approval (safe-to-reviewlabel plusexternal-pr-reviewenvironment).
Follow-up delta: applied useChangeRequestAuthor: true to every git-commit node in the packaged fix and guidance workflows (github-pr-review, gitlab-mr-review, github-pr-fix-review-issues-stacked, gitlab-mr-fix-review-issues-stacked, github-pr-update-agents-md-stacked, gitlab-mr-update-agents-md-stacked). Added src/gitlab/client.test.ts to cover resolveGitLabCommitEmailDomain. Updated review-workflows.md to note the standalone stacked fix workflows.
Added model-free repository wiki retrieval through drs wiki search. Updated quickstart.md, repository-wiki.md, and testing.md for deterministic metadata/body ranking, safe OKF loading, repository-relative citations, snippets, result limits, and JSON output. Cited the search implementation paths (src/cli/wiki.ts, src/lib/wiki-search.ts, src/lib/okf-wiki.ts) in repository-wiki.md.
Updated architecture.md to include the wiki top-level command group alongside workflow, temporal, run-agent, and the project-setup commands, and described its search, build, serve, and check-site subcommands.
Hardened drs wiki search and its tests in src/lib/wiki-search.ts and src/lib/wiki-search.test.ts:
- Confirmed ranking weights metadata (title, tags, description, headings) above body text and boosts complete phrase matches and exact title hits.
- Verified that heading extraction ignores fenced code blocks (both
```and~~~), so shell comments and code examples are not treated as document structure. - Added rejection of empty/whitespace-only queries and non-positive-integer limits with clear error messages.
- Confirmed symlink rejection and unsafe-root validation are exercised by the search path through
loadOkfConcepts. - Updated repository-wiki.md to describe the ranking, snippet selection, and validation behavior in more detail.
Follow-up search hardening in src/lib/wiki-search.ts and src/lib/wiki-search.test.ts:
- Documented Unicode NFKC normalization and code-point-safe snippet excerpting in repository-wiki.md.
- Documented invalid backtick-fence handling (info strings containing embedded backticks) so headings inside them remain searchable.
- Updated testing.md to list the new Unicode snippet and invalid-fence test cases.
Replaced per-feature-PR repository wiki synchronization with a scheduled GitHub workflow that maintains one drs/wiki-update pull request from the latest default branch. Ordinary feature PRs now validate the OKF bundle through the site build without committing branch-specific wiki state; the bot PR retains the strict model-free freshness check. Updated repository-wiki.md, integrations.md, and maintenance-workflows.md with the scheduling, token isolation, and merge-consistency behavior.
Removed the obsolete bundled skill installation and synchronization commands from architecture.md. Project-authored skills and runtime skill discovery remain supported.
2026-07-20
Added generic workflow-agent filesystem permissions and applied them to repository wiki maintenance.
Added drs_sources provenance citations to the repository wiki concept, workflow engine concept, and testing concept so future delta updates can map source changes to affected concepts through the recorded sourceConcepts state. Cited the changed wiki workflows, site adapter/theme, delta planner, OKF validation, search, publishing safety, and their tests. No substantive content changes were required; the existing descriptions already matched the current source behavior, and only source citations were added.
Core changes:
- Workflow nodes can now declare
permissionsandvalidationfields.permissionssupportsread,write, anddeleterules with literal repository-relativeroots, root-relativeallow/denyglob patterns, and mandatoryshell: false.validation.afterMutationcurrently supports theokf-documentvalidator, which checks proposed OKF documents before writes and returns full bundle validation feedback after mutations.src/lib/config.tsandsrc/lib/workflow/planning.tsvalidate these fields and reject forbidden combinations such aspermissionswithwrites,agentsFromwrite/delete permissions, or validators without write/delete access. src/lib/agent-permissions.tsimplements the filesystem authorizer, workspace snapshot capture, and post-run mutation guard. It rejects traversal, symbolic links, and multiply-linked write targets; fingerprints tracked and non-ignored untracked files before and after the run; and reports residual changes outside the allowed policy.src/pi/sdk.tsinstalls policy-aware versions of Pi'sread,write,edit, anddelete_filetools, applies the authorizer to DRS custom tools, removes unrestrictedbash/drs_checkfrom scoped sessions, and disables Pi resource-loader extensions when permissions are active.src/cli/run-agent.tscaptures a workspace snapshot before a restricted agent runs and asserts that only allowed paths changed afterwards.src/cli/workflow.tsandsrc/temporal/workflows.tsserialize nodes that are potential workspace mutations (isPotentialWorkspaceMutation) so concurrent filesystem edits cannot collide.src/temporal/retry-policy.tsclassifies agent nodes withwrite/deletepermissions as no-retry, alongside fixedwritespaths.- The
repository-wiki-syncworkflow (src/pi/workflows/repository-wiki-sync.yaml) now applies scoped permissions andokf-documentvalidation to thetask/okf-wiki-maintaineragent. The agent frontmatter (src/pi/agents/task/okf-wiki-maintainer.md) disables shell, enablesdelete_file, and keepsgit_difffor source evidence. src/lib/okf-wiki.tsgainedvalidateOkfDocumentfor pre-mutation checks, atomic index writes via temporary-file rename, removal of stale empty-directory indexes, and directed concept-graph metrics (node count, directed edges, orphans, weakly connected concepts) returned fromvalidateOkfBundle..wiki-site/.vitepress/config.mtsnow linksgraph.htmlwith the absolute site URL and strips a leading BOM when parsing frontmatter.src/lib/skills.tsand the bundled skill installation/sync commands (drs skills,drs sync) were removed; project-authored skill directories under.drs/skills,.agents/skills, and.pi/skillsare still discovered by the runtime if present.- Added
markdown-itandminimatchdependencies.
Updated concepts:
- workflow-engine.md — added agent permission example, node-field restrictions, and workspace-mutation serialization.
- pi-runtime.md — described policy-aware tool enforcement,
noExtensions, custom-tool authorization, and validator feedback. - temporal-execution.md — noted wave serialization for workspace mutations and permission-based no-retry classification.
- repository-wiki.md — documented atomic index writes, empty-index cleanup, and the maintainer's permission boundary.
- maintenance-workflows.md — noted the scoped permissions and in-run validation on
repository-wiki-sync. - testing.md — listed the new planning, permission, and wiki-site integration tests.
2026-07-21
Added deterministic repository wiki run summaries. repository-wiki-sync now preserves final validation fields and adds structural, provenance, model usage, estimated cost, elapsed-time, and effective-instructions-hash metrics. Normal CLI output and JSON expose the summary, and no-op runs explicitly report that no model was invoked. The scheduled update workflow writes escaped Markdown to the GitHub job summary and updates the reusable wiki pull request body without posting recurring comments or passing full workflow JSON into the token-bearing job.
2026-07-22
Updated the wiki for the split external-review security model, review action permissions, complete-diff validation, artifact hardening, and release automation tests.
- workflow-engine.md — noted that
action: reviewnodes may declare read-onlypermissions(no write/delete,shell: false), that GitHubchange-sourcesupportsrequireCompleteDiff, and that the template context carriesstartedAt,usage, andworkspaceChanges. - review-workflows.md — described review action permission constraints, canonical review artifact posting through
expectedHeadSha, and head re-checks before each mutating post step. - integrations.md — documented the
github-pr-review-postworkflow, the splitpr-review.ymljobs (verify-contributor,review-trusted,review-external,post-external-review,notify-external), and the wiki update workflow'ssummaryMarkdownpull-request body. - pi-runtime.md — noted repository-root reads under the working directory and structured added/modified/deleted change reporting from the post-run workspace guard.
- repository-wiki.md and maintenance-workflows.md — updated
repository-wiki-syncoutput towikiResult(validation +summary+summaryMarkdown). - testing.md — added
src/lib/pr-review-workflow-security.test.ts,src/lib/review-artifact-validation.test.ts, andsrc/lib/release-automation.test.ts. - temporal-execution.md — added
summarize-wiki-runto the retryable wiki actions. - quickstart.md — noted the structural, usage, cost, and elapsed-time summary for
repository-wiki-sync. - Added or updated
drs_sourcescitations in quickstart.md, workflow-engine.md, review-workflows.md, integrations.md, pi-runtime.md, maintenance-workflows.md, temporal-execution.md, configuration.md, and testing.md.