fix(modules): remove default context-budget stamps #518

Merged
pdurlej merged 1 commit from codex/w9-agent-context-budget-cleanup into main 2026-05-27 08:59:51 +02:00
Collaborator

Canary status: missing — this touches module manifests, so use required checks/canary before merge

Canary Context Pack

Product story

Agents should not read a uniform agent_context_budget: 1500 stamp as meaningful per-module metadata. If everything says the same thing, it is schema default, not signal.

What changed

  • Removed metadata.agent_context_budget: 1500 from module manifests where it only restated the schema default.
  • Kept non-default module budgets (1800) intact.
  • Clarified schema docs: specify agent_context_budget only for non-default budgets.

Why it changed

This rewrites the useful part of old #331 from current main: reduce manifest noise and remove an agent-misleading false signal.

Files touched

  • 86 module manifests: one line removed from each default-budget module.
  • schema/module.schema.md: default/omit guidance clarified.

Relevant context

  • schema/module.schema.json already defines agent_context_budget.default = 1500.
  • Old #331 was stale/conflicting; this is the current-main rewrite.

Runtime evidence

None. Repo metadata only; no runtime mutation.

Known constraints

Broad mechanical diff by file count, but each touched manifest has the same one-line deletion. Non-default budgets remain visible.

Explicit out-of-scope

No schema JSON change, no module lifecycle/source/runtime metadata changes, no runbook changes.

Requested decision

Merge if checks are green and reviewers agree the default semantics are preserved.

Merge blockers

Any module validation failure, accidental removal of non-default budget, or hidden schema behavior relying on explicit default values.

Spec sources read

  • schema/module.schema.json — verified default agent_context_budget: 1500 exists.
  • schema/module.schema.md — updated human-readable default guidance.
  • modules/*/module.yaml — mechanical default-line cleanup.

Verification

  • rg -n "agent_context_budget: 1500" modules → 0 matches.
  • rg -n "agent_context_budget" modules → only two 1800 exceptions remain.
  • PYTHONPATH=control-plane python3 -m platformctl.cli validate all --json → exitCode 0.
  • git diff --check → clean.

Closes #331

Canary status: missing — this touches module manifests, so use required checks/canary before merge ## Canary Context Pack ### Product story Agents should not read a uniform `agent_context_budget: 1500` stamp as meaningful per-module metadata. If everything says the same thing, it is schema default, not signal. ### What changed - Removed `metadata.agent_context_budget: 1500` from module manifests where it only restated the schema default. - Kept non-default module budgets (`1800`) intact. - Clarified schema docs: specify `agent_context_budget` only for non-default budgets. ### Why it changed This rewrites the useful part of old #331 from current `main`: reduce manifest noise and remove an agent-misleading false signal. ### Files touched - 86 module manifests: one line removed from each default-budget module. - `schema/module.schema.md`: default/omit guidance clarified. ### Relevant context - `schema/module.schema.json` already defines `agent_context_budget.default = 1500`. - Old #331 was stale/conflicting; this is the current-main rewrite. ### Runtime evidence None. Repo metadata only; no runtime mutation. ### Known constraints Broad mechanical diff by file count, but each touched manifest has the same one-line deletion. Non-default budgets remain visible. ### Explicit out-of-scope No schema JSON change, no module lifecycle/source/runtime metadata changes, no runbook changes. ### Requested decision Merge if checks are green and reviewers agree the default semantics are preserved. ### Merge blockers Any module validation failure, accidental removal of non-default budget, or hidden schema behavior relying on explicit default values. ## Spec sources read - `schema/module.schema.json` — verified default `agent_context_budget: 1500` exists. - `schema/module.schema.md` — updated human-readable default guidance. - `modules/*/module.yaml` — mechanical default-line cleanup. ## Verification - `rg -n "agent_context_budget: 1500" modules` → 0 matches. - `rg -n "agent_context_budget" modules` → only two `1800` exceptions remain. - `PYTHONPATH=control-plane python3 -m platformctl.cli validate all --json` → exitCode 0. - `git diff --check` → clean. Closes #331
fix(modules): remove default context-budget stamps
All checks were successful
base-is-main / guard (pull_request) Successful in 2s
canary-required / collect-diff (pull_request) Successful in 5s
patchwarden-client-dry-run / collect-diff (pull_request) Successful in 5s
python-ci / Python 3.11 (pull_request) Successful in 42s
python-ci / Python 3.12 (pull_request) Successful in 43s
patchwarden-client-dry-run / dry-run (pull_request) Successful in 21s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 4s
platformctl plan / auto-apply scope (pull_request) Successful in 26s
python-ci / Python 3.13 (pull_request) Successful in 43s
canary-required / canary (pull_request) Successful in 15s
patchwarden-pr-sanity / sanity (pull_request) Successful in 23s
804f0aa19b
Sign in to join this conversation.
No reviewers
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform!518
No description provided.