revert(acms): revert PR #11216 — _resolve_effective_budget reads wrong attribute #11228
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!11228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/m5-revert-acms-budget-assembler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Reverts PR #11216 (
fix(acms): use project-level hot_max_tokens in execute phase context assembly).Reason
PR #11216 replaced the working
_resolve_hot_max_tokens()implementation (which readhot_max_tokensfrom the storedcontext_policy_jsonDB column) with_resolve_effective_budget()which readsproject.settings.hot_max_tokens— an attribute that is never populated byagents project context set --hot-max-tokens.The result: the project-level
--hot-max-tokensoverride is silently ignored, and the assembler always falls back to the global 16K default, identical to the pre-fix behaviour.Verified by running scenario 20 with
--hot-max-tokens 32000— tier logs still showedbudget=16000on both 16K and 32K runs with no observable difference in output.What is restored
_resolve_hot_max_tokens()— original working method that queriescontext_policy_jsonfromNamespacedProjectModelvia raw DB sessioneffective_hot_max_tokensusage inassemble()for bothCoreContextBudgetandContextRequestimport json(removed by #11216 but required by the restored method)CRPFragment/CRPProvenanceimports removed (were added by #11216 Behave test)project.settings.hot_max_tokenswhich is the wrong attribute)Follow-up
A corrected fix should be submitted that:
_resolve_hot_max_tokens()DB-query approach, OR wiresproject context setto also populateproject.settings.hot_max_tokenscontext_policy_jsoncode pathReverts #11216
Fixes: #11215