You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert(tradingViewPineContent.includes("text: 'Pine Editor'"),'TradingView Pine workflows should support bounded Pine Editor status/output readback');
416
416
assert(tradingViewPineContent.includes('wantsEvidenceReadback'),'TradingView Pine workflows should detect Pine evidence-gathering requests');
417
417
assert(systemAutomationContent.includes('buildPineEditorSafeAuthoringSummary'),'system-automation should structure Pine Editor safe-authoring inspection summaries');
418
+
assert(systemAutomationContent.includes('buildPineEditorDiagnosticsStructuredSummary'),'system-automation should structure Pine Editor diagnostics summaries');
418
419
assert(systemAutomationContent.includes("pineEvidenceMode === 'safe-authoring-inspect'"),'system-automation should attach structured Pine summaries for safe-authoring-inspect readbacks');
420
+
assert(systemAutomationContent.includes("action?.pineEvidenceMode === 'compile-result'"),'system-automation should structure compile-result Pine Editor reads');
421
+
assert(systemAutomationContent.includes("action?.pineEvidenceMode === 'diagnostics'"),'system-automation should structure diagnostics Pine Editor reads');
422
+
assert(systemAutomationContent.includes("action?.pineEvidenceMode === 'line-budget'"),'system-automation should structure line-budget Pine Editor reads');
423
+
assert(systemAutomationContent.includes("action?.pineEvidenceMode === 'generic-status'"),'system-automation should structure generic-status Pine Editor reads');
419
424
assert(sessionIntentStateContent.includes('pineAuthoringState'),'session intent continuity context should expose Pine authoring state');
425
+
assert(sessionIntentStateContent.includes('pineCompileStatus'),'session intent continuity context should expose Pine compile status');
426
+
assert(sessionIntentStateContent.includes('Visible Pine compiler errors are present'),'session intent continuity should recommend fixing visible compiler errors first');
420
427
assert(sessionIntentStateContent.includes('avoid overwriting it implicitly'),'session intent continuity should recommend non-destructive Pine next steps when script content is already visible');
421
428
assert(chatContinuityStateContent.includes('normalizePineStructuredSummary'),'chat continuity mapper should preserve Pine structured summary fields');
422
429
assert(tradingViewPaperContent.includes("target: 'paper-trading-panel'"),'TradingView Paper workflows should encode paper-trading-panel verification metadata');
Copy file name to clipboardExpand all lines: scripts/test-pine-diagnostics-bounds.js
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -73,10 +73,28 @@ async function main() {
73
73
assert(evidenceMessage.content.includes('latest visible revision label, latest visible relative time, visible revision count, and visible recency signal'));
74
74
assert(evidenceMessage.content.includes('Do not infer hidden diffs, full script history, authorship, or runtime/chart behavior from the visible revision list alone.'));
Copy file name to clipboardExpand all lines: src/main/ai-service/message-builder.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,11 @@ function buildPineEvidenceConstraint({ foreground, userMessage }) {
97
97
98
98
if(requestKind==='line-budget'){
99
99
lines.push('- Rule: Pine scripts are capped at 500 lines in TradingView. Treat visible line-count hints as bounded editor evidence, and prefer targeted edits over full rewrites when the budget is tight.');
100
+
lines.push('- Rule: Summarize only the visible line-count or budget hints; do not infer hidden script size beyond what the editor text shows.');
101
+
}
102
+
103
+
if(requestKind==='generic-status'){
104
+
lines.push('- Rule: Treat visible Pine Editor status/output text as bounded editor evidence only; do not turn generic status text into runtime, chart, or market claims.');
0 commit comments