Skip to content

added coverage of multiple ids in tags#553

Open
Davidius86 wants to merge 2 commits into
itsallcode:mainfrom
Davidius86:feature/multiple_covered_ids_in_tags
Open

added coverage of multiple ids in tags#553
Davidius86 wants to merge 2 commits into
itsallcode:mainfrom
Davidius86:feature/multiple_covered_ids_in_tags

Conversation

@Davidius86

@Davidius86 Davidius86 commented Jul 1, 2026

Copy link
Copy Markdown

This PR enhances tags to define multiple covered ids in a tag.

ChatGPT 5.4 has been used for the first draft of the implementation and for the test.
The test was in almost in a good condition. The implementation has been heavily refactored after generation.

Documentation is written manually.

Comment thread doc/user_guide.md

```
[ <covered-artifact-type> -> <specification-object-id> ]
[ <covered-artifact-type> -> <list-of-specification-object-ids> ]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[ <covered-artifact-type> -> <list-of-specification-object-ids> ]
[ <covered-artifact-type> -> <specification-object-id>]
If a piece of code covers multiple specification items, you can also list them separated by comma.
[ <covered-artifact-type> -> <specification-object-id>, <specification-object-id>]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Davidius86 for the PR. I am started reviewing it. I will update main to 2.6.0 and create the release letter in another PR, so that we have a place where we can mention the change.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completeness: Please also add a short example of the syntax to .agents/skills/openfasttrace/SKILL.md.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completeness: Please add an short entry for this in the change log too (we are currently working towards 4.6.0).

Comment thread doc/user_guide.md
```

##### Forwarding Requirements
##### Needed Coverage

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find. 👍

Compliance: I am guessing you are using an LLM to help with the work. Please note that according to our contribution guideline, LLM-assisted PR must state that.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completeness: Please also add tests that the features with requiring coverage and partial spec item definition still work in combination with the comma-separated covered IDs.


private static List<String> parseCommaSeparatedList(final String input)
private static List<SpecificationItemId> parseCoveredIds(final String input)
{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safety: Add null handling, please.

final int counter)
{
final String uniqueName = this.file.getPath() + lineNumber + counter + coveredId;
final String CoveredIdStringsJoinedWithHyphen = coveredIds.stream()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX: This is where the compactness gets to be a problem. While it is nice to be able to cover multiple spec ids in one line, the generated single ID from the code gets excessively long. I would suggest to instead create one "virtual" covering spec item id per covered id instead of a really long one that won't be readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants