Skip to content

update default context - #223

Merged
deathbyknowledge merged 8 commits into
mainfrom
default-context
Jul 27, 2026
Merged

update default context#223
deathbyknowledge merged 8 commits into
mainfrom
default-context

Conversation

@deathbyknowledge

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3530ff944e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

"\n" +
"Keep standing memory small. If an active commitment or unresolved task must remain visible, create `~/context.d/20-open-loops.md` and remove it once resolved.\n" +
"\n" +
"Read `skills show memory` for memory workflows.\n";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Seed newly required skills during upgrades

On an existing deployment upgraded without rerunning sys.bootstrap, ensurePersonalAgent replaces the old self-contained memory instructions with this redirect, but memory and process-orchestration are copied into a user's skills.d only by seedRepoSkillsToHome during setup/bootstrap. Consequently, skills show memory and the new system-level skills show process-orchestration instruction fail for upgraded users, leaving them without the workflows that were removed from standing context. Seed these new skills as part of the upgrade/reconciliation path, or retain the inline guidance until the referenced skill is present.

AGENTS.md reference: AGENTS.md:L46-L46

Useful? React with 👍 / 👎.

@deathbyknowledge

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1abd1841fb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread gateway/src/kernel/ai.ts
const config = ctx.config;
const uid = ctx.identity?.process.uid ?? 0;
const owner = resolveOwnerIdentity(ctx);
const builtinSkillsReady = ensureBuiltinSkillsForPrompt(ctx, owner);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Make prompt-time skill seeding concurrency-safe

When another process creates a skill at a newly bundled path after reconciliation reads it as missing but before ripgit.apply, this new prompt-time call can overwrite that user-authored file: the helper emits an unconditional put, and RipgitClient.apply is invoked without expectedHead, so it applies against the latest head rather than the state that was inspected. Use an atomic create-if-absent operation or bind the apply to the observed head and retry after rereading.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

Comment thread gateway/src/kernel/sys/skills-seed.ts Outdated
Comment on lines +37 to +38
const reconciledPaths = parseBuiltinSkillManifest(manifestResult);
const pendingSkills = BUILTIN_SKILL_FILES.filter((skill) => !reconciledPaths.has(skill.path));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve deletions made before manifest rollout

On every home created by the previous release, the manifest is absent, so reconciledPaths starts empty and all bundled paths become pending. If a user previously deleted one of the already-offered built-ins such as browser-target, gsv-manual, or skill-authoring, the first prompt after upgrading recreates it; the manifest only protects deletions made after this rollout. Initialize legacy homes with the prior catalog marked as reconciled while leaving only genuinely new paths eligible.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

"\n" +
"Keep standing memory small. If an active commitment or unresolved task must remain visible, create `~/context.d/20-open-loops.md` and remove it once resolved.\n" +
"\n" +
"Read `skills show memory` for memory workflows.\n";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Resolve layered skill names before recommending them

For a process running as a distinct agent whose home already contains an agent-specific skill named memory, the newly seeded owner-side built-in produces both user:memory and agent:memory. resolveSkillDocument deliberately rejects the unqualified name when multiple documents share it, so this standing instruction makes skills show memory fail as ambiguous in a supported layered-skill configuration. Refer to the qualified ID from the rendered skill index or change resolution to select the intended layer.

Useful? React with 👍 / 👎.

@deathbyknowledge

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96e28c72b5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +14 to +15
DELETE FROM config_kv
WHERE key = 'config/ai/context.d/10-runtime.md'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve colliding context overrides during migration

When an installation already has an explicit config/ai/context.d/00-runtime.md entry, the preceding INSERT OR IGNORE skips the rename and this unconditional delete permanently discards the distinct 10-runtime.md override; the repeated 00-gsv.md/01-gsv.md pair has the same problem. Because context.d accepts arbitrary operator-managed filenames, preserve both values under a non-colliding key or otherwise migrate them without silently deleting prompt configuration.

AGENTS.md reference: AGENTS.md:L102-L102

Useful? React with 👍 / 👎.

Comment thread gateway/src/kernel/ai.ts
processOverrides,
);
const timezone = config.get("config/server/timezone") ?? "UTC";
await builtinSkillsReady;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Move skill reconciliation off every run's critical path

For every RIPGIT-backed model run, resolveAiConfig() now blocks here on seven remote readPath calls even after all built-ins have already been seeded; with indexing enabled, collectPromptSkillIndex() then rereads the same tree and skill files, and the reconciliation still runs when indexing is off. This adds avoidable storage latency to every generation rather than only upgrades or missing-skill cases, so cache/reconcile at provisioning or combine it with the index traversal.

AGENTS.md reference: AGENTS.md:L47-L48

Useful? React with 👍 / 👎.

@deathbyknowledge
deathbyknowledge merged commit 13f5e8f into main Jul 27, 2026
6 checks passed
@deathbyknowledge
deathbyknowledge deleted the default-context branch July 27, 2026 17:23
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.

1 participant