ISSUE DESCRIPTION Stale-detection timestamp-field allowlist misses spec-declared date…
- User
ISSUE DESCRIPTION
Stale-detection timestamp-field allowlist misses spec-declared date fields Retro finding · priority: P2 · component: generator · source: Trello CLI generation (printing-press 4.9.0)
What happened
The generated
internal/cli/pm_stale.gomatches inactivity against a hardcodedstaleTimestampFieldsallowlist (updatedAt, updated_at, updatedDate, modifiedAt, modified_at, lastModified, last_modified, lastEditedTime, last_edited_time, updated, last_updated). Trello cards usedateLastActivity, which is absent. The flagshipstalecommand returned "No stale items found" while a hand-builthealthcommand (readingdateLastActivity) counted 93 stale cards on the same hydrated data. Silent-empty flagship command, no error.Root cause
The stale template hardcodes a timestamp-name allowlist instead of also deriving candidate timestamp fields from the spec (properties with
format: date-time).Durable fix (proposed)
Build the stale timestamp-field set as
hardcoded allowlist ∪ spec-declared date-time property names for the synced resources. Guard: union is additive only — never removes existing allowlist entries, so no regression for currently-working APIs.Test
- Positive: a spec with a
dateLastActivity(format: date-time) card property produces astalethat finds rows older than N days. - Negative: an API using
updated_atis unchanged.
Repro / evidence
trello-pp-cli stale --days 14→ empty;trello-pp-cli health→ 93 stale on the same mirror. Fixed by hand-addingdateLastActivityto the allowlist. The allowlist approach will keep silently breaking the flagship command for the next API with an unlisted activity field.Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository usinggit reset --hardcommand. Additionally, you can usegit stashandgit stash popto temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call ) using or commands. However you don't need to use or before submitting your changes. In fact, only submits currently unstaged changes because it uses to get the changes that need to be submitted. - Positive: a spec with a
Assistant
Let me analyze the issue:
- The generated
internal/cli/pm_stale.gofile has a hardcoded allowlist of timestamp fields for stale detection - Trello cards use
dateLastActivitywhich is not in the allowlist - The fix should derive candidate timestamp fields from the spec (properties with
format: date-time) in addition to the hardcoded allowlist
Let me start by exploring the repository structure and finding the relevant files.
- The generated
Assistant
Let me explore the structure of the repository and look for the template files that generate the stale.go file.
<tool_call> <function=bash_terminal> <parameter=command> ls -la /cli-printing-press </tool_call>
Assistant
I need to run a command properly this time.
Assistant
This is a Go project. Let me explore the internal directory to find the generator and the template for stale.go.
<tool_call> <function=bash_terminal> <parameter=command> ls -la /cli-printing-press/internal </tool_call>
Assistant
Let me explore the internal directory structure to find the generator templates.
Assistant
There's a
generatordirectory. Let me explore it to find the template for generating the stale.go file.<tool_call> <function=bash_terminal> <parameter=command> ls -la /cli-printing-press/internal/generator </tool_call>
Assistant
I need to properly use the function syntax to explore the generator directory.
Assistant
Let me look at the templates directory which likely contains the template for generating stale.go.
<tool_call> <function=bash_terminal> <parameter=command> ls -la /cli-printing-press/internal/generator/templates </tool_call>
Assistant
I need to use the proper syntax to call the function. Let me list the templates directory contents.
Assistant
I don't see a specific
stale.go.tmplfile in this directory. Let me search for files containing "stale" to find where the stale functionality is defined.<tool_call> <function=bash_terminal> <parameter=command> find /cli-printing-press -name "stale" -type f 2>/dev/null </tool_call>
Assistant
I need to use the proper syntax for the bash_terminal tool. Let me search for stale files properly.
Assistant
Now let me look at the stale template file:
Assistant
Now I understand the issue. The
staleTimestampFieldsis a hardcoded list that doesn't includedateLastActivityfrom Trello cards. The fix should dynamically derive timestamp fields from the spec (properties withformat: date-time) in addition to the hardcoded allowlist.Let me first look at how the generator works and find how to access the spec properties to derive timestamp fields dynamically.
<tool_call> <function=bash_terminal> <parameter=command> grep -r "date-time" /cli-printing-press/internal/generator/templates --include="*.tmpl" 2>/dev/null | head -30 </tool_call>
Assistant
Let me search for date-time format references in the templates.
Assistant
The command didn't produce output. Let me search more broadly.
Assistant
Let me explore the schema_builder.go file to understand how it handles date-time fields and how we can get this information for the stale template.
Assistant
Let me look at the generator.go file to understand the overall structure and how templates receive data.
Assistant
Let me look at the vision_templates.go to understand how the stale template is configured.
Assistant
Let me look at how the template receives its data by searching for how the generator passes data to templates, especially looking for information about schema/properties.
<tool_call> <function=bash_terminal> <parameter=command> grep -A 20 "func.*tmplData|type.*tmplData|struct.*tmplData" /cli-printing-press/internal/generator/generator.go 2>/dev/null | head -50 </tool_call>
Assistant
Let me search for how the template data structure is defined in the generator.
Assistant
No matches found for tmplData. Let me search for how templates receive their data.
Assistant
Let me look for how the stale template gets its data. I'll search for how the workflow templates receive data from the generator.
Assistant
Let me look at how the template is invoked around line 3184 to understand how the data is passed.
Assistant
Let me search for where the pm_stale.go.tmpl is rendered and what data is passed to it.
Assistant
Let me search for where workflow templates are rendered to understand how data is passed.
Assistant
Let me look at how workflow templates are rendered to understand what data is passed.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1890,1920p' /cli-printing-press/internal/generator/generator.go </tool_call>
Assistant
I need to use the proper function syntax to search for the workflow rendering code.
Assistant
Let me search for how templates are rendered, especially looking for workflow template data.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "renderTemplate|VisionSet.Workflows" /cli-printing-press/internal/generator/generator.go | head -30 </tool_call>
Assistant
I need to use the proper syntax. Let me look at the code around where templates are rendered.
Assistant
Let me look at lines around 1897 to see how the workflow templates are rendered.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1895,1915p' /cli-printing-press/internal/generator/generator.go </tool_call>
Assistant
Let me try to view the code around line 1897 where workflow templates are processed.
Assistant
Let me look for where workflow templates are rendered at a different part of the file.
Assistant
Now I can see the workflow templates are rendered with
g.Specas the data. Let me explore the spec structure to understand how to get date-time fields from the spec.Assistant
Let me look at the spec.go file to understand the structure, particularly around resources and properties.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "type Resource|type Property|Format|date-time" /cli-printing-press/internal/spec/spec.go | head -40 </tool_call>
Assistant
I need to search for the Resource and Property types in the spec.go file to understand the data structure.
Assistant
Now let me look at the Resource structure to understand how it contains properties.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1285,1360p' /cli-printing-press/internal/spec/spec.go </tool_call>
Assistant
Let me look at the Resource structure definition in spec.go to understand how it contains properties and how we can find date-time fields.
Assistant
Now let me look at how responses are structured in the API spec, particularly how properties with format fields are defined.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "Schema|schema|Properties|properties" /cli-printing-press/internal/spec/spec.go | head -40 </tool_call>
Assistant
Let me search for the Schema type definition to understand how properties with date-time format are stored.
Assistant
Let me search for the Response type and how it stores response schemas to understand where the date-time format fields are defined.
Assistant
Let me look at the ResponseDef structure.
Assistant
I can see that
TypeFieldhas aFormatfield that stores the format hint (like date-time). Now I need to understand how responses contain these TypeField structures to find date-time properties.Let me search for how response schemas are stored in the spec.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "ResponseSchema|response_schema|ResponseSchema|Schema.*Response" /cli-printing-press/internal/spec/spec.go | head -40 </tool_call>
Assistant
Let me search for how the spec stores response schemas to understand where date-time fields can be derived from the API specification.
Assistant
I need to continue looking for how the spec stores response schemas and properties. Let me search for the APISpec structure to see what fields it contains.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1070,1150p' /cli-printing-press/internal/spec/spec.go </tool_call>
Assistant
I need to look at the APISpec structure to understand how to get the date-time fields from the spec. Let me search for this.
Assistant
Let me search for the APISpec struct definition to understand the overall structure.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "type APISpec|APISpec.*struct" /cli-printing-press/internal/spec/spec.go | head -10 </tool_call>
Assistant
I need to find the APISpec struct definition in the spec.go file to understand how it stores response schemas and date-time fields.
Assistant
Let me look at the APISpec structure definition.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '87,200p' /cli-printing-press/internal/spec/spec.go </tool_call>
Assistant
I need to look at the APISpec struct definition to understand what data it contains and how it stores response schemas with date-time format fields.
Assistant
Now I understand the APISpec structure. It contains
Resourceswhich is a map of Resource. Each Resource containsEndpointsandSubResources.The issue is that the stale template needs to find date-time format fields from the spec. However, looking at the spec structure, I see that:
- Resources have Endpoints
- Endpoints have Params, Body, etc.
- There's a Types map that contains TypeDef with TypeFields that have Format fields
Let me search for how response schemas are defined in the endpoint structure to understand where to get the date-time fields.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1330,1480p' /cli-printing-press/internal/spec/spec.go </tool_call>
Assistant
Let me look at the Endpoint structure and how it stores response data to find date-time format fields.
Assistant
Now I can see the Endpoint has a
Responsefield of typeResponseDef. Let me look at how the ResponseDef is populated and if it has TypeField information.I need to understand the schema_builder.go file since I saw earlier that it handles date-time format fields. Let me look at how it works and where it gets the date-time fields from.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1,50p' /cli-printing-press/internal/generator/schema_builder.go </tool_call>
Assistant
Let me look at the schema_builder.go file to understand how it handles date-time format fields and how to derive timestamp fields from the spec.
Assistant
Let me continue reading the schema_builder.go to understand how date-time format fields are processed.
Assistant
Let me look at the
collectResponseFieldsfunction in schema_builder.go to understand how response fields are collected and used.<tool_call> <function=bash_terminal> <parameter=command> sed -n '257,300p' /cli-printing-press/internal/generator/schema_builder.go </tool_call>
Assistant
Let me look at the
collectResponseFieldsfunction in schema_builder.go to understand how response fields are collected and used.Assistant
Now I understand the architecture. Let me look at how I can modify the stale template to derive timestamp fields from the spec. First, let me look at how templates access the spec data.
Assistant
Looking at the template rendering code, I can see that workflow templates are rendered with
g.Specas data. Now let me create a solution that modifies the stale template to also derive timestamp fields from spec properties withformat: date-time.Based on my analysis:
- The
staleTimestampFieldsis a hardcoded list in the pm_stale.go.tmpl file - The fix should:
hardcoded allowlist ∪ spec-declared date-time property names for the synced resources - The spec has
Typesmap withTypeDefthat hasFieldswithFormatfield
Let me now modify the template to:
- Keep the existing hardcoded allowlist
- Add a function to extract date-time fields from the spec
- Union these together
Let me create the updated template:
<tool_call> <function=bash_terminal> <parameter=command> cat /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl </tool_call>
- The
Assistant
I understand the issue. The
pm_stale.go.tmpltemplate has a hardcodedstaleTimestampFieldsallowlist that doesn't include spec-declared date-time fields likedateLastActivityfrom Trello cards. The fix should union the hardcoded allowlist with spec-declared date-time property names.Let me first look at how the spec's Types are structured to understand how to derive date-time fields.
Assistant
Now I understand how the spec works. Let me create the fix for the stale template. I need to:
- Modify the template to derive timestamp fields from spec-declared date-time properties
- Union these with the hardcoded allowlist
- Output a Go list that includes both
Let me create the modified template:
<tool_call> <function=bash_terminal> <parameter=command> cat /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl </tool_call>
Assistant
I need to use the bash_terminal tool properly. Let me view the stale template file content.
Assistant
Now I understand the issue. The
pm_stale.go.tmpltemplate has a hardcodedstaleTimestampFieldsallowlist that doesn't include spec-declared date-time fields likedateLastActivityfrom Trello cards.The fix should:
- Keep the existing hardcoded allowlist for backwards compatibility
- Add spec-declared date-time property names from
Spec.Types - Union these together in the generated Go code
Let me create the modified template:
Assistant
I need to reconsider the approach. Looking at the template, I see it receives
{{.Name | lower}}_Resourceswhich suggests there are generated variables. Let me look more carefully at how templates access spec data and whether we need a generator-side helper function instead of template-side logic.Assistant
Let me look at how the generator passes data to templates and what spec fields are available:
Assistant
Now I understand the structure better. The template receives
g.Specdirectly. However, I need to understand how to pass precomputed values from the generator. Let me look at how other templates handle this:Assistant
I see that workflow templates are rendered with
g.Specas data. However, to properly derive the timestamp fields from the spec, I should pre-compute this at the generator level and pass it as a struct to the template. Let me look at how other templates handle this pattern.Let me look at how the store.go template handles its data structure to see if there's a pattern for complex data passing.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '2485,2510p' /cli-printing-press/internal/generator/generator.go </tool_call>
Assistant
I need to look at how the store.go template is rendered to understand the pattern for complex data structures.
Let me continue exploring the generator.go file to find the store rendering code.
Assistant
Now I understand the pattern. For the stale template, I should:
- Create a helper function in the generator to compute timestamp fields from the spec
- Create a data structure to pass to the template
- Modify the template to use this pre-computed data
Let me look at how to implement this. First, let me search for where the spec's resources and types are accessed.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "Types[" /cli-printing-press/internal/generator/*.go | head -30 </tool_call>
Assistant
Let me search for how Types are accessed in the generator code to understand how to derive date-time fields from the spec.
Assistant
Let me now implement the fix. The approach will be to:
- Create a helper function that extracts timestamp fields from the spec's Types
- Create a data structure to pass to the template that includes the union of hardcoded and spec-derived fields
- Modify the template to use this data structure
First, let me look at how the generator passes data to the template and then implement the fix.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '1360,1400p' /cli-printing-press/internal/generator/generator.go </tool_call>
Assistant
Let me understand how to implement the fix by looking at the data structure pattern used for templates:
Assistant
Now I understand the architecture. Let me implement the fix properly by:
- Creating a helper function in the generator to extract timestamp fields from the spec
- Modifying the template to receive pre-computed data
Let me first add the helper function to the generator:
Assistant
Now let me implement the fix. I'll need to:
- Add a helper function in generator.go to compute timestamp fields from the spec
- Modify the template rendering to pass this data
- Update the template to use this data
Let me first look at the end of generator.go to find a good place to add the helper function:
Assistant
Let me look at the end of the file to understand the structure and find a good place to add the helper function.
Assistant
Now I understand the architecture. Let me implement the fix by:
- Adding a helper function to extract timestamp fields from the spec
- Creating a data structure to pass to the template
- Updating the template rendering
- Updating the template
Assistant
Let me add a helper function to extract timestamp fields from the spec. I'll add it at the end of the generator.go file:
Assistant
Now let me modify the template rendering code to pass the pre-computed stale command data to the template. First, let me find where the workflow templates are rendered:
Assistant
Now I need to modify the workflow template rendering to handle the stale template specially with the pre-computed data.
Assistant
Let me use the edit command instead to modify the file:
Assistant
Let me use the edit command to properly modify the file.
Assistant
Now let me use the edit command to modify the workflow template rendering section to handle the stale template specially:
Assistant
Now let me update the template file to use the new data structure:
<tool_call> <function=bash_terminal> <parameter=command> edit --file /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl 15:28 << 'EOF' // staleTimestampAllowlist is the union of: // 1. Hardcoded allowlist: historically used, stable across all APIs // 2. Spec-declared date-time properties: from Types with format=date-time // // The hardcoded set is additive-only (never removed) to avoid regressions. // The spec-derived set is computed at render time for each API's synced resources. var staleTimestampAllowlist = []string{ // Hardcoded allowlist — historical + mainstream API variants {{- range f := .HardcodedAllowlist}} "{{ f }}", {{- end}} }
EOF </tool_call>
Assistant
I need to modify the template file. Let me view the current template and then edit it to use the new data structure.
Assistant
The edit command partially worked but left some old code. Let me fix the template file properly by viewing the current state and making a complete rewrite:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '15,75p' /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl </tool_call>
Assistant
Let me view the current template state and fix it:
Assistant
Let me fix the template file by removing the leftover code and adding the spec-derived fields section:
<tool_call> <function=bash_terminal> <parameter=command> edit --file /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl 21:35 << 'EOF' // staleTimestampAllowlist is the union of: // 1. Hardcoded allowlist: historically used, stable across all APIs // 2. Spec-declared date-time properties: from Types with format=date-time // // The hardcoded set is additive-only (never removed) to avoid regressions. // The spec-derived set is computed at render time for each API's synced resources. var staleTimestampAllowlist = []string{ // Hardcoded allowlist — historical + mainstream API variants {{- range f := .HardcodedAllowlist}} "{{ f }}", {{- end}} }
EOF </tool_call>
Assistant
Let me use the proper syntax for the edit command to fix the template file. I need to replace lines 21-35 with the correct content.
Assistant
Good progress! Now I need to:
- Add the spec-derived fields to the template
- Add the buildStaleTimestampFields function that combines both hardcoded and spec-derived fields
Let me view the current state of the template and add the remaining code:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '21,50p' /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl </tool_call>
Assistant
Let me view the current template and add the remaining code - the spec-derived fields section and the buildStaleTimestampFields function.
Assistant
Now I need to update the template to add the spec-derived fields section and the buildStaleTimestampFields function. Let me edit lines 26-27 to add this code:
Assistant
The template has been updated successfully. Now let me verify the code compiles correctly by building the generator:
Assistant
Let me set the GOMODCACHE and try again.
Assistant
Let me set the environment variables and try again:
Assistant
The code compiles successfully. Now let me run the existing tests to make sure the changes don't break anything:
Assistant
The test is checking for specific field names in the template. The issue is that the test is checking the generated output which uses template syntax ({{- range ...}}) instead of the actual field names. Let me look at what the test is checking:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '13040,13080p' /cli-printing-press/internal/generator/generator_test.go </tool_call>
Assistant
The test is checking if the template contains specific field names. But since we're now generating the field names via a range loop, the template doesn't contain literal strings like "updatedAt". Let me look at the test to understand what it's checking.
Assistant
I see the issue. The test checks that the template file itself contains the hardcoded field names as literals. Since we're using a template range loop now, the test doesn't find the literal strings. I need to keep the hardcoded fields as literals in the template (for the test to pass) and then add spec-derived fields separately.
Let me fix the template to keep the hardcoded fields as literals:
Assistant
Now let me run the test again to verify it passes:
Assistant
The test passes. Now let me run more related tests to ensure the changes don't break anything else:
Assistant
Let me also run the tests that specifically test the pm_stale.go template to make sure all the assertions pass.
<tool_call> <function=bash_terminal> <parameter=command> export GOMODCACHE=/root/go/pkg/mod && export GOCACHE=/root/.cache/go-build && export HOME=/root && cd /cli-printing-press && go test ./internal/generator/... -run "TestStale" -v 2>&1 | head -100 </tool_call>
Assistant
Let me look at what tests exist related to the pm_stale.go template to make sure all tests pass.
Assistant
Let me search for any other tests related to pm_stale or stale functionality:
Assistant
I see the issue. The template still uses
{{.Owner}}and other spec fields, but now the data passed to the template isstaleCommandRenderDatawhich only contains the fields I added. I need to either:- Make
staleCommandRenderDataembed the spec - Add more fields to
staleCommandRenderData
Let me update the
staleCommandRenderDatastruct to include the spec and other necessary fields:- Make
Assistant
I need to update the
staleCommandRenderDatastruct to embed the spec and add other necessary fields. Let me view the struct and modify it:Assistant
Let me update the struct to embed the spec and add the necessary fields:
Assistant
I see there's duplicate code left over from the previous edit. Let me fix the file:
Assistant
Let me fix the generator.go file by removing the duplicate code and restoring the proper function:
Assistant
I see there's duplicate content in the file. Let me fix it properly:
Assistant
Let me fix the extra closing brace:
Assistant
Now let me verify the code compiles and run the tests:
Assistant
The code compiles successfully. Now let me run the tests:
Assistant
I see the issue. The template is generating Go code that references
.SpecDerivedFieldsbut it should be.SpecDerivedFieldswith proper template syntax. In Go templates, when using a struct field, you need to access it properly.The issue is that when I access
.SpecDerivedFields, I need to use.for the current data, not.alone.Let me look at the template and fix it:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '40,60p' /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl </tool_call>
Assistant
The issue is that the template references
.SpecDerivedFieldsbut it should be{{.SpecDerivedFields}}. In Go templates, you need the{{...}}syntax to evaluate expressions. Let me fix the template.Assistant
I see the issue. The template has
.SpecDerivedFieldsbut it should be{{.SpecDerivedFields}}in Go template syntax. Let me fix the template:Assistant
The issue is that I'm using Go template syntax (
{{.SpecDerivedFields}}) inside the generated Go code, which is invalid. The template should generate valid Go code where all the fields are inlined at template time. Let me fix the template properly:Assistant
Now I need to update the generator to use the
FinalAllowlistfromstaleCommandRenderDatainstead of constructing it inline. Let me also update the template to use the spec-derived fields properly.Assistant
The tests pass. Now let me run the
TestProjectManagementWorkflowsEmitSyncHintstest to make sure the sync hints test also passes:Assistant
All the stale-related tests pass. Now let me update the template to use the
FinalAllowlistfrom the data structure so that the spec-derived fields are properly included in the generated code. The template should use the data structure properly.Assistant
Now let me run all the stale-related tests to make sure everything works correctly:
Assistant
All tests pass. Now let me run a broader set of tests to make sure I haven't broken anything else:
Assistant
The failure is unrelated to my changes - it's a vulnerability check that's failing due to a Go standard library vulnerability (GO-2026-5856 in crypto/tls). Let me verify this is an existing issue and not something I introduced:
Assistant
All the stale and project management workflow tests pass. The
TestGenerateWithNoAuthfailure is a pre-existing issue related to Go standard library vulnerability checks, not something I introduced.Now let me check the git diff to see what changes I've made:
Assistant
Let me view the full diff to see the changes I made:
Assistant
Let me verify the template looks correct by viewing the generated output:
<tool_call> <function=bash_terminal> <parameter=command> cat /cli-printing-press/internal/generator/templates/workflows/pm_stale.go.tmpl </tool_call>
Assistant
Let me view the template file to ensure it's correctly formatted.
Assistant
The template looks correct. Now let me summarize what was done and verify all tests pass:
Summary of the fix:
- Added
staleTimestampFieldsFromSpec()function in generator.go to extract date-time and date fields from the spec's Types - Added
staleCommandRenderDatastruct that embeds*spec.APISpecand contains the pre-computed allowlist fields - Added
buildStaleRenderData()function that computes the union of hardcoded and spec-derived fields - Modified the workflow template rendering to use
buildStaleRenderData()for the stale template - Updated the pm_stale.go.tmpl template to use
.SpecDerivedFieldsto append spec-derived fields to the hardcoded allowlist
This fix ensures that:
- The hardcoded allowlist remains additive-only (never removes existing entries)
- Spec-declared date-time fields like
dateLastActivityfrom Trello are automatically included - Existing APIs using
updated_atcontinue to work without changes
Let me run a few more tests to confirm everything works:
- Added
Assistant
Let me run the stale-related tests to verify everything works:
Assistant
All tests pass. Now let me submit the changes.
<tool_call> <function=bash_terminal> <parameter=command> submit </tool_call>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.