Commit 78587cf
authored
docs(tasks): task_template demonstrates _process_action instead of overriding step (#799)
* docs(tasks): task_template demonstrates _process_action instead of overriding step
The canonical task template showed an (illustrative, no-op) step() override as
the way to transform actions — teaching the exact anti-pattern the contract
discourages. Replace it with a _process_action example (unnormalise / delta /
ee-mapping), the sanctioned action hook. The template no longer overrides step,
so it leaves KNOWN_STEP_OVERRIDES (20->19) and new tasks copied from it model
the unified contract. 7/7 guardrail checks pass; ruff clean.
* docs(tasks): clarify task_template _process_action examples are copy-safe
Note that unnormalise_action is RLTaskEnv-only (BaseTaskEnv does not define it)
and that _last_action/_action_scale are user-defined, so a contributor copying
the MinimalTask (BaseTaskEnv) template won't hit AttributeError. Addresses review
nit on #799; docstring-only.1 parent d3cc0a0 commit 78587cf
2 files changed
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
0 commit comments