Skip to content

[codex] Add thread-scoped DTM sessions#2

Open
philbudden wants to merge 1 commit into
mainfrom
codex/add-dtm-session-skill
Open

[codex] Add thread-scoped DTM sessions#2
philbudden wants to merge 1 commit into
mainfrom
codex/add-dtm-session-skill

Conversation

@philbudden

Copy link
Copy Markdown
Owner

What changed

Adds a versioned $dtm Codex skill and corresponding SecondBrain role-routing contract. Invoking $dtm initializes today's operational context and keeps subsequent turns in the same thread under the Digital TeamMate role until $end-dtm or an explicit permanent role switch.

The public installer now preserves the canonical skill inside the vault, while installation documentation explains how to copy it into the user's Codex skills directory for discovery.

Behaviour

  • Explicit invocation only; the skill cannot activate implicitly
  • Persistent thread-scoped DTM routing across subsequent turns
  • One-off Knowledge Agent work remains a bounded delegation
  • Raw-source, scratchpad, and publication boundaries remain unchanged
  • Session initialization is idempotent and records one Daily Note activity entry

Validation

  • Official skill validator passes
  • Sanitized publication export passes
  • Three framework regression tests pass
  • Clean-vault installation includes and validates the skill
  • Wiki and DTM lint pass with zero errors or warnings

@philbudden philbudden self-assigned this Jun 23, 2026
@philbudden philbudden marked this pull request as ready for review June 23, 2026 18:51
@philbudden philbudden requested a review from Copilot June 23, 2026 18:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Codex skill ($dtm) that starts a persistent, thread-scoped Digital TeamMate session and updates the framework contracts + packaging so the skill is shipped in installed vaults and included in publication exports.

Changes:

  • Introduces framework/skills/dtm with explicit-only invocation metadata and session lifecycle instructions ($dtm / $end-dtm).
  • Updates installer, publication manifest, and CI to include the new skills/ directory and assert it is installed.
  • Extends framework contracts (AGENTS.md, DTM.md) and adds a regression test verifying the skill is explicit + thread-scoped.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_framework.py Adds a packaging regression test asserting explicit invocation and thread scoping.
install.py Installs framework/skills into the target vault under skills/.
framework/skills/dtm/SKILL.md Defines the $dtm skill behavior and thread-scoped session lifecycle.
framework/skills/dtm/agents/openai.yaml Declares agent metadata and disables implicit invocation.
framework/publication-manifest.json Includes skills/ in the sanitized framework export allowlist.
framework/DTM.md Documents thread-scoped DTM session behavior and initialization requirements.
framework/AGENTS.md Adds role-routing contract for $dtm and $end-dtm.
docs/installation.md Documents how to make the $dtm skill discoverable by Codex.
.github/workflows/validate.yml Adds an assertion that the installed vault contains the skill.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/installation.md
Comment on lines +34 to +40
The vault installer keeps the canonical skill under `skills/dtm`. To make
`$dtm` discoverable by Codex, copy it into the user's Codex skills directory:

```sh
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
cp -R framework/skills/dtm "${CODEX_HOME:-$HOME/.codex}/skills/"
```
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